1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for fontconfig 2.15.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='fontconfig'
624PACKAGE_TARNAME='fontconfig'
625PACKAGE_VERSION='2.15.0'
626PACKAGE_STRING='fontconfig 2.15.0'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new'
628PACKAGE_URL=''
629
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stddef.h>
633#ifdef HAVE_STDIO_H
634# include <stdio.h>
635#endif
636#ifdef HAVE_STDLIB_H
637# include <stdlib.h>
638#endif
639#ifdef HAVE_STRING_H
640# include <string.h>
641#endif
642#ifdef HAVE_INTTYPES_H
643# include <inttypes.h>
644#endif
645#ifdef HAVE_STDINT_H
646# include <stdint.h>
647#endif
648#ifdef HAVE_STRINGS_H
649# include <strings.h>
650#endif
651#ifdef HAVE_SYS_TYPES_H
652# include <sys/types.h>
653#endif
654#ifdef HAVE_SYS_STAT_H
655# include <sys/stat.h>
656#endif
657#ifdef HAVE_UNISTD_H
658# include <unistd.h>
659#endif"
660
661ac_header_c_list=
662gt_needs=
663ac_func_c_list=
664ac_subst_vars='am__EXEEXT_FALSE
665am__EXEEXT_TRUE
666LTLIBOBJS
667LIBOBJS
668PKGCONFIG_REQUIRES_PRIVATELY
669PKGCONFIG_REQUIRES
670ENABLE_CACHE_BUILD_FALSE
671ENABLE_CACHE_BUILD_TRUE
672DOCMAN3
673ENABLE_DOCS_FALSE
674ENABLE_DOCS_TRUE
675USEDOCBOOK_FALSE
676USEDOCBOOK_TRUE
677HASDOCBOOK
678HAVE_PTHREAD_FALSE
679HAVE_PTHREAD_TRUE
680PTHREAD_CFLAGS
681PTHREAD_LIBS
682PTHREAD_CC
683ax_pthread_config
684XMLDIR
685CONFIGDIR
686BASECONFIGDIR
687TEMPLATEDIR
688FC_FONTDATE
689FC_CACHEDIR
690fc_cachedir
691FC_FONTPATH
692FC_ADD_FONTS
693FC_DEFAULT_FONTS
694PREFERRED_HINTING
695PREFERRED_SUB_PIXEL_RENDERING
696ENABLE_JSONC_FALSE
697ENABLE_JSONC_TRUE
698JSONC_LIBS
699JSONC_CFLAGS
700LIBXML2_LIBS
701LIBXML2_CFLAGS
702PKG_EXPAT_LIBS
703PKG_EXPAT_CFLAGS
704HAVE_XMLPARSE_H
705EXPAT_LIBS
706EXPAT_CFLAGS
707FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE
708FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE
709FREETYPE_LIBS
710FREETYPE_CFLAGS
711ICONV_LIBS
712ICONV_CFLAGS
713ENABLE_SHARED_FALSE
714ENABLE_SHARED_TRUE
715CROSS_COMPILING_FALSE
716CROSS_COMPILING_TRUE
717EXEEXT_FOR_BUILD
718CC_FOR_BUILD
719WARN_CFLAGS
720MS_LIB_AVAILABLE_FALSE
721MS_LIB_AVAILABLE_TRUE
722ms_librarian
723POSUB
724LTLIBINTL
725LIBINTL
726INTLLIBS
727LTLIBICONV
728LIBICONV
729INTL_MACOSX_LIBS
730CPP
731XGETTEXT_EXTRA_OPTIONS
732MSGMERGE
733XGETTEXT_015
734XGETTEXT
735GMSGFMT_015
736MSGFMT_015
737GMSGFMT
738MSGFMT
739GETTEXT_MACRO_VERSION
740USE_NLS
741GETTEXT_PACKAGE
742OS_DARWIN_FALSE
743OS_DARWIN_TRUE
744OS_WIN32_FALSE
745OS_WIN32_TRUE
746LIBT_CURRENT_MINUS_AGE
747LIBT_VERSION_INFO
748LIBT_REVISION
749LIBT_CURRENT
750LT_SYS_LIBRARY_PATH
751OTOOL64
752OTOOL
753LIPO
754NMEDIT
755DSYMUTIL
756MANIFEST_TOOL
757RANLIB
758ac_ct_AR
759AR
760FILECMD
761NM
762ac_ct_DUMPBIN
763DUMPBIN
764LD
765FGREP
766EGREP
767GREP
768SED
769host_os
770host_vendor
771host_cpu
772host
773build_os
774build_vendor
775build_cpu
776build
777LIBTOOL
778OBJDUMP
779DLLTOOL
780AS
781RM
782pkgpyexecdir
783pyexecdir
784pkgpythondir
785pythondir
786PYTHON_EXEC_PREFIX
787PYTHON_PREFIX
788PYTHON_PLATFORM
789PYTHON_VERSION
790PYTHON
791GPERF
792GIT
793pkgconfigdir
794PKG_CONFIG_LIBDIR
795PKG_CONFIG_PATH
796PKG_CONFIG
797LN_S
798am__fastdepCC_FALSE
799am__fastdepCC_TRUE
800CCDEPMODE
801am__nodep
802AMDEPBACKSLASH
803AMDEP_FALSE
804AMDEP_TRUE
805am__include
806DEPDIR
807OBJEXT
808EXEEXT
809ac_ct_CC
810CPPFLAGS
811LDFLAGS
812CFLAGS
813CC
814AM_BACKSLASH
815AM_DEFAULT_VERBOSITY
816AM_DEFAULT_V
817AM_V
818CSCOPE
819ETAGS
820CTAGS
821am__untar
822am__tar
823AMTAR
824am__leading_dot
825SET_MAKE
826AWK
827mkdir_p
828MKDIR_P
829INSTALL_STRIP_PROGRAM
830STRIP
831install_sh
832MAKEINFO
833AUTOHEADER
834AUTOMAKE
835AUTOCONF
836ACLOCAL
837VERSION
838PACKAGE
839CYGPATH_W
840am__isrc
841INSTALL_DATA
842INSTALL_SCRIPT
843INSTALL_PROGRAM
844target_alias
845host_alias
846build_alias
847LIBS
848ECHO_T
849ECHO_N
850ECHO_C
851DEFS
852mandir
853localedir
854libdir
855psdir
856pdfdir
857dvidir
858htmldir
859infodir
860docdir
861oldincludedir
862includedir
863runstatedir
864localstatedir
865sharedstatedir
866sysconfdir
867datadir
868datarootdir
869libexecdir
870sbindir
871bindir
872program_transform_name
873prefix
874exec_prefix
875PACKAGE_URL
876PACKAGE_BUGREPORT
877PACKAGE_STRING
878PACKAGE_VERSION
879PACKAGE_TARNAME
880PACKAGE_NAME
881PATH_SEPARATOR
882SHELL
883am__quote'
884ac_subst_files=''
885ac_user_opts='
886enable_option_checking
887enable_silent_rules
888enable_dependency_tracking
889enable_largefile
890with_pkgconfigdir
891with_python_sys_prefix
892with_python_prefix
893with_python_exec_prefix
894enable_static
895enable_shared
896with_pic
897enable_fast_install
898with_aix_soname
899with_gnu_ld
900with_sysroot
901enable_libtool_lock
902enable_nls
903enable_rpath
904with_libiconv_prefix
905with_libintl_prefix
906with_arch
907enable_iconv
908with_libiconv
909with_libiconv_includes
910with_libiconv_lib
911with_expat
912with_expat_includes
913with_expat_lib
914enable_libxml2
915with_default_sub_pixel_rendering
916with_default_hinting
917with_default_fonts
918with_add_fonts
919with_cache_dir
920with_templatedir
921with_baseconfigdir
922with_configdir
923with_xmldir
924enable_docbook
925enable_docs
926enable_cache_build
927'
928      ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934LIBS
935CPPFLAGS
936PKG_CONFIG
937PKG_CONFIG_PATH
938PKG_CONFIG_LIBDIR
939PYTHON
940LT_SYS_LIBRARY_PATH
941CPP
942CC_FOR_BUILD
943FREETYPE_CFLAGS
944FREETYPE_LIBS
945EXPAT_CFLAGS
946EXPAT_LIBS
947LIBXML2_CFLAGS
948LIBXML2_LIBS
949JSONC_CFLAGS
950JSONC_LIBS'
951
952
953# Initialize some variables set by options.
954ac_init_help=
955ac_init_version=false
956ac_unrecognized_opts=
957ac_unrecognized_sep=
958# The variables have the same names as the options, with
959# dashes changed to underlines.
960cache_file=/dev/null
961exec_prefix=NONE
962no_create=
963no_recursion=
964prefix=NONE
965program_prefix=NONE
966program_suffix=NONE
967program_transform_name=s,x,x,
968silent=
969site=
970srcdir=
971verbose=
972x_includes=NONE
973x_libraries=NONE
974
975# Installation directory options.
976# These are left unexpanded so users can "make install exec_prefix=/foo"
977# and all the variables that are supposed to be based on exec_prefix
978# by default will actually change.
979# Use braces instead of parens because sh, perl, etc. also accept them.
980# (The list follows the same order as the GNU Coding Standards.)
981bindir='${exec_prefix}/bin'
982sbindir='${exec_prefix}/sbin'
983libexecdir='${exec_prefix}/libexec'
984datarootdir='${prefix}/share'
985datadir='${datarootdir}'
986sysconfdir='${prefix}/etc'
987sharedstatedir='${prefix}/com'
988localstatedir='${prefix}/var'
989runstatedir='${localstatedir}/run'
990includedir='${prefix}/include'
991oldincludedir='/usr/include'
992docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993infodir='${datarootdir}/info'
994htmldir='${docdir}'
995dvidir='${docdir}'
996pdfdir='${docdir}'
997psdir='${docdir}'
998libdir='${exec_prefix}/lib'
999localedir='${datarootdir}/locale'
1000mandir='${datarootdir}/man'
1001
1002ac_prev=
1003ac_dashdash=
1004for ac_option
1005do
1006  # If the previous option needs an argument, assign it.
1007  if test -n "$ac_prev"; then
1008    eval $ac_prev=\$ac_option
1009    ac_prev=
1010    continue
1011  fi
1012
1013  case $ac_option in
1014  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015  *=)   ac_optarg= ;;
1016  *)    ac_optarg=yes ;;
1017  esac
1018
1019  case $ac_dashdash$ac_option in
1020  --)
1021    ac_dashdash=yes ;;
1022
1023  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024    ac_prev=bindir ;;
1025  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026    bindir=$ac_optarg ;;
1027
1028  -build | --build | --buil | --bui | --bu)
1029    ac_prev=build_alias ;;
1030  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031    build_alias=$ac_optarg ;;
1032
1033  -cache-file | --cache-file | --cache-fil | --cache-fi \
1034  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035    ac_prev=cache_file ;;
1036  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038    cache_file=$ac_optarg ;;
1039
1040  --config-cache | -C)
1041    cache_file=config.cache ;;
1042
1043  -datadir | --datadir | --datadi | --datad)
1044    ac_prev=datadir ;;
1045  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046    datadir=$ac_optarg ;;
1047
1048  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049  | --dataroo | --dataro | --datar)
1050    ac_prev=datarootdir ;;
1051  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053    datarootdir=$ac_optarg ;;
1054
1055  -disable-* | --disable-*)
1056    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057    # Reject names that are not valid shell variable names.
1058    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1060    ac_useropt_orig=$ac_useropt
1061    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1062    case $ac_user_opts in
1063      *"
1064"enable_$ac_useropt"
1065"*) ;;
1066      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067	 ac_unrecognized_sep=', ';;
1068    esac
1069    eval enable_$ac_useropt=no ;;
1070
1071  -docdir | --docdir | --docdi | --doc | --do)
1072    ac_prev=docdir ;;
1073  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074    docdir=$ac_optarg ;;
1075
1076  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077    ac_prev=dvidir ;;
1078  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079    dvidir=$ac_optarg ;;
1080
1081  -enable-* | --enable-*)
1082    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083    # Reject names that are not valid shell variable names.
1084    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1086    ac_useropt_orig=$ac_useropt
1087    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1088    case $ac_user_opts in
1089      *"
1090"enable_$ac_useropt"
1091"*) ;;
1092      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093	 ac_unrecognized_sep=', ';;
1094    esac
1095    eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099  | --exec | --exe | --ex)
1100    ac_prev=exec_prefix ;;
1101  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103  | --exec=* | --exe=* | --ex=*)
1104    exec_prefix=$ac_optarg ;;
1105
1106  -gas | --gas | --ga | --g)
1107    # Obsolete; use --with-gas.
1108    with_gas=yes ;;
1109
1110  -help | --help | --hel | --he | -h)
1111    ac_init_help=long ;;
1112  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113    ac_init_help=recursive ;;
1114  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115    ac_init_help=short ;;
1116
1117  -host | --host | --hos | --ho)
1118    ac_prev=host_alias ;;
1119  -host=* | --host=* | --hos=* | --ho=*)
1120    host_alias=$ac_optarg ;;
1121
1122  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123    ac_prev=htmldir ;;
1124  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125  | --ht=*)
1126    htmldir=$ac_optarg ;;
1127
1128  -includedir | --includedir | --includedi | --included | --include \
1129  | --includ | --inclu | --incl | --inc)
1130    ac_prev=includedir ;;
1131  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132  | --includ=* | --inclu=* | --incl=* | --inc=*)
1133    includedir=$ac_optarg ;;
1134
1135  -infodir | --infodir | --infodi | --infod | --info | --inf)
1136    ac_prev=infodir ;;
1137  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138    infodir=$ac_optarg ;;
1139
1140  -libdir | --libdir | --libdi | --libd)
1141    ac_prev=libdir ;;
1142  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143    libdir=$ac_optarg ;;
1144
1145  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146  | --libexe | --libex | --libe)
1147    ac_prev=libexecdir ;;
1148  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149  | --libexe=* | --libex=* | --libe=*)
1150    libexecdir=$ac_optarg ;;
1151
1152  -localedir | --localedir | --localedi | --localed | --locale)
1153    ac_prev=localedir ;;
1154  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155    localedir=$ac_optarg ;;
1156
1157  -localstatedir | --localstatedir | --localstatedi | --localstated \
1158  | --localstate | --localstat | --localsta | --localst | --locals)
1159    ac_prev=localstatedir ;;
1160  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162    localstatedir=$ac_optarg ;;
1163
1164  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165    ac_prev=mandir ;;
1166  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167    mandir=$ac_optarg ;;
1168
1169  -nfp | --nfp | --nf)
1170    # Obsolete; use --without-fp.
1171    with_fp=no ;;
1172
1173  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174  | --no-cr | --no-c | -n)
1175    no_create=yes ;;
1176
1177  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179    no_recursion=yes ;;
1180
1181  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183  | --oldin | --oldi | --old | --ol | --o)
1184    ac_prev=oldincludedir ;;
1185  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188    oldincludedir=$ac_optarg ;;
1189
1190  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191    ac_prev=prefix ;;
1192  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193    prefix=$ac_optarg ;;
1194
1195  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196  | --program-pre | --program-pr | --program-p)
1197    ac_prev=program_prefix ;;
1198  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200    program_prefix=$ac_optarg ;;
1201
1202  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203  | --program-suf | --program-su | --program-s)
1204    ac_prev=program_suffix ;;
1205  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207    program_suffix=$ac_optarg ;;
1208
1209  -program-transform-name | --program-transform-name \
1210  | --program-transform-nam | --program-transform-na \
1211  | --program-transform-n | --program-transform- \
1212  | --program-transform | --program-transfor \
1213  | --program-transfo | --program-transf \
1214  | --program-trans | --program-tran \
1215  | --progr-tra | --program-tr | --program-t)
1216    ac_prev=program_transform_name ;;
1217  -program-transform-name=* | --program-transform-name=* \
1218  | --program-transform-nam=* | --program-transform-na=* \
1219  | --program-transform-n=* | --program-transform-=* \
1220  | --program-transform=* | --program-transfor=* \
1221  | --program-transfo=* | --program-transf=* \
1222  | --program-trans=* | --program-tran=* \
1223  | --progr-tra=* | --program-tr=* | --program-t=*)
1224    program_transform_name=$ac_optarg ;;
1225
1226  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227    ac_prev=pdfdir ;;
1228  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229    pdfdir=$ac_optarg ;;
1230
1231  -psdir | --psdir | --psdi | --psd | --ps)
1232    ac_prev=psdir ;;
1233  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234    psdir=$ac_optarg ;;
1235
1236  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237  | -silent | --silent | --silen | --sile | --sil)
1238    silent=yes ;;
1239
1240  -runstatedir | --runstatedir | --runstatedi | --runstated \
1241  | --runstate | --runstat | --runsta | --runst | --runs \
1242  | --run | --ru | --r)
1243    ac_prev=runstatedir ;;
1244  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1245  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1246  | --run=* | --ru=* | --r=*)
1247    runstatedir=$ac_optarg ;;
1248
1249  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250    ac_prev=sbindir ;;
1251  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252  | --sbi=* | --sb=*)
1253    sbindir=$ac_optarg ;;
1254
1255  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257  | --sharedst | --shareds | --shared | --share | --shar \
1258  | --sha | --sh)
1259    ac_prev=sharedstatedir ;;
1260  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263  | --sha=* | --sh=*)
1264    sharedstatedir=$ac_optarg ;;
1265
1266  -site | --site | --sit)
1267    ac_prev=site ;;
1268  -site=* | --site=* | --sit=*)
1269    site=$ac_optarg ;;
1270
1271  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272    ac_prev=srcdir ;;
1273  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274    srcdir=$ac_optarg ;;
1275
1276  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277  | --syscon | --sysco | --sysc | --sys | --sy)
1278    ac_prev=sysconfdir ;;
1279  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281    sysconfdir=$ac_optarg ;;
1282
1283  -target | --target | --targe | --targ | --tar | --ta | --t)
1284    ac_prev=target_alias ;;
1285  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286    target_alias=$ac_optarg ;;
1287
1288  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289    verbose=yes ;;
1290
1291  -version | --version | --versio | --versi | --vers | -V)
1292    ac_init_version=: ;;
1293
1294  -with-* | --with-*)
1295    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296    # Reject names that are not valid shell variable names.
1297    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298      as_fn_error $? "invalid package name: \`$ac_useropt'"
1299    ac_useropt_orig=$ac_useropt
1300    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1301    case $ac_user_opts in
1302      *"
1303"with_$ac_useropt"
1304"*) ;;
1305      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306	 ac_unrecognized_sep=', ';;
1307    esac
1308    eval with_$ac_useropt=\$ac_optarg ;;
1309
1310  -without-* | --without-*)
1311    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312    # Reject names that are not valid shell variable names.
1313    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314      as_fn_error $? "invalid package name: \`$ac_useropt'"
1315    ac_useropt_orig=$ac_useropt
1316    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1317    case $ac_user_opts in
1318      *"
1319"with_$ac_useropt"
1320"*) ;;
1321      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322	 ac_unrecognized_sep=', ';;
1323    esac
1324    eval with_$ac_useropt=no ;;
1325
1326  --x)
1327    # Obsolete; use --with-x.
1328    with_x=yes ;;
1329
1330  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331  | --x-incl | --x-inc | --x-in | --x-i)
1332    ac_prev=x_includes ;;
1333  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335    x_includes=$ac_optarg ;;
1336
1337  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339    ac_prev=x_libraries ;;
1340  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342    x_libraries=$ac_optarg ;;
1343
1344  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1345Try \`$0 --help' for more information"
1346    ;;
1347
1348  *=*)
1349    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350    # Reject names that are not valid shell variable names.
1351    case $ac_envvar in #(
1352      '' | [0-9]* | *[!_$as_cr_alnum]* )
1353      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1354    esac
1355    eval $ac_envvar=\$ac_optarg
1356    export $ac_envvar ;;
1357
1358  *)
1359    # FIXME: should be removed in autoconf 3.0.
1360    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1361    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1363    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1364    ;;
1365
1366  esac
1367done
1368
1369if test -n "$ac_prev"; then
1370  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371  as_fn_error $? "missing argument to $ac_option"
1372fi
1373
1374if test -n "$ac_unrecognized_opts"; then
1375  case $enable_option_checking in
1376    no) ;;
1377    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1378    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379  esac
1380fi
1381
1382# Check all directory arguments for consistency.
1383for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384		datadir sysconfdir sharedstatedir localstatedir includedir \
1385		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386		libdir localedir mandir runstatedir
1387do
1388  eval ac_val=\$$ac_var
1389  # Remove trailing slashes.
1390  case $ac_val in
1391    */ )
1392      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393      eval $ac_var=\$ac_val;;
1394  esac
1395  # Be sure to have absolute directory names.
1396  case $ac_val in
1397    [\\/$]* | ?:[\\/]* )  continue;;
1398    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399  esac
1400  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1401done
1402
1403# There might be people who depend on the old broken behavior: `$host'
1404# used to hold the argument of --host etc.
1405# FIXME: To remove some day.
1406build=$build_alias
1407host=$host_alias
1408target=$target_alias
1409
1410# FIXME: To remove some day.
1411if test "x$host_alias" != x; then
1412  if test "x$build_alias" = x; then
1413    cross_compiling=maybe
1414  elif test "x$build_alias" != "x$host_alias"; then
1415    cross_compiling=yes
1416  fi
1417fi
1418
1419ac_tool_prefix=
1420test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422test "$silent" = yes && exec 6>/dev/null
1423
1424
1425ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426ac_ls_di=`ls -di .` &&
1427ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428  as_fn_error $? "working directory cannot be determined"
1429test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430  as_fn_error $? "pwd does not report name of working directory"
1431
1432
1433# Find the source files, if location was not specified.
1434if test -z "$srcdir"; then
1435  ac_srcdir_defaulted=yes
1436  # Try the directory containing this script, then the parent directory.
1437  ac_confdir=`$as_dirname -- "$as_myself" ||
1438$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439	 X"$as_myself" : 'X\(//\)[^/]' \| \
1440	 X"$as_myself" : 'X\(//\)$' \| \
1441	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442printf "%s\n" X"$as_myself" |
1443    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444	    s//\1/
1445	    q
1446	  }
1447	  /^X\(\/\/\)[^/].*/{
1448	    s//\1/
1449	    q
1450	  }
1451	  /^X\(\/\/\)$/{
1452	    s//\1/
1453	    q
1454	  }
1455	  /^X\(\/\).*/{
1456	    s//\1/
1457	    q
1458	  }
1459	  s/.*/./; q'`
1460  srcdir=$ac_confdir
1461  if test ! -r "$srcdir/$ac_unique_file"; then
1462    srcdir=..
1463  fi
1464else
1465  ac_srcdir_defaulted=no
1466fi
1467if test ! -r "$srcdir/$ac_unique_file"; then
1468  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1470fi
1471ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472ac_abs_confdir=`(
1473	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1474	pwd)`
1475# When building in place, set srcdir=.
1476if test "$ac_abs_confdir" = "$ac_pwd"; then
1477  srcdir=.
1478fi
1479# Remove unnecessary trailing slashes from srcdir.
1480# Double slashes in file names in object file debugging info
1481# mess up M-x gdb in Emacs.
1482case $srcdir in
1483*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484esac
1485for ac_var in $ac_precious_vars; do
1486  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487  eval ac_env_${ac_var}_value=\$${ac_var}
1488  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490done
1491
1492#
1493# Report the --help message.
1494#
1495if test "$ac_init_help" = "long"; then
1496  # Omit some internal or obsolete options to make the list less imposing.
1497  # This message is too long to be a string in the A/UX 3.1 sh.
1498  cat <<_ACEOF
1499\`configure' configures fontconfig 2.15.0 to adapt to many kinds of systems.
1500
1501Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504VAR=VALUE.  See below for descriptions of some of the useful variables.
1505
1506Defaults for the options are specified in brackets.
1507
1508Configuration:
1509  -h, --help              display this help and exit
1510      --help=short        display options specific to this package
1511      --help=recursive    display the short help of all the included packages
1512  -V, --version           display version information and exit
1513  -q, --quiet, --silent   do not print \`checking ...' messages
1514      --cache-file=FILE   cache test results in FILE [disabled]
1515  -C, --config-cache      alias for \`--cache-file=config.cache'
1516  -n, --no-create         do not create output files
1517      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1518
1519Installation directories:
1520  --prefix=PREFIX         install architecture-independent files in PREFIX
1521                          [$ac_default_prefix]
1522  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1523                          [PREFIX]
1524
1525By default, \`make install' will install all the files in
1526\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1527an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528for instance \`--prefix=\$HOME'.
1529
1530For better control, use the options below.
1531
1532Fine tuning of the installation directories:
1533  --bindir=DIR            user executables [EPREFIX/bin]
1534  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1535  --libexecdir=DIR        program executables [EPREFIX/libexec]
1536  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1537  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1538  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1539  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1540  --libdir=DIR            object code libraries [EPREFIX/lib]
1541  --includedir=DIR        C header files [PREFIX/include]
1542  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1543  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1544  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1545  --infodir=DIR           info documentation [DATAROOTDIR/info]
1546  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1547  --mandir=DIR            man documentation [DATAROOTDIR/man]
1548  --docdir=DIR            documentation root [DATAROOTDIR/doc/fontconfig]
1549  --htmldir=DIR           html documentation [DOCDIR]
1550  --dvidir=DIR            dvi documentation [DOCDIR]
1551  --pdfdir=DIR            pdf documentation [DOCDIR]
1552  --psdir=DIR             ps documentation [DOCDIR]
1553_ACEOF
1554
1555  cat <<\_ACEOF
1556
1557Program names:
1558  --program-prefix=PREFIX            prepend PREFIX to installed program names
1559  --program-suffix=SUFFIX            append SUFFIX to installed program names
1560  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1561
1562System types:
1563  --build=BUILD     configure for building on BUILD [guessed]
1564  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1565_ACEOF
1566fi
1567
1568if test -n "$ac_init_help"; then
1569  case $ac_init_help in
1570     short | recursive ) echo "Configuration of fontconfig 2.15.0:";;
1571   esac
1572  cat <<\_ACEOF
1573
1574Optional Features:
1575  --disable-option-checking  ignore unrecognized --enable/--with options
1576  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1577  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1578  --enable-silent-rules   less verbose build output (undo: "make V=1")
1579  --disable-silent-rules  verbose build output (undo: "make V=0")
1580  --enable-dependency-tracking
1581                          do not reject slow dependency extractors
1582  --disable-dependency-tracking
1583                          speeds up one-time build
1584  --disable-largefile     omit support for large files
1585  --enable-static[=PKGS]  build static libraries [default=no]
1586  --enable-shared[=PKGS]  build shared libraries [default=yes]
1587  --enable-fast-install[=PKGS]
1588                          optimize for fast installation [default=yes]
1589  --disable-libtool-lock  avoid locking (might break parallel builds)
1590  --disable-nls           do not use Native Language Support
1591  --disable-rpath         do not hardcode runtime library paths
1592  --enable-iconv          Use iconv to support non-Unicode SFNT name
1593  --enable-libxml2        Use libxml2 instead of Expat
1594  --disable-docbook       Disable building docs with docbook2html (default:
1595                          no)
1596  --disable-docs          Don't build and install documentation
1597  --disable-cache-build   Don't run fc-cache during the build
1598
1599Optional Packages:
1600  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1601  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1602  --with-pkgconfigdir     pkg-config installation directory
1603                          ['${libdir}/pkgconfig']
1604  --with-python-sys-prefix
1605                          use Python's sys.prefix and sys.exec_prefix values
1606  --with-python_prefix    override the default PYTHON_PREFIX
1607  --with-python_exec_prefix
1608                          override the default PYTHON_EXEC_PREFIX
1609  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1610                          both]
1611  --with-aix-soname=aix|svr4|both
1612                          shared library versioning (aka "SONAME") variant to
1613                          provide on AIX, [default=aix].
1614  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1615  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1616                          compiler's sysroot if not specified).
1617  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1618  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1619  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1620  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1621  --without-libintl-prefix     don't search for libintl in includedir and libdir
1622  --with-arch=ARCH        Force architecture to ARCH
1623  --with-libiconv=DIR     Use libiconv in DIR
1624  --with-libiconv-includes=DIR
1625                          Use libiconv includes in DIR
1626  --with-libiconv-lib=DIR Use libiconv library in DIR
1627  --with-expat=DIR        Use Expat in DIR
1628  --with-expat-includes=DIR
1629                          Use Expat includes in DIR
1630  --with-expat-lib=DIR
1631  --with-default-sub-pixel-rendering=NAME
1632                          Enable your preferred sub-pixel rendering
1633                          configuration (none/bgr/rgb/vbgr/vrgb)
1634                          [default=none]
1635  --with-default-hinting=NAME
1636                          Enable your preferred hinting configuration
1637                          (none/slight/medium/full) [default=slight]
1638  --with-default-fonts=DIR1,DIR2,...
1639                          Use fonts from DIR1,DIR2,... when config is busted
1640  --with-add-fonts=DIR1,DIR2,...
1641                          Find additional fonts in DIR1,DIR2,...
1642  --with-cache-dir=DIR    Use DIR to store cache files
1643                          [default=LOCALSTATEDIR/cache/fontconfig]
1644  --with-templatedir=DIR  Use DIR to store the configuration template files
1645                          [default=DATADIR/fontconfig/conf.avail]
1646  --with-baseconfigdir=DIR
1647                          Use DIR to store the base configuration files
1648                          [default=SYSCONFDIR/fonts]
1649  --with-configdir=DIR    Use DIR to store active configuration files
1650                          [default=BASECONFIGDIR/conf.d]
1651  --with-xmldir=DIR       Use DIR to store XML schema files
1652                          [default=DATADIR/xml/fontconfig]
1653
1654Some influential environment variables:
1655  CC          C compiler command
1656  CFLAGS      C compiler flags
1657  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1658              nonstandard directory <lib dir>
1659  LIBS        libraries to pass to the linker, e.g. -l<library>
1660  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1661              you have headers in a nonstandard directory <include dir>
1662  PKG_CONFIG  path to pkg-config utility
1663  PKG_CONFIG_PATH
1664              directories to add to pkg-config's search path
1665  PKG_CONFIG_LIBDIR
1666              path overriding pkg-config's built-in search path
1667  PYTHON      the Python interpreter
1668  LT_SYS_LIBRARY_PATH
1669              User-defined run-time library search path.
1670  CPP         C preprocessor
1671  CC_FOR_BUILD
1672              build system C compiler
1673  FREETYPE_CFLAGS
1674              C compiler flags for FREETYPE, overriding pkg-config
1675  FREETYPE_LIBS
1676              linker flags for FREETYPE, overriding pkg-config
1677  EXPAT_CFLAGS
1678              C compiler flags for EXPAT, overriding pkg-config
1679  EXPAT_LIBS  linker flags for EXPAT, overriding pkg-config
1680  LIBXML2_CFLAGS
1681              C compiler flags for LIBXML2, overriding pkg-config
1682  LIBXML2_LIBS
1683              linker flags for LIBXML2, overriding pkg-config
1684  JSONC_CFLAGS
1685              C compiler flags for JSONC, overriding pkg-config
1686  JSONC_LIBS  linker flags for JSONC, overriding pkg-config
1687
1688Use these variables to override the choices made by `configure' or to help
1689it to find libraries and programs with nonstandard names/locations.
1690
1691Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
1692_ACEOF
1693ac_status=$?
1694fi
1695
1696if test "$ac_init_help" = "recursive"; then
1697  # If there are subdirs, report their specific --help.
1698  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699    test -d "$ac_dir" ||
1700      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701      continue
1702    ac_builddir=.
1703
1704case "$ac_dir" in
1705.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706*)
1707  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1708  # A ".." for each directory in $ac_dir_suffix.
1709  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710  case $ac_top_builddir_sub in
1711  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713  esac ;;
1714esac
1715ac_abs_top_builddir=$ac_pwd
1716ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717# for backward compatibility:
1718ac_top_builddir=$ac_top_build_prefix
1719
1720case $srcdir in
1721  .)  # We are building in place.
1722    ac_srcdir=.
1723    ac_top_srcdir=$ac_top_builddir_sub
1724    ac_abs_top_srcdir=$ac_pwd ;;
1725  [\\/]* | ?:[\\/]* )  # Absolute name.
1726    ac_srcdir=$srcdir$ac_dir_suffix;
1727    ac_top_srcdir=$srcdir
1728    ac_abs_top_srcdir=$srcdir ;;
1729  *) # Relative name.
1730    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731    ac_top_srcdir=$ac_top_build_prefix$srcdir
1732    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1733esac
1734ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735
1736    cd "$ac_dir" || { ac_status=$?; continue; }
1737    # Check for configure.gnu first; this name is used for a wrapper for
1738    # Metaconfig's "Configure" on case-insensitive file systems.
1739    if test -f "$ac_srcdir/configure.gnu"; then
1740      echo &&
1741      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742    elif test -f "$ac_srcdir/configure"; then
1743      echo &&
1744      $SHELL "$ac_srcdir/configure" --help=recursive
1745    else
1746      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747    fi || ac_status=$?
1748    cd "$ac_pwd" || { ac_status=$?; break; }
1749  done
1750fi
1751
1752test -n "$ac_init_help" && exit $ac_status
1753if $ac_init_version; then
1754  cat <<\_ACEOF
1755fontconfig configure 2.15.0
1756generated by GNU Autoconf 2.71
1757
1758Copyright (C) 2021 Free Software Foundation, Inc.
1759This configure script is free software; the Free Software Foundation
1760gives unlimited permission to copy, distribute and modify it.
1761_ACEOF
1762  exit
1763fi
1764
1765## ------------------------ ##
1766## Autoconf initialization. ##
1767## ------------------------ ##
1768
1769# ac_fn_c_try_compile LINENO
1770# --------------------------
1771# Try to compile conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_compile ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  rm -f conftest.$ac_objext conftest.beam
1776  if { { ac_try="$ac_compile"
1777case "(($ac_try" in
1778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779  *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782printf "%s\n" "$ac_try_echo"; } >&5
1783  (eval "$ac_compile") 2>conftest.err
1784  ac_status=$?
1785  if test -s conftest.err; then
1786    grep -v '^ *+' conftest.err >conftest.er1
1787    cat conftest.er1 >&5
1788    mv -f conftest.er1 conftest.err
1789  fi
1790  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; } && {
1792	 test -z "$ac_c_werror_flag" ||
1793	 test ! -s conftest.err
1794       } && test -s conftest.$ac_objext
1795then :
1796  ac_retval=0
1797else $as_nop
1798  printf "%s\n" "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801	ac_retval=1
1802fi
1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804  as_fn_set_status $ac_retval
1805
1806} # ac_fn_c_try_compile
1807
1808# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1809# -------------------------------------------------------
1810# Tests whether HEADER exists and can be compiled using the include files in
1811# INCLUDES, setting the cache variable VAR accordingly.
1812ac_fn_c_check_header_compile ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816printf %s "checking for $2... " >&6; }
1817if eval test \${$3+y}
1818then :
1819  printf %s "(cached) " >&6
1820else $as_nop
1821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h.  */
1823$4
1824#include <$2>
1825_ACEOF
1826if ac_fn_c_try_compile "$LINENO"
1827then :
1828  eval "$3=yes"
1829else $as_nop
1830  eval "$3=no"
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1833fi
1834eval ac_res=\$$3
1835	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836printf "%s\n" "$ac_res" >&6; }
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839} # ac_fn_c_check_header_compile
1840
1841# ac_fn_c_try_link LINENO
1842# -----------------------
1843# Try to link conftest.$ac_ext, and return whether this succeeded.
1844ac_fn_c_try_link ()
1845{
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1848  if { { ac_try="$ac_link"
1849case "(($ac_try" in
1850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851  *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854printf "%s\n" "$ac_try_echo"; } >&5
1855  (eval "$ac_link") 2>conftest.err
1856  ac_status=$?
1857  if test -s conftest.err; then
1858    grep -v '^ *+' conftest.err >conftest.er1
1859    cat conftest.er1 >&5
1860    mv -f conftest.er1 conftest.err
1861  fi
1862  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; } && {
1864	 test -z "$ac_c_werror_flag" ||
1865	 test ! -s conftest.err
1866       } && test -s conftest$ac_exeext && {
1867	 test "$cross_compiling" = yes ||
1868	 test -x conftest$ac_exeext
1869       }
1870then :
1871  ac_retval=0
1872else $as_nop
1873  printf "%s\n" "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876	ac_retval=1
1877fi
1878  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880  # interfere with the next link command; also delete a directory that is
1881  # left behind by Apple's compiler.  We do this before executing the actions.
1882  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884  as_fn_set_status $ac_retval
1885
1886} # ac_fn_c_try_link
1887
1888# ac_fn_c_check_func LINENO FUNC VAR
1889# ----------------------------------
1890# Tests whether FUNC exists, setting the cache variable VAR accordingly
1891ac_fn_c_check_func ()
1892{
1893  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895printf %s "checking for $2... " >&6; }
1896if eval test \${$3+y}
1897then :
1898  printf %s "(cached) " >&6
1899else $as_nop
1900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h.  */
1902/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1904#define $2 innocuous_$2
1905
1906/* System header to define __stub macros and hopefully few prototypes,
1907   which can conflict with char $2 (); below.  */
1908
1909#include <limits.h>
1910#undef $2
1911
1912/* Override any GCC internal prototype to avoid an error.
1913   Use char because int might match the return type of a GCC
1914   builtin and then its argument prototype would still apply.  */
1915#ifdef __cplusplus
1916extern "C"
1917#endif
1918char $2 ();
1919/* The GNU C library defines this for functions which it implements
1920    to always fail with ENOSYS.  Some functions are actually named
1921    something starting with __ and the normal name is an alias.  */
1922#if defined __stub_$2 || defined __stub___$2
1923choke me
1924#endif
1925
1926int
1927main (void)
1928{
1929return $2 ();
1930  ;
1931  return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_link "$LINENO"
1935then :
1936  eval "$3=yes"
1937else $as_nop
1938  eval "$3=no"
1939fi
1940rm -f core conftest.err conftest.$ac_objext conftest.beam \
1941    conftest$ac_exeext conftest.$ac_ext
1942fi
1943eval ac_res=\$$3
1944	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945printf "%s\n" "$ac_res" >&6; }
1946  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948} # ac_fn_c_check_func
1949
1950# ac_fn_c_try_cpp LINENO
1951# ----------------------
1952# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1953ac_fn_c_try_cpp ()
1954{
1955  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956  if { { ac_try="$ac_cpp conftest.$ac_ext"
1957case "(($ac_try" in
1958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959  *) ac_try_echo=$ac_try;;
1960esac
1961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962printf "%s\n" "$ac_try_echo"; } >&5
1963  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964  ac_status=$?
1965  if test -s conftest.err; then
1966    grep -v '^ *+' conftest.err >conftest.er1
1967    cat conftest.er1 >&5
1968    mv -f conftest.er1 conftest.err
1969  fi
1970  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971  test $ac_status = 0; } > conftest.i && {
1972	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1973	 test ! -s conftest.err
1974       }
1975then :
1976  ac_retval=0
1977else $as_nop
1978  printf "%s\n" "$as_me: failed program was:" >&5
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981    ac_retval=1
1982fi
1983  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984  as_fn_set_status $ac_retval
1985
1986} # ac_fn_c_try_cpp
1987
1988# ac_fn_c_try_run LINENO
1989# ----------------------
1990# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1991# executables *can* be run.
1992ac_fn_c_try_run ()
1993{
1994  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995  if { { ac_try="$ac_link"
1996case "(($ac_try" in
1997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998  *) ac_try_echo=$ac_try;;
1999esac
2000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001printf "%s\n" "$ac_try_echo"; } >&5
2002  (eval "$ac_link") 2>&5
2003  ac_status=$?
2004  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2006  { { case "(($ac_try" in
2007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008  *) ac_try_echo=$ac_try;;
2009esac
2010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011printf "%s\n" "$ac_try_echo"; } >&5
2012  (eval "$ac_try") 2>&5
2013  ac_status=$?
2014  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015  test $ac_status = 0; }; }
2016then :
2017  ac_retval=0
2018else $as_nop
2019  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2020       printf "%s\n" "$as_me: failed program was:" >&5
2021sed 's/^/| /' conftest.$ac_ext >&5
2022
2023       ac_retval=$ac_status
2024fi
2025  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027  as_fn_set_status $ac_retval
2028
2029} # ac_fn_c_try_run
2030
2031# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2032# ------------------------------------------------------------------
2033# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2034# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2035ac_fn_check_decl ()
2036{
2037  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038  as_decl_name=`echo $2|sed 's/ *(.*//'`
2039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2040printf %s "checking whether $as_decl_name is declared... " >&6; }
2041if eval test \${$3+y}
2042then :
2043  printf %s "(cached) " >&6
2044else $as_nop
2045  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2046  eval ac_save_FLAGS=\$$6
2047  as_fn_append $6 " $5"
2048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h.  */
2050$4
2051int
2052main (void)
2053{
2054#ifndef $as_decl_name
2055#ifdef __cplusplus
2056  (void) $as_decl_use;
2057#else
2058  (void) $as_decl_name;
2059#endif
2060#endif
2061
2062  ;
2063  return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_compile "$LINENO"
2067then :
2068  eval "$3=yes"
2069else $as_nop
2070  eval "$3=no"
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2073  eval $6=\$ac_save_FLAGS
2074
2075fi
2076eval ac_res=\$$3
2077	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078printf "%s\n" "$ac_res" >&6; }
2079  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081} # ac_fn_check_decl
2082
2083# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2084# -------------------------------------------
2085# Tests whether TYPE exists after having included INCLUDES, setting cache
2086# variable VAR accordingly.
2087ac_fn_c_check_type ()
2088{
2089  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091printf %s "checking for $2... " >&6; }
2092if eval test \${$3+y}
2093then :
2094  printf %s "(cached) " >&6
2095else $as_nop
2096  eval "$3=no"
2097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h.  */
2099$4
2100int
2101main (void)
2102{
2103if (sizeof ($2))
2104	 return 0;
2105  ;
2106  return 0;
2107}
2108_ACEOF
2109if ac_fn_c_try_compile "$LINENO"
2110then :
2111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112/* end confdefs.h.  */
2113$4
2114int
2115main (void)
2116{
2117if (sizeof (($2)))
2118	    return 0;
2119  ;
2120  return 0;
2121}
2122_ACEOF
2123if ac_fn_c_try_compile "$LINENO"
2124then :
2125
2126else $as_nop
2127  eval "$3=yes"
2128fi
2129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2130fi
2131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2132fi
2133eval ac_res=\$$3
2134	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135printf "%s\n" "$ac_res" >&6; }
2136  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138} # ac_fn_c_check_type
2139
2140# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2141# --------------------------------------------
2142# Tries to find the compile-time value of EXPR in a program that includes
2143# INCLUDES, setting VAR accordingly. Returns whether the value could be
2144# computed
2145ac_fn_c_compute_int ()
2146{
2147  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148  if test "$cross_compiling" = yes; then
2149    # Depending upon the size, compute the lo and hi bounds.
2150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151/* end confdefs.h.  */
2152$4
2153int
2154main (void)
2155{
2156static int test_array [1 - 2 * !(($2) >= 0)];
2157test_array [0] = 0;
2158return test_array [0];
2159
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164if ac_fn_c_try_compile "$LINENO"
2165then :
2166  ac_lo=0 ac_mid=0
2167  while :; do
2168    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170$4
2171int
2172main (void)
2173{
2174static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175test_array [0] = 0;
2176return test_array [0];
2177
2178  ;
2179  return 0;
2180}
2181_ACEOF
2182if ac_fn_c_try_compile "$LINENO"
2183then :
2184  ac_hi=$ac_mid; break
2185else $as_nop
2186  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2187			if test $ac_lo -le $ac_mid; then
2188			  ac_lo= ac_hi=
2189			  break
2190			fi
2191			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2194  done
2195else $as_nop
2196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h.  */
2198$4
2199int
2200main (void)
2201{
2202static int test_array [1 - 2 * !(($2) < 0)];
2203test_array [0] = 0;
2204return test_array [0];
2205
2206  ;
2207  return 0;
2208}
2209_ACEOF
2210if ac_fn_c_try_compile "$LINENO"
2211then :
2212  ac_hi=-1 ac_mid=-1
2213  while :; do
2214    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h.  */
2216$4
2217int
2218main (void)
2219{
2220static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2221test_array [0] = 0;
2222return test_array [0];
2223
2224  ;
2225  return 0;
2226}
2227_ACEOF
2228if ac_fn_c_try_compile "$LINENO"
2229then :
2230  ac_lo=$ac_mid; break
2231else $as_nop
2232  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2233			if test $ac_mid -le $ac_hi; then
2234			  ac_lo= ac_hi=
2235			  break
2236			fi
2237			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2238fi
2239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2240  done
2241else $as_nop
2242  ac_lo= ac_hi=
2243fi
2244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2245fi
2246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2247# Binary search between lo and hi bounds.
2248while test "x$ac_lo" != "x$ac_hi"; do
2249  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251/* end confdefs.h.  */
2252$4
2253int
2254main (void)
2255{
2256static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2257test_array [0] = 0;
2258return test_array [0];
2259
2260  ;
2261  return 0;
2262}
2263_ACEOF
2264if ac_fn_c_try_compile "$LINENO"
2265then :
2266  ac_hi=$ac_mid
2267else $as_nop
2268  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2269fi
2270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2271done
2272case $ac_lo in #((
2273?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2274'') ac_retval=1 ;;
2275esac
2276  else
2277    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h.  */
2279$4
2280static long int longval (void) { return $2; }
2281static unsigned long int ulongval (void) { return $2; }
2282#include <stdio.h>
2283#include <stdlib.h>
2284int
2285main (void)
2286{
2287
2288  FILE *f = fopen ("conftest.val", "w");
2289  if (! f)
2290    return 1;
2291  if (($2) < 0)
2292    {
2293      long int i = longval ();
2294      if (i != ($2))
2295	return 1;
2296      fprintf (f, "%ld", i);
2297    }
2298  else
2299    {
2300      unsigned long int i = ulongval ();
2301      if (i != ($2))
2302	return 1;
2303      fprintf (f, "%lu", i);
2304    }
2305  /* Do not output a trailing newline, as this causes \r\n confusion
2306     on some platforms.  */
2307  return ferror (f) || fclose (f) != 0;
2308
2309  ;
2310  return 0;
2311}
2312_ACEOF
2313if ac_fn_c_try_run "$LINENO"
2314then :
2315  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2316else $as_nop
2317  ac_retval=1
2318fi
2319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2320  conftest.$ac_objext conftest.beam conftest.$ac_ext
2321rm -f conftest.val
2322
2323  fi
2324  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2325  as_fn_set_status $ac_retval
2326
2327} # ac_fn_c_compute_int
2328
2329# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2330# ----------------------------------------------------
2331# Tries to find if the field MEMBER exists in type AGGR, after including
2332# INCLUDES, setting cache variable VAR accordingly.
2333ac_fn_c_check_member ()
2334{
2335  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2337printf %s "checking for $2.$3... " >&6; }
2338if eval test \${$4+y}
2339then :
2340  printf %s "(cached) " >&6
2341else $as_nop
2342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343/* end confdefs.h.  */
2344$5
2345int
2346main (void)
2347{
2348static $2 ac_aggr;
2349if (ac_aggr.$3)
2350return 0;
2351  ;
2352  return 0;
2353}
2354_ACEOF
2355if ac_fn_c_try_compile "$LINENO"
2356then :
2357  eval "$4=yes"
2358else $as_nop
2359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360/* end confdefs.h.  */
2361$5
2362int
2363main (void)
2364{
2365static $2 ac_aggr;
2366if (sizeof ac_aggr.$3)
2367return 0;
2368  ;
2369  return 0;
2370}
2371_ACEOF
2372if ac_fn_c_try_compile "$LINENO"
2373then :
2374  eval "$4=yes"
2375else $as_nop
2376  eval "$4=no"
2377fi
2378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2379fi
2380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2381fi
2382eval ac_res=\$$4
2383	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384printf "%s\n" "$ac_res" >&6; }
2385  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2386
2387} # ac_fn_c_check_member
2388ac_configure_args_raw=
2389for ac_arg
2390do
2391  case $ac_arg in
2392  *\'*)
2393    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2394  esac
2395  as_fn_append ac_configure_args_raw " '$ac_arg'"
2396done
2397
2398case $ac_configure_args_raw in
2399  *$as_nl*)
2400    ac_safe_unquote= ;;
2401  *)
2402    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2403    ac_unsafe_a="$ac_unsafe_z#~"
2404    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2405    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2406esac
2407
2408cat >config.log <<_ACEOF
2409This file contains any messages produced by compilers while
2410running configure, to aid debugging if configure makes a mistake.
2411
2412It was created by fontconfig $as_me 2.15.0, which was
2413generated by GNU Autoconf 2.71.  Invocation command line was
2414
2415  $ $0$ac_configure_args_raw
2416
2417_ACEOF
2418exec 5>>config.log
2419{
2420cat <<_ASUNAME
2421## --------- ##
2422## Platform. ##
2423## --------- ##
2424
2425hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2426uname -m = `(uname -m) 2>/dev/null || echo unknown`
2427uname -r = `(uname -r) 2>/dev/null || echo unknown`
2428uname -s = `(uname -s) 2>/dev/null || echo unknown`
2429uname -v = `(uname -v) 2>/dev/null || echo unknown`
2430
2431/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2432/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2433
2434/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2435/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2436/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2437/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2438/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2439/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2440/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2441
2442_ASUNAME
2443
2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447  IFS=$as_save_IFS
2448  case $as_dir in #(((
2449    '') as_dir=./ ;;
2450    */) ;;
2451    *) as_dir=$as_dir/ ;;
2452  esac
2453    printf "%s\n" "PATH: $as_dir"
2454  done
2455IFS=$as_save_IFS
2456
2457} >&5
2458
2459cat >&5 <<_ACEOF
2460
2461
2462## ----------- ##
2463## Core tests. ##
2464## ----------- ##
2465
2466_ACEOF
2467
2468
2469# Keep a trace of the command line.
2470# Strip out --no-create and --no-recursion so they do not pile up.
2471# Strip out --silent because we don't want to record it for future runs.
2472# Also quote any args containing shell meta-characters.
2473# Make two passes to allow for proper duplicate-argument suppression.
2474ac_configure_args=
2475ac_configure_args0=
2476ac_configure_args1=
2477ac_must_keep_next=false
2478for ac_pass in 1 2
2479do
2480  for ac_arg
2481  do
2482    case $ac_arg in
2483    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2484    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2485    | -silent | --silent | --silen | --sile | --sil)
2486      continue ;;
2487    *\'*)
2488      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2489    esac
2490    case $ac_pass in
2491    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2492    2)
2493      as_fn_append ac_configure_args1 " '$ac_arg'"
2494      if test $ac_must_keep_next = true; then
2495	ac_must_keep_next=false # Got value, back to normal.
2496      else
2497	case $ac_arg in
2498	  *=* | --config-cache | -C | -disable-* | --disable-* \
2499	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2500	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2501	  | -with-* | --with-* | -without-* | --without-* | --x)
2502	    case "$ac_configure_args0 " in
2503	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2504	    esac
2505	    ;;
2506	  -* ) ac_must_keep_next=true ;;
2507	esac
2508      fi
2509      as_fn_append ac_configure_args " '$ac_arg'"
2510      ;;
2511    esac
2512  done
2513done
2514{ ac_configure_args0=; unset ac_configure_args0;}
2515{ ac_configure_args1=; unset ac_configure_args1;}
2516
2517# When interrupted or exit'd, cleanup temporary files, and complete
2518# config.log.  We remove comments because anyway the quotes in there
2519# would cause problems or look ugly.
2520# WARNING: Use '\'' to represent an apostrophe within the trap.
2521# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2522trap 'exit_status=$?
2523  # Sanitize IFS.
2524  IFS=" ""	$as_nl"
2525  # Save into config.log some information that might help in debugging.
2526  {
2527    echo
2528
2529    printf "%s\n" "## ---------------- ##
2530## Cache variables. ##
2531## ---------------- ##"
2532    echo
2533    # The following way of writing the cache mishandles newlines in values,
2534(
2535  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2536    eval ac_val=\$$ac_var
2537    case $ac_val in #(
2538    *${as_nl}*)
2539      case $ac_var in #(
2540      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2541printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2542      esac
2543      case $ac_var in #(
2544      _ | IFS | as_nl) ;; #(
2545      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2546      *) { eval $ac_var=; unset $ac_var;} ;;
2547      esac ;;
2548    esac
2549  done
2550  (set) 2>&1 |
2551    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2552    *${as_nl}ac_space=\ *)
2553      sed -n \
2554	"s/'\''/'\''\\\\'\'''\''/g;
2555	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2556      ;; #(
2557    *)
2558      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2559      ;;
2560    esac |
2561    sort
2562)
2563    echo
2564
2565    printf "%s\n" "## ----------------- ##
2566## Output variables. ##
2567## ----------------- ##"
2568    echo
2569    for ac_var in $ac_subst_vars
2570    do
2571      eval ac_val=\$$ac_var
2572      case $ac_val in
2573      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2574      esac
2575      printf "%s\n" "$ac_var='\''$ac_val'\''"
2576    done | sort
2577    echo
2578
2579    if test -n "$ac_subst_files"; then
2580      printf "%s\n" "## ------------------- ##
2581## File substitutions. ##
2582## ------------------- ##"
2583      echo
2584      for ac_var in $ac_subst_files
2585      do
2586	eval ac_val=\$$ac_var
2587	case $ac_val in
2588	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2589	esac
2590	printf "%s\n" "$ac_var='\''$ac_val'\''"
2591      done | sort
2592      echo
2593    fi
2594
2595    if test -s confdefs.h; then
2596      printf "%s\n" "## ----------- ##
2597## confdefs.h. ##
2598## ----------- ##"
2599      echo
2600      cat confdefs.h
2601      echo
2602    fi
2603    test "$ac_signal" != 0 &&
2604      printf "%s\n" "$as_me: caught signal $ac_signal"
2605    printf "%s\n" "$as_me: exit $exit_status"
2606  } >&5
2607  rm -f core *.core core.conftest.* &&
2608    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2609    exit $exit_status
2610' 0
2611for ac_signal in 1 2 13 15; do
2612  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2613done
2614ac_signal=0
2615
2616# confdefs.h avoids OS command line length limits that DEFS can exceed.
2617rm -f -r conftest* confdefs.h
2618
2619printf "%s\n" "/* confdefs.h */" > confdefs.h
2620
2621# Predefined preprocessor variables.
2622
2623printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2624
2625printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2626
2627printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2628
2629printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2630
2631printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2632
2633printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2634
2635
2636# Let the site file select an alternate cache file if it wants to.
2637# Prefer an explicitly selected file to automatically selected ones.
2638if test -n "$CONFIG_SITE"; then
2639  ac_site_files="$CONFIG_SITE"
2640elif test "x$prefix" != xNONE; then
2641  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2642else
2643  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2644fi
2645
2646for ac_site_file in $ac_site_files
2647do
2648  case $ac_site_file in #(
2649  */*) :
2650     ;; #(
2651  *) :
2652    ac_site_file=./$ac_site_file ;;
2653esac
2654  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2655    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2656printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2657    sed 's/^/| /' "$ac_site_file" >&5
2658    . "$ac_site_file" \
2659      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2661as_fn_error $? "failed to load site script $ac_site_file
2662See \`config.log' for more details" "$LINENO" 5; }
2663  fi
2664done
2665
2666if test -r "$cache_file"; then
2667  # Some versions of bash will fail to source /dev/null (special files
2668  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2669  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2670    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2671printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2672    case $cache_file in
2673      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2674      *)                      . "./$cache_file";;
2675    esac
2676  fi
2677else
2678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2679printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2680  >$cache_file
2681fi
2682
2683# Test code for whether the C compiler supports C89 (global declarations)
2684ac_c_conftest_c89_globals='
2685/* Does the compiler advertise C89 conformance?
2686   Do not test the value of __STDC__, because some compilers set it to 0
2687   while being otherwise adequately conformant. */
2688#if !defined __STDC__
2689# error "Compiler does not advertise C89 conformance"
2690#endif
2691
2692#include <stddef.h>
2693#include <stdarg.h>
2694struct stat;
2695/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2696struct buf { int x; };
2697struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2698static char *e (p, i)
2699     char **p;
2700     int i;
2701{
2702  return p[i];
2703}
2704static char *f (char * (*g) (char **, int), char **p, ...)
2705{
2706  char *s;
2707  va_list v;
2708  va_start (v,p);
2709  s = g (p, va_arg (v,int));
2710  va_end (v);
2711  return s;
2712}
2713
2714/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2715   function prototypes and stuff, but not \xHH hex character constants.
2716   These do not provoke an error unfortunately, instead are silently treated
2717   as an "x".  The following induces an error, until -std is added to get
2718   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2719   array size at least.  It is necessary to write \x00 == 0 to get something
2720   that is true only with -std.  */
2721int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2722
2723/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2724   inside strings and character constants.  */
2725#define FOO(x) '\''x'\''
2726int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2727
2728int test (int i, double x);
2729struct s1 {int (*f) (int a);};
2730struct s2 {int (*f) (double a);};
2731int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2732               int, int);'
2733
2734# Test code for whether the C compiler supports C89 (body of main).
2735ac_c_conftest_c89_main='
2736ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2737'
2738
2739# Test code for whether the C compiler supports C99 (global declarations)
2740ac_c_conftest_c99_globals='
2741// Does the compiler advertise C99 conformance?
2742#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2743# error "Compiler does not advertise C99 conformance"
2744#endif
2745
2746#include <stdbool.h>
2747extern int puts (const char *);
2748extern int printf (const char *, ...);
2749extern int dprintf (int, const char *, ...);
2750extern void *malloc (size_t);
2751
2752// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2753// dprintf is used instead of fprintf to avoid needing to declare
2754// FILE and stderr.
2755#define debug(...) dprintf (2, __VA_ARGS__)
2756#define showlist(...) puts (#__VA_ARGS__)
2757#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2758static void
2759test_varargs_macros (void)
2760{
2761  int x = 1234;
2762  int y = 5678;
2763  debug ("Flag");
2764  debug ("X = %d\n", x);
2765  showlist (The first, second, and third items.);
2766  report (x>y, "x is %d but y is %d", x, y);
2767}
2768
2769// Check long long types.
2770#define BIG64 18446744073709551615ull
2771#define BIG32 4294967295ul
2772#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2773#if !BIG_OK
2774  #error "your preprocessor is broken"
2775#endif
2776#if BIG_OK
2777#else
2778  #error "your preprocessor is broken"
2779#endif
2780static long long int bignum = -9223372036854775807LL;
2781static unsigned long long int ubignum = BIG64;
2782
2783struct incomplete_array
2784{
2785  int datasize;
2786  double data[];
2787};
2788
2789struct named_init {
2790  int number;
2791  const wchar_t *name;
2792  double average;
2793};
2794
2795typedef const char *ccp;
2796
2797static inline int
2798test_restrict (ccp restrict text)
2799{
2800  // See if C++-style comments work.
2801  // Iterate through items via the restricted pointer.
2802  // Also check for declarations in for loops.
2803  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2804    continue;
2805  return 0;
2806}
2807
2808// Check varargs and va_copy.
2809static bool
2810test_varargs (const char *format, ...)
2811{
2812  va_list args;
2813  va_start (args, format);
2814  va_list args_copy;
2815  va_copy (args_copy, args);
2816
2817  const char *str = "";
2818  int number = 0;
2819  float fnumber = 0;
2820
2821  while (*format)
2822    {
2823      switch (*format++)
2824	{
2825	case '\''s'\'': // string
2826	  str = va_arg (args_copy, const char *);
2827	  break;
2828	case '\''d'\'': // int
2829	  number = va_arg (args_copy, int);
2830	  break;
2831	case '\''f'\'': // float
2832	  fnumber = va_arg (args_copy, double);
2833	  break;
2834	default:
2835	  break;
2836	}
2837    }
2838  va_end (args_copy);
2839  va_end (args);
2840
2841  return *str && number && fnumber;
2842}
2843'
2844
2845# Test code for whether the C compiler supports C99 (body of main).
2846ac_c_conftest_c99_main='
2847  // Check bool.
2848  _Bool success = false;
2849  success |= (argc != 0);
2850
2851  // Check restrict.
2852  if (test_restrict ("String literal") == 0)
2853    success = true;
2854  char *restrict newvar = "Another string";
2855
2856  // Check varargs.
2857  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2858  test_varargs_macros ();
2859
2860  // Check flexible array members.
2861  struct incomplete_array *ia =
2862    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2863  ia->datasize = 10;
2864  for (int i = 0; i < ia->datasize; ++i)
2865    ia->data[i] = i * 1.234;
2866
2867  // Check named initializers.
2868  struct named_init ni = {
2869    .number = 34,
2870    .name = L"Test wide string",
2871    .average = 543.34343,
2872  };
2873
2874  ni.number = 58;
2875
2876  int dynamic_array[ni.number];
2877  dynamic_array[0] = argv[0][0];
2878  dynamic_array[ni.number - 1] = 543;
2879
2880  // work around unused variable warnings
2881  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2882	 || dynamic_array[ni.number - 1] != 543);
2883'
2884
2885# Test code for whether the C compiler supports C11 (global declarations)
2886ac_c_conftest_c11_globals='
2887// Does the compiler advertise C11 conformance?
2888#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2889# error "Compiler does not advertise C11 conformance"
2890#endif
2891
2892// Check _Alignas.
2893char _Alignas (double) aligned_as_double;
2894char _Alignas (0) no_special_alignment;
2895extern char aligned_as_int;
2896char _Alignas (0) _Alignas (int) aligned_as_int;
2897
2898// Check _Alignof.
2899enum
2900{
2901  int_alignment = _Alignof (int),
2902  int_array_alignment = _Alignof (int[100]),
2903  char_alignment = _Alignof (char)
2904};
2905_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2906
2907// Check _Noreturn.
2908int _Noreturn does_not_return (void) { for (;;) continue; }
2909
2910// Check _Static_assert.
2911struct test_static_assert
2912{
2913  int x;
2914  _Static_assert (sizeof (int) <= sizeof (long int),
2915                  "_Static_assert does not work in struct");
2916  long int y;
2917};
2918
2919// Check UTF-8 literals.
2920#define u8 syntax error!
2921char const utf8_literal[] = u8"happens to be ASCII" "another string";
2922
2923// Check duplicate typedefs.
2924typedef long *long_ptr;
2925typedef long int *long_ptr;
2926typedef long_ptr long_ptr;
2927
2928// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2929struct anonymous
2930{
2931  union {
2932    struct { int i; int j; };
2933    struct { int k; long int l; } w;
2934  };
2935  int m;
2936} v1;
2937'
2938
2939# Test code for whether the C compiler supports C11 (body of main).
2940ac_c_conftest_c11_main='
2941  _Static_assert ((offsetof (struct anonymous, i)
2942		   == offsetof (struct anonymous, w.k)),
2943		  "Anonymous union alignment botch");
2944  v1.i = 2;
2945  v1.w.k = 5;
2946  ok |= v1.i != 5;
2947'
2948
2949# Test code for whether the C compiler supports C11 (complete).
2950ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2951${ac_c_conftest_c99_globals}
2952${ac_c_conftest_c11_globals}
2953
2954int
2955main (int argc, char **argv)
2956{
2957  int ok = 0;
2958  ${ac_c_conftest_c89_main}
2959  ${ac_c_conftest_c99_main}
2960  ${ac_c_conftest_c11_main}
2961  return ok;
2962}
2963"
2964
2965# Test code for whether the C compiler supports C99 (complete).
2966ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2967${ac_c_conftest_c99_globals}
2968
2969int
2970main (int argc, char **argv)
2971{
2972  int ok = 0;
2973  ${ac_c_conftest_c89_main}
2974  ${ac_c_conftest_c99_main}
2975  return ok;
2976}
2977"
2978
2979# Test code for whether the C compiler supports C89 (complete).
2980ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2981
2982int
2983main (int argc, char **argv)
2984{
2985  int ok = 0;
2986  ${ac_c_conftest_c89_main}
2987  return ok;
2988}
2989"
2990
2991as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2992as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2993as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2994as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2995as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2996as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2997as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2998as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2999as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3000as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3001as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3002gt_needs="$gt_needs "
3003as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3004as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3005as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
3006
3007# Auxiliary files required by this configure script.
3008ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile missing install-sh"
3009
3010# Locations in which to look for auxiliary files.
3011ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3012
3013# Search for a directory containing all of the required auxiliary files,
3014# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3015# If we don't find one directory that contains all the files we need,
3016# we report the set of missing files from the *first* directory in
3017# $ac_aux_dir_candidates and give up.
3018ac_missing_aux_files=""
3019ac_first_candidate=:
3020printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022as_found=false
3023for as_dir in $ac_aux_dir_candidates
3024do
3025  IFS=$as_save_IFS
3026  case $as_dir in #(((
3027    '') as_dir=./ ;;
3028    */) ;;
3029    *) as_dir=$as_dir/ ;;
3030  esac
3031  as_found=:
3032
3033  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3034  ac_aux_dir_found=yes
3035  ac_install_sh=
3036  for ac_aux in $ac_aux_files
3037  do
3038    # As a special case, if "install-sh" is required, that requirement
3039    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3040    # and $ac_install_sh is set appropriately for whichever one is found.
3041    if test x"$ac_aux" = x"install-sh"
3042    then
3043      if test -f "${as_dir}install-sh"; then
3044        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3045        ac_install_sh="${as_dir}install-sh -c"
3046      elif test -f "${as_dir}install.sh"; then
3047        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3048        ac_install_sh="${as_dir}install.sh -c"
3049      elif test -f "${as_dir}shtool"; then
3050        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3051        ac_install_sh="${as_dir}shtool install -c"
3052      else
3053        ac_aux_dir_found=no
3054        if $ac_first_candidate; then
3055          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3056        else
3057          break
3058        fi
3059      fi
3060    else
3061      if test -f "${as_dir}${ac_aux}"; then
3062        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3063      else
3064        ac_aux_dir_found=no
3065        if $ac_first_candidate; then
3066          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3067        else
3068          break
3069        fi
3070      fi
3071    fi
3072  done
3073  if test "$ac_aux_dir_found" = yes; then
3074    ac_aux_dir="$as_dir"
3075    break
3076  fi
3077  ac_first_candidate=false
3078
3079  as_found=false
3080done
3081IFS=$as_save_IFS
3082if $as_found
3083then :
3084
3085else $as_nop
3086  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3087fi
3088
3089
3090# These three variables are undocumented and unsupported,
3091# and are intended to be withdrawn in a future Autoconf release.
3092# They can cause serious problems if a builder's source tree is in a directory
3093# whose full name contains unusual characters.
3094if test -f "${ac_aux_dir}config.guess"; then
3095  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3096fi
3097if test -f "${ac_aux_dir}config.sub"; then
3098  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3099fi
3100if test -f "$ac_aux_dir/configure"; then
3101  ac_configure="$SHELL ${ac_aux_dir}configure"
3102fi
3103
3104# Check that the precious variables saved in the cache have kept the same
3105# value.
3106ac_cache_corrupted=false
3107for ac_var in $ac_precious_vars; do
3108  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3109  eval ac_new_set=\$ac_env_${ac_var}_set
3110  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3111  eval ac_new_val=\$ac_env_${ac_var}_value
3112  case $ac_old_set,$ac_new_set in
3113    set,)
3114      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3115printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3116      ac_cache_corrupted=: ;;
3117    ,set)
3118      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3119printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3120      ac_cache_corrupted=: ;;
3121    ,);;
3122    *)
3123      if test "x$ac_old_val" != "x$ac_new_val"; then
3124	# differences in whitespace do not lead to failure.
3125	ac_old_val_w=`echo x $ac_old_val`
3126	ac_new_val_w=`echo x $ac_new_val`
3127	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3128	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3129printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3130	  ac_cache_corrupted=:
3131	else
3132	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3133printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3134	  eval $ac_var=\$ac_old_val
3135	fi
3136	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3137printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3139printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3140      fi;;
3141  esac
3142  # Pass precious variables to config.status.
3143  if test "$ac_new_set" = set; then
3144    case $ac_new_val in
3145    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3146    *) ac_arg=$ac_var=$ac_new_val ;;
3147    esac
3148    case " $ac_configure_args " in
3149      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3150      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3151    esac
3152  fi
3153done
3154if $ac_cache_corrupted; then
3155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3158printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3159  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3160	    and start over" "$LINENO" 5
3161fi
3162## -------------------- ##
3163## Main body of script. ##
3164## -------------------- ##
3165
3166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173am__api_version='1.16'
3174
3175
3176
3177  # Find a good install program.  We prefer a C program (faster),
3178# so one script is as good as another.  But avoid the broken or
3179# incompatible versions:
3180# SysV /etc/install, /usr/sbin/install
3181# SunOS /usr/etc/install
3182# IRIX /sbin/install
3183# AIX /bin/install
3184# AmigaOS /C/install, which installs bootblocks on floppy discs
3185# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3186# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3187# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3188# OS/2's system install, which has a completely different semantic
3189# ./install, which can be erroneously created by make from ./install.sh.
3190# Reject install programs that cannot install multiple files.
3191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3192printf %s "checking for a BSD-compatible install... " >&6; }
3193if test -z "$INSTALL"; then
3194if test ${ac_cv_path_install+y}
3195then :
3196  printf %s "(cached) " >&6
3197else $as_nop
3198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201  IFS=$as_save_IFS
3202  case $as_dir in #(((
3203    '') as_dir=./ ;;
3204    */) ;;
3205    *) as_dir=$as_dir/ ;;
3206  esac
3207    # Account for fact that we put trailing slashes in our PATH walk.
3208case $as_dir in #((
3209  ./ | /[cC]/* | \
3210  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3211  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3212  /usr/ucb/* ) ;;
3213  *)
3214    # OSF1 and SCO ODT 3.0 have their own names for install.
3215    # Don't use installbsd from OSF since it installs stuff as root
3216    # by default.
3217    for ac_prog in ginstall scoinst install; do
3218      for ac_exec_ext in '' $ac_executable_extensions; do
3219	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3220	  if test $ac_prog = install &&
3221	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3222	    # AIX install.  It has an incompatible calling convention.
3223	    :
3224	  elif test $ac_prog = install &&
3225	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3226	    # program-specific install script used by HP pwplus--don't use.
3227	    :
3228	  else
3229	    rm -rf conftest.one conftest.two conftest.dir
3230	    echo one > conftest.one
3231	    echo two > conftest.two
3232	    mkdir conftest.dir
3233	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3234	      test -s conftest.one && test -s conftest.two &&
3235	      test -s conftest.dir/conftest.one &&
3236	      test -s conftest.dir/conftest.two
3237	    then
3238	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3239	      break 3
3240	    fi
3241	  fi
3242	fi
3243      done
3244    done
3245    ;;
3246esac
3247
3248  done
3249IFS=$as_save_IFS
3250
3251rm -rf conftest.one conftest.two conftest.dir
3252
3253fi
3254  if test ${ac_cv_path_install+y}; then
3255    INSTALL=$ac_cv_path_install
3256  else
3257    # As a last resort, use the slow shell script.  Don't cache a
3258    # value for INSTALL within a source directory, because that will
3259    # break other packages using the cache if that directory is
3260    # removed, or if the value is a relative name.
3261    INSTALL=$ac_install_sh
3262  fi
3263fi
3264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3265printf "%s\n" "$INSTALL" >&6; }
3266
3267# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3268# It thinks the first close brace ends the variable substitution.
3269test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3270
3271test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3272
3273test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3274
3275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3276printf %s "checking whether build environment is sane... " >&6; }
3277# Reject unsafe characters in $srcdir or the absolute working directory
3278# name.  Accept space and tab only in the latter.
3279am_lf='
3280'
3281case `pwd` in
3282  *[\\\"\#\$\&\'\`$am_lf]*)
3283    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3284esac
3285case $srcdir in
3286  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3287    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3288esac
3289
3290# Do 'set' in a subshell so we don't clobber the current shell's
3291# arguments.  Must try -L first in case configure is actually a
3292# symlink; some systems play weird games with the mod time of symlinks
3293# (eg FreeBSD returns the mod time of the symlink's containing
3294# directory).
3295if (
3296   am_has_slept=no
3297   for am_try in 1 2; do
3298     echo "timestamp, slept: $am_has_slept" > conftest.file
3299     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3300     if test "$*" = "X"; then
3301	# -L didn't work.
3302	set X `ls -t "$srcdir/configure" conftest.file`
3303     fi
3304     if test "$*" != "X $srcdir/configure conftest.file" \
3305	&& test "$*" != "X conftest.file $srcdir/configure"; then
3306
3307	# If neither matched, then we have a broken ls.  This can happen
3308	# if, for instance, CONFIG_SHELL is bash and it inherits a
3309	# broken ls alias from the environment.  This has actually
3310	# happened.  Such a system could not be considered "sane".
3311	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3312  alias in your environment" "$LINENO" 5
3313     fi
3314     if test "$2" = conftest.file || test $am_try -eq 2; then
3315       break
3316     fi
3317     # Just in case.
3318     sleep 1
3319     am_has_slept=yes
3320   done
3321   test "$2" = conftest.file
3322   )
3323then
3324   # Ok.
3325   :
3326else
3327   as_fn_error $? "newly created file is older than distributed files!
3328Check your system clock" "$LINENO" 5
3329fi
3330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331printf "%s\n" "yes" >&6; }
3332# If we didn't sleep, we still need to ensure time stamps of config.status and
3333# generated files are strictly newer.
3334am_sleep_pid=
3335if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3336  ( sleep 1 ) &
3337  am_sleep_pid=$!
3338fi
3339
3340rm -f conftest.file
3341
3342test "$program_prefix" != NONE &&
3343  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3344# Use a double $ so make ignores it.
3345test "$program_suffix" != NONE &&
3346  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3347# Double any \ or $.
3348# By default was `s,x,x', remove it if useless.
3349ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3350program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3351
3352
3353# Expand $ac_aux_dir to an absolute path.
3354am_aux_dir=`cd "$ac_aux_dir" && pwd`
3355
3356
3357  if test x"${MISSING+set}" != xset; then
3358  MISSING="\${SHELL} '$am_aux_dir/missing'"
3359fi
3360# Use eval to expand $SHELL
3361if eval "$MISSING --is-lightweight"; then
3362  am_missing_run="$MISSING "
3363else
3364  am_missing_run=
3365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3366printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3367fi
3368
3369if test x"${install_sh+set}" != xset; then
3370  case $am_aux_dir in
3371  *\ * | *\	*)
3372    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3373  *)
3374    install_sh="\${SHELL} $am_aux_dir/install-sh"
3375  esac
3376fi
3377
3378# Installed binaries are usually stripped using 'strip' when the user
3379# run "make install-strip".  However 'strip' might not be the right
3380# tool to use in cross-compilation environments, therefore Automake
3381# will honor the 'STRIP' environment variable to overrule this program.
3382if test "$cross_compiling" != no; then
3383  if test -n "$ac_tool_prefix"; then
3384  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3385set dummy ${ac_tool_prefix}strip; ac_word=$2
3386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387printf %s "checking for $ac_word... " >&6; }
3388if test ${ac_cv_prog_STRIP+y}
3389then :
3390  printf %s "(cached) " >&6
3391else $as_nop
3392  if test -n "$STRIP"; then
3393  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3394else
3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396for as_dir in $PATH
3397do
3398  IFS=$as_save_IFS
3399  case $as_dir in #(((
3400    '') as_dir=./ ;;
3401    */) ;;
3402    *) as_dir=$as_dir/ ;;
3403  esac
3404    for ac_exec_ext in '' $ac_executable_extensions; do
3405  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3406    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3407    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3408    break 2
3409  fi
3410done
3411  done
3412IFS=$as_save_IFS
3413
3414fi
3415fi
3416STRIP=$ac_cv_prog_STRIP
3417if test -n "$STRIP"; then
3418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3419printf "%s\n" "$STRIP" >&6; }
3420else
3421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422printf "%s\n" "no" >&6; }
3423fi
3424
3425
3426fi
3427if test -z "$ac_cv_prog_STRIP"; then
3428  ac_ct_STRIP=$STRIP
3429  # Extract the first word of "strip", so it can be a program name with args.
3430set dummy strip; ac_word=$2
3431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432printf %s "checking for $ac_word... " >&6; }
3433if test ${ac_cv_prog_ac_ct_STRIP+y}
3434then :
3435  printf %s "(cached) " >&6
3436else $as_nop
3437  if test -n "$ac_ct_STRIP"; then
3438  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3439else
3440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441for as_dir in $PATH
3442do
3443  IFS=$as_save_IFS
3444  case $as_dir in #(((
3445    '') as_dir=./ ;;
3446    */) ;;
3447    *) as_dir=$as_dir/ ;;
3448  esac
3449    for ac_exec_ext in '' $ac_executable_extensions; do
3450  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3451    ac_cv_prog_ac_ct_STRIP="strip"
3452    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3453    break 2
3454  fi
3455done
3456  done
3457IFS=$as_save_IFS
3458
3459fi
3460fi
3461ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3462if test -n "$ac_ct_STRIP"; then
3463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3464printf "%s\n" "$ac_ct_STRIP" >&6; }
3465else
3466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467printf "%s\n" "no" >&6; }
3468fi
3469
3470  if test "x$ac_ct_STRIP" = x; then
3471    STRIP=":"
3472  else
3473    case $cross_compiling:$ac_tool_warned in
3474yes:)
3475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3476printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3477ac_tool_warned=yes ;;
3478esac
3479    STRIP=$ac_ct_STRIP
3480  fi
3481else
3482  STRIP="$ac_cv_prog_STRIP"
3483fi
3484
3485fi
3486INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3487
3488
3489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3490printf %s "checking for a race-free mkdir -p... " >&6; }
3491if test -z "$MKDIR_P"; then
3492  if test ${ac_cv_path_mkdir+y}
3493then :
3494  printf %s "(cached) " >&6
3495else $as_nop
3496  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3498do
3499  IFS=$as_save_IFS
3500  case $as_dir in #(((
3501    '') as_dir=./ ;;
3502    */) ;;
3503    *) as_dir=$as_dir/ ;;
3504  esac
3505    for ac_prog in mkdir gmkdir; do
3506	 for ac_exec_ext in '' $ac_executable_extensions; do
3507	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3508	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3509	     'mkdir ('*'coreutils) '* | \
3510	     'BusyBox '* | \
3511	     'mkdir (fileutils) '4.1*)
3512	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3513	       break 3;;
3514	   esac
3515	 done
3516       done
3517  done
3518IFS=$as_save_IFS
3519
3520fi
3521
3522  test -d ./--version && rmdir ./--version
3523  if test ${ac_cv_path_mkdir+y}; then
3524    MKDIR_P="$ac_cv_path_mkdir -p"
3525  else
3526    # As a last resort, use the slow shell script.  Don't cache a
3527    # value for MKDIR_P within a source directory, because that will
3528    # break other packages using the cache if that directory is
3529    # removed, or if the value is a relative name.
3530    MKDIR_P="$ac_install_sh -d"
3531  fi
3532fi
3533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3534printf "%s\n" "$MKDIR_P" >&6; }
3535
3536for ac_prog in gawk mawk nawk awk
3537do
3538  # Extract the first word of "$ac_prog", so it can be a program name with args.
3539set dummy $ac_prog; ac_word=$2
3540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541printf %s "checking for $ac_word... " >&6; }
3542if test ${ac_cv_prog_AWK+y}
3543then :
3544  printf %s "(cached) " >&6
3545else $as_nop
3546  if test -n "$AWK"; then
3547  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3548else
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552  IFS=$as_save_IFS
3553  case $as_dir in #(((
3554    '') as_dir=./ ;;
3555    */) ;;
3556    *) as_dir=$as_dir/ ;;
3557  esac
3558    for ac_exec_ext in '' $ac_executable_extensions; do
3559  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3560    ac_cv_prog_AWK="$ac_prog"
3561    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3562    break 2
3563  fi
3564done
3565  done
3566IFS=$as_save_IFS
3567
3568fi
3569fi
3570AWK=$ac_cv_prog_AWK
3571if test -n "$AWK"; then
3572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3573printf "%s\n" "$AWK" >&6; }
3574else
3575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576printf "%s\n" "no" >&6; }
3577fi
3578
3579
3580  test -n "$AWK" && break
3581done
3582
3583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3584printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3585set x ${MAKE-make}
3586ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3587if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3588then :
3589  printf %s "(cached) " >&6
3590else $as_nop
3591  cat >conftest.make <<\_ACEOF
3592SHELL = /bin/sh
3593all:
3594	@echo '@@@%%%=$(MAKE)=@@@%%%'
3595_ACEOF
3596# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3597case `${MAKE-make} -f conftest.make 2>/dev/null` in
3598  *@@@%%%=?*=@@@%%%*)
3599    eval ac_cv_prog_make_${ac_make}_set=yes;;
3600  *)
3601    eval ac_cv_prog_make_${ac_make}_set=no;;
3602esac
3603rm -f conftest.make
3604fi
3605if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607printf "%s\n" "yes" >&6; }
3608  SET_MAKE=
3609else
3610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611printf "%s\n" "no" >&6; }
3612  SET_MAKE="MAKE=${MAKE-make}"
3613fi
3614
3615rm -rf .tst 2>/dev/null
3616mkdir .tst 2>/dev/null
3617if test -d .tst; then
3618  am__leading_dot=.
3619else
3620  am__leading_dot=_
3621fi
3622rmdir .tst 2>/dev/null
3623
3624# Check whether --enable-silent-rules was given.
3625if test ${enable_silent_rules+y}
3626then :
3627  enableval=$enable_silent_rules;
3628fi
3629
3630case $enable_silent_rules in # (((
3631  yes) AM_DEFAULT_VERBOSITY=0;;
3632   no) AM_DEFAULT_VERBOSITY=1;;
3633    *) AM_DEFAULT_VERBOSITY=1;;
3634esac
3635am_make=${MAKE-make}
3636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3637printf %s "checking whether $am_make supports nested variables... " >&6; }
3638if test ${am_cv_make_support_nested_variables+y}
3639then :
3640  printf %s "(cached) " >&6
3641else $as_nop
3642  if printf "%s\n" 'TRUE=$(BAR$(V))
3643BAR0=false
3644BAR1=true
3645V=1
3646am__doit:
3647	@$(TRUE)
3648.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3649  am_cv_make_support_nested_variables=yes
3650else
3651  am_cv_make_support_nested_variables=no
3652fi
3653fi
3654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3655printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3656if test $am_cv_make_support_nested_variables = yes; then
3657    AM_V='$(V)'
3658  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3659else
3660  AM_V=$AM_DEFAULT_VERBOSITY
3661  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3662fi
3663AM_BACKSLASH='\'
3664
3665if test "`cd $srcdir && pwd`" != "`pwd`"; then
3666  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3667  # is not polluted with repeated "-I."
3668  am__isrc=' -I$(srcdir)'
3669  # test to see if srcdir already configured
3670  if test -f $srcdir/config.status; then
3671    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3672  fi
3673fi
3674
3675# test whether we have cygpath
3676if test -z "$CYGPATH_W"; then
3677  if (cygpath --version) >/dev/null 2>/dev/null; then
3678    CYGPATH_W='cygpath -w'
3679  else
3680    CYGPATH_W=echo
3681  fi
3682fi
3683
3684
3685# Define the identity of the package.
3686 PACKAGE='fontconfig'
3687 VERSION='2.15.0'
3688
3689
3690printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3691
3692
3693printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3694
3695# Some tools Automake needs.
3696
3697ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3698
3699
3700AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3701
3702
3703AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3704
3705
3706AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3707
3708
3709MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3710
3711# For better backward compatibility.  To be removed once Automake 1.9.x
3712# dies out for good.  For more background, see:
3713# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3714# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3715mkdir_p='$(MKDIR_P)'
3716
3717# We need awk for the "check" target (and possibly the TAP driver).  The
3718# system "awk" is bad on some platforms.
3719# Always define AMTAR for backward compatibility.  Yes, it's still used
3720# in the wild :-(  We should find a proper way to deprecate it ...
3721AMTAR='$${TAR-tar}'
3722
3723
3724# We'll loop over all known methods to create a tar archive until one works.
3725_am_tools='gnutar  pax cpio none'
3726
3727am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3728
3729
3730
3731
3732
3733# Variables for tags utilities; see am/tags.am
3734if test -z "$CTAGS"; then
3735  CTAGS=ctags
3736fi
3737
3738if test -z "$ETAGS"; then
3739  ETAGS=etags
3740fi
3741
3742if test -z "$CSCOPE"; then
3743  CSCOPE=cscope
3744fi
3745
3746
3747
3748# POSIX will say in a future version that running "rm -f" with no argument
3749# is OK; and we want to be able to make that assumption in our Makefile
3750# recipes.  So use an aggressive probe to check that the usage we want is
3751# actually supported "in the wild" to an acceptable degree.
3752# See automake bug#10828.
3753# To make any issue more visible, cause the running configure to be aborted
3754# by default if the 'rm' program in use doesn't match our expectations; the
3755# user can still override this though.
3756if rm -f && rm -fr && rm -rf; then : OK; else
3757  cat >&2 <<'END'
3758Oops!
3759
3760Your 'rm' program seems unable to run without file operands specified
3761on the command line, even when the '-f' option is present.  This is contrary
3762to the behaviour of most rm programs out there, and not conforming with
3763the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3764
3765Please tell bug-automake@gnu.org about your system, including the value
3766of your $PATH and any error possibly output before this message.  This
3767can help us improve future automake versions.
3768
3769END
3770  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3771    echo 'Configuration will proceed anyway, since you have set the' >&2
3772    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3773    echo >&2
3774  else
3775    cat >&2 <<'END'
3776Aborting the configuration process, to ensure you take notice of the issue.
3777
3778You can download and install GNU coreutils to get an 'rm' implementation
3779that behaves properly: <https://www.gnu.org/software/coreutils/>.
3780
3781If you want to complete the configuration process using your problematic
3782'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3783to "yes", and re-run configure.
3784
3785END
3786    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3787  fi
3788fi
3789
3790# Check whether --enable-silent-rules was given.
3791if test ${enable_silent_rules+y}
3792then :
3793  enableval=$enable_silent_rules;
3794fi
3795
3796case $enable_silent_rules in # (((
3797  yes) AM_DEFAULT_VERBOSITY=0;;
3798   no) AM_DEFAULT_VERBOSITY=1;;
3799    *) AM_DEFAULT_VERBOSITY=0;;
3800esac
3801am_make=${MAKE-make}
3802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3803printf %s "checking whether $am_make supports nested variables... " >&6; }
3804if test ${am_cv_make_support_nested_variables+y}
3805then :
3806  printf %s "(cached) " >&6
3807else $as_nop
3808  if printf "%s\n" 'TRUE=$(BAR$(V))
3809BAR0=false
3810BAR1=true
3811V=1
3812am__doit:
3813	@$(TRUE)
3814.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3815  am_cv_make_support_nested_variables=yes
3816else
3817  am_cv_make_support_nested_variables=no
3818fi
3819fi
3820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3821printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3822if test $am_cv_make_support_nested_variables = yes; then
3823    AM_V='$(V)'
3824  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3825else
3826  AM_V=$AM_DEFAULT_VERBOSITY
3827  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3828fi
3829AM_BACKSLASH='\'
3830
3831
3832
3833ac_config_headers="$ac_config_headers config.h"
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846ac_ext=c
3847ac_cpp='$CPP $CPPFLAGS'
3848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851if test -n "$ac_tool_prefix"; then
3852  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3853set dummy ${ac_tool_prefix}gcc; ac_word=$2
3854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855printf %s "checking for $ac_word... " >&6; }
3856if test ${ac_cv_prog_CC+y}
3857then :
3858  printf %s "(cached) " >&6
3859else $as_nop
3860  if test -n "$CC"; then
3861  ac_cv_prog_CC="$CC" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866  IFS=$as_save_IFS
3867  case $as_dir in #(((
3868    '') as_dir=./ ;;
3869    */) ;;
3870    *) as_dir=$as_dir/ ;;
3871  esac
3872    for ac_exec_ext in '' $ac_executable_extensions; do
3873  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3874    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3875    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3876    break 2
3877  fi
3878done
3879  done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884CC=$ac_cv_prog_CC
3885if test -n "$CC"; then
3886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3887printf "%s\n" "$CC" >&6; }
3888else
3889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890printf "%s\n" "no" >&6; }
3891fi
3892
3893
3894fi
3895if test -z "$ac_cv_prog_CC"; then
3896  ac_ct_CC=$CC
3897  # Extract the first word of "gcc", so it can be a program name with args.
3898set dummy gcc; ac_word=$2
3899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900printf %s "checking for $ac_word... " >&6; }
3901if test ${ac_cv_prog_ac_ct_CC+y}
3902then :
3903  printf %s "(cached) " >&6
3904else $as_nop
3905  if test -n "$ac_ct_CC"; then
3906  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3907else
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911  IFS=$as_save_IFS
3912  case $as_dir in #(((
3913    '') as_dir=./ ;;
3914    */) ;;
3915    *) as_dir=$as_dir/ ;;
3916  esac
3917    for ac_exec_ext in '' $ac_executable_extensions; do
3918  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3919    ac_cv_prog_ac_ct_CC="gcc"
3920    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3921    break 2
3922  fi
3923done
3924  done
3925IFS=$as_save_IFS
3926
3927fi
3928fi
3929ac_ct_CC=$ac_cv_prog_ac_ct_CC
3930if test -n "$ac_ct_CC"; then
3931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3932printf "%s\n" "$ac_ct_CC" >&6; }
3933else
3934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935printf "%s\n" "no" >&6; }
3936fi
3937
3938  if test "x$ac_ct_CC" = x; then
3939    CC=""
3940  else
3941    case $cross_compiling:$ac_tool_warned in
3942yes:)
3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3944printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3945ac_tool_warned=yes ;;
3946esac
3947    CC=$ac_ct_CC
3948  fi
3949else
3950  CC="$ac_cv_prog_CC"
3951fi
3952
3953if test -z "$CC"; then
3954          if test -n "$ac_tool_prefix"; then
3955    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3956set dummy ${ac_tool_prefix}cc; ac_word=$2
3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958printf %s "checking for $ac_word... " >&6; }
3959if test ${ac_cv_prog_CC+y}
3960then :
3961  printf %s "(cached) " >&6
3962else $as_nop
3963  if test -n "$CC"; then
3964  ac_cv_prog_CC="$CC" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969  IFS=$as_save_IFS
3970  case $as_dir in #(((
3971    '') as_dir=./ ;;
3972    */) ;;
3973    *) as_dir=$as_dir/ ;;
3974  esac
3975    for ac_exec_ext in '' $ac_executable_extensions; do
3976  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3977    ac_cv_prog_CC="${ac_tool_prefix}cc"
3978    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3979    break 2
3980  fi
3981done
3982  done
3983IFS=$as_save_IFS
3984
3985fi
3986fi
3987CC=$ac_cv_prog_CC
3988if test -n "$CC"; then
3989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990printf "%s\n" "$CC" >&6; }
3991else
3992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993printf "%s\n" "no" >&6; }
3994fi
3995
3996
3997  fi
3998fi
3999if test -z "$CC"; then
4000  # Extract the first word of "cc", so it can be a program name with args.
4001set dummy cc; ac_word=$2
4002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003printf %s "checking for $ac_word... " >&6; }
4004if test ${ac_cv_prog_CC+y}
4005then :
4006  printf %s "(cached) " >&6
4007else $as_nop
4008  if test -n "$CC"; then
4009  ac_cv_prog_CC="$CC" # Let the user override the test.
4010else
4011  ac_prog_rejected=no
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH
4014do
4015  IFS=$as_save_IFS
4016  case $as_dir in #(((
4017    '') as_dir=./ ;;
4018    */) ;;
4019    *) as_dir=$as_dir/ ;;
4020  esac
4021    for ac_exec_ext in '' $ac_executable_extensions; do
4022  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4023    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4024       ac_prog_rejected=yes
4025       continue
4026     fi
4027    ac_cv_prog_CC="cc"
4028    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4029    break 2
4030  fi
4031done
4032  done
4033IFS=$as_save_IFS
4034
4035if test $ac_prog_rejected = yes; then
4036  # We found a bogon in the path, so make sure we never use it.
4037  set dummy $ac_cv_prog_CC
4038  shift
4039  if test $# != 0; then
4040    # We chose a different compiler from the bogus one.
4041    # However, it has the same basename, so the bogon will be chosen
4042    # first if we set CC to just the basename; use the full file name.
4043    shift
4044    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4045  fi
4046fi
4047fi
4048fi
4049CC=$ac_cv_prog_CC
4050if test -n "$CC"; then
4051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052printf "%s\n" "$CC" >&6; }
4053else
4054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055printf "%s\n" "no" >&6; }
4056fi
4057
4058
4059fi
4060if test -z "$CC"; then
4061  if test -n "$ac_tool_prefix"; then
4062  for ac_prog in cl.exe
4063  do
4064    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4065set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067printf %s "checking for $ac_word... " >&6; }
4068if test ${ac_cv_prog_CC+y}
4069then :
4070  printf %s "(cached) " >&6
4071else $as_nop
4072  if test -n "$CC"; then
4073  ac_cv_prog_CC="$CC" # Let the user override the test.
4074else
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078  IFS=$as_save_IFS
4079  case $as_dir in #(((
4080    '') as_dir=./ ;;
4081    */) ;;
4082    *) as_dir=$as_dir/ ;;
4083  esac
4084    for ac_exec_ext in '' $ac_executable_extensions; do
4085  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4086    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4087    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4088    break 2
4089  fi
4090done
4091  done
4092IFS=$as_save_IFS
4093
4094fi
4095fi
4096CC=$ac_cv_prog_CC
4097if test -n "$CC"; then
4098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099printf "%s\n" "$CC" >&6; }
4100else
4101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102printf "%s\n" "no" >&6; }
4103fi
4104
4105
4106    test -n "$CC" && break
4107  done
4108fi
4109if test -z "$CC"; then
4110  ac_ct_CC=$CC
4111  for ac_prog in cl.exe
4112do
4113  # Extract the first word of "$ac_prog", so it can be a program name with args.
4114set dummy $ac_prog; ac_word=$2
4115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116printf %s "checking for $ac_word... " >&6; }
4117if test ${ac_cv_prog_ac_ct_CC+y}
4118then :
4119  printf %s "(cached) " >&6
4120else $as_nop
4121  if test -n "$ac_ct_CC"; then
4122  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127  IFS=$as_save_IFS
4128  case $as_dir in #(((
4129    '') as_dir=./ ;;
4130    */) ;;
4131    *) as_dir=$as_dir/ ;;
4132  esac
4133    for ac_exec_ext in '' $ac_executable_extensions; do
4134  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4135    ac_cv_prog_ac_ct_CC="$ac_prog"
4136    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4137    break 2
4138  fi
4139done
4140  done
4141IFS=$as_save_IFS
4142
4143fi
4144fi
4145ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146if test -n "$ac_ct_CC"; then
4147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4148printf "%s\n" "$ac_ct_CC" >&6; }
4149else
4150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151printf "%s\n" "no" >&6; }
4152fi
4153
4154
4155  test -n "$ac_ct_CC" && break
4156done
4157
4158  if test "x$ac_ct_CC" = x; then
4159    CC=""
4160  else
4161    case $cross_compiling:$ac_tool_warned in
4162yes:)
4163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4164printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4165ac_tool_warned=yes ;;
4166esac
4167    CC=$ac_ct_CC
4168  fi
4169fi
4170
4171fi
4172if test -z "$CC"; then
4173  if test -n "$ac_tool_prefix"; then
4174  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4175set dummy ${ac_tool_prefix}clang; ac_word=$2
4176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177printf %s "checking for $ac_word... " >&6; }
4178if test ${ac_cv_prog_CC+y}
4179then :
4180  printf %s "(cached) " >&6
4181else $as_nop
4182  if test -n "$CC"; then
4183  ac_cv_prog_CC="$CC" # Let the user override the test.
4184else
4185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH
4187do
4188  IFS=$as_save_IFS
4189  case $as_dir in #(((
4190    '') as_dir=./ ;;
4191    */) ;;
4192    *) as_dir=$as_dir/ ;;
4193  esac
4194    for ac_exec_ext in '' $ac_executable_extensions; do
4195  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4196    ac_cv_prog_CC="${ac_tool_prefix}clang"
4197    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4198    break 2
4199  fi
4200done
4201  done
4202IFS=$as_save_IFS
4203
4204fi
4205fi
4206CC=$ac_cv_prog_CC
4207if test -n "$CC"; then
4208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209printf "%s\n" "$CC" >&6; }
4210else
4211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212printf "%s\n" "no" >&6; }
4213fi
4214
4215
4216fi
4217if test -z "$ac_cv_prog_CC"; then
4218  ac_ct_CC=$CC
4219  # Extract the first word of "clang", so it can be a program name with args.
4220set dummy clang; ac_word=$2
4221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222printf %s "checking for $ac_word... " >&6; }
4223if test ${ac_cv_prog_ac_ct_CC+y}
4224then :
4225  printf %s "(cached) " >&6
4226else $as_nop
4227  if test -n "$ac_ct_CC"; then
4228  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4229else
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233  IFS=$as_save_IFS
4234  case $as_dir in #(((
4235    '') as_dir=./ ;;
4236    */) ;;
4237    *) as_dir=$as_dir/ ;;
4238  esac
4239    for ac_exec_ext in '' $ac_executable_extensions; do
4240  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4241    ac_cv_prog_ac_ct_CC="clang"
4242    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4243    break 2
4244  fi
4245done
4246  done
4247IFS=$as_save_IFS
4248
4249fi
4250fi
4251ac_ct_CC=$ac_cv_prog_ac_ct_CC
4252if test -n "$ac_ct_CC"; then
4253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4254printf "%s\n" "$ac_ct_CC" >&6; }
4255else
4256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257printf "%s\n" "no" >&6; }
4258fi
4259
4260  if test "x$ac_ct_CC" = x; then
4261    CC=""
4262  else
4263    case $cross_compiling:$ac_tool_warned in
4264yes:)
4265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267ac_tool_warned=yes ;;
4268esac
4269    CC=$ac_ct_CC
4270  fi
4271else
4272  CC="$ac_cv_prog_CC"
4273fi
4274
4275fi
4276
4277
4278test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4280as_fn_error $? "no acceptable C compiler found in \$PATH
4281See \`config.log' for more details" "$LINENO" 5; }
4282
4283# Provide some information about the compiler.
4284printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4285set X $ac_compile
4286ac_compiler=$2
4287for ac_option in --version -v -V -qversion -version; do
4288  { { ac_try="$ac_compiler $ac_option >&5"
4289case "(($ac_try" in
4290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291  *) ac_try_echo=$ac_try;;
4292esac
4293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294printf "%s\n" "$ac_try_echo"; } >&5
4295  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4296  ac_status=$?
4297  if test -s conftest.err; then
4298    sed '10a\
4299... rest of stderr output deleted ...
4300         10q' conftest.err >conftest.er1
4301    cat conftest.er1 >&5
4302  fi
4303  rm -f conftest.er1 conftest.err
4304  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305  test $ac_status = 0; }
4306done
4307
4308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309/* end confdefs.h.  */
4310
4311int
4312main (void)
4313{
4314
4315  ;
4316  return 0;
4317}
4318_ACEOF
4319ac_clean_files_save=$ac_clean_files
4320ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4321# Try to create an executable without -o first, disregard a.out.
4322# It will help us diagnose broken compilers, and finding out an intuition
4323# of exeext.
4324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4325printf %s "checking whether the C compiler works... " >&6; }
4326ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4327
4328# The possible output files:
4329ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4330
4331ac_rmfiles=
4332for ac_file in $ac_files
4333do
4334  case $ac_file in
4335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4336    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4337  esac
4338done
4339rm -f $ac_rmfiles
4340
4341if { { ac_try="$ac_link_default"
4342case "(($ac_try" in
4343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344  *) ac_try_echo=$ac_try;;
4345esac
4346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347printf "%s\n" "$ac_try_echo"; } >&5
4348  (eval "$ac_link_default") 2>&5
4349  ac_status=$?
4350  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351  test $ac_status = 0; }
4352then :
4353  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4354# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4355# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4356# so that the user can short-circuit this test for compilers unknown to
4357# Autoconf.
4358for ac_file in $ac_files ''
4359do
4360  test -f "$ac_file" || continue
4361  case $ac_file in
4362    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4363	;;
4364    [ab].out )
4365	# We found the default executable, but exeext='' is most
4366	# certainly right.
4367	break;;
4368    *.* )
4369	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4370	then :; else
4371	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4372	fi
4373	# We set ac_cv_exeext here because the later test for it is not
4374	# safe: cross compilers may not add the suffix if given an `-o'
4375	# argument, so we may need to know it at that point already.
4376	# Even if this section looks crufty: it has the advantage of
4377	# actually working.
4378	break;;
4379    * )
4380	break;;
4381  esac
4382done
4383test "$ac_cv_exeext" = no && ac_cv_exeext=
4384
4385else $as_nop
4386  ac_file=''
4387fi
4388if test -z "$ac_file"
4389then :
4390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391printf "%s\n" "no" >&6; }
4392printf "%s\n" "$as_me: failed program was:" >&5
4393sed 's/^/| /' conftest.$ac_ext >&5
4394
4395{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4397as_fn_error 77 "C compiler cannot create executables
4398See \`config.log' for more details" "$LINENO" 5; }
4399else $as_nop
4400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4401printf "%s\n" "yes" >&6; }
4402fi
4403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4404printf %s "checking for C compiler default output file name... " >&6; }
4405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4406printf "%s\n" "$ac_file" >&6; }
4407ac_exeext=$ac_cv_exeext
4408
4409rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4410ac_clean_files=$ac_clean_files_save
4411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4412printf %s "checking for suffix of executables... " >&6; }
4413if { { ac_try="$ac_link"
4414case "(($ac_try" in
4415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416  *) ac_try_echo=$ac_try;;
4417esac
4418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419printf "%s\n" "$ac_try_echo"; } >&5
4420  (eval "$ac_link") 2>&5
4421  ac_status=$?
4422  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423  test $ac_status = 0; }
4424then :
4425  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4426# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4427# work properly (i.e., refer to `conftest.exe'), while it won't with
4428# `rm'.
4429for ac_file in conftest.exe conftest conftest.*; do
4430  test -f "$ac_file" || continue
4431  case $ac_file in
4432    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4433    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4434	  break;;
4435    * ) break;;
4436  esac
4437done
4438else $as_nop
4439  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4441as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4442See \`config.log' for more details" "$LINENO" 5; }
4443fi
4444rm -f conftest conftest$ac_cv_exeext
4445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4446printf "%s\n" "$ac_cv_exeext" >&6; }
4447
4448rm -f conftest.$ac_ext
4449EXEEXT=$ac_cv_exeext
4450ac_exeext=$EXEEXT
4451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h.  */
4453#include <stdio.h>
4454int
4455main (void)
4456{
4457FILE *f = fopen ("conftest.out", "w");
4458 return ferror (f) || fclose (f) != 0;
4459
4460  ;
4461  return 0;
4462}
4463_ACEOF
4464ac_clean_files="$ac_clean_files conftest.out"
4465# Check that the compiler produces executables we can run.  If not, either
4466# the compiler is broken, or we cross compile.
4467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4468printf %s "checking whether we are cross compiling... " >&6; }
4469if test "$cross_compiling" != yes; then
4470  { { ac_try="$ac_link"
4471case "(($ac_try" in
4472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473  *) ac_try_echo=$ac_try;;
4474esac
4475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4476printf "%s\n" "$ac_try_echo"; } >&5
4477  (eval "$ac_link") 2>&5
4478  ac_status=$?
4479  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480  test $ac_status = 0; }
4481  if { ac_try='./conftest$ac_cv_exeext'
4482  { { case "(($ac_try" in
4483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484  *) ac_try_echo=$ac_try;;
4485esac
4486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487printf "%s\n" "$ac_try_echo"; } >&5
4488  (eval "$ac_try") 2>&5
4489  ac_status=$?
4490  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491  test $ac_status = 0; }; }; then
4492    cross_compiling=no
4493  else
4494    if test "$cross_compiling" = maybe; then
4495	cross_compiling=yes
4496    else
4497	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4498printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4499as_fn_error 77 "cannot run C compiled programs.
4500If you meant to cross compile, use \`--host'.
4501See \`config.log' for more details" "$LINENO" 5; }
4502    fi
4503  fi
4504fi
4505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4506printf "%s\n" "$cross_compiling" >&6; }
4507
4508rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4509ac_clean_files=$ac_clean_files_save
4510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4511printf %s "checking for suffix of object files... " >&6; }
4512if test ${ac_cv_objext+y}
4513then :
4514  printf %s "(cached) " >&6
4515else $as_nop
4516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517/* end confdefs.h.  */
4518
4519int
4520main (void)
4521{
4522
4523  ;
4524  return 0;
4525}
4526_ACEOF
4527rm -f conftest.o conftest.obj
4528if { { ac_try="$ac_compile"
4529case "(($ac_try" in
4530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531  *) ac_try_echo=$ac_try;;
4532esac
4533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534printf "%s\n" "$ac_try_echo"; } >&5
4535  (eval "$ac_compile") 2>&5
4536  ac_status=$?
4537  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538  test $ac_status = 0; }
4539then :
4540  for ac_file in conftest.o conftest.obj conftest.*; do
4541  test -f "$ac_file" || continue;
4542  case $ac_file in
4543    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4544    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4545       break;;
4546  esac
4547done
4548else $as_nop
4549  printf "%s\n" "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4554as_fn_error $? "cannot compute suffix of object files: cannot compile
4555See \`config.log' for more details" "$LINENO" 5; }
4556fi
4557rm -f conftest.$ac_cv_objext conftest.$ac_ext
4558fi
4559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4560printf "%s\n" "$ac_cv_objext" >&6; }
4561OBJEXT=$ac_cv_objext
4562ac_objext=$OBJEXT
4563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4564printf %s "checking whether the compiler supports GNU C... " >&6; }
4565if test ${ac_cv_c_compiler_gnu+y}
4566then :
4567  printf %s "(cached) " >&6
4568else $as_nop
4569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h.  */
4571
4572int
4573main (void)
4574{
4575#ifndef __GNUC__
4576       choke me
4577#endif
4578
4579  ;
4580  return 0;
4581}
4582_ACEOF
4583if ac_fn_c_try_compile "$LINENO"
4584then :
4585  ac_compiler_gnu=yes
4586else $as_nop
4587  ac_compiler_gnu=no
4588fi
4589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4590ac_cv_c_compiler_gnu=$ac_compiler_gnu
4591
4592fi
4593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4594printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4595ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596
4597if test $ac_compiler_gnu = yes; then
4598  GCC=yes
4599else
4600  GCC=
4601fi
4602ac_test_CFLAGS=${CFLAGS+y}
4603ac_save_CFLAGS=$CFLAGS
4604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4605printf %s "checking whether $CC accepts -g... " >&6; }
4606if test ${ac_cv_prog_cc_g+y}
4607then :
4608  printf %s "(cached) " >&6
4609else $as_nop
4610  ac_save_c_werror_flag=$ac_c_werror_flag
4611   ac_c_werror_flag=yes
4612   ac_cv_prog_cc_g=no
4613   CFLAGS="-g"
4614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h.  */
4616
4617int
4618main (void)
4619{
4620
4621  ;
4622  return 0;
4623}
4624_ACEOF
4625if ac_fn_c_try_compile "$LINENO"
4626then :
4627  ac_cv_prog_cc_g=yes
4628else $as_nop
4629  CFLAGS=""
4630      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h.  */
4632
4633int
4634main (void)
4635{
4636
4637  ;
4638  return 0;
4639}
4640_ACEOF
4641if ac_fn_c_try_compile "$LINENO"
4642then :
4643
4644else $as_nop
4645  ac_c_werror_flag=$ac_save_c_werror_flag
4646	 CFLAGS="-g"
4647	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h.  */
4649
4650int
4651main (void)
4652{
4653
4654  ;
4655  return 0;
4656}
4657_ACEOF
4658if ac_fn_c_try_compile "$LINENO"
4659then :
4660  ac_cv_prog_cc_g=yes
4661fi
4662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4665fi
4666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4667   ac_c_werror_flag=$ac_save_c_werror_flag
4668fi
4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4670printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4671if test $ac_test_CFLAGS; then
4672  CFLAGS=$ac_save_CFLAGS
4673elif test $ac_cv_prog_cc_g = yes; then
4674  if test "$GCC" = yes; then
4675    CFLAGS="-g -O2"
4676  else
4677    CFLAGS="-g"
4678  fi
4679else
4680  if test "$GCC" = yes; then
4681    CFLAGS="-O2"
4682  else
4683    CFLAGS=
4684  fi
4685fi
4686ac_prog_cc_stdc=no
4687if test x$ac_prog_cc_stdc = xno
4688then :
4689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4690printf %s "checking for $CC option to enable C11 features... " >&6; }
4691if test ${ac_cv_prog_cc_c11+y}
4692then :
4693  printf %s "(cached) " >&6
4694else $as_nop
4695  ac_cv_prog_cc_c11=no
4696ac_save_CC=$CC
4697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698/* end confdefs.h.  */
4699$ac_c_conftest_c11_program
4700_ACEOF
4701for ac_arg in '' -std=gnu11
4702do
4703  CC="$ac_save_CC $ac_arg"
4704  if ac_fn_c_try_compile "$LINENO"
4705then :
4706  ac_cv_prog_cc_c11=$ac_arg
4707fi
4708rm -f core conftest.err conftest.$ac_objext conftest.beam
4709  test "x$ac_cv_prog_cc_c11" != "xno" && break
4710done
4711rm -f conftest.$ac_ext
4712CC=$ac_save_CC
4713fi
4714
4715if test "x$ac_cv_prog_cc_c11" = xno
4716then :
4717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4718printf "%s\n" "unsupported" >&6; }
4719else $as_nop
4720  if test "x$ac_cv_prog_cc_c11" = x
4721then :
4722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4723printf "%s\n" "none needed" >&6; }
4724else $as_nop
4725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4726printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4727     CC="$CC $ac_cv_prog_cc_c11"
4728fi
4729  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4730  ac_prog_cc_stdc=c11
4731fi
4732fi
4733if test x$ac_prog_cc_stdc = xno
4734then :
4735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4736printf %s "checking for $CC option to enable C99 features... " >&6; }
4737if test ${ac_cv_prog_cc_c99+y}
4738then :
4739  printf %s "(cached) " >&6
4740else $as_nop
4741  ac_cv_prog_cc_c99=no
4742ac_save_CC=$CC
4743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h.  */
4745$ac_c_conftest_c99_program
4746_ACEOF
4747for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4748do
4749  CC="$ac_save_CC $ac_arg"
4750  if ac_fn_c_try_compile "$LINENO"
4751then :
4752  ac_cv_prog_cc_c99=$ac_arg
4753fi
4754rm -f core conftest.err conftest.$ac_objext conftest.beam
4755  test "x$ac_cv_prog_cc_c99" != "xno" && break
4756done
4757rm -f conftest.$ac_ext
4758CC=$ac_save_CC
4759fi
4760
4761if test "x$ac_cv_prog_cc_c99" = xno
4762then :
4763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4764printf "%s\n" "unsupported" >&6; }
4765else $as_nop
4766  if test "x$ac_cv_prog_cc_c99" = x
4767then :
4768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4769printf "%s\n" "none needed" >&6; }
4770else $as_nop
4771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4772printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4773     CC="$CC $ac_cv_prog_cc_c99"
4774fi
4775  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4776  ac_prog_cc_stdc=c99
4777fi
4778fi
4779if test x$ac_prog_cc_stdc = xno
4780then :
4781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4782printf %s "checking for $CC option to enable C89 features... " >&6; }
4783if test ${ac_cv_prog_cc_c89+y}
4784then :
4785  printf %s "(cached) " >&6
4786else $as_nop
4787  ac_cv_prog_cc_c89=no
4788ac_save_CC=$CC
4789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790/* end confdefs.h.  */
4791$ac_c_conftest_c89_program
4792_ACEOF
4793for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4794do
4795  CC="$ac_save_CC $ac_arg"
4796  if ac_fn_c_try_compile "$LINENO"
4797then :
4798  ac_cv_prog_cc_c89=$ac_arg
4799fi
4800rm -f core conftest.err conftest.$ac_objext conftest.beam
4801  test "x$ac_cv_prog_cc_c89" != "xno" && break
4802done
4803rm -f conftest.$ac_ext
4804CC=$ac_save_CC
4805fi
4806
4807if test "x$ac_cv_prog_cc_c89" = xno
4808then :
4809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4810printf "%s\n" "unsupported" >&6; }
4811else $as_nop
4812  if test "x$ac_cv_prog_cc_c89" = x
4813then :
4814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4815printf "%s\n" "none needed" >&6; }
4816else $as_nop
4817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4818printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4819     CC="$CC $ac_cv_prog_cc_c89"
4820fi
4821  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4822  ac_prog_cc_stdc=c89
4823fi
4824fi
4825
4826ac_ext=c
4827ac_cpp='$CPP $CPPFLAGS'
4828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830ac_compiler_gnu=$ac_cv_c_compiler_gnu
4831
4832
4833  ac_ext=c
4834ac_cpp='$CPP $CPPFLAGS'
4835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4839printf %s "checking whether $CC understands -c and -o together... " >&6; }
4840if test ${am_cv_prog_cc_c_o+y}
4841then :
4842  printf %s "(cached) " >&6
4843else $as_nop
4844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845/* end confdefs.h.  */
4846
4847int
4848main (void)
4849{
4850
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855  # Make sure it works both with $CC and with simple cc.
4856  # Following AC_PROG_CC_C_O, we do the test twice because some
4857  # compilers refuse to overwrite an existing .o file with -o,
4858  # though they will create one.
4859  am_cv_prog_cc_c_o=yes
4860  for am_i in 1 2; do
4861    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4862   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } \
4866         && test -f conftest2.$ac_objext; then
4867      : OK
4868    else
4869      am_cv_prog_cc_c_o=no
4870      break
4871    fi
4872  done
4873  rm -f core conftest*
4874  unset am_i
4875fi
4876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4877printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4878if test "$am_cv_prog_cc_c_o" != yes; then
4879   # Losing compiler, so override with the script.
4880   # FIXME: It is wrong to rewrite CC.
4881   # But if we don't then we get into trouble of one sort or another.
4882   # A longer-term fix would be to have automake use am__CC in this case,
4883   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4884   CC="$am_aux_dir/compile $CC"
4885fi
4886ac_ext=c
4887ac_cpp='$CPP $CPPFLAGS'
4888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891
4892DEPDIR="${am__leading_dot}deps"
4893
4894ac_config_commands="$ac_config_commands depfiles"
4895
4896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4897printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4898cat > confinc.mk << 'END'
4899am__doit:
4900	@echo this is the am__doit target >confinc.out
4901.PHONY: am__doit
4902END
4903am__include="#"
4904am__quote=
4905# BSD make does it like this.
4906echo '.include "confinc.mk" # ignored' > confmf.BSD
4907# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4908echo 'include confinc.mk # ignored' > confmf.GNU
4909_am_result=no
4910for s in GNU BSD; do
4911  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4912   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4913   ac_status=$?
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); }
4916  case $?:`cat confinc.out 2>/dev/null` in #(
4917  '0:this is the am__doit target') :
4918    case $s in #(
4919  BSD) :
4920    am__include='.include' am__quote='"' ;; #(
4921  *) :
4922    am__include='include' am__quote='' ;;
4923esac ;; #(
4924  *) :
4925     ;;
4926esac
4927  if test "$am__include" != "#"; then
4928    _am_result="yes ($s style)"
4929    break
4930  fi
4931done
4932rm -f confinc.* confmf.*
4933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4934printf "%s\n" "${_am_result}" >&6; }
4935
4936# Check whether --enable-dependency-tracking was given.
4937if test ${enable_dependency_tracking+y}
4938then :
4939  enableval=$enable_dependency_tracking;
4940fi
4941
4942if test "x$enable_dependency_tracking" != xno; then
4943  am_depcomp="$ac_aux_dir/depcomp"
4944  AMDEPBACKSLASH='\'
4945  am__nodep='_no'
4946fi
4947 if test "x$enable_dependency_tracking" != xno; then
4948  AMDEP_TRUE=
4949  AMDEP_FALSE='#'
4950else
4951  AMDEP_TRUE='#'
4952  AMDEP_FALSE=
4953fi
4954
4955
4956
4957depcc="$CC"   am_compiler_list=
4958
4959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4960printf %s "checking dependency style of $depcc... " >&6; }
4961if test ${am_cv_CC_dependencies_compiler_type+y}
4962then :
4963  printf %s "(cached) " >&6
4964else $as_nop
4965  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4966  # We make a subdir and do the tests there.  Otherwise we can end up
4967  # making bogus files that we don't know about and never remove.  For
4968  # instance it was reported that on HP-UX the gcc test will end up
4969  # making a dummy file named 'D' -- because '-MD' means "put the output
4970  # in D".
4971  rm -rf conftest.dir
4972  mkdir conftest.dir
4973  # Copy depcomp to subdir because otherwise we won't find it if we're
4974  # using a relative directory.
4975  cp "$am_depcomp" conftest.dir
4976  cd conftest.dir
4977  # We will build objects and dependencies in a subdirectory because
4978  # it helps to detect inapplicable dependency modes.  For instance
4979  # both Tru64's cc and ICC support -MD to output dependencies as a
4980  # side effect of compilation, but ICC will put the dependencies in
4981  # the current directory while Tru64 will put them in the object
4982  # directory.
4983  mkdir sub
4984
4985  am_cv_CC_dependencies_compiler_type=none
4986  if test "$am_compiler_list" = ""; then
4987     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4988  fi
4989  am__universal=false
4990  case " $depcc " in #(
4991     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4992     esac
4993
4994  for depmode in $am_compiler_list; do
4995    # Setup a source with many dependencies, because some compilers
4996    # like to wrap large dependency lists on column 80 (with \), and
4997    # we should not choose a depcomp mode which is confused by this.
4998    #
4999    # We need to recreate these files for each test, as the compiler may
5000    # overwrite some of them when testing with obscure command lines.
5001    # This happens at least with the AIX C compiler.
5002    : > sub/conftest.c
5003    for i in 1 2 3 4 5 6; do
5004      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5005      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5006      # Solaris 10 /bin/sh.
5007      echo '/* dummy */' > sub/conftst$i.h
5008    done
5009    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5010
5011    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5012    # mode.  It turns out that the SunPro C++ compiler does not properly
5013    # handle '-M -o', and we need to detect this.  Also, some Intel
5014    # versions had trouble with output in subdirs.
5015    am__obj=sub/conftest.${OBJEXT-o}
5016    am__minus_obj="-o $am__obj"
5017    case $depmode in
5018    gcc)
5019      # This depmode causes a compiler race in universal mode.
5020      test "$am__universal" = false || continue
5021      ;;
5022    nosideeffect)
5023      # After this tag, mechanisms are not by side-effect, so they'll
5024      # only be used when explicitly requested.
5025      if test "x$enable_dependency_tracking" = xyes; then
5026	continue
5027      else
5028	break
5029      fi
5030      ;;
5031    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5032      # This compiler won't grok '-c -o', but also, the minuso test has
5033      # not run yet.  These depmodes are late enough in the game, and
5034      # so weak that their functioning should not be impacted.
5035      am__obj=conftest.${OBJEXT-o}
5036      am__minus_obj=
5037      ;;
5038    none) break ;;
5039    esac
5040    if depmode=$depmode \
5041       source=sub/conftest.c object=$am__obj \
5042       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5043       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5044         >/dev/null 2>conftest.err &&
5045       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5046       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5047       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5048       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5049      # icc doesn't choke on unknown options, it will just issue warnings
5050      # or remarks (even with -Werror).  So we grep stderr for any message
5051      # that says an option was ignored or not supported.
5052      # When given -MP, icc 7.0 and 7.1 complain thusly:
5053      #   icc: Command line warning: ignoring option '-M'; no argument required
5054      # The diagnosis changed in icc 8.0:
5055      #   icc: Command line remark: option '-MP' not supported
5056      if (grep 'ignoring option' conftest.err ||
5057          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5058        am_cv_CC_dependencies_compiler_type=$depmode
5059        break
5060      fi
5061    fi
5062  done
5063
5064  cd ..
5065  rm -rf conftest.dir
5066else
5067  am_cv_CC_dependencies_compiler_type=none
5068fi
5069
5070fi
5071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5072printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5073CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5074
5075 if
5076  test "x$enable_dependency_tracking" != xno \
5077  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5078  am__fastdepCC_TRUE=
5079  am__fastdepCC_FALSE='#'
5080else
5081  am__fastdepCC_TRUE='#'
5082  am__fastdepCC_FALSE=
5083fi
5084
5085
5086
5087ac_header= ac_cache=
5088for ac_item in $ac_header_c_list
5089do
5090  if test $ac_cache; then
5091    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5092    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5093      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5094    fi
5095    ac_header= ac_cache=
5096  elif test $ac_header; then
5097    ac_cache=$ac_item
5098  else
5099    ac_header=$ac_item
5100  fi
5101done
5102
5103
5104
5105
5106
5107
5108
5109
5110if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5111then :
5112
5113printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5114
5115fi
5116
5117
5118
5119
5120
5121
5122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5123printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5124if test ${ac_cv_safe_to_define___extensions__+y}
5125then :
5126  printf %s "(cached) " >&6
5127else $as_nop
5128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h.  */
5130
5131#         define __EXTENSIONS__ 1
5132          $ac_includes_default
5133int
5134main (void)
5135{
5136
5137  ;
5138  return 0;
5139}
5140_ACEOF
5141if ac_fn_c_try_compile "$LINENO"
5142then :
5143  ac_cv_safe_to_define___extensions__=yes
5144else $as_nop
5145  ac_cv_safe_to_define___extensions__=no
5146fi
5147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5148fi
5149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5150printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5151
5152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5153printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5154if test ${ac_cv_should_define__xopen_source+y}
5155then :
5156  printf %s "(cached) " >&6
5157else $as_nop
5158  ac_cv_should_define__xopen_source=no
5159    if test $ac_cv_header_wchar_h = yes
5160then :
5161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h.  */
5163
5164          #include <wchar.h>
5165          mbstate_t x;
5166int
5167main (void)
5168{
5169
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174if ac_fn_c_try_compile "$LINENO"
5175then :
5176
5177else $as_nop
5178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h.  */
5180
5181            #define _XOPEN_SOURCE 500
5182            #include <wchar.h>
5183            mbstate_t x;
5184int
5185main (void)
5186{
5187
5188  ;
5189  return 0;
5190}
5191_ACEOF
5192if ac_fn_c_try_compile "$LINENO"
5193then :
5194  ac_cv_should_define__xopen_source=yes
5195fi
5196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5197fi
5198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5199fi
5200fi
5201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5202printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5203
5204  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5205
5206  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5207
5208  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5209
5210  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5211
5212  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5213
5214  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5215
5216  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5217
5218  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5219
5220  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5221
5222  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5223
5224  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5225
5226  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5227
5228  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5229
5230  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5231
5232  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5233
5234  if test $ac_cv_header_minix_config_h = yes
5235then :
5236  MINIX=yes
5237    printf "%s\n" "#define _MINIX 1" >>confdefs.h
5238
5239    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5240
5241    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5242
5243else $as_nop
5244  MINIX=
5245fi
5246  if test $ac_cv_safe_to_define___extensions__ = yes
5247then :
5248  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5249
5250fi
5251  if test $ac_cv_should_define__xopen_source = yes
5252then :
5253  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5254
5255fi
5256
5257# Check whether --enable-largefile was given.
5258if test ${enable_largefile+y}
5259then :
5260  enableval=$enable_largefile;
5261fi
5262
5263if test "$enable_largefile" != no; then
5264
5265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5266printf %s "checking for special C compiler options needed for large files... " >&6; }
5267if test ${ac_cv_sys_largefile_CC+y}
5268then :
5269  printf %s "(cached) " >&6
5270else $as_nop
5271  ac_cv_sys_largefile_CC=no
5272     if test "$GCC" != yes; then
5273       ac_save_CC=$CC
5274       while :; do
5275	 # IRIX 6.2 and later do not support large files by default,
5276	 # so use the C compiler's -n32 option if that helps.
5277	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278/* end confdefs.h.  */
5279#include <sys/types.h>
5280 /* Check that off_t can represent 2**63 - 1 correctly.
5281    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5282    since some C++ compilers masquerading as C compilers
5283    incorrectly reject 9223372036854775807.  */
5284#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5285  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5286		       && LARGE_OFF_T % 2147483647 == 1)
5287		      ? 1 : -1];
5288int
5289main (void)
5290{
5291
5292  ;
5293  return 0;
5294}
5295_ACEOF
5296	 if ac_fn_c_try_compile "$LINENO"
5297then :
5298  break
5299fi
5300rm -f core conftest.err conftest.$ac_objext conftest.beam
5301	 CC="$CC -n32"
5302	 if ac_fn_c_try_compile "$LINENO"
5303then :
5304  ac_cv_sys_largefile_CC=' -n32'; break
5305fi
5306rm -f core conftest.err conftest.$ac_objext conftest.beam
5307	 break
5308       done
5309       CC=$ac_save_CC
5310       rm -f conftest.$ac_ext
5311    fi
5312fi
5313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5314printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
5315  if test "$ac_cv_sys_largefile_CC" != no; then
5316    CC=$CC$ac_cv_sys_largefile_CC
5317  fi
5318
5319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5320printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5321if test ${ac_cv_sys_file_offset_bits+y}
5322then :
5323  printf %s "(cached) " >&6
5324else $as_nop
5325  while :; do
5326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327/* end confdefs.h.  */
5328#include <sys/types.h>
5329 /* Check that off_t can represent 2**63 - 1 correctly.
5330    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5331    since some C++ compilers masquerading as C compilers
5332    incorrectly reject 9223372036854775807.  */
5333#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5334  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5335		       && LARGE_OFF_T % 2147483647 == 1)
5336		      ? 1 : -1];
5337int
5338main (void)
5339{
5340
5341  ;
5342  return 0;
5343}
5344_ACEOF
5345if ac_fn_c_try_compile "$LINENO"
5346then :
5347  ac_cv_sys_file_offset_bits=no; break
5348fi
5349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351/* end confdefs.h.  */
5352#define _FILE_OFFSET_BITS 64
5353#include <sys/types.h>
5354 /* Check that off_t can represent 2**63 - 1 correctly.
5355    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5356    since some C++ compilers masquerading as C compilers
5357    incorrectly reject 9223372036854775807.  */
5358#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5359  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5360		       && LARGE_OFF_T % 2147483647 == 1)
5361		      ? 1 : -1];
5362int
5363main (void)
5364{
5365
5366  ;
5367  return 0;
5368}
5369_ACEOF
5370if ac_fn_c_try_compile "$LINENO"
5371then :
5372  ac_cv_sys_file_offset_bits=64; break
5373fi
5374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5375  ac_cv_sys_file_offset_bits=unknown
5376  break
5377done
5378fi
5379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5380printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5381case $ac_cv_sys_file_offset_bits in #(
5382  no | unknown) ;;
5383  *)
5384printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5385;;
5386esac
5387rm -rf conftest*
5388  if test $ac_cv_sys_file_offset_bits = unknown; then
5389    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5390printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5391if test ${ac_cv_sys_large_files+y}
5392then :
5393  printf %s "(cached) " >&6
5394else $as_nop
5395  while :; do
5396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398#include <sys/types.h>
5399 /* Check that off_t can represent 2**63 - 1 correctly.
5400    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5401    since some C++ compilers masquerading as C compilers
5402    incorrectly reject 9223372036854775807.  */
5403#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5404  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5405		       && LARGE_OFF_T % 2147483647 == 1)
5406		      ? 1 : -1];
5407int
5408main (void)
5409{
5410
5411  ;
5412  return 0;
5413}
5414_ACEOF
5415if ac_fn_c_try_compile "$LINENO"
5416then :
5417  ac_cv_sys_large_files=no; break
5418fi
5419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h.  */
5422#define _LARGE_FILES 1
5423#include <sys/types.h>
5424 /* Check that off_t can represent 2**63 - 1 correctly.
5425    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5426    since some C++ compilers masquerading as C compilers
5427    incorrectly reject 9223372036854775807.  */
5428#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5429  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5430		       && LARGE_OFF_T % 2147483647 == 1)
5431		      ? 1 : -1];
5432int
5433main (void)
5434{
5435
5436  ;
5437  return 0;
5438}
5439_ACEOF
5440if ac_fn_c_try_compile "$LINENO"
5441then :
5442  ac_cv_sys_large_files=1; break
5443fi
5444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5445  ac_cv_sys_large_files=unknown
5446  break
5447done
5448fi
5449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5450printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5451case $ac_cv_sys_large_files in #(
5452  no | unknown) ;;
5453  *)
5454printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5455;;
5456esac
5457rm -rf conftest*
5458  fi
5459fi
5460
5461
5462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5463printf %s "checking whether ln -s works... " >&6; }
5464LN_S=$as_ln_s
5465if test "$LN_S" = "ln -s"; then
5466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5467printf "%s\n" "yes" >&6; }
5468else
5469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5470printf "%s\n" "no, using $LN_S" >&6; }
5471fi
5472
5473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5474printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5475set x ${MAKE-make}
5476ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5477if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5478then :
5479  printf %s "(cached) " >&6
5480else $as_nop
5481  cat >conftest.make <<\_ACEOF
5482SHELL = /bin/sh
5483all:
5484	@echo '@@@%%%=$(MAKE)=@@@%%%'
5485_ACEOF
5486# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5487case `${MAKE-make} -f conftest.make 2>/dev/null` in
5488  *@@@%%%=?*=@@@%%%*)
5489    eval ac_cv_prog_make_${ac_make}_set=yes;;
5490  *)
5491    eval ac_cv_prog_make_${ac_make}_set=no;;
5492esac
5493rm -f conftest.make
5494fi
5495if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5497printf "%s\n" "yes" >&6; }
5498  SET_MAKE=
5499else
5500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501printf "%s\n" "no" >&6; }
5502  SET_MAKE="MAKE=${MAKE-make}"
5503fi
5504
5505
5506
5507
5508
5509
5510
5511
5512if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5513	if test -n "$ac_tool_prefix"; then
5514  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5515set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517printf %s "checking for $ac_word... " >&6; }
5518if test ${ac_cv_path_PKG_CONFIG+y}
5519then :
5520  printf %s "(cached) " >&6
5521else $as_nop
5522  case $PKG_CONFIG in
5523  [\\/]* | ?:[\\/]*)
5524  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5525  ;;
5526  *)
5527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
5529do
5530  IFS=$as_save_IFS
5531  case $as_dir in #(((
5532    '') as_dir=./ ;;
5533    */) ;;
5534    *) as_dir=$as_dir/ ;;
5535  esac
5536    for ac_exec_ext in '' $ac_executable_extensions; do
5537  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5538    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5539    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5540    break 2
5541  fi
5542done
5543  done
5544IFS=$as_save_IFS
5545
5546  ;;
5547esac
5548fi
5549PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5550if test -n "$PKG_CONFIG"; then
5551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5552printf "%s\n" "$PKG_CONFIG" >&6; }
5553else
5554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555printf "%s\n" "no" >&6; }
5556fi
5557
5558
5559fi
5560if test -z "$ac_cv_path_PKG_CONFIG"; then
5561  ac_pt_PKG_CONFIG=$PKG_CONFIG
5562  # Extract the first word of "pkg-config", so it can be a program name with args.
5563set dummy pkg-config; ac_word=$2
5564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565printf %s "checking for $ac_word... " >&6; }
5566if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5567then :
5568  printf %s "(cached) " >&6
5569else $as_nop
5570  case $ac_pt_PKG_CONFIG in
5571  [\\/]* | ?:[\\/]*)
5572  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5573  ;;
5574  *)
5575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576for as_dir in $PATH
5577do
5578  IFS=$as_save_IFS
5579  case $as_dir in #(((
5580    '') as_dir=./ ;;
5581    */) ;;
5582    *) as_dir=$as_dir/ ;;
5583  esac
5584    for ac_exec_ext in '' $ac_executable_extensions; do
5585  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5586    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5587    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5588    break 2
5589  fi
5590done
5591  done
5592IFS=$as_save_IFS
5593
5594  ;;
5595esac
5596fi
5597ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5598if test -n "$ac_pt_PKG_CONFIG"; then
5599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5600printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5601else
5602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603printf "%s\n" "no" >&6; }
5604fi
5605
5606  if test "x$ac_pt_PKG_CONFIG" = x; then
5607    PKG_CONFIG=""
5608  else
5609    case $cross_compiling:$ac_tool_warned in
5610yes:)
5611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613ac_tool_warned=yes ;;
5614esac
5615    PKG_CONFIG=$ac_pt_PKG_CONFIG
5616  fi
5617else
5618  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5619fi
5620
5621fi
5622if test -n "$PKG_CONFIG"; then
5623	_pkg_min_version=0.9.0
5624	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5625printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5626	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5627		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5628printf "%s\n" "yes" >&6; }
5629	else
5630		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631printf "%s\n" "no" >&6; }
5632		PKG_CONFIG=""
5633	fi
5634fi
5635
5636
5637
5638# Check whether --with-pkgconfigdir was given.
5639if test ${with_pkgconfigdir+y}
5640then :
5641  withval=$with_pkgconfigdir;
5642else $as_nop
5643  with_pkgconfigdir='${libdir}/pkgconfig'
5644fi
5645
5646pkgconfigdir=$with_pkgconfigdir
5647
5648
5649
5650
5651
5652
5653GIT=${GIT-"${am_missing_run}git"}
5654
5655
5656GPERF=${GPERF-"${am_missing_run}gperf"}
5657
5658
5659
5660
5661
5662
5663
5664        if test -n "$PYTHON"; then
5665      # If the user set $PYTHON, use it and don't search something else.
5666      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
5667printf %s "checking whether $PYTHON version is >= 3... " >&6; }
5668      prog="import sys
5669# split strings by '.' and convert to numeric.  Append some zeros
5670# because we need at least 4 digits for the hex conversion.
5671# map returns an iterator in Python 3.0 and a list in 2.x
5672minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
5673minverhex = 0
5674# xrange is not present in Python 3.0 and range returns an iterator
5675for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5676sys.exit(sys.hexversion < minverhex)"
5677  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5678   ($PYTHON -c "$prog") >&5 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }
5682then :
5683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684printf "%s\n" "yes" >&6; }
5685else $as_nop
5686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687printf "%s\n" "no" >&6; }
5688			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5689fi
5690      am_display_PYTHON=$PYTHON
5691    else
5692      # Otherwise, try each interpreter until we find one that satisfies
5693      # VERSION.
5694      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
5695printf %s "checking for a Python interpreter with version >= 3... " >&6; }
5696if test ${am_cv_pathless_PYTHON+y}
5697then :
5698  printf %s "(cached) " >&6
5699else $as_nop
5700
5701	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
5702	  test "$am_cv_pathless_PYTHON" = none && break
5703	  prog="import sys
5704# split strings by '.' and convert to numeric.  Append some zeros
5705# because we need at least 4 digits for the hex conversion.
5706# map returns an iterator in Python 3.0 and a list in 2.x
5707minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
5708minverhex = 0
5709# xrange is not present in Python 3.0 and range returns an iterator
5710for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5711sys.exit(sys.hexversion < minverhex)"
5712  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5713   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }
5717then :
5718  break
5719fi
5720	done
5721fi
5722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5723printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5724      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5725      if test "$am_cv_pathless_PYTHON" = none; then
5726	PYTHON=:
5727      else
5728        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5729set dummy $am_cv_pathless_PYTHON; ac_word=$2
5730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731printf %s "checking for $ac_word... " >&6; }
5732if test ${ac_cv_path_PYTHON+y}
5733then :
5734  printf %s "(cached) " >&6
5735else $as_nop
5736  case $PYTHON in
5737  [\\/]* | ?:[\\/]*)
5738  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5739  ;;
5740  *)
5741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744  IFS=$as_save_IFS
5745  case $as_dir in #(((
5746    '') as_dir=./ ;;
5747    */) ;;
5748    *) as_dir=$as_dir/ ;;
5749  esac
5750    for ac_exec_ext in '' $ac_executable_extensions; do
5751  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5752    ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
5753    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5754    break 2
5755  fi
5756done
5757  done
5758IFS=$as_save_IFS
5759
5760  ;;
5761esac
5762fi
5763PYTHON=$ac_cv_path_PYTHON
5764if test -n "$PYTHON"; then
5765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5766printf "%s\n" "$PYTHON" >&6; }
5767else
5768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769printf "%s\n" "no" >&6; }
5770fi
5771
5772
5773      fi
5774      am_display_PYTHON=$am_cv_pathless_PYTHON
5775    fi
5776
5777
5778  if test "$PYTHON" = :; then
5779        as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5780  else
5781
5782              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5783printf %s "checking for $am_display_PYTHON version... " >&6; }
5784if test ${am_cv_python_version+y}
5785then :
5786  printf %s "(cached) " >&6
5787else $as_nop
5788  am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
5789fi
5790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5791printf "%s\n" "$am_cv_python_version" >&6; }
5792  PYTHON_VERSION=$am_cv_python_version
5793
5794
5795        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5796printf %s "checking for $am_display_PYTHON platform... " >&6; }
5797if test ${am_cv_python_platform+y}
5798then :
5799  printf %s "(cached) " >&6
5800else $as_nop
5801  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5802fi
5803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5804printf "%s\n" "$am_cv_python_platform" >&6; }
5805  PYTHON_PLATFORM=$am_cv_python_platform
5806
5807
5808                            if test "x$prefix" = xNONE; then
5809    am__usable_prefix=$ac_default_prefix
5810  else
5811    am__usable_prefix=$prefix
5812  fi
5813
5814  # Allow user to request using sys.* values from Python,
5815  # instead of the GNU $prefix values.
5816
5817# Check whether --with-python-sys-prefix was given.
5818if test ${with_python_sys_prefix+y}
5819then :
5820  withval=$with_python_sys_prefix; am_use_python_sys=:
5821else $as_nop
5822  am_use_python_sys=false
5823fi
5824
5825
5826  # Allow user to override whatever the default Python prefix is.
5827
5828# Check whether --with-python_prefix was given.
5829if test ${with_python_prefix+y}
5830then :
5831  withval=$with_python_prefix; am_python_prefix_subst=$withval
5832   am_cv_python_prefix=$withval
5833   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
5834printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
5835   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5836printf "%s\n" "$am_cv_python_prefix" >&6; }
5837else $as_nop
5838
5839   if $am_use_python_sys; then
5840     # using python sys.prefix value, not GNU
5841     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
5842printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
5843if test ${am_cv_python_prefix+y}
5844then :
5845  printf %s "(cached) " >&6
5846else $as_nop
5847  am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
5848fi
5849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5850printf "%s\n" "$am_cv_python_prefix" >&6; }
5851
5852               case $am_cv_python_prefix in
5853     $am__usable_prefix*)
5854       am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
5855       am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
5856       ;;
5857     *)
5858       am_python_prefix_subst=$am_cv_python_prefix
5859       ;;
5860     esac
5861   else # using GNU prefix value, not python sys.prefix
5862     am_python_prefix_subst='${prefix}'
5863     am_python_prefix=$am_python_prefix_subst
5864     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
5865printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
5866     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
5867printf "%s\n" "$am_python_prefix" >&6; }
5868   fi
5869fi
5870
5871  # Substituting python_prefix_subst value.
5872  PYTHON_PREFIX=$am_python_prefix_subst
5873
5874
5875  # emacs-page Now do it all over again for Python exec_prefix, but with yet
5876  # another conditional: fall back to regular prefix if that was specified.
5877
5878# Check whether --with-python_exec_prefix was given.
5879if test ${with_python_exec_prefix+y}
5880then :
5881  withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
5882   am_cv_python_exec_prefix=$withval
5883   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
5884printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
5885   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5886printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5887else $as_nop
5888
5889   # no explicit --with-python_exec_prefix, but if
5890   # --with-python_prefix was given, use its value for python_exec_prefix too.
5891   if test -n "$with_python_prefix"
5892then :
5893  am_python_exec_prefix_subst=$with_python_prefix
5894    am_cv_python_exec_prefix=$with_python_prefix
5895    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
5896printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
5897    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5898printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5899else $as_nop
5900
5901    # Set am__usable_exec_prefix whether using GNU or Python values,
5902    # since we use that variable for pyexecdir.
5903    if test "x$exec_prefix" = xNONE; then
5904      am__usable_exec_prefix=$am__usable_prefix
5905    else
5906      am__usable_exec_prefix=$exec_prefix
5907    fi
5908    #
5909    if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
5910      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
5911printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
5912if test ${am_cv_python_exec_prefix+y}
5913then :
5914  printf %s "(cached) " >&6
5915else $as_nop
5916  am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
5917fi
5918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5919printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5920                        case $am_cv_python_exec_prefix in
5921      $am__usable_exec_prefix*)
5922        am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
5923        am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
5924        ;;
5925      *)
5926        am_python_exec_prefix_subst=$am_cv_python_exec_prefix
5927        ;;
5928     esac
5929   else # using GNU $exec_prefix, not python sys.exec_prefix
5930     am_python_exec_prefix_subst='${exec_prefix}'
5931     am_python_exec_prefix=$am_python_exec_prefix_subst
5932     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
5933printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
5934     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
5935printf "%s\n" "$am_python_exec_prefix" >&6; }
5936   fi
5937fi
5938fi
5939
5940  # Substituting python_exec_prefix_subst.
5941  PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
5942
5943
5944  # Factor out some code duplication into this shell variable.
5945  am_python_setup_sysconfig="\
5946import sys
5947# Prefer sysconfig over distutils.sysconfig, for better compatibility
5948# with python 3.x.  See automake bug#10227.
5949try:
5950    import sysconfig
5951except ImportError:
5952    can_use_sysconfig = 0
5953else:
5954    can_use_sysconfig = 1
5955# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5956# <https://github.com/pypa/virtualenv/issues/118>
5957try:
5958    from platform import python_implementation
5959    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5960        can_use_sysconfig = 0
5961except ImportError:
5962    pass"
5963
5964
5965              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
5966printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
5967if test ${am_cv_python_pythondir+y}
5968then :
5969  printf %s "(cached) " >&6
5970else $as_nop
5971  if test "x$am_cv_python_prefix" = x; then
5972     am_py_prefix=$am__usable_prefix
5973   else
5974     am_py_prefix=$am_cv_python_prefix
5975   fi
5976   am_cv_python_pythondir=`$PYTHON -c "
5977$am_python_setup_sysconfig
5978if can_use_sysconfig:
5979  sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5980else:
5981  from distutils import sysconfig
5982  sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5983sys.stdout.write(sitedir)"`
5984   #
5985   case $am_cv_python_pythondir in
5986   $am_py_prefix*)
5987     am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5988     am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
5989     ;;
5990   *)
5991     case $am_py_prefix in
5992       /usr|/System*) ;;
5993       *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
5994          ;;
5995     esac
5996     ;;
5997   esac
5998
5999fi
6000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6001printf "%s\n" "$am_cv_python_pythondir" >&6; }
6002  pythondir=$am_cv_python_pythondir
6003
6004
6005          pkgpythondir=\${pythondir}/$PACKAGE
6006
6007
6008          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
6009printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
6010if test ${am_cv_python_pyexecdir+y}
6011then :
6012  printf %s "(cached) " >&6
6013else $as_nop
6014  if test "x$am_cv_python_exec_prefix" = x; then
6015     am_py_exec_prefix=$am__usable_exec_prefix
6016   else
6017     am_py_exec_prefix=$am_cv_python_exec_prefix
6018   fi
6019   am_cv_python_pyexecdir=`$PYTHON -c "
6020$am_python_setup_sysconfig
6021if can_use_sysconfig:
6022  sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
6023else:
6024  from distutils import sysconfig
6025  sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
6026sys.stdout.write(sitedir)"`
6027   #
6028   case $am_cv_python_pyexecdir in
6029   $am_py_exec_prefix*)
6030     am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6031     am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
6032     ;;
6033   *)
6034     case $am_py_exec_prefix in
6035       /usr|/System*) ;;
6036       *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
6037          ;;
6038     esac
6039     ;;
6040   esac
6041
6042fi
6043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6044printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
6045  pyexecdir=$am_cv_python_pyexecdir
6046
6047
6048      pkgpyexecdir=\${pyexecdir}/$PACKAGE
6049
6050
6051
6052  fi
6053
6054
6055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
6056printf %s "checking for RM macro... " >&6; }
6057_predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
6058if test "x$_predefined_rm" = "x"; then
6059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
6060printf "%s\n" "no predefined RM" >&6; }
6061	# Extract the first word of "rm", so it can be a program name with args.
6062set dummy rm; ac_word=$2
6063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064printf %s "checking for $ac_word... " >&6; }
6065if test ${ac_cv_prog_RM+y}
6066then :
6067  printf %s "(cached) " >&6
6068else $as_nop
6069  if test -n "$RM"; then
6070  ac_cv_prog_RM="$RM" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075  IFS=$as_save_IFS
6076  case $as_dir in #(((
6077    '') as_dir=./ ;;
6078    */) ;;
6079    *) as_dir=$as_dir/ ;;
6080  esac
6081    for ac_exec_ext in '' $ac_executable_extensions; do
6082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6083    ac_cv_prog_RM="rm -f"
6084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6085    break 2
6086  fi
6087done
6088  done
6089IFS=$as_save_IFS
6090
6091fi
6092fi
6093RM=$ac_cv_prog_RM
6094if test -n "$RM"; then
6095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6096printf "%s\n" "$RM" >&6; }
6097else
6098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099printf "%s\n" "no" >&6; }
6100fi
6101
6102
6103else
6104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
6105printf "%s\n" "$_predefined_rm" >&6; }
6106fi
6107
6108
6109case `pwd` in
6110  *\ * | *\	*)
6111    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6112printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6113esac
6114
6115
6116
6117macro_version='2.4.7'
6118macro_revision='2.4.7'
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133ltmain=$ac_aux_dir/ltmain.sh
6134
6135
6136
6137  # Make sure we can run config.sub.
6138$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6139  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6140
6141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6142printf %s "checking build system type... " >&6; }
6143if test ${ac_cv_build+y}
6144then :
6145  printf %s "(cached) " >&6
6146else $as_nop
6147  ac_build_alias=$build_alias
6148test "x$ac_build_alias" = x &&
6149  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6150test "x$ac_build_alias" = x &&
6151  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6152ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6153  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6154
6155fi
6156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6157printf "%s\n" "$ac_cv_build" >&6; }
6158case $ac_cv_build in
6159*-*-*) ;;
6160*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6161esac
6162build=$ac_cv_build
6163ac_save_IFS=$IFS; IFS='-'
6164set x $ac_cv_build
6165shift
6166build_cpu=$1
6167build_vendor=$2
6168shift; shift
6169# Remember, the first character of IFS is used to create $*,
6170# except with old shells:
6171build_os=$*
6172IFS=$ac_save_IFS
6173case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6174
6175
6176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6177printf %s "checking host system type... " >&6; }
6178if test ${ac_cv_host+y}
6179then :
6180  printf %s "(cached) " >&6
6181else $as_nop
6182  if test "x$host_alias" = x; then
6183  ac_cv_host=$ac_cv_build
6184else
6185  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6186    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6187fi
6188
6189fi
6190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6191printf "%s\n" "$ac_cv_host" >&6; }
6192case $ac_cv_host in
6193*-*-*) ;;
6194*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6195esac
6196host=$ac_cv_host
6197ac_save_IFS=$IFS; IFS='-'
6198set x $ac_cv_host
6199shift
6200host_cpu=$1
6201host_vendor=$2
6202shift; shift
6203# Remember, the first character of IFS is used to create $*,
6204# except with old shells:
6205host_os=$*
6206IFS=$ac_save_IFS
6207case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6208
6209
6210# Backslashify metacharacters that are still active within
6211# double-quoted strings.
6212sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6213
6214# Same as above, but do not quote variable references.
6215double_quote_subst='s/\(["`\\]\)/\\\1/g'
6216
6217# Sed substitution to delay expansion of an escaped shell variable in a
6218# double_quote_subst'ed string.
6219delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6220
6221# Sed substitution to delay expansion of an escaped single quote.
6222delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6223
6224# Sed substitution to avoid accidental globbing in evaled expressions
6225no_glob_subst='s/\*/\\\*/g'
6226
6227ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6228ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6229ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6230
6231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6232printf %s "checking how to print strings... " >&6; }
6233# Test print first, because it will be a builtin if present.
6234if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6235   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6236  ECHO='print -r --'
6237elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6238  ECHO='printf %s\n'
6239else
6240  # Use this function as a fallback that always works.
6241  func_fallback_echo ()
6242  {
6243    eval 'cat <<_LTECHO_EOF
6244$1
6245_LTECHO_EOF'
6246  }
6247  ECHO='func_fallback_echo'
6248fi
6249
6250# func_echo_all arg...
6251# Invoke $ECHO with all args, space-separated.
6252func_echo_all ()
6253{
6254    $ECHO ""
6255}
6256
6257case $ECHO in
6258  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6259printf "%s\n" "printf" >&6; } ;;
6260  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6261printf "%s\n" "print -r" >&6; } ;;
6262  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6263printf "%s\n" "cat" >&6; } ;;
6264esac
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6280printf %s "checking for a sed that does not truncate output... " >&6; }
6281if test ${ac_cv_path_SED+y}
6282then :
6283  printf %s "(cached) " >&6
6284else $as_nop
6285            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6286     for ac_i in 1 2 3 4 5 6 7; do
6287       ac_script="$ac_script$as_nl$ac_script"
6288     done
6289     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6290     { ac_script=; unset ac_script;}
6291     if test -z "$SED"; then
6292  ac_path_SED_found=false
6293  # Loop through the user's path and test for each of PROGNAME-LIST
6294  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297  IFS=$as_save_IFS
6298  case $as_dir in #(((
6299    '') as_dir=./ ;;
6300    */) ;;
6301    *) as_dir=$as_dir/ ;;
6302  esac
6303    for ac_prog in sed gsed
6304   do
6305    for ac_exec_ext in '' $ac_executable_extensions; do
6306      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6307      as_fn_executable_p "$ac_path_SED" || continue
6308# Check for GNU ac_path_SED and select it if it is found.
6309  # Check for GNU $ac_path_SED
6310case `"$ac_path_SED" --version 2>&1` in
6311*GNU*)
6312  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6313*)
6314  ac_count=0
6315  printf %s 0123456789 >"conftest.in"
6316  while :
6317  do
6318    cat "conftest.in" "conftest.in" >"conftest.tmp"
6319    mv "conftest.tmp" "conftest.in"
6320    cp "conftest.in" "conftest.nl"
6321    printf "%s\n" '' >> "conftest.nl"
6322    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6323    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6324    as_fn_arith $ac_count + 1 && ac_count=$as_val
6325    if test $ac_count -gt ${ac_path_SED_max-0}; then
6326      # Best one so far, save it but keep looking for a better one
6327      ac_cv_path_SED="$ac_path_SED"
6328      ac_path_SED_max=$ac_count
6329    fi
6330    # 10*(2^10) chars as input seems more than enough
6331    test $ac_count -gt 10 && break
6332  done
6333  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6334esac
6335
6336      $ac_path_SED_found && break 3
6337    done
6338  done
6339  done
6340IFS=$as_save_IFS
6341  if test -z "$ac_cv_path_SED"; then
6342    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6343  fi
6344else
6345  ac_cv_path_SED=$SED
6346fi
6347
6348fi
6349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6350printf "%s\n" "$ac_cv_path_SED" >&6; }
6351 SED="$ac_cv_path_SED"
6352  rm -f conftest.sed
6353
6354test -z "$SED" && SED=sed
6355Xsed="$SED -e 1s/^X//"
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6368printf %s "checking for grep that handles long lines and -e... " >&6; }
6369if test ${ac_cv_path_GREP+y}
6370then :
6371  printf %s "(cached) " >&6
6372else $as_nop
6373  if test -z "$GREP"; then
6374  ac_path_GREP_found=false
6375  # Loop through the user's path and test for each of PROGNAME-LIST
6376  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6378do
6379  IFS=$as_save_IFS
6380  case $as_dir in #(((
6381    '') as_dir=./ ;;
6382    */) ;;
6383    *) as_dir=$as_dir/ ;;
6384  esac
6385    for ac_prog in grep ggrep
6386   do
6387    for ac_exec_ext in '' $ac_executable_extensions; do
6388      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6389      as_fn_executable_p "$ac_path_GREP" || continue
6390# Check for GNU ac_path_GREP and select it if it is found.
6391  # Check for GNU $ac_path_GREP
6392case `"$ac_path_GREP" --version 2>&1` in
6393*GNU*)
6394  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6395*)
6396  ac_count=0
6397  printf %s 0123456789 >"conftest.in"
6398  while :
6399  do
6400    cat "conftest.in" "conftest.in" >"conftest.tmp"
6401    mv "conftest.tmp" "conftest.in"
6402    cp "conftest.in" "conftest.nl"
6403    printf "%s\n" 'GREP' >> "conftest.nl"
6404    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6405    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6406    as_fn_arith $ac_count + 1 && ac_count=$as_val
6407    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6408      # Best one so far, save it but keep looking for a better one
6409      ac_cv_path_GREP="$ac_path_GREP"
6410      ac_path_GREP_max=$ac_count
6411    fi
6412    # 10*(2^10) chars as input seems more than enough
6413    test $ac_count -gt 10 && break
6414  done
6415  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6416esac
6417
6418      $ac_path_GREP_found && break 3
6419    done
6420  done
6421  done
6422IFS=$as_save_IFS
6423  if test -z "$ac_cv_path_GREP"; then
6424    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6425  fi
6426else
6427  ac_cv_path_GREP=$GREP
6428fi
6429
6430fi
6431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6432printf "%s\n" "$ac_cv_path_GREP" >&6; }
6433 GREP="$ac_cv_path_GREP"
6434
6435
6436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6437printf %s "checking for egrep... " >&6; }
6438if test ${ac_cv_path_EGREP+y}
6439then :
6440  printf %s "(cached) " >&6
6441else $as_nop
6442  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6443   then ac_cv_path_EGREP="$GREP -E"
6444   else
6445     if test -z "$EGREP"; then
6446  ac_path_EGREP_found=false
6447  # Loop through the user's path and test for each of PROGNAME-LIST
6448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6450do
6451  IFS=$as_save_IFS
6452  case $as_dir in #(((
6453    '') as_dir=./ ;;
6454    */) ;;
6455    *) as_dir=$as_dir/ ;;
6456  esac
6457    for ac_prog in egrep
6458   do
6459    for ac_exec_ext in '' $ac_executable_extensions; do
6460      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6461      as_fn_executable_p "$ac_path_EGREP" || continue
6462# Check for GNU ac_path_EGREP and select it if it is found.
6463  # Check for GNU $ac_path_EGREP
6464case `"$ac_path_EGREP" --version 2>&1` in
6465*GNU*)
6466  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6467*)
6468  ac_count=0
6469  printf %s 0123456789 >"conftest.in"
6470  while :
6471  do
6472    cat "conftest.in" "conftest.in" >"conftest.tmp"
6473    mv "conftest.tmp" "conftest.in"
6474    cp "conftest.in" "conftest.nl"
6475    printf "%s\n" 'EGREP' >> "conftest.nl"
6476    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6477    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6478    as_fn_arith $ac_count + 1 && ac_count=$as_val
6479    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6480      # Best one so far, save it but keep looking for a better one
6481      ac_cv_path_EGREP="$ac_path_EGREP"
6482      ac_path_EGREP_max=$ac_count
6483    fi
6484    # 10*(2^10) chars as input seems more than enough
6485    test $ac_count -gt 10 && break
6486  done
6487  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6488esac
6489
6490      $ac_path_EGREP_found && break 3
6491    done
6492  done
6493  done
6494IFS=$as_save_IFS
6495  if test -z "$ac_cv_path_EGREP"; then
6496    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6497  fi
6498else
6499  ac_cv_path_EGREP=$EGREP
6500fi
6501
6502   fi
6503fi
6504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6505printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6506 EGREP="$ac_cv_path_EGREP"
6507
6508
6509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6510printf %s "checking for fgrep... " >&6; }
6511if test ${ac_cv_path_FGREP+y}
6512then :
6513  printf %s "(cached) " >&6
6514else $as_nop
6515  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6516   then ac_cv_path_FGREP="$GREP -F"
6517   else
6518     if test -z "$FGREP"; then
6519  ac_path_FGREP_found=false
6520  # Loop through the user's path and test for each of PROGNAME-LIST
6521  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6523do
6524  IFS=$as_save_IFS
6525  case $as_dir in #(((
6526    '') as_dir=./ ;;
6527    */) ;;
6528    *) as_dir=$as_dir/ ;;
6529  esac
6530    for ac_prog in fgrep
6531   do
6532    for ac_exec_ext in '' $ac_executable_extensions; do
6533      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6534      as_fn_executable_p "$ac_path_FGREP" || continue
6535# Check for GNU ac_path_FGREP and select it if it is found.
6536  # Check for GNU $ac_path_FGREP
6537case `"$ac_path_FGREP" --version 2>&1` in
6538*GNU*)
6539  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6540*)
6541  ac_count=0
6542  printf %s 0123456789 >"conftest.in"
6543  while :
6544  do
6545    cat "conftest.in" "conftest.in" >"conftest.tmp"
6546    mv "conftest.tmp" "conftest.in"
6547    cp "conftest.in" "conftest.nl"
6548    printf "%s\n" 'FGREP' >> "conftest.nl"
6549    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6550    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6551    as_fn_arith $ac_count + 1 && ac_count=$as_val
6552    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6553      # Best one so far, save it but keep looking for a better one
6554      ac_cv_path_FGREP="$ac_path_FGREP"
6555      ac_path_FGREP_max=$ac_count
6556    fi
6557    # 10*(2^10) chars as input seems more than enough
6558    test $ac_count -gt 10 && break
6559  done
6560  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6561esac
6562
6563      $ac_path_FGREP_found && break 3
6564    done
6565  done
6566  done
6567IFS=$as_save_IFS
6568  if test -z "$ac_cv_path_FGREP"; then
6569    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6570  fi
6571else
6572  ac_cv_path_FGREP=$FGREP
6573fi
6574
6575   fi
6576fi
6577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6578printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6579 FGREP="$ac_cv_path_FGREP"
6580
6581
6582test -z "$GREP" && GREP=grep
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602# Check whether --with-gnu-ld was given.
6603if test ${with_gnu_ld+y}
6604then :
6605  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6606else $as_nop
6607  with_gnu_ld=no
6608fi
6609
6610ac_prog=ld
6611if test yes = "$GCC"; then
6612  # Check if gcc -print-prog-name=ld gives a path.
6613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6614printf %s "checking for ld used by $CC... " >&6; }
6615  case $host in
6616  *-*-mingw*)
6617    # gcc leaves a trailing carriage return, which upsets mingw
6618    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6619  *)
6620    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6621  esac
6622  case $ac_prog in
6623    # Accept absolute paths.
6624    [\\/]* | ?:[\\/]*)
6625      re_direlt='/[^/][^/]*/\.\./'
6626      # Canonicalize the pathname of ld
6627      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6628      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6629	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6630      done
6631      test -z "$LD" && LD=$ac_prog
6632      ;;
6633  "")
6634    # If it fails, then pretend we aren't using GCC.
6635    ac_prog=ld
6636    ;;
6637  *)
6638    # If it is relative, then search for the first ld in PATH.
6639    with_gnu_ld=unknown
6640    ;;
6641  esac
6642elif test yes = "$with_gnu_ld"; then
6643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6644printf %s "checking for GNU ld... " >&6; }
6645else
6646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6647printf %s "checking for non-GNU ld... " >&6; }
6648fi
6649if test ${lt_cv_path_LD+y}
6650then :
6651  printf %s "(cached) " >&6
6652else $as_nop
6653  if test -z "$LD"; then
6654  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6655  for ac_dir in $PATH; do
6656    IFS=$lt_save_ifs
6657    test -z "$ac_dir" && ac_dir=.
6658    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6659      lt_cv_path_LD=$ac_dir/$ac_prog
6660      # Check to see if the program is GNU ld.  I'd rather use --version,
6661      # but apparently some variants of GNU ld only accept -v.
6662      # Break only if it was the GNU/non-GNU ld that we prefer.
6663      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6664      *GNU* | *'with BFD'*)
6665	test no != "$with_gnu_ld" && break
6666	;;
6667      *)
6668	test yes != "$with_gnu_ld" && break
6669	;;
6670      esac
6671    fi
6672  done
6673  IFS=$lt_save_ifs
6674else
6675  lt_cv_path_LD=$LD # Let the user override the test with a path.
6676fi
6677fi
6678
6679LD=$lt_cv_path_LD
6680if test -n "$LD"; then
6681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6682printf "%s\n" "$LD" >&6; }
6683else
6684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685printf "%s\n" "no" >&6; }
6686fi
6687test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6689printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6690if test ${lt_cv_prog_gnu_ld+y}
6691then :
6692  printf %s "(cached) " >&6
6693else $as_nop
6694  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6695case `$LD -v 2>&1 </dev/null` in
6696*GNU* | *'with BFD'*)
6697  lt_cv_prog_gnu_ld=yes
6698  ;;
6699*)
6700  lt_cv_prog_gnu_ld=no
6701  ;;
6702esac
6703fi
6704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6705printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6706with_gnu_ld=$lt_cv_prog_gnu_ld
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6717printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6718if test ${lt_cv_path_NM+y}
6719then :
6720  printf %s "(cached) " >&6
6721else $as_nop
6722  if test -n "$NM"; then
6723  # Let the user override the test.
6724  lt_cv_path_NM=$NM
6725else
6726  lt_nm_to_check=${ac_tool_prefix}nm
6727  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6728    lt_nm_to_check="$lt_nm_to_check nm"
6729  fi
6730  for lt_tmp_nm in $lt_nm_to_check; do
6731    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6732    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6733      IFS=$lt_save_ifs
6734      test -z "$ac_dir" && ac_dir=.
6735      tmp_nm=$ac_dir/$lt_tmp_nm
6736      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6737	# Check to see if the nm accepts a BSD-compat flag.
6738	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6739	#   nm: unknown option "B" ignored
6740	# Tru64's nm complains that /dev/null is an invalid object file
6741	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6742	case $build_os in
6743	mingw*) lt_bad_file=conftest.nm/nofile ;;
6744	*) lt_bad_file=/dev/null ;;
6745	esac
6746	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6747	*$lt_bad_file* | *'Invalid file or object type'*)
6748	  lt_cv_path_NM="$tmp_nm -B"
6749	  break 2
6750	  ;;
6751	*)
6752	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6753	  */dev/null*)
6754	    lt_cv_path_NM="$tmp_nm -p"
6755	    break 2
6756	    ;;
6757	  *)
6758	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6759	    continue # so that we can try to find one that supports BSD flags
6760	    ;;
6761	  esac
6762	  ;;
6763	esac
6764      fi
6765    done
6766    IFS=$lt_save_ifs
6767  done
6768  : ${lt_cv_path_NM=no}
6769fi
6770fi
6771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6772printf "%s\n" "$lt_cv_path_NM" >&6; }
6773if test no != "$lt_cv_path_NM"; then
6774  NM=$lt_cv_path_NM
6775else
6776  # Didn't find any BSD compatible name lister, look for dumpbin.
6777  if test -n "$DUMPBIN"; then :
6778    # Let the user override the test.
6779  else
6780    if test -n "$ac_tool_prefix"; then
6781  for ac_prog in dumpbin "link -dump"
6782  do
6783    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6784set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786printf %s "checking for $ac_word... " >&6; }
6787if test ${ac_cv_prog_DUMPBIN+y}
6788then :
6789  printf %s "(cached) " >&6
6790else $as_nop
6791  if test -n "$DUMPBIN"; then
6792  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6793else
6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797  IFS=$as_save_IFS
6798  case $as_dir in #(((
6799    '') as_dir=./ ;;
6800    */) ;;
6801    *) as_dir=$as_dir/ ;;
6802  esac
6803    for ac_exec_ext in '' $ac_executable_extensions; do
6804  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6805    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6806    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6807    break 2
6808  fi
6809done
6810  done
6811IFS=$as_save_IFS
6812
6813fi
6814fi
6815DUMPBIN=$ac_cv_prog_DUMPBIN
6816if test -n "$DUMPBIN"; then
6817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6818printf "%s\n" "$DUMPBIN" >&6; }
6819else
6820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821printf "%s\n" "no" >&6; }
6822fi
6823
6824
6825    test -n "$DUMPBIN" && break
6826  done
6827fi
6828if test -z "$DUMPBIN"; then
6829  ac_ct_DUMPBIN=$DUMPBIN
6830  for ac_prog in dumpbin "link -dump"
6831do
6832  # Extract the first word of "$ac_prog", so it can be a program name with args.
6833set dummy $ac_prog; ac_word=$2
6834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835printf %s "checking for $ac_word... " >&6; }
6836if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6837then :
6838  printf %s "(cached) " >&6
6839else $as_nop
6840  if test -n "$ac_ct_DUMPBIN"; then
6841  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6842else
6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846  IFS=$as_save_IFS
6847  case $as_dir in #(((
6848    '') as_dir=./ ;;
6849    */) ;;
6850    *) as_dir=$as_dir/ ;;
6851  esac
6852    for ac_exec_ext in '' $ac_executable_extensions; do
6853  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6854    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6855    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6856    break 2
6857  fi
6858done
6859  done
6860IFS=$as_save_IFS
6861
6862fi
6863fi
6864ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6865if test -n "$ac_ct_DUMPBIN"; then
6866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6867printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6868else
6869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870printf "%s\n" "no" >&6; }
6871fi
6872
6873
6874  test -n "$ac_ct_DUMPBIN" && break
6875done
6876
6877  if test "x$ac_ct_DUMPBIN" = x; then
6878    DUMPBIN=":"
6879  else
6880    case $cross_compiling:$ac_tool_warned in
6881yes:)
6882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884ac_tool_warned=yes ;;
6885esac
6886    DUMPBIN=$ac_ct_DUMPBIN
6887  fi
6888fi
6889
6890    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6891    *COFF*)
6892      DUMPBIN="$DUMPBIN -symbols -headers"
6893      ;;
6894    *)
6895      DUMPBIN=:
6896      ;;
6897    esac
6898  fi
6899
6900  if test : != "$DUMPBIN"; then
6901    NM=$DUMPBIN
6902  fi
6903fi
6904test -z "$NM" && NM=nm
6905
6906
6907
6908
6909
6910
6911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6912printf %s "checking the name lister ($NM) interface... " >&6; }
6913if test ${lt_cv_nm_interface+y}
6914then :
6915  printf %s "(cached) " >&6
6916else $as_nop
6917  lt_cv_nm_interface="BSD nm"
6918  echo "int some_variable = 0;" > conftest.$ac_ext
6919  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6920  (eval "$ac_compile" 2>conftest.err)
6921  cat conftest.err >&5
6922  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6923  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6924  cat conftest.err >&5
6925  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6926  cat conftest.out >&5
6927  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6928    lt_cv_nm_interface="MS dumpbin"
6929  fi
6930  rm -f conftest*
6931fi
6932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6933printf "%s\n" "$lt_cv_nm_interface" >&6; }
6934
6935# find the maximum length of command line arguments
6936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6937printf %s "checking the maximum length of command line arguments... " >&6; }
6938if test ${lt_cv_sys_max_cmd_len+y}
6939then :
6940  printf %s "(cached) " >&6
6941else $as_nop
6942    i=0
6943  teststring=ABCD
6944
6945  case $build_os in
6946  msdosdjgpp*)
6947    # On DJGPP, this test can blow up pretty badly due to problems in libc
6948    # (any single argument exceeding 2000 bytes causes a buffer overrun
6949    # during glob expansion).  Even if it were fixed, the result of this
6950    # check would be larger than it should be.
6951    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6952    ;;
6953
6954  gnu*)
6955    # Under GNU Hurd, this test is not required because there is
6956    # no limit to the length of command line arguments.
6957    # Libtool will interpret -1 as no limit whatsoever
6958    lt_cv_sys_max_cmd_len=-1;
6959    ;;
6960
6961  cygwin* | mingw* | cegcc*)
6962    # On Win9x/ME, this test blows up -- it succeeds, but takes
6963    # about 5 minutes as the teststring grows exponentially.
6964    # Worse, since 9x/ME are not pre-emptively multitasking,
6965    # you end up with a "frozen" computer, even though with patience
6966    # the test eventually succeeds (with a max line length of 256k).
6967    # Instead, let's just punt: use the minimum linelength reported by
6968    # all of the supported platforms: 8192 (on NT/2K/XP).
6969    lt_cv_sys_max_cmd_len=8192;
6970    ;;
6971
6972  mint*)
6973    # On MiNT this can take a long time and run out of memory.
6974    lt_cv_sys_max_cmd_len=8192;
6975    ;;
6976
6977  amigaos*)
6978    # On AmigaOS with pdksh, this test takes hours, literally.
6979    # So we just punt and use a minimum line length of 8192.
6980    lt_cv_sys_max_cmd_len=8192;
6981    ;;
6982
6983  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6984    # This has been around since 386BSD, at least.  Likely further.
6985    if test -x /sbin/sysctl; then
6986      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6987    elif test -x /usr/sbin/sysctl; then
6988      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6989    else
6990      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6991    fi
6992    # And add a safety zone
6993    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6994    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6995    ;;
6996
6997  interix*)
6998    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6999    lt_cv_sys_max_cmd_len=196608
7000    ;;
7001
7002  os2*)
7003    # The test takes a long time on OS/2.
7004    lt_cv_sys_max_cmd_len=8192
7005    ;;
7006
7007  osf*)
7008    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7009    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7010    # nice to cause kernel panics so lets avoid the loop below.
7011    # First set a reasonable default.
7012    lt_cv_sys_max_cmd_len=16384
7013    #
7014    if test -x /sbin/sysconfig; then
7015      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7016        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7017      esac
7018    fi
7019    ;;
7020  sco3.2v5*)
7021    lt_cv_sys_max_cmd_len=102400
7022    ;;
7023  sysv5* | sco5v6* | sysv4.2uw2*)
7024    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7025    if test -n "$kargmax"; then
7026      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
7027    else
7028      lt_cv_sys_max_cmd_len=32768
7029    fi
7030    ;;
7031  *)
7032    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7033    if test -n "$lt_cv_sys_max_cmd_len" && \
7034       test undefined != "$lt_cv_sys_max_cmd_len"; then
7035      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7036      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7037    else
7038      # Make teststring a little bigger before we do anything with it.
7039      # a 1K string should be a reasonable start.
7040      for i in 1 2 3 4 5 6 7 8; do
7041        teststring=$teststring$teststring
7042      done
7043      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7044      # If test is not a shell built-in, we'll probably end up computing a
7045      # maximum length that is only half of the actual maximum length, but
7046      # we can't tell.
7047      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7048	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7049	      test 17 != "$i" # 1/2 MB should be enough
7050      do
7051        i=`expr $i + 1`
7052        teststring=$teststring$teststring
7053      done
7054      # Only check the string length outside the loop.
7055      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7056      teststring=
7057      # Add a significant safety factor because C++ compilers can tack on
7058      # massive amounts of additional arguments before passing them to the
7059      # linker.  It appears as though 1/2 is a usable value.
7060      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7061    fi
7062    ;;
7063  esac
7064
7065fi
7066
7067if test -n "$lt_cv_sys_max_cmd_len"; then
7068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7069printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7070else
7071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7072printf "%s\n" "none" >&6; }
7073fi
7074max_cmd_len=$lt_cv_sys_max_cmd_len
7075
7076
7077
7078
7079
7080
7081: ${CP="cp -f"}
7082: ${MV="mv -f"}
7083: ${RM="rm -f"}
7084
7085if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7086  lt_unset=unset
7087else
7088  lt_unset=false
7089fi
7090
7091
7092
7093
7094
7095# test EBCDIC or ASCII
7096case `echo X|tr X '\101'` in
7097 A) # ASCII based system
7098    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7099  lt_SP2NL='tr \040 \012'
7100  lt_NL2SP='tr \015\012 \040\040'
7101  ;;
7102 *) # EBCDIC based system
7103  lt_SP2NL='tr \100 \n'
7104  lt_NL2SP='tr \r\n \100\100'
7105  ;;
7106esac
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7117printf %s "checking how to convert $build file names to $host format... " >&6; }
7118if test ${lt_cv_to_host_file_cmd+y}
7119then :
7120  printf %s "(cached) " >&6
7121else $as_nop
7122  case $host in
7123  *-*-mingw* )
7124    case $build in
7125      *-*-mingw* ) # actually msys
7126        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7127        ;;
7128      *-*-cygwin* )
7129        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7130        ;;
7131      * ) # otherwise, assume *nix
7132        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7133        ;;
7134    esac
7135    ;;
7136  *-*-cygwin* )
7137    case $build in
7138      *-*-mingw* ) # actually msys
7139        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7140        ;;
7141      *-*-cygwin* )
7142        lt_cv_to_host_file_cmd=func_convert_file_noop
7143        ;;
7144      * ) # otherwise, assume *nix
7145        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7146        ;;
7147    esac
7148    ;;
7149  * ) # unhandled hosts (and "normal" native builds)
7150    lt_cv_to_host_file_cmd=func_convert_file_noop
7151    ;;
7152esac
7153
7154fi
7155
7156to_host_file_cmd=$lt_cv_to_host_file_cmd
7157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7158printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7159
7160
7161
7162
7163
7164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7165printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7166if test ${lt_cv_to_tool_file_cmd+y}
7167then :
7168  printf %s "(cached) " >&6
7169else $as_nop
7170  #assume ordinary cross tools, or native build.
7171lt_cv_to_tool_file_cmd=func_convert_file_noop
7172case $host in
7173  *-*-mingw* )
7174    case $build in
7175      *-*-mingw* ) # actually msys
7176        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7177        ;;
7178    esac
7179    ;;
7180esac
7181
7182fi
7183
7184to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7186printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7187
7188
7189
7190
7191
7192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7193printf %s "checking for $LD option to reload object files... " >&6; }
7194if test ${lt_cv_ld_reload_flag+y}
7195then :
7196  printf %s "(cached) " >&6
7197else $as_nop
7198  lt_cv_ld_reload_flag='-r'
7199fi
7200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7201printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7202reload_flag=$lt_cv_ld_reload_flag
7203case $reload_flag in
7204"" | " "*) ;;
7205*) reload_flag=" $reload_flag" ;;
7206esac
7207reload_cmds='$LD$reload_flag -o $output$reload_objs'
7208case $host_os in
7209  cygwin* | mingw* | pw32* | cegcc*)
7210    if test yes != "$GCC"; then
7211      reload_cmds=false
7212    fi
7213    ;;
7214  darwin*)
7215    if test yes = "$GCC"; then
7216      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7217    else
7218      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7219    fi
7220    ;;
7221esac
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231if test -n "$ac_tool_prefix"; then
7232  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7233set dummy ${ac_tool_prefix}file; ac_word=$2
7234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235printf %s "checking for $ac_word... " >&6; }
7236if test ${ac_cv_prog_FILECMD+y}
7237then :
7238  printf %s "(cached) " >&6
7239else $as_nop
7240  if test -n "$FILECMD"; then
7241  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246  IFS=$as_save_IFS
7247  case $as_dir in #(((
7248    '') as_dir=./ ;;
7249    */) ;;
7250    *) as_dir=$as_dir/ ;;
7251  esac
7252    for ac_exec_ext in '' $ac_executable_extensions; do
7253  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7254    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7255    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7256    break 2
7257  fi
7258done
7259  done
7260IFS=$as_save_IFS
7261
7262fi
7263fi
7264FILECMD=$ac_cv_prog_FILECMD
7265if test -n "$FILECMD"; then
7266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7267printf "%s\n" "$FILECMD" >&6; }
7268else
7269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270printf "%s\n" "no" >&6; }
7271fi
7272
7273
7274fi
7275if test -z "$ac_cv_prog_FILECMD"; then
7276  ac_ct_FILECMD=$FILECMD
7277  # Extract the first word of "file", so it can be a program name with args.
7278set dummy file; ac_word=$2
7279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280printf %s "checking for $ac_word... " >&6; }
7281if test ${ac_cv_prog_ac_ct_FILECMD+y}
7282then :
7283  printf %s "(cached) " >&6
7284else $as_nop
7285  if test -n "$ac_ct_FILECMD"; then
7286  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291  IFS=$as_save_IFS
7292  case $as_dir in #(((
7293    '') as_dir=./ ;;
7294    */) ;;
7295    *) as_dir=$as_dir/ ;;
7296  esac
7297    for ac_exec_ext in '' $ac_executable_extensions; do
7298  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7299    ac_cv_prog_ac_ct_FILECMD="file"
7300    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7301    break 2
7302  fi
7303done
7304  done
7305IFS=$as_save_IFS
7306
7307fi
7308fi
7309ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7310if test -n "$ac_ct_FILECMD"; then
7311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7312printf "%s\n" "$ac_ct_FILECMD" >&6; }
7313else
7314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315printf "%s\n" "no" >&6; }
7316fi
7317
7318  if test "x$ac_ct_FILECMD" = x; then
7319    FILECMD=":"
7320  else
7321    case $cross_compiling:$ac_tool_warned in
7322yes:)
7323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325ac_tool_warned=yes ;;
7326esac
7327    FILECMD=$ac_ct_FILECMD
7328  fi
7329else
7330  FILECMD="$ac_cv_prog_FILECMD"
7331fi
7332
7333
7334
7335
7336
7337
7338
7339if test -n "$ac_tool_prefix"; then
7340  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7341set dummy ${ac_tool_prefix}objdump; ac_word=$2
7342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343printf %s "checking for $ac_word... " >&6; }
7344if test ${ac_cv_prog_OBJDUMP+y}
7345then :
7346  printf %s "(cached) " >&6
7347else $as_nop
7348  if test -n "$OBJDUMP"; then
7349  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7350else
7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354  IFS=$as_save_IFS
7355  case $as_dir in #(((
7356    '') as_dir=./ ;;
7357    */) ;;
7358    *) as_dir=$as_dir/ ;;
7359  esac
7360    for ac_exec_ext in '' $ac_executable_extensions; do
7361  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7362    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7363    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7364    break 2
7365  fi
7366done
7367  done
7368IFS=$as_save_IFS
7369
7370fi
7371fi
7372OBJDUMP=$ac_cv_prog_OBJDUMP
7373if test -n "$OBJDUMP"; then
7374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7375printf "%s\n" "$OBJDUMP" >&6; }
7376else
7377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378printf "%s\n" "no" >&6; }
7379fi
7380
7381
7382fi
7383if test -z "$ac_cv_prog_OBJDUMP"; then
7384  ac_ct_OBJDUMP=$OBJDUMP
7385  # Extract the first word of "objdump", so it can be a program name with args.
7386set dummy objdump; ac_word=$2
7387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388printf %s "checking for $ac_word... " >&6; }
7389if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7390then :
7391  printf %s "(cached) " >&6
7392else $as_nop
7393  if test -n "$ac_ct_OBJDUMP"; then
7394  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7395else
7396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399  IFS=$as_save_IFS
7400  case $as_dir in #(((
7401    '') as_dir=./ ;;
7402    */) ;;
7403    *) as_dir=$as_dir/ ;;
7404  esac
7405    for ac_exec_ext in '' $ac_executable_extensions; do
7406  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7407    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7408    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412  done
7413IFS=$as_save_IFS
7414
7415fi
7416fi
7417ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7418if test -n "$ac_ct_OBJDUMP"; then
7419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7420printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7421else
7422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423printf "%s\n" "no" >&6; }
7424fi
7425
7426  if test "x$ac_ct_OBJDUMP" = x; then
7427    OBJDUMP="false"
7428  else
7429    case $cross_compiling:$ac_tool_warned in
7430yes:)
7431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433ac_tool_warned=yes ;;
7434esac
7435    OBJDUMP=$ac_ct_OBJDUMP
7436  fi
7437else
7438  OBJDUMP="$ac_cv_prog_OBJDUMP"
7439fi
7440
7441test -z "$OBJDUMP" && OBJDUMP=objdump
7442
7443
7444
7445
7446
7447
7448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7449printf %s "checking how to recognize dependent libraries... " >&6; }
7450if test ${lt_cv_deplibs_check_method+y}
7451then :
7452  printf %s "(cached) " >&6
7453else $as_nop
7454  lt_cv_file_magic_cmd='$MAGIC_CMD'
7455lt_cv_file_magic_test_file=
7456lt_cv_deplibs_check_method='unknown'
7457# Need to set the preceding variable on all platforms that support
7458# interlibrary dependencies.
7459# 'none' -- dependencies not supported.
7460# 'unknown' -- same as none, but documents that we really don't know.
7461# 'pass_all' -- all dependencies passed with no checks.
7462# 'test_compile' -- check by making test program.
7463# 'file_magic [[regex]]' -- check by looking for files in library path
7464# that responds to the $file_magic_cmd with a given extended regex.
7465# If you have 'file' or equivalent on your system and you're not sure
7466# whether 'pass_all' will *always* work, you probably want this one.
7467
7468case $host_os in
7469aix[4-9]*)
7470  lt_cv_deplibs_check_method=pass_all
7471  ;;
7472
7473beos*)
7474  lt_cv_deplibs_check_method=pass_all
7475  ;;
7476
7477bsdi[45]*)
7478  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7479  lt_cv_file_magic_cmd='$FILECMD -L'
7480  lt_cv_file_magic_test_file=/shlib/libc.so
7481  ;;
7482
7483cygwin*)
7484  # func_win32_libid is a shell function defined in ltmain.sh
7485  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7486  lt_cv_file_magic_cmd='func_win32_libid'
7487  ;;
7488
7489mingw* | pw32*)
7490  # Base MSYS/MinGW do not provide the 'file' command needed by
7491  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7492  # unless we find 'file', for example because we are cross-compiling.
7493  if ( file / ) >/dev/null 2>&1; then
7494    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7495    lt_cv_file_magic_cmd='func_win32_libid'
7496  else
7497    # Keep this pattern in sync with the one in func_win32_libid.
7498    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7499    lt_cv_file_magic_cmd='$OBJDUMP -f'
7500  fi
7501  ;;
7502
7503cegcc*)
7504  # use the weaker test based on 'objdump'. See mingw*.
7505  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7506  lt_cv_file_magic_cmd='$OBJDUMP -f'
7507  ;;
7508
7509darwin* | rhapsody*)
7510  lt_cv_deplibs_check_method=pass_all
7511  ;;
7512
7513freebsd* | dragonfly* | midnightbsd*)
7514  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7515    case $host_cpu in
7516    i*86 )
7517      # Not sure whether the presence of OpenBSD here was a mistake.
7518      # Let's accept both of them until this is cleared up.
7519      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7520      lt_cv_file_magic_cmd=$FILECMD
7521      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7522      ;;
7523    esac
7524  else
7525    lt_cv_deplibs_check_method=pass_all
7526  fi
7527  ;;
7528
7529haiku*)
7530  lt_cv_deplibs_check_method=pass_all
7531  ;;
7532
7533hpux10.20* | hpux11*)
7534  lt_cv_file_magic_cmd=$FILECMD
7535  case $host_cpu in
7536  ia64*)
7537    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7538    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7539    ;;
7540  hppa*64*)
7541    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]'
7542    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7543    ;;
7544  *)
7545    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7546    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7547    ;;
7548  esac
7549  ;;
7550
7551interix[3-9]*)
7552  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7553  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7554  ;;
7555
7556irix5* | irix6* | nonstopux*)
7557  case $LD in
7558  *-32|*"-32 ") libmagic=32-bit;;
7559  *-n32|*"-n32 ") libmagic=N32;;
7560  *-64|*"-64 ") libmagic=64-bit;;
7561  *) libmagic=never-match;;
7562  esac
7563  lt_cv_deplibs_check_method=pass_all
7564  ;;
7565
7566# This must be glibc/ELF.
7567linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7568  lt_cv_deplibs_check_method=pass_all
7569  ;;
7570
7571netbsd*)
7572  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7573    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7574  else
7575    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7576  fi
7577  ;;
7578
7579newos6*)
7580  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7581  lt_cv_file_magic_cmd=$FILECMD
7582  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7583  ;;
7584
7585*nto* | *qnx*)
7586  lt_cv_deplibs_check_method=pass_all
7587  ;;
7588
7589openbsd* | bitrig*)
7590  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7591    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7592  else
7593    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7594  fi
7595  ;;
7596
7597osf3* | osf4* | osf5*)
7598  lt_cv_deplibs_check_method=pass_all
7599  ;;
7600
7601rdos*)
7602  lt_cv_deplibs_check_method=pass_all
7603  ;;
7604
7605solaris*)
7606  lt_cv_deplibs_check_method=pass_all
7607  ;;
7608
7609sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7610  lt_cv_deplibs_check_method=pass_all
7611  ;;
7612
7613sysv4 | sysv4.3*)
7614  case $host_vendor in
7615  motorola)
7616    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]'
7617    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7618    ;;
7619  ncr)
7620    lt_cv_deplibs_check_method=pass_all
7621    ;;
7622  sequent)
7623    lt_cv_file_magic_cmd='/bin/file'
7624    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7625    ;;
7626  sni)
7627    lt_cv_file_magic_cmd='/bin/file'
7628    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7629    lt_cv_file_magic_test_file=/lib/libc.so
7630    ;;
7631  siemens)
7632    lt_cv_deplibs_check_method=pass_all
7633    ;;
7634  pc)
7635    lt_cv_deplibs_check_method=pass_all
7636    ;;
7637  esac
7638  ;;
7639
7640tpf*)
7641  lt_cv_deplibs_check_method=pass_all
7642  ;;
7643os2*)
7644  lt_cv_deplibs_check_method=pass_all
7645  ;;
7646esac
7647
7648fi
7649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7650printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7651
7652file_magic_glob=
7653want_nocaseglob=no
7654if test "$build" = "$host"; then
7655  case $host_os in
7656  mingw* | pw32*)
7657    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7658      want_nocaseglob=yes
7659    else
7660      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7661    fi
7662    ;;
7663  esac
7664fi
7665
7666file_magic_cmd=$lt_cv_file_magic_cmd
7667deplibs_check_method=$lt_cv_deplibs_check_method
7668test -z "$deplibs_check_method" && deplibs_check_method=unknown
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691if test -n "$ac_tool_prefix"; then
7692  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7693set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695printf %s "checking for $ac_word... " >&6; }
7696if test ${ac_cv_prog_DLLTOOL+y}
7697then :
7698  printf %s "(cached) " >&6
7699else $as_nop
7700  if test -n "$DLLTOOL"; then
7701  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7702else
7703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704for as_dir in $PATH
7705do
7706  IFS=$as_save_IFS
7707  case $as_dir in #(((
7708    '') as_dir=./ ;;
7709    */) ;;
7710    *) as_dir=$as_dir/ ;;
7711  esac
7712    for ac_exec_ext in '' $ac_executable_extensions; do
7713  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7714    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7715    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7716    break 2
7717  fi
7718done
7719  done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724DLLTOOL=$ac_cv_prog_DLLTOOL
7725if test -n "$DLLTOOL"; then
7726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7727printf "%s\n" "$DLLTOOL" >&6; }
7728else
7729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730printf "%s\n" "no" >&6; }
7731fi
7732
7733
7734fi
7735if test -z "$ac_cv_prog_DLLTOOL"; then
7736  ac_ct_DLLTOOL=$DLLTOOL
7737  # Extract the first word of "dlltool", so it can be a program name with args.
7738set dummy dlltool; ac_word=$2
7739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740printf %s "checking for $ac_word... " >&6; }
7741if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7742then :
7743  printf %s "(cached) " >&6
7744else $as_nop
7745  if test -n "$ac_ct_DLLTOOL"; then
7746  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7747else
7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751  IFS=$as_save_IFS
7752  case $as_dir in #(((
7753    '') as_dir=./ ;;
7754    */) ;;
7755    *) as_dir=$as_dir/ ;;
7756  esac
7757    for ac_exec_ext in '' $ac_executable_extensions; do
7758  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7759    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7760    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7761    break 2
7762  fi
7763done
7764  done
7765IFS=$as_save_IFS
7766
7767fi
7768fi
7769ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7770if test -n "$ac_ct_DLLTOOL"; then
7771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7772printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7773else
7774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775printf "%s\n" "no" >&6; }
7776fi
7777
7778  if test "x$ac_ct_DLLTOOL" = x; then
7779    DLLTOOL="false"
7780  else
7781    case $cross_compiling:$ac_tool_warned in
7782yes:)
7783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7784printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7785ac_tool_warned=yes ;;
7786esac
7787    DLLTOOL=$ac_ct_DLLTOOL
7788  fi
7789else
7790  DLLTOOL="$ac_cv_prog_DLLTOOL"
7791fi
7792
7793test -z "$DLLTOOL" && DLLTOOL=dlltool
7794
7795
7796
7797
7798
7799
7800
7801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7802printf %s "checking how to associate runtime and link libraries... " >&6; }
7803if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7804then :
7805  printf %s "(cached) " >&6
7806else $as_nop
7807  lt_cv_sharedlib_from_linklib_cmd='unknown'
7808
7809case $host_os in
7810cygwin* | mingw* | pw32* | cegcc*)
7811  # two different shell functions defined in ltmain.sh;
7812  # decide which one to use based on capabilities of $DLLTOOL
7813  case `$DLLTOOL --help 2>&1` in
7814  *--identify-strict*)
7815    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7816    ;;
7817  *)
7818    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7819    ;;
7820  esac
7821  ;;
7822*)
7823  # fallback: assume linklib IS sharedlib
7824  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7825  ;;
7826esac
7827
7828fi
7829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7830printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7831sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7832test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7833
7834
7835
7836
7837
7838
7839
7840if test -n "$ac_tool_prefix"; then
7841  for ac_prog in ar
7842  do
7843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846printf %s "checking for $ac_word... " >&6; }
7847if test ${ac_cv_prog_AR+y}
7848then :
7849  printf %s "(cached) " >&6
7850else $as_nop
7851  if test -n "$AR"; then
7852  ac_cv_prog_AR="$AR" # Let the user override the test.
7853else
7854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855for as_dir in $PATH
7856do
7857  IFS=$as_save_IFS
7858  case $as_dir in #(((
7859    '') as_dir=./ ;;
7860    */) ;;
7861    *) as_dir=$as_dir/ ;;
7862  esac
7863    for ac_exec_ext in '' $ac_executable_extensions; do
7864  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7865    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7866    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7867    break 2
7868  fi
7869done
7870  done
7871IFS=$as_save_IFS
7872
7873fi
7874fi
7875AR=$ac_cv_prog_AR
7876if test -n "$AR"; then
7877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7878printf "%s\n" "$AR" >&6; }
7879else
7880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881printf "%s\n" "no" >&6; }
7882fi
7883
7884
7885    test -n "$AR" && break
7886  done
7887fi
7888if test -z "$AR"; then
7889  ac_ct_AR=$AR
7890  for ac_prog in ar
7891do
7892  # Extract the first word of "$ac_prog", so it can be a program name with args.
7893set dummy $ac_prog; ac_word=$2
7894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895printf %s "checking for $ac_word... " >&6; }
7896if test ${ac_cv_prog_ac_ct_AR+y}
7897then :
7898  printf %s "(cached) " >&6
7899else $as_nop
7900  if test -n "$ac_ct_AR"; then
7901  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7902else
7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906  IFS=$as_save_IFS
7907  case $as_dir in #(((
7908    '') as_dir=./ ;;
7909    */) ;;
7910    *) as_dir=$as_dir/ ;;
7911  esac
7912    for ac_exec_ext in '' $ac_executable_extensions; do
7913  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7914    ac_cv_prog_ac_ct_AR="$ac_prog"
7915    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7916    break 2
7917  fi
7918done
7919  done
7920IFS=$as_save_IFS
7921
7922fi
7923fi
7924ac_ct_AR=$ac_cv_prog_ac_ct_AR
7925if test -n "$ac_ct_AR"; then
7926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7927printf "%s\n" "$ac_ct_AR" >&6; }
7928else
7929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930printf "%s\n" "no" >&6; }
7931fi
7932
7933
7934  test -n "$ac_ct_AR" && break
7935done
7936
7937  if test "x$ac_ct_AR" = x; then
7938    AR="false"
7939  else
7940    case $cross_compiling:$ac_tool_warned in
7941yes:)
7942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7943printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7944ac_tool_warned=yes ;;
7945esac
7946    AR=$ac_ct_AR
7947  fi
7948fi
7949
7950: ${AR=ar}
7951
7952
7953
7954
7955
7956
7957# Use ARFLAGS variable as AR's operation code to sync the variable naming with
7958# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7959# higher priority because thats what people were doing historically (setting
7960# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7961# variable obsoleted/removed.
7962
7963test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7964lt_ar_flags=$AR_FLAGS
7965
7966
7967
7968
7969
7970
7971# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7972# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7973
7974
7975
7976
7977
7978
7979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7980printf %s "checking for archiver @FILE support... " >&6; }
7981if test ${lt_cv_ar_at_file+y}
7982then :
7983  printf %s "(cached) " >&6
7984else $as_nop
7985  lt_cv_ar_at_file=no
7986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987/* end confdefs.h.  */
7988
7989int
7990main (void)
7991{
7992
7993  ;
7994  return 0;
7995}
7996_ACEOF
7997if ac_fn_c_try_compile "$LINENO"
7998then :
7999  echo conftest.$ac_objext > conftest.lst
8000      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8001      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8002  (eval $lt_ar_try) 2>&5
8003  ac_status=$?
8004  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8005  test $ac_status = 0; }
8006      if test 0 -eq "$ac_status"; then
8007	# Ensure the archiver fails upon bogus file names.
8008	rm -f conftest.$ac_objext libconftest.a
8009	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8010  (eval $lt_ar_try) 2>&5
8011  ac_status=$?
8012  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8013  test $ac_status = 0; }
8014	if test 0 -ne "$ac_status"; then
8015          lt_cv_ar_at_file=@
8016        fi
8017      fi
8018      rm -f conftest.* libconftest.a
8019
8020fi
8021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8022
8023fi
8024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8025printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8026
8027if test no = "$lt_cv_ar_at_file"; then
8028  archiver_list_spec=
8029else
8030  archiver_list_spec=$lt_cv_ar_at_file
8031fi
8032
8033
8034
8035
8036
8037
8038
8039if test -n "$ac_tool_prefix"; then
8040  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8041set dummy ${ac_tool_prefix}strip; ac_word=$2
8042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043printf %s "checking for $ac_word... " >&6; }
8044if test ${ac_cv_prog_STRIP+y}
8045then :
8046  printf %s "(cached) " >&6
8047else $as_nop
8048  if test -n "$STRIP"; then
8049  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8050else
8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054  IFS=$as_save_IFS
8055  case $as_dir in #(((
8056    '') as_dir=./ ;;
8057    */) ;;
8058    *) as_dir=$as_dir/ ;;
8059  esac
8060    for ac_exec_ext in '' $ac_executable_extensions; do
8061  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8062    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8063    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8064    break 2
8065  fi
8066done
8067  done
8068IFS=$as_save_IFS
8069
8070fi
8071fi
8072STRIP=$ac_cv_prog_STRIP
8073if test -n "$STRIP"; then
8074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8075printf "%s\n" "$STRIP" >&6; }
8076else
8077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078printf "%s\n" "no" >&6; }
8079fi
8080
8081
8082fi
8083if test -z "$ac_cv_prog_STRIP"; then
8084  ac_ct_STRIP=$STRIP
8085  # Extract the first word of "strip", so it can be a program name with args.
8086set dummy strip; ac_word=$2
8087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088printf %s "checking for $ac_word... " >&6; }
8089if test ${ac_cv_prog_ac_ct_STRIP+y}
8090then :
8091  printf %s "(cached) " >&6
8092else $as_nop
8093  if test -n "$ac_ct_STRIP"; then
8094  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8095else
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099  IFS=$as_save_IFS
8100  case $as_dir in #(((
8101    '') as_dir=./ ;;
8102    */) ;;
8103    *) as_dir=$as_dir/ ;;
8104  esac
8105    for ac_exec_ext in '' $ac_executable_extensions; do
8106  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8107    ac_cv_prog_ac_ct_STRIP="strip"
8108    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8109    break 2
8110  fi
8111done
8112  done
8113IFS=$as_save_IFS
8114
8115fi
8116fi
8117ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8118if test -n "$ac_ct_STRIP"; then
8119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8120printf "%s\n" "$ac_ct_STRIP" >&6; }
8121else
8122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123printf "%s\n" "no" >&6; }
8124fi
8125
8126  if test "x$ac_ct_STRIP" = x; then
8127    STRIP=":"
8128  else
8129    case $cross_compiling:$ac_tool_warned in
8130yes:)
8131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8132printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8133ac_tool_warned=yes ;;
8134esac
8135    STRIP=$ac_ct_STRIP
8136  fi
8137else
8138  STRIP="$ac_cv_prog_STRIP"
8139fi
8140
8141test -z "$STRIP" && STRIP=:
8142
8143
8144
8145
8146
8147
8148if test -n "$ac_tool_prefix"; then
8149  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8150set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152printf %s "checking for $ac_word... " >&6; }
8153if test ${ac_cv_prog_RANLIB+y}
8154then :
8155  printf %s "(cached) " >&6
8156else $as_nop
8157  if test -n "$RANLIB"; then
8158  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8159else
8160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161for as_dir in $PATH
8162do
8163  IFS=$as_save_IFS
8164  case $as_dir in #(((
8165    '') as_dir=./ ;;
8166    */) ;;
8167    *) as_dir=$as_dir/ ;;
8168  esac
8169    for ac_exec_ext in '' $ac_executable_extensions; do
8170  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8171    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8172    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8173    break 2
8174  fi
8175done
8176  done
8177IFS=$as_save_IFS
8178
8179fi
8180fi
8181RANLIB=$ac_cv_prog_RANLIB
8182if test -n "$RANLIB"; then
8183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8184printf "%s\n" "$RANLIB" >&6; }
8185else
8186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187printf "%s\n" "no" >&6; }
8188fi
8189
8190
8191fi
8192if test -z "$ac_cv_prog_RANLIB"; then
8193  ac_ct_RANLIB=$RANLIB
8194  # Extract the first word of "ranlib", so it can be a program name with args.
8195set dummy ranlib; ac_word=$2
8196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197printf %s "checking for $ac_word... " >&6; }
8198if test ${ac_cv_prog_ac_ct_RANLIB+y}
8199then :
8200  printf %s "(cached) " >&6
8201else $as_nop
8202  if test -n "$ac_ct_RANLIB"; then
8203  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8204else
8205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206for as_dir in $PATH
8207do
8208  IFS=$as_save_IFS
8209  case $as_dir in #(((
8210    '') as_dir=./ ;;
8211    */) ;;
8212    *) as_dir=$as_dir/ ;;
8213  esac
8214    for ac_exec_ext in '' $ac_executable_extensions; do
8215  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8216    ac_cv_prog_ac_ct_RANLIB="ranlib"
8217    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8218    break 2
8219  fi
8220done
8221  done
8222IFS=$as_save_IFS
8223
8224fi
8225fi
8226ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8227if test -n "$ac_ct_RANLIB"; then
8228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8229printf "%s\n" "$ac_ct_RANLIB" >&6; }
8230else
8231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232printf "%s\n" "no" >&6; }
8233fi
8234
8235  if test "x$ac_ct_RANLIB" = x; then
8236    RANLIB=":"
8237  else
8238    case $cross_compiling:$ac_tool_warned in
8239yes:)
8240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8241printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8242ac_tool_warned=yes ;;
8243esac
8244    RANLIB=$ac_ct_RANLIB
8245  fi
8246else
8247  RANLIB="$ac_cv_prog_RANLIB"
8248fi
8249
8250test -z "$RANLIB" && RANLIB=:
8251
8252
8253
8254
8255
8256
8257# Determine commands to create old-style static archives.
8258old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8259old_postinstall_cmds='chmod 644 $oldlib'
8260old_postuninstall_cmds=
8261
8262if test -n "$RANLIB"; then
8263  case $host_os in
8264  bitrig* | openbsd*)
8265    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8266    ;;
8267  *)
8268    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8269    ;;
8270  esac
8271  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8272fi
8273
8274case $host_os in
8275  darwin*)
8276    lock_old_archive_extraction=yes ;;
8277  *)
8278    lock_old_archive_extraction=no ;;
8279esac
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319# If no C compiler was specified, use CC.
8320LTCC=${LTCC-"$CC"}
8321
8322# If no C compiler flags were specified, use CFLAGS.
8323LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8324
8325# Allow CC to be a program name with arguments.
8326compiler=$CC
8327
8328
8329# Check for command to grab the raw symbol name followed by C symbol from nm.
8330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8331printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8332if test ${lt_cv_sys_global_symbol_pipe+y}
8333then :
8334  printf %s "(cached) " >&6
8335else $as_nop
8336
8337# These are sane defaults that work on at least a few old systems.
8338# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8339
8340# Character class describing NM global symbol codes.
8341symcode='[BCDEGRST]'
8342
8343# Regexp to match symbols that can be accessed directly from C.
8344sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8345
8346# Define system-specific variables.
8347case $host_os in
8348aix*)
8349  symcode='[BCDT]'
8350  ;;
8351cygwin* | mingw* | pw32* | cegcc*)
8352  symcode='[ABCDGISTW]'
8353  ;;
8354hpux*)
8355  if test ia64 = "$host_cpu"; then
8356    symcode='[ABCDEGRST]'
8357  fi
8358  ;;
8359irix* | nonstopux*)
8360  symcode='[BCDEGRST]'
8361  ;;
8362osf*)
8363  symcode='[BCDEGQRST]'
8364  ;;
8365solaris*)
8366  symcode='[BDRT]'
8367  ;;
8368sco3.2v5*)
8369  symcode='[DT]'
8370  ;;
8371sysv4.2uw2*)
8372  symcode='[DT]'
8373  ;;
8374sysv5* | sco5v6* | unixware* | OpenUNIX*)
8375  symcode='[ABDT]'
8376  ;;
8377sysv4)
8378  symcode='[DFNSTU]'
8379  ;;
8380esac
8381
8382# If we're using GNU nm, then use its standard symbol codes.
8383case `$NM -V 2>&1` in
8384*GNU* | *'with BFD'*)
8385  symcode='[ABCDGIRSTW]' ;;
8386esac
8387
8388if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8389  # Gets list of data symbols to import.
8390  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8391  # Adjust the below global symbol transforms to fixup imported variables.
8392  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8393  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8394  lt_c_name_lib_hook="\
8395  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8396  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8397else
8398  # Disable hooks by default.
8399  lt_cv_sys_global_symbol_to_import=
8400  lt_cdecl_hook=
8401  lt_c_name_hook=
8402  lt_c_name_lib_hook=
8403fi
8404
8405# Transform an extracted symbol line into a proper C declaration.
8406# Some systems (esp. on ia64) link data and code symbols differently,
8407# so use this general approach.
8408lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8409$lt_cdecl_hook\
8410" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8411" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8412
8413# Transform an extracted symbol line into symbol name and symbol address
8414lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8415$lt_c_name_hook\
8416" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8417" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8418
8419# Transform an extracted symbol line into symbol name with lib prefix and
8420# symbol address.
8421lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8422$lt_c_name_lib_hook\
8423" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8424" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8425" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8426
8427# Handle CRLF in mingw tool chain
8428opt_cr=
8429case $build_os in
8430mingw*)
8431  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8432  ;;
8433esac
8434
8435# Try without a prefix underscore, then with it.
8436for ac_symprfx in "" "_"; do
8437
8438  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8439  symxfrm="\\1 $ac_symprfx\\2 \\2"
8440
8441  # Write the raw and C identifiers.
8442  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8443    # Fake it for dumpbin and say T for any non-static function,
8444    # D for any global variable and I for any imported variable.
8445    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8446    # which start with @ or ?.
8447    lt_cv_sys_global_symbol_pipe="$AWK '"\
8448"     {last_section=section; section=\$ 3};"\
8449"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8450"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8451"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8452"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8453"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8454"     \$ 0!~/External *\|/{next};"\
8455"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8456"     {if(hide[section]) next};"\
8457"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8458"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8459"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8460"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8461"     ' prfx=^$ac_symprfx"
8462  else
8463    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8464  fi
8465  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8466
8467  # Check to see that the pipe works correctly.
8468  pipe_works=no
8469
8470  rm -f conftest*
8471  cat > conftest.$ac_ext <<_LT_EOF
8472#ifdef __cplusplus
8473extern "C" {
8474#endif
8475char nm_test_var;
8476void nm_test_func(void);
8477void nm_test_func(void){}
8478#ifdef __cplusplus
8479}
8480#endif
8481int main(){nm_test_var='a';nm_test_func();return(0);}
8482_LT_EOF
8483
8484  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8485  (eval $ac_compile) 2>&5
8486  ac_status=$?
8487  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8488  test $ac_status = 0; }; then
8489    # Now try to grab the symbols.
8490    nlist=conftest.nm
8491    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8492  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8493  ac_status=$?
8494  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8495  test $ac_status = 0; } && test -s "$nlist"; then
8496      # Try sorting and uniquifying the output.
8497      if sort "$nlist" | uniq > "$nlist"T; then
8498	mv -f "$nlist"T "$nlist"
8499      else
8500	rm -f "$nlist"T
8501      fi
8502
8503      # Make sure that we snagged all the symbols we need.
8504      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8505	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8506	  cat <<_LT_EOF > conftest.$ac_ext
8507/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8508#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8509/* DATA imports from DLLs on WIN32 can't be const, because runtime
8510   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8511# define LT_DLSYM_CONST
8512#elif defined __osf__
8513/* This system does not cope well with relocations in const data.  */
8514# define LT_DLSYM_CONST
8515#else
8516# define LT_DLSYM_CONST const
8517#endif
8518
8519#ifdef __cplusplus
8520extern "C" {
8521#endif
8522
8523_LT_EOF
8524	  # Now generate the symbol file.
8525	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8526
8527	  cat <<_LT_EOF >> conftest.$ac_ext
8528
8529/* The mapping between symbol names and symbols.  */
8530LT_DLSYM_CONST struct {
8531  const char *name;
8532  void       *address;
8533}
8534lt__PROGRAM__LTX_preloaded_symbols[] =
8535{
8536  { "@PROGRAM@", (void *) 0 },
8537_LT_EOF
8538	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8539	  cat <<\_LT_EOF >> conftest.$ac_ext
8540  {0, (void *) 0}
8541};
8542
8543/* This works around a problem in FreeBSD linker */
8544#ifdef FREEBSD_WORKAROUND
8545static const void *lt_preloaded_setup() {
8546  return lt__PROGRAM__LTX_preloaded_symbols;
8547}
8548#endif
8549
8550#ifdef __cplusplus
8551}
8552#endif
8553_LT_EOF
8554	  # Now try linking the two files.
8555	  mv conftest.$ac_objext conftstm.$ac_objext
8556	  lt_globsym_save_LIBS=$LIBS
8557	  lt_globsym_save_CFLAGS=$CFLAGS
8558	  LIBS=conftstm.$ac_objext
8559	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8560	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8561  (eval $ac_link) 2>&5
8562  ac_status=$?
8563  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8564  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8565	    pipe_works=yes
8566	  fi
8567	  LIBS=$lt_globsym_save_LIBS
8568	  CFLAGS=$lt_globsym_save_CFLAGS
8569	else
8570	  echo "cannot find nm_test_func in $nlist" >&5
8571	fi
8572      else
8573	echo "cannot find nm_test_var in $nlist" >&5
8574      fi
8575    else
8576      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8577    fi
8578  else
8579    echo "$progname: failed program was:" >&5
8580    cat conftest.$ac_ext >&5
8581  fi
8582  rm -rf conftest* conftst*
8583
8584  # Do not use the global_symbol_pipe unless it works.
8585  if test yes = "$pipe_works"; then
8586    break
8587  else
8588    lt_cv_sys_global_symbol_pipe=
8589  fi
8590done
8591
8592fi
8593
8594if test -z "$lt_cv_sys_global_symbol_pipe"; then
8595  lt_cv_sys_global_symbol_to_cdecl=
8596fi
8597if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8599printf "%s\n" "failed" >&6; }
8600else
8601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8602printf "%s\n" "ok" >&6; }
8603fi
8604
8605# Response file support.
8606if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8607  nm_file_list_spec='@'
8608elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8609  nm_file_list_spec='@'
8610fi
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8649printf %s "checking for sysroot... " >&6; }
8650
8651# Check whether --with-sysroot was given.
8652if test ${with_sysroot+y}
8653then :
8654  withval=$with_sysroot;
8655else $as_nop
8656  with_sysroot=no
8657fi
8658
8659
8660lt_sysroot=
8661case $with_sysroot in #(
8662 yes)
8663   if test yes = "$GCC"; then
8664     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8665   fi
8666   ;; #(
8667 /*)
8668   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8669   ;; #(
8670 no|'')
8671   ;; #(
8672 *)
8673   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8674printf "%s\n" "$with_sysroot" >&6; }
8675   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8676   ;;
8677esac
8678
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8680printf "%s\n" "${lt_sysroot:-no}" >&6; }
8681
8682
8683
8684
8685
8686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8687printf %s "checking for a working dd... " >&6; }
8688if test ${ac_cv_path_lt_DD+y}
8689then :
8690  printf %s "(cached) " >&6
8691else $as_nop
8692  printf 0123456789abcdef0123456789abcdef >conftest.i
8693cat conftest.i conftest.i >conftest2.i
8694: ${lt_DD:=$DD}
8695if test -z "$lt_DD"; then
8696  ac_path_lt_DD_found=false
8697  # Loop through the user's path and test for each of PROGNAME-LIST
8698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699for as_dir in $PATH
8700do
8701  IFS=$as_save_IFS
8702  case $as_dir in #(((
8703    '') as_dir=./ ;;
8704    */) ;;
8705    *) as_dir=$as_dir/ ;;
8706  esac
8707    for ac_prog in dd
8708   do
8709    for ac_exec_ext in '' $ac_executable_extensions; do
8710      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8711      as_fn_executable_p "$ac_path_lt_DD" || continue
8712if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8713  cmp -s conftest.i conftest.out \
8714  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8715fi
8716      $ac_path_lt_DD_found && break 3
8717    done
8718  done
8719  done
8720IFS=$as_save_IFS
8721  if test -z "$ac_cv_path_lt_DD"; then
8722    :
8723  fi
8724else
8725  ac_cv_path_lt_DD=$lt_DD
8726fi
8727
8728rm -f conftest.i conftest2.i conftest.out
8729fi
8730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8731printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8732
8733
8734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8735printf %s "checking how to truncate binary pipes... " >&6; }
8736if test ${lt_cv_truncate_bin+y}
8737then :
8738  printf %s "(cached) " >&6
8739else $as_nop
8740  printf 0123456789abcdef0123456789abcdef >conftest.i
8741cat conftest.i conftest.i >conftest2.i
8742lt_cv_truncate_bin=
8743if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8744  cmp -s conftest.i conftest.out \
8745  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8746fi
8747rm -f conftest.i conftest2.i conftest.out
8748test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8749fi
8750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8751printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8752
8753
8754
8755
8756
8757
8758
8759# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8760func_cc_basename ()
8761{
8762    for cc_temp in $*""; do
8763      case $cc_temp in
8764        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8765        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8766        \-*) ;;
8767        *) break;;
8768      esac
8769    done
8770    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8771}
8772
8773# Check whether --enable-libtool-lock was given.
8774if test ${enable_libtool_lock+y}
8775then :
8776  enableval=$enable_libtool_lock;
8777fi
8778
8779test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8780
8781# Some flags need to be propagated to the compiler or linker for good
8782# libtool support.
8783case $host in
8784ia64-*-hpux*)
8785  # Find out what ABI is being produced by ac_compile, and set mode
8786  # options accordingly.
8787  echo 'int i;' > conftest.$ac_ext
8788  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8789  (eval $ac_compile) 2>&5
8790  ac_status=$?
8791  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8792  test $ac_status = 0; }; then
8793    case `$FILECMD conftest.$ac_objext` in
8794      *ELF-32*)
8795	HPUX_IA64_MODE=32
8796	;;
8797      *ELF-64*)
8798	HPUX_IA64_MODE=64
8799	;;
8800    esac
8801  fi
8802  rm -rf conftest*
8803  ;;
8804*-*-irix6*)
8805  # Find out what ABI is being produced by ac_compile, and set linker
8806  # options accordingly.
8807  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8808  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8809  (eval $ac_compile) 2>&5
8810  ac_status=$?
8811  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8812  test $ac_status = 0; }; then
8813    if test yes = "$lt_cv_prog_gnu_ld"; then
8814      case `$FILECMD conftest.$ac_objext` in
8815	*32-bit*)
8816	  LD="${LD-ld} -melf32bsmip"
8817	  ;;
8818	*N32*)
8819	  LD="${LD-ld} -melf32bmipn32"
8820	  ;;
8821	*64-bit*)
8822	  LD="${LD-ld} -melf64bmip"
8823	;;
8824      esac
8825    else
8826      case `$FILECMD conftest.$ac_objext` in
8827	*32-bit*)
8828	  LD="${LD-ld} -32"
8829	  ;;
8830	*N32*)
8831	  LD="${LD-ld} -n32"
8832	  ;;
8833	*64-bit*)
8834	  LD="${LD-ld} -64"
8835	  ;;
8836      esac
8837    fi
8838  fi
8839  rm -rf conftest*
8840  ;;
8841
8842mips64*-*linux*)
8843  # Find out what ABI is being produced by ac_compile, and set linker
8844  # options accordingly.
8845  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8846  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8847  (eval $ac_compile) 2>&5
8848  ac_status=$?
8849  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8850  test $ac_status = 0; }; then
8851    emul=elf
8852    case `$FILECMD conftest.$ac_objext` in
8853      *32-bit*)
8854	emul="${emul}32"
8855	;;
8856      *64-bit*)
8857	emul="${emul}64"
8858	;;
8859    esac
8860    case `$FILECMD conftest.$ac_objext` in
8861      *MSB*)
8862	emul="${emul}btsmip"
8863	;;
8864      *LSB*)
8865	emul="${emul}ltsmip"
8866	;;
8867    esac
8868    case `$FILECMD conftest.$ac_objext` in
8869      *N32*)
8870	emul="${emul}n32"
8871	;;
8872    esac
8873    LD="${LD-ld} -m $emul"
8874  fi
8875  rm -rf conftest*
8876  ;;
8877
8878x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8879s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8880  # Find out what ABI is being produced by ac_compile, and set linker
8881  # options accordingly.  Note that the listed cases only cover the
8882  # situations where additional linker options are needed (such as when
8883  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8884  # vice versa); the common cases where no linker options are needed do
8885  # not appear in the list.
8886  echo 'int i;' > conftest.$ac_ext
8887  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8888  (eval $ac_compile) 2>&5
8889  ac_status=$?
8890  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8891  test $ac_status = 0; }; then
8892    case `$FILECMD conftest.o` in
8893      *32-bit*)
8894	case $host in
8895	  x86_64-*kfreebsd*-gnu)
8896	    LD="${LD-ld} -m elf_i386_fbsd"
8897	    ;;
8898	  x86_64-*linux*)
8899	    case `$FILECMD conftest.o` in
8900	      *x86-64*)
8901		LD="${LD-ld} -m elf32_x86_64"
8902		;;
8903	      *)
8904		LD="${LD-ld} -m elf_i386"
8905		;;
8906	    esac
8907	    ;;
8908	  powerpc64le-*linux*)
8909	    LD="${LD-ld} -m elf32lppclinux"
8910	    ;;
8911	  powerpc64-*linux*)
8912	    LD="${LD-ld} -m elf32ppclinux"
8913	    ;;
8914	  s390x-*linux*)
8915	    LD="${LD-ld} -m elf_s390"
8916	    ;;
8917	  sparc64-*linux*)
8918	    LD="${LD-ld} -m elf32_sparc"
8919	    ;;
8920	esac
8921	;;
8922      *64-bit*)
8923	case $host in
8924	  x86_64-*kfreebsd*-gnu)
8925	    LD="${LD-ld} -m elf_x86_64_fbsd"
8926	    ;;
8927	  x86_64-*linux*)
8928	    LD="${LD-ld} -m elf_x86_64"
8929	    ;;
8930	  powerpcle-*linux*)
8931	    LD="${LD-ld} -m elf64lppc"
8932	    ;;
8933	  powerpc-*linux*)
8934	    LD="${LD-ld} -m elf64ppc"
8935	    ;;
8936	  s390*-*linux*|s390*-*tpf*)
8937	    LD="${LD-ld} -m elf64_s390"
8938	    ;;
8939	  sparc*-*linux*)
8940	    LD="${LD-ld} -m elf64_sparc"
8941	    ;;
8942	esac
8943	;;
8944    esac
8945  fi
8946  rm -rf conftest*
8947  ;;
8948
8949*-*-sco3.2v5*)
8950  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8951  SAVE_CFLAGS=$CFLAGS
8952  CFLAGS="$CFLAGS -belf"
8953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8954printf %s "checking whether the C compiler needs -belf... " >&6; }
8955if test ${lt_cv_cc_needs_belf+y}
8956then :
8957  printf %s "(cached) " >&6
8958else $as_nop
8959  ac_ext=c
8960ac_cpp='$CPP $CPPFLAGS'
8961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8963ac_compiler_gnu=$ac_cv_c_compiler_gnu
8964
8965     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966/* end confdefs.h.  */
8967
8968int
8969main (void)
8970{
8971
8972  ;
8973  return 0;
8974}
8975_ACEOF
8976if ac_fn_c_try_link "$LINENO"
8977then :
8978  lt_cv_cc_needs_belf=yes
8979else $as_nop
8980  lt_cv_cc_needs_belf=no
8981fi
8982rm -f core conftest.err conftest.$ac_objext conftest.beam \
8983    conftest$ac_exeext conftest.$ac_ext
8984     ac_ext=c
8985ac_cpp='$CPP $CPPFLAGS'
8986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8988ac_compiler_gnu=$ac_cv_c_compiler_gnu
8989
8990fi
8991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8992printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8993  if test yes != "$lt_cv_cc_needs_belf"; then
8994    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8995    CFLAGS=$SAVE_CFLAGS
8996  fi
8997  ;;
8998*-*solaris*)
8999  # Find out what ABI is being produced by ac_compile, and set linker
9000  # options accordingly.
9001  echo 'int i;' > conftest.$ac_ext
9002  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9003  (eval $ac_compile) 2>&5
9004  ac_status=$?
9005  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9006  test $ac_status = 0; }; then
9007    case `$FILECMD conftest.o` in
9008    *64-bit*)
9009      case $lt_cv_prog_gnu_ld in
9010      yes*)
9011        case $host in
9012        i?86-*-solaris*|x86_64-*-solaris*)
9013          LD="${LD-ld} -m elf_x86_64"
9014          ;;
9015        sparc*-*-solaris*)
9016          LD="${LD-ld} -m elf64_sparc"
9017          ;;
9018        esac
9019        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9020        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9021          LD=${LD-ld}_sol2
9022        fi
9023        ;;
9024      *)
9025	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9026	  LD="${LD-ld} -64"
9027	fi
9028	;;
9029      esac
9030      ;;
9031    esac
9032  fi
9033  rm -rf conftest*
9034  ;;
9035esac
9036
9037need_locks=$enable_libtool_lock
9038
9039if test -n "$ac_tool_prefix"; then
9040  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9041set dummy ${ac_tool_prefix}mt; ac_word=$2
9042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043printf %s "checking for $ac_word... " >&6; }
9044if test ${ac_cv_prog_MANIFEST_TOOL+y}
9045then :
9046  printf %s "(cached) " >&6
9047else $as_nop
9048  if test -n "$MANIFEST_TOOL"; then
9049  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9050else
9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052for as_dir in $PATH
9053do
9054  IFS=$as_save_IFS
9055  case $as_dir in #(((
9056    '') as_dir=./ ;;
9057    */) ;;
9058    *) as_dir=$as_dir/ ;;
9059  esac
9060    for ac_exec_ext in '' $ac_executable_extensions; do
9061  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9062    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9063    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9064    break 2
9065  fi
9066done
9067  done
9068IFS=$as_save_IFS
9069
9070fi
9071fi
9072MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9073if test -n "$MANIFEST_TOOL"; then
9074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9075printf "%s\n" "$MANIFEST_TOOL" >&6; }
9076else
9077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078printf "%s\n" "no" >&6; }
9079fi
9080
9081
9082fi
9083if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9084  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9085  # Extract the first word of "mt", so it can be a program name with args.
9086set dummy mt; ac_word=$2
9087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088printf %s "checking for $ac_word... " >&6; }
9089if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9090then :
9091  printf %s "(cached) " >&6
9092else $as_nop
9093  if test -n "$ac_ct_MANIFEST_TOOL"; then
9094  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9095else
9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097for as_dir in $PATH
9098do
9099  IFS=$as_save_IFS
9100  case $as_dir in #(((
9101    '') as_dir=./ ;;
9102    */) ;;
9103    *) as_dir=$as_dir/ ;;
9104  esac
9105    for ac_exec_ext in '' $ac_executable_extensions; do
9106  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9107    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9108    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9109    break 2
9110  fi
9111done
9112  done
9113IFS=$as_save_IFS
9114
9115fi
9116fi
9117ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9118if test -n "$ac_ct_MANIFEST_TOOL"; then
9119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9120printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9121else
9122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123printf "%s\n" "no" >&6; }
9124fi
9125
9126  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9127    MANIFEST_TOOL=":"
9128  else
9129    case $cross_compiling:$ac_tool_warned in
9130yes:)
9131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9132printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9133ac_tool_warned=yes ;;
9134esac
9135    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9136  fi
9137else
9138  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9139fi
9140
9141test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9143printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9144if test ${lt_cv_path_mainfest_tool+y}
9145then :
9146  printf %s "(cached) " >&6
9147else $as_nop
9148  lt_cv_path_mainfest_tool=no
9149  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9150  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9151  cat conftest.err >&5
9152  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9153    lt_cv_path_mainfest_tool=yes
9154  fi
9155  rm -f conftest*
9156fi
9157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9158printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9159if test yes != "$lt_cv_path_mainfest_tool"; then
9160  MANIFEST_TOOL=:
9161fi
9162
9163
9164
9165
9166
9167
9168  case $host_os in
9169    rhapsody* | darwin*)
9170    if test -n "$ac_tool_prefix"; then
9171  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9172set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174printf %s "checking for $ac_word... " >&6; }
9175if test ${ac_cv_prog_DSYMUTIL+y}
9176then :
9177  printf %s "(cached) " >&6
9178else $as_nop
9179  if test -n "$DSYMUTIL"; then
9180  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9181else
9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $PATH
9184do
9185  IFS=$as_save_IFS
9186  case $as_dir in #(((
9187    '') as_dir=./ ;;
9188    */) ;;
9189    *) as_dir=$as_dir/ ;;
9190  esac
9191    for ac_exec_ext in '' $ac_executable_extensions; do
9192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9193    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9195    break 2
9196  fi
9197done
9198  done
9199IFS=$as_save_IFS
9200
9201fi
9202fi
9203DSYMUTIL=$ac_cv_prog_DSYMUTIL
9204if test -n "$DSYMUTIL"; then
9205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9206printf "%s\n" "$DSYMUTIL" >&6; }
9207else
9208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209printf "%s\n" "no" >&6; }
9210fi
9211
9212
9213fi
9214if test -z "$ac_cv_prog_DSYMUTIL"; then
9215  ac_ct_DSYMUTIL=$DSYMUTIL
9216  # Extract the first word of "dsymutil", so it can be a program name with args.
9217set dummy dsymutil; ac_word=$2
9218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219printf %s "checking for $ac_word... " >&6; }
9220if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9221then :
9222  printf %s "(cached) " >&6
9223else $as_nop
9224  if test -n "$ac_ct_DSYMUTIL"; then
9225  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9226else
9227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228for as_dir in $PATH
9229do
9230  IFS=$as_save_IFS
9231  case $as_dir in #(((
9232    '') as_dir=./ ;;
9233    */) ;;
9234    *) as_dir=$as_dir/ ;;
9235  esac
9236    for ac_exec_ext in '' $ac_executable_extensions; do
9237  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9238    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9239    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9240    break 2
9241  fi
9242done
9243  done
9244IFS=$as_save_IFS
9245
9246fi
9247fi
9248ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9249if test -n "$ac_ct_DSYMUTIL"; then
9250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9251printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9252else
9253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254printf "%s\n" "no" >&6; }
9255fi
9256
9257  if test "x$ac_ct_DSYMUTIL" = x; then
9258    DSYMUTIL=":"
9259  else
9260    case $cross_compiling:$ac_tool_warned in
9261yes:)
9262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9263printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9264ac_tool_warned=yes ;;
9265esac
9266    DSYMUTIL=$ac_ct_DSYMUTIL
9267  fi
9268else
9269  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9270fi
9271
9272    if test -n "$ac_tool_prefix"; then
9273  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9274set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9276printf %s "checking for $ac_word... " >&6; }
9277if test ${ac_cv_prog_NMEDIT+y}
9278then :
9279  printf %s "(cached) " >&6
9280else $as_nop
9281  if test -n "$NMEDIT"; then
9282  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9283else
9284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285for as_dir in $PATH
9286do
9287  IFS=$as_save_IFS
9288  case $as_dir in #(((
9289    '') as_dir=./ ;;
9290    */) ;;
9291    *) as_dir=$as_dir/ ;;
9292  esac
9293    for ac_exec_ext in '' $ac_executable_extensions; do
9294  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9295    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9296    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9297    break 2
9298  fi
9299done
9300  done
9301IFS=$as_save_IFS
9302
9303fi
9304fi
9305NMEDIT=$ac_cv_prog_NMEDIT
9306if test -n "$NMEDIT"; then
9307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9308printf "%s\n" "$NMEDIT" >&6; }
9309else
9310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311printf "%s\n" "no" >&6; }
9312fi
9313
9314
9315fi
9316if test -z "$ac_cv_prog_NMEDIT"; then
9317  ac_ct_NMEDIT=$NMEDIT
9318  # Extract the first word of "nmedit", so it can be a program name with args.
9319set dummy nmedit; ac_word=$2
9320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321printf %s "checking for $ac_word... " >&6; }
9322if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9323then :
9324  printf %s "(cached) " >&6
9325else $as_nop
9326  if test -n "$ac_ct_NMEDIT"; then
9327  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9328else
9329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330for as_dir in $PATH
9331do
9332  IFS=$as_save_IFS
9333  case $as_dir in #(((
9334    '') as_dir=./ ;;
9335    */) ;;
9336    *) as_dir=$as_dir/ ;;
9337  esac
9338    for ac_exec_ext in '' $ac_executable_extensions; do
9339  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9340    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9341    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9342    break 2
9343  fi
9344done
9345  done
9346IFS=$as_save_IFS
9347
9348fi
9349fi
9350ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9351if test -n "$ac_ct_NMEDIT"; then
9352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9353printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9354else
9355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356printf "%s\n" "no" >&6; }
9357fi
9358
9359  if test "x$ac_ct_NMEDIT" = x; then
9360    NMEDIT=":"
9361  else
9362    case $cross_compiling:$ac_tool_warned in
9363yes:)
9364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9365printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9366ac_tool_warned=yes ;;
9367esac
9368    NMEDIT=$ac_ct_NMEDIT
9369  fi
9370else
9371  NMEDIT="$ac_cv_prog_NMEDIT"
9372fi
9373
9374    if test -n "$ac_tool_prefix"; then
9375  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9376set dummy ${ac_tool_prefix}lipo; ac_word=$2
9377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378printf %s "checking for $ac_word... " >&6; }
9379if test ${ac_cv_prog_LIPO+y}
9380then :
9381  printf %s "(cached) " >&6
9382else $as_nop
9383  if test -n "$LIPO"; then
9384  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9385else
9386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387for as_dir in $PATH
9388do
9389  IFS=$as_save_IFS
9390  case $as_dir in #(((
9391    '') as_dir=./ ;;
9392    */) ;;
9393    *) as_dir=$as_dir/ ;;
9394  esac
9395    for ac_exec_ext in '' $ac_executable_extensions; do
9396  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9397    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9398    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9399    break 2
9400  fi
9401done
9402  done
9403IFS=$as_save_IFS
9404
9405fi
9406fi
9407LIPO=$ac_cv_prog_LIPO
9408if test -n "$LIPO"; then
9409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9410printf "%s\n" "$LIPO" >&6; }
9411else
9412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413printf "%s\n" "no" >&6; }
9414fi
9415
9416
9417fi
9418if test -z "$ac_cv_prog_LIPO"; then
9419  ac_ct_LIPO=$LIPO
9420  # Extract the first word of "lipo", so it can be a program name with args.
9421set dummy lipo; ac_word=$2
9422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423printf %s "checking for $ac_word... " >&6; }
9424if test ${ac_cv_prog_ac_ct_LIPO+y}
9425then :
9426  printf %s "(cached) " >&6
9427else $as_nop
9428  if test -n "$ac_ct_LIPO"; then
9429  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9430else
9431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432for as_dir in $PATH
9433do
9434  IFS=$as_save_IFS
9435  case $as_dir in #(((
9436    '') as_dir=./ ;;
9437    */) ;;
9438    *) as_dir=$as_dir/ ;;
9439  esac
9440    for ac_exec_ext in '' $ac_executable_extensions; do
9441  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9442    ac_cv_prog_ac_ct_LIPO="lipo"
9443    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9444    break 2
9445  fi
9446done
9447  done
9448IFS=$as_save_IFS
9449
9450fi
9451fi
9452ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9453if test -n "$ac_ct_LIPO"; then
9454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9455printf "%s\n" "$ac_ct_LIPO" >&6; }
9456else
9457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458printf "%s\n" "no" >&6; }
9459fi
9460
9461  if test "x$ac_ct_LIPO" = x; then
9462    LIPO=":"
9463  else
9464    case $cross_compiling:$ac_tool_warned in
9465yes:)
9466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9467printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9468ac_tool_warned=yes ;;
9469esac
9470    LIPO=$ac_ct_LIPO
9471  fi
9472else
9473  LIPO="$ac_cv_prog_LIPO"
9474fi
9475
9476    if test -n "$ac_tool_prefix"; then
9477  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9478set dummy ${ac_tool_prefix}otool; ac_word=$2
9479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480printf %s "checking for $ac_word... " >&6; }
9481if test ${ac_cv_prog_OTOOL+y}
9482then :
9483  printf %s "(cached) " >&6
9484else $as_nop
9485  if test -n "$OTOOL"; then
9486  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9487else
9488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489for as_dir in $PATH
9490do
9491  IFS=$as_save_IFS
9492  case $as_dir in #(((
9493    '') as_dir=./ ;;
9494    */) ;;
9495    *) as_dir=$as_dir/ ;;
9496  esac
9497    for ac_exec_ext in '' $ac_executable_extensions; do
9498  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9499    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9500    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9501    break 2
9502  fi
9503done
9504  done
9505IFS=$as_save_IFS
9506
9507fi
9508fi
9509OTOOL=$ac_cv_prog_OTOOL
9510if test -n "$OTOOL"; then
9511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9512printf "%s\n" "$OTOOL" >&6; }
9513else
9514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515printf "%s\n" "no" >&6; }
9516fi
9517
9518
9519fi
9520if test -z "$ac_cv_prog_OTOOL"; then
9521  ac_ct_OTOOL=$OTOOL
9522  # Extract the first word of "otool", so it can be a program name with args.
9523set dummy otool; ac_word=$2
9524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525printf %s "checking for $ac_word... " >&6; }
9526if test ${ac_cv_prog_ac_ct_OTOOL+y}
9527then :
9528  printf %s "(cached) " >&6
9529else $as_nop
9530  if test -n "$ac_ct_OTOOL"; then
9531  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9532else
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536  IFS=$as_save_IFS
9537  case $as_dir in #(((
9538    '') as_dir=./ ;;
9539    */) ;;
9540    *) as_dir=$as_dir/ ;;
9541  esac
9542    for ac_exec_ext in '' $ac_executable_extensions; do
9543  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9544    ac_cv_prog_ac_ct_OTOOL="otool"
9545    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9546    break 2
9547  fi
9548done
9549  done
9550IFS=$as_save_IFS
9551
9552fi
9553fi
9554ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9555if test -n "$ac_ct_OTOOL"; then
9556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9557printf "%s\n" "$ac_ct_OTOOL" >&6; }
9558else
9559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560printf "%s\n" "no" >&6; }
9561fi
9562
9563  if test "x$ac_ct_OTOOL" = x; then
9564    OTOOL=":"
9565  else
9566    case $cross_compiling:$ac_tool_warned in
9567yes:)
9568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9569printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9570ac_tool_warned=yes ;;
9571esac
9572    OTOOL=$ac_ct_OTOOL
9573  fi
9574else
9575  OTOOL="$ac_cv_prog_OTOOL"
9576fi
9577
9578    if test -n "$ac_tool_prefix"; then
9579  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9580set dummy ${ac_tool_prefix}otool64; ac_word=$2
9581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582printf %s "checking for $ac_word... " >&6; }
9583if test ${ac_cv_prog_OTOOL64+y}
9584then :
9585  printf %s "(cached) " >&6
9586else $as_nop
9587  if test -n "$OTOOL64"; then
9588  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9589else
9590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591for as_dir in $PATH
9592do
9593  IFS=$as_save_IFS
9594  case $as_dir in #(((
9595    '') as_dir=./ ;;
9596    */) ;;
9597    *) as_dir=$as_dir/ ;;
9598  esac
9599    for ac_exec_ext in '' $ac_executable_extensions; do
9600  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9601    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9602    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9603    break 2
9604  fi
9605done
9606  done
9607IFS=$as_save_IFS
9608
9609fi
9610fi
9611OTOOL64=$ac_cv_prog_OTOOL64
9612if test -n "$OTOOL64"; then
9613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9614printf "%s\n" "$OTOOL64" >&6; }
9615else
9616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617printf "%s\n" "no" >&6; }
9618fi
9619
9620
9621fi
9622if test -z "$ac_cv_prog_OTOOL64"; then
9623  ac_ct_OTOOL64=$OTOOL64
9624  # Extract the first word of "otool64", so it can be a program name with args.
9625set dummy otool64; ac_word=$2
9626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9627printf %s "checking for $ac_word... " >&6; }
9628if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9629then :
9630  printf %s "(cached) " >&6
9631else $as_nop
9632  if test -n "$ac_ct_OTOOL64"; then
9633  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9634else
9635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638  IFS=$as_save_IFS
9639  case $as_dir in #(((
9640    '') as_dir=./ ;;
9641    */) ;;
9642    *) as_dir=$as_dir/ ;;
9643  esac
9644    for ac_exec_ext in '' $ac_executable_extensions; do
9645  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9646    ac_cv_prog_ac_ct_OTOOL64="otool64"
9647    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9648    break 2
9649  fi
9650done
9651  done
9652IFS=$as_save_IFS
9653
9654fi
9655fi
9656ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9657if test -n "$ac_ct_OTOOL64"; then
9658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9659printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9660else
9661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662printf "%s\n" "no" >&6; }
9663fi
9664
9665  if test "x$ac_ct_OTOOL64" = x; then
9666    OTOOL64=":"
9667  else
9668    case $cross_compiling:$ac_tool_warned in
9669yes:)
9670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9671printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9672ac_tool_warned=yes ;;
9673esac
9674    OTOOL64=$ac_ct_OTOOL64
9675  fi
9676else
9677  OTOOL64="$ac_cv_prog_OTOOL64"
9678fi
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9707printf %s "checking for -single_module linker flag... " >&6; }
9708if test ${lt_cv_apple_cc_single_mod+y}
9709then :
9710  printf %s "(cached) " >&6
9711else $as_nop
9712  lt_cv_apple_cc_single_mod=no
9713      if test -z "$LT_MULTI_MODULE"; then
9714	# By default we will add the -single_module flag. You can override
9715	# by either setting the environment variable LT_MULTI_MODULE
9716	# non-empty at configure time, or by adding -multi_module to the
9717	# link flags.
9718	rm -rf libconftest.dylib*
9719	echo "int foo(void){return 1;}" > conftest.c
9720	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9721-dynamiclib -Wl,-single_module conftest.c" >&5
9722	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9723	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9724        _lt_result=$?
9725	# If there is a non-empty error log, and "single_module"
9726	# appears in it, assume the flag caused a linker warning
9727        if test -s conftest.err && $GREP single_module conftest.err; then
9728	  cat conftest.err >&5
9729	# Otherwise, if the output was created with a 0 exit code from
9730	# the compiler, it worked.
9731	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9732	  lt_cv_apple_cc_single_mod=yes
9733	else
9734	  cat conftest.err >&5
9735	fi
9736	rm -rf libconftest.dylib*
9737	rm -f conftest.*
9738      fi
9739fi
9740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9741printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9742
9743    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9744printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9745if test ${lt_cv_ld_exported_symbols_list+y}
9746then :
9747  printf %s "(cached) " >&6
9748else $as_nop
9749  lt_cv_ld_exported_symbols_list=no
9750      save_LDFLAGS=$LDFLAGS
9751      echo "_main" > conftest.sym
9752      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9753      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754/* end confdefs.h.  */
9755
9756int
9757main (void)
9758{
9759
9760  ;
9761  return 0;
9762}
9763_ACEOF
9764if ac_fn_c_try_link "$LINENO"
9765then :
9766  lt_cv_ld_exported_symbols_list=yes
9767else $as_nop
9768  lt_cv_ld_exported_symbols_list=no
9769fi
9770rm -f core conftest.err conftest.$ac_objext conftest.beam \
9771    conftest$ac_exeext conftest.$ac_ext
9772	LDFLAGS=$save_LDFLAGS
9773
9774fi
9775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9776printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9777
9778    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9779printf %s "checking for -force_load linker flag... " >&6; }
9780if test ${lt_cv_ld_force_load+y}
9781then :
9782  printf %s "(cached) " >&6
9783else $as_nop
9784  lt_cv_ld_force_load=no
9785      cat > conftest.c << _LT_EOF
9786int forced_loaded() { return 2;}
9787_LT_EOF
9788      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9789      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9790      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9791      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9792      echo "$RANLIB libconftest.a" >&5
9793      $RANLIB libconftest.a 2>&5
9794      cat > conftest.c << _LT_EOF
9795int main() { return 0;}
9796_LT_EOF
9797      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9798      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9799      _lt_result=$?
9800      if test -s conftest.err && $GREP force_load conftest.err; then
9801	cat conftest.err >&5
9802      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9803	lt_cv_ld_force_load=yes
9804      else
9805	cat conftest.err >&5
9806      fi
9807        rm -f conftest.err libconftest.a conftest conftest.c
9808        rm -rf conftest.dSYM
9809
9810fi
9811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9812printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9813    case $host_os in
9814    rhapsody* | darwin1.[012])
9815      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9816    darwin1.*)
9817      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9818    darwin*)
9819      case $MACOSX_DEPLOYMENT_TARGET,$host in
9820        10.[012],*|,*powerpc*-darwin[5-8]*)
9821          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9822        *)
9823          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9824      esac
9825    ;;
9826  esac
9827    if test yes = "$lt_cv_apple_cc_single_mod"; then
9828      _lt_dar_single_mod='$single_module'
9829    fi
9830    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9831      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9832    else
9833      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9834    fi
9835    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9836      _lt_dsymutil='~$DSYMUTIL $lib || :'
9837    else
9838      _lt_dsymutil=
9839    fi
9840    ;;
9841  esac
9842
9843# func_munge_path_list VARIABLE PATH
9844# -----------------------------------
9845# VARIABLE is name of variable containing _space_ separated list of
9846# directories to be munged by the contents of PATH, which is string
9847# having a format:
9848# "DIR[:DIR]:"
9849#       string "DIR[ DIR]" will be prepended to VARIABLE
9850# ":DIR[:DIR]"
9851#       string "DIR[ DIR]" will be appended to VARIABLE
9852# "DIRP[:DIRP]::[DIRA:]DIRA"
9853#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9854#       "DIRA[ DIRA]" will be appended to VARIABLE
9855# "DIR[:DIR]"
9856#       VARIABLE will be replaced by "DIR[ DIR]"
9857func_munge_path_list ()
9858{
9859    case x$2 in
9860    x)
9861        ;;
9862    *:)
9863        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9864        ;;
9865    x:*)
9866        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9867        ;;
9868    *::*)
9869        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9870        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9871        ;;
9872    *)
9873        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9874        ;;
9875    esac
9876}
9877
9878ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9879"
9880if test "x$ac_cv_header_dlfcn_h" = xyes
9881then :
9882  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9883
9884fi
9885
9886
9887
9888
9889
9890# Set options
9891# Check whether --enable-static was given.
9892if test ${enable_static+y}
9893then :
9894  enableval=$enable_static; p=${PACKAGE-default}
9895    case $enableval in
9896    yes) enable_static=yes ;;
9897    no) enable_static=no ;;
9898    *)
9899     enable_static=no
9900      # Look at the argument we got.  We use all the common list separators.
9901      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9902      for pkg in $enableval; do
9903	IFS=$lt_save_ifs
9904	if test "X$pkg" = "X$p"; then
9905	  enable_static=yes
9906	fi
9907      done
9908      IFS=$lt_save_ifs
9909      ;;
9910    esac
9911else $as_nop
9912  enable_static=no
9913fi
9914
9915
9916
9917
9918
9919
9920
9921enable_win32_dll=yes
9922
9923case $host in
9924*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9925  if test -n "$ac_tool_prefix"; then
9926  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9927set dummy ${ac_tool_prefix}as; ac_word=$2
9928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929printf %s "checking for $ac_word... " >&6; }
9930if test ${ac_cv_prog_AS+y}
9931then :
9932  printf %s "(cached) " >&6
9933else $as_nop
9934  if test -n "$AS"; then
9935  ac_cv_prog_AS="$AS" # Let the user override the test.
9936else
9937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938for as_dir in $PATH
9939do
9940  IFS=$as_save_IFS
9941  case $as_dir in #(((
9942    '') as_dir=./ ;;
9943    */) ;;
9944    *) as_dir=$as_dir/ ;;
9945  esac
9946    for ac_exec_ext in '' $ac_executable_extensions; do
9947  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9948    ac_cv_prog_AS="${ac_tool_prefix}as"
9949    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9950    break 2
9951  fi
9952done
9953  done
9954IFS=$as_save_IFS
9955
9956fi
9957fi
9958AS=$ac_cv_prog_AS
9959if test -n "$AS"; then
9960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9961printf "%s\n" "$AS" >&6; }
9962else
9963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964printf "%s\n" "no" >&6; }
9965fi
9966
9967
9968fi
9969if test -z "$ac_cv_prog_AS"; then
9970  ac_ct_AS=$AS
9971  # Extract the first word of "as", so it can be a program name with args.
9972set dummy as; ac_word=$2
9973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974printf %s "checking for $ac_word... " >&6; }
9975if test ${ac_cv_prog_ac_ct_AS+y}
9976then :
9977  printf %s "(cached) " >&6
9978else $as_nop
9979  if test -n "$ac_ct_AS"; then
9980  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9981else
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985  IFS=$as_save_IFS
9986  case $as_dir in #(((
9987    '') as_dir=./ ;;
9988    */) ;;
9989    *) as_dir=$as_dir/ ;;
9990  esac
9991    for ac_exec_ext in '' $ac_executable_extensions; do
9992  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9993    ac_cv_prog_ac_ct_AS="as"
9994    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9995    break 2
9996  fi
9997done
9998  done
9999IFS=$as_save_IFS
10000
10001fi
10002fi
10003ac_ct_AS=$ac_cv_prog_ac_ct_AS
10004if test -n "$ac_ct_AS"; then
10005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10006printf "%s\n" "$ac_ct_AS" >&6; }
10007else
10008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009printf "%s\n" "no" >&6; }
10010fi
10011
10012  if test "x$ac_ct_AS" = x; then
10013    AS="false"
10014  else
10015    case $cross_compiling:$ac_tool_warned in
10016yes:)
10017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10018printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10019ac_tool_warned=yes ;;
10020esac
10021    AS=$ac_ct_AS
10022  fi
10023else
10024  AS="$ac_cv_prog_AS"
10025fi
10026
10027  if test -n "$ac_tool_prefix"; then
10028  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10029set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031printf %s "checking for $ac_word... " >&6; }
10032if test ${ac_cv_prog_DLLTOOL+y}
10033then :
10034  printf %s "(cached) " >&6
10035else $as_nop
10036  if test -n "$DLLTOOL"; then
10037  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10038else
10039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040for as_dir in $PATH
10041do
10042  IFS=$as_save_IFS
10043  case $as_dir in #(((
10044    '') as_dir=./ ;;
10045    */) ;;
10046    *) as_dir=$as_dir/ ;;
10047  esac
10048    for ac_exec_ext in '' $ac_executable_extensions; do
10049  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10050    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10051    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10052    break 2
10053  fi
10054done
10055  done
10056IFS=$as_save_IFS
10057
10058fi
10059fi
10060DLLTOOL=$ac_cv_prog_DLLTOOL
10061if test -n "$DLLTOOL"; then
10062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10063printf "%s\n" "$DLLTOOL" >&6; }
10064else
10065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066printf "%s\n" "no" >&6; }
10067fi
10068
10069
10070fi
10071if test -z "$ac_cv_prog_DLLTOOL"; then
10072  ac_ct_DLLTOOL=$DLLTOOL
10073  # Extract the first word of "dlltool", so it can be a program name with args.
10074set dummy dlltool; ac_word=$2
10075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076printf %s "checking for $ac_word... " >&6; }
10077if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10078then :
10079  printf %s "(cached) " >&6
10080else $as_nop
10081  if test -n "$ac_ct_DLLTOOL"; then
10082  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10083else
10084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085for as_dir in $PATH
10086do
10087  IFS=$as_save_IFS
10088  case $as_dir in #(((
10089    '') as_dir=./ ;;
10090    */) ;;
10091    *) as_dir=$as_dir/ ;;
10092  esac
10093    for ac_exec_ext in '' $ac_executable_extensions; do
10094  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10095    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10096    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10097    break 2
10098  fi
10099done
10100  done
10101IFS=$as_save_IFS
10102
10103fi
10104fi
10105ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10106if test -n "$ac_ct_DLLTOOL"; then
10107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10108printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10109else
10110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111printf "%s\n" "no" >&6; }
10112fi
10113
10114  if test "x$ac_ct_DLLTOOL" = x; then
10115    DLLTOOL="false"
10116  else
10117    case $cross_compiling:$ac_tool_warned in
10118yes:)
10119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10120printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10121ac_tool_warned=yes ;;
10122esac
10123    DLLTOOL=$ac_ct_DLLTOOL
10124  fi
10125else
10126  DLLTOOL="$ac_cv_prog_DLLTOOL"
10127fi
10128
10129  if test -n "$ac_tool_prefix"; then
10130  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10131set dummy ${ac_tool_prefix}objdump; ac_word=$2
10132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133printf %s "checking for $ac_word... " >&6; }
10134if test ${ac_cv_prog_OBJDUMP+y}
10135then :
10136  printf %s "(cached) " >&6
10137else $as_nop
10138  if test -n "$OBJDUMP"; then
10139  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10140else
10141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142for as_dir in $PATH
10143do
10144  IFS=$as_save_IFS
10145  case $as_dir in #(((
10146    '') as_dir=./ ;;
10147    */) ;;
10148    *) as_dir=$as_dir/ ;;
10149  esac
10150    for ac_exec_ext in '' $ac_executable_extensions; do
10151  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10152    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10153    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10154    break 2
10155  fi
10156done
10157  done
10158IFS=$as_save_IFS
10159
10160fi
10161fi
10162OBJDUMP=$ac_cv_prog_OBJDUMP
10163if test -n "$OBJDUMP"; then
10164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10165printf "%s\n" "$OBJDUMP" >&6; }
10166else
10167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168printf "%s\n" "no" >&6; }
10169fi
10170
10171
10172fi
10173if test -z "$ac_cv_prog_OBJDUMP"; then
10174  ac_ct_OBJDUMP=$OBJDUMP
10175  # Extract the first word of "objdump", so it can be a program name with args.
10176set dummy objdump; ac_word=$2
10177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178printf %s "checking for $ac_word... " >&6; }
10179if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10180then :
10181  printf %s "(cached) " >&6
10182else $as_nop
10183  if test -n "$ac_ct_OBJDUMP"; then
10184  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10185else
10186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187for as_dir in $PATH
10188do
10189  IFS=$as_save_IFS
10190  case $as_dir in #(((
10191    '') as_dir=./ ;;
10192    */) ;;
10193    *) as_dir=$as_dir/ ;;
10194  esac
10195    for ac_exec_ext in '' $ac_executable_extensions; do
10196  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10197    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10198    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10199    break 2
10200  fi
10201done
10202  done
10203IFS=$as_save_IFS
10204
10205fi
10206fi
10207ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10208if test -n "$ac_ct_OBJDUMP"; then
10209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10210printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10211else
10212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213printf "%s\n" "no" >&6; }
10214fi
10215
10216  if test "x$ac_ct_OBJDUMP" = x; then
10217    OBJDUMP="false"
10218  else
10219    case $cross_compiling:$ac_tool_warned in
10220yes:)
10221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10222printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10223ac_tool_warned=yes ;;
10224esac
10225    OBJDUMP=$ac_ct_OBJDUMP
10226  fi
10227else
10228  OBJDUMP="$ac_cv_prog_OBJDUMP"
10229fi
10230
10231  ;;
10232esac
10233
10234test -z "$AS" && AS=as
10235
10236
10237
10238
10239
10240test -z "$DLLTOOL" && DLLTOOL=dlltool
10241
10242
10243
10244
10245
10246test -z "$OBJDUMP" && OBJDUMP=objdump
10247
10248
10249
10250
10251
10252
10253
10254        enable_dlopen=no
10255
10256
10257
10258            # Check whether --enable-shared was given.
10259if test ${enable_shared+y}
10260then :
10261  enableval=$enable_shared; p=${PACKAGE-default}
10262    case $enableval in
10263    yes) enable_shared=yes ;;
10264    no) enable_shared=no ;;
10265    *)
10266      enable_shared=no
10267      # Look at the argument we got.  We use all the common list separators.
10268      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10269      for pkg in $enableval; do
10270	IFS=$lt_save_ifs
10271	if test "X$pkg" = "X$p"; then
10272	  enable_shared=yes
10273	fi
10274      done
10275      IFS=$lt_save_ifs
10276      ;;
10277    esac
10278else $as_nop
10279  enable_shared=yes
10280fi
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292# Check whether --with-pic was given.
10293if test ${with_pic+y}
10294then :
10295  withval=$with_pic; lt_p=${PACKAGE-default}
10296    case $withval in
10297    yes|no) pic_mode=$withval ;;
10298    *)
10299      pic_mode=default
10300      # Look at the argument we got.  We use all the common list separators.
10301      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10302      for lt_pkg in $withval; do
10303	IFS=$lt_save_ifs
10304	if test "X$lt_pkg" = "X$lt_p"; then
10305	  pic_mode=yes
10306	fi
10307      done
10308      IFS=$lt_save_ifs
10309      ;;
10310    esac
10311else $as_nop
10312  pic_mode=default
10313fi
10314
10315
10316
10317
10318
10319
10320
10321
10322  # Check whether --enable-fast-install was given.
10323if test ${enable_fast_install+y}
10324then :
10325  enableval=$enable_fast_install; p=${PACKAGE-default}
10326    case $enableval in
10327    yes) enable_fast_install=yes ;;
10328    no) enable_fast_install=no ;;
10329    *)
10330      enable_fast_install=no
10331      # Look at the argument we got.  We use all the common list separators.
10332      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10333      for pkg in $enableval; do
10334	IFS=$lt_save_ifs
10335	if test "X$pkg" = "X$p"; then
10336	  enable_fast_install=yes
10337	fi
10338      done
10339      IFS=$lt_save_ifs
10340      ;;
10341    esac
10342else $as_nop
10343  enable_fast_install=yes
10344fi
10345
10346
10347
10348
10349
10350
10351
10352
10353  shared_archive_member_spec=
10354case $host,$enable_shared in
10355power*-*-aix[5-9]*,yes)
10356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10357printf %s "checking which variant of shared library versioning to provide... " >&6; }
10358
10359# Check whether --with-aix-soname was given.
10360if test ${with_aix_soname+y}
10361then :
10362  withval=$with_aix_soname; case $withval in
10363    aix|svr4|both)
10364      ;;
10365    *)
10366      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10367      ;;
10368    esac
10369    lt_cv_with_aix_soname=$with_aix_soname
10370else $as_nop
10371  if test ${lt_cv_with_aix_soname+y}
10372then :
10373  printf %s "(cached) " >&6
10374else $as_nop
10375  lt_cv_with_aix_soname=aix
10376fi
10377
10378    with_aix_soname=$lt_cv_with_aix_soname
10379fi
10380
10381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10382printf "%s\n" "$with_aix_soname" >&6; }
10383  if test aix != "$with_aix_soname"; then
10384    # For the AIX way of multilib, we name the shared archive member
10385    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10386    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10387    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10388    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10389    if test 64 = "${OBJECT_MODE-32}"; then
10390      shared_archive_member_spec=shr_64
10391    else
10392      shared_archive_member_spec=shr
10393    fi
10394  fi
10395  ;;
10396*)
10397  with_aix_soname=aix
10398  ;;
10399esac
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410# This can be used to rebuild libtool when needed
10411LIBTOOL_DEPS=$ltmain
10412
10413# Always use our own libtool.
10414LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445test -z "$LN_S" && LN_S="ln -s"
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460if test -n "${ZSH_VERSION+set}"; then
10461   setopt NO_GLOB_SUBST
10462fi
10463
10464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10465printf %s "checking for objdir... " >&6; }
10466if test ${lt_cv_objdir+y}
10467then :
10468  printf %s "(cached) " >&6
10469else $as_nop
10470  rm -f .libs 2>/dev/null
10471mkdir .libs 2>/dev/null
10472if test -d .libs; then
10473  lt_cv_objdir=.libs
10474else
10475  # MS-DOS does not allow filenames that begin with a dot.
10476  lt_cv_objdir=_libs
10477fi
10478rmdir .libs 2>/dev/null
10479fi
10480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10481printf "%s\n" "$lt_cv_objdir" >&6; }
10482objdir=$lt_cv_objdir
10483
10484
10485
10486
10487
10488printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10489
10490
10491
10492
10493case $host_os in
10494aix3*)
10495  # AIX sometimes has problems with the GCC collect2 program.  For some
10496  # reason, if we set the COLLECT_NAMES environment variable, the problems
10497  # vanish in a puff of smoke.
10498  if test set != "${COLLECT_NAMES+set}"; then
10499    COLLECT_NAMES=
10500    export COLLECT_NAMES
10501  fi
10502  ;;
10503esac
10504
10505# Global variables:
10506ofile=libtool
10507can_build_shared=yes
10508
10509# All known linkers require a '.a' archive for static linking (except MSVC and
10510# ICC, which need '.lib').
10511libext=a
10512
10513with_gnu_ld=$lt_cv_prog_gnu_ld
10514
10515old_CC=$CC
10516old_CFLAGS=$CFLAGS
10517
10518# Set sane defaults for various variables
10519test -z "$CC" && CC=cc
10520test -z "$LTCC" && LTCC=$CC
10521test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10522test -z "$LD" && LD=ld
10523test -z "$ac_objext" && ac_objext=o
10524
10525func_cc_basename $compiler
10526cc_basename=$func_cc_basename_result
10527
10528
10529# Only perform the check for file, if the check method requires it
10530test -z "$MAGIC_CMD" && MAGIC_CMD=file
10531case $deplibs_check_method in
10532file_magic*)
10533  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10534    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10535printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10536if test ${lt_cv_path_MAGIC_CMD+y}
10537then :
10538  printf %s "(cached) " >&6
10539else $as_nop
10540  case $MAGIC_CMD in
10541[\\/*] |  ?:[\\/]*)
10542  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10543  ;;
10544*)
10545  lt_save_MAGIC_CMD=$MAGIC_CMD
10546  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10547  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10548  for ac_dir in $ac_dummy; do
10549    IFS=$lt_save_ifs
10550    test -z "$ac_dir" && ac_dir=.
10551    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10552      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10553      if test -n "$file_magic_test_file"; then
10554	case $deplibs_check_method in
10555	"file_magic "*)
10556	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10557	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10558	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10559	    $EGREP "$file_magic_regex" > /dev/null; then
10560	    :
10561	  else
10562	    cat <<_LT_EOF 1>&2
10563
10564*** Warning: the command libtool uses to detect shared libraries,
10565*** $file_magic_cmd, produces output that libtool cannot recognize.
10566*** The result is that libtool may fail to recognize shared libraries
10567*** as such.  This will affect the creation of libtool libraries that
10568*** depend on shared libraries, but programs linked with such libtool
10569*** libraries will work regardless of this problem.  Nevertheless, you
10570*** may want to report the problem to your system manager and/or to
10571*** bug-libtool@gnu.org
10572
10573_LT_EOF
10574	  fi ;;
10575	esac
10576      fi
10577      break
10578    fi
10579  done
10580  IFS=$lt_save_ifs
10581  MAGIC_CMD=$lt_save_MAGIC_CMD
10582  ;;
10583esac
10584fi
10585
10586MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10587if test -n "$MAGIC_CMD"; then
10588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10589printf "%s\n" "$MAGIC_CMD" >&6; }
10590else
10591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592printf "%s\n" "no" >&6; }
10593fi
10594
10595
10596
10597
10598
10599if test -z "$lt_cv_path_MAGIC_CMD"; then
10600  if test -n "$ac_tool_prefix"; then
10601    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10602printf %s "checking for file... " >&6; }
10603if test ${lt_cv_path_MAGIC_CMD+y}
10604then :
10605  printf %s "(cached) " >&6
10606else $as_nop
10607  case $MAGIC_CMD in
10608[\\/*] |  ?:[\\/]*)
10609  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10610  ;;
10611*)
10612  lt_save_MAGIC_CMD=$MAGIC_CMD
10613  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10614  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10615  for ac_dir in $ac_dummy; do
10616    IFS=$lt_save_ifs
10617    test -z "$ac_dir" && ac_dir=.
10618    if test -f "$ac_dir/file"; then
10619      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10620      if test -n "$file_magic_test_file"; then
10621	case $deplibs_check_method in
10622	"file_magic "*)
10623	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10624	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10625	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10626	    $EGREP "$file_magic_regex" > /dev/null; then
10627	    :
10628	  else
10629	    cat <<_LT_EOF 1>&2
10630
10631*** Warning: the command libtool uses to detect shared libraries,
10632*** $file_magic_cmd, produces output that libtool cannot recognize.
10633*** The result is that libtool may fail to recognize shared libraries
10634*** as such.  This will affect the creation of libtool libraries that
10635*** depend on shared libraries, but programs linked with such libtool
10636*** libraries will work regardless of this problem.  Nevertheless, you
10637*** may want to report the problem to your system manager and/or to
10638*** bug-libtool@gnu.org
10639
10640_LT_EOF
10641	  fi ;;
10642	esac
10643      fi
10644      break
10645    fi
10646  done
10647  IFS=$lt_save_ifs
10648  MAGIC_CMD=$lt_save_MAGIC_CMD
10649  ;;
10650esac
10651fi
10652
10653MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10654if test -n "$MAGIC_CMD"; then
10655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10656printf "%s\n" "$MAGIC_CMD" >&6; }
10657else
10658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659printf "%s\n" "no" >&6; }
10660fi
10661
10662
10663  else
10664    MAGIC_CMD=:
10665  fi
10666fi
10667
10668  fi
10669  ;;
10670esac
10671
10672# Use C for the default configuration in the libtool script
10673
10674lt_save_CC=$CC
10675ac_ext=c
10676ac_cpp='$CPP $CPPFLAGS'
10677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10679ac_compiler_gnu=$ac_cv_c_compiler_gnu
10680
10681
10682# Source file extension for C test sources.
10683ac_ext=c
10684
10685# Object file extension for compiled C test sources.
10686objext=o
10687objext=$objext
10688
10689# Code to be used in simple compile tests
10690lt_simple_compile_test_code="int some_variable = 0;"
10691
10692# Code to be used in simple link tests
10693lt_simple_link_test_code='int main(){return(0);}'
10694
10695
10696
10697
10698
10699
10700
10701# If no C compiler was specified, use CC.
10702LTCC=${LTCC-"$CC"}
10703
10704# If no C compiler flags were specified, use CFLAGS.
10705LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10706
10707# Allow CC to be a program name with arguments.
10708compiler=$CC
10709
10710# Save the default compiler, since it gets overwritten when the other
10711# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10712compiler_DEFAULT=$CC
10713
10714# save warnings/boilerplate of simple test code
10715ac_outfile=conftest.$ac_objext
10716echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10717eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10718_lt_compiler_boilerplate=`cat conftest.err`
10719$RM conftest*
10720
10721ac_outfile=conftest.$ac_objext
10722echo "$lt_simple_link_test_code" >conftest.$ac_ext
10723eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10724_lt_linker_boilerplate=`cat conftest.err`
10725$RM -r conftest*
10726
10727
10728## CAVEAT EMPTOR:
10729## There is no encapsulation within the following macros, do not change
10730## the running order or otherwise move them around unless you know exactly
10731## what you are doing...
10732if test -n "$compiler"; then
10733
10734lt_prog_compiler_no_builtin_flag=
10735
10736if test yes = "$GCC"; then
10737  case $cc_basename in
10738  nvcc*)
10739    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10740  *)
10741    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10742  esac
10743
10744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10745printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10746if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10747then :
10748  printf %s "(cached) " >&6
10749else $as_nop
10750  lt_cv_prog_compiler_rtti_exceptions=no
10751   ac_outfile=conftest.$ac_objext
10752   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10753   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10754   # Insert the option either (1) after the last *FLAGS variable, or
10755   # (2) before a word containing "conftest.", or (3) at the end.
10756   # Note that $ac_compile itself does not contain backslashes and begins
10757   # with a dollar sign (not a hyphen), so the echo should work correctly.
10758   # The option is referenced via a variable to avoid confusing sed.
10759   lt_compile=`echo "$ac_compile" | $SED \
10760   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10761   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10762   -e 's:$: $lt_compiler_flag:'`
10763   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10764   (eval "$lt_compile" 2>conftest.err)
10765   ac_status=$?
10766   cat conftest.err >&5
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   if (exit $ac_status) && test -s "$ac_outfile"; then
10769     # The compiler can only warn and ignore the option if not recognized
10770     # So say no if there are warnings other than the usual output.
10771     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10772     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10773     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10774       lt_cv_prog_compiler_rtti_exceptions=yes
10775     fi
10776   fi
10777   $RM conftest*
10778
10779fi
10780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10781printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10782
10783if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10784    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10785else
10786    :
10787fi
10788
10789fi
10790
10791
10792
10793
10794
10795
10796  lt_prog_compiler_wl=
10797lt_prog_compiler_pic=
10798lt_prog_compiler_static=
10799
10800
10801  if test yes = "$GCC"; then
10802    lt_prog_compiler_wl='-Wl,'
10803    lt_prog_compiler_static='-static'
10804
10805    case $host_os in
10806      aix*)
10807      # All AIX code is PIC.
10808      if test ia64 = "$host_cpu"; then
10809	# AIX 5 now supports IA64 processor
10810	lt_prog_compiler_static='-Bstatic'
10811      fi
10812      lt_prog_compiler_pic='-fPIC'
10813      ;;
10814
10815    amigaos*)
10816      case $host_cpu in
10817      powerpc)
10818            # see comment about AmigaOS4 .so support
10819            lt_prog_compiler_pic='-fPIC'
10820        ;;
10821      m68k)
10822            # FIXME: we need at least 68020 code to build shared libraries, but
10823            # adding the '-m68020' flag to GCC prevents building anything better,
10824            # like '-m68040'.
10825            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10826        ;;
10827      esac
10828      ;;
10829
10830    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10831      # PIC is the default for these OSes.
10832      ;;
10833
10834    mingw* | cygwin* | pw32* | os2* | cegcc*)
10835      # This hack is so that the source file can tell whether it is being
10836      # built for inclusion in a dll (and should export symbols for example).
10837      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10838      # (--disable-auto-import) libraries
10839      lt_prog_compiler_pic='-DDLL_EXPORT'
10840      case $host_os in
10841      os2*)
10842	lt_prog_compiler_static='$wl-static'
10843	;;
10844      esac
10845      ;;
10846
10847    darwin* | rhapsody*)
10848      # PIC is the default on this platform
10849      # Common symbols not allowed in MH_DYLIB files
10850      lt_prog_compiler_pic='-fno-common'
10851      ;;
10852
10853    haiku*)
10854      # PIC is the default for Haiku.
10855      # The "-static" flag exists, but is broken.
10856      lt_prog_compiler_static=
10857      ;;
10858
10859    hpux*)
10860      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10861      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10862      # sets the default TLS model and affects inlining.
10863      case $host_cpu in
10864      hppa*64*)
10865	# +Z the default
10866	;;
10867      *)
10868	lt_prog_compiler_pic='-fPIC'
10869	;;
10870      esac
10871      ;;
10872
10873    interix[3-9]*)
10874      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10875      # Instead, we relocate shared libraries at runtime.
10876      ;;
10877
10878    msdosdjgpp*)
10879      # Just because we use GCC doesn't mean we suddenly get shared libraries
10880      # on systems that don't support them.
10881      lt_prog_compiler_can_build_shared=no
10882      enable_shared=no
10883      ;;
10884
10885    *nto* | *qnx*)
10886      # QNX uses GNU C++, but need to define -shared option too, otherwise
10887      # it will coredump.
10888      lt_prog_compiler_pic='-fPIC -shared'
10889      ;;
10890
10891    sysv4*MP*)
10892      if test -d /usr/nec; then
10893	lt_prog_compiler_pic=-Kconform_pic
10894      fi
10895      ;;
10896
10897    *)
10898      lt_prog_compiler_pic='-fPIC'
10899      ;;
10900    esac
10901
10902    case $cc_basename in
10903    nvcc*) # Cuda Compiler Driver 2.2
10904      lt_prog_compiler_wl='-Xlinker '
10905      if test -n "$lt_prog_compiler_pic"; then
10906        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10907      fi
10908      ;;
10909    esac
10910  else
10911    # PORTME Check for flag to pass linker flags through the system compiler.
10912    case $host_os in
10913    aix*)
10914      lt_prog_compiler_wl='-Wl,'
10915      if test ia64 = "$host_cpu"; then
10916	# AIX 5 now supports IA64 processor
10917	lt_prog_compiler_static='-Bstatic'
10918      else
10919	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10920      fi
10921      ;;
10922
10923    darwin* | rhapsody*)
10924      # PIC is the default on this platform
10925      # Common symbols not allowed in MH_DYLIB files
10926      lt_prog_compiler_pic='-fno-common'
10927      case $cc_basename in
10928      nagfor*)
10929        # NAG Fortran compiler
10930        lt_prog_compiler_wl='-Wl,-Wl,,'
10931        lt_prog_compiler_pic='-PIC'
10932        lt_prog_compiler_static='-Bstatic'
10933        ;;
10934      esac
10935      ;;
10936
10937    mingw* | cygwin* | pw32* | os2* | cegcc*)
10938      # This hack is so that the source file can tell whether it is being
10939      # built for inclusion in a dll (and should export symbols for example).
10940      lt_prog_compiler_pic='-DDLL_EXPORT'
10941      case $host_os in
10942      os2*)
10943	lt_prog_compiler_static='$wl-static'
10944	;;
10945      esac
10946      ;;
10947
10948    hpux9* | hpux10* | hpux11*)
10949      lt_prog_compiler_wl='-Wl,'
10950      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10951      # not for PA HP-UX.
10952      case $host_cpu in
10953      hppa*64*|ia64*)
10954	# +Z the default
10955	;;
10956      *)
10957	lt_prog_compiler_pic='+Z'
10958	;;
10959      esac
10960      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10961      lt_prog_compiler_static='$wl-a ${wl}archive'
10962      ;;
10963
10964    irix5* | irix6* | nonstopux*)
10965      lt_prog_compiler_wl='-Wl,'
10966      # PIC (with -KPIC) is the default.
10967      lt_prog_compiler_static='-non_shared'
10968      ;;
10969
10970    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10971      case $cc_basename in
10972      # old Intel for x86_64, which still supported -KPIC.
10973      ecc*)
10974	lt_prog_compiler_wl='-Wl,'
10975	lt_prog_compiler_pic='-KPIC'
10976	lt_prog_compiler_static='-static'
10977        ;;
10978      # icc used to be incompatible with GCC.
10979      # ICC 10 doesn't accept -KPIC any more.
10980      icc* | ifort*)
10981	lt_prog_compiler_wl='-Wl,'
10982	lt_prog_compiler_pic='-fPIC'
10983	lt_prog_compiler_static='-static'
10984        ;;
10985      # Lahey Fortran 8.1.
10986      lf95*)
10987	lt_prog_compiler_wl='-Wl,'
10988	lt_prog_compiler_pic='--shared'
10989	lt_prog_compiler_static='--static'
10990	;;
10991      nagfor*)
10992	# NAG Fortran compiler
10993	lt_prog_compiler_wl='-Wl,-Wl,,'
10994	lt_prog_compiler_pic='-PIC'
10995	lt_prog_compiler_static='-Bstatic'
10996	;;
10997      tcc*)
10998	# Fabrice Bellard et al's Tiny C Compiler
10999	lt_prog_compiler_wl='-Wl,'
11000	lt_prog_compiler_pic='-fPIC'
11001	lt_prog_compiler_static='-static'
11002	;;
11003      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11004        # Portland Group compilers (*not* the Pentium gcc compiler,
11005	# which looks to be a dead project)
11006	lt_prog_compiler_wl='-Wl,'
11007	lt_prog_compiler_pic='-fpic'
11008	lt_prog_compiler_static='-Bstatic'
11009        ;;
11010      ccc*)
11011        lt_prog_compiler_wl='-Wl,'
11012        # All Alpha code is PIC.
11013        lt_prog_compiler_static='-non_shared'
11014        ;;
11015      xl* | bgxl* | bgf* | mpixl*)
11016	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11017	lt_prog_compiler_wl='-Wl,'
11018	lt_prog_compiler_pic='-qpic'
11019	lt_prog_compiler_static='-qstaticlink'
11020	;;
11021      *)
11022	case `$CC -V 2>&1 | $SED 5q` in
11023	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11024	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11025	  lt_prog_compiler_pic='-KPIC'
11026	  lt_prog_compiler_static='-Bstatic'
11027	  lt_prog_compiler_wl=''
11028	  ;;
11029	*Sun\ F* | *Sun*Fortran*)
11030	  lt_prog_compiler_pic='-KPIC'
11031	  lt_prog_compiler_static='-Bstatic'
11032	  lt_prog_compiler_wl='-Qoption ld '
11033	  ;;
11034	*Sun\ C*)
11035	  # Sun C 5.9
11036	  lt_prog_compiler_pic='-KPIC'
11037	  lt_prog_compiler_static='-Bstatic'
11038	  lt_prog_compiler_wl='-Wl,'
11039	  ;;
11040        *Intel*\ [CF]*Compiler*)
11041	  lt_prog_compiler_wl='-Wl,'
11042	  lt_prog_compiler_pic='-fPIC'
11043	  lt_prog_compiler_static='-static'
11044	  ;;
11045	*Portland\ Group*)
11046	  lt_prog_compiler_wl='-Wl,'
11047	  lt_prog_compiler_pic='-fpic'
11048	  lt_prog_compiler_static='-Bstatic'
11049	  ;;
11050	esac
11051	;;
11052      esac
11053      ;;
11054
11055    newsos6)
11056      lt_prog_compiler_pic='-KPIC'
11057      lt_prog_compiler_static='-Bstatic'
11058      ;;
11059
11060    *nto* | *qnx*)
11061      # QNX uses GNU C++, but need to define -shared option too, otherwise
11062      # it will coredump.
11063      lt_prog_compiler_pic='-fPIC -shared'
11064      ;;
11065
11066    osf3* | osf4* | osf5*)
11067      lt_prog_compiler_wl='-Wl,'
11068      # All OSF/1 code is PIC.
11069      lt_prog_compiler_static='-non_shared'
11070      ;;
11071
11072    rdos*)
11073      lt_prog_compiler_static='-non_shared'
11074      ;;
11075
11076    solaris*)
11077      lt_prog_compiler_pic='-KPIC'
11078      lt_prog_compiler_static='-Bstatic'
11079      case $cc_basename in
11080      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11081	lt_prog_compiler_wl='-Qoption ld ';;
11082      *)
11083	lt_prog_compiler_wl='-Wl,';;
11084      esac
11085      ;;
11086
11087    sunos4*)
11088      lt_prog_compiler_wl='-Qoption ld '
11089      lt_prog_compiler_pic='-PIC'
11090      lt_prog_compiler_static='-Bstatic'
11091      ;;
11092
11093    sysv4 | sysv4.2uw2* | sysv4.3*)
11094      lt_prog_compiler_wl='-Wl,'
11095      lt_prog_compiler_pic='-KPIC'
11096      lt_prog_compiler_static='-Bstatic'
11097      ;;
11098
11099    sysv4*MP*)
11100      if test -d /usr/nec; then
11101	lt_prog_compiler_pic='-Kconform_pic'
11102	lt_prog_compiler_static='-Bstatic'
11103      fi
11104      ;;
11105
11106    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11107      lt_prog_compiler_wl='-Wl,'
11108      lt_prog_compiler_pic='-KPIC'
11109      lt_prog_compiler_static='-Bstatic'
11110      ;;
11111
11112    unicos*)
11113      lt_prog_compiler_wl='-Wl,'
11114      lt_prog_compiler_can_build_shared=no
11115      ;;
11116
11117    uts4*)
11118      lt_prog_compiler_pic='-pic'
11119      lt_prog_compiler_static='-Bstatic'
11120      ;;
11121
11122    *)
11123      lt_prog_compiler_can_build_shared=no
11124      ;;
11125    esac
11126  fi
11127
11128case $host_os in
11129  # For platforms that do not support PIC, -DPIC is meaningless:
11130  *djgpp*)
11131    lt_prog_compiler_pic=
11132    ;;
11133  *)
11134    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11135    ;;
11136esac
11137
11138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11139printf %s "checking for $compiler option to produce PIC... " >&6; }
11140if test ${lt_cv_prog_compiler_pic+y}
11141then :
11142  printf %s "(cached) " >&6
11143else $as_nop
11144  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11145fi
11146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11147printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11148lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11149
11150#
11151# Check to make sure the PIC flag actually works.
11152#
11153if test -n "$lt_prog_compiler_pic"; then
11154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11155printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11156if test ${lt_cv_prog_compiler_pic_works+y}
11157then :
11158  printf %s "(cached) " >&6
11159else $as_nop
11160  lt_cv_prog_compiler_pic_works=no
11161   ac_outfile=conftest.$ac_objext
11162   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11163   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11164   # Insert the option either (1) after the last *FLAGS variable, or
11165   # (2) before a word containing "conftest.", or (3) at the end.
11166   # Note that $ac_compile itself does not contain backslashes and begins
11167   # with a dollar sign (not a hyphen), so the echo should work correctly.
11168   # The option is referenced via a variable to avoid confusing sed.
11169   lt_compile=`echo "$ac_compile" | $SED \
11170   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11171   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11172   -e 's:$: $lt_compiler_flag:'`
11173   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11174   (eval "$lt_compile" 2>conftest.err)
11175   ac_status=$?
11176   cat conftest.err >&5
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   if (exit $ac_status) && test -s "$ac_outfile"; then
11179     # The compiler can only warn and ignore the option if not recognized
11180     # So say no if there are warnings other than the usual output.
11181     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11182     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11183     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11184       lt_cv_prog_compiler_pic_works=yes
11185     fi
11186   fi
11187   $RM conftest*
11188
11189fi
11190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11191printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11192
11193if test yes = "$lt_cv_prog_compiler_pic_works"; then
11194    case $lt_prog_compiler_pic in
11195     "" | " "*) ;;
11196     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11197     esac
11198else
11199    lt_prog_compiler_pic=
11200     lt_prog_compiler_can_build_shared=no
11201fi
11202
11203fi
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215#
11216# Check to make sure the static flag actually works.
11217#
11218wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11220printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11221if test ${lt_cv_prog_compiler_static_works+y}
11222then :
11223  printf %s "(cached) " >&6
11224else $as_nop
11225  lt_cv_prog_compiler_static_works=no
11226   save_LDFLAGS=$LDFLAGS
11227   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11228   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11229   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11230     # The linker can only warn and ignore the option if not recognized
11231     # So say no if there are warnings
11232     if test -s conftest.err; then
11233       # Append any errors to the config.log.
11234       cat conftest.err 1>&5
11235       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11236       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11237       if diff conftest.exp conftest.er2 >/dev/null; then
11238         lt_cv_prog_compiler_static_works=yes
11239       fi
11240     else
11241       lt_cv_prog_compiler_static_works=yes
11242     fi
11243   fi
11244   $RM -r conftest*
11245   LDFLAGS=$save_LDFLAGS
11246
11247fi
11248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11249printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11250
11251if test yes = "$lt_cv_prog_compiler_static_works"; then
11252    :
11253else
11254    lt_prog_compiler_static=
11255fi
11256
11257
11258
11259
11260
11261
11262
11263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11264printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11265if test ${lt_cv_prog_compiler_c_o+y}
11266then :
11267  printf %s "(cached) " >&6
11268else $as_nop
11269  lt_cv_prog_compiler_c_o=no
11270   $RM -r conftest 2>/dev/null
11271   mkdir conftest
11272   cd conftest
11273   mkdir out
11274   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11275
11276   lt_compiler_flag="-o out/conftest2.$ac_objext"
11277   # Insert the option either (1) after the last *FLAGS variable, or
11278   # (2) before a word containing "conftest.", or (3) at the end.
11279   # Note that $ac_compile itself does not contain backslashes and begins
11280   # with a dollar sign (not a hyphen), so the echo should work correctly.
11281   lt_compile=`echo "$ac_compile" | $SED \
11282   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11283   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11284   -e 's:$: $lt_compiler_flag:'`
11285   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11286   (eval "$lt_compile" 2>out/conftest.err)
11287   ac_status=$?
11288   cat out/conftest.err >&5
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11291   then
11292     # The compiler can only warn and ignore the option if not recognized
11293     # So say no if there are warnings
11294     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11295     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11296     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11297       lt_cv_prog_compiler_c_o=yes
11298     fi
11299   fi
11300   chmod u+w . 2>&5
11301   $RM conftest*
11302   # SGI C++ compiler will create directory out/ii_files/ for
11303   # template instantiation
11304   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11305   $RM out/* && rmdir out
11306   cd ..
11307   $RM -r conftest
11308   $RM conftest*
11309
11310fi
11311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11312printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11313
11314
11315
11316
11317
11318
11319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11320printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11321if test ${lt_cv_prog_compiler_c_o+y}
11322then :
11323  printf %s "(cached) " >&6
11324else $as_nop
11325  lt_cv_prog_compiler_c_o=no
11326   $RM -r conftest 2>/dev/null
11327   mkdir conftest
11328   cd conftest
11329   mkdir out
11330   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11331
11332   lt_compiler_flag="-o out/conftest2.$ac_objext"
11333   # Insert the option either (1) after the last *FLAGS variable, or
11334   # (2) before a word containing "conftest.", or (3) at the end.
11335   # Note that $ac_compile itself does not contain backslashes and begins
11336   # with a dollar sign (not a hyphen), so the echo should work correctly.
11337   lt_compile=`echo "$ac_compile" | $SED \
11338   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11339   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11340   -e 's:$: $lt_compiler_flag:'`
11341   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11342   (eval "$lt_compile" 2>out/conftest.err)
11343   ac_status=$?
11344   cat out/conftest.err >&5
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11347   then
11348     # The compiler can only warn and ignore the option if not recognized
11349     # So say no if there are warnings
11350     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11351     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11352     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11353       lt_cv_prog_compiler_c_o=yes
11354     fi
11355   fi
11356   chmod u+w . 2>&5
11357   $RM conftest*
11358   # SGI C++ compiler will create directory out/ii_files/ for
11359   # template instantiation
11360   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11361   $RM out/* && rmdir out
11362   cd ..
11363   $RM -r conftest
11364   $RM conftest*
11365
11366fi
11367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11368printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11369
11370
11371
11372
11373hard_links=nottested
11374if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11375  # do not overwrite the value of need_locks provided by the user
11376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11377printf %s "checking if we can lock with hard links... " >&6; }
11378  hard_links=yes
11379  $RM conftest*
11380  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11381  touch conftest.a
11382  ln conftest.a conftest.b 2>&5 || hard_links=no
11383  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11385printf "%s\n" "$hard_links" >&6; }
11386  if test no = "$hard_links"; then
11387    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11388printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11389    need_locks=warn
11390  fi
11391else
11392  need_locks=no
11393fi
11394
11395
11396
11397
11398
11399
11400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11401printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11402
11403  runpath_var=
11404  allow_undefined_flag=
11405  always_export_symbols=no
11406  archive_cmds=
11407  archive_expsym_cmds=
11408  compiler_needs_object=no
11409  enable_shared_with_static_runtimes=no
11410  export_dynamic_flag_spec=
11411  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11412  hardcode_automatic=no
11413  hardcode_direct=no
11414  hardcode_direct_absolute=no
11415  hardcode_libdir_flag_spec=
11416  hardcode_libdir_separator=
11417  hardcode_minus_L=no
11418  hardcode_shlibpath_var=unsupported
11419  inherit_rpath=no
11420  link_all_deplibs=unknown
11421  module_cmds=
11422  module_expsym_cmds=
11423  old_archive_from_new_cmds=
11424  old_archive_from_expsyms_cmds=
11425  thread_safe_flag_spec=
11426  whole_archive_flag_spec=
11427  # include_expsyms should be a list of space-separated symbols to be *always*
11428  # included in the symbol list
11429  include_expsyms=
11430  # exclude_expsyms can be an extended regexp of symbols to exclude
11431  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11432  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11433  # as well as any symbol that contains 'd'.
11434  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11435  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11436  # platforms (ab)use it in PIC code, but their linkers get confused if
11437  # the symbol is explicitly referenced.  Since portable code cannot
11438  # rely on this symbol name, it's probably fine to never include it in
11439  # preloaded symbol tables.
11440  # Exclude shared library initialization/finalization symbols.
11441  extract_expsyms_cmds=
11442
11443  case $host_os in
11444  cygwin* | mingw* | pw32* | cegcc*)
11445    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11446    # When not using gcc, we currently assume that we are using
11447    # Microsoft Visual C++ or Intel C++ Compiler.
11448    if test yes != "$GCC"; then
11449      with_gnu_ld=no
11450    fi
11451    ;;
11452  interix*)
11453    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11454    with_gnu_ld=yes
11455    ;;
11456  openbsd* | bitrig*)
11457    with_gnu_ld=no
11458    ;;
11459  esac
11460
11461  ld_shlibs=yes
11462
11463  # On some targets, GNU ld is compatible enough with the native linker
11464  # that we're better off using the native interface for both.
11465  lt_use_gnu_ld_interface=no
11466  if test yes = "$with_gnu_ld"; then
11467    case $host_os in
11468      aix*)
11469	# The AIX port of GNU ld has always aspired to compatibility
11470	# with the native linker.  However, as the warning in the GNU ld
11471	# block says, versions before 2.19.5* couldn't really create working
11472	# shared libraries, regardless of the interface used.
11473	case `$LD -v 2>&1` in
11474	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11475	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11476	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11477	  *)
11478	    lt_use_gnu_ld_interface=yes
11479	    ;;
11480	esac
11481	;;
11482      *)
11483	lt_use_gnu_ld_interface=yes
11484	;;
11485    esac
11486  fi
11487
11488  if test yes = "$lt_use_gnu_ld_interface"; then
11489    # If archive_cmds runs LD, not CC, wlarc should be empty
11490    wlarc='$wl'
11491
11492    # Set some defaults for GNU ld with shared library support. These
11493    # are reset later if shared libraries are not supported. Putting them
11494    # here allows them to be overridden if necessary.
11495    runpath_var=LD_RUN_PATH
11496    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11497    export_dynamic_flag_spec='$wl--export-dynamic'
11498    # ancient GNU ld didn't support --whole-archive et. al.
11499    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11500      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11501    else
11502      whole_archive_flag_spec=
11503    fi
11504    supports_anon_versioning=no
11505    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11506      *GNU\ gold*) supports_anon_versioning=yes ;;
11507      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11508      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11509      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11510      *\ 2.11.*) ;; # other 2.11 versions
11511      *) supports_anon_versioning=yes ;;
11512    esac
11513
11514    # See if GNU ld supports shared libraries.
11515    case $host_os in
11516    aix[3-9]*)
11517      # On AIX/PPC, the GNU linker is very broken
11518      if test ia64 != "$host_cpu"; then
11519	ld_shlibs=no
11520	cat <<_LT_EOF 1>&2
11521
11522*** Warning: the GNU linker, at least up to release 2.19, is reported
11523*** to be unable to reliably create shared libraries on AIX.
11524*** Therefore, libtool is disabling shared libraries support.  If you
11525*** really care for shared libraries, you may want to install binutils
11526*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11527*** You will then need to restart the configuration process.
11528
11529_LT_EOF
11530      fi
11531      ;;
11532
11533    amigaos*)
11534      case $host_cpu in
11535      powerpc)
11536            # see comment about AmigaOS4 .so support
11537            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11538            archive_expsym_cmds=''
11539        ;;
11540      m68k)
11541            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)'
11542            hardcode_libdir_flag_spec='-L$libdir'
11543            hardcode_minus_L=yes
11544        ;;
11545      esac
11546      ;;
11547
11548    beos*)
11549      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11550	allow_undefined_flag=unsupported
11551	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11552	# support --undefined.  This deserves some investigation.  FIXME
11553	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11554      else
11555	ld_shlibs=no
11556      fi
11557      ;;
11558
11559    cygwin* | mingw* | pw32* | cegcc*)
11560      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11561      # as there is no search path for DLLs.
11562      hardcode_libdir_flag_spec='-L$libdir'
11563      export_dynamic_flag_spec='$wl--export-all-symbols'
11564      allow_undefined_flag=unsupported
11565      always_export_symbols=no
11566      enable_shared_with_static_runtimes=yes
11567      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'
11568      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11569
11570      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11571        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11572	# If the export-symbols file already is a .def file, use it as
11573	# is; otherwise, prepend EXPORTS...
11574	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11575          cp $export_symbols $output_objdir/$soname.def;
11576        else
11577          echo EXPORTS > $output_objdir/$soname.def;
11578          cat $export_symbols >> $output_objdir/$soname.def;
11579        fi~
11580        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11581      else
11582	ld_shlibs=no
11583      fi
11584      ;;
11585
11586    haiku*)
11587      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11588      link_all_deplibs=yes
11589      ;;
11590
11591    os2*)
11592      hardcode_libdir_flag_spec='-L$libdir'
11593      hardcode_minus_L=yes
11594      allow_undefined_flag=unsupported
11595      shrext_cmds=.dll
11596      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11597	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11598	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11599	$ECHO EXPORTS >> $output_objdir/$libname.def~
11600	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11601	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11602	emximp -o $lib $output_objdir/$libname.def'
11603      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11604	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11605	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11606	$ECHO EXPORTS >> $output_objdir/$libname.def~
11607	prefix_cmds="$SED"~
11608	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11609	  prefix_cmds="$prefix_cmds -e 1d";
11610	fi~
11611	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11612	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11613	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11614	emximp -o $lib $output_objdir/$libname.def'
11615      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11616      enable_shared_with_static_runtimes=yes
11617      file_list_spec='@'
11618      ;;
11619
11620    interix[3-9]*)
11621      hardcode_direct=no
11622      hardcode_shlibpath_var=no
11623      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11624      export_dynamic_flag_spec='$wl-E'
11625      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11626      # Instead, shared libraries are loaded at an image base (0x10000000 by
11627      # default) and relocated if they conflict, which is a slow very memory
11628      # consuming and fragmenting process.  To avoid this, we pick a random,
11629      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11630      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11631      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11632      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'
11633      ;;
11634
11635    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11636      tmp_diet=no
11637      if test linux-dietlibc = "$host_os"; then
11638	case $cc_basename in
11639	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11640	esac
11641      fi
11642      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11643	 && test no = "$tmp_diet"
11644      then
11645	tmp_addflag=' $pic_flag'
11646	tmp_sharedflag='-shared'
11647	case $cc_basename,$host_cpu in
11648        pgcc*)				# Portland Group C compiler
11649	  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'
11650	  tmp_addflag=' $pic_flag'
11651	  ;;
11652	pgf77* | pgf90* | pgf95* | pgfortran*)
11653					# Portland Group f77 and f90 compilers
11654	  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'
11655	  tmp_addflag=' $pic_flag -Mnomain' ;;
11656	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11657	  tmp_addflag=' -i_dynamic' ;;
11658	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11659	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11660	ifc* | ifort*)			# Intel Fortran compiler
11661	  tmp_addflag=' -nofor_main' ;;
11662	lf95*)				# Lahey Fortran 8.1
11663	  whole_archive_flag_spec=
11664	  tmp_sharedflag='--shared' ;;
11665        nagfor*)                        # NAGFOR 5.3
11666          tmp_sharedflag='-Wl,-shared' ;;
11667	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11668	  tmp_sharedflag='-qmkshrobj'
11669	  tmp_addflag= ;;
11670	nvcc*)	# Cuda Compiler Driver 2.2
11671	  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'
11672	  compiler_needs_object=yes
11673	  ;;
11674	esac
11675	case `$CC -V 2>&1 | $SED 5q` in
11676	*Sun\ C*)			# Sun C 5.9
11677	  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'
11678	  compiler_needs_object=yes
11679	  tmp_sharedflag='-G' ;;
11680	*Sun\ F*)			# Sun Fortran 8.3
11681	  tmp_sharedflag='-G' ;;
11682	esac
11683	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11684
11685        if test yes = "$supports_anon_versioning"; then
11686          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11687            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11688            echo "local: *; };" >> $output_objdir/$libname.ver~
11689            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11690        fi
11691
11692	case $cc_basename in
11693	tcc*)
11694	  export_dynamic_flag_spec='-rdynamic'
11695	  ;;
11696	xlf* | bgf* | bgxlf* | mpixlf*)
11697	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11698	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11699	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11700	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11701	  if test yes = "$supports_anon_versioning"; then
11702	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11703              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11704              echo "local: *; };" >> $output_objdir/$libname.ver~
11705              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11706	  fi
11707	  ;;
11708	esac
11709      else
11710        ld_shlibs=no
11711      fi
11712      ;;
11713
11714    netbsd*)
11715      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11716	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11717	wlarc=
11718      else
11719	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11720	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11721      fi
11722      ;;
11723
11724    solaris*)
11725      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11726	ld_shlibs=no
11727	cat <<_LT_EOF 1>&2
11728
11729*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11730*** create shared libraries on Solaris systems.  Therefore, libtool
11731*** is disabling shared libraries support.  We urge you to upgrade GNU
11732*** binutils to release 2.9.1 or newer.  Another option is to modify
11733*** your PATH or compiler configuration so that the native linker is
11734*** used, and then restart.
11735
11736_LT_EOF
11737      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11738	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11739	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11740      else
11741	ld_shlibs=no
11742      fi
11743      ;;
11744
11745    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11746      case `$LD -v 2>&1` in
11747        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11748	ld_shlibs=no
11749	cat <<_LT_EOF 1>&2
11750
11751*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11752*** reliably create shared libraries on SCO systems.  Therefore, libtool
11753*** is disabling shared libraries support.  We urge you to upgrade GNU
11754*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11755*** your PATH or compiler configuration so that the native linker is
11756*** used, and then restart.
11757
11758_LT_EOF
11759	;;
11760	*)
11761	  # For security reasons, it is highly recommended that you always
11762	  # use absolute paths for naming shared libraries, and exclude the
11763	  # DT_RUNPATH tag from executables and libraries.  But doing so
11764	  # requires that you compile everything twice, which is a pain.
11765	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11766	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11767	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11768	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11769	  else
11770	    ld_shlibs=no
11771	  fi
11772	;;
11773      esac
11774      ;;
11775
11776    sunos4*)
11777      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11778      wlarc=
11779      hardcode_direct=yes
11780      hardcode_shlibpath_var=no
11781      ;;
11782
11783    *)
11784      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11785	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11786	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11787      else
11788	ld_shlibs=no
11789      fi
11790      ;;
11791    esac
11792
11793    if test no = "$ld_shlibs"; then
11794      runpath_var=
11795      hardcode_libdir_flag_spec=
11796      export_dynamic_flag_spec=
11797      whole_archive_flag_spec=
11798    fi
11799  else
11800    # PORTME fill in a description of your system's linker (not GNU ld)
11801    case $host_os in
11802    aix3*)
11803      allow_undefined_flag=unsupported
11804      always_export_symbols=yes
11805      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'
11806      # Note: this linker hardcodes the directories in LIBPATH if there
11807      # are no directories specified by -L.
11808      hardcode_minus_L=yes
11809      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11810	# Neither direct hardcoding nor static linking is supported with a
11811	# broken collect2.
11812	hardcode_direct=unsupported
11813      fi
11814      ;;
11815
11816    aix[4-9]*)
11817      if test ia64 = "$host_cpu"; then
11818	# On IA64, the linker does run time linking by default, so we don't
11819	# have to do anything special.
11820	aix_use_runtimelinking=no
11821	exp_sym_flag='-Bexport'
11822	no_entry_flag=
11823      else
11824	# If we're using GNU nm, then we don't want the "-C" option.
11825	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11826	# Without the "-l" option, or with the "-B" option, AIX nm treats
11827	# weak defined symbols like other global defined symbols, whereas
11828	# GNU nm marks them as "W".
11829	# While the 'weak' keyword is ignored in the Export File, we need
11830	# it in the Import File for the 'aix-soname' feature, so we have
11831	# to replace the "-B" option with "-P" for AIX nm.
11832	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11833	  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'
11834	else
11835	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11836	fi
11837	aix_use_runtimelinking=no
11838
11839	# Test if we are trying to use run time linking or normal
11840	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11841	# have runtime linking enabled, and use it for executables.
11842	# For shared libraries, we enable/disable runtime linking
11843	# depending on the kind of the shared library created -
11844	# when "with_aix_soname,aix_use_runtimelinking" is:
11845	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11846	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11847	#            lib.a           static archive
11848	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11849	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11850	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11851	#            lib.a(lib.so.V) shared, rtl:no
11852	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11853	#            lib.a           static archive
11854	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11855	  for ld_flag in $LDFLAGS; do
11856	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11857	    aix_use_runtimelinking=yes
11858	    break
11859	  fi
11860	  done
11861	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11862	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11863	    # so we don't have lib.a shared libs to link our executables.
11864	    # We have to force runtime linking in this case.
11865	    aix_use_runtimelinking=yes
11866	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11867	  fi
11868	  ;;
11869	esac
11870
11871	exp_sym_flag='-bexport'
11872	no_entry_flag='-bnoentry'
11873      fi
11874
11875      # When large executables or shared objects are built, AIX ld can
11876      # have problems creating the table of contents.  If linking a library
11877      # or program results in "error TOC overflow" add -mminimal-toc to
11878      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11879      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11880
11881      archive_cmds=''
11882      hardcode_direct=yes
11883      hardcode_direct_absolute=yes
11884      hardcode_libdir_separator=':'
11885      link_all_deplibs=yes
11886      file_list_spec='$wl-f,'
11887      case $with_aix_soname,$aix_use_runtimelinking in
11888      aix,*) ;; # traditional, no import file
11889      svr4,* | *,yes) # use import file
11890	# The Import File defines what to hardcode.
11891	hardcode_direct=no
11892	hardcode_direct_absolute=no
11893	;;
11894      esac
11895
11896      if test yes = "$GCC"; then
11897	case $host_os in aix4.[012]|aix4.[012].*)
11898	# We only want to do this on AIX 4.2 and lower, the check
11899	# below for broken collect2 doesn't work under 4.3+
11900	  collect2name=`$CC -print-prog-name=collect2`
11901	  if test -f "$collect2name" &&
11902	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11903	  then
11904	  # We have reworked collect2
11905	  :
11906	  else
11907	  # We have old collect2
11908	  hardcode_direct=unsupported
11909	  # It fails to find uninstalled libraries when the uninstalled
11910	  # path is not listed in the libpath.  Setting hardcode_minus_L
11911	  # to unsupported forces relinking
11912	  hardcode_minus_L=yes
11913	  hardcode_libdir_flag_spec='-L$libdir'
11914	  hardcode_libdir_separator=
11915	  fi
11916	  ;;
11917	esac
11918	shared_flag='-shared'
11919	if test yes = "$aix_use_runtimelinking"; then
11920	  shared_flag="$shared_flag "'$wl-G'
11921	fi
11922	# Need to ensure runtime linking is disabled for the traditional
11923	# shared library, or the linker may eventually find shared libraries
11924	# /with/ Import File - we do not want to mix them.
11925	shared_flag_aix='-shared'
11926	shared_flag_svr4='-shared $wl-G'
11927      else
11928	# not using gcc
11929	if test ia64 = "$host_cpu"; then
11930	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11931	# chokes on -Wl,-G. The following line is correct:
11932	  shared_flag='-G'
11933	else
11934	  if test yes = "$aix_use_runtimelinking"; then
11935	    shared_flag='$wl-G'
11936	  else
11937	    shared_flag='$wl-bM:SRE'
11938	  fi
11939	  shared_flag_aix='$wl-bM:SRE'
11940	  shared_flag_svr4='$wl-G'
11941	fi
11942      fi
11943
11944      export_dynamic_flag_spec='$wl-bexpall'
11945      # It seems that -bexpall does not export symbols beginning with
11946      # underscore (_), so it is better to generate a list of symbols to export.
11947      always_export_symbols=yes
11948      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11949	# Warning - without using the other runtime loading flags (-brtl),
11950	# -berok will link without error, but may produce a broken library.
11951	allow_undefined_flag='-berok'
11952        # Determine the default libpath from the value encoded in an
11953        # empty executable.
11954        if test set = "${lt_cv_aix_libpath+set}"; then
11955  aix_libpath=$lt_cv_aix_libpath
11956else
11957  if test ${lt_cv_aix_libpath_+y}
11958then :
11959  printf %s "(cached) " >&6
11960else $as_nop
11961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962/* end confdefs.h.  */
11963
11964int
11965main (void)
11966{
11967
11968  ;
11969  return 0;
11970}
11971_ACEOF
11972if ac_fn_c_try_link "$LINENO"
11973then :
11974
11975  lt_aix_libpath_sed='
11976      /Import File Strings/,/^$/ {
11977	  /^0/ {
11978	      s/^0  *\([^ ]*\) *$/\1/
11979	      p
11980	  }
11981      }'
11982  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11983  # Check for a 64-bit object if we didn't find anything.
11984  if test -z "$lt_cv_aix_libpath_"; then
11985    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11986  fi
11987fi
11988rm -f core conftest.err conftest.$ac_objext conftest.beam \
11989    conftest$ac_exeext conftest.$ac_ext
11990  if test -z "$lt_cv_aix_libpath_"; then
11991    lt_cv_aix_libpath_=/usr/lib:/lib
11992  fi
11993
11994fi
11995
11996  aix_libpath=$lt_cv_aix_libpath_
11997fi
11998
11999        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12000        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
12001      else
12002	if test ia64 = "$host_cpu"; then
12003	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12004	  allow_undefined_flag="-z nodefs"
12005	  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"
12006	else
12007	 # Determine the default libpath from the value encoded in an
12008	 # empty executable.
12009	 if test set = "${lt_cv_aix_libpath+set}"; then
12010  aix_libpath=$lt_cv_aix_libpath
12011else
12012  if test ${lt_cv_aix_libpath_+y}
12013then :
12014  printf %s "(cached) " >&6
12015else $as_nop
12016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017/* end confdefs.h.  */
12018
12019int
12020main (void)
12021{
12022
12023  ;
12024  return 0;
12025}
12026_ACEOF
12027if ac_fn_c_try_link "$LINENO"
12028then :
12029
12030  lt_aix_libpath_sed='
12031      /Import File Strings/,/^$/ {
12032	  /^0/ {
12033	      s/^0  *\([^ ]*\) *$/\1/
12034	      p
12035	  }
12036      }'
12037  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12038  # Check for a 64-bit object if we didn't find anything.
12039  if test -z "$lt_cv_aix_libpath_"; then
12040    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12041  fi
12042fi
12043rm -f core conftest.err conftest.$ac_objext conftest.beam \
12044    conftest$ac_exeext conftest.$ac_ext
12045  if test -z "$lt_cv_aix_libpath_"; then
12046    lt_cv_aix_libpath_=/usr/lib:/lib
12047  fi
12048
12049fi
12050
12051  aix_libpath=$lt_cv_aix_libpath_
12052fi
12053
12054	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12055	  # Warning - without using the other run time loading flags,
12056	  # -berok will link without error, but may produce a broken library.
12057	  no_undefined_flag=' $wl-bernotok'
12058	  allow_undefined_flag=' $wl-berok'
12059	  if test yes = "$with_gnu_ld"; then
12060	    # We only use this code for GNU lds that support --whole-archive.
12061	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12062	  else
12063	    # Exported symbols can be pulled into shared objects from archives
12064	    whole_archive_flag_spec='$convenience'
12065	  fi
12066	  archive_cmds_need_lc=yes
12067	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12068	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12069	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12070	  if test svr4 != "$with_aix_soname"; then
12071	    # This is similar to how AIX traditionally builds its shared libraries.
12072	    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'
12073	  fi
12074	  if test aix != "$with_aix_soname"; then
12075	    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'
12076	  else
12077	    # used by -dlpreopen to get the symbols
12078	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12079	  fi
12080	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12081	fi
12082      fi
12083      ;;
12084
12085    amigaos*)
12086      case $host_cpu in
12087      powerpc)
12088            # see comment about AmigaOS4 .so support
12089            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12090            archive_expsym_cmds=''
12091        ;;
12092      m68k)
12093            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)'
12094            hardcode_libdir_flag_spec='-L$libdir'
12095            hardcode_minus_L=yes
12096        ;;
12097      esac
12098      ;;
12099
12100    bsdi[45]*)
12101      export_dynamic_flag_spec=-rdynamic
12102      ;;
12103
12104    cygwin* | mingw* | pw32* | cegcc*)
12105      # When not using gcc, we currently assume that we are using
12106      # Microsoft Visual C++ or Intel C++ Compiler.
12107      # hardcode_libdir_flag_spec is actually meaningless, as there is
12108      # no search path for DLLs.
12109      case $cc_basename in
12110      cl* | icl*)
12111	# Native MSVC or ICC
12112	hardcode_libdir_flag_spec=' '
12113	allow_undefined_flag=unsupported
12114	always_export_symbols=yes
12115	file_list_spec='@'
12116	# Tell ltmain to make .lib files, not .a files.
12117	libext=lib
12118	# Tell ltmain to make .dll files, not .so files.
12119	shrext_cmds=.dll
12120	# FIXME: Setting linknames here is a bad hack.
12121	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12122	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12123            cp "$export_symbols" "$output_objdir/$soname.def";
12124            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12125          else
12126            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12127          fi~
12128          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12129          linknames='
12130	# The linker will not automatically build a static lib if we build a DLL.
12131	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12132	enable_shared_with_static_runtimes=yes
12133	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12134	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12135	# Don't use ranlib
12136	old_postinstall_cmds='chmod 644 $oldlib'
12137	postlink_cmds='lt_outputfile="@OUTPUT@"~
12138          lt_tool_outputfile="@TOOL_OUTPUT@"~
12139          case $lt_outputfile in
12140            *.exe|*.EXE) ;;
12141            *)
12142              lt_outputfile=$lt_outputfile.exe
12143              lt_tool_outputfile=$lt_tool_outputfile.exe
12144              ;;
12145          esac~
12146          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12147            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12148            $RM "$lt_outputfile.manifest";
12149          fi'
12150	;;
12151      *)
12152	# Assume MSVC and ICC wrapper
12153	hardcode_libdir_flag_spec=' '
12154	allow_undefined_flag=unsupported
12155	# Tell ltmain to make .lib files, not .a files.
12156	libext=lib
12157	# Tell ltmain to make .dll files, not .so files.
12158	shrext_cmds=.dll
12159	# FIXME: Setting linknames here is a bad hack.
12160	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12161	# The linker will automatically build a .lib file if we build a DLL.
12162	old_archive_from_new_cmds='true'
12163	# FIXME: Should let the user specify the lib program.
12164	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12165	enable_shared_with_static_runtimes=yes
12166	;;
12167      esac
12168      ;;
12169
12170    darwin* | rhapsody*)
12171
12172
12173  archive_cmds_need_lc=no
12174  hardcode_direct=no
12175  hardcode_automatic=yes
12176  hardcode_shlibpath_var=unsupported
12177  if test yes = "$lt_cv_ld_force_load"; then
12178    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\"`'
12179
12180  else
12181    whole_archive_flag_spec=''
12182  fi
12183  link_all_deplibs=yes
12184  allow_undefined_flag=$_lt_dar_allow_undefined
12185  case $cc_basename in
12186     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12187     *) _lt_dar_can_shared=$GCC ;;
12188  esac
12189  if test yes = "$_lt_dar_can_shared"; then
12190    output_verbose_link_cmd=func_echo_all
12191    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12192    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12193    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"
12194    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"
12195
12196  else
12197  ld_shlibs=no
12198  fi
12199
12200      ;;
12201
12202    dgux*)
12203      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12204      hardcode_libdir_flag_spec='-L$libdir'
12205      hardcode_shlibpath_var=no
12206      ;;
12207
12208    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12209    # support.  Future versions do this automatically, but an explicit c++rt0.o
12210    # does not break anything, and helps significantly (at the cost of a little
12211    # extra space).
12212    freebsd2.2*)
12213      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12214      hardcode_libdir_flag_spec='-R$libdir'
12215      hardcode_direct=yes
12216      hardcode_shlibpath_var=no
12217      ;;
12218
12219    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12220    freebsd2.*)
12221      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12222      hardcode_direct=yes
12223      hardcode_minus_L=yes
12224      hardcode_shlibpath_var=no
12225      ;;
12226
12227    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12228    freebsd* | dragonfly* | midnightbsd*)
12229      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12230      hardcode_libdir_flag_spec='-R$libdir'
12231      hardcode_direct=yes
12232      hardcode_shlibpath_var=no
12233      ;;
12234
12235    hpux9*)
12236      if test yes = "$GCC"; then
12237	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'
12238      else
12239	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'
12240      fi
12241      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12242      hardcode_libdir_separator=:
12243      hardcode_direct=yes
12244
12245      # hardcode_minus_L: Not really in the search PATH,
12246      # but as the default location of the library.
12247      hardcode_minus_L=yes
12248      export_dynamic_flag_spec='$wl-E'
12249      ;;
12250
12251    hpux10*)
12252      if test yes,no = "$GCC,$with_gnu_ld"; then
12253	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12254      else
12255	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12256      fi
12257      if test no = "$with_gnu_ld"; then
12258	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12259	hardcode_libdir_separator=:
12260	hardcode_direct=yes
12261	hardcode_direct_absolute=yes
12262	export_dynamic_flag_spec='$wl-E'
12263	# hardcode_minus_L: Not really in the search PATH,
12264	# but as the default location of the library.
12265	hardcode_minus_L=yes
12266      fi
12267      ;;
12268
12269    hpux11*)
12270      if test yes,no = "$GCC,$with_gnu_ld"; then
12271	case $host_cpu in
12272	hppa*64*)
12273	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12274	  ;;
12275	ia64*)
12276	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12277	  ;;
12278	*)
12279	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12280	  ;;
12281	esac
12282      else
12283	case $host_cpu in
12284	hppa*64*)
12285	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12286	  ;;
12287	ia64*)
12288	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12289	  ;;
12290	*)
12291
12292	  # Older versions of the 11.00 compiler do not understand -b yet
12293	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12294	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12295printf %s "checking if $CC understands -b... " >&6; }
12296if test ${lt_cv_prog_compiler__b+y}
12297then :
12298  printf %s "(cached) " >&6
12299else $as_nop
12300  lt_cv_prog_compiler__b=no
12301   save_LDFLAGS=$LDFLAGS
12302   LDFLAGS="$LDFLAGS -b"
12303   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12304   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12305     # The linker can only warn and ignore the option if not recognized
12306     # So say no if there are warnings
12307     if test -s conftest.err; then
12308       # Append any errors to the config.log.
12309       cat conftest.err 1>&5
12310       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12311       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12312       if diff conftest.exp conftest.er2 >/dev/null; then
12313         lt_cv_prog_compiler__b=yes
12314       fi
12315     else
12316       lt_cv_prog_compiler__b=yes
12317     fi
12318   fi
12319   $RM -r conftest*
12320   LDFLAGS=$save_LDFLAGS
12321
12322fi
12323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12324printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12325
12326if test yes = "$lt_cv_prog_compiler__b"; then
12327    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12328else
12329    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12330fi
12331
12332	  ;;
12333	esac
12334      fi
12335      if test no = "$with_gnu_ld"; then
12336	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12337	hardcode_libdir_separator=:
12338
12339	case $host_cpu in
12340	hppa*64*|ia64*)
12341	  hardcode_direct=no
12342	  hardcode_shlibpath_var=no
12343	  ;;
12344	*)
12345	  hardcode_direct=yes
12346	  hardcode_direct_absolute=yes
12347	  export_dynamic_flag_spec='$wl-E'
12348
12349	  # hardcode_minus_L: Not really in the search PATH,
12350	  # but as the default location of the library.
12351	  hardcode_minus_L=yes
12352	  ;;
12353	esac
12354      fi
12355      ;;
12356
12357    irix5* | irix6* | nonstopux*)
12358      if test yes = "$GCC"; then
12359	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'
12360	# Try to use the -exported_symbol ld option, if it does not
12361	# work, assume that -exports_file does not work either and
12362	# implicitly export all symbols.
12363	# This should be the same for all languages, so no per-tag cache variable.
12364	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12365printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12366if test ${lt_cv_irix_exported_symbol+y}
12367then :
12368  printf %s "(cached) " >&6
12369else $as_nop
12370  save_LDFLAGS=$LDFLAGS
12371	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12372	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373/* end confdefs.h.  */
12374int foo (void) { return 0; }
12375_ACEOF
12376if ac_fn_c_try_link "$LINENO"
12377then :
12378  lt_cv_irix_exported_symbol=yes
12379else $as_nop
12380  lt_cv_irix_exported_symbol=no
12381fi
12382rm -f core conftest.err conftest.$ac_objext conftest.beam \
12383    conftest$ac_exeext conftest.$ac_ext
12384           LDFLAGS=$save_LDFLAGS
12385fi
12386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12387printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12388	if test yes = "$lt_cv_irix_exported_symbol"; then
12389          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'
12390	fi
12391      else
12392	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'
12393	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'
12394      fi
12395      archive_cmds_need_lc='no'
12396      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12397      hardcode_libdir_separator=:
12398      inherit_rpath=yes
12399      link_all_deplibs=yes
12400      ;;
12401
12402    linux*)
12403      case $cc_basename in
12404      tcc*)
12405	# Fabrice Bellard et al's Tiny C Compiler
12406	ld_shlibs=yes
12407	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12408	;;
12409      esac
12410      ;;
12411
12412    netbsd*)
12413      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12414	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12415      else
12416	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12417      fi
12418      hardcode_libdir_flag_spec='-R$libdir'
12419      hardcode_direct=yes
12420      hardcode_shlibpath_var=no
12421      ;;
12422
12423    newsos6)
12424      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12425      hardcode_direct=yes
12426      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12427      hardcode_libdir_separator=:
12428      hardcode_shlibpath_var=no
12429      ;;
12430
12431    *nto* | *qnx*)
12432      ;;
12433
12434    openbsd* | bitrig*)
12435      if test -f /usr/libexec/ld.so; then
12436	hardcode_direct=yes
12437	hardcode_shlibpath_var=no
12438	hardcode_direct_absolute=yes
12439	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12440	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12441	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12442	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12443	  export_dynamic_flag_spec='$wl-E'
12444	else
12445	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12446	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12447	fi
12448      else
12449	ld_shlibs=no
12450      fi
12451      ;;
12452
12453    os2*)
12454      hardcode_libdir_flag_spec='-L$libdir'
12455      hardcode_minus_L=yes
12456      allow_undefined_flag=unsupported
12457      shrext_cmds=.dll
12458      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12459	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12460	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12461	$ECHO EXPORTS >> $output_objdir/$libname.def~
12462	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12463	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12464	emximp -o $lib $output_objdir/$libname.def'
12465      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12466	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12467	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12468	$ECHO EXPORTS >> $output_objdir/$libname.def~
12469	prefix_cmds="$SED"~
12470	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12471	  prefix_cmds="$prefix_cmds -e 1d";
12472	fi~
12473	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12474	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12475	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12476	emximp -o $lib $output_objdir/$libname.def'
12477      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12478      enable_shared_with_static_runtimes=yes
12479      file_list_spec='@'
12480      ;;
12481
12482    osf3*)
12483      if test yes = "$GCC"; then
12484	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12485	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'
12486      else
12487	allow_undefined_flag=' -expect_unresolved \*'
12488	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'
12489      fi
12490      archive_cmds_need_lc='no'
12491      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12492      hardcode_libdir_separator=:
12493      ;;
12494
12495    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12496      if test yes = "$GCC"; then
12497	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12498	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'
12499	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12500      else
12501	allow_undefined_flag=' -expect_unresolved \*'
12502	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'
12503	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~
12504          $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'
12505
12506	# Both c and cxx compiler support -rpath directly
12507	hardcode_libdir_flag_spec='-rpath $libdir'
12508      fi
12509      archive_cmds_need_lc='no'
12510      hardcode_libdir_separator=:
12511      ;;
12512
12513    solaris*)
12514      no_undefined_flag=' -z defs'
12515      if test yes = "$GCC"; then
12516	wlarc='$wl'
12517	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12518	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12519          $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'
12520      else
12521	case `$CC -V 2>&1` in
12522	*"Compilers 5.0"*)
12523	  wlarc=''
12524	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12525	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12526            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12527	  ;;
12528	*)
12529	  wlarc='$wl'
12530	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12531	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12532            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12533	  ;;
12534	esac
12535      fi
12536      hardcode_libdir_flag_spec='-R$libdir'
12537      hardcode_shlibpath_var=no
12538      case $host_os in
12539      solaris2.[0-5] | solaris2.[0-5].*) ;;
12540      *)
12541	# The compiler driver will combine and reorder linker options,
12542	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12543	# but is careful enough not to reorder.
12544	# Supported since Solaris 2.6 (maybe 2.5.1?)
12545	if test yes = "$GCC"; then
12546	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12547	else
12548	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12549	fi
12550	;;
12551      esac
12552      link_all_deplibs=yes
12553      ;;
12554
12555    sunos4*)
12556      if test sequent = "$host_vendor"; then
12557	# Use $CC to link under sequent, because it throws in some extra .o
12558	# files that make .init and .fini sections work.
12559	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12560      else
12561	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12562      fi
12563      hardcode_libdir_flag_spec='-L$libdir'
12564      hardcode_direct=yes
12565      hardcode_minus_L=yes
12566      hardcode_shlibpath_var=no
12567      ;;
12568
12569    sysv4)
12570      case $host_vendor in
12571	sni)
12572	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12573	  hardcode_direct=yes # is this really true???
12574	;;
12575	siemens)
12576	  ## LD is ld it makes a PLAMLIB
12577	  ## CC just makes a GrossModule.
12578	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12579	  reload_cmds='$CC -r -o $output$reload_objs'
12580	  hardcode_direct=no
12581        ;;
12582	motorola)
12583	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12584	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12585	;;
12586      esac
12587      runpath_var='LD_RUN_PATH'
12588      hardcode_shlibpath_var=no
12589      ;;
12590
12591    sysv4.3*)
12592      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12593      hardcode_shlibpath_var=no
12594      export_dynamic_flag_spec='-Bexport'
12595      ;;
12596
12597    sysv4*MP*)
12598      if test -d /usr/nec; then
12599	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12600	hardcode_shlibpath_var=no
12601	runpath_var=LD_RUN_PATH
12602	hardcode_runpath_var=yes
12603	ld_shlibs=yes
12604      fi
12605      ;;
12606
12607    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12608      no_undefined_flag='$wl-z,text'
12609      archive_cmds_need_lc=no
12610      hardcode_shlibpath_var=no
12611      runpath_var='LD_RUN_PATH'
12612
12613      if test yes = "$GCC"; then
12614	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12615	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12616      else
12617	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12618	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12619      fi
12620      ;;
12621
12622    sysv5* | sco3.2v5* | sco5v6*)
12623      # Note: We CANNOT use -z defs as we might desire, because we do not
12624      # link with -lc, and that would cause any symbols used from libc to
12625      # always be unresolved, which means just about no library would
12626      # ever link correctly.  If we're not using GNU ld we use -z text
12627      # though, which does catch some bad symbols but isn't as heavy-handed
12628      # as -z defs.
12629      no_undefined_flag='$wl-z,text'
12630      allow_undefined_flag='$wl-z,nodefs'
12631      archive_cmds_need_lc=no
12632      hardcode_shlibpath_var=no
12633      hardcode_libdir_flag_spec='$wl-R,$libdir'
12634      hardcode_libdir_separator=':'
12635      link_all_deplibs=yes
12636      export_dynamic_flag_spec='$wl-Bexport'
12637      runpath_var='LD_RUN_PATH'
12638
12639      if test yes = "$GCC"; then
12640	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12641	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12642      else
12643	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12644	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12645      fi
12646      ;;
12647
12648    uts4*)
12649      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12650      hardcode_libdir_flag_spec='-L$libdir'
12651      hardcode_shlibpath_var=no
12652      ;;
12653
12654    *)
12655      ld_shlibs=no
12656      ;;
12657    esac
12658
12659    if test sni = "$host_vendor"; then
12660      case $host in
12661      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12662	export_dynamic_flag_spec='$wl-Blargedynsym'
12663	;;
12664      esac
12665    fi
12666  fi
12667
12668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12669printf "%s\n" "$ld_shlibs" >&6; }
12670test no = "$ld_shlibs" && can_build_shared=no
12671
12672with_gnu_ld=$with_gnu_ld
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688#
12689# Do we need to explicitly link libc?
12690#
12691case "x$archive_cmds_need_lc" in
12692x|xyes)
12693  # Assume -lc should be added
12694  archive_cmds_need_lc=yes
12695
12696  if test yes,yes = "$GCC,$enable_shared"; then
12697    case $archive_cmds in
12698    *'~'*)
12699      # FIXME: we may have to deal with multi-command sequences.
12700      ;;
12701    '$CC '*)
12702      # Test whether the compiler implicitly links with -lc since on some
12703      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12704      # to ld, don't add -lc before -lgcc.
12705      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12706printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12707if test ${lt_cv_archive_cmds_need_lc+y}
12708then :
12709  printf %s "(cached) " >&6
12710else $as_nop
12711  $RM conftest*
12712	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12713
12714	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12715  (eval $ac_compile) 2>&5
12716  ac_status=$?
12717  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718  test $ac_status = 0; } 2>conftest.err; then
12719	  soname=conftest
12720	  lib=conftest
12721	  libobjs=conftest.$ac_objext
12722	  deplibs=
12723	  wl=$lt_prog_compiler_wl
12724	  pic_flag=$lt_prog_compiler_pic
12725	  compiler_flags=-v
12726	  linker_flags=-v
12727	  verstring=
12728	  output_objdir=.
12729	  libname=conftest
12730	  lt_save_allow_undefined_flag=$allow_undefined_flag
12731	  allow_undefined_flag=
12732	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12733  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12734  ac_status=$?
12735  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12736  test $ac_status = 0; }
12737	  then
12738	    lt_cv_archive_cmds_need_lc=no
12739	  else
12740	    lt_cv_archive_cmds_need_lc=yes
12741	  fi
12742	  allow_undefined_flag=$lt_save_allow_undefined_flag
12743	else
12744	  cat conftest.err 1>&5
12745	fi
12746	$RM conftest*
12747
12748fi
12749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12750printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12751      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12752      ;;
12753    esac
12754  fi
12755  ;;
12756esac
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12910printf %s "checking dynamic linker characteristics... " >&6; }
12911
12912if test yes = "$GCC"; then
12913  case $host_os in
12914    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12915    *) lt_awk_arg='/^libraries:/' ;;
12916  esac
12917  case $host_os in
12918    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12919    *) lt_sed_strip_eq='s|=/|/|g' ;;
12920  esac
12921  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12922  case $lt_search_path_spec in
12923  *\;*)
12924    # if the path contains ";" then we assume it to be the separator
12925    # otherwise default to the standard path separator (i.e. ":") - it is
12926    # assumed that no part of a normal pathname contains ";" but that should
12927    # okay in the real world where ";" in dirpaths is itself problematic.
12928    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12929    ;;
12930  *)
12931    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12932    ;;
12933  esac
12934  # Ok, now we have the path, separated by spaces, we can step through it
12935  # and add multilib dir if necessary...
12936  lt_tmp_lt_search_path_spec=
12937  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12938  # ...but if some path component already ends with the multilib dir we assume
12939  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12940  case "$lt_multi_os_dir; $lt_search_path_spec " in
12941  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12942    lt_multi_os_dir=
12943    ;;
12944  esac
12945  for lt_sys_path in $lt_search_path_spec; do
12946    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12947      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12948    elif test -n "$lt_multi_os_dir"; then
12949      test -d "$lt_sys_path" && \
12950	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12951    fi
12952  done
12953  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12954BEGIN {RS = " "; FS = "/|\n";} {
12955  lt_foo = "";
12956  lt_count = 0;
12957  for (lt_i = NF; lt_i > 0; lt_i--) {
12958    if ($lt_i != "" && $lt_i != ".") {
12959      if ($lt_i == "..") {
12960        lt_count++;
12961      } else {
12962        if (lt_count == 0) {
12963          lt_foo = "/" $lt_i lt_foo;
12964        } else {
12965          lt_count--;
12966        }
12967      }
12968    }
12969  }
12970  if (lt_foo != "") { lt_freq[lt_foo]++; }
12971  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12972}'`
12973  # AWK program above erroneously prepends '/' to C:/dos/paths
12974  # for these hosts.
12975  case $host_os in
12976    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12977      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12978  esac
12979  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12980else
12981  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12982fi
12983library_names_spec=
12984libname_spec='lib$name'
12985soname_spec=
12986shrext_cmds=.so
12987postinstall_cmds=
12988postuninstall_cmds=
12989finish_cmds=
12990finish_eval=
12991shlibpath_var=
12992shlibpath_overrides_runpath=unknown
12993version_type=none
12994dynamic_linker="$host_os ld.so"
12995sys_lib_dlsearch_path_spec="/lib /usr/lib"
12996need_lib_prefix=unknown
12997hardcode_into_libs=no
12998
12999# when you set need_version to no, make sure it does not cause -set_version
13000# flags to be left without arguments
13001need_version=unknown
13002
13003
13004
13005case $host_os in
13006aix3*)
13007  version_type=linux # correct to gnu/linux during the next big refactor
13008  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13009  shlibpath_var=LIBPATH
13010
13011  # AIX 3 has no versioning support, so we append a major version to the name.
13012  soname_spec='$libname$release$shared_ext$major'
13013  ;;
13014
13015aix[4-9]*)
13016  version_type=linux # correct to gnu/linux during the next big refactor
13017  need_lib_prefix=no
13018  need_version=no
13019  hardcode_into_libs=yes
13020  if test ia64 = "$host_cpu"; then
13021    # AIX 5 supports IA64
13022    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13023    shlibpath_var=LD_LIBRARY_PATH
13024  else
13025    # With GCC up to 2.95.x, collect2 would create an import file
13026    # for dependence libraries.  The import file would start with
13027    # the line '#! .'.  This would cause the generated library to
13028    # depend on '.', always an invalid library.  This was fixed in
13029    # development snapshots of GCC prior to 3.0.
13030    case $host_os in
13031      aix4 | aix4.[01] | aix4.[01].*)
13032      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13033	   echo ' yes '
13034	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13035	:
13036      else
13037	can_build_shared=no
13038      fi
13039      ;;
13040    esac
13041    # Using Import Files as archive members, it is possible to support
13042    # filename-based versioning of shared library archives on AIX. While
13043    # this would work for both with and without runtime linking, it will
13044    # prevent static linking of such archives. So we do filename-based
13045    # shared library versioning with .so extension only, which is used
13046    # when both runtime linking and shared linking is enabled.
13047    # Unfortunately, runtime linking may impact performance, so we do
13048    # not want this to be the default eventually. Also, we use the
13049    # versioned .so libs for executables only if there is the -brtl
13050    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13051    # To allow for filename-based versioning support, we need to create
13052    # libNAME.so.V as an archive file, containing:
13053    # *) an Import File, referring to the versioned filename of the
13054    #    archive as well as the shared archive member, telling the
13055    #    bitwidth (32 or 64) of that shared object, and providing the
13056    #    list of exported symbols of that shared object, eventually
13057    #    decorated with the 'weak' keyword
13058    # *) the shared object with the F_LOADONLY flag set, to really avoid
13059    #    it being seen by the linker.
13060    # At run time we better use the real file rather than another symlink,
13061    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13062
13063    case $with_aix_soname,$aix_use_runtimelinking in
13064    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13065    # soname into executable. Probably we can add versioning support to
13066    # collect2, so additional links can be useful in future.
13067    aix,yes) # traditional libtool
13068      dynamic_linker='AIX unversionable lib.so'
13069      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13070      # instead of lib<name>.a to let people know that these are not
13071      # typical AIX shared libraries.
13072      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13073      ;;
13074    aix,no) # traditional AIX only
13075      dynamic_linker='AIX lib.a(lib.so.V)'
13076      # We preserve .a as extension for shared libraries through AIX4.2
13077      # and later when we are not doing run time linking.
13078      library_names_spec='$libname$release.a $libname.a'
13079      soname_spec='$libname$release$shared_ext$major'
13080      ;;
13081    svr4,*) # full svr4 only
13082      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13083      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13084      # We do not specify a path in Import Files, so LIBPATH fires.
13085      shlibpath_overrides_runpath=yes
13086      ;;
13087    *,yes) # both, prefer svr4
13088      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13089      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13090      # unpreferred sharedlib libNAME.a needs extra handling
13091      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"'
13092      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"'
13093      # We do not specify a path in Import Files, so LIBPATH fires.
13094      shlibpath_overrides_runpath=yes
13095      ;;
13096    *,no) # both, prefer aix
13097      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13098      library_names_spec='$libname$release.a $libname.a'
13099      soname_spec='$libname$release$shared_ext$major'
13100      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13101      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)'
13102      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"'
13103      ;;
13104    esac
13105    shlibpath_var=LIBPATH
13106  fi
13107  ;;
13108
13109amigaos*)
13110  case $host_cpu in
13111  powerpc)
13112    # Since July 2007 AmigaOS4 officially supports .so libraries.
13113    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13114    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13115    ;;
13116  m68k)
13117    library_names_spec='$libname.ixlibrary $libname.a'
13118    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13119    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'
13120    ;;
13121  esac
13122  ;;
13123
13124beos*)
13125  library_names_spec='$libname$shared_ext'
13126  dynamic_linker="$host_os ld.so"
13127  shlibpath_var=LIBRARY_PATH
13128  ;;
13129
13130bsdi[45]*)
13131  version_type=linux # correct to gnu/linux during the next big refactor
13132  need_version=no
13133  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13134  soname_spec='$libname$release$shared_ext$major'
13135  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13136  shlibpath_var=LD_LIBRARY_PATH
13137  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13138  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13139  # the default ld.so.conf also contains /usr/contrib/lib and
13140  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13141  # libtool to hard-code these into programs
13142  ;;
13143
13144cygwin* | mingw* | pw32* | cegcc*)
13145  version_type=windows
13146  shrext_cmds=.dll
13147  need_version=no
13148  need_lib_prefix=no
13149
13150  case $GCC,$cc_basename in
13151  yes,*)
13152    # gcc
13153    library_names_spec='$libname.dll.a'
13154    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13155    postinstall_cmds='base_file=`basename \$file`~
13156      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13157      dldir=$destdir/`dirname \$dlpath`~
13158      test -d \$dldir || mkdir -p \$dldir~
13159      $install_prog $dir/$dlname \$dldir/$dlname~
13160      chmod a+x \$dldir/$dlname~
13161      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13162        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13163      fi'
13164    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13165      dlpath=$dir/\$dldll~
13166       $RM \$dlpath'
13167    shlibpath_overrides_runpath=yes
13168
13169    case $host_os in
13170    cygwin*)
13171      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13172      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13173
13174      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13175      ;;
13176    mingw* | cegcc*)
13177      # MinGW DLLs use traditional 'lib' prefix
13178      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13179      ;;
13180    pw32*)
13181      # pw32 DLLs use 'pw' prefix rather than 'lib'
13182      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13183      ;;
13184    esac
13185    dynamic_linker='Win32 ld.exe'
13186    ;;
13187
13188  *,cl* | *,icl*)
13189    # Native MSVC or ICC
13190    libname_spec='$name'
13191    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13192    library_names_spec='$libname.dll.lib'
13193
13194    case $build_os in
13195    mingw*)
13196      sys_lib_search_path_spec=
13197      lt_save_ifs=$IFS
13198      IFS=';'
13199      for lt_path in $LIB
13200      do
13201        IFS=$lt_save_ifs
13202        # Let DOS variable expansion print the short 8.3 style file name.
13203        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13204        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13205      done
13206      IFS=$lt_save_ifs
13207      # Convert to MSYS style.
13208      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13209      ;;
13210    cygwin*)
13211      # Convert to unix form, then to dos form, then back to unix form
13212      # but this time dos style (no spaces!) so that the unix form looks
13213      # like /cygdrive/c/PROGRA~1:/cygdr...
13214      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13215      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13216      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13217      ;;
13218    *)
13219      sys_lib_search_path_spec=$LIB
13220      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13221        # It is most probably a Windows format PATH.
13222        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13223      else
13224        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13225      fi
13226      # FIXME: find the short name or the path components, as spaces are
13227      # common. (e.g. "Program Files" -> "PROGRA~1")
13228      ;;
13229    esac
13230
13231    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13232    postinstall_cmds='base_file=`basename \$file`~
13233      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13234      dldir=$destdir/`dirname \$dlpath`~
13235      test -d \$dldir || mkdir -p \$dldir~
13236      $install_prog $dir/$dlname \$dldir/$dlname'
13237    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13238      dlpath=$dir/\$dldll~
13239       $RM \$dlpath'
13240    shlibpath_overrides_runpath=yes
13241    dynamic_linker='Win32 link.exe'
13242    ;;
13243
13244  *)
13245    # Assume MSVC and ICC wrapper
13246    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13247    dynamic_linker='Win32 ld.exe'
13248    ;;
13249  esac
13250  # FIXME: first we should search . and the directory the executable is in
13251  shlibpath_var=PATH
13252  ;;
13253
13254darwin* | rhapsody*)
13255  dynamic_linker="$host_os dyld"
13256  version_type=darwin
13257  need_lib_prefix=no
13258  need_version=no
13259  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13260  soname_spec='$libname$release$major$shared_ext'
13261  shlibpath_overrides_runpath=yes
13262  shlibpath_var=DYLD_LIBRARY_PATH
13263  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13264
13265  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13266  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13267  ;;
13268
13269dgux*)
13270  version_type=linux # correct to gnu/linux during the next big refactor
13271  need_lib_prefix=no
13272  need_version=no
13273  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13274  soname_spec='$libname$release$shared_ext$major'
13275  shlibpath_var=LD_LIBRARY_PATH
13276  ;;
13277
13278freebsd* | dragonfly* | midnightbsd*)
13279  # DragonFly does not have aout.  When/if they implement a new
13280  # versioning mechanism, adjust this.
13281  if test -x /usr/bin/objformat; then
13282    objformat=`/usr/bin/objformat`
13283  else
13284    case $host_os in
13285    freebsd[23].*) objformat=aout ;;
13286    *) objformat=elf ;;
13287    esac
13288  fi
13289  version_type=freebsd-$objformat
13290  case $version_type in
13291    freebsd-elf*)
13292      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13293      soname_spec='$libname$release$shared_ext$major'
13294      need_version=no
13295      need_lib_prefix=no
13296      ;;
13297    freebsd-*)
13298      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13299      need_version=yes
13300      ;;
13301  esac
13302  shlibpath_var=LD_LIBRARY_PATH
13303  case $host_os in
13304  freebsd2.*)
13305    shlibpath_overrides_runpath=yes
13306    ;;
13307  freebsd3.[01]* | freebsdelf3.[01]*)
13308    shlibpath_overrides_runpath=yes
13309    hardcode_into_libs=yes
13310    ;;
13311  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13312  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13313    shlibpath_overrides_runpath=no
13314    hardcode_into_libs=yes
13315    ;;
13316  *) # from 4.6 on, and DragonFly
13317    shlibpath_overrides_runpath=yes
13318    hardcode_into_libs=yes
13319    ;;
13320  esac
13321  ;;
13322
13323haiku*)
13324  version_type=linux # correct to gnu/linux during the next big refactor
13325  need_lib_prefix=no
13326  need_version=no
13327  dynamic_linker="$host_os runtime_loader"
13328  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13329  soname_spec='$libname$release$shared_ext$major'
13330  shlibpath_var=LIBRARY_PATH
13331  shlibpath_overrides_runpath=no
13332  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13333  hardcode_into_libs=yes
13334  ;;
13335
13336hpux9* | hpux10* | hpux11*)
13337  # Give a soname corresponding to the major version so that dld.sl refuses to
13338  # link against other versions.
13339  version_type=sunos
13340  need_lib_prefix=no
13341  need_version=no
13342  case $host_cpu in
13343  ia64*)
13344    shrext_cmds='.so'
13345    hardcode_into_libs=yes
13346    dynamic_linker="$host_os dld.so"
13347    shlibpath_var=LD_LIBRARY_PATH
13348    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13349    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13350    soname_spec='$libname$release$shared_ext$major'
13351    if test 32 = "$HPUX_IA64_MODE"; then
13352      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13353      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13354    else
13355      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13356      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13357    fi
13358    ;;
13359  hppa*64*)
13360    shrext_cmds='.sl'
13361    hardcode_into_libs=yes
13362    dynamic_linker="$host_os dld.sl"
13363    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13364    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13365    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13366    soname_spec='$libname$release$shared_ext$major'
13367    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13368    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13369    ;;
13370  *)
13371    shrext_cmds='.sl'
13372    dynamic_linker="$host_os dld.sl"
13373    shlibpath_var=SHLIB_PATH
13374    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13375    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13376    soname_spec='$libname$release$shared_ext$major'
13377    ;;
13378  esac
13379  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13380  postinstall_cmds='chmod 555 $lib'
13381  # or fails outright, so override atomically:
13382  install_override_mode=555
13383  ;;
13384
13385interix[3-9]*)
13386  version_type=linux # correct to gnu/linux during the next big refactor
13387  need_lib_prefix=no
13388  need_version=no
13389  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13390  soname_spec='$libname$release$shared_ext$major'
13391  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13392  shlibpath_var=LD_LIBRARY_PATH
13393  shlibpath_overrides_runpath=no
13394  hardcode_into_libs=yes
13395  ;;
13396
13397irix5* | irix6* | nonstopux*)
13398  case $host_os in
13399    nonstopux*) version_type=nonstopux ;;
13400    *)
13401	if test yes = "$lt_cv_prog_gnu_ld"; then
13402		version_type=linux # correct to gnu/linux during the next big refactor
13403	else
13404		version_type=irix
13405	fi ;;
13406  esac
13407  need_lib_prefix=no
13408  need_version=no
13409  soname_spec='$libname$release$shared_ext$major'
13410  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13411  case $host_os in
13412  irix5* | nonstopux*)
13413    libsuff= shlibsuff=
13414    ;;
13415  *)
13416    case $LD in # libtool.m4 will add one of these switches to LD
13417    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13418      libsuff= shlibsuff= libmagic=32-bit;;
13419    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13420      libsuff=32 shlibsuff=N32 libmagic=N32;;
13421    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13422      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13423    *) libsuff= shlibsuff= libmagic=never-match;;
13424    esac
13425    ;;
13426  esac
13427  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13428  shlibpath_overrides_runpath=no
13429  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13430  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13431  hardcode_into_libs=yes
13432  ;;
13433
13434# No shared lib support for Linux oldld, aout, or coff.
13435linux*oldld* | linux*aout* | linux*coff*)
13436  dynamic_linker=no
13437  ;;
13438
13439linux*android*)
13440  version_type=none # Android doesn't support versioned libraries.
13441  need_lib_prefix=no
13442  need_version=no
13443  library_names_spec='$libname$release$shared_ext'
13444  soname_spec='$libname$release$shared_ext'
13445  finish_cmds=
13446  shlibpath_var=LD_LIBRARY_PATH
13447  shlibpath_overrides_runpath=yes
13448
13449  # This implies no fast_install, which is unacceptable.
13450  # Some rework will be needed to allow for fast_install
13451  # before this can be enabled.
13452  hardcode_into_libs=yes
13453
13454  dynamic_linker='Android linker'
13455  # Don't embed -rpath directories since the linker doesn't support them.
13456  hardcode_libdir_flag_spec='-L$libdir'
13457  ;;
13458
13459# This must be glibc/ELF.
13460linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13461  version_type=linux # correct to gnu/linux during the next big refactor
13462  need_lib_prefix=no
13463  need_version=no
13464  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13465  soname_spec='$libname$release$shared_ext$major'
13466  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13467  shlibpath_var=LD_LIBRARY_PATH
13468  shlibpath_overrides_runpath=no
13469
13470  # Some binutils ld are patched to set DT_RUNPATH
13471  if test ${lt_cv_shlibpath_overrides_runpath+y}
13472then :
13473  printf %s "(cached) " >&6
13474else $as_nop
13475  lt_cv_shlibpath_overrides_runpath=no
13476    save_LDFLAGS=$LDFLAGS
13477    save_libdir=$libdir
13478    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13479	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13480    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481/* end confdefs.h.  */
13482
13483int
13484main (void)
13485{
13486
13487  ;
13488  return 0;
13489}
13490_ACEOF
13491if ac_fn_c_try_link "$LINENO"
13492then :
13493  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13494then :
13495  lt_cv_shlibpath_overrides_runpath=yes
13496fi
13497fi
13498rm -f core conftest.err conftest.$ac_objext conftest.beam \
13499    conftest$ac_exeext conftest.$ac_ext
13500    LDFLAGS=$save_LDFLAGS
13501    libdir=$save_libdir
13502
13503fi
13504
13505  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13506
13507  # This implies no fast_install, which is unacceptable.
13508  # Some rework will be needed to allow for fast_install
13509  # before this can be enabled.
13510  hardcode_into_libs=yes
13511
13512  # Add ABI-specific directories to the system library path.
13513  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13514
13515  # Ideally, we could use ldconfig to report *all* directores which are
13516  # searched for libraries, however this is still not possible.  Aside from not
13517  # being certain /sbin/ldconfig is available, command
13518  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13519  # even though it is searched at run-time.  Try to do the best guess by
13520  # appending ld.so.conf contents (and includes) to the search path.
13521  if test -f /etc/ld.so.conf; then
13522    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' ' '`
13523    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13524  fi
13525
13526  # We used to test for /lib/ld.so.1 and disable shared libraries on
13527  # powerpc, because MkLinux only supported shared libraries with the
13528  # GNU dynamic linker.  Since this was broken with cross compilers,
13529  # most powerpc-linux boxes support dynamic linking these days and
13530  # people can always --disable-shared, the test was removed, and we
13531  # assume the GNU/Linux dynamic linker is in use.
13532  dynamic_linker='GNU/Linux ld.so'
13533  ;;
13534
13535netbsd*)
13536  version_type=sunos
13537  need_lib_prefix=no
13538  need_version=no
13539  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13540    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13541    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13542    dynamic_linker='NetBSD (a.out) ld.so'
13543  else
13544    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13545    soname_spec='$libname$release$shared_ext$major'
13546    dynamic_linker='NetBSD ld.elf_so'
13547  fi
13548  shlibpath_var=LD_LIBRARY_PATH
13549  shlibpath_overrides_runpath=yes
13550  hardcode_into_libs=yes
13551  ;;
13552
13553newsos6)
13554  version_type=linux # correct to gnu/linux during the next big refactor
13555  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13556  shlibpath_var=LD_LIBRARY_PATH
13557  shlibpath_overrides_runpath=yes
13558  ;;
13559
13560*nto* | *qnx*)
13561  version_type=qnx
13562  need_lib_prefix=no
13563  need_version=no
13564  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13565  soname_spec='$libname$release$shared_ext$major'
13566  shlibpath_var=LD_LIBRARY_PATH
13567  shlibpath_overrides_runpath=no
13568  hardcode_into_libs=yes
13569  dynamic_linker='ldqnx.so'
13570  ;;
13571
13572openbsd* | bitrig*)
13573  version_type=sunos
13574  sys_lib_dlsearch_path_spec=/usr/lib
13575  need_lib_prefix=no
13576  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13577    need_version=no
13578  else
13579    need_version=yes
13580  fi
13581  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13582  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13583  shlibpath_var=LD_LIBRARY_PATH
13584  shlibpath_overrides_runpath=yes
13585  ;;
13586
13587os2*)
13588  libname_spec='$name'
13589  version_type=windows
13590  shrext_cmds=.dll
13591  need_version=no
13592  need_lib_prefix=no
13593  # OS/2 can only load a DLL with a base name of 8 characters or less.
13594  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13595    v=$($ECHO $release$versuffix | tr -d .-);
13596    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13597    $ECHO $n$v`$shared_ext'
13598  library_names_spec='${libname}_dll.$libext'
13599  dynamic_linker='OS/2 ld.exe'
13600  shlibpath_var=BEGINLIBPATH
13601  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13602  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13603  postinstall_cmds='base_file=`basename \$file`~
13604    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13605    dldir=$destdir/`dirname \$dlpath`~
13606    test -d \$dldir || mkdir -p \$dldir~
13607    $install_prog $dir/$dlname \$dldir/$dlname~
13608    chmod a+x \$dldir/$dlname~
13609    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13610      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13611    fi'
13612  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13613    dlpath=$dir/\$dldll~
13614    $RM \$dlpath'
13615  ;;
13616
13617osf3* | osf4* | osf5*)
13618  version_type=osf
13619  need_lib_prefix=no
13620  need_version=no
13621  soname_spec='$libname$release$shared_ext$major'
13622  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13623  shlibpath_var=LD_LIBRARY_PATH
13624  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13625  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13626  ;;
13627
13628rdos*)
13629  dynamic_linker=no
13630  ;;
13631
13632solaris*)
13633  version_type=linux # correct to gnu/linux during the next big refactor
13634  need_lib_prefix=no
13635  need_version=no
13636  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13637  soname_spec='$libname$release$shared_ext$major'
13638  shlibpath_var=LD_LIBRARY_PATH
13639  shlibpath_overrides_runpath=yes
13640  hardcode_into_libs=yes
13641  # ldd complains unless libraries are executable
13642  postinstall_cmds='chmod +x $lib'
13643  ;;
13644
13645sunos4*)
13646  version_type=sunos
13647  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13648  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13649  shlibpath_var=LD_LIBRARY_PATH
13650  shlibpath_overrides_runpath=yes
13651  if test yes = "$with_gnu_ld"; then
13652    need_lib_prefix=no
13653  fi
13654  need_version=yes
13655  ;;
13656
13657sysv4 | sysv4.3*)
13658  version_type=linux # correct to gnu/linux during the next big refactor
13659  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13660  soname_spec='$libname$release$shared_ext$major'
13661  shlibpath_var=LD_LIBRARY_PATH
13662  case $host_vendor in
13663    sni)
13664      shlibpath_overrides_runpath=no
13665      need_lib_prefix=no
13666      runpath_var=LD_RUN_PATH
13667      ;;
13668    siemens)
13669      need_lib_prefix=no
13670      ;;
13671    motorola)
13672      need_lib_prefix=no
13673      need_version=no
13674      shlibpath_overrides_runpath=no
13675      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13676      ;;
13677  esac
13678  ;;
13679
13680sysv4*MP*)
13681  if test -d /usr/nec; then
13682    version_type=linux # correct to gnu/linux during the next big refactor
13683    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13684    soname_spec='$libname$shared_ext.$major'
13685    shlibpath_var=LD_LIBRARY_PATH
13686  fi
13687  ;;
13688
13689sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13690  version_type=sco
13691  need_lib_prefix=no
13692  need_version=no
13693  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13694  soname_spec='$libname$release$shared_ext$major'
13695  shlibpath_var=LD_LIBRARY_PATH
13696  shlibpath_overrides_runpath=yes
13697  hardcode_into_libs=yes
13698  if test yes = "$with_gnu_ld"; then
13699    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13700  else
13701    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13702    case $host_os in
13703      sco3.2v5*)
13704        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13705	;;
13706    esac
13707  fi
13708  sys_lib_dlsearch_path_spec='/usr/lib'
13709  ;;
13710
13711tpf*)
13712  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13713  version_type=linux # correct to gnu/linux during the next big refactor
13714  need_lib_prefix=no
13715  need_version=no
13716  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13717  shlibpath_var=LD_LIBRARY_PATH
13718  shlibpath_overrides_runpath=no
13719  hardcode_into_libs=yes
13720  ;;
13721
13722uts4*)
13723  version_type=linux # correct to gnu/linux during the next big refactor
13724  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13725  soname_spec='$libname$release$shared_ext$major'
13726  shlibpath_var=LD_LIBRARY_PATH
13727  ;;
13728
13729*)
13730  dynamic_linker=no
13731  ;;
13732esac
13733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13734printf "%s\n" "$dynamic_linker" >&6; }
13735test no = "$dynamic_linker" && can_build_shared=no
13736
13737variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13738if test yes = "$GCC"; then
13739  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13740fi
13741
13742if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13743  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13744fi
13745
13746if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13747  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13748fi
13749
13750# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13751configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13752
13753# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13754func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13755
13756# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13757configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13856printf %s "checking how to hardcode library paths into programs... " >&6; }
13857hardcode_action=
13858if test -n "$hardcode_libdir_flag_spec" ||
13859   test -n "$runpath_var" ||
13860   test yes = "$hardcode_automatic"; then
13861
13862  # We can hardcode non-existent directories.
13863  if test no != "$hardcode_direct" &&
13864     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13865     # have to relink, otherwise we might link with an installed library
13866     # when we should be linking with a yet-to-be-installed one
13867     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13868     test no != "$hardcode_minus_L"; then
13869    # Linking always hardcodes the temporary library directory.
13870    hardcode_action=relink
13871  else
13872    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13873    hardcode_action=immediate
13874  fi
13875else
13876  # We cannot hardcode anything, or else we can only hardcode existing
13877  # directories.
13878  hardcode_action=unsupported
13879fi
13880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13881printf "%s\n" "$hardcode_action" >&6; }
13882
13883if test relink = "$hardcode_action" ||
13884   test yes = "$inherit_rpath"; then
13885  # Fast installation is not supported
13886  enable_fast_install=no
13887elif test yes = "$shlibpath_overrides_runpath" ||
13888     test no = "$enable_shared"; then
13889  # Fast installation is not necessary
13890  enable_fast_install=needless
13891fi
13892
13893
13894
13895
13896
13897
13898  if test yes != "$enable_dlopen"; then
13899  enable_dlopen=unknown
13900  enable_dlopen_self=unknown
13901  enable_dlopen_self_static=unknown
13902else
13903  lt_cv_dlopen=no
13904  lt_cv_dlopen_libs=
13905
13906  case $host_os in
13907  beos*)
13908    lt_cv_dlopen=load_add_on
13909    lt_cv_dlopen_libs=
13910    lt_cv_dlopen_self=yes
13911    ;;
13912
13913  mingw* | pw32* | cegcc*)
13914    lt_cv_dlopen=LoadLibrary
13915    lt_cv_dlopen_libs=
13916    ;;
13917
13918  cygwin*)
13919    lt_cv_dlopen=dlopen
13920    lt_cv_dlopen_libs=
13921    ;;
13922
13923  darwin*)
13924    # if libdl is installed we need to link against it
13925    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13926printf %s "checking for dlopen in -ldl... " >&6; }
13927if test ${ac_cv_lib_dl_dlopen+y}
13928then :
13929  printf %s "(cached) " >&6
13930else $as_nop
13931  ac_check_lib_save_LIBS=$LIBS
13932LIBS="-ldl  $LIBS"
13933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934/* end confdefs.h.  */
13935
13936/* Override any GCC internal prototype to avoid an error.
13937   Use char because int might match the return type of a GCC
13938   builtin and then its argument prototype would still apply.  */
13939char dlopen ();
13940int
13941main (void)
13942{
13943return dlopen ();
13944  ;
13945  return 0;
13946}
13947_ACEOF
13948if ac_fn_c_try_link "$LINENO"
13949then :
13950  ac_cv_lib_dl_dlopen=yes
13951else $as_nop
13952  ac_cv_lib_dl_dlopen=no
13953fi
13954rm -f core conftest.err conftest.$ac_objext conftest.beam \
13955    conftest$ac_exeext conftest.$ac_ext
13956LIBS=$ac_check_lib_save_LIBS
13957fi
13958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13959printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13960if test "x$ac_cv_lib_dl_dlopen" = xyes
13961then :
13962  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13963else $as_nop
13964
13965    lt_cv_dlopen=dyld
13966    lt_cv_dlopen_libs=
13967    lt_cv_dlopen_self=yes
13968
13969fi
13970
13971    ;;
13972
13973  tpf*)
13974    # Don't try to run any link tests for TPF.  We know it's impossible
13975    # because TPF is a cross-compiler, and we know how we open DSOs.
13976    lt_cv_dlopen=dlopen
13977    lt_cv_dlopen_libs=
13978    lt_cv_dlopen_self=no
13979    ;;
13980
13981  *)
13982    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13983if test "x$ac_cv_func_shl_load" = xyes
13984then :
13985  lt_cv_dlopen=shl_load
13986else $as_nop
13987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13988printf %s "checking for shl_load in -ldld... " >&6; }
13989if test ${ac_cv_lib_dld_shl_load+y}
13990then :
13991  printf %s "(cached) " >&6
13992else $as_nop
13993  ac_check_lib_save_LIBS=$LIBS
13994LIBS="-ldld  $LIBS"
13995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996/* end confdefs.h.  */
13997
13998/* Override any GCC internal prototype to avoid an error.
13999   Use char because int might match the return type of a GCC
14000   builtin and then its argument prototype would still apply.  */
14001char shl_load ();
14002int
14003main (void)
14004{
14005return shl_load ();
14006  ;
14007  return 0;
14008}
14009_ACEOF
14010if ac_fn_c_try_link "$LINENO"
14011then :
14012  ac_cv_lib_dld_shl_load=yes
14013else $as_nop
14014  ac_cv_lib_dld_shl_load=no
14015fi
14016rm -f core conftest.err conftest.$ac_objext conftest.beam \
14017    conftest$ac_exeext conftest.$ac_ext
14018LIBS=$ac_check_lib_save_LIBS
14019fi
14020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14021printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14022if test "x$ac_cv_lib_dld_shl_load" = xyes
14023then :
14024  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14025else $as_nop
14026  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14027if test "x$ac_cv_func_dlopen" = xyes
14028then :
14029  lt_cv_dlopen=dlopen
14030else $as_nop
14031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14032printf %s "checking for dlopen in -ldl... " >&6; }
14033if test ${ac_cv_lib_dl_dlopen+y}
14034then :
14035  printf %s "(cached) " >&6
14036else $as_nop
14037  ac_check_lib_save_LIBS=$LIBS
14038LIBS="-ldl  $LIBS"
14039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040/* end confdefs.h.  */
14041
14042/* Override any GCC internal prototype to avoid an error.
14043   Use char because int might match the return type of a GCC
14044   builtin and then its argument prototype would still apply.  */
14045char dlopen ();
14046int
14047main (void)
14048{
14049return dlopen ();
14050  ;
14051  return 0;
14052}
14053_ACEOF
14054if ac_fn_c_try_link "$LINENO"
14055then :
14056  ac_cv_lib_dl_dlopen=yes
14057else $as_nop
14058  ac_cv_lib_dl_dlopen=no
14059fi
14060rm -f core conftest.err conftest.$ac_objext conftest.beam \
14061    conftest$ac_exeext conftest.$ac_ext
14062LIBS=$ac_check_lib_save_LIBS
14063fi
14064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14065printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14066if test "x$ac_cv_lib_dl_dlopen" = xyes
14067then :
14068  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14069else $as_nop
14070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14071printf %s "checking for dlopen in -lsvld... " >&6; }
14072if test ${ac_cv_lib_svld_dlopen+y}
14073then :
14074  printf %s "(cached) " >&6
14075else $as_nop
14076  ac_check_lib_save_LIBS=$LIBS
14077LIBS="-lsvld  $LIBS"
14078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079/* end confdefs.h.  */
14080
14081/* Override any GCC internal prototype to avoid an error.
14082   Use char because int might match the return type of a GCC
14083   builtin and then its argument prototype would still apply.  */
14084char dlopen ();
14085int
14086main (void)
14087{
14088return dlopen ();
14089  ;
14090  return 0;
14091}
14092_ACEOF
14093if ac_fn_c_try_link "$LINENO"
14094then :
14095  ac_cv_lib_svld_dlopen=yes
14096else $as_nop
14097  ac_cv_lib_svld_dlopen=no
14098fi
14099rm -f core conftest.err conftest.$ac_objext conftest.beam \
14100    conftest$ac_exeext conftest.$ac_ext
14101LIBS=$ac_check_lib_save_LIBS
14102fi
14103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14104printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14105if test "x$ac_cv_lib_svld_dlopen" = xyes
14106then :
14107  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14108else $as_nop
14109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14110printf %s "checking for dld_link in -ldld... " >&6; }
14111if test ${ac_cv_lib_dld_dld_link+y}
14112then :
14113  printf %s "(cached) " >&6
14114else $as_nop
14115  ac_check_lib_save_LIBS=$LIBS
14116LIBS="-ldld  $LIBS"
14117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118/* end confdefs.h.  */
14119
14120/* Override any GCC internal prototype to avoid an error.
14121   Use char because int might match the return type of a GCC
14122   builtin and then its argument prototype would still apply.  */
14123char dld_link ();
14124int
14125main (void)
14126{
14127return dld_link ();
14128  ;
14129  return 0;
14130}
14131_ACEOF
14132if ac_fn_c_try_link "$LINENO"
14133then :
14134  ac_cv_lib_dld_dld_link=yes
14135else $as_nop
14136  ac_cv_lib_dld_dld_link=no
14137fi
14138rm -f core conftest.err conftest.$ac_objext conftest.beam \
14139    conftest$ac_exeext conftest.$ac_ext
14140LIBS=$ac_check_lib_save_LIBS
14141fi
14142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14143printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14144if test "x$ac_cv_lib_dld_dld_link" = xyes
14145then :
14146  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14147fi
14148
14149
14150fi
14151
14152
14153fi
14154
14155
14156fi
14157
14158
14159fi
14160
14161
14162fi
14163
14164    ;;
14165  esac
14166
14167  if test no = "$lt_cv_dlopen"; then
14168    enable_dlopen=no
14169  else
14170    enable_dlopen=yes
14171  fi
14172
14173  case $lt_cv_dlopen in
14174  dlopen)
14175    save_CPPFLAGS=$CPPFLAGS
14176    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14177
14178    save_LDFLAGS=$LDFLAGS
14179    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14180
14181    save_LIBS=$LIBS
14182    LIBS="$lt_cv_dlopen_libs $LIBS"
14183
14184    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14185printf %s "checking whether a program can dlopen itself... " >&6; }
14186if test ${lt_cv_dlopen_self+y}
14187then :
14188  printf %s "(cached) " >&6
14189else $as_nop
14190  	  if test yes = "$cross_compiling"; then :
14191  lt_cv_dlopen_self=cross
14192else
14193  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14194  lt_status=$lt_dlunknown
14195  cat > conftest.$ac_ext <<_LT_EOF
14196#line $LINENO "configure"
14197#include "confdefs.h"
14198
14199#if HAVE_DLFCN_H
14200#include <dlfcn.h>
14201#endif
14202
14203#include <stdio.h>
14204
14205#ifdef RTLD_GLOBAL
14206#  define LT_DLGLOBAL		RTLD_GLOBAL
14207#else
14208#  ifdef DL_GLOBAL
14209#    define LT_DLGLOBAL		DL_GLOBAL
14210#  else
14211#    define LT_DLGLOBAL		0
14212#  endif
14213#endif
14214
14215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14216   find out it does not work in some platform. */
14217#ifndef LT_DLLAZY_OR_NOW
14218#  ifdef RTLD_LAZY
14219#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14220#  else
14221#    ifdef DL_LAZY
14222#      define LT_DLLAZY_OR_NOW		DL_LAZY
14223#    else
14224#      ifdef RTLD_NOW
14225#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14226#      else
14227#        ifdef DL_NOW
14228#          define LT_DLLAZY_OR_NOW	DL_NOW
14229#        else
14230#          define LT_DLLAZY_OR_NOW	0
14231#        endif
14232#      endif
14233#    endif
14234#  endif
14235#endif
14236
14237/* When -fvisibility=hidden is used, assume the code has been annotated
14238   correspondingly for the symbols needed.  */
14239#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14240int fnord () __attribute__((visibility("default")));
14241#endif
14242
14243int fnord () { return 42; }
14244int main ()
14245{
14246  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14247  int status = $lt_dlunknown;
14248
14249  if (self)
14250    {
14251      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14252      else
14253        {
14254	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14255          else puts (dlerror ());
14256	}
14257      /* dlclose (self); */
14258    }
14259  else
14260    puts (dlerror ());
14261
14262  return status;
14263}
14264_LT_EOF
14265  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14266  (eval $ac_link) 2>&5
14267  ac_status=$?
14268  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14269  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14270    (./conftest; exit; ) >&5 2>/dev/null
14271    lt_status=$?
14272    case x$lt_status in
14273      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14274      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14275      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14276    esac
14277  else :
14278    # compilation failed
14279    lt_cv_dlopen_self=no
14280  fi
14281fi
14282rm -fr conftest*
14283
14284
14285fi
14286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14287printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14288
14289    if test yes = "$lt_cv_dlopen_self"; then
14290      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14291      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14292printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14293if test ${lt_cv_dlopen_self_static+y}
14294then :
14295  printf %s "(cached) " >&6
14296else $as_nop
14297  	  if test yes = "$cross_compiling"; then :
14298  lt_cv_dlopen_self_static=cross
14299else
14300  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14301  lt_status=$lt_dlunknown
14302  cat > conftest.$ac_ext <<_LT_EOF
14303#line $LINENO "configure"
14304#include "confdefs.h"
14305
14306#if HAVE_DLFCN_H
14307#include <dlfcn.h>
14308#endif
14309
14310#include <stdio.h>
14311
14312#ifdef RTLD_GLOBAL
14313#  define LT_DLGLOBAL		RTLD_GLOBAL
14314#else
14315#  ifdef DL_GLOBAL
14316#    define LT_DLGLOBAL		DL_GLOBAL
14317#  else
14318#    define LT_DLGLOBAL		0
14319#  endif
14320#endif
14321
14322/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14323   find out it does not work in some platform. */
14324#ifndef LT_DLLAZY_OR_NOW
14325#  ifdef RTLD_LAZY
14326#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14327#  else
14328#    ifdef DL_LAZY
14329#      define LT_DLLAZY_OR_NOW		DL_LAZY
14330#    else
14331#      ifdef RTLD_NOW
14332#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14333#      else
14334#        ifdef DL_NOW
14335#          define LT_DLLAZY_OR_NOW	DL_NOW
14336#        else
14337#          define LT_DLLAZY_OR_NOW	0
14338#        endif
14339#      endif
14340#    endif
14341#  endif
14342#endif
14343
14344/* When -fvisibility=hidden is used, assume the code has been annotated
14345   correspondingly for the symbols needed.  */
14346#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14347int fnord () __attribute__((visibility("default")));
14348#endif
14349
14350int fnord () { return 42; }
14351int main ()
14352{
14353  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14354  int status = $lt_dlunknown;
14355
14356  if (self)
14357    {
14358      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14359      else
14360        {
14361	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14362          else puts (dlerror ());
14363	}
14364      /* dlclose (self); */
14365    }
14366  else
14367    puts (dlerror ());
14368
14369  return status;
14370}
14371_LT_EOF
14372  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14373  (eval $ac_link) 2>&5
14374  ac_status=$?
14375  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14376  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14377    (./conftest; exit; ) >&5 2>/dev/null
14378    lt_status=$?
14379    case x$lt_status in
14380      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14381      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14382      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14383    esac
14384  else :
14385    # compilation failed
14386    lt_cv_dlopen_self_static=no
14387  fi
14388fi
14389rm -fr conftest*
14390
14391
14392fi
14393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14394printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14395    fi
14396
14397    CPPFLAGS=$save_CPPFLAGS
14398    LDFLAGS=$save_LDFLAGS
14399    LIBS=$save_LIBS
14400    ;;
14401  esac
14402
14403  case $lt_cv_dlopen_self in
14404  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14405  *) enable_dlopen_self=unknown ;;
14406  esac
14407
14408  case $lt_cv_dlopen_self_static in
14409  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14410  *) enable_dlopen_self_static=unknown ;;
14411  esac
14412fi
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430striplib=
14431old_striplib=
14432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14433printf %s "checking whether stripping libraries is possible... " >&6; }
14434if test -z "$STRIP"; then
14435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436printf "%s\n" "no" >&6; }
14437else
14438  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14439    old_striplib="$STRIP --strip-debug"
14440    striplib="$STRIP --strip-unneeded"
14441    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14442printf "%s\n" "yes" >&6; }
14443  else
14444    case $host_os in
14445    darwin*)
14446      # FIXME - insert some real tests, host_os isn't really good enough
14447      striplib="$STRIP -x"
14448      old_striplib="$STRIP -S"
14449      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14450printf "%s\n" "yes" >&6; }
14451      ;;
14452    freebsd*)
14453      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14454        old_striplib="$STRIP --strip-debug"
14455        striplib="$STRIP --strip-unneeded"
14456        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14457printf "%s\n" "yes" >&6; }
14458      else
14459        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14460printf "%s\n" "no" >&6; }
14461      fi
14462      ;;
14463    *)
14464      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465printf "%s\n" "no" >&6; }
14466      ;;
14467    esac
14468  fi
14469fi
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482  # Report what library types will actually be built
14483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14484printf %s "checking if libtool supports shared libraries... " >&6; }
14485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14486printf "%s\n" "$can_build_shared" >&6; }
14487
14488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14489printf %s "checking whether to build shared libraries... " >&6; }
14490  test no = "$can_build_shared" && enable_shared=no
14491
14492  # On AIX, shared libraries and static libraries use the same namespace, and
14493  # are all built from PIC.
14494  case $host_os in
14495  aix3*)
14496    test yes = "$enable_shared" && enable_static=no
14497    if test -n "$RANLIB"; then
14498      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14499      postinstall_cmds='$RANLIB $lib'
14500    fi
14501    ;;
14502
14503  aix[4-9]*)
14504    if test ia64 != "$host_cpu"; then
14505      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14506      yes,aix,yes) ;;			# shared object as lib.so file only
14507      yes,svr4,*) ;;			# shared object as lib.so archive member only
14508      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14509      esac
14510    fi
14511    ;;
14512  esac
14513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14514printf "%s\n" "$enable_shared" >&6; }
14515
14516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14517printf %s "checking whether to build static libraries... " >&6; }
14518  # Make sure either enable_shared or enable_static is yes.
14519  test yes = "$enable_shared" || enable_static=yes
14520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14521printf "%s\n" "$enable_static" >&6; }
14522
14523
14524
14525
14526fi
14527ac_ext=c
14528ac_cpp='$CPP $CPPFLAGS'
14529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14531ac_compiler_gnu=$ac_cv_c_compiler_gnu
14532
14533CC=$lt_save_CC
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549        ac_config_commands="$ac_config_commands libtool"
14550
14551
14552
14553
14554# Only expand once:
14555
14556
14557
14558
14559LIBT_CURRENT=13
14560LIBT_REVISION=1
14561
14562
14563LIBT_AGE=12
14564
14565LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
14566
14567
14568LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
14569
14570
14571PKGCONFIG_REQUIRES=
14572PKGCONFIG_REQUIRES_PRIVATELY=
14573
14574
14575os_win32=no
14576os_darwin=no
14577case "${host_os}" in
14578	cygwin*|mingw*)
14579		os_win32=yes
14580		;;
14581	darwin*)
14582		os_darwin=yes
14583		;;
14584esac
14585 if test "$os_win32" = "yes"; then
14586  OS_WIN32_TRUE=
14587  OS_WIN32_FALSE='#'
14588else
14589  OS_WIN32_TRUE='#'
14590  OS_WIN32_FALSE=
14591fi
14592
14593 if test "$os_darwin" = "yes"; then
14594  OS_DARWIN_TRUE=
14595  OS_DARWIN_FALSE='#'
14596else
14597  OS_DARWIN_TRUE='#'
14598  OS_DARWIN_FALSE=
14599fi
14600
14601
14602GETTEXT_PACKAGE=$PACKAGE
14603
14604
14605printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
14606
14607
14608
14609
14610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14611printf %s "checking whether NLS is requested... " >&6; }
14612    # Check whether --enable-nls was given.
14613if test ${enable_nls+y}
14614then :
14615  enableval=$enable_nls; USE_NLS=$enableval
14616else $as_nop
14617  USE_NLS=yes
14618fi
14619
14620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14621printf "%s\n" "$USE_NLS" >&6; }
14622
14623
14624
14625
14626      GETTEXT_MACRO_VERSION=0.19
14627
14628
14629
14630
14631# Prepare PATH_SEPARATOR.
14632# The user is always right.
14633if test "${PATH_SEPARATOR+set}" != set; then
14634  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14635  # contains only /bin. Note that ksh looks also at the FPATH variable,
14636  # so we have to set that as well for the test.
14637  PATH_SEPARATOR=:
14638  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14639    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14640           || PATH_SEPARATOR=';'
14641       }
14642fi
14643
14644# Find out how to test for executable files. Don't use a zero-byte file,
14645# as systems may use methods other than mode bits to determine executability.
14646cat >conf$$.file <<_ASEOF
14647#! /bin/sh
14648exit 0
14649_ASEOF
14650chmod +x conf$$.file
14651if test -x conf$$.file >/dev/null 2>&1; then
14652  ac_executable_p="test -x"
14653else
14654  ac_executable_p="test -f"
14655fi
14656rm -f conf$$.file
14657
14658# Extract the first word of "msgfmt", so it can be a program name with args.
14659set dummy msgfmt; ac_word=$2
14660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661printf %s "checking for $ac_word... " >&6; }
14662if test ${ac_cv_path_MSGFMT+y}
14663then :
14664  printf %s "(cached) " >&6
14665else $as_nop
14666  case "$MSGFMT" in
14667  [\\/]* | ?:[\\/]*)
14668    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14669    ;;
14670  *)
14671    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14672    for ac_dir in $PATH; do
14673      IFS="$ac_save_IFS"
14674      test -z "$ac_dir" && ac_dir=.
14675      for ac_exec_ext in '' $ac_executable_extensions; do
14676        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14677          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14678          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14679     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14680            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14681            break 2
14682          fi
14683        fi
14684      done
14685    done
14686    IFS="$ac_save_IFS"
14687  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14688    ;;
14689esac
14690fi
14691MSGFMT="$ac_cv_path_MSGFMT"
14692if test "$MSGFMT" != ":"; then
14693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14694printf "%s\n" "$MSGFMT" >&6; }
14695else
14696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697printf "%s\n" "no" >&6; }
14698fi
14699
14700  # Extract the first word of "gmsgfmt", so it can be a program name with args.
14701set dummy gmsgfmt; ac_word=$2
14702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703printf %s "checking for $ac_word... " >&6; }
14704if test ${ac_cv_path_GMSGFMT+y}
14705then :
14706  printf %s "(cached) " >&6
14707else $as_nop
14708  case $GMSGFMT in
14709  [\\/]* | ?:[\\/]*)
14710  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14711  ;;
14712  *)
14713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714for as_dir in $PATH
14715do
14716  IFS=$as_save_IFS
14717  case $as_dir in #(((
14718    '') as_dir=./ ;;
14719    */) ;;
14720    *) as_dir=$as_dir/ ;;
14721  esac
14722    for ac_exec_ext in '' $ac_executable_extensions; do
14723  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14724    ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
14725    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14726    break 2
14727  fi
14728done
14729  done
14730IFS=$as_save_IFS
14731
14732  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14733  ;;
14734esac
14735fi
14736GMSGFMT=$ac_cv_path_GMSGFMT
14737if test -n "$GMSGFMT"; then
14738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14739printf "%s\n" "$GMSGFMT" >&6; }
14740else
14741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14742printf "%s\n" "no" >&6; }
14743fi
14744
14745
14746
14747    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14748    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14749    *) MSGFMT_015=$MSGFMT ;;
14750  esac
14751
14752  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14753    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14754    *) GMSGFMT_015=$GMSGFMT ;;
14755  esac
14756
14757
14758
14759# Prepare PATH_SEPARATOR.
14760# The user is always right.
14761if test "${PATH_SEPARATOR+set}" != set; then
14762  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14763  # contains only /bin. Note that ksh looks also at the FPATH variable,
14764  # so we have to set that as well for the test.
14765  PATH_SEPARATOR=:
14766  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14767    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14768           || PATH_SEPARATOR=';'
14769       }
14770fi
14771
14772# Find out how to test for executable files. Don't use a zero-byte file,
14773# as systems may use methods other than mode bits to determine executability.
14774cat >conf$$.file <<_ASEOF
14775#! /bin/sh
14776exit 0
14777_ASEOF
14778chmod +x conf$$.file
14779if test -x conf$$.file >/dev/null 2>&1; then
14780  ac_executable_p="test -x"
14781else
14782  ac_executable_p="test -f"
14783fi
14784rm -f conf$$.file
14785
14786# Extract the first word of "xgettext", so it can be a program name with args.
14787set dummy xgettext; ac_word=$2
14788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14789printf %s "checking for $ac_word... " >&6; }
14790if test ${ac_cv_path_XGETTEXT+y}
14791then :
14792  printf %s "(cached) " >&6
14793else $as_nop
14794  case "$XGETTEXT" in
14795  [\\/]* | ?:[\\/]*)
14796    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14797    ;;
14798  *)
14799    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14800    for ac_dir in $PATH; do
14801      IFS="$ac_save_IFS"
14802      test -z "$ac_dir" && ac_dir=.
14803      for ac_exec_ext in '' $ac_executable_extensions; do
14804        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14805          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14806          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14807     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14808            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14809            break 2
14810          fi
14811        fi
14812      done
14813    done
14814    IFS="$ac_save_IFS"
14815  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14816    ;;
14817esac
14818fi
14819XGETTEXT="$ac_cv_path_XGETTEXT"
14820if test "$XGETTEXT" != ":"; then
14821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14822printf "%s\n" "$XGETTEXT" >&6; }
14823else
14824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825printf "%s\n" "no" >&6; }
14826fi
14827
14828    rm -f messages.po
14829
14830    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14831    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14832    *) XGETTEXT_015=$XGETTEXT ;;
14833  esac
14834
14835
14836
14837# Prepare PATH_SEPARATOR.
14838# The user is always right.
14839if test "${PATH_SEPARATOR+set}" != set; then
14840  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14841  # contains only /bin. Note that ksh looks also at the FPATH variable,
14842  # so we have to set that as well for the test.
14843  PATH_SEPARATOR=:
14844  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14845    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14846           || PATH_SEPARATOR=';'
14847       }
14848fi
14849
14850# Find out how to test for executable files. Don't use a zero-byte file,
14851# as systems may use methods other than mode bits to determine executability.
14852cat >conf$$.file <<_ASEOF
14853#! /bin/sh
14854exit 0
14855_ASEOF
14856chmod +x conf$$.file
14857if test -x conf$$.file >/dev/null 2>&1; then
14858  ac_executable_p="test -x"
14859else
14860  ac_executable_p="test -f"
14861fi
14862rm -f conf$$.file
14863
14864# Extract the first word of "msgmerge", so it can be a program name with args.
14865set dummy msgmerge; ac_word=$2
14866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14867printf %s "checking for $ac_word... " >&6; }
14868if test ${ac_cv_path_MSGMERGE+y}
14869then :
14870  printf %s "(cached) " >&6
14871else $as_nop
14872  case "$MSGMERGE" in
14873  [\\/]* | ?:[\\/]*)
14874    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14875    ;;
14876  *)
14877    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14878    for ac_dir in $PATH; do
14879      IFS="$ac_save_IFS"
14880      test -z "$ac_dir" && ac_dir=.
14881      for ac_exec_ext in '' $ac_executable_extensions; do
14882        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14883          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14884          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14885            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14886            break 2
14887          fi
14888        fi
14889      done
14890    done
14891    IFS="$ac_save_IFS"
14892  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14893    ;;
14894esac
14895fi
14896MSGMERGE="$ac_cv_path_MSGMERGE"
14897if test "$MSGMERGE" != ":"; then
14898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14899printf "%s\n" "$MSGMERGE" >&6; }
14900else
14901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902printf "%s\n" "no" >&6; }
14903fi
14904
14905
14906        test -n "$localedir" || localedir='${datadir}/locale'
14907
14908
14909    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14910
14911
14912  ac_config_commands="$ac_config_commands po-directories"
14913
14914
14915
14916      if test "X$prefix" = "XNONE"; then
14917    acl_final_prefix="$ac_default_prefix"
14918  else
14919    acl_final_prefix="$prefix"
14920  fi
14921  if test "X$exec_prefix" = "XNONE"; then
14922    acl_final_exec_prefix='${prefix}'
14923  else
14924    acl_final_exec_prefix="$exec_prefix"
14925  fi
14926  acl_save_prefix="$prefix"
14927  prefix="$acl_final_prefix"
14928  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14929  prefix="$acl_save_prefix"
14930
14931
14932
14933# Check whether --with-gnu-ld was given.
14934if test ${with_gnu_ld+y}
14935then :
14936  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14937else $as_nop
14938  with_gnu_ld=no
14939fi
14940
14941# Prepare PATH_SEPARATOR.
14942# The user is always right.
14943if test "${PATH_SEPARATOR+set}" != set; then
14944  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14945  # contains only /bin. Note that ksh looks also at the FPATH variable,
14946  # so we have to set that as well for the test.
14947  PATH_SEPARATOR=:
14948  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14949    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14950           || PATH_SEPARATOR=';'
14951       }
14952fi
14953
14954ac_prog=ld
14955if test "$GCC" = yes; then
14956  # Check if gcc -print-prog-name=ld gives a path.
14957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14958printf %s "checking for ld used by $CC... " >&6; }
14959  case $host in
14960  *-*-mingw*)
14961    # gcc leaves a trailing carriage return which upsets mingw
14962    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14963  *)
14964    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14965  esac
14966  case $ac_prog in
14967    # Accept absolute paths.
14968    [\\/]* | ?:[\\/]*)
14969      re_direlt='/[^/][^/]*/\.\./'
14970      # Canonicalize the pathname of ld
14971      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
14972      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
14973        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14974      done
14975      test -z "$LD" && LD="$ac_prog"
14976      ;;
14977  "")
14978    # If it fails, then pretend we aren't using GCC.
14979    ac_prog=ld
14980    ;;
14981  *)
14982    # If it is relative, then search for the first ld in PATH.
14983    with_gnu_ld=unknown
14984    ;;
14985  esac
14986elif test "$with_gnu_ld" = yes; then
14987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14988printf %s "checking for GNU ld... " >&6; }
14989else
14990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14991printf %s "checking for non-GNU ld... " >&6; }
14992fi
14993if test ${acl_cv_path_LD+y}
14994then :
14995  printf %s "(cached) " >&6
14996else $as_nop
14997  if test -z "$LD"; then
14998  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14999  for ac_dir in $PATH; do
15000    IFS="$acl_save_ifs"
15001    test -z "$ac_dir" && ac_dir=.
15002    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15003      acl_cv_path_LD="$ac_dir/$ac_prog"
15004      # Check to see if the program is GNU ld.  I'd rather use --version,
15005      # but apparently some variants of GNU ld only accept -v.
15006      # Break only if it was the GNU/non-GNU ld that we prefer.
15007      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15008      *GNU* | *'with BFD'*)
15009        test "$with_gnu_ld" != no && break
15010        ;;
15011      *)
15012        test "$with_gnu_ld" != yes && break
15013        ;;
15014      esac
15015    fi
15016  done
15017  IFS="$acl_save_ifs"
15018else
15019  acl_cv_path_LD="$LD" # Let the user override the test with a path.
15020fi
15021fi
15022
15023LD="$acl_cv_path_LD"
15024if test -n "$LD"; then
15025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15026printf "%s\n" "$LD" >&6; }
15027else
15028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029printf "%s\n" "no" >&6; }
15030fi
15031test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15033printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15034if test ${acl_cv_prog_gnu_ld+y}
15035then :
15036  printf %s "(cached) " >&6
15037else $as_nop
15038  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15039case `$LD -v 2>&1 </dev/null` in
15040*GNU* | *'with BFD'*)
15041  acl_cv_prog_gnu_ld=yes
15042  ;;
15043*)
15044  acl_cv_prog_gnu_ld=no
15045  ;;
15046esac
15047fi
15048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15049printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
15050with_gnu_ld=$acl_cv_prog_gnu_ld
15051
15052
15053
15054
15055
15056                                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15057printf %s "checking for shared library run path origin... " >&6; }
15058if test ${acl_cv_rpath+y}
15059then :
15060  printf %s "(cached) " >&6
15061else $as_nop
15062
15063    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15064    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15065    . ./conftest.sh
15066    rm -f ./conftest.sh
15067    acl_cv_rpath=done
15068
15069fi
15070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15071printf "%s\n" "$acl_cv_rpath" >&6; }
15072  wl="$acl_cv_wl"
15073  acl_libext="$acl_cv_libext"
15074  acl_shlibext="$acl_cv_shlibext"
15075  acl_libname_spec="$acl_cv_libname_spec"
15076  acl_library_names_spec="$acl_cv_library_names_spec"
15077  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15078  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15079  acl_hardcode_direct="$acl_cv_hardcode_direct"
15080  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15081    # Check whether --enable-rpath was given.
15082if test ${enable_rpath+y}
15083then :
15084  enableval=$enable_rpath; :
15085else $as_nop
15086  enable_rpath=yes
15087fi
15088
15089
15090ac_ext=c
15091ac_cpp='$CPP $CPPFLAGS'
15092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15094ac_compiler_gnu=$ac_cv_c_compiler_gnu
15095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15096printf %s "checking how to run the C preprocessor... " >&6; }
15097# On Suns, sometimes $CPP names a directory.
15098if test -n "$CPP" && test -d "$CPP"; then
15099  CPP=
15100fi
15101if test -z "$CPP"; then
15102  if test ${ac_cv_prog_CPP+y}
15103then :
15104  printf %s "(cached) " >&6
15105else $as_nop
15106      # Double quotes because $CC needs to be expanded
15107    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
15108    do
15109      ac_preproc_ok=false
15110for ac_c_preproc_warn_flag in '' yes
15111do
15112  # Use a header file that comes with gcc, so configuring glibc
15113  # with a fresh cross-compiler works.
15114  # On the NeXT, cc -E runs the code through the compiler's parser,
15115  # not just through cpp. "Syntax error" is here to catch this case.
15116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117/* end confdefs.h.  */
15118#include <limits.h>
15119		     Syntax error
15120_ACEOF
15121if ac_fn_c_try_cpp "$LINENO"
15122then :
15123
15124else $as_nop
15125  # Broken: fails on valid input.
15126continue
15127fi
15128rm -f conftest.err conftest.i conftest.$ac_ext
15129
15130  # OK, works on sane cases.  Now check whether nonexistent headers
15131  # can be detected and how.
15132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133/* end confdefs.h.  */
15134#include <ac_nonexistent.h>
15135_ACEOF
15136if ac_fn_c_try_cpp "$LINENO"
15137then :
15138  # Broken: success on invalid input.
15139continue
15140else $as_nop
15141  # Passes both tests.
15142ac_preproc_ok=:
15143break
15144fi
15145rm -f conftest.err conftest.i conftest.$ac_ext
15146
15147done
15148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15149rm -f conftest.i conftest.err conftest.$ac_ext
15150if $ac_preproc_ok
15151then :
15152  break
15153fi
15154
15155    done
15156    ac_cv_prog_CPP=$CPP
15157
15158fi
15159  CPP=$ac_cv_prog_CPP
15160else
15161  ac_cv_prog_CPP=$CPP
15162fi
15163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15164printf "%s\n" "$CPP" >&6; }
15165ac_preproc_ok=false
15166for ac_c_preproc_warn_flag in '' yes
15167do
15168  # Use a header file that comes with gcc, so configuring glibc
15169  # with a fresh cross-compiler works.
15170  # On the NeXT, cc -E runs the code through the compiler's parser,
15171  # not just through cpp. "Syntax error" is here to catch this case.
15172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173/* end confdefs.h.  */
15174#include <limits.h>
15175		     Syntax error
15176_ACEOF
15177if ac_fn_c_try_cpp "$LINENO"
15178then :
15179
15180else $as_nop
15181  # Broken: fails on valid input.
15182continue
15183fi
15184rm -f conftest.err conftest.i conftest.$ac_ext
15185
15186  # OK, works on sane cases.  Now check whether nonexistent headers
15187  # can be detected and how.
15188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189/* end confdefs.h.  */
15190#include <ac_nonexistent.h>
15191_ACEOF
15192if ac_fn_c_try_cpp "$LINENO"
15193then :
15194  # Broken: success on invalid input.
15195continue
15196else $as_nop
15197  # Passes both tests.
15198ac_preproc_ok=:
15199break
15200fi
15201rm -f conftest.err conftest.i conftest.$ac_ext
15202
15203done
15204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15205rm -f conftest.i conftest.err conftest.$ac_ext
15206if $ac_preproc_ok
15207then :
15208
15209else $as_nop
15210  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15211printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15212as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
15213See \`config.log' for more details" "$LINENO" 5; }
15214fi
15215
15216ac_ext=c
15217ac_cpp='$CPP $CPPFLAGS'
15218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15220ac_compiler_gnu=$ac_cv_c_compiler_gnu
15221
15222
15223
15224
15225  acl_libdirstem=lib
15226  acl_libdirstem2=
15227  case "$host_os" in
15228    solaris*)
15229                                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15230printf %s "checking for 64-bit host... " >&6; }
15231if test ${gl_cv_solaris_64bit+y}
15232then :
15233  printf %s "(cached) " >&6
15234else $as_nop
15235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236/* end confdefs.h.  */
15237
15238#ifdef _LP64
15239sixtyfour bits
15240#endif
15241
15242_ACEOF
15243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15244  $EGREP "sixtyfour bits" >/dev/null 2>&1
15245then :
15246  gl_cv_solaris_64bit=yes
15247else $as_nop
15248  gl_cv_solaris_64bit=no
15249fi
15250rm -rf conftest*
15251
15252
15253fi
15254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15255printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
15256      if test $gl_cv_solaris_64bit = yes; then
15257        acl_libdirstem=lib/64
15258        case "$host_cpu" in
15259          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
15260          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15261        esac
15262      fi
15263      ;;
15264    *)
15265      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15266      if test -n "$searchpath"; then
15267        acl_save_IFS="${IFS= 	}"; IFS=":"
15268        for searchdir in $searchpath; do
15269          if test -d "$searchdir"; then
15270            case "$searchdir" in
15271              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15272              */../ | */.. )
15273                # Better ignore directories of this form. They are misleading.
15274                ;;
15275              *) searchdir=`cd "$searchdir" && pwd`
15276                 case "$searchdir" in
15277                   */lib64 ) acl_libdirstem=lib64 ;;
15278                 esac ;;
15279            esac
15280          fi
15281        done
15282        IFS="$acl_save_IFS"
15283      fi
15284      ;;
15285  esac
15286  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299    use_additional=yes
15300
15301  acl_save_prefix="$prefix"
15302  prefix="$acl_final_prefix"
15303  acl_save_exec_prefix="$exec_prefix"
15304  exec_prefix="$acl_final_exec_prefix"
15305
15306    eval additional_includedir=\"$includedir\"
15307    eval additional_libdir=\"$libdir\"
15308
15309  exec_prefix="$acl_save_exec_prefix"
15310  prefix="$acl_save_prefix"
15311
15312
15313# Check whether --with-libiconv-prefix was given.
15314if test ${with_libiconv_prefix+y}
15315then :
15316  withval=$with_libiconv_prefix;
15317    if test "X$withval" = "Xno"; then
15318      use_additional=no
15319    else
15320      if test "X$withval" = "X"; then
15321
15322  acl_save_prefix="$prefix"
15323  prefix="$acl_final_prefix"
15324  acl_save_exec_prefix="$exec_prefix"
15325  exec_prefix="$acl_final_exec_prefix"
15326
15327          eval additional_includedir=\"$includedir\"
15328          eval additional_libdir=\"$libdir\"
15329
15330  exec_prefix="$acl_save_exec_prefix"
15331  prefix="$acl_save_prefix"
15332
15333      else
15334        additional_includedir="$withval/include"
15335        additional_libdir="$withval/$acl_libdirstem"
15336        if test "$acl_libdirstem2" != "$acl_libdirstem" \
15337           && ! test -d "$withval/$acl_libdirstem"; then
15338          additional_libdir="$withval/$acl_libdirstem2"
15339        fi
15340      fi
15341    fi
15342
15343fi
15344
15345      LIBICONV=
15346  LTLIBICONV=
15347  INCICONV=
15348  LIBICONV_PREFIX=
15349      HAVE_LIBICONV=
15350  rpathdirs=
15351  ltrpathdirs=
15352  names_already_handled=
15353  names_next_round='iconv '
15354  while test -n "$names_next_round"; do
15355    names_this_round="$names_next_round"
15356    names_next_round=
15357    for name in $names_this_round; do
15358      already_handled=
15359      for n in $names_already_handled; do
15360        if test "$n" = "$name"; then
15361          already_handled=yes
15362          break
15363        fi
15364      done
15365      if test -z "$already_handled"; then
15366        names_already_handled="$names_already_handled $name"
15367                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15368        eval value=\"\$HAVE_LIB$uppername\"
15369        if test -n "$value"; then
15370          if test "$value" = yes; then
15371            eval value=\"\$LIB$uppername\"
15372            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15373            eval value=\"\$LTLIB$uppername\"
15374            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15375          else
15376                                    :
15377          fi
15378        else
15379                              found_dir=
15380          found_la=
15381          found_so=
15382          found_a=
15383          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15384          if test -n "$acl_shlibext"; then
15385            shrext=".$acl_shlibext"             # typically: shrext=.so
15386          else
15387            shrext=
15388          fi
15389          if test $use_additional = yes; then
15390            dir="$additional_libdir"
15391                                    if test -n "$acl_shlibext"; then
15392              if test -f "$dir/$libname$shrext"; then
15393                found_dir="$dir"
15394                found_so="$dir/$libname$shrext"
15395              else
15396                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15397                  ver=`(cd "$dir" && \
15398                        for f in "$libname$shrext".*; do echo "$f"; done \
15399                        | sed -e "s,^$libname$shrext\\\\.,," \
15400                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15401                        | sed 1q ) 2>/dev/null`
15402                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15403                    found_dir="$dir"
15404                    found_so="$dir/$libname$shrext.$ver"
15405                  fi
15406                else
15407                  eval library_names=\"$acl_library_names_spec\"
15408                  for f in $library_names; do
15409                    if test -f "$dir/$f"; then
15410                      found_dir="$dir"
15411                      found_so="$dir/$f"
15412                      break
15413                    fi
15414                  done
15415                fi
15416              fi
15417            fi
15418                        if test "X$found_dir" = "X"; then
15419              if test -f "$dir/$libname.$acl_libext"; then
15420                found_dir="$dir"
15421                found_a="$dir/$libname.$acl_libext"
15422              fi
15423            fi
15424            if test "X$found_dir" != "X"; then
15425              if test -f "$dir/$libname.la"; then
15426                found_la="$dir/$libname.la"
15427              fi
15428            fi
15429          fi
15430          if test "X$found_dir" = "X"; then
15431            for x in $LDFLAGS $LTLIBICONV; do
15432
15433  acl_save_prefix="$prefix"
15434  prefix="$acl_final_prefix"
15435  acl_save_exec_prefix="$exec_prefix"
15436  exec_prefix="$acl_final_exec_prefix"
15437  eval x=\"$x\"
15438  exec_prefix="$acl_save_exec_prefix"
15439  prefix="$acl_save_prefix"
15440
15441              case "$x" in
15442                -L*)
15443                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15444                                    if test -n "$acl_shlibext"; then
15445                    if test -f "$dir/$libname$shrext"; then
15446                      found_dir="$dir"
15447                      found_so="$dir/$libname$shrext"
15448                    else
15449                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15450                        ver=`(cd "$dir" && \
15451                              for f in "$libname$shrext".*; do echo "$f"; done \
15452                              | sed -e "s,^$libname$shrext\\\\.,," \
15453                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15454                              | sed 1q ) 2>/dev/null`
15455                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15456                          found_dir="$dir"
15457                          found_so="$dir/$libname$shrext.$ver"
15458                        fi
15459                      else
15460                        eval library_names=\"$acl_library_names_spec\"
15461                        for f in $library_names; do
15462                          if test -f "$dir/$f"; then
15463                            found_dir="$dir"
15464                            found_so="$dir/$f"
15465                            break
15466                          fi
15467                        done
15468                      fi
15469                    fi
15470                  fi
15471                                    if test "X$found_dir" = "X"; then
15472                    if test -f "$dir/$libname.$acl_libext"; then
15473                      found_dir="$dir"
15474                      found_a="$dir/$libname.$acl_libext"
15475                    fi
15476                  fi
15477                  if test "X$found_dir" != "X"; then
15478                    if test -f "$dir/$libname.la"; then
15479                      found_la="$dir/$libname.la"
15480                    fi
15481                  fi
15482                  ;;
15483              esac
15484              if test "X$found_dir" != "X"; then
15485                break
15486              fi
15487            done
15488          fi
15489          if test "X$found_dir" != "X"; then
15490                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15491            if test "X$found_so" != "X"; then
15492                                                        if test "$enable_rpath" = no \
15493                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15494                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15495                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15496              else
15497                                                                                haveit=
15498                for x in $ltrpathdirs; do
15499                  if test "X$x" = "X$found_dir"; then
15500                    haveit=yes
15501                    break
15502                  fi
15503                done
15504                if test -z "$haveit"; then
15505                  ltrpathdirs="$ltrpathdirs $found_dir"
15506                fi
15507                                if test "$acl_hardcode_direct" = yes; then
15508                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15509                else
15510                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15511                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15512                                                            haveit=
15513                    for x in $rpathdirs; do
15514                      if test "X$x" = "X$found_dir"; then
15515                        haveit=yes
15516                        break
15517                      fi
15518                    done
15519                    if test -z "$haveit"; then
15520                      rpathdirs="$rpathdirs $found_dir"
15521                    fi
15522                  else
15523                                                                                haveit=
15524                    for x in $LDFLAGS $LIBICONV; do
15525
15526  acl_save_prefix="$prefix"
15527  prefix="$acl_final_prefix"
15528  acl_save_exec_prefix="$exec_prefix"
15529  exec_prefix="$acl_final_exec_prefix"
15530  eval x=\"$x\"
15531  exec_prefix="$acl_save_exec_prefix"
15532  prefix="$acl_save_prefix"
15533
15534                      if test "X$x" = "X-L$found_dir"; then
15535                        haveit=yes
15536                        break
15537                      fi
15538                    done
15539                    if test -z "$haveit"; then
15540                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15541                    fi
15542                    if test "$acl_hardcode_minus_L" != no; then
15543                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15544                    else
15545                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15546                    fi
15547                  fi
15548                fi
15549              fi
15550            else
15551              if test "X$found_a" != "X"; then
15552                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15553              else
15554                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15555              fi
15556            fi
15557                        additional_includedir=
15558            case "$found_dir" in
15559              */$acl_libdirstem | */$acl_libdirstem/)
15560                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15561                if test "$name" = 'iconv'; then
15562                  LIBICONV_PREFIX="$basedir"
15563                fi
15564                additional_includedir="$basedir/include"
15565                ;;
15566              */$acl_libdirstem2 | */$acl_libdirstem2/)
15567                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15568                if test "$name" = 'iconv'; then
15569                  LIBICONV_PREFIX="$basedir"
15570                fi
15571                additional_includedir="$basedir/include"
15572                ;;
15573            esac
15574            if test "X$additional_includedir" != "X"; then
15575                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15576                haveit=
15577                if test "X$additional_includedir" = "X/usr/local/include"; then
15578                  if test -n "$GCC"; then
15579                    case $host_os in
15580                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15581                    esac
15582                  fi
15583                fi
15584                if test -z "$haveit"; then
15585                  for x in $CPPFLAGS $INCICONV; do
15586
15587  acl_save_prefix="$prefix"
15588  prefix="$acl_final_prefix"
15589  acl_save_exec_prefix="$exec_prefix"
15590  exec_prefix="$acl_final_exec_prefix"
15591  eval x=\"$x\"
15592  exec_prefix="$acl_save_exec_prefix"
15593  prefix="$acl_save_prefix"
15594
15595                    if test "X$x" = "X-I$additional_includedir"; then
15596                      haveit=yes
15597                      break
15598                    fi
15599                  done
15600                  if test -z "$haveit"; then
15601                    if test -d "$additional_includedir"; then
15602                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15603                    fi
15604                  fi
15605                fi
15606              fi
15607            fi
15608                        if test -n "$found_la"; then
15609                                                        save_libdir="$libdir"
15610              case "$found_la" in
15611                */* | *\\*) . "$found_la" ;;
15612                *) . "./$found_la" ;;
15613              esac
15614              libdir="$save_libdir"
15615                            for dep in $dependency_libs; do
15616                case "$dep" in
15617                  -L*)
15618                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15619                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15620                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15621                      haveit=
15622                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15623                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15624                        if test -n "$GCC"; then
15625                          case $host_os in
15626                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15627                          esac
15628                        fi
15629                      fi
15630                      if test -z "$haveit"; then
15631                        haveit=
15632                        for x in $LDFLAGS $LIBICONV; do
15633
15634  acl_save_prefix="$prefix"
15635  prefix="$acl_final_prefix"
15636  acl_save_exec_prefix="$exec_prefix"
15637  exec_prefix="$acl_final_exec_prefix"
15638  eval x=\"$x\"
15639  exec_prefix="$acl_save_exec_prefix"
15640  prefix="$acl_save_prefix"
15641
15642                          if test "X$x" = "X-L$additional_libdir"; then
15643                            haveit=yes
15644                            break
15645                          fi
15646                        done
15647                        if test -z "$haveit"; then
15648                          if test -d "$additional_libdir"; then
15649                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15650                          fi
15651                        fi
15652                        haveit=
15653                        for x in $LDFLAGS $LTLIBICONV; do
15654
15655  acl_save_prefix="$prefix"
15656  prefix="$acl_final_prefix"
15657  acl_save_exec_prefix="$exec_prefix"
15658  exec_prefix="$acl_final_exec_prefix"
15659  eval x=\"$x\"
15660  exec_prefix="$acl_save_exec_prefix"
15661  prefix="$acl_save_prefix"
15662
15663                          if test "X$x" = "X-L$additional_libdir"; then
15664                            haveit=yes
15665                            break
15666                          fi
15667                        done
15668                        if test -z "$haveit"; then
15669                          if test -d "$additional_libdir"; then
15670                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15671                          fi
15672                        fi
15673                      fi
15674                    fi
15675                    ;;
15676                  -R*)
15677                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
15678                    if test "$enable_rpath" != no; then
15679                                                                  haveit=
15680                      for x in $rpathdirs; do
15681                        if test "X$x" = "X$dir"; then
15682                          haveit=yes
15683                          break
15684                        fi
15685                      done
15686                      if test -z "$haveit"; then
15687                        rpathdirs="$rpathdirs $dir"
15688                      fi
15689                                                                  haveit=
15690                      for x in $ltrpathdirs; do
15691                        if test "X$x" = "X$dir"; then
15692                          haveit=yes
15693                          break
15694                        fi
15695                      done
15696                      if test -z "$haveit"; then
15697                        ltrpathdirs="$ltrpathdirs $dir"
15698                      fi
15699                    fi
15700                    ;;
15701                  -l*)
15702                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15703                    ;;
15704                  *.la)
15705                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15706                    ;;
15707                  *)
15708                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15709                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15710                    ;;
15711                esac
15712              done
15713            fi
15714          else
15715                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15716            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15717          fi
15718        fi
15719      fi
15720    done
15721  done
15722  if test "X$rpathdirs" != "X"; then
15723    if test -n "$acl_hardcode_libdir_separator"; then
15724                        alldirs=
15725      for found_dir in $rpathdirs; do
15726        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15727      done
15728            acl_save_libdir="$libdir"
15729      libdir="$alldirs"
15730      eval flag=\"$acl_hardcode_libdir_flag_spec\"
15731      libdir="$acl_save_libdir"
15732      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15733    else
15734            for found_dir in $rpathdirs; do
15735        acl_save_libdir="$libdir"
15736        libdir="$found_dir"
15737        eval flag=\"$acl_hardcode_libdir_flag_spec\"
15738        libdir="$acl_save_libdir"
15739        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15740      done
15741    fi
15742  fi
15743  if test "X$ltrpathdirs" != "X"; then
15744            for found_dir in $ltrpathdirs; do
15745      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15746    done
15747  fi
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15780printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
15781if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
15782then :
15783  printf %s "(cached) " >&6
15784else $as_nop
15785  gt_save_LIBS="$LIBS"
15786     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15787     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788/* end confdefs.h.  */
15789#include <CoreFoundation/CFPreferences.h>
15790int
15791main (void)
15792{
15793CFPreferencesCopyAppValue(NULL, NULL)
15794  ;
15795  return 0;
15796}
15797_ACEOF
15798if ac_fn_c_try_link "$LINENO"
15799then :
15800  gt_cv_func_CFPreferencesCopyAppValue=yes
15801else $as_nop
15802  gt_cv_func_CFPreferencesCopyAppValue=no
15803fi
15804rm -f core conftest.err conftest.$ac_objext conftest.beam \
15805    conftest$ac_exeext conftest.$ac_ext
15806     LIBS="$gt_save_LIBS"
15807fi
15808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15809printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15810  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15811
15812printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15813
15814  fi
15815    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15816printf %s "checking for CFLocaleCopyCurrent... " >&6; }
15817if test ${gt_cv_func_CFLocaleCopyCurrent+y}
15818then :
15819  printf %s "(cached) " >&6
15820else $as_nop
15821  gt_save_LIBS="$LIBS"
15822     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15823     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824/* end confdefs.h.  */
15825#include <CoreFoundation/CFLocale.h>
15826int
15827main (void)
15828{
15829CFLocaleCopyCurrent();
15830  ;
15831  return 0;
15832}
15833_ACEOF
15834if ac_fn_c_try_link "$LINENO"
15835then :
15836  gt_cv_func_CFLocaleCopyCurrent=yes
15837else $as_nop
15838  gt_cv_func_CFLocaleCopyCurrent=no
15839fi
15840rm -f core conftest.err conftest.$ac_objext conftest.beam \
15841    conftest$ac_exeext conftest.$ac_ext
15842     LIBS="$gt_save_LIBS"
15843fi
15844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15845printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15846  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15847
15848printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15849
15850  fi
15851  INTL_MACOSX_LIBS=
15852  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15853    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15854  fi
15855
15856
15857
15858
15859
15860
15861  LIBINTL=
15862  LTLIBINTL=
15863  POSUB=
15864
15865    case " $gt_needs " in
15866    *" need-formatstring-macros "*) gt_api_version=3 ;;
15867    *" need-ngettext "*) gt_api_version=2 ;;
15868    *) gt_api_version=1 ;;
15869  esac
15870  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15871  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15872
15873    if test "$USE_NLS" = "yes"; then
15874    gt_use_preinstalled_gnugettext=no
15875
15876
15877        if test $gt_api_version -ge 3; then
15878          gt_revision_test_code='
15879#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15880#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15881#endif
15882typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15883'
15884        else
15885          gt_revision_test_code=
15886        fi
15887        if test $gt_api_version -ge 2; then
15888          gt_expression_test_code=' + * ngettext ("", "", 0)'
15889        else
15890          gt_expression_test_code=
15891        fi
15892
15893        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15894printf %s "checking for GNU gettext in libc... " >&6; }
15895if eval test \${$gt_func_gnugettext_libc+y}
15896then :
15897  printf %s "(cached) " >&6
15898else $as_nop
15899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900/* end confdefs.h.  */
15901
15902#include <libintl.h>
15903#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15904extern int _nl_msg_cat_cntr;
15905extern int *_nl_domain_bindings;
15906#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
15907#else
15908#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15909#endif
15910$gt_revision_test_code
15911
15912int
15913main (void)
15914{
15915
15916bindtextdomain ("", "");
15917return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15918
15919  ;
15920  return 0;
15921}
15922_ACEOF
15923if ac_fn_c_try_link "$LINENO"
15924then :
15925  eval "$gt_func_gnugettext_libc=yes"
15926else $as_nop
15927  eval "$gt_func_gnugettext_libc=no"
15928fi
15929rm -f core conftest.err conftest.$ac_objext conftest.beam \
15930    conftest$ac_exeext conftest.$ac_ext
15931fi
15932eval ac_res=\$$gt_func_gnugettext_libc
15933	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15934printf "%s\n" "$ac_res" >&6; }
15935
15936        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15937
15938
15939
15940
15941
15942          am_save_CPPFLAGS="$CPPFLAGS"
15943
15944  for element in $INCICONV; do
15945    haveit=
15946    for x in $CPPFLAGS; do
15947
15948  acl_save_prefix="$prefix"
15949  prefix="$acl_final_prefix"
15950  acl_save_exec_prefix="$exec_prefix"
15951  exec_prefix="$acl_final_exec_prefix"
15952  eval x=\"$x\"
15953  exec_prefix="$acl_save_exec_prefix"
15954  prefix="$acl_save_prefix"
15955
15956      if test "X$x" = "X$element"; then
15957        haveit=yes
15958        break
15959      fi
15960    done
15961    if test -z "$haveit"; then
15962      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15963    fi
15964  done
15965
15966
15967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15968printf %s "checking for iconv... " >&6; }
15969if test ${am_cv_func_iconv+y}
15970then :
15971  printf %s "(cached) " >&6
15972else $as_nop
15973
15974    am_cv_func_iconv="no, consider installing GNU libiconv"
15975    am_cv_lib_iconv=no
15976    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977/* end confdefs.h.  */
15978
15979#include <stdlib.h>
15980#include <iconv.h>
15981
15982int
15983main (void)
15984{
15985iconv_t cd = iconv_open("","");
15986           iconv(cd,NULL,NULL,NULL,NULL);
15987           iconv_close(cd);
15988  ;
15989  return 0;
15990}
15991_ACEOF
15992if ac_fn_c_try_link "$LINENO"
15993then :
15994  am_cv_func_iconv=yes
15995fi
15996rm -f core conftest.err conftest.$ac_objext conftest.beam \
15997    conftest$ac_exeext conftest.$ac_ext
15998    if test "$am_cv_func_iconv" != yes; then
15999      am_save_LIBS="$LIBS"
16000      LIBS="$LIBS $LIBICONV"
16001      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002/* end confdefs.h.  */
16003
16004#include <stdlib.h>
16005#include <iconv.h>
16006
16007int
16008main (void)
16009{
16010iconv_t cd = iconv_open("","");
16011             iconv(cd,NULL,NULL,NULL,NULL);
16012             iconv_close(cd);
16013  ;
16014  return 0;
16015}
16016_ACEOF
16017if ac_fn_c_try_link "$LINENO"
16018then :
16019  am_cv_lib_iconv=yes
16020        am_cv_func_iconv=yes
16021fi
16022rm -f core conftest.err conftest.$ac_objext conftest.beam \
16023    conftest$ac_exeext conftest.$ac_ext
16024      LIBS="$am_save_LIBS"
16025    fi
16026
16027fi
16028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16029printf "%s\n" "$am_cv_func_iconv" >&6; }
16030  if test "$am_cv_func_iconv" = yes; then
16031    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16032printf %s "checking for working iconv... " >&6; }
16033if test ${am_cv_func_iconv_works+y}
16034then :
16035  printf %s "(cached) " >&6
16036else $as_nop
16037
16038                  am_save_LIBS="$LIBS"
16039      if test $am_cv_lib_iconv = yes; then
16040        LIBS="$LIBS $LIBICONV"
16041      fi
16042      am_cv_func_iconv_works=no
16043      for ac_iconv_const in '' 'const'; do
16044        if test "$cross_compiling" = yes
16045then :
16046  case "$host_os" in
16047             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16048             *)            am_cv_func_iconv_works="guessing yes" ;;
16049           esac
16050else $as_nop
16051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052/* end confdefs.h.  */
16053
16054#include <iconv.h>
16055#include <string.h>
16056
16057#ifndef ICONV_CONST
16058# define ICONV_CONST $ac_iconv_const
16059#endif
16060
16061int
16062main (void)
16063{
16064int result = 0;
16065  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16066     returns.  */
16067  {
16068    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16069    if (cd_utf8_to_88591 != (iconv_t)(-1))
16070      {
16071        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
16072        char buf[10];
16073        ICONV_CONST char *inptr = input;
16074        size_t inbytesleft = strlen (input);
16075        char *outptr = buf;
16076        size_t outbytesleft = sizeof (buf);
16077        size_t res = iconv (cd_utf8_to_88591,
16078                            &inptr, &inbytesleft,
16079                            &outptr, &outbytesleft);
16080        if (res == 0)
16081          result |= 1;
16082        iconv_close (cd_utf8_to_88591);
16083      }
16084  }
16085  /* Test against Solaris 10 bug: Failures are not distinguishable from
16086     successful returns.  */
16087  {
16088    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16089    if (cd_ascii_to_88591 != (iconv_t)(-1))
16090      {
16091        static ICONV_CONST char input[] = "\263";
16092        char buf[10];
16093        ICONV_CONST char *inptr = input;
16094        size_t inbytesleft = strlen (input);
16095        char *outptr = buf;
16096        size_t outbytesleft = sizeof (buf);
16097        size_t res = iconv (cd_ascii_to_88591,
16098                            &inptr, &inbytesleft,
16099                            &outptr, &outbytesleft);
16100        if (res == 0)
16101          result |= 2;
16102        iconv_close (cd_ascii_to_88591);
16103      }
16104  }
16105  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
16106  {
16107    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16108    if (cd_88591_to_utf8 != (iconv_t)(-1))
16109      {
16110        static ICONV_CONST char input[] = "\304";
16111        static char buf[2] = { (char)0xDE, (char)0xAD };
16112        ICONV_CONST char *inptr = input;
16113        size_t inbytesleft = 1;
16114        char *outptr = buf;
16115        size_t outbytesleft = 1;
16116        size_t res = iconv (cd_88591_to_utf8,
16117                            &inptr, &inbytesleft,
16118                            &outptr, &outbytesleft);
16119        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16120          result |= 4;
16121        iconv_close (cd_88591_to_utf8);
16122      }
16123  }
16124#if 0 /* This bug could be worked around by the caller.  */
16125  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
16126  {
16127    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16128    if (cd_88591_to_utf8 != (iconv_t)(-1))
16129      {
16130        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16131        char buf[50];
16132        ICONV_CONST char *inptr = input;
16133        size_t inbytesleft = strlen (input);
16134        char *outptr = buf;
16135        size_t outbytesleft = sizeof (buf);
16136        size_t res = iconv (cd_88591_to_utf8,
16137                            &inptr, &inbytesleft,
16138                            &outptr, &outbytesleft);
16139        if ((int)res > 0)
16140          result |= 8;
16141        iconv_close (cd_88591_to_utf8);
16142      }
16143  }
16144#endif
16145  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16146     provided.  */
16147  if (/* Try standardized names.  */
16148      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16149      /* Try IRIX, OSF/1 names.  */
16150      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16151      /* Try AIX names.  */
16152      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16153      /* Try HP-UX names.  */
16154      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16155    result |= 16;
16156  return result;
16157
16158  ;
16159  return 0;
16160}
16161_ACEOF
16162if ac_fn_c_try_run "$LINENO"
16163then :
16164  am_cv_func_iconv_works=yes
16165fi
16166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16167  conftest.$ac_objext conftest.beam conftest.$ac_ext
16168fi
16169
16170        test "$am_cv_func_iconv_works" = no || break
16171      done
16172      LIBS="$am_save_LIBS"
16173
16174fi
16175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16176printf "%s\n" "$am_cv_func_iconv_works" >&6; }
16177    case "$am_cv_func_iconv_works" in
16178      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16179      *)   am_func_iconv=yes ;;
16180    esac
16181  else
16182    am_func_iconv=no am_cv_lib_iconv=no
16183  fi
16184  if test "$am_func_iconv" = yes; then
16185
16186printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
16187
16188  fi
16189  if test "$am_cv_lib_iconv" = yes; then
16190    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16191printf %s "checking how to link with libiconv... " >&6; }
16192    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16193printf "%s\n" "$LIBICONV" >&6; }
16194  else
16195            CPPFLAGS="$am_save_CPPFLAGS"
16196    LIBICONV=
16197    LTLIBICONV=
16198  fi
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210    use_additional=yes
16211
16212  acl_save_prefix="$prefix"
16213  prefix="$acl_final_prefix"
16214  acl_save_exec_prefix="$exec_prefix"
16215  exec_prefix="$acl_final_exec_prefix"
16216
16217    eval additional_includedir=\"$includedir\"
16218    eval additional_libdir=\"$libdir\"
16219
16220  exec_prefix="$acl_save_exec_prefix"
16221  prefix="$acl_save_prefix"
16222
16223
16224# Check whether --with-libintl-prefix was given.
16225if test ${with_libintl_prefix+y}
16226then :
16227  withval=$with_libintl_prefix;
16228    if test "X$withval" = "Xno"; then
16229      use_additional=no
16230    else
16231      if test "X$withval" = "X"; then
16232
16233  acl_save_prefix="$prefix"
16234  prefix="$acl_final_prefix"
16235  acl_save_exec_prefix="$exec_prefix"
16236  exec_prefix="$acl_final_exec_prefix"
16237
16238          eval additional_includedir=\"$includedir\"
16239          eval additional_libdir=\"$libdir\"
16240
16241  exec_prefix="$acl_save_exec_prefix"
16242  prefix="$acl_save_prefix"
16243
16244      else
16245        additional_includedir="$withval/include"
16246        additional_libdir="$withval/$acl_libdirstem"
16247        if test "$acl_libdirstem2" != "$acl_libdirstem" \
16248           && ! test -d "$withval/$acl_libdirstem"; then
16249          additional_libdir="$withval/$acl_libdirstem2"
16250        fi
16251      fi
16252    fi
16253
16254fi
16255
16256      LIBINTL=
16257  LTLIBINTL=
16258  INCINTL=
16259  LIBINTL_PREFIX=
16260      HAVE_LIBINTL=
16261  rpathdirs=
16262  ltrpathdirs=
16263  names_already_handled=
16264  names_next_round='intl '
16265  while test -n "$names_next_round"; do
16266    names_this_round="$names_next_round"
16267    names_next_round=
16268    for name in $names_this_round; do
16269      already_handled=
16270      for n in $names_already_handled; do
16271        if test "$n" = "$name"; then
16272          already_handled=yes
16273          break
16274        fi
16275      done
16276      if test -z "$already_handled"; then
16277        names_already_handled="$names_already_handled $name"
16278                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16279        eval value=\"\$HAVE_LIB$uppername\"
16280        if test -n "$value"; then
16281          if test "$value" = yes; then
16282            eval value=\"\$LIB$uppername\"
16283            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16284            eval value=\"\$LTLIB$uppername\"
16285            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16286          else
16287                                    :
16288          fi
16289        else
16290                              found_dir=
16291          found_la=
16292          found_so=
16293          found_a=
16294          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16295          if test -n "$acl_shlibext"; then
16296            shrext=".$acl_shlibext"             # typically: shrext=.so
16297          else
16298            shrext=
16299          fi
16300          if test $use_additional = yes; then
16301            dir="$additional_libdir"
16302                                    if test -n "$acl_shlibext"; then
16303              if test -f "$dir/$libname$shrext"; then
16304                found_dir="$dir"
16305                found_so="$dir/$libname$shrext"
16306              else
16307                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16308                  ver=`(cd "$dir" && \
16309                        for f in "$libname$shrext".*; do echo "$f"; done \
16310                        | sed -e "s,^$libname$shrext\\\\.,," \
16311                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16312                        | sed 1q ) 2>/dev/null`
16313                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16314                    found_dir="$dir"
16315                    found_so="$dir/$libname$shrext.$ver"
16316                  fi
16317                else
16318                  eval library_names=\"$acl_library_names_spec\"
16319                  for f in $library_names; do
16320                    if test -f "$dir/$f"; then
16321                      found_dir="$dir"
16322                      found_so="$dir/$f"
16323                      break
16324                    fi
16325                  done
16326                fi
16327              fi
16328            fi
16329                        if test "X$found_dir" = "X"; then
16330              if test -f "$dir/$libname.$acl_libext"; then
16331                found_dir="$dir"
16332                found_a="$dir/$libname.$acl_libext"
16333              fi
16334            fi
16335            if test "X$found_dir" != "X"; then
16336              if test -f "$dir/$libname.la"; then
16337                found_la="$dir/$libname.la"
16338              fi
16339            fi
16340          fi
16341          if test "X$found_dir" = "X"; then
16342            for x in $LDFLAGS $LTLIBINTL; do
16343
16344  acl_save_prefix="$prefix"
16345  prefix="$acl_final_prefix"
16346  acl_save_exec_prefix="$exec_prefix"
16347  exec_prefix="$acl_final_exec_prefix"
16348  eval x=\"$x\"
16349  exec_prefix="$acl_save_exec_prefix"
16350  prefix="$acl_save_prefix"
16351
16352              case "$x" in
16353                -L*)
16354                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16355                                    if test -n "$acl_shlibext"; then
16356                    if test -f "$dir/$libname$shrext"; then
16357                      found_dir="$dir"
16358                      found_so="$dir/$libname$shrext"
16359                    else
16360                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16361                        ver=`(cd "$dir" && \
16362                              for f in "$libname$shrext".*; do echo "$f"; done \
16363                              | sed -e "s,^$libname$shrext\\\\.,," \
16364                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16365                              | sed 1q ) 2>/dev/null`
16366                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16367                          found_dir="$dir"
16368                          found_so="$dir/$libname$shrext.$ver"
16369                        fi
16370                      else
16371                        eval library_names=\"$acl_library_names_spec\"
16372                        for f in $library_names; do
16373                          if test -f "$dir/$f"; then
16374                            found_dir="$dir"
16375                            found_so="$dir/$f"
16376                            break
16377                          fi
16378                        done
16379                      fi
16380                    fi
16381                  fi
16382                                    if test "X$found_dir" = "X"; then
16383                    if test -f "$dir/$libname.$acl_libext"; then
16384                      found_dir="$dir"
16385                      found_a="$dir/$libname.$acl_libext"
16386                    fi
16387                  fi
16388                  if test "X$found_dir" != "X"; then
16389                    if test -f "$dir/$libname.la"; then
16390                      found_la="$dir/$libname.la"
16391                    fi
16392                  fi
16393                  ;;
16394              esac
16395              if test "X$found_dir" != "X"; then
16396                break
16397              fi
16398            done
16399          fi
16400          if test "X$found_dir" != "X"; then
16401                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16402            if test "X$found_so" != "X"; then
16403                                                        if test "$enable_rpath" = no \
16404                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16405                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16406                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16407              else
16408                                                                                haveit=
16409                for x in $ltrpathdirs; do
16410                  if test "X$x" = "X$found_dir"; then
16411                    haveit=yes
16412                    break
16413                  fi
16414                done
16415                if test -z "$haveit"; then
16416                  ltrpathdirs="$ltrpathdirs $found_dir"
16417                fi
16418                                if test "$acl_hardcode_direct" = yes; then
16419                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16420                else
16421                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16422                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16423                                                            haveit=
16424                    for x in $rpathdirs; do
16425                      if test "X$x" = "X$found_dir"; then
16426                        haveit=yes
16427                        break
16428                      fi
16429                    done
16430                    if test -z "$haveit"; then
16431                      rpathdirs="$rpathdirs $found_dir"
16432                    fi
16433                  else
16434                                                                                haveit=
16435                    for x in $LDFLAGS $LIBINTL; do
16436
16437  acl_save_prefix="$prefix"
16438  prefix="$acl_final_prefix"
16439  acl_save_exec_prefix="$exec_prefix"
16440  exec_prefix="$acl_final_exec_prefix"
16441  eval x=\"$x\"
16442  exec_prefix="$acl_save_exec_prefix"
16443  prefix="$acl_save_prefix"
16444
16445                      if test "X$x" = "X-L$found_dir"; then
16446                        haveit=yes
16447                        break
16448                      fi
16449                    done
16450                    if test -z "$haveit"; then
16451                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16452                    fi
16453                    if test "$acl_hardcode_minus_L" != no; then
16454                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16455                    else
16456                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16457                    fi
16458                  fi
16459                fi
16460              fi
16461            else
16462              if test "X$found_a" != "X"; then
16463                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16464              else
16465                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16466              fi
16467            fi
16468                        additional_includedir=
16469            case "$found_dir" in
16470              */$acl_libdirstem | */$acl_libdirstem/)
16471                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16472                if test "$name" = 'intl'; then
16473                  LIBINTL_PREFIX="$basedir"
16474                fi
16475                additional_includedir="$basedir/include"
16476                ;;
16477              */$acl_libdirstem2 | */$acl_libdirstem2/)
16478                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16479                if test "$name" = 'intl'; then
16480                  LIBINTL_PREFIX="$basedir"
16481                fi
16482                additional_includedir="$basedir/include"
16483                ;;
16484            esac
16485            if test "X$additional_includedir" != "X"; then
16486                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16487                haveit=
16488                if test "X$additional_includedir" = "X/usr/local/include"; then
16489                  if test -n "$GCC"; then
16490                    case $host_os in
16491                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16492                    esac
16493                  fi
16494                fi
16495                if test -z "$haveit"; then
16496                  for x in $CPPFLAGS $INCINTL; do
16497
16498  acl_save_prefix="$prefix"
16499  prefix="$acl_final_prefix"
16500  acl_save_exec_prefix="$exec_prefix"
16501  exec_prefix="$acl_final_exec_prefix"
16502  eval x=\"$x\"
16503  exec_prefix="$acl_save_exec_prefix"
16504  prefix="$acl_save_prefix"
16505
16506                    if test "X$x" = "X-I$additional_includedir"; then
16507                      haveit=yes
16508                      break
16509                    fi
16510                  done
16511                  if test -z "$haveit"; then
16512                    if test -d "$additional_includedir"; then
16513                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16514                    fi
16515                  fi
16516                fi
16517              fi
16518            fi
16519                        if test -n "$found_la"; then
16520                                                        save_libdir="$libdir"
16521              case "$found_la" in
16522                */* | *\\*) . "$found_la" ;;
16523                *) . "./$found_la" ;;
16524              esac
16525              libdir="$save_libdir"
16526                            for dep in $dependency_libs; do
16527                case "$dep" in
16528                  -L*)
16529                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16530                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16531                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16532                      haveit=
16533                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16534                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16535                        if test -n "$GCC"; then
16536                          case $host_os in
16537                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16538                          esac
16539                        fi
16540                      fi
16541                      if test -z "$haveit"; then
16542                        haveit=
16543                        for x in $LDFLAGS $LIBINTL; do
16544
16545  acl_save_prefix="$prefix"
16546  prefix="$acl_final_prefix"
16547  acl_save_exec_prefix="$exec_prefix"
16548  exec_prefix="$acl_final_exec_prefix"
16549  eval x=\"$x\"
16550  exec_prefix="$acl_save_exec_prefix"
16551  prefix="$acl_save_prefix"
16552
16553                          if test "X$x" = "X-L$additional_libdir"; then
16554                            haveit=yes
16555                            break
16556                          fi
16557                        done
16558                        if test -z "$haveit"; then
16559                          if test -d "$additional_libdir"; then
16560                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16561                          fi
16562                        fi
16563                        haveit=
16564                        for x in $LDFLAGS $LTLIBINTL; do
16565
16566  acl_save_prefix="$prefix"
16567  prefix="$acl_final_prefix"
16568  acl_save_exec_prefix="$exec_prefix"
16569  exec_prefix="$acl_final_exec_prefix"
16570  eval x=\"$x\"
16571  exec_prefix="$acl_save_exec_prefix"
16572  prefix="$acl_save_prefix"
16573
16574                          if test "X$x" = "X-L$additional_libdir"; then
16575                            haveit=yes
16576                            break
16577                          fi
16578                        done
16579                        if test -z "$haveit"; then
16580                          if test -d "$additional_libdir"; then
16581                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16582                          fi
16583                        fi
16584                      fi
16585                    fi
16586                    ;;
16587                  -R*)
16588                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16589                    if test "$enable_rpath" != no; then
16590                                                                  haveit=
16591                      for x in $rpathdirs; do
16592                        if test "X$x" = "X$dir"; then
16593                          haveit=yes
16594                          break
16595                        fi
16596                      done
16597                      if test -z "$haveit"; then
16598                        rpathdirs="$rpathdirs $dir"
16599                      fi
16600                                                                  haveit=
16601                      for x in $ltrpathdirs; do
16602                        if test "X$x" = "X$dir"; then
16603                          haveit=yes
16604                          break
16605                        fi
16606                      done
16607                      if test -z "$haveit"; then
16608                        ltrpathdirs="$ltrpathdirs $dir"
16609                      fi
16610                    fi
16611                    ;;
16612                  -l*)
16613                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16614                    ;;
16615                  *.la)
16616                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16617                    ;;
16618                  *)
16619                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16620                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16621                    ;;
16622                esac
16623              done
16624            fi
16625          else
16626                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16627            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16628          fi
16629        fi
16630      fi
16631    done
16632  done
16633  if test "X$rpathdirs" != "X"; then
16634    if test -n "$acl_hardcode_libdir_separator"; then
16635                        alldirs=
16636      for found_dir in $rpathdirs; do
16637        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16638      done
16639            acl_save_libdir="$libdir"
16640      libdir="$alldirs"
16641      eval flag=\"$acl_hardcode_libdir_flag_spec\"
16642      libdir="$acl_save_libdir"
16643      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16644    else
16645            for found_dir in $rpathdirs; do
16646        acl_save_libdir="$libdir"
16647        libdir="$found_dir"
16648        eval flag=\"$acl_hardcode_libdir_flag_spec\"
16649        libdir="$acl_save_libdir"
16650        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16651      done
16652    fi
16653  fi
16654  if test "X$ltrpathdirs" != "X"; then
16655            for found_dir in $ltrpathdirs; do
16656      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16657    done
16658  fi
16659
16660
16661
16662
16663
16664
16665          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16666printf %s "checking for GNU gettext in libintl... " >&6; }
16667if eval test \${$gt_func_gnugettext_libintl+y}
16668then :
16669  printf %s "(cached) " >&6
16670else $as_nop
16671  gt_save_CPPFLAGS="$CPPFLAGS"
16672            CPPFLAGS="$CPPFLAGS $INCINTL"
16673            gt_save_LIBS="$LIBS"
16674            LIBS="$LIBS $LIBINTL"
16675                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676/* end confdefs.h.  */
16677
16678#include <libintl.h>
16679#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16680extern int _nl_msg_cat_cntr;
16681extern
16682#ifdef __cplusplus
16683"C"
16684#endif
16685const char *_nl_expand_alias (const char *);
16686#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16687#else
16688#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16689#endif
16690$gt_revision_test_code
16691
16692int
16693main (void)
16694{
16695
16696bindtextdomain ("", "");
16697return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16698
16699  ;
16700  return 0;
16701}
16702_ACEOF
16703if ac_fn_c_try_link "$LINENO"
16704then :
16705  eval "$gt_func_gnugettext_libintl=yes"
16706else $as_nop
16707  eval "$gt_func_gnugettext_libintl=no"
16708fi
16709rm -f core conftest.err conftest.$ac_objext conftest.beam \
16710    conftest$ac_exeext conftest.$ac_ext
16711                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16712              LIBS="$LIBS $LIBICONV"
16713              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714/* end confdefs.h.  */
16715
16716#include <libintl.h>
16717#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16718extern int _nl_msg_cat_cntr;
16719extern
16720#ifdef __cplusplus
16721"C"
16722#endif
16723const char *_nl_expand_alias (const char *);
16724#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16725#else
16726#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16727#endif
16728$gt_revision_test_code
16729
16730int
16731main (void)
16732{
16733
16734bindtextdomain ("", "");
16735return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16736
16737  ;
16738  return 0;
16739}
16740_ACEOF
16741if ac_fn_c_try_link "$LINENO"
16742then :
16743  LIBINTL="$LIBINTL $LIBICONV"
16744                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16745                 eval "$gt_func_gnugettext_libintl=yes"
16746
16747fi
16748rm -f core conftest.err conftest.$ac_objext conftest.beam \
16749    conftest$ac_exeext conftest.$ac_ext
16750            fi
16751            CPPFLAGS="$gt_save_CPPFLAGS"
16752            LIBS="$gt_save_LIBS"
16753fi
16754eval ac_res=\$$gt_func_gnugettext_libintl
16755	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16756printf "%s\n" "$ac_res" >&6; }
16757        fi
16758
16759                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16760           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16761                && test "$PACKAGE" != gettext-runtime \
16762                && test "$PACKAGE" != gettext-tools; }; then
16763          gt_use_preinstalled_gnugettext=yes
16764        else
16765                    LIBINTL=
16766          LTLIBINTL=
16767          INCINTL=
16768        fi
16769
16770
16771
16772    if test -n "$INTL_MACOSX_LIBS"; then
16773      if test "$gt_use_preinstalled_gnugettext" = "yes" \
16774         || test "$nls_cv_use_gnu_gettext" = "yes"; then
16775                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16776        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16777      fi
16778    fi
16779
16780    if test "$gt_use_preinstalled_gnugettext" = "yes" \
16781       || test "$nls_cv_use_gnu_gettext" = "yes"; then
16782
16783printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
16784
16785    else
16786      USE_NLS=no
16787    fi
16788  fi
16789
16790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16791printf %s "checking whether to use NLS... " >&6; }
16792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16793printf "%s\n" "$USE_NLS" >&6; }
16794  if test "$USE_NLS" = "yes"; then
16795    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16796printf %s "checking where the gettext function comes from... " >&6; }
16797    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16798      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16799        gt_source="external libintl"
16800      else
16801        gt_source="libc"
16802      fi
16803    else
16804      gt_source="included intl directory"
16805    fi
16806    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16807printf "%s\n" "$gt_source" >&6; }
16808  fi
16809
16810  if test "$USE_NLS" = "yes"; then
16811
16812    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16813      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16814        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16815printf %s "checking how to link with libintl... " >&6; }
16816        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16817printf "%s\n" "$LIBINTL" >&6; }
16818
16819  for element in $INCINTL; do
16820    haveit=
16821    for x in $CPPFLAGS; do
16822
16823  acl_save_prefix="$prefix"
16824  prefix="$acl_final_prefix"
16825  acl_save_exec_prefix="$exec_prefix"
16826  exec_prefix="$acl_final_exec_prefix"
16827  eval x=\"$x\"
16828  exec_prefix="$acl_save_exec_prefix"
16829  prefix="$acl_save_prefix"
16830
16831      if test "X$x" = "X$element"; then
16832        haveit=yes
16833        break
16834      fi
16835    done
16836    if test -z "$haveit"; then
16837      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16838    fi
16839  done
16840
16841      fi
16842
16843
16844printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
16845
16846
16847printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16848
16849    fi
16850
16851        POSUB=po
16852  fi
16853
16854
16855
16856    INTLLIBS="$LIBINTL"
16857
16858
16859
16860
16861
16862
16863
16864
16865if test "$os_win32" = "yes"; then
16866  # Extract the first word of "lib.exe", so it can be a program name with args.
16867set dummy lib.exe; ac_word=$2
16868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16869printf %s "checking for $ac_word... " >&6; }
16870if test ${ac_cv_prog_ms_librarian+y}
16871then :
16872  printf %s "(cached) " >&6
16873else $as_nop
16874  if test -n "$ms_librarian"; then
16875  ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
16876else
16877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16878for as_dir in $PATH
16879do
16880  IFS=$as_save_IFS
16881  case $as_dir in #(((
16882    '') as_dir=./ ;;
16883    */) ;;
16884    *) as_dir=$as_dir/ ;;
16885  esac
16886    for ac_exec_ext in '' $ac_executable_extensions; do
16887  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16888    ac_cv_prog_ms_librarian="yes"
16889    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16890    break 2
16891  fi
16892done
16893  done
16894IFS=$as_save_IFS
16895
16896  test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
16897fi
16898fi
16899ms_librarian=$ac_cv_prog_ms_librarian
16900if test -n "$ms_librarian"; then
16901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
16902printf "%s\n" "$ms_librarian" >&6; }
16903else
16904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905printf "%s\n" "no" >&6; }
16906fi
16907
16908
16909fi
16910 if test x$ms_librarian = xyes; then
16911  MS_LIB_AVAILABLE_TRUE=
16912  MS_LIB_AVAILABLE_FALSE='#'
16913else
16914  MS_LIB_AVAILABLE_TRUE='#'
16915  MS_LIB_AVAILABLE_FALSE=
16916fi
16917
16918
16919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16920printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16921if test ${ac_cv_c_undeclared_builtin_options+y}
16922then :
16923  printf %s "(cached) " >&6
16924else $as_nop
16925  ac_save_CFLAGS=$CFLAGS
16926   ac_cv_c_undeclared_builtin_options='cannot detect'
16927   for ac_arg in '' -fno-builtin; do
16928     CFLAGS="$ac_save_CFLAGS $ac_arg"
16929     # This test program should *not* compile successfully.
16930     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16931/* end confdefs.h.  */
16932
16933int
16934main (void)
16935{
16936(void) strchr;
16937  ;
16938  return 0;
16939}
16940_ACEOF
16941if ac_fn_c_try_compile "$LINENO"
16942then :
16943
16944else $as_nop
16945  # This test program should compile successfully.
16946        # No library function is consistently available on
16947        # freestanding implementations, so test against a dummy
16948        # declaration.  Include always-available headers on the
16949        # off chance that they somehow elicit warnings.
16950        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951/* end confdefs.h.  */
16952#include <float.h>
16953#include <limits.h>
16954#include <stdarg.h>
16955#include <stddef.h>
16956extern void ac_decl (int, char *);
16957
16958int
16959main (void)
16960{
16961(void) ac_decl (0, (char *) 0);
16962  (void) ac_decl;
16963
16964  ;
16965  return 0;
16966}
16967_ACEOF
16968if ac_fn_c_try_compile "$LINENO"
16969then :
16970  if test x"$ac_arg" = x
16971then :
16972  ac_cv_c_undeclared_builtin_options='none needed'
16973else $as_nop
16974  ac_cv_c_undeclared_builtin_options=$ac_arg
16975fi
16976          break
16977fi
16978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16979fi
16980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16981    done
16982    CFLAGS=$ac_save_CFLAGS
16983
16984fi
16985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16986printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16987  case $ac_cv_c_undeclared_builtin_options in #(
16988  'cannot detect') :
16989    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16990printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16991as_fn_error $? "cannot make $CC report undeclared builtins
16992See \`config.log' for more details" "$LINENO" 5; } ;; #(
16993  'none needed') :
16994    ac_c_undeclared_builtin_options='' ;; #(
16995  *) :
16996    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16997esac
16998
16999ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
17000if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
17001then :
17002  SUNCC="yes"
17003else $as_nop
17004  SUNCC="no"
17005fi
17006WARN_CFLAGS=""
17007WARNING_CPP_DIRECTIVE="no"
17008if test "x$GCC" = "xyes"; then
17009	WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
17010	-Wmissing-prototypes -Wmissing-declarations \
17011	-Wnested-externs -fno-strict-aliasing"
17012	WARNING_CPP_DIRECTIVE="yes"
17013elif test "x$SUNCC" = "xyes"; then
17014	WARN_CFLAGS="-v -fd"
17015	WARNING_CPP_DIRECTIVE="yes"
17016fi
17017if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
17018
17019printf "%s\n" "#define HAVE_WARNING_CPP_DIRECTIVE 1" >>confdefs.h
17020
17021fi
17022
17023
17024
17025
17026# Put a plausible default for CC_FOR_BUILD in Makefile.
17027if test -z "$CC_FOR_BUILD"; then
17028  if test "x$cross_compiling" = "xno"; then
17029    CC_FOR_BUILD='$(CC)'
17030  else
17031    CC_FOR_BUILD=gcc
17032  fi
17033fi
17034
17035# Also set EXEEXT_FOR_BUILD.
17036if test "x$cross_compiling" = "xno"; then
17037  EXEEXT_FOR_BUILD='$(EXEEXT)'
17038else
17039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
17040printf %s "checking for build system executable suffix... " >&6; }
17041if test ${bfd_cv_build_exeext+y}
17042then :
17043  printf %s "(cached) " >&6
17044else $as_nop
17045  rm -f conftest*
17046     echo 'int main () { return 0; }' > conftest.c
17047     bfd_cv_build_exeext=
17048     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
17049     for file in conftest.*; do
17050       case $file in
17051       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
17052       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
17053       esac
17054     done
17055     rm -f conftest*
17056     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
17057fi
17058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
17059printf "%s\n" "$bfd_cv_build_exeext" >&6; }
17060  EXEEXT_FOR_BUILD=""
17061  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
17062fi
17063
17064
17065 if test $cross_compiling = yes; then
17066  CROSS_COMPILING_TRUE=
17067  CROSS_COMPILING_FALSE='#'
17068else
17069  CROSS_COMPILING_TRUE='#'
17070  CROSS_COMPILING_FALSE=
17071fi
17072
17073 if test "$enable_shared" = "yes"; then
17074  ENABLE_SHARED_TRUE=
17075  ENABLE_SHARED_FALSE='#'
17076else
17077  ENABLE_SHARED_TRUE='#'
17078  ENABLE_SHARED_FALSE=
17079fi
17080
17081
17082
17083
17084# Check whether --with-arch was given.
17085if test ${with_arch+y}
17086then :
17087  withval=$with_arch; arch="$withval"
17088else $as_nop
17089  arch=auto
17090fi
17091
17092
17093if test "x$arch" != xauto; then
17094
17095printf "%s\n" "#define FC_ARCHITECTURE \"$arch\"" >>confdefs.h
17096
17097fi
17098
17099
17100
17101# Checks for header files.
17102ac_header_dirent=no
17103for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17104  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17106printf %s "checking for $ac_hdr that defines DIR... " >&6; }
17107if eval test \${$as_ac_Header+y}
17108then :
17109  printf %s "(cached) " >&6
17110else $as_nop
17111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112/* end confdefs.h.  */
17113#include <sys/types.h>
17114#include <$ac_hdr>
17115
17116int
17117main (void)
17118{
17119if ((DIR *) 0)
17120return 0;
17121  ;
17122  return 0;
17123}
17124_ACEOF
17125if ac_fn_c_try_compile "$LINENO"
17126then :
17127  eval "$as_ac_Header=yes"
17128else $as_nop
17129  eval "$as_ac_Header=no"
17130fi
17131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17132fi
17133eval ac_res=\$$as_ac_Header
17134	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17135printf "%s\n" "$ac_res" >&6; }
17136if eval test \"x\$"$as_ac_Header"\" = x"yes"
17137then :
17138  cat >>confdefs.h <<_ACEOF
17139#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
17140_ACEOF
17141
17142ac_header_dirent=$ac_hdr; break
17143fi
17144
17145done
17146# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17147if test $ac_header_dirent = dirent.h; then
17148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17149printf %s "checking for library containing opendir... " >&6; }
17150if test ${ac_cv_search_opendir+y}
17151then :
17152  printf %s "(cached) " >&6
17153else $as_nop
17154  ac_func_search_save_LIBS=$LIBS
17155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156/* end confdefs.h.  */
17157
17158/* Override any GCC internal prototype to avoid an error.
17159   Use char because int might match the return type of a GCC
17160   builtin and then its argument prototype would still apply.  */
17161char opendir ();
17162int
17163main (void)
17164{
17165return opendir ();
17166  ;
17167  return 0;
17168}
17169_ACEOF
17170for ac_lib in '' dir
17171do
17172  if test -z "$ac_lib"; then
17173    ac_res="none required"
17174  else
17175    ac_res=-l$ac_lib
17176    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17177  fi
17178  if ac_fn_c_try_link "$LINENO"
17179then :
17180  ac_cv_search_opendir=$ac_res
17181fi
17182rm -f core conftest.err conftest.$ac_objext conftest.beam \
17183    conftest$ac_exeext
17184  if test ${ac_cv_search_opendir+y}
17185then :
17186  break
17187fi
17188done
17189if test ${ac_cv_search_opendir+y}
17190then :
17191
17192else $as_nop
17193  ac_cv_search_opendir=no
17194fi
17195rm conftest.$ac_ext
17196LIBS=$ac_func_search_save_LIBS
17197fi
17198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17199printf "%s\n" "$ac_cv_search_opendir" >&6; }
17200ac_res=$ac_cv_search_opendir
17201if test "$ac_res" != no
17202then :
17203  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17204
17205fi
17206
17207else
17208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17209printf %s "checking for library containing opendir... " >&6; }
17210if test ${ac_cv_search_opendir+y}
17211then :
17212  printf %s "(cached) " >&6
17213else $as_nop
17214  ac_func_search_save_LIBS=$LIBS
17215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216/* end confdefs.h.  */
17217
17218/* Override any GCC internal prototype to avoid an error.
17219   Use char because int might match the return type of a GCC
17220   builtin and then its argument prototype would still apply.  */
17221char opendir ();
17222int
17223main (void)
17224{
17225return opendir ();
17226  ;
17227  return 0;
17228}
17229_ACEOF
17230for ac_lib in '' x
17231do
17232  if test -z "$ac_lib"; then
17233    ac_res="none required"
17234  else
17235    ac_res=-l$ac_lib
17236    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17237  fi
17238  if ac_fn_c_try_link "$LINENO"
17239then :
17240  ac_cv_search_opendir=$ac_res
17241fi
17242rm -f core conftest.err conftest.$ac_objext conftest.beam \
17243    conftest$ac_exeext
17244  if test ${ac_cv_search_opendir+y}
17245then :
17246  break
17247fi
17248done
17249if test ${ac_cv_search_opendir+y}
17250then :
17251
17252else $as_nop
17253  ac_cv_search_opendir=no
17254fi
17255rm conftest.$ac_ext
17256LIBS=$ac_func_search_save_LIBS
17257fi
17258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17259printf "%s\n" "$ac_cv_search_opendir" >&6; }
17260ac_res=$ac_cv_search_opendir
17261if test "$ac_res" != no
17262then :
17263  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17264
17265fi
17266
17267fi
17268
17269# Autoupdate added the next two lines to ensure that your configure
17270# script's behavior did not change.  They are probably safe to remove.
17271
17272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
17273printf %s "checking for egrep... " >&6; }
17274if test ${ac_cv_path_EGREP+y}
17275then :
17276  printf %s "(cached) " >&6
17277else $as_nop
17278  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17279   then ac_cv_path_EGREP="$GREP -E"
17280   else
17281     if test -z "$EGREP"; then
17282  ac_path_EGREP_found=false
17283  # Loop through the user's path and test for each of PROGNAME-LIST
17284  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17285for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17286do
17287  IFS=$as_save_IFS
17288  case $as_dir in #(((
17289    '') as_dir=./ ;;
17290    */) ;;
17291    *) as_dir=$as_dir/ ;;
17292  esac
17293    for ac_prog in egrep
17294   do
17295    for ac_exec_ext in '' $ac_executable_extensions; do
17296      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
17297      as_fn_executable_p "$ac_path_EGREP" || continue
17298# Check for GNU ac_path_EGREP and select it if it is found.
17299  # Check for GNU $ac_path_EGREP
17300case `"$ac_path_EGREP" --version 2>&1` in
17301*GNU*)
17302  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17303*)
17304  ac_count=0
17305  printf %s 0123456789 >"conftest.in"
17306  while :
17307  do
17308    cat "conftest.in" "conftest.in" >"conftest.tmp"
17309    mv "conftest.tmp" "conftest.in"
17310    cp "conftest.in" "conftest.nl"
17311    printf "%s\n" 'EGREP' >> "conftest.nl"
17312    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17313    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17314    as_fn_arith $ac_count + 1 && ac_count=$as_val
17315    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17316      # Best one so far, save it but keep looking for a better one
17317      ac_cv_path_EGREP="$ac_path_EGREP"
17318      ac_path_EGREP_max=$ac_count
17319    fi
17320    # 10*(2^10) chars as input seems more than enough
17321    test $ac_count -gt 10 && break
17322  done
17323  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17324esac
17325
17326      $ac_path_EGREP_found && break 3
17327    done
17328  done
17329  done
17330IFS=$as_save_IFS
17331  if test -z "$ac_cv_path_EGREP"; then
17332    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
17333  fi
17334else
17335  ac_cv_path_EGREP=$EGREP
17336fi
17337
17338   fi
17339fi
17340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
17341printf "%s\n" "$ac_cv_path_EGREP" >&6; }
17342 EGREP="$ac_cv_path_EGREP"
17343
17344
17345
17346ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
17347if test "x$ac_cv_header_dirent_h" = xyes
17348then :
17349  printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
17350
17351fi
17352ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
17353if test "x$ac_cv_header_fcntl_h" = xyes
17354then :
17355  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
17356
17357fi
17358ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17359if test "x$ac_cv_header_stdlib_h" = xyes
17360then :
17361  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
17362
17363fi
17364ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
17365if test "x$ac_cv_header_string_h" = xyes
17366then :
17367  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
17368
17369fi
17370ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17371if test "x$ac_cv_header_unistd_h" = xyes
17372then :
17373  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
17374
17375fi
17376ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
17377if test "x$ac_cv_header_sys_statvfs_h" = xyes
17378then :
17379  printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
17380
17381fi
17382ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
17383if test "x$ac_cv_header_sys_vfs_h" = xyes
17384then :
17385  printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
17386
17387fi
17388ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
17389if test "x$ac_cv_header_sys_statfs_h" = xyes
17390then :
17391  printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
17392
17393fi
17394ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
17395if test "x$ac_cv_header_sys_param_h" = xyes
17396then :
17397  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
17398
17399fi
17400ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
17401if test "x$ac_cv_header_sys_mount_h" = xyes
17402then :
17403  printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
17404
17405fi
17406
17407# ------ AX CREATE STDINT H -------------------------------------
17408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
17409printf %s "checking for stdint types... " >&6; }
17410ac_stdint_h=`echo src/fcstdint.h`
17411# try to shortcircuit - if the default include path of the compiler
17412# can find a "stdint.h" header then we assume that all compilers can.
17413if test ${ac_cv_header_stdint_t+y}
17414then :
17415  printf %s "(cached) " >&6
17416else $as_nop
17417
17418old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
17419old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
17420old_CFLAGS="$CFLAGS"     ; CFLAGS=""
17421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422/* end confdefs.h.  */
17423#include <stdint.h>
17424int
17425main (void)
17426{
17427int_least32_t v = 0;
17428  ;
17429  return 0;
17430}
17431_ACEOF
17432if ac_fn_c_try_compile "$LINENO"
17433then :
17434  ac_cv_stdint_result="(assuming C99 compatible system)"
17435 ac_cv_header_stdint_t="stdint.h";
17436else $as_nop
17437  ac_cv_header_stdint_t=""
17438fi
17439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17440if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
17441CFLAGS="-std=c99"
17442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443/* end confdefs.h.  */
17444#include <stdint.h>
17445int
17446main (void)
17447{
17448int_least32_t v = 0;
17449  ;
17450  return 0;
17451}
17452_ACEOF
17453if ac_fn_c_try_compile "$LINENO"
17454then :
17455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
17456printf "%s\n" "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
17457fi
17458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17459fi
17460CXXFLAGS="$old_CXXFLAGS"
17461CPPFLAGS="$old_CPPFLAGS"
17462CFLAGS="$old_CFLAGS"
17463fi
17464
17465
17466v="... $ac_cv_header_stdint_h"
17467if test "$ac_stdint_h" = "stdint.h" ; then
17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
17469printf "%s\n" "(are you sure you want them in ./stdint.h?)" >&6; }
17470elif test "$ac_stdint_h" = "inttypes.h" ; then
17471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
17472printf "%s\n" "(are you sure you want them in ./inttypes.h?)" >&6; }
17473elif test "_$ac_cv_header_stdint_t" = "_" ; then
17474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
17475printf "%s\n" "(putting them into $ac_stdint_h)$v" >&6; }
17476else
17477 ac_cv_header_stdint="$ac_cv_header_stdint_t"
17478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
17479printf "%s\n" "$ac_cv_header_stdint (shortcircuit)" >&6; }
17480fi
17481
17482if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
17483
17484
17485inttype_headers=`echo  | sed -e 's/,/ /g'`
17486
17487ac_cv_stdint_result="(no helpful system typedefs seen)"
17488
17489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
17490printf %s "checking for stdint uintptr_t... " >&6; }
17491if test ${ac_cv_header_stdint_x+y}
17492then :
17493  printf %s "(cached) " >&6
17494else $as_nop
17495
17496 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
17497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17498printf "%s\n" "(..)" >&6; }
17499  for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
17500  do
17501   unset ac_cv_type_uintptr_t
17502   unset ac_cv_type_uint64_t
17503   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
17504"
17505if test "x$ac_cv_type_uintptr_t" = xyes
17506then :
17507  ac_cv_header_stdint_x=$i
17508else $as_nop
17509  continue
17510fi
17511
17512   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
17513"
17514if test "x$ac_cv_type_uint64_t" = xyes
17515then :
17516  and64="/uint64_t"
17517else $as_nop
17518  and64=""
17519fi
17520
17521   ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
17522 break
17523  done
17524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
17525printf %s "checking for stdint uintptr_t... " >&6; }
17526
17527fi
17528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
17529printf "%s\n" "$ac_cv_header_stdint_x" >&6; }
17530
17531
17532if test "_$ac_cv_header_stdint_x" = "_" ; then
17533
17534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
17535printf %s "checking for stdint uint32_t... " >&6; }
17536if test ${ac_cv_header_stdint_o+y}
17537then :
17538  printf %s "(cached) " >&6
17539else $as_nop
17540
17541 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
17542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17543printf "%s\n" "(..)" >&6; }
17544  for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
17545  do
17546   unset ac_cv_type_uint32_t
17547   unset ac_cv_type_uint64_t
17548   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
17549"
17550if test "x$ac_cv_type_uint32_t" = xyes
17551then :
17552  ac_cv_header_stdint_o=$i
17553else $as_nop
17554  continue
17555fi
17556
17557   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
17558"
17559if test "x$ac_cv_type_uint64_t" = xyes
17560then :
17561  and64="/uint64_t"
17562else $as_nop
17563  and64=""
17564fi
17565
17566   ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
17567 break
17568   break;
17569  done
17570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
17571printf %s "checking for stdint uint32_t... " >&6; }
17572
17573fi
17574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
17575printf "%s\n" "$ac_cv_header_stdint_o" >&6; }
17576
17577fi
17578
17579if test "_$ac_cv_header_stdint_x" = "_" ; then
17580if test "_$ac_cv_header_stdint_o" = "_" ; then
17581
17582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
17583printf %s "checking for stdint u_int32_t... " >&6; }
17584if test ${ac_cv_header_stdint_u+y}
17585then :
17586  printf %s "(cached) " >&6
17587else $as_nop
17588
17589 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
17590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17591printf "%s\n" "(..)" >&6; }
17592  for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
17593   unset ac_cv_type_u_int32_t
17594   unset ac_cv_type_u_int64_t
17595   ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
17596"
17597if test "x$ac_cv_type_u_int32_t" = xyes
17598then :
17599  ac_cv_header_stdint_u=$i
17600else $as_nop
17601  continue
17602fi
17603
17604   ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
17605"
17606if test "x$ac_cv_type_u_int64_t" = xyes
17607then :
17608  and64="/u_int64_t"
17609else $as_nop
17610  and64=""
17611fi
17612
17613   ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
17614 break
17615   break;
17616  done
17617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
17618printf %s "checking for stdint u_int32_t... " >&6; }
17619
17620fi
17621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
17622printf "%s\n" "$ac_cv_header_stdint_u" >&6; }
17623
17624fi fi
17625
17626if test "_$ac_cv_header_stdint_x" = "_" ; then
17627   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
17628printf %s "checking for stdint datatype model... " >&6; }
17629   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17630printf "%s\n" "(..)" >&6; }
17631
17632   # The cast to long int works around a bug in the HP C Compiler
17633# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17634# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17635# This bug is HP SR number 8606223364.
17636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
17637printf %s "checking size of char... " >&6; }
17638if test ${ac_cv_sizeof_char+y}
17639then :
17640  printf %s "(cached) " >&6
17641else $as_nop
17642  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"
17643then :
17644
17645else $as_nop
17646  if test "$ac_cv_type_char" = yes; then
17647     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17648printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17649as_fn_error 77 "cannot compute sizeof (char)
17650See \`config.log' for more details" "$LINENO" 5; }
17651   else
17652     ac_cv_sizeof_char=0
17653   fi
17654fi
17655
17656fi
17657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
17658printf "%s\n" "$ac_cv_sizeof_char" >&6; }
17659
17660
17661
17662printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
17663
17664
17665   # The cast to long int works around a bug in the HP C Compiler
17666# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17667# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17668# This bug is HP SR number 8606223364.
17669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17670printf %s "checking size of short... " >&6; }
17671if test ${ac_cv_sizeof_short+y}
17672then :
17673  printf %s "(cached) " >&6
17674else $as_nop
17675  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
17676then :
17677
17678else $as_nop
17679  if test "$ac_cv_type_short" = yes; then
17680     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17681printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17682as_fn_error 77 "cannot compute sizeof (short)
17683See \`config.log' for more details" "$LINENO" 5; }
17684   else
17685     ac_cv_sizeof_short=0
17686   fi
17687fi
17688
17689fi
17690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17691printf "%s\n" "$ac_cv_sizeof_short" >&6; }
17692
17693
17694
17695printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
17696
17697
17698   # The cast to long int works around a bug in the HP C Compiler
17699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17701# This bug is HP SR number 8606223364.
17702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17703printf %s "checking size of int... " >&6; }
17704if test ${ac_cv_sizeof_int+y}
17705then :
17706  printf %s "(cached) " >&6
17707else $as_nop
17708  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
17709then :
17710
17711else $as_nop
17712  if test "$ac_cv_type_int" = yes; then
17713     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17714printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17715as_fn_error 77 "cannot compute sizeof (int)
17716See \`config.log' for more details" "$LINENO" 5; }
17717   else
17718     ac_cv_sizeof_int=0
17719   fi
17720fi
17721
17722fi
17723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17724printf "%s\n" "$ac_cv_sizeof_int" >&6; }
17725
17726
17727
17728printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
17729
17730
17731   # The cast to long int works around a bug in the HP C Compiler
17732# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17733# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17734# This bug is HP SR number 8606223364.
17735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17736printf %s "checking size of long... " >&6; }
17737if test ${ac_cv_sizeof_long+y}
17738then :
17739  printf %s "(cached) " >&6
17740else $as_nop
17741  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
17742then :
17743
17744else $as_nop
17745  if test "$ac_cv_type_long" = yes; then
17746     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17747printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17748as_fn_error 77 "cannot compute sizeof (long)
17749See \`config.log' for more details" "$LINENO" 5; }
17750   else
17751     ac_cv_sizeof_long=0
17752   fi
17753fi
17754
17755fi
17756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17757printf "%s\n" "$ac_cv_sizeof_long" >&6; }
17758
17759
17760
17761printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
17762
17763
17764   # The cast to long int works around a bug in the HP C Compiler
17765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17767# This bug is HP SR number 8606223364.
17768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
17769printf %s "checking size of void*... " >&6; }
17770if test ${ac_cv_sizeof_voidp+y}
17771then :
17772  printf %s "(cached) " >&6
17773else $as_nop
17774  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"
17775then :
17776
17777else $as_nop
17778  if test "$ac_cv_type_voidp" = yes; then
17779     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17780printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17781as_fn_error 77 "cannot compute sizeof (void*)
17782See \`config.log' for more details" "$LINENO" 5; }
17783   else
17784     ac_cv_sizeof_voidp=0
17785   fi
17786fi
17787
17788fi
17789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
17790printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
17791
17792
17793
17794printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
17795
17796
17797   ac_cv_char_data_model=""
17798   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
17799   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
17800   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
17801   ac_cv_long_data_model=""
17802   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
17803   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
17804   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
17805   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking data model" >&5
17806printf %s "checking data model... " >&6; }
17807   case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
17808    122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
17809    122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
17810    122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
17811    124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
17812    124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
17813    124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
17814    124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
17815    128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
17816    128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
17817    222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
17818    333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
17819    444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
17820    666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
17821    888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
17822    222/*|333/*|444/*|666/*|888/*) :
17823                 ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
17824     *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
17825   esac
17826   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
17827printf "%s\n" "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
17828
17829fi
17830
17831if test "_$ac_cv_header_stdint_x" != "_" ; then
17832   ac_cv_header_stdint="$ac_cv_header_stdint_x"
17833elif  test "_$ac_cv_header_stdint_o" != "_" ; then
17834   ac_cv_header_stdint="$ac_cv_header_stdint_o"
17835elif  test "_$ac_cv_header_stdint_u" != "_" ; then
17836   ac_cv_header_stdint="$ac_cv_header_stdint_u"
17837else
17838   ac_cv_header_stdint="stddef.h"
17839fi
17840
17841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
17842printf %s "checking for extra inttypes in chosen header... " >&6; }
17843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
17844printf "%s\n" "($ac_cv_header_stdint)" >&6; }
17845unset ac_cv_type_int_least32_t
17846unset ac_cv_type_int_fast32_t
17847ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
17848"
17849if test "x$ac_cv_type_int_least32_t" = xyes
17850then :
17851
17852fi
17853
17854ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
17855"
17856if test "x$ac_cv_type_int_fast32_t" = xyes
17857then :
17858
17859fi
17860
17861ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
17862"
17863if test "x$ac_cv_type_intmax_t" = xyes
17864then :
17865
17866fi
17867
17868
17869fi # shortcircut to system "stdint.h"
17870# ------------------ PREPARE VARIABLES ------------------------------
17871if test "$GCC" = "yes" ; then
17872ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
17873else
17874ac_cv_stdint_message="using $CC"
17875fi
17876
17877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
17878printf "%s\n" "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
17879
17880# ----------------- DONE inttypes.h checks START header -------------
17881ac_config_commands="$ac_config_commands $ac_stdint_h"
17882
17883
17884
17885# Checks for typedefs, structures, and compiler characteristics.
17886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17887printf %s "checking for an ANSI C-conforming const... " >&6; }
17888if test ${ac_cv_c_const+y}
17889then :
17890  printf %s "(cached) " >&6
17891else $as_nop
17892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893/* end confdefs.h.  */
17894
17895int
17896main (void)
17897{
17898
17899#ifndef __cplusplus
17900  /* Ultrix mips cc rejects this sort of thing.  */
17901  typedef int charset[2];
17902  const charset cs = { 0, 0 };
17903  /* SunOS 4.1.1 cc rejects this.  */
17904  char const *const *pcpcc;
17905  char **ppc;
17906  /* NEC SVR4.0.2 mips cc rejects this.  */
17907  struct point {int x, y;};
17908  static struct point const zero = {0,0};
17909  /* IBM XL C 1.02.0.0 rejects this.
17910     It does not let you subtract one const X* pointer from another in
17911     an arm of an if-expression whose if-part is not a constant
17912     expression */
17913  const char *g = "string";
17914  pcpcc = &g + (g ? g-g : 0);
17915  /* HPUX 7.0 cc rejects these. */
17916  ++pcpcc;
17917  ppc = (char**) pcpcc;
17918  pcpcc = (char const *const *) ppc;
17919  { /* SCO 3.2v4 cc rejects this sort of thing.  */
17920    char tx;
17921    char *t = &tx;
17922    char const *s = 0 ? (char *) 0 : (char const *) 0;
17923
17924    *t++ = 0;
17925    if (s) return 0;
17926  }
17927  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17928    int x[] = {25, 17};
17929    const int *foo = &x[0];
17930    ++foo;
17931  }
17932  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17933    typedef const int *iptr;
17934    iptr p = 0;
17935    ++p;
17936  }
17937  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17938       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17939    struct s { int j; const int *ap[3]; } bx;
17940    struct s *b = &bx; b->j = 5;
17941  }
17942  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17943    const int foo = 10;
17944    if (!foo) return 0;
17945  }
17946  return !cs[0] && !zero.x;
17947#endif
17948
17949  ;
17950  return 0;
17951}
17952_ACEOF
17953if ac_fn_c_try_compile "$LINENO"
17954then :
17955  ac_cv_c_const=yes
17956else $as_nop
17957  ac_cv_c_const=no
17958fi
17959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17960fi
17961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17962printf "%s\n" "$ac_cv_c_const" >&6; }
17963if test $ac_cv_c_const = no; then
17964
17965printf "%s\n" "#define const /**/" >>confdefs.h
17966
17967fi
17968
17969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17970printf %s "checking for inline... " >&6; }
17971if test ${ac_cv_c_inline+y}
17972then :
17973  printf %s "(cached) " >&6
17974else $as_nop
17975  ac_cv_c_inline=no
17976for ac_kw in inline __inline__ __inline; do
17977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978/* end confdefs.h.  */
17979#ifndef __cplusplus
17980typedef int foo_t;
17981static $ac_kw foo_t static_foo (void) {return 0; }
17982$ac_kw foo_t foo (void) {return 0; }
17983#endif
17984
17985_ACEOF
17986if ac_fn_c_try_compile "$LINENO"
17987then :
17988  ac_cv_c_inline=$ac_kw
17989fi
17990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17991  test "$ac_cv_c_inline" != no && break
17992done
17993
17994fi
17995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17996printf "%s\n" "$ac_cv_c_inline" >&6; }
17997
17998case $ac_cv_c_inline in
17999  inline | yes) ;;
18000  *)
18001    case $ac_cv_c_inline in
18002      no) ac_val=;;
18003      *) ac_val=$ac_cv_c_inline;;
18004    esac
18005    cat >>confdefs.h <<_ACEOF
18006#ifndef __cplusplus
18007#define inline $ac_val
18008#endif
18009_ACEOF
18010    ;;
18011esac
18012
18013
18014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
18015printf %s "checking for flexible array members... " >&6; }
18016if test ${ac_cv_c_flexmember+y}
18017then :
18018  printf %s "(cached) " >&6
18019else $as_nop
18020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021/* end confdefs.h.  */
18022#include <stdlib.h>
18023	    #include <stdio.h>
18024	    #include <stddef.h>
18025	    struct s { int n; double d[]; };
18026int
18027main (void)
18028{
18029int m = getchar ();
18030	    struct s *p = (struct s *) malloc (offsetof (struct s, d)
18031					       + m * sizeof (double));
18032	    p->d[0] = 0.0;
18033	    return p->d != (double *) NULL;
18034  ;
18035  return 0;
18036}
18037_ACEOF
18038if ac_fn_c_try_compile "$LINENO"
18039then :
18040  ac_cv_c_flexmember=yes
18041else $as_nop
18042  ac_cv_c_flexmember=no
18043fi
18044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18045fi
18046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
18047printf "%s\n" "$ac_cv_c_flexmember" >&6; }
18048  if test $ac_cv_c_flexmember = yes; then
18049
18050printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
18051
18052  else
18053    printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
18054
18055  fi
18056
18057
18058  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18059"
18060if test "x$ac_cv_type_pid_t" = xyes
18061then :
18062
18063else $as_nop
18064                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18065/* end confdefs.h.  */
18066
18067          #if defined _WIN64 && !defined __CYGWIN__
18068          LLP64
18069          #endif
18070
18071int
18072main (void)
18073{
18074
18075  ;
18076  return 0;
18077}
18078
18079_ACEOF
18080if ac_fn_c_try_compile "$LINENO"
18081then :
18082  ac_pid_type='int'
18083else $as_nop
18084  ac_pid_type='__int64'
18085fi
18086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18087
18088printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18089
18090
18091fi
18092
18093
18094
18095# Checks for library functions.
18096ac_func=
18097for ac_item in $ac_func_c_list
18098do
18099  if test $ac_func; then
18100    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18101    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18102      echo "#define $ac_item 1" >> confdefs.h
18103    fi
18104    ac_func=
18105  else
18106    ac_func=$ac_item
18107  fi
18108done
18109
18110if test "x$ac_cv_func_vprintf" = xno
18111then :
18112  ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18113if test "x$ac_cv_func__doprnt" = xyes
18114then :
18115
18116printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
18117
18118fi
18119
18120fi
18121
18122
18123
18124
18125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18126printf %s "checking for working mmap... " >&6; }
18127if test ${ac_cv_func_mmap_fixed_mapped+y}
18128then :
18129  printf %s "(cached) " >&6
18130else $as_nop
18131  if test "$cross_compiling" = yes
18132then :
18133  case "$host_os" in # ((
18134			  # Guess yes on platforms where we know the result.
18135		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
18136			  # If we don't know, assume the worst.
18137		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
18138		esac
18139else $as_nop
18140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141/* end confdefs.h.  */
18142$ac_includes_default
18143/* malloc might have been renamed as rpl_malloc. */
18144#undef malloc
18145
18146/* Thanks to Mike Haertel and Jim Avera for this test.
18147   Here is a matrix of mmap possibilities:
18148	mmap private not fixed
18149	mmap private fixed at somewhere currently unmapped
18150	mmap private fixed at somewhere already mapped
18151	mmap shared not fixed
18152	mmap shared fixed at somewhere currently unmapped
18153	mmap shared fixed at somewhere already mapped
18154   For private mappings, we should verify that changes cannot be read()
18155   back from the file, nor mmap's back from the file at a different
18156   address.  (There have been systems where private was not correctly
18157   implemented like the infamous i386 svr4.0, and systems where the
18158   VM page cache was not coherent with the file system buffer cache
18159   like early versions of FreeBSD and possibly contemporary NetBSD.)
18160   For shared mappings, we should conversely verify that changes get
18161   propagated back to all the places they're supposed to be.
18162
18163   Grep wants private fixed already mapped.
18164   The main things grep needs to know about mmap are:
18165   * does it exist and is it safe to write into the mmap'd area
18166   * how to use it (BSD variants)  */
18167
18168#include <fcntl.h>
18169#include <sys/mman.h>
18170
18171/* This mess was copied from the GNU getpagesize.h.  */
18172#ifndef HAVE_GETPAGESIZE
18173# ifdef _SC_PAGESIZE
18174#  define getpagesize() sysconf(_SC_PAGESIZE)
18175# else /* no _SC_PAGESIZE */
18176#  ifdef HAVE_SYS_PARAM_H
18177#   include <sys/param.h>
18178#   ifdef EXEC_PAGESIZE
18179#    define getpagesize() EXEC_PAGESIZE
18180#   else /* no EXEC_PAGESIZE */
18181#    ifdef NBPG
18182#     define getpagesize() NBPG * CLSIZE
18183#     ifndef CLSIZE
18184#      define CLSIZE 1
18185#     endif /* no CLSIZE */
18186#    else /* no NBPG */
18187#     ifdef NBPC
18188#      define getpagesize() NBPC
18189#     else /* no NBPC */
18190#      ifdef PAGESIZE
18191#       define getpagesize() PAGESIZE
18192#      endif /* PAGESIZE */
18193#     endif /* no NBPC */
18194#    endif /* no NBPG */
18195#   endif /* no EXEC_PAGESIZE */
18196#  else /* no HAVE_SYS_PARAM_H */
18197#   define getpagesize() 8192	/* punt totally */
18198#  endif /* no HAVE_SYS_PARAM_H */
18199# endif /* no _SC_PAGESIZE */
18200
18201#endif /* no HAVE_GETPAGESIZE */
18202
18203int
18204main (void)
18205{
18206  char *data, *data2, *data3;
18207  const char *cdata2;
18208  int i, pagesize;
18209  int fd, fd2;
18210
18211  pagesize = getpagesize ();
18212
18213  /* First, make a file with some known garbage in it. */
18214  data = (char *) malloc (pagesize);
18215  if (!data)
18216    return 1;
18217  for (i = 0; i < pagesize; ++i)
18218    *(data + i) = rand ();
18219  umask (0);
18220  fd = creat ("conftest.mmap", 0600);
18221  if (fd < 0)
18222    return 2;
18223  if (write (fd, data, pagesize) != pagesize)
18224    return 3;
18225  close (fd);
18226
18227  /* Next, check that the tail of a page is zero-filled.  File must have
18228     non-zero length, otherwise we risk SIGBUS for entire page.  */
18229  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18230  if (fd2 < 0)
18231    return 4;
18232  cdata2 = "";
18233  if (write (fd2, cdata2, 1) != 1)
18234    return 5;
18235  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18236  if (data2 == MAP_FAILED)
18237    return 6;
18238  for (i = 0; i < pagesize; ++i)
18239    if (*(data2 + i))
18240      return 7;
18241  close (fd2);
18242  if (munmap (data2, pagesize))
18243    return 8;
18244
18245  /* Next, try to mmap the file at a fixed address which already has
18246     something else allocated at it.  If we can, also make sure that
18247     we see the same garbage.  */
18248  fd = open ("conftest.mmap", O_RDWR);
18249  if (fd < 0)
18250    return 9;
18251  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18252		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
18253    return 10;
18254  for (i = 0; i < pagesize; ++i)
18255    if (*(data + i) != *(data2 + i))
18256      return 11;
18257
18258  /* Finally, make sure that changes to the mapped area do not
18259     percolate back to the file as seen by read().  (This is a bug on
18260     some variants of i386 svr4.0.)  */
18261  for (i = 0; i < pagesize; ++i)
18262    *(data2 + i) = *(data2 + i) + 1;
18263  data3 = (char *) malloc (pagesize);
18264  if (!data3)
18265    return 12;
18266  if (read (fd, data3, pagesize) != pagesize)
18267    return 13;
18268  for (i = 0; i < pagesize; ++i)
18269    if (*(data + i) != *(data3 + i))
18270      return 14;
18271  close (fd);
18272  free (data);
18273  free (data3);
18274  return 0;
18275}
18276_ACEOF
18277if ac_fn_c_try_run "$LINENO"
18278then :
18279  ac_cv_func_mmap_fixed_mapped=yes
18280else $as_nop
18281  ac_cv_func_mmap_fixed_mapped=no
18282fi
18283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18284  conftest.$ac_objext conftest.beam conftest.$ac_ext
18285fi
18286
18287fi
18288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18289printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
18290if test $ac_cv_func_mmap_fixed_mapped = yes; then
18291
18292printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
18293
18294fi
18295rm -f conftest.mmap conftest.txt
18296
18297ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
18298if test "x$ac_cv_func_link" = xyes
18299then :
18300  printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
18301
18302fi
18303ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
18304if test "x$ac_cv_func_mkstemp" = xyes
18305then :
18306  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
18307
18308fi
18309ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
18310if test "x$ac_cv_func_mkostemp" = xyes
18311then :
18312  printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
18313
18314fi
18315ac_fn_c_check_func "$LINENO" "_mktemp_s" "ac_cv_func__mktemp_s"
18316if test "x$ac_cv_func__mktemp_s" = xyes
18317then :
18318  printf "%s\n" "#define HAVE__MKTEMP_S 1" >>confdefs.h
18319
18320fi
18321ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
18322if test "x$ac_cv_func_mkdtemp" = xyes
18323then :
18324  printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
18325
18326fi
18327ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
18328if test "x$ac_cv_func_getopt" = xyes
18329then :
18330  printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
18331
18332fi
18333ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
18334if test "x$ac_cv_func_getopt_long" = xyes
18335then :
18336  printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
18337
18338fi
18339ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
18340if test "x$ac_cv_func_getprogname" = xyes
18341then :
18342  printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
18343
18344fi
18345ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
18346if test "x$ac_cv_func_getexecname" = xyes
18347then :
18348  printf "%s\n" "#define HAVE_GETEXECNAME 1" >>confdefs.h
18349
18350fi
18351ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
18352if test "x$ac_cv_func_rand" = xyes
18353then :
18354  printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h
18355
18356fi
18357ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
18358if test "x$ac_cv_func_random" = xyes
18359then :
18360  printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
18361
18362fi
18363ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
18364if test "x$ac_cv_func_lrand48" = xyes
18365then :
18366  printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
18367
18368fi
18369ac_fn_c_check_func "$LINENO" "random_r" "ac_cv_func_random_r"
18370if test "x$ac_cv_func_random_r" = xyes
18371then :
18372  printf "%s\n" "#define HAVE_RANDOM_R 1" >>confdefs.h
18373
18374fi
18375ac_fn_c_check_func "$LINENO" "rand_r" "ac_cv_func_rand_r"
18376if test "x$ac_cv_func_rand_r" = xyes
18377then :
18378  printf "%s\n" "#define HAVE_RAND_R 1" >>confdefs.h
18379
18380fi
18381ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
18382if test "x$ac_cv_func_readlink" = xyes
18383then :
18384  printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
18385
18386fi
18387ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
18388if test "x$ac_cv_func_fstatvfs" = xyes
18389then :
18390  printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
18391
18392fi
18393ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs"
18394if test "x$ac_cv_func_fstatfs" = xyes
18395then :
18396  printf "%s\n" "#define HAVE_FSTATFS 1" >>confdefs.h
18397
18398fi
18399ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
18400if test "x$ac_cv_func_lstat" = xyes
18401then :
18402  printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18403
18404fi
18405ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
18406if test "x$ac_cv_func_strerror" = xyes
18407then :
18408  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
18409
18410fi
18411ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
18412if test "x$ac_cv_func_strerror_r" = xyes
18413then :
18414  printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
18415
18416fi
18417
18418
18419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
18420printf %s "checking for posix_fadvise in fcntl.h... " >&6; }
18421if test ${ac_cv_func_posix_fadvise+y}
18422then :
18423  printf %s "(cached) " >&6
18424else $as_nop
18425  symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
18426ac_found=no
18427for ac_header in fcntl.h ; do
18428  ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
18429  if test $ac_found != "yes" ; then
18430      if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18431            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432/* end confdefs.h.  */
18433#include <$ac_header>
18434
18435_ACEOF
18436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18437  $EGREP "$symbol" >/dev/null 2>&1
18438then :
18439  ac_found="$ac_header"
18440fi
18441rm -rf conftest*
18442
18443      fi
18444  fi
18445done
18446if test "$ac_found" != "no" ; then
18447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
18448printf "%s\n" "$ac_found" >&6; }
18449  fc_func_posix_fadvise=1
18450else
18451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18452printf "%s\n" "no" >&6; }
18453  fc_func_posix_fadvise=0
18454fi
18455
18456fi
18457
18458
18459printf "%s\n" "#define HAVE_POSIX_FADVISE $fc_func_posix_fadvise" >>confdefs.h
18460
18461
18462#
18463ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
18464"
18465if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
18466then :
18467
18468printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
18469
18470
18471fi
18472
18473
18474#
18475if test "x$ac_cv_func_fstatvfs" = "xyes"; then
18476	ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
18477"
18478if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes
18479then :
18480
18481printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_BASETYPE 1" >>confdefs.h
18482
18483
18484fi
18485ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
18486"
18487if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes
18488then :
18489
18490printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1" >>confdefs.h
18491
18492
18493fi
18494
18495fi
18496if test "x$ac_cv_func_fstatfs" = "xyes"; then
18497	ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
18498#ifdef HAVE_SYS_VFS_H
18499#include <sys/vfs.h>
18500#endif
18501#ifdef HAVE_SYS_STATFS_H
18502#include <sys/statfs.h>
18503#endif
18504#ifdef HAVE_SYS_PARAM_H
18505#include <sys/param.h>
18506#endif
18507#ifdef HAVE_SYS_MOUNT_H
18508#include <sys/mount.h>
18509#endif
18510"
18511if test "x$ac_cv_member_struct_statfs_f_flags" = xyes
18512then :
18513
18514printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FLAGS 1" >>confdefs.h
18515
18516
18517fi
18518ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
18519#ifdef HAVE_SYS_VFS_H
18520#include <sys/vfs.h>
18521#endif
18522#ifdef HAVE_SYS_STATFS_H
18523#include <sys/statfs.h>
18524#endif
18525#ifdef HAVE_SYS_PARAM_H
18526#include <sys/param.h>
18527#endif
18528#ifdef HAVE_SYS_MOUNT_H
18529#include <sys/mount.h>
18530#endif
18531"
18532if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes
18533then :
18534
18535printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h
18536
18537
18538fi
18539
18540fi
18541ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
18542"
18543if test "x$ac_cv_member_struct_dirent_d_type" = xyes
18544then :
18545
18546printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
18547
18548
18549fi
18550
18551
18552# Check the argument type of the gperf hash/lookup function
18553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking The type of len parameter of gperf hash/lookup function" >&5
18554printf %s "checking The type of len parameter of gperf hash/lookup function... " >&6; }
18555fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
18556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557/* end confdefs.h.  */
18558
18559	#include <string.h>
18560
18561	const char *in_word_set(register const char *, register size_t);
18562	$fc_gperf_test
18563
18564int
18565main (void)
18566{
18567
18568  ;
18569  return 0;
18570}
18571_ACEOF
18572if ac_fn_c_try_compile "$LINENO"
18573then :
18574  FC_GPERF_SIZE_T=size_t
18575else $as_nop
18576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577/* end confdefs.h.  */
18578
18579		#include <string.h>
18580
18581		const char *in_word_set(register const char *, register unsigned int);
18582		$fc_gperf_test
18583
18584int
18585main (void)
18586{
18587
18588  ;
18589  return 0;
18590}
18591_ACEOF
18592if ac_fn_c_try_compile "$LINENO"
18593then :
18594  FC_GPERF_SIZE_T="unsigned int"
18595else $as_nop
18596  as_fn_error $? "Unable to determine the type of the len parameter of the gperf hash/lookup function" "$LINENO" 5
18597
18598fi
18599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18600fi
18601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18602
18603printf "%s\n" "#define FC_GPERF_SIZE_T $FC_GPERF_SIZE_T" >>confdefs.h
18604
18605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC_GPERF_SIZE_T" >&5
18606printf "%s\n" "$FC_GPERF_SIZE_T" >&6; }
18607
18608#
18609# Checks for iconv
18610#
18611# Check whether --enable-iconv was given.
18612if test ${enable_iconv+y}
18613then :
18614  enableval=$enable_iconv;
18615else $as_nop
18616  enable_iconv=no
18617fi
18618
18619
18620# Check whether --with-libiconv was given.
18621if test ${with_libiconv+y}
18622then :
18623  withval=$with_libiconv; if test "x$withval" = "xyes"; then
18624		libiconv_prefix=$prefix
18625	 else
18626		libiconv_prefix=$withval
18627	 fi
18628else $as_nop
18629  libiconv_prefix=auto
18630fi
18631
18632
18633# Check whether --with-libiconv-includes was given.
18634if test ${with_libiconv_includes+y}
18635then :
18636  withval=$with_libiconv_includes; libiconv_includes=$withval
18637else $as_nop
18638  libiconv_includes=auto
18639fi
18640
18641
18642# Check whether --with-libiconv-lib was given.
18643if test ${with_libiconv_lib+y}
18644then :
18645  withval=$with_libiconv_lib; libiconv_lib=$withval
18646else $as_nop
18647  libiconv_lib=auto
18648fi
18649
18650
18651# if no libiconv,libiconv-includes,libiconv-lib are specified,
18652# libc's iconv has a priority.
18653if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
18654	libiconv_cflags="-I${libiconv_includes}"
18655elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
18656	libiconv_cflags="-I${libiconv_prefix}/include"
18657else
18658	libiconv_cflags=""
18659fi
18660libiconv_libs=""
18661if test "x$libiconv_cflags" != "x"; then
18662	if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
18663		libiconv_libs="-L${libiconv_lib} -liconv"
18664	elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
18665		libiconv_libs="-L${libiconv_prefix}/lib -liconv"
18666	else
18667		libiconv_libs="-liconv"
18668	fi
18669fi
18670
18671use_iconv=0
18672if test "x$enable_iconv" != "xno"; then
18673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
18674printf %s "checking for a usable iconv... " >&6; }
18675	if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
18676		iconvsaved_CFLAGS="$CFLAGS"
18677		iconvsaved_LIBS="$LIBS"
18678		CFLAGS="$CFLAGS $libiconv_cflags"
18679		LIBS="$LIBS $libiconv_libs"
18680
18681		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682/* end confdefs.h.  */
18683#include <iconv.h>
18684int
18685main (void)
18686{
18687iconv_open ("from", "to");
18688  ;
18689  return 0;
18690}
18691_ACEOF
18692if ac_fn_c_try_link "$LINENO"
18693then :
18694  iconv_type="libiconv"
18695			 use_iconv=1
18696			 ICONV_CFLAGS="$libiconv_cflags"
18697			 ICONV_LIBS="$libiconv_libs"
18698
18699else $as_nop
18700  use_iconv=0
18701fi
18702rm -f core conftest.err conftest.$ac_objext conftest.beam \
18703    conftest$ac_exeext conftest.$ac_ext
18704
18705		CFLAGS="$iconvsaved_CFLAGS"
18706		LIBS="$iconvsaved_LIBS"
18707	fi
18708	if test "x$use_iconv" = "x0"; then
18709		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710/* end confdefs.h.  */
18711#include <iconv.h>
18712int
18713main (void)
18714{
18715iconv_open ("from", "to");
18716  ;
18717  return 0;
18718}
18719_ACEOF
18720if ac_fn_c_try_link "$LINENO"
18721then :
18722  iconv_type="libc"
18723			 use_iconv=1
18724else $as_nop
18725  iconv_type="not found"
18726			 use_iconv=0
18727fi
18728rm -f core conftest.err conftest.$ac_objext conftest.beam \
18729    conftest$ac_exeext conftest.$ac_ext
18730	fi
18731
18732	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
18733printf "%s\n" "$iconv_type" >&6; }
18734
18735
18736fi
18737
18738printf "%s\n" "#define USE_ICONV $use_iconv" >>confdefs.h
18739
18740#
18741# Checks for FreeType
18742#
18743
18744pkg_failed=no
18745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18746printf %s "checking for FREETYPE... " >&6; }
18747
18748if test -n "$FREETYPE_CFLAGS"; then
18749    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18750 elif test -n "$PKG_CONFIG"; then
18751    if test -n "$PKG_CONFIG" && \
18752    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
18753  ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
18754  ac_status=$?
18755  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18756  test $ac_status = 0; }; then
18757  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 21.0.15" 2>/dev/null`
18758		      test "x$?" != "x0" && pkg_failed=yes
18759else
18760  pkg_failed=yes
18761fi
18762 else
18763    pkg_failed=untried
18764fi
18765if test -n "$FREETYPE_LIBS"; then
18766    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18767 elif test -n "$PKG_CONFIG"; then
18768    if test -n "$PKG_CONFIG" && \
18769    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
18770  ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
18771  ac_status=$?
18772  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18773  test $ac_status = 0; }; then
18774  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 21.0.15" 2>/dev/null`
18775		      test "x$?" != "x0" && pkg_failed=yes
18776else
18777  pkg_failed=yes
18778fi
18779 else
18780    pkg_failed=untried
18781fi
18782
18783
18784
18785if test $pkg_failed = yes; then
18786   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18787printf "%s\n" "no" >&6; }
18788
18789if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18790        _pkg_short_errors_supported=yes
18791else
18792        _pkg_short_errors_supported=no
18793fi
18794        if test $_pkg_short_errors_supported = yes; then
18795	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
18796        else
18797	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
18798        fi
18799	# Put the nasty error message in config.log where it belongs
18800	echo "$FREETYPE_PKG_ERRORS" >&5
18801
18802	as_fn_error $? "Package requirements (freetype2 >= 21.0.15) were not met:
18803
18804$FREETYPE_PKG_ERRORS
18805
18806Consider adjusting the PKG_CONFIG_PATH environment variable if you
18807installed software in a non-standard prefix.
18808
18809Alternatively, you may set the environment variables FREETYPE_CFLAGS
18810and FREETYPE_LIBS to avoid the need to call pkg-config.
18811See the pkg-config man page for more details." "$LINENO" 5
18812elif test $pkg_failed = untried; then
18813     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18814printf "%s\n" "no" >&6; }
18815	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18816printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18817as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18818is in your PATH or set the PKG_CONFIG environment variable to the full
18819path to pkg-config.
18820
18821Alternatively, you may set the environment variables FREETYPE_CFLAGS
18822and FREETYPE_LIBS to avoid the need to call pkg-config.
18823See the pkg-config man page for more details.
18824
18825To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18826See \`config.log' for more details" "$LINENO" 5; }
18827else
18828	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18829	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18830        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18831printf "%s\n" "yes" >&6; }
18832
18833fi
18834PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2 >= 21.0.15"
18835
18836
18837
18838
18839fontconfig_save_libs="$LIBS"
18840fontconfig_save_cflags="$CFLAGS"
18841LIBS="$LIBS $FREETYPE_LIBS"
18842CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
18843ac_fn_c_check_func "$LINENO" "FT_Get_BDF_Property" "ac_cv_func_FT_Get_BDF_Property"
18844if test "x$ac_cv_func_FT_Get_BDF_Property" = xyes
18845then :
18846  printf "%s\n" "#define HAVE_FT_GET_BDF_PROPERTY 1" >>confdefs.h
18847
18848fi
18849ac_fn_c_check_func "$LINENO" "FT_Get_PS_Font_Info" "ac_cv_func_FT_Get_PS_Font_Info"
18850if test "x$ac_cv_func_FT_Get_PS_Font_Info" = xyes
18851then :
18852  printf "%s\n" "#define HAVE_FT_GET_PS_FONT_INFO 1" >>confdefs.h
18853
18854fi
18855ac_fn_c_check_func "$LINENO" "FT_Has_PS_Glyph_Names" "ac_cv_func_FT_Has_PS_Glyph_Names"
18856if test "x$ac_cv_func_FT_Has_PS_Glyph_Names" = xyes
18857then :
18858  printf "%s\n" "#define HAVE_FT_HAS_PS_GLYPH_NAMES 1" >>confdefs.h
18859
18860fi
18861ac_fn_c_check_func "$LINENO" "FT_Get_X11_Font_Format" "ac_cv_func_FT_Get_X11_Font_Format"
18862if test "x$ac_cv_func_FT_Get_X11_Font_Format" = xyes
18863then :
18864  printf "%s\n" "#define HAVE_FT_GET_X11_FONT_FORMAT 1" >>confdefs.h
18865
18866fi
18867ac_fn_c_check_func "$LINENO" "FT_Done_MM_Var" "ac_cv_func_FT_Done_MM_Var"
18868if test "x$ac_cv_func_FT_Done_MM_Var" = xyes
18869then :
18870  printf "%s\n" "#define HAVE_FT_DONE_MM_VAR 1" >>confdefs.h
18871
18872fi
18873
18874
18875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876/* end confdefs.h.  */
18877
18878	#include <ft2build.h>
18879	#include FT_CONFIG_OPTIONS_H
18880	#ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
18881	#  error "No pcf long family names support"
18882	#endif
18883
18884_ACEOF
18885if ac_fn_c_try_compile "$LINENO"
18886then :
18887  have_pcf_long_family_names=yes
18888else $as_nop
18889  have_pcf_long_family_names=no
18890fi
18891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18892 if test "x$have_pcf_long_family_names" = xyes; then
18893  FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE=
18894  FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE='#'
18895else
18896  FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE='#'
18897  FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE=
18898fi
18899
18900
18901LIBS="$fontconfig_save_libs"
18902CFLAGS="$fontconfig_save_cflags"
18903
18904#
18905# Check expat configuration
18906#
18907
18908# Check whether --with-expat was given.
18909if test ${with_expat+y}
18910then :
18911  withval=$with_expat; expat_prefix=$withval
18912else $as_nop
18913  expat_prefix=auto
18914fi
18915
18916
18917# Check whether --with-expat-includes was given.
18918if test ${with_expat_includes+y}
18919then :
18920  withval=$with_expat_includes; expat_includes=$withval
18921else $as_nop
18922  expat_includes=auto
18923fi
18924
18925
18926# Check whether --with-expat-lib was given.
18927if test ${with_expat_lib+y}
18928then :
18929  withval=$with_expat_lib; expat_lib=$withval
18930else $as_nop
18931  expat_lib=auto
18932fi
18933
18934
18935if test "$enable_libxml2" != "yes"; then
18936	use_pkgconfig_for_expat=yes
18937	if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
18938
18939pkg_failed=no
18940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
18941printf %s "checking for EXPAT... " >&6; }
18942
18943if test -n "$EXPAT_CFLAGS"; then
18944    pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
18945 elif test -n "$PKG_CONFIG"; then
18946    if test -n "$PKG_CONFIG" && \
18947    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
18948  ($PKG_CONFIG --exists --print-errors "expat") 2>&5
18949  ac_status=$?
18950  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18951  test $ac_status = 0; }; then
18952  pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
18953		      test "x$?" != "x0" && pkg_failed=yes
18954else
18955  pkg_failed=yes
18956fi
18957 else
18958    pkg_failed=untried
18959fi
18960if test -n "$EXPAT_LIBS"; then
18961    pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
18962 elif test -n "$PKG_CONFIG"; then
18963    if test -n "$PKG_CONFIG" && \
18964    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
18965  ($PKG_CONFIG --exists --print-errors "expat") 2>&5
18966  ac_status=$?
18967  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18968  test $ac_status = 0; }; then
18969  pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
18970		      test "x$?" != "x0" && pkg_failed=yes
18971else
18972  pkg_failed=yes
18973fi
18974 else
18975    pkg_failed=untried
18976fi
18977
18978
18979
18980if test $pkg_failed = yes; then
18981   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18982printf "%s\n" "no" >&6; }
18983
18984if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18985        _pkg_short_errors_supported=yes
18986else
18987        _pkg_short_errors_supported=no
18988fi
18989        if test $_pkg_short_errors_supported = yes; then
18990	        EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
18991        else
18992	        EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
18993        fi
18994	# Put the nasty error message in config.log where it belongs
18995	echo "$EXPAT_PKG_ERRORS" >&5
18996
18997	use_pkgconfig_for_expat=no
18998elif test $pkg_failed = untried; then
18999     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19000printf "%s\n" "no" >&6; }
19001	use_pkgconfig_for_expat=no
19002else
19003	EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
19004	EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
19005        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19006printf "%s\n" "yes" >&6; }
19007
19008fi
19009	else
19010		use_pkgconfig_for_expat=no
19011	fi
19012	if test "x$use_pkgconfig_for_expat" = "xno"; then
19013		if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
19014			EXPAT_CFLAGS="-I${expat_includes}"
19015		elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
19016			EXPAT_CFLAGS="-I${expat_prefix}/include"
19017		else
19018			EXPAT_CFLAGS=""
19019		fi
19020		if test "$expat_lib" != "auto"; then
19021			EXPAT_LIBS="-L${expat_lib} -lexpat"
19022		elif test "$expat_prefix" != "auto"; then
19023			EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
19024		else
19025			EXPAT_LIBS="-lexpat"
19026		fi
19027		PKG_EXPAT_CFLAGS=$EXPAT_CFLAGS
19028		PKG_EXPAT_LIBS=$EXPAT_LIBS
19029	else
19030		PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
19031		PKG_EXPAT_CFLAGS=
19032		PKG_EXPAT_LIBS=
19033	fi
19034
19035	expatsaved_CPPFLAGS="$CPPFLAGS"
19036	expatsaved_LIBS="$LIBS"
19037	CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
19038	LIBS="$LIBS $EXPAT_LIBS"
19039
19040	ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
19041if test "x$ac_cv_header_expat_h" = xyes
19042then :
19043
19044fi
19045
19046	if test "$ac_cv_header_expat_h" = "no"; then
19047		ac_fn_c_check_header_compile "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
19048if test "x$ac_cv_header_xmlparse_h" = xyes
19049then :
19050
19051fi
19052
19053		if test "$ac_cv_header_xmlparse_h" = "yes"; then
19054			HAVE_XMLPARSE_H=1
19055
19056
19057printf "%s\n" "#define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H" >>confdefs.h
19058
19059		else
19060			as_fn_error $? "
19061*** expat is required. or try to use --enable-libxml2" "$LINENO" 5
19062		fi
19063	fi
19064	ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
19065if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes
19066then :
19067  printf "%s\n" "#define HAVE_XML_SETDOCTYPEDECLHANDLER 1" >>confdefs.h
19068
19069fi
19070
19071	if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
19072		as_fn_error $? "
19073*** expat is required. or try to use --enable-libxml2" "$LINENO" 5
19074	fi
19075	CPPFLAGS="$expatsaved_CPPFLAGS"
19076	LIBS="$expatsaved_LIBS"
19077
19078
19079
19080
19081
19082fi
19083
19084#
19085# Check libxml2 configuration
19086#
19087# Check whether --enable-libxml2 was given.
19088if test ${enable_libxml2+y}
19089then :
19090  enableval=$enable_libxml2;
19091fi
19092
19093
19094if test "$enable_libxml2" = "yes"; then
19095
19096pkg_failed=no
19097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
19098printf %s "checking for LIBXML2... " >&6; }
19099
19100if test -n "$LIBXML2_CFLAGS"; then
19101    pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
19102 elif test -n "$PKG_CONFIG"; then
19103    if test -n "$PKG_CONFIG" && \
19104    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
19105  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
19106  ac_status=$?
19107  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19108  test $ac_status = 0; }; then
19109  pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
19110		      test "x$?" != "x0" && pkg_failed=yes
19111else
19112  pkg_failed=yes
19113fi
19114 else
19115    pkg_failed=untried
19116fi
19117if test -n "$LIBXML2_LIBS"; then
19118    pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
19119 elif test -n "$PKG_CONFIG"; then
19120    if test -n "$PKG_CONFIG" && \
19121    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
19122  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
19123  ac_status=$?
19124  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19125  test $ac_status = 0; }; then
19126  pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
19127		      test "x$?" != "x0" && pkg_failed=yes
19128else
19129  pkg_failed=yes
19130fi
19131 else
19132    pkg_failed=untried
19133fi
19134
19135
19136
19137if test $pkg_failed = yes; then
19138   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139printf "%s\n" "no" >&6; }
19140
19141if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19142        _pkg_short_errors_supported=yes
19143else
19144        _pkg_short_errors_supported=no
19145fi
19146        if test $_pkg_short_errors_supported = yes; then
19147	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
19148        else
19149	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
19150        fi
19151	# Put the nasty error message in config.log where it belongs
19152	echo "$LIBXML2_PKG_ERRORS" >&5
19153
19154	as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
19155
19156$LIBXML2_PKG_ERRORS
19157
19158Consider adjusting the PKG_CONFIG_PATH environment variable if you
19159installed software in a non-standard prefix.
19160
19161Alternatively, you may set the environment variables LIBXML2_CFLAGS
19162and LIBXML2_LIBS to avoid the need to call pkg-config.
19163See the pkg-config man page for more details." "$LINENO" 5
19164elif test $pkg_failed = untried; then
19165     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19166printf "%s\n" "no" >&6; }
19167	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19168printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19169as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19170is in your PATH or set the PKG_CONFIG environment variable to the full
19171path to pkg-config.
19172
19173Alternatively, you may set the environment variables LIBXML2_CFLAGS
19174and LIBXML2_LIBS to avoid the need to call pkg-config.
19175See the pkg-config man page for more details.
19176
19177To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19178See \`config.log' for more details" "$LINENO" 5; }
19179else
19180	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
19181	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
19182        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19183printf "%s\n" "yes" >&6; }
19184
19185fi
19186    PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0 >= 2.6"
19187
19188printf "%s\n" "#define ENABLE_LIBXML2 1" >>confdefs.h
19189
19190
19191
19192
19193
19194    fc_saved_CFLAGS="$CFLAGS"
19195    CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
19196    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
19197printf %s "checking SAX1 support in libxml2... " >&6; }
19198    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199/* end confdefs.h.  */
19200
19201	#include <libxml/xmlversion.h>
19202	#if !defined(LIBXML_SAX1_ENABLED)
19203	#  include "error: No SAX1 support in libxml2"
19204	#endif
19205
19206_ACEOF
19207if ac_fn_c_try_compile "$LINENO"
19208then :
19209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
19210printf "%s\n" "found" >&6; }
19211else $as_nop
19212  as_fn_error $? "
19213*** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
19214fi
19215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19216    CFLAGS="$fc_saved_CFLAGS"
19217fi
19218
19219#
19220# Check json-c
19221#
19222
19223pkg_failed=no
19224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JSONC" >&5
19225printf %s "checking for JSONC... " >&6; }
19226
19227if test -n "$JSONC_CFLAGS"; then
19228    pkg_cv_JSONC_CFLAGS="$JSONC_CFLAGS"
19229 elif test -n "$PKG_CONFIG"; then
19230    if test -n "$PKG_CONFIG" && \
19231    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
19232  ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
19233  ac_status=$?
19234  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19235  test $ac_status = 0; }; then
19236  pkg_cv_JSONC_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
19237		      test "x$?" != "x0" && pkg_failed=yes
19238else
19239  pkg_failed=yes
19240fi
19241 else
19242    pkg_failed=untried
19243fi
19244if test -n "$JSONC_LIBS"; then
19245    pkg_cv_JSONC_LIBS="$JSONC_LIBS"
19246 elif test -n "$PKG_CONFIG"; then
19247    if test -n "$PKG_CONFIG" && \
19248    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
19249  ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
19250  ac_status=$?
19251  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19252  test $ac_status = 0; }; then
19253  pkg_cv_JSONC_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
19254		      test "x$?" != "x0" && pkg_failed=yes
19255else
19256  pkg_failed=yes
19257fi
19258 else
19259    pkg_failed=untried
19260fi
19261
19262
19263
19264if test $pkg_failed = yes; then
19265   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19266printf "%s\n" "no" >&6; }
19267
19268if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19269        _pkg_short_errors_supported=yes
19270else
19271        _pkg_short_errors_supported=no
19272fi
19273        if test $_pkg_short_errors_supported = yes; then
19274	        JSONC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
19275        else
19276	        JSONC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
19277        fi
19278	# Put the nasty error message in config.log where it belongs
19279	echo "$JSONC_PKG_ERRORS" >&5
19280
19281	use_jsonc=no
19282elif test $pkg_failed = untried; then
19283     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19284printf "%s\n" "no" >&6; }
19285	use_jsonc=no
19286else
19287	JSONC_CFLAGS=$pkg_cv_JSONC_CFLAGS
19288	JSONC_LIBS=$pkg_cv_JSONC_LIBS
19289        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19290printf "%s\n" "yes" >&6; }
19291	use_jsonc=yes
19292fi
19293
19294 if test "x$use_jsonc" = "xyes"; then
19295  ENABLE_JSONC_TRUE=
19296  ENABLE_JSONC_FALSE='#'
19297else
19298  ENABLE_JSONC_TRUE='#'
19299  ENABLE_JSONC_FALSE=
19300fi
19301
19302
19303
19304
19305#
19306# Set default sub-pixel rendering
19307#
19308
19309
19310# Check whether --with-default-sub-pixel-rendering was given.
19311if test ${with_default_sub_pixel_rendering+y}
19312then :
19313  withval=$with_default_sub_pixel_rendering; preferred_sub_pixel_rendering="$withval"
19314else $as_nop
19315  preferred_sub_pixel_rendering=none
19316fi
19317
19318
19319case "$preferred_sub_pixel_rendering" in
19320none|bgr|rgb|vbgr|vrgb)
19321    PREFERRED_SUB_PIXEL_RENDERING="$preferred_sub_pixel_rendering"
19322
19323    ;;
19324*)
19325    as_fn_error $? "Invalid sub-pixel rendering. please choose one of none, bgr, rgb, vbgr, or vrgb" "$LINENO" 5
19326    ;;
19327esac
19328
19329#
19330# Set default hinting
19331#
19332
19333
19334# Check whether --with-default-hinting was given.
19335if test ${with_default_hinting+y}
19336then :
19337  withval=$with_default_hinting; preferred_hinting="$withval"
19338else $as_nop
19339  preferred_hinting=slight
19340fi
19341
19342
19343case "$preferred_hinting" in
19344none|slight|medium|full)
19345	PREFERRED_HINTING="$preferred_hinting"
19346
19347	;;
19348*)
19349	as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
19350	;;
19351esac
19352
19353#
19354# Set default font directory
19355#
19356
19357
19358# Check whether --with-default-fonts was given.
19359if test ${with_default_fonts+y}
19360then :
19361  withval=$with_default_fonts; default_fonts="$withval"
19362else $as_nop
19363  default_fonts=yes
19364fi
19365
19366
19367case "$default_fonts" in
19368yes)
19369	if test "$os_win32" = "yes"; then
19370		default_fonts="WINDOWSFONTDIR,WINDOWSUSERFONTDIR"
19371	elif test "$os_darwin" = "yes"; then
19372		default_fonts="/System/Library/Fonts,/Library/Fonts,~/Library/Fonts,/System/Library/Assets/com_apple_MobileAsset_Font3,/System/Library/Assets/com_apple_MobileAsset_Font4"
19373	else
19374		default_fonts="/usr/share/fonts"
19375	fi
19376	;;
19377esac
19378
19379FC_DEFAULT_FONTS=""
19380if test x${default_fonts+set} = xset; then
19381	fc_IFS=$IFS
19382	IFS=","
19383	for p in $default_fonts; do
19384		if test x"$FC_DEFAULT_FONTS" != x; then
19385			FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS "
19386		fi
19387		FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS<dir>$p</dir>"
19388	done
19389	IFS=$fc_IFS
19390fi
19391
19392
19393printf "%s\n" "#define FC_DEFAULT_FONTS \"$FC_DEFAULT_FONTS\"" >>confdefs.h
19394
19395
19396
19397
19398#
19399# Add more fonts if available.  By default, add only the directories
19400# with outline fonts; those with bitmaps can be added as desired in
19401# local.conf or ~/.fonts.conf
19402#
19403
19404# Check whether --with-add-fonts was given.
19405if test ${with_add_fonts+y}
19406then :
19407  withval=$with_add_fonts; add_fonts="$withval"
19408else $as_nop
19409  add_fonts=yes
19410fi
19411
19412
19413case "$add_fonts" in
19414yes)
19415	FC_ADD_FONTS=""
19416	for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
19417		case x"$FC_ADD_FONTS" in
19418		x)
19419			sub="$dir/fonts"
19420			if test -d "$sub"; then
19421				case x$FC_ADD_FONTS in
19422				x)
19423					FC_ADD_FONTS="$sub"
19424					;;
19425				*)
19426					FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
19427					;;
19428				esac
19429			fi
19430			;;
19431		esac
19432	done
19433
19434printf "%s\n" "#define FC_ADD_FONTS \"$add_fonts\"" >>confdefs.h
19435
19436	;;
19437no)
19438	FC_ADD_FONTS=""
19439	;;
19440*)
19441	FC_ADD_FONTS="$add_fonts"
19442
19443printf "%s\n" "#define FC_ADD_FONTS \"$add_fonts\"" >>confdefs.h
19444
19445	;;
19446esac
19447
19448
19449
19450FC_FONTPATH=""
19451
19452case "$FC_ADD_FONTS" in
19453"")
19454	;;
19455*)
19456	FC_FONTPATH=`echo $FC_ADD_FONTS |
19457			sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
19458	;;
19459esac
19460
19461
19462
19463#
19464# Set default cache directory path
19465#
19466
19467# Check whether --with-cache-dir was given.
19468if test ${with_cache_dir+y}
19469then :
19470  withval=$with_cache_dir; fc_cachedir="$withval"
19471else $as_nop
19472  fc_cachedir=yes
19473fi
19474
19475
19476case $fc_cachedir in
19477no|yes)
19478	if test "$os_win32" = "yes"; then
19479		fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
19480	else
19481		fc_cachedir='${localstatedir}/cache/${PACKAGE}'
19482	fi
19483	;;
19484*)
19485	;;
19486esac
19487
19488FC_CACHEDIR=${fc_cachedir}
19489
19490
19491FC_FONTDATE=`LC_ALL=C date`
19492
19493
19494
19495#
19496# Set configuration paths
19497#
19498
19499
19500# Check whether --with-templatedir was given.
19501if test ${with_templatedir+y}
19502then :
19503  withval=$with_templatedir; templatedir="$withval"
19504else $as_nop
19505  templatedir=yes
19506fi
19507
19508
19509# Check whether --with-baseconfigdir was given.
19510if test ${with_baseconfigdir+y}
19511then :
19512  withval=$with_baseconfigdir; baseconfigdir="$withval"
19513else $as_nop
19514  baseconfigdir=yes
19515fi
19516
19517
19518# Check whether --with-configdir was given.
19519if test ${with_configdir+y}
19520then :
19521  withval=$with_configdir; configdir="$withval"
19522else $as_nop
19523  configdir=yes
19524fi
19525
19526
19527# Check whether --with-xmldir was given.
19528if test ${with_xmldir+y}
19529then :
19530  withval=$with_xmldir; xmldir="$withval"
19531else $as_nop
19532  xmldir=yes
19533fi
19534
19535
19536case "$templatedir" in
19537no|yes)
19538	templatedir='${datadir}'/fontconfig/conf.avail
19539	;;
19540*)
19541	;;
19542esac
19543case "$baseconfigdir" in
19544no|yes)
19545	baseconfigdir='${sysconfdir}'/fonts
19546	;;
19547*)
19548	;;
19549esac
19550case "$configdir" in
19551no|yes)
19552	configdir='${BASECONFIGDIR}'/conf.d
19553	;;
19554*)
19555	;;
19556esac
19557case "$xmldir" in
19558no|yes)
19559	xmldir='${datadir}'/xml/fontconfig
19560	;;
19561*)
19562	;;
19563esac
19564
19565TEMPLATEDIR=${templatedir}
19566BASECONFIGDIR=${baseconfigdir}
19567CONFIGDIR=${configdir}
19568XMLDIR=${xmldir}
19569
19570
19571
19572
19573
19574
19575
19576#
19577# Thread-safety primitives
19578#
19579
19580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stdatomic.h atomic primitives" >&5
19581printf %s "checking stdatomic.h atomic primitives... " >&6; }
19582if test ${fc_cv_have_stdatomic_atomic_primitives+y}
19583then :
19584  printf %s "(cached) " >&6
19585else $as_nop
19586
19587	fc_cv_have_stdatomic_atomic_primitives=false
19588	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589/* end confdefs.h.  */
19590
19591		#include <stdatomic.h>
19592
19593		void memory_barrier (void) { atomic_thread_fence (memory_order_acq_rel); }
19594		int atomic_add (atomic_int *i) { return atomic_fetch_add_explicit (i, 1, memory_order_relaxed); }
19595		int mutex_trylock (atomic_flag *m) { return atomic_flag_test_and_set_explicit (m, memory_order_acquire); }
19596		void mutex_unlock (atomic_flag *m) { atomic_flag_clear_explicit (m, memory_order_release); }
19597
19598int
19599main (void)
19600{
19601
19602  ;
19603  return 0;
19604}
19605_ACEOF
19606if ac_fn_c_try_link "$LINENO"
19607then :
19608  fc_cv_have_stdatomic_atomic_primitives=true
19609
19610fi
19611rm -f core conftest.err conftest.$ac_objext conftest.beam \
19612    conftest$ac_exeext conftest.$ac_ext
19613
19614fi
19615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_stdatomic_atomic_primitives" >&5
19616printf "%s\n" "$fc_cv_have_stdatomic_atomic_primitives" >&6; }
19617if $fc_cv_have_stdatomic_atomic_primitives; then
19618
19619printf "%s\n" "#define HAVE_STDATOMIC_PRIMITIVES 1" >>confdefs.h
19620
19621fi
19622
19623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
19624printf %s "checking for Intel atomic primitives... " >&6; }
19625if test ${fc_cv_have_intel_atomic_primitives+y}
19626then :
19627  printf %s "(cached) " >&6
19628else $as_nop
19629
19630	fc_cv_have_intel_atomic_primitives=false
19631	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19632/* end confdefs.h.  */
19633
19634		void memory_barrier (void) { __sync_synchronize (); }
19635		int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
19636		int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
19637		void mutex_unlock (int *m) { __sync_lock_release (m); }
19638
19639int
19640main (void)
19641{
19642
19643  ;
19644  return 0;
19645}
19646_ACEOF
19647if ac_fn_c_try_link "$LINENO"
19648then :
19649  fc_cv_have_intel_atomic_primitives=true
19650
19651fi
19652rm -f core conftest.err conftest.$ac_objext conftest.beam \
19653    conftest$ac_exeext conftest.$ac_ext
19654
19655fi
19656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
19657printf "%s\n" "$fc_cv_have_intel_atomic_primitives" >&6; }
19658if $fc_cv_have_intel_atomic_primitives; then
19659
19660printf "%s\n" "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
19661
19662fi
19663
19664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
19665printf %s "checking for Solaris atomic operations... " >&6; }
19666if test ${fc_cv_have_solaris_atomic_ops+y}
19667then :
19668  printf %s "(cached) " >&6
19669else $as_nop
19670
19671	fc_cv_have_solaris_atomic_ops=false
19672	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19673/* end confdefs.h.  */
19674
19675		#include <atomic.h>
19676		/* This requires Solaris Studio 12.2 or newer: */
19677		#include <mbarrier.h>
19678		void memory_barrier (void) { __machine_rw_barrier (); }
19679		int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
19680		void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
19681
19682int
19683main (void)
19684{
19685
19686  ;
19687  return 0;
19688}
19689_ACEOF
19690if ac_fn_c_try_link "$LINENO"
19691then :
19692  fc_cv_have_solaris_atomic_ops=true
19693
19694fi
19695rm -f core conftest.err conftest.$ac_objext conftest.beam \
19696    conftest$ac_exeext conftest.$ac_ext
19697
19698fi
19699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
19700printf "%s\n" "$fc_cv_have_solaris_atomic_ops" >&6; }
19701if $fc_cv_have_solaris_atomic_ops; then
19702
19703printf "%s\n" "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
19704
19705fi
19706
19707if test "$os_win32" = no && ! $have_pthread; then
19708	ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19709if test "x$ac_cv_header_sched_h" = xyes
19710then :
19711  printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
19712
19713fi
19714
19715	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
19716printf %s "checking for library containing sched_yield... " >&6; }
19717if test ${ac_cv_search_sched_yield+y}
19718then :
19719  printf %s "(cached) " >&6
19720else $as_nop
19721  ac_func_search_save_LIBS=$LIBS
19722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19723/* end confdefs.h.  */
19724
19725/* Override any GCC internal prototype to avoid an error.
19726   Use char because int might match the return type of a GCC
19727   builtin and then its argument prototype would still apply.  */
19728char sched_yield ();
19729int
19730main (void)
19731{
19732return sched_yield ();
19733  ;
19734  return 0;
19735}
19736_ACEOF
19737for ac_lib in '' rt
19738do
19739  if test -z "$ac_lib"; then
19740    ac_res="none required"
19741  else
19742    ac_res=-l$ac_lib
19743    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19744  fi
19745  if ac_fn_c_try_link "$LINENO"
19746then :
19747  ac_cv_search_sched_yield=$ac_res
19748fi
19749rm -f core conftest.err conftest.$ac_objext conftest.beam \
19750    conftest$ac_exeext
19751  if test ${ac_cv_search_sched_yield+y}
19752then :
19753  break
19754fi
19755done
19756if test ${ac_cv_search_sched_yield+y}
19757then :
19758
19759else $as_nop
19760  ac_cv_search_sched_yield=no
19761fi
19762rm conftest.$ac_ext
19763LIBS=$ac_func_search_save_LIBS
19764fi
19765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
19766printf "%s\n" "$ac_cv_search_sched_yield" >&6; }
19767ac_res=$ac_cv_search_sched_yield
19768if test "$ac_res" != no
19769then :
19770  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19771
19772printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19773
19774fi
19775
19776fi
19777
19778have_pthread=false
19779if test "$os_win32" = no; then
19780
19781
19782ac_ext=c
19783ac_cpp='$CPP $CPPFLAGS'
19784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19786ac_compiler_gnu=$ac_cv_c_compiler_gnu
19787
19788ax_pthread_ok=no
19789
19790# We used to check for pthread.h first, but this fails if pthread.h
19791# requires special compiler flags (e.g. on True64 or Sequent).
19792# It gets checked for in the link test anyway.
19793
19794# First of all, check if the user has set any of the PTHREAD_LIBS,
19795# etcetera environment variables, and if threads linking works using
19796# them:
19797if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19798        save_CFLAGS="$CFLAGS"
19799        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19800        save_LIBS="$LIBS"
19801        LIBS="$PTHREAD_LIBS $LIBS"
19802        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19803printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19804        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19805/* end confdefs.h.  */
19806
19807/* Override any GCC internal prototype to avoid an error.
19808   Use char because int might match the return type of a GCC
19809   builtin and then its argument prototype would still apply.  */
19810char pthread_join ();
19811int
19812main (void)
19813{
19814return pthread_join ();
19815  ;
19816  return 0;
19817}
19818_ACEOF
19819if ac_fn_c_try_link "$LINENO"
19820then :
19821  ax_pthread_ok=yes
19822fi
19823rm -f core conftest.err conftest.$ac_objext conftest.beam \
19824    conftest$ac_exeext conftest.$ac_ext
19825        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19826printf "%s\n" "$ax_pthread_ok" >&6; }
19827        if test x"$ax_pthread_ok" = xno; then
19828                PTHREAD_LIBS=""
19829                PTHREAD_CFLAGS=""
19830        fi
19831        LIBS="$save_LIBS"
19832        CFLAGS="$save_CFLAGS"
19833fi
19834
19835# We must check for the threads library under a number of different
19836# names; the ordering is very important because some systems
19837# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19838# libraries is broken (non-POSIX).
19839
19840# Create a list of thread flags to try.  Items starting with a "-" are
19841# C compiler flags, and other items are library names, except for "none"
19842# which indicates that we try without any flags at all, and "pthread-config"
19843# which is a program returning the flags for the Pth emulation library.
19844
19845ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19846
19847# The ordering *is* (sometimes) important.  Some notes on the
19848# individual items follow:
19849
19850# pthreads: AIX (must check this before -lpthread)
19851# none: in case threads are in libc; should be tried before -Kthread and
19852#       other compiler flags to prevent continual compiler warnings
19853# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19854# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19855# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19856# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19857# -pthreads: Solaris/gcc
19858# -mthreads: Mingw32/gcc, Lynx/gcc
19859# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19860#      doesn't hurt to check since this sometimes defines pthreads too;
19861#      also defines -D_REENTRANT)
19862#      ... -mt is also the pthreads flag for HP/aCC
19863# pthread: Linux, etcetera
19864# --thread-safe: KAI C++
19865# pthread-config: use pthread-config program (for GNU Pth library)
19866
19867case ${host_os} in
19868        solaris*)
19869
19870        # On Solaris (at least, for some versions), libc contains stubbed
19871        # (non-functional) versions of the pthreads routines, so link-based
19872        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
19873        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
19874        # a function called by this macro, so we could check for that, but
19875        # who knows whether they'll stub that too in a future libc.)  So,
19876        # we'll just look for -pthreads and -lpthread first:
19877
19878        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
19879        ;;
19880
19881        darwin*)
19882        ax_pthread_flags="-pthread $ax_pthread_flags"
19883        ;;
19884	netbsd*)
19885	# use libc stubs, don't link against libpthread, to allow
19886	# dynamic loading
19887	ax_pthread_flags=""
19888	;;
19889esac
19890
19891# Clang doesn't consider unrecognized options an error unless we specify
19892# -Werror. We throw in some extra Clang-specific options to ensure that
19893# this doesn't happen for GCC, which also accepts -Werror.
19894
19895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
19896printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
19897save_CFLAGS="$CFLAGS"
19898ax_pthread_extra_flags="-Werror"
19899CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
19900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19901/* end confdefs.h.  */
19902int foo(void);
19903int
19904main (void)
19905{
19906foo()
19907  ;
19908  return 0;
19909}
19910_ACEOF
19911if ac_fn_c_try_compile "$LINENO"
19912then :
19913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19914printf "%s\n" "yes" >&6; }
19915else $as_nop
19916  ax_pthread_extra_flags=
19917                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19918printf "%s\n" "no" >&6; }
19919fi
19920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19921CFLAGS="$save_CFLAGS"
19922
19923if test x"$ax_pthread_ok" = xno; then
19924for flag in $ax_pthread_flags; do
19925
19926        case $flag in
19927                none)
19928                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19929printf %s "checking whether pthreads work without any flags... " >&6; }
19930                ;;
19931
19932                -*)
19933                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19934printf %s "checking whether pthreads work with $flag... " >&6; }
19935                PTHREAD_CFLAGS="$flag"
19936                ;;
19937
19938                pthread-config)
19939                # Extract the first word of "pthread-config", so it can be a program name with args.
19940set dummy pthread-config; ac_word=$2
19941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19942printf %s "checking for $ac_word... " >&6; }
19943if test ${ac_cv_prog_ax_pthread_config+y}
19944then :
19945  printf %s "(cached) " >&6
19946else $as_nop
19947  if test -n "$ax_pthread_config"; then
19948  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19949else
19950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19951for as_dir in $PATH
19952do
19953  IFS=$as_save_IFS
19954  case $as_dir in #(((
19955    '') as_dir=./ ;;
19956    */) ;;
19957    *) as_dir=$as_dir/ ;;
19958  esac
19959    for ac_exec_ext in '' $ac_executable_extensions; do
19960  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19961    ac_cv_prog_ax_pthread_config="yes"
19962    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19963    break 2
19964  fi
19965done
19966  done
19967IFS=$as_save_IFS
19968
19969  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19970fi
19971fi
19972ax_pthread_config=$ac_cv_prog_ax_pthread_config
19973if test -n "$ax_pthread_config"; then
19974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19975printf "%s\n" "$ax_pthread_config" >&6; }
19976else
19977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19978printf "%s\n" "no" >&6; }
19979fi
19980
19981
19982                if test x"$ax_pthread_config" = xno; then continue; fi
19983                PTHREAD_CFLAGS="`pthread-config --cflags`"
19984                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19985                ;;
19986
19987                *)
19988                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19989printf %s "checking for the pthreads library -l$flag... " >&6; }
19990                PTHREAD_LIBS="-l$flag"
19991                ;;
19992        esac
19993
19994        save_LIBS="$LIBS"
19995        save_CFLAGS="$CFLAGS"
19996        LIBS="$PTHREAD_LIBS $LIBS"
19997        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19998
19999        # Check for various functions.  We must include pthread.h,
20000        # since some functions may be macros.  (On the Sequent, we
20001        # need a special flag -Kthread to make this header compile.)
20002        # We check for pthread_join because it is in -lpthread on IRIX
20003        # while pthread_create is in libc.  We check for pthread_attr_init
20004        # due to DEC craziness with -lpthreads.  We check for
20005        # pthread_cleanup_push because it is one of the few pthread
20006        # functions on Solaris that doesn't have a non-functional libc stub.
20007        # We try pthread_create on general principles.
20008        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20009/* end confdefs.h.  */
20010#include <pthread.h>
20011                        static void routine(void *a) { a = 0; }
20012                        static void *start_routine(void *a) { return a; }
20013int
20014main (void)
20015{
20016pthread_t th; pthread_attr_t attr;
20017                        pthread_create(&th, 0, start_routine, 0);
20018                        pthread_join(th, 0);
20019                        pthread_attr_init(&attr);
20020                        pthread_cleanup_push(routine, 0);
20021                        pthread_cleanup_pop(0) /* ; */
20022  ;
20023  return 0;
20024}
20025_ACEOF
20026if ac_fn_c_try_link "$LINENO"
20027then :
20028  ax_pthread_ok=yes
20029fi
20030rm -f core conftest.err conftest.$ac_objext conftest.beam \
20031    conftest$ac_exeext conftest.$ac_ext
20032
20033        LIBS="$save_LIBS"
20034        CFLAGS="$save_CFLAGS"
20035
20036        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20037printf "%s\n" "$ax_pthread_ok" >&6; }
20038        if test "x$ax_pthread_ok" = xyes; then
20039                break;
20040        fi
20041
20042        PTHREAD_LIBS=""
20043        PTHREAD_CFLAGS=""
20044done
20045fi
20046
20047# Various other checks:
20048if test "x$ax_pthread_ok" = xyes; then
20049        save_LIBS="$LIBS"
20050        LIBS="$PTHREAD_LIBS $LIBS"
20051        save_CFLAGS="$CFLAGS"
20052        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20053
20054        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20055        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20056printf %s "checking for joinable pthread attribute... " >&6; }
20057        attr_name=unknown
20058        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20059            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060/* end confdefs.h.  */
20061#include <pthread.h>
20062int
20063main (void)
20064{
20065int attr = $attr; return attr /* ; */
20066  ;
20067  return 0;
20068}
20069_ACEOF
20070if ac_fn_c_try_link "$LINENO"
20071then :
20072  attr_name=$attr; break
20073fi
20074rm -f core conftest.err conftest.$ac_objext conftest.beam \
20075    conftest$ac_exeext conftest.$ac_ext
20076        done
20077        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20078printf "%s\n" "$attr_name" >&6; }
20079        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20080
20081printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
20082
20083        fi
20084
20085        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20086printf %s "checking if more special flags are required for pthreads... " >&6; }
20087        flag=no
20088        case ${host_os} in
20089            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
20090            osf* | hpux*) flag="-D_REENTRANT";;
20091            solaris*)
20092            if test "$GCC" = "yes"; then
20093                flag="-D_REENTRANT"
20094            else
20095                # TODO: What about Clang on Solaris?
20096                flag="-mt -D_REENTRANT"
20097            fi
20098            ;;
20099        esac
20100        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
20101printf "%s\n" "$flag" >&6; }
20102        if test "x$flag" != xno; then
20103            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20104        fi
20105
20106        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20107printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20108if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
20109then :
20110  printf %s "(cached) " >&6
20111else $as_nop
20112
20113                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20114/* end confdefs.h.  */
20115#include <pthread.h>
20116int
20117main (void)
20118{
20119int i = PTHREAD_PRIO_INHERIT;
20120  ;
20121  return 0;
20122}
20123_ACEOF
20124if ac_fn_c_try_link "$LINENO"
20125then :
20126  ax_cv_PTHREAD_PRIO_INHERIT=yes
20127else $as_nop
20128  ax_cv_PTHREAD_PRIO_INHERIT=no
20129fi
20130rm -f core conftest.err conftest.$ac_objext conftest.beam \
20131    conftest$ac_exeext conftest.$ac_ext
20132
20133fi
20134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20135printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20136        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
20137then :
20138
20139printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20140
20141fi
20142
20143        LIBS="$save_LIBS"
20144        CFLAGS="$save_CFLAGS"
20145
20146        # More AIX lossage: compile with *_r variant
20147        if test "x$GCC" != xyes; then
20148            case $host_os in
20149                aix*)
20150                case "x/$CC" in #(
20151  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20152    #handle absolute path differently from PATH based program lookup
20153                   case "x$CC" in #(
20154  x/*) :
20155    if as_fn_executable_p ${CC}_r
20156then :
20157  PTHREAD_CC="${CC}_r"
20158fi ;; #(
20159  *) :
20160    for ac_prog in ${CC}_r
20161do
20162  # Extract the first word of "$ac_prog", so it can be a program name with args.
20163set dummy $ac_prog; ac_word=$2
20164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20165printf %s "checking for $ac_word... " >&6; }
20166if test ${ac_cv_prog_PTHREAD_CC+y}
20167then :
20168  printf %s "(cached) " >&6
20169else $as_nop
20170  if test -n "$PTHREAD_CC"; then
20171  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20172else
20173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20174for as_dir in $PATH
20175do
20176  IFS=$as_save_IFS
20177  case $as_dir in #(((
20178    '') as_dir=./ ;;
20179    */) ;;
20180    *) as_dir=$as_dir/ ;;
20181  esac
20182    for ac_exec_ext in '' $ac_executable_extensions; do
20183  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20184    ac_cv_prog_PTHREAD_CC="$ac_prog"
20185    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20186    break 2
20187  fi
20188done
20189  done
20190IFS=$as_save_IFS
20191
20192fi
20193fi
20194PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20195if test -n "$PTHREAD_CC"; then
20196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20197printf "%s\n" "$PTHREAD_CC" >&6; }
20198else
20199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20200printf "%s\n" "no" >&6; }
20201fi
20202
20203
20204  test -n "$PTHREAD_CC" && break
20205done
20206test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20207 ;;
20208esac ;; #(
20209  *) :
20210     ;;
20211esac
20212                ;;
20213            esac
20214        fi
20215fi
20216
20217test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20218
20219
20220
20221
20222
20223# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20224if test x"$ax_pthread_ok" = xyes; then
20225        have_pthread=true
20226        :
20227else
20228        ax_pthread_ok=no
20229
20230fi
20231ac_ext=c
20232ac_cpp='$CPP $CPPFLAGS'
20233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20235ac_compiler_gnu=$ac_cv_c_compiler_gnu
20236
20237
20238fi
20239if $have_pthread; then
20240	LIBS="$PTHREAD_LIBS $LIBS"
20241	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20242	CC="$PTHREAD_CC"
20243
20244printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
20245
20246fi
20247 if $have_pthread; then
20248  HAVE_PTHREAD_TRUE=
20249  HAVE_PTHREAD_FALSE='#'
20250else
20251  HAVE_PTHREAD_TRUE='#'
20252  HAVE_PTHREAD_FALSE=
20253fi
20254
20255
20256
20257
20258#
20259# Let people not build/install docs if they don't have docbook
20260#
20261
20262# Check whether --enable-docbook was given.
20263if test ${enable_docbook+y}
20264then :
20265  enableval=$enable_docbook;
20266fi
20267
20268
20269if test x$enable_docbook != xno; then
20270	# Extract the first word of "docbook2html", so it can be a program name with args.
20271set dummy docbook2html; ac_word=$2
20272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20273printf %s "checking for $ac_word... " >&6; }
20274if test ${ac_cv_prog_HASDOCBOOK+y}
20275then :
20276  printf %s "(cached) " >&6
20277else $as_nop
20278  if test -n "$HASDOCBOOK"; then
20279  ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
20280else
20281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20282for as_dir in $PATH
20283do
20284  IFS=$as_save_IFS
20285  case $as_dir in #(((
20286    '') as_dir=./ ;;
20287    */) ;;
20288    *) as_dir=$as_dir/ ;;
20289  esac
20290    for ac_exec_ext in '' $ac_executable_extensions; do
20291  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20292    ac_cv_prog_HASDOCBOOK="yes"
20293    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20294    break 2
20295  fi
20296done
20297  done
20298IFS=$as_save_IFS
20299
20300  test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
20301fi
20302fi
20303HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
20304if test -n "$HASDOCBOOK"; then
20305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
20306printf "%s\n" "$HASDOCBOOK" >&6; }
20307else
20308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20309printf "%s\n" "no" >&6; }
20310fi
20311
20312
20313fi
20314
20315 if test "x$HASDOCBOOK" = xyes; then
20316  USEDOCBOOK_TRUE=
20317  USEDOCBOOK_FALSE='#'
20318else
20319  USEDOCBOOK_TRUE='#'
20320  USEDOCBOOK_FALSE=
20321fi
20322
20323
20324default_docs="yes"
20325#
20326# Check if docs exist or can be created
20327#
20328if test x$HASDOCBOOK = xno; then
20329	if test -f $srcdir/doc/fonts-conf.5; then
20330		:
20331	else
20332		default_docs="no"
20333	fi
20334fi
20335
20336# Check whether --enable-docs was given.
20337if test ${enable_docs+y}
20338then :
20339  enableval=$enable_docs;
20340else $as_nop
20341  enable_docs=$default_docs
20342fi
20343
20344
20345 if test "x$enable_docs" = xyes; then
20346  ENABLE_DOCS_TRUE=
20347  ENABLE_DOCS_FALSE='#'
20348else
20349  ENABLE_DOCS_TRUE='#'
20350  ENABLE_DOCS_FALSE=
20351fi
20352
20353
20354if test "x$enable_docs" = xyes; then
20355	tmp=funcs.$$
20356	cat $srcdir/doc/*.fncs | awk '
20357	/^@TITLE@/	{ if (!done) { printf ("%s\n", $2); done = 1; } }
20358	/^@FUNC@/	{ if (!done) { printf ("%s\n", $2); done = 1; } }
20359	/^@@/		{ done = 0; }' > $tmp
20360	DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
20361	echo DOCMAN3 $DOCMAN3
20362	rm -f $tmp
20363else
20364	DOCMAN3=""
20365fi
20366
20367
20368default_cache_build="yes"
20369if test $cross_compiling = "yes"; then
20370	default_cache_build="no"
20371fi
20372# Check whether --enable-cache-build was given.
20373if test ${enable_cache_build+y}
20374then :
20375  enableval=$enable_cache_build;
20376else $as_nop
20377  enable_cache_build=$default_cache_build
20378fi
20379
20380
20381 if test "x$enable_cache_build" = xyes; then
20382  ENABLE_CACHE_BUILD_TRUE=
20383  ENABLE_CACHE_BUILD_FALSE='#'
20384else
20385  ENABLE_CACHE_BUILD_TRUE='#'
20386  ENABLE_CACHE_BUILD_FALSE=
20387fi
20388
20389
20390
20391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20392printf %s "checking whether byte ordering is bigendian... " >&6; }
20393if test ${ac_cv_c_bigendian+y}
20394then :
20395  printf %s "(cached) " >&6
20396else $as_nop
20397  ac_cv_c_bigendian=unknown
20398    # See if we're dealing with a universal compiler.
20399    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400/* end confdefs.h.  */
20401#ifndef __APPLE_CC__
20402	       not a universal capable compiler
20403	     #endif
20404	     typedef int dummy;
20405
20406_ACEOF
20407if ac_fn_c_try_compile "$LINENO"
20408then :
20409
20410	# Check for potential -arch flags.  It is not universal unless
20411	# there are at least two -arch flags with different values.
20412	ac_arch=
20413	ac_prev=
20414	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20415	 if test -n "$ac_prev"; then
20416	   case $ac_word in
20417	     i?86 | x86_64 | ppc | ppc64)
20418	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20419		 ac_arch=$ac_word
20420	       else
20421		 ac_cv_c_bigendian=universal
20422		 break
20423	       fi
20424	       ;;
20425	   esac
20426	   ac_prev=
20427	 elif test "x$ac_word" = "x-arch"; then
20428	   ac_prev=arch
20429	 fi
20430       done
20431fi
20432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20433    if test $ac_cv_c_bigendian = unknown; then
20434      # See if sys/param.h defines the BYTE_ORDER macro.
20435      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20436/* end confdefs.h.  */
20437#include <sys/types.h>
20438	     #include <sys/param.h>
20439
20440int
20441main (void)
20442{
20443#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20444		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20445		     && LITTLE_ENDIAN)
20446	      bogus endian macros
20447	     #endif
20448
20449  ;
20450  return 0;
20451}
20452_ACEOF
20453if ac_fn_c_try_compile "$LINENO"
20454then :
20455  # It does; now see whether it defined to BIG_ENDIAN or not.
20456	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457/* end confdefs.h.  */
20458#include <sys/types.h>
20459		#include <sys/param.h>
20460
20461int
20462main (void)
20463{
20464#if BYTE_ORDER != BIG_ENDIAN
20465		 not big endian
20466		#endif
20467
20468  ;
20469  return 0;
20470}
20471_ACEOF
20472if ac_fn_c_try_compile "$LINENO"
20473then :
20474  ac_cv_c_bigendian=yes
20475else $as_nop
20476  ac_cv_c_bigendian=no
20477fi
20478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20479fi
20480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20481    fi
20482    if test $ac_cv_c_bigendian = unknown; then
20483      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20484      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20485/* end confdefs.h.  */
20486#include <limits.h>
20487
20488int
20489main (void)
20490{
20491#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20492	      bogus endian macros
20493	     #endif
20494
20495  ;
20496  return 0;
20497}
20498_ACEOF
20499if ac_fn_c_try_compile "$LINENO"
20500then :
20501  # It does; now see whether it defined to _BIG_ENDIAN or not.
20502	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503/* end confdefs.h.  */
20504#include <limits.h>
20505
20506int
20507main (void)
20508{
20509#ifndef _BIG_ENDIAN
20510		 not big endian
20511		#endif
20512
20513  ;
20514  return 0;
20515}
20516_ACEOF
20517if ac_fn_c_try_compile "$LINENO"
20518then :
20519  ac_cv_c_bigendian=yes
20520else $as_nop
20521  ac_cv_c_bigendian=no
20522fi
20523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20524fi
20525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20526    fi
20527    if test $ac_cv_c_bigendian = unknown; then
20528      # Compile a test program.
20529      if test "$cross_compiling" = yes
20530then :
20531  # Try to guess by grepping values from an object file.
20532	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533/* end confdefs.h.  */
20534unsigned short int ascii_mm[] =
20535		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20536		unsigned short int ascii_ii[] =
20537		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20538		int use_ascii (int i) {
20539		  return ascii_mm[i] + ascii_ii[i];
20540		}
20541		unsigned short int ebcdic_ii[] =
20542		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20543		unsigned short int ebcdic_mm[] =
20544		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20545		int use_ebcdic (int i) {
20546		  return ebcdic_mm[i] + ebcdic_ii[i];
20547		}
20548		extern int foo;
20549
20550int
20551main (void)
20552{
20553return use_ascii (foo) == use_ebcdic (foo);
20554  ;
20555  return 0;
20556}
20557_ACEOF
20558if ac_fn_c_try_compile "$LINENO"
20559then :
20560  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20561	      ac_cv_c_bigendian=yes
20562	    fi
20563	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20564	      if test "$ac_cv_c_bigendian" = unknown; then
20565		ac_cv_c_bigendian=no
20566	      else
20567		# finding both strings is unlikely to happen, but who knows?
20568		ac_cv_c_bigendian=unknown
20569	      fi
20570	    fi
20571fi
20572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20573else $as_nop
20574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575/* end confdefs.h.  */
20576$ac_includes_default
20577int
20578main (void)
20579{
20580
20581	     /* Are we little or big endian?  From Harbison&Steele.  */
20582	     union
20583	     {
20584	       long int l;
20585	       char c[sizeof (long int)];
20586	     } u;
20587	     u.l = 1;
20588	     return u.c[sizeof (long int) - 1] == 1;
20589
20590  ;
20591  return 0;
20592}
20593_ACEOF
20594if ac_fn_c_try_run "$LINENO"
20595then :
20596  ac_cv_c_bigendian=no
20597else $as_nop
20598  ac_cv_c_bigendian=yes
20599fi
20600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20601  conftest.$ac_objext conftest.beam conftest.$ac_ext
20602fi
20603
20604    fi
20605fi
20606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20607printf "%s\n" "$ac_cv_c_bigendian" >&6; }
20608 case $ac_cv_c_bigendian in #(
20609   yes)
20610     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
20611;; #(
20612   no)
20613      ;; #(
20614   universal)
20615
20616printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20617
20618     ;; #(
20619   *)
20620     as_fn_error $? "unknown endianness
20621 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20622 esac
20623
20624# The cast to long int works around a bug in the HP C Compiler
20625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20627# This bug is HP SR number 8606223364.
20628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20629printf %s "checking size of void *... " >&6; }
20630if test ${ac_cv_sizeof_void_p+y}
20631then :
20632  printf %s "(cached) " >&6
20633else $as_nop
20634  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
20635then :
20636
20637else $as_nop
20638  if test "$ac_cv_type_void_p" = yes; then
20639     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20640printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20641as_fn_error 77 "cannot compute sizeof (void *)
20642See \`config.log' for more details" "$LINENO" 5; }
20643   else
20644     ac_cv_sizeof_void_p=0
20645   fi
20646fi
20647
20648fi
20649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20650printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
20651
20652
20653
20654printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
20655
20656
20657# The cast to long int works around a bug in the HP C Compiler,
20658# see AC_CHECK_SIZEOF for more information.
20659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
20660printf %s "checking alignment of double... " >&6; }
20661if test ${ac_cv_alignof_double+y}
20662then :
20663  printf %s "(cached) " >&6
20664else $as_nop
20665  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
20666typedef struct { char x; double y; } ac__type_alignof_;"
20667then :
20668
20669else $as_nop
20670  if test "$ac_cv_type_double" = yes; then
20671     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20672printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20673as_fn_error 77 "cannot compute alignment of double
20674See \`config.log' for more details" "$LINENO" 5; }
20675   else
20676     ac_cv_alignof_double=0
20677   fi
20678fi
20679
20680fi
20681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
20682printf "%s\n" "$ac_cv_alignof_double" >&6; }
20683
20684
20685
20686printf "%s\n" "#define ALIGNOF_DOUBLE $ac_cv_alignof_double" >>confdefs.h
20687
20688
20689# The cast to long int works around a bug in the HP C Compiler,
20690# see AC_CHECK_SIZEOF for more information.
20691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
20692printf %s "checking alignment of void *... " >&6; }
20693if test ${ac_cv_alignof_void_p+y}
20694then :
20695  printf %s "(cached) " >&6
20696else $as_nop
20697  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p"        "$ac_includes_default
20698typedef struct { char x; void * y; } ac__type_alignof_;"
20699then :
20700
20701else $as_nop
20702  if test "$ac_cv_type_void_p" = yes; then
20703     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20704printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20705as_fn_error 77 "cannot compute alignment of void *
20706See \`config.log' for more details" "$LINENO" 5; }
20707   else
20708     ac_cv_alignof_void_p=0
20709   fi
20710fi
20711
20712fi
20713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
20714printf "%s\n" "$ac_cv_alignof_void_p" >&6; }
20715
20716
20717
20718printf "%s\n" "#define ALIGNOF_VOID_P $ac_cv_alignof_void_p" >>confdefs.h
20719
20720
20721
20722
20723
20724
20725
20726
20727ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-conflist/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml its/Makefile po/Makefile.in po-conf/Makefile.in test/Makefile fontconfig.pc fontconfig-zip"
20728
20729cat >confcache <<\_ACEOF
20730# This file is a shell script that caches the results of configure
20731# tests run on this system so they can be shared between configure
20732# scripts and configure runs, see configure's option --config-cache.
20733# It is not useful on other systems.  If it contains results you don't
20734# want to keep, you may remove or edit it.
20735#
20736# config.status only pays attention to the cache file if you give it
20737# the --recheck option to rerun configure.
20738#
20739# `ac_cv_env_foo' variables (set or unset) will be overridden when
20740# loading this file, other *unset* `ac_cv_foo' will be assigned the
20741# following values.
20742
20743_ACEOF
20744
20745# The following way of writing the cache mishandles newlines in values,
20746# but we know of no workaround that is simple, portable, and efficient.
20747# So, we kill variables containing newlines.
20748# Ultrix sh set writes to stderr and can't be redirected directly,
20749# and sets the high bit in the cache file unless we assign to the vars.
20750(
20751  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20752    eval ac_val=\$$ac_var
20753    case $ac_val in #(
20754    *${as_nl}*)
20755      case $ac_var in #(
20756      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20757printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20758      esac
20759      case $ac_var in #(
20760      _ | IFS | as_nl) ;; #(
20761      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20762      *) { eval $ac_var=; unset $ac_var;} ;;
20763      esac ;;
20764    esac
20765  done
20766
20767  (set) 2>&1 |
20768    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20769    *${as_nl}ac_space=\ *)
20770      # `set' does not quote correctly, so add quotes: double-quote
20771      # substitution turns \\\\ into \\, and sed turns \\ into \.
20772      sed -n \
20773	"s/'/'\\\\''/g;
20774	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20775      ;; #(
20776    *)
20777      # `set' quotes correctly as required by POSIX, so do not add quotes.
20778      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20779      ;;
20780    esac |
20781    sort
20782) |
20783  sed '
20784     /^ac_cv_env_/b end
20785     t clear
20786     :clear
20787     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20788     t end
20789     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20790     :end' >>confcache
20791if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20792  if test -w "$cache_file"; then
20793    if test "x$cache_file" != "x/dev/null"; then
20794      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20795printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20796      if test ! -f "$cache_file" || test -h "$cache_file"; then
20797	cat confcache >"$cache_file"
20798      else
20799        case $cache_file in #(
20800        */* | ?:*)
20801	  mv -f confcache "$cache_file"$$ &&
20802	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20803        *)
20804	  mv -f confcache "$cache_file" ;;
20805	esac
20806      fi
20807    fi
20808  else
20809    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20810printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20811  fi
20812fi
20813rm -f confcache
20814
20815test "x$prefix" = xNONE && prefix=$ac_default_prefix
20816# Let make expand exec_prefix.
20817test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20818
20819DEFS=-DHAVE_CONFIG_H
20820
20821ac_libobjs=
20822ac_ltlibobjs=
20823U=
20824for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20825  # 1. Remove the extension, and $U if already installed.
20826  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20827  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20828  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20829  #    will be set to the directory where LIBOBJS objects are built.
20830  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20831  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20832done
20833LIBOBJS=$ac_libobjs
20834
20835LTLIBOBJS=$ac_ltlibobjs
20836
20837
20838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20839printf %s "checking that generated files are newer than configure... " >&6; }
20840   if test -n "$am_sleep_pid"; then
20841     # Hide warnings about reused PIDs.
20842     wait $am_sleep_pid 2>/dev/null
20843   fi
20844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20845printf "%s\n" "done" >&6; }
20846 if test -n "$EXEEXT"; then
20847  am__EXEEXT_TRUE=
20848  am__EXEEXT_FALSE='#'
20849else
20850  am__EXEEXT_TRUE='#'
20851  am__EXEEXT_FALSE=
20852fi
20853
20854if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20855  as_fn_error $? "conditional \"AMDEP\" was never defined.
20856Usually this means the macro was only invoked conditionally." "$LINENO" 5
20857fi
20858if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20859  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20860Usually this means the macro was only invoked conditionally." "$LINENO" 5
20861fi
20862if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
20863  as_fn_error $? "conditional \"OS_WIN32\" was never defined.
20864Usually this means the macro was only invoked conditionally." "$LINENO" 5
20865fi
20866if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
20867  as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
20868Usually this means the macro was only invoked conditionally." "$LINENO" 5
20869fi
20870if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
20871  as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
20872Usually this means the macro was only invoked conditionally." "$LINENO" 5
20873fi
20874if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
20875  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
20876Usually this means the macro was only invoked conditionally." "$LINENO" 5
20877fi
20878if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
20879  as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
20880Usually this means the macro was only invoked conditionally." "$LINENO" 5
20881fi
20882if test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE}" && test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE}"; then
20883  as_fn_error $? "conditional \"FREETYPE_PCF_LONG_FAMILY_NAMES\" was never defined.
20884Usually this means the macro was only invoked conditionally." "$LINENO" 5
20885fi
20886if test -z "${ENABLE_JSONC_TRUE}" && test -z "${ENABLE_JSONC_FALSE}"; then
20887  as_fn_error $? "conditional \"ENABLE_JSONC\" was never defined.
20888Usually this means the macro was only invoked conditionally." "$LINENO" 5
20889fi
20890if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
20891  as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
20892Usually this means the macro was only invoked conditionally." "$LINENO" 5
20893fi
20894if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
20895  as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
20896Usually this means the macro was only invoked conditionally." "$LINENO" 5
20897fi
20898if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
20899  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
20900Usually this means the macro was only invoked conditionally." "$LINENO" 5
20901fi
20902if test -z "${ENABLE_CACHE_BUILD_TRUE}" && test -z "${ENABLE_CACHE_BUILD_FALSE}"; then
20903  as_fn_error $? "conditional \"ENABLE_CACHE_BUILD\" was never defined.
20904Usually this means the macro was only invoked conditionally." "$LINENO" 5
20905fi
20906
20907
20908: "${CONFIG_STATUS=./config.status}"
20909ac_write_fail=0
20910ac_clean_files_save=$ac_clean_files
20911ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20913printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20914as_write_fail=0
20915cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20916#! $SHELL
20917# Generated by $as_me.
20918# Run this file to recreate the current configuration.
20919# Compiler output produced by configure, useful for debugging
20920# configure, is in config.log if it exists.
20921
20922debug=false
20923ac_cs_recheck=false
20924ac_cs_silent=false
20925
20926SHELL=\${CONFIG_SHELL-$SHELL}
20927export SHELL
20928_ASEOF
20929cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20930## -------------------- ##
20931## M4sh Initialization. ##
20932## -------------------- ##
20933
20934# Be more Bourne compatible
20935DUALCASE=1; export DUALCASE # for MKS sh
20936as_nop=:
20937if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20938then :
20939  emulate sh
20940  NULLCMD=:
20941  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20942  # is contrary to our usage.  Disable this feature.
20943  alias -g '${1+"$@"}'='"$@"'
20944  setopt NO_GLOB_SUBST
20945else $as_nop
20946  case `(set -o) 2>/dev/null` in #(
20947  *posix*) :
20948    set -o posix ;; #(
20949  *) :
20950     ;;
20951esac
20952fi
20953
20954
20955
20956# Reset variables that may have inherited troublesome values from
20957# the environment.
20958
20959# IFS needs to be set, to space, tab, and newline, in precisely that order.
20960# (If _AS_PATH_WALK were called with IFS unset, it would have the
20961# side effect of setting IFS to empty, thus disabling word splitting.)
20962# Quoting is to prevent editors from complaining about space-tab.
20963as_nl='
20964'
20965export as_nl
20966IFS=" ""	$as_nl"
20967
20968PS1='$ '
20969PS2='> '
20970PS4='+ '
20971
20972# Ensure predictable behavior from utilities with locale-dependent output.
20973LC_ALL=C
20974export LC_ALL
20975LANGUAGE=C
20976export LANGUAGE
20977
20978# We cannot yet rely on "unset" to work, but we need these variables
20979# to be unset--not just set to an empty or harmless value--now, to
20980# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20981# also avoids known problems related to "unset" and subshell syntax
20982# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20983for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20984do eval test \${$as_var+y} \
20985  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20986done
20987
20988# Ensure that fds 0, 1, and 2 are open.
20989if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20990if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20991if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20992
20993# The user is always right.
20994if ${PATH_SEPARATOR+false} :; then
20995  PATH_SEPARATOR=:
20996  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20997    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20998      PATH_SEPARATOR=';'
20999  }
21000fi
21001
21002
21003# Find who we are.  Look in the path if we contain no directory separator.
21004as_myself=
21005case $0 in #((
21006  *[\\/]* ) as_myself=$0 ;;
21007  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21008for as_dir in $PATH
21009do
21010  IFS=$as_save_IFS
21011  case $as_dir in #(((
21012    '') as_dir=./ ;;
21013    */) ;;
21014    *) as_dir=$as_dir/ ;;
21015  esac
21016    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21017  done
21018IFS=$as_save_IFS
21019
21020     ;;
21021esac
21022# We did not find ourselves, most probably we were run as `sh COMMAND'
21023# in which case we are not to be found in the path.
21024if test "x$as_myself" = x; then
21025  as_myself=$0
21026fi
21027if test ! -f "$as_myself"; then
21028  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21029  exit 1
21030fi
21031
21032
21033
21034# as_fn_error STATUS ERROR [LINENO LOG_FD]
21035# ----------------------------------------
21036# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21037# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21038# script with STATUS, using 1 if that was 0.
21039as_fn_error ()
21040{
21041  as_status=$1; test $as_status -eq 0 && as_status=1
21042  if test "$4"; then
21043    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21044    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21045  fi
21046  printf "%s\n" "$as_me: error: $2" >&2
21047  as_fn_exit $as_status
21048} # as_fn_error
21049
21050
21051
21052# as_fn_set_status STATUS
21053# -----------------------
21054# Set $? to STATUS, without forking.
21055as_fn_set_status ()
21056{
21057  return $1
21058} # as_fn_set_status
21059
21060# as_fn_exit STATUS
21061# -----------------
21062# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21063as_fn_exit ()
21064{
21065  set +e
21066  as_fn_set_status $1
21067  exit $1
21068} # as_fn_exit
21069
21070# as_fn_unset VAR
21071# ---------------
21072# Portably unset VAR.
21073as_fn_unset ()
21074{
21075  { eval $1=; unset $1;}
21076}
21077as_unset=as_fn_unset
21078
21079# as_fn_append VAR VALUE
21080# ----------------------
21081# Append the text in VALUE to the end of the definition contained in VAR. Take
21082# advantage of any shell optimizations that allow amortized linear growth over
21083# repeated appends, instead of the typical quadratic growth present in naive
21084# implementations.
21085if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21086then :
21087  eval 'as_fn_append ()
21088  {
21089    eval $1+=\$2
21090  }'
21091else $as_nop
21092  as_fn_append ()
21093  {
21094    eval $1=\$$1\$2
21095  }
21096fi # as_fn_append
21097
21098# as_fn_arith ARG...
21099# ------------------
21100# Perform arithmetic evaluation on the ARGs, and store the result in the
21101# global $as_val. Take advantage of shells that can avoid forks. The arguments
21102# must be portable across $(()) and expr.
21103if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21104then :
21105  eval 'as_fn_arith ()
21106  {
21107    as_val=$(( $* ))
21108  }'
21109else $as_nop
21110  as_fn_arith ()
21111  {
21112    as_val=`expr "$@" || test $? -eq 1`
21113  }
21114fi # as_fn_arith
21115
21116
21117if expr a : '\(a\)' >/dev/null 2>&1 &&
21118   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21119  as_expr=expr
21120else
21121  as_expr=false
21122fi
21123
21124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21125  as_basename=basename
21126else
21127  as_basename=false
21128fi
21129
21130if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21131  as_dirname=dirname
21132else
21133  as_dirname=false
21134fi
21135
21136as_me=`$as_basename -- "$0" ||
21137$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21138	 X"$0" : 'X\(//\)$' \| \
21139	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21140printf "%s\n" X/"$0" |
21141    sed '/^.*\/\([^/][^/]*\)\/*$/{
21142	    s//\1/
21143	    q
21144	  }
21145	  /^X\/\(\/\/\)$/{
21146	    s//\1/
21147	    q
21148	  }
21149	  /^X\/\(\/\).*/{
21150	    s//\1/
21151	    q
21152	  }
21153	  s/.*/./; q'`
21154
21155# Avoid depending upon Character Ranges.
21156as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21157as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21158as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21159as_cr_digits='0123456789'
21160as_cr_alnum=$as_cr_Letters$as_cr_digits
21161
21162
21163# Determine whether it's possible to make 'echo' print without a newline.
21164# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21165# for compatibility with existing Makefiles.
21166ECHO_C= ECHO_N= ECHO_T=
21167case `echo -n x` in #(((((
21168-n*)
21169  case `echo 'xy\c'` in
21170  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21171  xy)  ECHO_C='\c';;
21172  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21173       ECHO_T='	';;
21174  esac;;
21175*)
21176  ECHO_N='-n';;
21177esac
21178
21179# For backward compatibility with old third-party macros, we provide
21180# the shell variables $as_echo and $as_echo_n.  New code should use
21181# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21182as_echo='printf %s\n'
21183as_echo_n='printf %s'
21184
21185rm -f conf$$ conf$$.exe conf$$.file
21186if test -d conf$$.dir; then
21187  rm -f conf$$.dir/conf$$.file
21188else
21189  rm -f conf$$.dir
21190  mkdir conf$$.dir 2>/dev/null
21191fi
21192if (echo >conf$$.file) 2>/dev/null; then
21193  if ln -s conf$$.file conf$$ 2>/dev/null; then
21194    as_ln_s='ln -s'
21195    # ... but there are two gotchas:
21196    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21197    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21198    # In both cases, we have to default to `cp -pR'.
21199    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21200      as_ln_s='cp -pR'
21201  elif ln conf$$.file conf$$ 2>/dev/null; then
21202    as_ln_s=ln
21203  else
21204    as_ln_s='cp -pR'
21205  fi
21206else
21207  as_ln_s='cp -pR'
21208fi
21209rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21210rmdir conf$$.dir 2>/dev/null
21211
21212
21213# as_fn_mkdir_p
21214# -------------
21215# Create "$as_dir" as a directory, including parents if necessary.
21216as_fn_mkdir_p ()
21217{
21218
21219  case $as_dir in #(
21220  -*) as_dir=./$as_dir;;
21221  esac
21222  test -d "$as_dir" || eval $as_mkdir_p || {
21223    as_dirs=
21224    while :; do
21225      case $as_dir in #(
21226      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21227      *) as_qdir=$as_dir;;
21228      esac
21229      as_dirs="'$as_qdir' $as_dirs"
21230      as_dir=`$as_dirname -- "$as_dir" ||
21231$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21232	 X"$as_dir" : 'X\(//\)[^/]' \| \
21233	 X"$as_dir" : 'X\(//\)$' \| \
21234	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21235printf "%s\n" X"$as_dir" |
21236    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21237	    s//\1/
21238	    q
21239	  }
21240	  /^X\(\/\/\)[^/].*/{
21241	    s//\1/
21242	    q
21243	  }
21244	  /^X\(\/\/\)$/{
21245	    s//\1/
21246	    q
21247	  }
21248	  /^X\(\/\).*/{
21249	    s//\1/
21250	    q
21251	  }
21252	  s/.*/./; q'`
21253      test -d "$as_dir" && break
21254    done
21255    test -z "$as_dirs" || eval "mkdir $as_dirs"
21256  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21257
21258
21259} # as_fn_mkdir_p
21260if mkdir -p . 2>/dev/null; then
21261  as_mkdir_p='mkdir -p "$as_dir"'
21262else
21263  test -d ./-p && rmdir ./-p
21264  as_mkdir_p=false
21265fi
21266
21267
21268# as_fn_executable_p FILE
21269# -----------------------
21270# Test if FILE is an executable regular file.
21271as_fn_executable_p ()
21272{
21273  test -f "$1" && test -x "$1"
21274} # as_fn_executable_p
21275as_test_x='test -x'
21276as_executable_p=as_fn_executable_p
21277
21278# Sed expression to map a string onto a valid CPP name.
21279as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21280
21281# Sed expression to map a string onto a valid variable name.
21282as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21283
21284
21285exec 6>&1
21286## ----------------------------------- ##
21287## Main body of $CONFIG_STATUS script. ##
21288## ----------------------------------- ##
21289_ASEOF
21290test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21291
21292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21293# Save the log message, to keep $0 and so on meaningful, and to
21294# report actual input values of CONFIG_FILES etc. instead of their
21295# values after options handling.
21296ac_log="
21297This file was extended by fontconfig $as_me 2.15.0, which was
21298generated by GNU Autoconf 2.71.  Invocation command line was
21299
21300  CONFIG_FILES    = $CONFIG_FILES
21301  CONFIG_HEADERS  = $CONFIG_HEADERS
21302  CONFIG_LINKS    = $CONFIG_LINKS
21303  CONFIG_COMMANDS = $CONFIG_COMMANDS
21304  $ $0 $@
21305
21306on `(hostname || uname -n) 2>/dev/null | sed 1q`
21307"
21308
21309_ACEOF
21310
21311case $ac_config_files in *"
21312"*) set x $ac_config_files; shift; ac_config_files=$*;;
21313esac
21314
21315case $ac_config_headers in *"
21316"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21317esac
21318
21319
21320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21321# Files that config.status was made for.
21322config_files="$ac_config_files"
21323config_headers="$ac_config_headers"
21324config_commands="$ac_config_commands"
21325
21326_ACEOF
21327
21328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21329ac_cs_usage="\
21330\`$as_me' instantiates files and other configuration actions
21331from templates according to the current configuration.  Unless the files
21332and actions are specified as TAGs, all are instantiated by default.
21333
21334Usage: $0 [OPTION]... [TAG]...
21335
21336  -h, --help       print this help, then exit
21337  -V, --version    print version number and configuration settings, then exit
21338      --config     print configuration, then exit
21339  -q, --quiet, --silent
21340                   do not print progress messages
21341  -d, --debug      don't remove temporary files
21342      --recheck    update $as_me by reconfiguring in the same conditions
21343      --file=FILE[:TEMPLATE]
21344                   instantiate the configuration file FILE
21345      --header=FILE[:TEMPLATE]
21346                   instantiate the configuration header FILE
21347
21348Configuration files:
21349$config_files
21350
21351Configuration headers:
21352$config_headers
21353
21354Configuration commands:
21355$config_commands
21356
21357Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>."
21358
21359_ACEOF
21360ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21361ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21363ac_cs_config='$ac_cs_config_escaped'
21364ac_cs_version="\\
21365fontconfig config.status 2.15.0
21366configured by $0, generated by GNU Autoconf 2.71,
21367  with options \\"\$ac_cs_config\\"
21368
21369Copyright (C) 2021 Free Software Foundation, Inc.
21370This config.status script is free software; the Free Software Foundation
21371gives unlimited permission to copy, distribute and modify it."
21372
21373ac_pwd='$ac_pwd'
21374srcdir='$srcdir'
21375INSTALL='$INSTALL'
21376MKDIR_P='$MKDIR_P'
21377AWK='$AWK'
21378test -n "\$AWK" || AWK=awk
21379_ACEOF
21380
21381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21382# The default lists apply if the user does not specify any file.
21383ac_need_defaults=:
21384while test $# != 0
21385do
21386  case $1 in
21387  --*=?*)
21388    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21389    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21390    ac_shift=:
21391    ;;
21392  --*=)
21393    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21394    ac_optarg=
21395    ac_shift=:
21396    ;;
21397  *)
21398    ac_option=$1
21399    ac_optarg=$2
21400    ac_shift=shift
21401    ;;
21402  esac
21403
21404  case $ac_option in
21405  # Handling of the options.
21406  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21407    ac_cs_recheck=: ;;
21408  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21409    printf "%s\n" "$ac_cs_version"; exit ;;
21410  --config | --confi | --conf | --con | --co | --c )
21411    printf "%s\n" "$ac_cs_config"; exit ;;
21412  --debug | --debu | --deb | --de | --d | -d )
21413    debug=: ;;
21414  --file | --fil | --fi | --f )
21415    $ac_shift
21416    case $ac_optarg in
21417    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21418    '') as_fn_error $? "missing file argument" ;;
21419    esac
21420    as_fn_append CONFIG_FILES " '$ac_optarg'"
21421    ac_need_defaults=false;;
21422  --header | --heade | --head | --hea )
21423    $ac_shift
21424    case $ac_optarg in
21425    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21426    esac
21427    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21428    ac_need_defaults=false;;
21429  --he | --h)
21430    # Conflict between --help and --header
21431    as_fn_error $? "ambiguous option: \`$1'
21432Try \`$0 --help' for more information.";;
21433  --help | --hel | -h )
21434    printf "%s\n" "$ac_cs_usage"; exit ;;
21435  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21436  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21437    ac_cs_silent=: ;;
21438
21439  # This is an error.
21440  -*) as_fn_error $? "unrecognized option: \`$1'
21441Try \`$0 --help' for more information." ;;
21442
21443  *) as_fn_append ac_config_targets " $1"
21444     ac_need_defaults=false ;;
21445
21446  esac
21447  shift
21448done
21449
21450ac_configure_extra_args=
21451
21452if $ac_cs_silent; then
21453  exec 6>/dev/null
21454  ac_configure_extra_args="$ac_configure_extra_args --silent"
21455fi
21456
21457_ACEOF
21458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21459if \$ac_cs_recheck; then
21460  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21461  shift
21462  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21463  CONFIG_SHELL='$SHELL'
21464  export CONFIG_SHELL
21465  exec "\$@"
21466fi
21467
21468_ACEOF
21469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21470exec 5>>config.log
21471{
21472  echo
21473  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21474## Running $as_me. ##
21475_ASBOX
21476  printf "%s\n" "$ac_log"
21477} >&5
21478
21479_ACEOF
21480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21481#
21482# INIT-COMMANDS
21483#
21484AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21485
21486
21487# The HP-UX ksh and POSIX shell print the target directory to stdout
21488# if CDPATH is set.
21489(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21490
21491sed_quote_subst='$sed_quote_subst'
21492double_quote_subst='$double_quote_subst'
21493delay_variable_subst='$delay_variable_subst'
21494macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21495macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21496enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21497AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21498DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21499OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21500enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21501pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21502enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21503shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21504SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21505ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21506PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21507host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21508host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21509host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21510build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21511build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21512build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21513SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21514Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21515GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21516EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21517FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21518LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21519NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21520LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21521max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21522ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21523exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21524lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21525lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21526lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21527lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21528lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21529reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21530reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21531FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21532deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21533file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21534file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21535want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21536sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21537AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21538lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21539AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21540archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21541STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21542RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21543old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21544old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21545old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21546lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21547CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21548CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21549compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21550GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21551lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21552lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21553lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21554lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21555lt_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"`'
21556lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21557nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21558lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21559lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21560objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21561MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21562lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21563lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21564lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21565lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21566lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21567need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21568MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21569DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21570NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21571LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21572OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21573OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21574libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21575shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21576extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21577archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21578enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21579export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21580whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21581compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21582old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21583old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21584archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21585archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21586module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21587module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21588with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21589allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21590no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21591hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21592hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21593hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21594hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21595hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21596hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21597hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21598inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21599link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21600always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21601export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21602exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21603include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21604prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21605postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21606file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21607variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21608need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21609need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21610version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21611runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21612shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21613shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21614libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21615library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21616soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21617install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21618postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21619postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21620finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21621finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21622hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21623sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21624configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21625configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21626hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21627enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21628enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21629enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21630old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21631striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21632
21633LTCC='$LTCC'
21634LTCFLAGS='$LTCFLAGS'
21635compiler='$compiler_DEFAULT'
21636
21637# A function that is used when there is no print builtin or printf.
21638func_fallback_echo ()
21639{
21640  eval 'cat <<_LTECHO_EOF
21641\$1
21642_LTECHO_EOF'
21643}
21644
21645# Quote evaled strings.
21646for var in AS \
21647DLLTOOL \
21648OBJDUMP \
21649SHELL \
21650ECHO \
21651PATH_SEPARATOR \
21652SED \
21653GREP \
21654EGREP \
21655FGREP \
21656LD \
21657NM \
21658LN_S \
21659lt_SP2NL \
21660lt_NL2SP \
21661reload_flag \
21662FILECMD \
21663deplibs_check_method \
21664file_magic_cmd \
21665file_magic_glob \
21666want_nocaseglob \
21667sharedlib_from_linklib_cmd \
21668AR \
21669archiver_list_spec \
21670STRIP \
21671RANLIB \
21672CC \
21673CFLAGS \
21674compiler \
21675lt_cv_sys_global_symbol_pipe \
21676lt_cv_sys_global_symbol_to_cdecl \
21677lt_cv_sys_global_symbol_to_import \
21678lt_cv_sys_global_symbol_to_c_name_address \
21679lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21680lt_cv_nm_interface \
21681nm_file_list_spec \
21682lt_cv_truncate_bin \
21683lt_prog_compiler_no_builtin_flag \
21684lt_prog_compiler_pic \
21685lt_prog_compiler_wl \
21686lt_prog_compiler_static \
21687lt_cv_prog_compiler_c_o \
21688need_locks \
21689MANIFEST_TOOL \
21690DSYMUTIL \
21691NMEDIT \
21692LIPO \
21693OTOOL \
21694OTOOL64 \
21695shrext_cmds \
21696export_dynamic_flag_spec \
21697whole_archive_flag_spec \
21698compiler_needs_object \
21699with_gnu_ld \
21700allow_undefined_flag \
21701no_undefined_flag \
21702hardcode_libdir_flag_spec \
21703hardcode_libdir_separator \
21704exclude_expsyms \
21705include_expsyms \
21706file_list_spec \
21707variables_saved_for_relink \
21708libname_spec \
21709library_names_spec \
21710soname_spec \
21711install_override_mode \
21712finish_eval \
21713old_striplib \
21714striplib; do
21715    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21716    *[\\\\\\\`\\"\\\$]*)
21717      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21718      ;;
21719    *)
21720      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21721      ;;
21722    esac
21723done
21724
21725# Double-quote double-evaled strings.
21726for var in reload_cmds \
21727old_postinstall_cmds \
21728old_postuninstall_cmds \
21729old_archive_cmds \
21730extract_expsyms_cmds \
21731old_archive_from_new_cmds \
21732old_archive_from_expsyms_cmds \
21733archive_cmds \
21734archive_expsym_cmds \
21735module_cmds \
21736module_expsym_cmds \
21737export_symbols_cmds \
21738prelink_cmds \
21739postlink_cmds \
21740postinstall_cmds \
21741postuninstall_cmds \
21742finish_cmds \
21743sys_lib_search_path_spec \
21744configure_time_dlsearch_path \
21745configure_time_lt_sys_library_path; do
21746    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21747    *[\\\\\\\`\\"\\\$]*)
21748      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21749      ;;
21750    *)
21751      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21752      ;;
21753    esac
21754done
21755
21756ac_aux_dir='$ac_aux_dir'
21757
21758# See if we are running on zsh, and set the options that allow our
21759# commands through without removal of \ escapes INIT.
21760if test -n "\${ZSH_VERSION+set}"; then
21761   setopt NO_GLOB_SUBST
21762fi
21763
21764
21765    PACKAGE='$PACKAGE'
21766    VERSION='$VERSION'
21767    RM='$RM'
21768    ofile='$ofile'
21769
21770
21771
21772# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21773    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21774    # from automake < 1.5.
21775    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21776    # Capture the value of LINGUAS because we need it to compute CATALOGS.
21777    LINGUAS="${LINGUAS-%UNSET%}"
21778
21779# variables for create stdint.h replacement
21780PACKAGE="$PACKAGE"
21781VERSION="$VERSION"
21782ac_stdint_h="$ac_stdint_h"
21783_ac_stdint_h=`printf "%s\n" "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
21784ac_cv_stdint_message="$ac_cv_stdint_message"
21785ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
21786ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
21787ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
21788ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
21789ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21790ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21791ac_cv_char_data_model="$ac_cv_char_data_model"
21792ac_cv_long_data_model="$ac_cv_long_data_model"
21793ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21794ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21795ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
21796
21797
21798_ACEOF
21799
21800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21801
21802# Handling of arguments.
21803for ac_config_target in $ac_config_targets
21804do
21805  case $ac_config_target in
21806    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21807    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21808    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21809    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21810    "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
21811    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21812    "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
21813    "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
21814    "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
21815    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21816    "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
21817    "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
21818    "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
21819    "fc-conflist/Makefile") CONFIG_FILES="$CONFIG_FILES fc-conflist/Makefile" ;;
21820    "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
21821    "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
21822    "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
21823    "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
21824    "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
21825    "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
21826    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21827    "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
21828    "its/Makefile") CONFIG_FILES="$CONFIG_FILES its/Makefile" ;;
21829    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21830    "po-conf/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-conf/Makefile.in" ;;
21831    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21832    "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
21833    "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
21834
21835  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21836  esac
21837done
21838
21839
21840# If the user did not use the arguments to specify the items to instantiate,
21841# then the envvar interface is used.  Set only those that are not.
21842# We use the long form for the default assignment because of an extremely
21843# bizarre bug on SunOS 4.1.3.
21844if $ac_need_defaults; then
21845  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21846  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21847  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21848fi
21849
21850# Have a temporary directory for convenience.  Make it in the build tree
21851# simply because there is no reason against having it here, and in addition,
21852# creating and moving files from /tmp can sometimes cause problems.
21853# Hook for its removal unless debugging.
21854# Note that there is a small window in which the directory will not be cleaned:
21855# after its creation but before its name has been assigned to `$tmp'.
21856$debug ||
21857{
21858  tmp= ac_tmp=
21859  trap 'exit_status=$?
21860  : "${ac_tmp:=$tmp}"
21861  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21862' 0
21863  trap 'as_fn_exit 1' 1 2 13 15
21864}
21865# Create a (secure) tmp directory for tmp files.
21866
21867{
21868  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21869  test -d "$tmp"
21870}  ||
21871{
21872  tmp=./conf$$-$RANDOM
21873  (umask 077 && mkdir "$tmp")
21874} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21875ac_tmp=$tmp
21876
21877# Set up the scripts for CONFIG_FILES section.
21878# No need to generate them if there are no CONFIG_FILES.
21879# This happens for instance with `./config.status config.h'.
21880if test -n "$CONFIG_FILES"; then
21881
21882
21883ac_cr=`echo X | tr X '\015'`
21884# On cygwin, bash can eat \r inside `` if the user requested igncr.
21885# But we know of no other shell where ac_cr would be empty at this
21886# point, so we can use a bashism as a fallback.
21887if test "x$ac_cr" = x; then
21888  eval ac_cr=\$\'\\r\'
21889fi
21890ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21891if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21892  ac_cs_awk_cr='\\r'
21893else
21894  ac_cs_awk_cr=$ac_cr
21895fi
21896
21897echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21898_ACEOF
21899
21900
21901{
21902  echo "cat >conf$$subs.awk <<_ACEOF" &&
21903  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21904  echo "_ACEOF"
21905} >conf$$subs.sh ||
21906  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21907ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21908ac_delim='%!_!# '
21909for ac_last_try in false false false false false :; do
21910  . ./conf$$subs.sh ||
21911    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21912
21913  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21914  if test $ac_delim_n = $ac_delim_num; then
21915    break
21916  elif $ac_last_try; then
21917    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21918  else
21919    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21920  fi
21921done
21922rm -f conf$$subs.sh
21923
21924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21925cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21926_ACEOF
21927sed -n '
21928h
21929s/^/S["/; s/!.*/"]=/
21930p
21931g
21932s/^[^!]*!//
21933:repl
21934t repl
21935s/'"$ac_delim"'$//
21936t delim
21937:nl
21938h
21939s/\(.\{148\}\)..*/\1/
21940t more1
21941s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21942p
21943n
21944b repl
21945:more1
21946s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21947p
21948g
21949s/.\{148\}//
21950t nl
21951:delim
21952h
21953s/\(.\{148\}\)..*/\1/
21954t more2
21955s/["\\]/\\&/g; s/^/"/; s/$/"/
21956p
21957b
21958:more2
21959s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21960p
21961g
21962s/.\{148\}//
21963t delim
21964' <conf$$subs.awk | sed '
21965/^[^""]/{
21966  N
21967  s/\n//
21968}
21969' >>$CONFIG_STATUS || ac_write_fail=1
21970rm -f conf$$subs.awk
21971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21972_ACAWK
21973cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21974  for (key in S) S_is_set[key] = 1
21975  FS = ""
21976
21977}
21978{
21979  line = $ 0
21980  nfields = split(line, field, "@")
21981  substed = 0
21982  len = length(field[1])
21983  for (i = 2; i < nfields; i++) {
21984    key = field[i]
21985    keylen = length(key)
21986    if (S_is_set[key]) {
21987      value = S[key]
21988      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21989      len += length(value) + length(field[++i])
21990      substed = 1
21991    } else
21992      len += 1 + keylen
21993  }
21994
21995  print line
21996}
21997
21998_ACAWK
21999_ACEOF
22000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22001if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22002  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22003else
22004  cat
22005fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22006  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22007_ACEOF
22008
22009# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22010# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22011# trailing colons and then remove the whole line if VPATH becomes empty
22012# (actually we leave an empty line to preserve line numbers).
22013if test "x$srcdir" = x.; then
22014  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22015h
22016s///
22017s/^/:/
22018s/[	 ]*$/:/
22019s/:\$(srcdir):/:/g
22020s/:\${srcdir}:/:/g
22021s/:@srcdir@:/:/g
22022s/^:*//
22023s/:*$//
22024x
22025s/\(=[	 ]*\).*/\1/
22026G
22027s/\n//
22028s/^[^=]*=[	 ]*$//
22029}'
22030fi
22031
22032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22033fi # test -n "$CONFIG_FILES"
22034
22035# Set up the scripts for CONFIG_HEADERS section.
22036# No need to generate them if there are no CONFIG_HEADERS.
22037# This happens for instance with `./config.status Makefile'.
22038if test -n "$CONFIG_HEADERS"; then
22039cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22040BEGIN {
22041_ACEOF
22042
22043# Transform confdefs.h into an awk script `defines.awk', embedded as
22044# here-document in config.status, that substitutes the proper values into
22045# config.h.in to produce config.h.
22046
22047# Create a delimiter string that does not exist in confdefs.h, to ease
22048# handling of long lines.
22049ac_delim='%!_!# '
22050for ac_last_try in false false :; do
22051  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22052  if test -z "$ac_tt"; then
22053    break
22054  elif $ac_last_try; then
22055    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22056  else
22057    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22058  fi
22059done
22060
22061# For the awk script, D is an array of macro values keyed by name,
22062# likewise P contains macro parameters if any.  Preserve backslash
22063# newline sequences.
22064
22065ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22066sed -n '
22067s/.\{148\}/&'"$ac_delim"'/g
22068t rset
22069:rset
22070s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22071t def
22072d
22073:def
22074s/\\$//
22075t bsnl
22076s/["\\]/\\&/g
22077s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22078D["\1"]=" \3"/p
22079s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22080d
22081:bsnl
22082s/["\\]/\\&/g
22083s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22084D["\1"]=" \3\\\\\\n"\\/p
22085t cont
22086s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22087t cont
22088d
22089:cont
22090n
22091s/.\{148\}/&'"$ac_delim"'/g
22092t clear
22093:clear
22094s/\\$//
22095t bsnlc
22096s/["\\]/\\&/g; s/^/"/; s/$/"/p
22097d
22098:bsnlc
22099s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22100b cont
22101' <confdefs.h | sed '
22102s/'"$ac_delim"'/"\\\
22103"/g' >>$CONFIG_STATUS || ac_write_fail=1
22104
22105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22106  for (key in D) D_is_set[key] = 1
22107  FS = ""
22108}
22109/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22110  line = \$ 0
22111  split(line, arg, " ")
22112  if (arg[1] == "#") {
22113    defundef = arg[2]
22114    mac1 = arg[3]
22115  } else {
22116    defundef = substr(arg[1], 2)
22117    mac1 = arg[2]
22118  }
22119  split(mac1, mac2, "(") #)
22120  macro = mac2[1]
22121  prefix = substr(line, 1, index(line, defundef) - 1)
22122  if (D_is_set[macro]) {
22123    # Preserve the white space surrounding the "#".
22124    print prefix "define", macro P[macro] D[macro]
22125    next
22126  } else {
22127    # Replace #undef with comments.  This is necessary, for example,
22128    # in the case of _POSIX_SOURCE, which is predefined and required
22129    # on some systems where configure will not decide to define it.
22130    if (defundef == "undef") {
22131      print "/*", prefix defundef, macro, "*/"
22132      next
22133    }
22134  }
22135}
22136{ print }
22137_ACAWK
22138_ACEOF
22139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22140  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22141fi # test -n "$CONFIG_HEADERS"
22142
22143
22144eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22145shift
22146for ac_tag
22147do
22148  case $ac_tag in
22149  :[FHLC]) ac_mode=$ac_tag; continue;;
22150  esac
22151  case $ac_mode$ac_tag in
22152  :[FHL]*:*);;
22153  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22154  :[FH]-) ac_tag=-:-;;
22155  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22156  esac
22157  ac_save_IFS=$IFS
22158  IFS=:
22159  set x $ac_tag
22160  IFS=$ac_save_IFS
22161  shift
22162  ac_file=$1
22163  shift
22164
22165  case $ac_mode in
22166  :L) ac_source=$1;;
22167  :[FH])
22168    ac_file_inputs=
22169    for ac_f
22170    do
22171      case $ac_f in
22172      -) ac_f="$ac_tmp/stdin";;
22173      *) # Look for the file first in the build tree, then in the source tree
22174	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22175	 # because $ac_f cannot contain `:'.
22176	 test -f "$ac_f" ||
22177	   case $ac_f in
22178	   [\\/$]*) false;;
22179	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22180	   esac ||
22181	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22182      esac
22183      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22184      as_fn_append ac_file_inputs " '$ac_f'"
22185    done
22186
22187    # Let's still pretend it is `configure' which instantiates (i.e., don't
22188    # use $as_me), people would be surprised to read:
22189    #    /* config.h.  Generated by config.status.  */
22190    configure_input='Generated from '`
22191	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22192	`' by configure.'
22193    if test x"$ac_file" != x-; then
22194      configure_input="$ac_file.  $configure_input"
22195      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22196printf "%s\n" "$as_me: creating $ac_file" >&6;}
22197    fi
22198    # Neutralize special characters interpreted by sed in replacement strings.
22199    case $configure_input in #(
22200    *\&* | *\|* | *\\* )
22201       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22202       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22203    *) ac_sed_conf_input=$configure_input;;
22204    esac
22205
22206    case $ac_tag in
22207    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22208      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22209    esac
22210    ;;
22211  esac
22212
22213  ac_dir=`$as_dirname -- "$ac_file" ||
22214$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22215	 X"$ac_file" : 'X\(//\)[^/]' \| \
22216	 X"$ac_file" : 'X\(//\)$' \| \
22217	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22218printf "%s\n" X"$ac_file" |
22219    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22220	    s//\1/
22221	    q
22222	  }
22223	  /^X\(\/\/\)[^/].*/{
22224	    s//\1/
22225	    q
22226	  }
22227	  /^X\(\/\/\)$/{
22228	    s//\1/
22229	    q
22230	  }
22231	  /^X\(\/\).*/{
22232	    s//\1/
22233	    q
22234	  }
22235	  s/.*/./; q'`
22236  as_dir="$ac_dir"; as_fn_mkdir_p
22237  ac_builddir=.
22238
22239case "$ac_dir" in
22240.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22241*)
22242  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22243  # A ".." for each directory in $ac_dir_suffix.
22244  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22245  case $ac_top_builddir_sub in
22246  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22247  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22248  esac ;;
22249esac
22250ac_abs_top_builddir=$ac_pwd
22251ac_abs_builddir=$ac_pwd$ac_dir_suffix
22252# for backward compatibility:
22253ac_top_builddir=$ac_top_build_prefix
22254
22255case $srcdir in
22256  .)  # We are building in place.
22257    ac_srcdir=.
22258    ac_top_srcdir=$ac_top_builddir_sub
22259    ac_abs_top_srcdir=$ac_pwd ;;
22260  [\\/]* | ?:[\\/]* )  # Absolute name.
22261    ac_srcdir=$srcdir$ac_dir_suffix;
22262    ac_top_srcdir=$srcdir
22263    ac_abs_top_srcdir=$srcdir ;;
22264  *) # Relative name.
22265    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22266    ac_top_srcdir=$ac_top_build_prefix$srcdir
22267    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22268esac
22269ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22270
22271
22272  case $ac_mode in
22273  :F)
22274  #
22275  # CONFIG_FILE
22276  #
22277
22278  case $INSTALL in
22279  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22280  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22281  esac
22282  ac_MKDIR_P=$MKDIR_P
22283  case $MKDIR_P in
22284  [\\/$]* | ?:[\\/]* ) ;;
22285  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22286  esac
22287_ACEOF
22288
22289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22290# If the template does not know about datarootdir, expand it.
22291# FIXME: This hack should be removed a few years after 2.60.
22292ac_datarootdir_hack=; ac_datarootdir_seen=
22293ac_sed_dataroot='
22294/datarootdir/ {
22295  p
22296  q
22297}
22298/@datadir@/p
22299/@docdir@/p
22300/@infodir@/p
22301/@localedir@/p
22302/@mandir@/p'
22303case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22304*datarootdir*) ac_datarootdir_seen=yes;;
22305*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22307printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22308_ACEOF
22309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22310  ac_datarootdir_hack='
22311  s&@datadir@&$datadir&g
22312  s&@docdir@&$docdir&g
22313  s&@infodir@&$infodir&g
22314  s&@localedir@&$localedir&g
22315  s&@mandir@&$mandir&g
22316  s&\\\${datarootdir}&$datarootdir&g' ;;
22317esac
22318_ACEOF
22319
22320# Neutralize VPATH when `$srcdir' = `.'.
22321# Shell code in configure.ac might set extrasub.
22322# FIXME: do we really want to maintain this feature?
22323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22324ac_sed_extra="$ac_vpsub
22325$extrasub
22326_ACEOF
22327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22328:t
22329/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22330s|@configure_input@|$ac_sed_conf_input|;t t
22331s&@top_builddir@&$ac_top_builddir_sub&;t t
22332s&@top_build_prefix@&$ac_top_build_prefix&;t t
22333s&@srcdir@&$ac_srcdir&;t t
22334s&@abs_srcdir@&$ac_abs_srcdir&;t t
22335s&@top_srcdir@&$ac_top_srcdir&;t t
22336s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22337s&@builddir@&$ac_builddir&;t t
22338s&@abs_builddir@&$ac_abs_builddir&;t t
22339s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22340s&@INSTALL@&$ac_INSTALL&;t t
22341s&@MKDIR_P@&$ac_MKDIR_P&;t t
22342$ac_datarootdir_hack
22343"
22344eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22345  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22346
22347test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22348  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22349  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22350      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22352which seems to be undefined.  Please make sure it is defined" >&5
22353printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22354which seems to be undefined.  Please make sure it is defined" >&2;}
22355
22356  rm -f "$ac_tmp/stdin"
22357  case $ac_file in
22358  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22359  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22360  esac \
22361  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22362 ;;
22363  :H)
22364  #
22365  # CONFIG_HEADER
22366  #
22367  if test x"$ac_file" != x-; then
22368    {
22369      printf "%s\n" "/* $configure_input  */" >&1 \
22370      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22371    } >"$ac_tmp/config.h" \
22372      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22373    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22374      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22375printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22376    else
22377      rm -f "$ac_file"
22378      mv "$ac_tmp/config.h" "$ac_file" \
22379	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22380    fi
22381  else
22382    printf "%s\n" "/* $configure_input  */" >&1 \
22383      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22384      || as_fn_error $? "could not create -" "$LINENO" 5
22385  fi
22386# Compute "$ac_file"'s index in $config_headers.
22387_am_arg="$ac_file"
22388_am_stamp_count=1
22389for _am_header in $config_headers :; do
22390  case $_am_header in
22391    $_am_arg | $_am_arg:* )
22392      break ;;
22393    * )
22394      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22395  esac
22396done
22397echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22398$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22399	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22400	 X"$_am_arg" : 'X\(//\)$' \| \
22401	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22402printf "%s\n" X"$_am_arg" |
22403    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22404	    s//\1/
22405	    q
22406	  }
22407	  /^X\(\/\/\)[^/].*/{
22408	    s//\1/
22409	    q
22410	  }
22411	  /^X\(\/\/\)$/{
22412	    s//\1/
22413	    q
22414	  }
22415	  /^X\(\/\).*/{
22416	    s//\1/
22417	    q
22418	  }
22419	  s/.*/./; q'`/stamp-h$_am_stamp_count
22420 ;;
22421
22422  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22423printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22424 ;;
22425  esac
22426
22427
22428  case $ac_file$ac_mode in
22429    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22430  # Older Autoconf quotes --file arguments for eval, but not when files
22431  # are listed without --file.  Let's play safe and only enable the eval
22432  # if we detect the quoting.
22433  # TODO: see whether this extra hack can be removed once we start
22434  # requiring Autoconf 2.70 or later.
22435  case $CONFIG_FILES in #(
22436  *\'*) :
22437    eval set x "$CONFIG_FILES" ;; #(
22438  *) :
22439    set x $CONFIG_FILES ;; #(
22440  *) :
22441     ;;
22442esac
22443  shift
22444  # Used to flag and report bootstrapping failures.
22445  am_rc=0
22446  for am_mf
22447  do
22448    # Strip MF so we end up with the name of the file.
22449    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22450    # Check whether this is an Automake generated Makefile which includes
22451    # dependency-tracking related rules and includes.
22452    # Grep'ing the whole file directly is not great: AIX grep has a line
22453    # limit of 2048, but all sed's we know have understand at least 4000.
22454    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22455      || continue
22456    am_dirpart=`$as_dirname -- "$am_mf" ||
22457$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22458	 X"$am_mf" : 'X\(//\)[^/]' \| \
22459	 X"$am_mf" : 'X\(//\)$' \| \
22460	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22461printf "%s\n" X"$am_mf" |
22462    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22463	    s//\1/
22464	    q
22465	  }
22466	  /^X\(\/\/\)[^/].*/{
22467	    s//\1/
22468	    q
22469	  }
22470	  /^X\(\/\/\)$/{
22471	    s//\1/
22472	    q
22473	  }
22474	  /^X\(\/\).*/{
22475	    s//\1/
22476	    q
22477	  }
22478	  s/.*/./; q'`
22479    am_filepart=`$as_basename -- "$am_mf" ||
22480$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22481	 X"$am_mf" : 'X\(//\)$' \| \
22482	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22483printf "%s\n" X/"$am_mf" |
22484    sed '/^.*\/\([^/][^/]*\)\/*$/{
22485	    s//\1/
22486	    q
22487	  }
22488	  /^X\/\(\/\/\)$/{
22489	    s//\1/
22490	    q
22491	  }
22492	  /^X\/\(\/\).*/{
22493	    s//\1/
22494	    q
22495	  }
22496	  s/.*/./; q'`
22497    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22498      && sed -e '/# am--include-marker/d' "$am_filepart" \
22499        | $MAKE -f - am--depfiles" >&5
22500   (cd "$am_dirpart" \
22501      && sed -e '/# am--include-marker/d' "$am_filepart" \
22502        | $MAKE -f - am--depfiles) >&5 2>&5
22503   ac_status=$?
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); } || am_rc=$?
22506  done
22507  if test $am_rc -ne 0; then
22508    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22509printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22510as_fn_error $? "Something went wrong bootstrapping makefile fragments
22511    for automatic dependency tracking.  If GNU make was not used, consider
22512    re-running the configure script with MAKE=\"gmake\" (or whatever is
22513    necessary).  You can also try re-running configure with the
22514    '--disable-dependency-tracking' option to at least be able to build
22515    the package (albeit without support for automatic dependency tracking).
22516See \`config.log' for more details" "$LINENO" 5; }
22517  fi
22518  { am_dirpart=; unset am_dirpart;}
22519  { am_filepart=; unset am_filepart;}
22520  { am_mf=; unset am_mf;}
22521  { am_rc=; unset am_rc;}
22522  rm -f conftest-deps.mk
22523}
22524 ;;
22525    "libtool":C)
22526
22527    # See if we are running on zsh, and set the options that allow our
22528    # commands through without removal of \ escapes.
22529    if test -n "${ZSH_VERSION+set}"; then
22530      setopt NO_GLOB_SUBST
22531    fi
22532
22533    cfgfile=${ofile}T
22534    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22535    $RM "$cfgfile"
22536
22537    cat <<_LT_EOF >> "$cfgfile"
22538#! $SHELL
22539# Generated automatically by $as_me ($PACKAGE) $VERSION
22540# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22541# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22542
22543# Provide generalized library-building support services.
22544# Written by Gordon Matzigkeit, 1996
22545
22546# Copyright (C) 2014 Free Software Foundation, Inc.
22547# This is free software; see the source for copying conditions.  There is NO
22548# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22549
22550# GNU Libtool is free software; you can redistribute it and/or modify
22551# it under the terms of the GNU General Public License as published by
22552# the Free Software Foundation; either version 2 of of the License, or
22553# (at your option) any later version.
22554#
22555# As a special exception to the GNU General Public License, if you
22556# distribute this file as part of a program or library that is built
22557# using GNU Libtool, you may include this file under the  same
22558# distribution terms that you use for the rest of that program.
22559#
22560# GNU Libtool is distributed in the hope that it will be useful, but
22561# WITHOUT ANY WARRANTY; without even the implied warranty of
22562# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22563# GNU General Public License for more details.
22564#
22565# You should have received a copy of the GNU General Public License
22566# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22567
22568
22569# The names of the tagged configurations supported by this script.
22570available_tags=''
22571
22572# Configured defaults for sys_lib_dlsearch_path munging.
22573: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22574
22575# ### BEGIN LIBTOOL CONFIG
22576
22577# Which release of libtool.m4 was used?
22578macro_version=$macro_version
22579macro_revision=$macro_revision
22580
22581# Whether or not to build static libraries.
22582build_old_libs=$enable_static
22583
22584# Assembler program.
22585AS=$lt_AS
22586
22587# DLL creation program.
22588DLLTOOL=$lt_DLLTOOL
22589
22590# Object dumper program.
22591OBJDUMP=$lt_OBJDUMP
22592
22593# Whether or not to build shared libraries.
22594build_libtool_libs=$enable_shared
22595
22596# What type of objects to build.
22597pic_mode=$pic_mode
22598
22599# Whether or not to optimize for fast installation.
22600fast_install=$enable_fast_install
22601
22602# Shared archive member basename,for filename based shared library versioning on AIX.
22603shared_archive_member_spec=$shared_archive_member_spec
22604
22605# Shell to use when invoking shell scripts.
22606SHELL=$lt_SHELL
22607
22608# An echo program that protects backslashes.
22609ECHO=$lt_ECHO
22610
22611# The PATH separator for the build system.
22612PATH_SEPARATOR=$lt_PATH_SEPARATOR
22613
22614# The host system.
22615host_alias=$host_alias
22616host=$host
22617host_os=$host_os
22618
22619# The build system.
22620build_alias=$build_alias
22621build=$build
22622build_os=$build_os
22623
22624# A sed program that does not truncate output.
22625SED=$lt_SED
22626
22627# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22628Xsed="\$SED -e 1s/^X//"
22629
22630# A grep program that handles long lines.
22631GREP=$lt_GREP
22632
22633# An ERE matcher.
22634EGREP=$lt_EGREP
22635
22636# A literal string matcher.
22637FGREP=$lt_FGREP
22638
22639# A BSD- or MS-compatible name lister.
22640NM=$lt_NM
22641
22642# Whether we need soft or hard links.
22643LN_S=$lt_LN_S
22644
22645# What is the maximum length of a command?
22646max_cmd_len=$max_cmd_len
22647
22648# Object file suffix (normally "o").
22649objext=$ac_objext
22650
22651# Executable file suffix (normally "").
22652exeext=$exeext
22653
22654# whether the shell understands "unset".
22655lt_unset=$lt_unset
22656
22657# turn spaces into newlines.
22658SP2NL=$lt_lt_SP2NL
22659
22660# turn newlines into spaces.
22661NL2SP=$lt_lt_NL2SP
22662
22663# convert \$build file names to \$host format.
22664to_host_file_cmd=$lt_cv_to_host_file_cmd
22665
22666# convert \$build files to toolchain format.
22667to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22668
22669# A file(cmd) program that detects file types.
22670FILECMD=$lt_FILECMD
22671
22672# Method to check whether dependent libraries are shared objects.
22673deplibs_check_method=$lt_deplibs_check_method
22674
22675# Command to use when deplibs_check_method = "file_magic".
22676file_magic_cmd=$lt_file_magic_cmd
22677
22678# How to find potential files when deplibs_check_method = "file_magic".
22679file_magic_glob=$lt_file_magic_glob
22680
22681# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22682want_nocaseglob=$lt_want_nocaseglob
22683
22684# Command to associate shared and link libraries.
22685sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22686
22687# The archiver.
22688AR=$lt_AR
22689
22690# Flags to create an archive (by configure).
22691lt_ar_flags=$lt_ar_flags
22692
22693# Flags to create an archive.
22694AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22695
22696# How to feed a file listing to the archiver.
22697archiver_list_spec=$lt_archiver_list_spec
22698
22699# A symbol stripping program.
22700STRIP=$lt_STRIP
22701
22702# Commands used to install an old-style archive.
22703RANLIB=$lt_RANLIB
22704old_postinstall_cmds=$lt_old_postinstall_cmds
22705old_postuninstall_cmds=$lt_old_postuninstall_cmds
22706
22707# Whether to use a lock for old archive extraction.
22708lock_old_archive_extraction=$lock_old_archive_extraction
22709
22710# A C compiler.
22711LTCC=$lt_CC
22712
22713# LTCC compiler flags.
22714LTCFLAGS=$lt_CFLAGS
22715
22716# Take the output of nm and produce a listing of raw symbols and C names.
22717global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22718
22719# Transform the output of nm in a proper C declaration.
22720global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22721
22722# Transform the output of nm into a list of symbols to manually relocate.
22723global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22724
22725# Transform the output of nm in a C name address pair.
22726global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22727
22728# Transform the output of nm in a C name address pair when lib prefix is needed.
22729global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22730
22731# The name lister interface.
22732nm_interface=$lt_lt_cv_nm_interface
22733
22734# Specify filename containing input files for \$NM.
22735nm_file_list_spec=$lt_nm_file_list_spec
22736
22737# The root where to search for dependent libraries,and where our libraries should be installed.
22738lt_sysroot=$lt_sysroot
22739
22740# Command to truncate a binary pipe.
22741lt_truncate_bin=$lt_lt_cv_truncate_bin
22742
22743# The name of the directory that contains temporary libtool files.
22744objdir=$objdir
22745
22746# Used to examine libraries when file_magic_cmd begins with "file".
22747MAGIC_CMD=$MAGIC_CMD
22748
22749# Must we lock files when doing compilation?
22750need_locks=$lt_need_locks
22751
22752# Manifest tool.
22753MANIFEST_TOOL=$lt_MANIFEST_TOOL
22754
22755# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22756DSYMUTIL=$lt_DSYMUTIL
22757
22758# Tool to change global to local symbols on Mac OS X.
22759NMEDIT=$lt_NMEDIT
22760
22761# Tool to manipulate fat objects and archives on Mac OS X.
22762LIPO=$lt_LIPO
22763
22764# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22765OTOOL=$lt_OTOOL
22766
22767# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22768OTOOL64=$lt_OTOOL64
22769
22770# Old archive suffix (normally "a").
22771libext=$libext
22772
22773# Shared library suffix (normally ".so").
22774shrext_cmds=$lt_shrext_cmds
22775
22776# The commands to extract the exported symbol list from a shared archive.
22777extract_expsyms_cmds=$lt_extract_expsyms_cmds
22778
22779# Variables whose values should be saved in libtool wrapper scripts and
22780# restored at link time.
22781variables_saved_for_relink=$lt_variables_saved_for_relink
22782
22783# Do we need the "lib" prefix for modules?
22784need_lib_prefix=$need_lib_prefix
22785
22786# Do we need a version for libraries?
22787need_version=$need_version
22788
22789# Library versioning type.
22790version_type=$version_type
22791
22792# Shared library runtime path variable.
22793runpath_var=$runpath_var
22794
22795# Shared library path variable.
22796shlibpath_var=$shlibpath_var
22797
22798# Is shlibpath searched before the hard-coded library search path?
22799shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22800
22801# Format of library name prefix.
22802libname_spec=$lt_libname_spec
22803
22804# List of archive names.  First name is the real one, the rest are links.
22805# The last name is the one that the linker finds with -lNAME
22806library_names_spec=$lt_library_names_spec
22807
22808# The coded name of the library, if different from the real name.
22809soname_spec=$lt_soname_spec
22810
22811# Permission mode override for installation of shared libraries.
22812install_override_mode=$lt_install_override_mode
22813
22814# Command to use after installation of a shared archive.
22815postinstall_cmds=$lt_postinstall_cmds
22816
22817# Command to use after uninstallation of a shared archive.
22818postuninstall_cmds=$lt_postuninstall_cmds
22819
22820# Commands used to finish a libtool library installation in a directory.
22821finish_cmds=$lt_finish_cmds
22822
22823# As "finish_cmds", except a single script fragment to be evaled but
22824# not shown.
22825finish_eval=$lt_finish_eval
22826
22827# Whether we should hardcode library paths into libraries.
22828hardcode_into_libs=$hardcode_into_libs
22829
22830# Compile-time system search path for libraries.
22831sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22832
22833# Detected run-time system search path for libraries.
22834sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22835
22836# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22837configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22838
22839# Whether dlopen is supported.
22840dlopen_support=$enable_dlopen
22841
22842# Whether dlopen of programs is supported.
22843dlopen_self=$enable_dlopen_self
22844
22845# Whether dlopen of statically linked programs is supported.
22846dlopen_self_static=$enable_dlopen_self_static
22847
22848# Commands to strip libraries.
22849old_striplib=$lt_old_striplib
22850striplib=$lt_striplib
22851
22852
22853# The linker used to build libraries.
22854LD=$lt_LD
22855
22856# How to create reloadable object files.
22857reload_flag=$lt_reload_flag
22858reload_cmds=$lt_reload_cmds
22859
22860# Commands used to build an old-style archive.
22861old_archive_cmds=$lt_old_archive_cmds
22862
22863# A language specific compiler.
22864CC=$lt_compiler
22865
22866# Is the compiler the GNU compiler?
22867with_gcc=$GCC
22868
22869# Compiler flag to turn off builtin functions.
22870no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22871
22872# Additional compiler flags for building library objects.
22873pic_flag=$lt_lt_prog_compiler_pic
22874
22875# How to pass a linker flag through the compiler.
22876wl=$lt_lt_prog_compiler_wl
22877
22878# Compiler flag to prevent dynamic linking.
22879link_static_flag=$lt_lt_prog_compiler_static
22880
22881# Does compiler simultaneously support -c and -o options?
22882compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22883
22884# Whether or not to add -lc for building shared libraries.
22885build_libtool_need_lc=$archive_cmds_need_lc
22886
22887# Whether or not to disallow shared libs when runtime libs are static.
22888allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22889
22890# Compiler flag to allow reflexive dlopens.
22891export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22892
22893# Compiler flag to generate shared objects directly from archives.
22894whole_archive_flag_spec=$lt_whole_archive_flag_spec
22895
22896# Whether the compiler copes with passing no objects directly.
22897compiler_needs_object=$lt_compiler_needs_object
22898
22899# Create an old-style archive from a shared archive.
22900old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22901
22902# Create a temporary old-style archive to link instead of a shared archive.
22903old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22904
22905# Commands used to build a shared archive.
22906archive_cmds=$lt_archive_cmds
22907archive_expsym_cmds=$lt_archive_expsym_cmds
22908
22909# Commands used to build a loadable module if different from building
22910# a shared archive.
22911module_cmds=$lt_module_cmds
22912module_expsym_cmds=$lt_module_expsym_cmds
22913
22914# Whether we are building with GNU ld or not.
22915with_gnu_ld=$lt_with_gnu_ld
22916
22917# Flag that allows shared libraries with undefined symbols to be built.
22918allow_undefined_flag=$lt_allow_undefined_flag
22919
22920# Flag that enforces no undefined symbols.
22921no_undefined_flag=$lt_no_undefined_flag
22922
22923# Flag to hardcode \$libdir into a binary during linking.
22924# This must work even if \$libdir does not exist
22925hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22926
22927# Whether we need a single "-rpath" flag with a separated argument.
22928hardcode_libdir_separator=$lt_hardcode_libdir_separator
22929
22930# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22931# DIR into the resulting binary.
22932hardcode_direct=$hardcode_direct
22933
22934# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22935# DIR into the resulting binary and the resulting library dependency is
22936# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22937# library is relocated.
22938hardcode_direct_absolute=$hardcode_direct_absolute
22939
22940# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22941# into the resulting binary.
22942hardcode_minus_L=$hardcode_minus_L
22943
22944# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22945# into the resulting binary.
22946hardcode_shlibpath_var=$hardcode_shlibpath_var
22947
22948# Set to "yes" if building a shared library automatically hardcodes DIR
22949# into the library and all subsequent libraries and executables linked
22950# against it.
22951hardcode_automatic=$hardcode_automatic
22952
22953# Set to yes if linker adds runtime paths of dependent libraries
22954# to runtime path list.
22955inherit_rpath=$inherit_rpath
22956
22957# Whether libtool must link a program against all its dependency libraries.
22958link_all_deplibs=$link_all_deplibs
22959
22960# Set to "yes" if exported symbols are required.
22961always_export_symbols=$always_export_symbols
22962
22963# The commands to list exported symbols.
22964export_symbols_cmds=$lt_export_symbols_cmds
22965
22966# Symbols that should not be listed in the preloaded symbols.
22967exclude_expsyms=$lt_exclude_expsyms
22968
22969# Symbols that must always be exported.
22970include_expsyms=$lt_include_expsyms
22971
22972# Commands necessary for linking programs (against libraries) with templates.
22973prelink_cmds=$lt_prelink_cmds
22974
22975# Commands necessary for finishing linking programs.
22976postlink_cmds=$lt_postlink_cmds
22977
22978# Specify filename containing input files.
22979file_list_spec=$lt_file_list_spec
22980
22981# How to hardcode a shared library path into an executable.
22982hardcode_action=$hardcode_action
22983
22984# ### END LIBTOOL CONFIG
22985
22986_LT_EOF
22987
22988    cat <<'_LT_EOF' >> "$cfgfile"
22989
22990# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22991
22992# func_munge_path_list VARIABLE PATH
22993# -----------------------------------
22994# VARIABLE is name of variable containing _space_ separated list of
22995# directories to be munged by the contents of PATH, which is string
22996# having a format:
22997# "DIR[:DIR]:"
22998#       string "DIR[ DIR]" will be prepended to VARIABLE
22999# ":DIR[:DIR]"
23000#       string "DIR[ DIR]" will be appended to VARIABLE
23001# "DIRP[:DIRP]::[DIRA:]DIRA"
23002#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23003#       "DIRA[ DIRA]" will be appended to VARIABLE
23004# "DIR[:DIR]"
23005#       VARIABLE will be replaced by "DIR[ DIR]"
23006func_munge_path_list ()
23007{
23008    case x$2 in
23009    x)
23010        ;;
23011    *:)
23012        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23013        ;;
23014    x:*)
23015        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23016        ;;
23017    *::*)
23018        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23019        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23020        ;;
23021    *)
23022        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23023        ;;
23024    esac
23025}
23026
23027
23028# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23029func_cc_basename ()
23030{
23031    for cc_temp in $*""; do
23032      case $cc_temp in
23033        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23034        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23035        \-*) ;;
23036        *) break;;
23037      esac
23038    done
23039    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23040}
23041
23042
23043# ### END FUNCTIONS SHARED WITH CONFIGURE
23044
23045_LT_EOF
23046
23047  case $host_os in
23048  aix3*)
23049    cat <<\_LT_EOF >> "$cfgfile"
23050# AIX sometimes has problems with the GCC collect2 program.  For some
23051# reason, if we set the COLLECT_NAMES environment variable, the problems
23052# vanish in a puff of smoke.
23053if test set != "${COLLECT_NAMES+set}"; then
23054  COLLECT_NAMES=
23055  export COLLECT_NAMES
23056fi
23057_LT_EOF
23058    ;;
23059  esac
23060
23061
23062
23063ltmain=$ac_aux_dir/ltmain.sh
23064
23065
23066  # We use sed instead of cat because bash on DJGPP gets confused if
23067  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23068  # text mode, it properly converts lines to CR/LF.  This bash problem
23069  # is reportedly fixed, but why not run on old versions too?
23070  $SED '$q' "$ltmain" >> "$cfgfile" \
23071     || (rm -f "$cfgfile"; exit 1)
23072
23073   mv -f "$cfgfile" "$ofile" ||
23074    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23075  chmod +x "$ofile"
23076
23077 ;;
23078    "po-directories":C)
23079    for ac_file in $CONFIG_FILES; do
23080      # Support "outfile[:infile[:infile...]]"
23081      case "$ac_file" in
23082        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23083      esac
23084      # PO directories have a Makefile.in generated from Makefile.in.in.
23085      case "$ac_file" in */Makefile.in)
23086        # Adjust a relative srcdir.
23087        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23088        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
23089        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23090        # In autoconf-2.13 it is called $ac_given_srcdir.
23091        # In autoconf-2.50 it is called $srcdir.
23092        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23093        case "$ac_given_srcdir" in
23094          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23095          /*) top_srcdir="$ac_given_srcdir" ;;
23096          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23097        esac
23098        # Treat a directory as a PO directory if and only if it has a
23099        # POTFILES.in file. This allows packages to have multiple PO
23100        # directories under different names or in different locations.
23101        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23102          rm -f "$ac_dir/POTFILES"
23103          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23104          gt_tab=`printf '\t'`
23105          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23106          POMAKEFILEDEPS="POTFILES.in"
23107          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23108          # on $ac_dir but don't depend on user-specified configuration
23109          # parameters.
23110          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23111            # The LINGUAS file contains the set of available languages.
23112            if test -n "$OBSOLETE_ALL_LINGUAS"; then
23113              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23114            fi
23115            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23116            # Hide the ALL_LINGUAS assignment from automake < 1.5.
23117            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23118            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23119          else
23120            # The set of available languages was given in configure.in.
23121            # Hide the ALL_LINGUAS assignment from automake < 1.5.
23122            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23123          fi
23124          # Compute POFILES
23125          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23126          # Compute UPDATEPOFILES
23127          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23128          # Compute DUMMYPOFILES
23129          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23130          # Compute GMOFILES
23131          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23132          case "$ac_given_srcdir" in
23133            .) srcdirpre= ;;
23134            *) srcdirpre='$(srcdir)/' ;;
23135          esac
23136          POFILES=
23137          UPDATEPOFILES=
23138          DUMMYPOFILES=
23139          GMOFILES=
23140          for lang in $ALL_LINGUAS; do
23141            POFILES="$POFILES $srcdirpre$lang.po"
23142            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23143            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23144            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23145          done
23146          # CATALOGS depends on both $ac_dir and the user's LINGUAS
23147          # environment variable.
23148          INST_LINGUAS=
23149          if test -n "$ALL_LINGUAS"; then
23150            for presentlang in $ALL_LINGUAS; do
23151              useit=no
23152              if test "%UNSET%" != "$LINGUAS"; then
23153                desiredlanguages="$LINGUAS"
23154              else
23155                desiredlanguages="$ALL_LINGUAS"
23156              fi
23157              for desiredlang in $desiredlanguages; do
23158                # Use the presentlang catalog if desiredlang is
23159                #   a. equal to presentlang, or
23160                #   b. a variant of presentlang (because in this case,
23161                #      presentlang can be used as a fallback for messages
23162                #      which are not translated in the desiredlang catalog).
23163                case "$desiredlang" in
23164                  "$presentlang"*) useit=yes;;
23165                esac
23166              done
23167              if test $useit = yes; then
23168                INST_LINGUAS="$INST_LINGUAS $presentlang"
23169              fi
23170            done
23171          fi
23172          CATALOGS=
23173          if test -n "$INST_LINGUAS"; then
23174            for lang in $INST_LINGUAS; do
23175              CATALOGS="$CATALOGS $lang.gmo"
23176            done
23177          fi
23178          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23179          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23180          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23181            if test -f "$f"; then
23182              case "$f" in
23183                *.orig | *.bak | *~) ;;
23184                *) cat "$f" >> "$ac_dir/Makefile" ;;
23185              esac
23186            fi
23187          done
23188        fi
23189        ;;
23190      esac
23191    done ;;
23192    "$ac_stdint_h":C)
23193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
23194printf "%s\n" "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
23195ac_stdint=$tmp/_stdint.h
23196
23197echo "#ifndef" $_ac_stdint_h >$ac_stdint
23198echo "#define" $_ac_stdint_h "1" >>$ac_stdint
23199echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
23200echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
23201echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
23202if test "_$ac_cv_header_stdint_t" != "_" ; then
23203echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
23204echo "#include <stdint.h>" >>$ac_stdint
23205echo "#endif" >>$ac_stdint
23206echo "#endif" >>$ac_stdint
23207else
23208
23209cat >>$ac_stdint <<STDINT_EOF
23210
23211/* ................... shortcircuit part ........................... */
23212
23213#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
23214#include <stdint.h>
23215#else
23216#include <stddef.h>
23217
23218/* .................... configured part ............................ */
23219
23220STDINT_EOF
23221
23222echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
23223if test "_$ac_cv_header_stdint_x" != "_" ; then
23224  ac_header="$ac_cv_header_stdint_x"
23225  echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
23226else
23227  echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
23228fi
23229
23230echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
23231if  test "_$ac_cv_header_stdint_o" != "_" ; then
23232  ac_header="$ac_cv_header_stdint_o"
23233  echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
23234else
23235  echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
23236fi
23237
23238echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
23239if  test "_$ac_cv_header_stdint_u" != "_" ; then
23240  ac_header="$ac_cv_header_stdint_u"
23241  echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
23242else
23243  echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
23244fi
23245
23246echo "" >>$ac_stdint
23247
23248if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
23249  echo "#include <$ac_header>" >>$ac_stdint
23250  echo "" >>$ac_stdint
23251fi fi
23252
23253echo "/* which 64bit typedef has been found */" >>$ac_stdint
23254if test "$ac_cv_type_uint64_t" = "yes" ; then
23255echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
23256else
23257echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
23258fi
23259if test "$ac_cv_type_u_int64_t" = "yes" ; then
23260echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
23261else
23262echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
23263fi
23264echo "" >>$ac_stdint
23265
23266echo "/* which type model has been detected */" >>$ac_stdint
23267if test "_$ac_cv_char_data_model" != "_" ; then
23268echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
23269echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
23270else
23271echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
23272echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
23273fi
23274echo "" >>$ac_stdint
23275
23276echo "/* whether int_least types were detected */" >>$ac_stdint
23277if test "$ac_cv_type_int_least32_t" = "yes"; then
23278echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
23279else
23280echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
23281fi
23282echo "/* whether int_fast types were detected */" >>$ac_stdint
23283if test "$ac_cv_type_int_fast32_t" = "yes"; then
23284echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
23285else
23286echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
23287fi
23288echo "/* whether intmax_t type was detected */" >>$ac_stdint
23289if test "$ac_cv_type_intmax_t" = "yes"; then
23290echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
23291else
23292echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
23293fi
23294echo "" >>$ac_stdint
23295
23296  cat >>$ac_stdint <<STDINT_EOF
23297/* .................... detections part ............................ */
23298
23299/* whether we need to define bitspecific types from compiler base types */
23300#ifndef _STDINT_HEADER_INTPTR
23301#ifndef _STDINT_HEADER_UINT32
23302#ifndef _STDINT_HEADER_U_INT32
23303#define _STDINT_NEED_INT_MODEL_T
23304#else
23305#define _STDINT_HAVE_U_INT_TYPES
23306#endif
23307#endif
23308#endif
23309
23310#ifdef _STDINT_HAVE_U_INT_TYPES
23311#undef _STDINT_NEED_INT_MODEL_T
23312#endif
23313
23314#ifdef  _STDINT_CHAR_MODEL
23315#if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
23316#ifndef _STDINT_BYTE_MODEL
23317#define _STDINT_BYTE_MODEL 12
23318#endif
23319#endif
23320#endif
23321
23322#ifndef _STDINT_HAVE_INT_LEAST32_T
23323#define _STDINT_NEED_INT_LEAST_T
23324#endif
23325
23326#ifndef _STDINT_HAVE_INT_FAST32_T
23327#define _STDINT_NEED_INT_FAST_T
23328#endif
23329
23330#ifndef _STDINT_HEADER_INTPTR
23331#define _STDINT_NEED_INTPTR_T
23332#ifndef _STDINT_HAVE_INTMAX_T
23333#define _STDINT_NEED_INTMAX_T
23334#endif
23335#endif
23336
23337
23338/* .................... definition part ............................ */
23339
23340/* some system headers have good uint64_t */
23341#ifndef _HAVE_UINT64_T
23342#if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
23343#define _HAVE_UINT64_T
23344#elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
23345#define _HAVE_UINT64_T
23346typedef u_int64_t uint64_t;
23347#endif
23348#endif
23349
23350#ifndef _HAVE_UINT64_T
23351/* .. here are some common heuristics using compiler runtime specifics */
23352#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
23353#define _HAVE_UINT64_T
23354#define _HAVE_LONGLONG_UINT64_T
23355typedef long long int64_t;
23356typedef unsigned long long uint64_t;
23357
23358#elif !defined __STRICT_ANSI__
23359#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23360#define _HAVE_UINT64_T
23361typedef __int64 int64_t;
23362typedef unsigned __int64 uint64_t;
23363
23364#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
23365/* note: all ELF-systems seem to have loff-support which needs 64-bit */
23366#if !defined _NO_LONGLONG
23367#define _HAVE_UINT64_T
23368#define _HAVE_LONGLONG_UINT64_T
23369typedef long long int64_t;
23370typedef unsigned long long uint64_t;
23371#endif
23372
23373#elif defined __alpha || (defined __mips && defined _ABIN32)
23374#if !defined _NO_LONGLONG
23375typedef long int64_t;
23376typedef unsigned long uint64_t;
23377#endif
23378  /* compiler/cpu type to define int64_t */
23379#endif
23380#endif
23381#endif
23382
23383#if defined _STDINT_HAVE_U_INT_TYPES
23384/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
23385typedef u_int8_t uint8_t;
23386typedef u_int16_t uint16_t;
23387typedef u_int32_t uint32_t;
23388
23389/* glibc compatibility */
23390#ifndef __int8_t_defined
23391#define __int8_t_defined
23392#endif
23393#endif
23394
23395#ifdef _STDINT_NEED_INT_MODEL_T
23396/* we must guess all the basic types. Apart from byte-adressable system, */
23397/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
23398/* (btw, those nibble-addressable systems are way off, or so we assume) */
23399
23400
23401#if defined _STDINT_BYTE_MODEL
23402#if _STDINT_LONG_MODEL+0 == 242
23403/* 2:4:2 =  IP16 = a normal 16-bit system                */
23404typedef unsigned char   uint8_t;
23405typedef unsigned short  uint16_t;
23406typedef unsigned long   uint32_t;
23407#ifndef __int8_t_defined
23408#define __int8_t_defined
23409typedef          char    int8_t;
23410typedef          short   int16_t;
23411typedef          long    int32_t;
23412#endif
23413#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
23414/* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
23415/* 4:4:4 = ILP32 = a normal 32-bit system                */
23416typedef unsigned char   uint8_t;
23417typedef unsigned short  uint16_t;
23418typedef unsigned int    uint32_t;
23419#ifndef __int8_t_defined
23420#define __int8_t_defined
23421typedef          char    int8_t;
23422typedef          short   int16_t;
23423typedef          int     int32_t;
23424#endif
23425#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
23426/* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
23427/* 4:8:8 =  LP64 = a normal 64-bit system                 */
23428typedef unsigned char   uint8_t;
23429typedef unsigned short  uint16_t;
23430typedef unsigned int    uint32_t;
23431#ifndef __int8_t_defined
23432#define __int8_t_defined
23433typedef          char    int8_t;
23434typedef          short   int16_t;
23435typedef          int     int32_t;
23436#endif
23437/* this system has a "long" of 64bit */
23438#ifndef _HAVE_UINT64_T
23439#define _HAVE_UINT64_T
23440typedef unsigned long   uint64_t;
23441typedef          long    int64_t;
23442#endif
23443#elif _STDINT_LONG_MODEL+0 == 448
23444/*      LLP64   a 64-bit system derived from a 32-bit system */
23445typedef unsigned char   uint8_t;
23446typedef unsigned short  uint16_t;
23447typedef unsigned int    uint32_t;
23448#ifndef __int8_t_defined
23449#define __int8_t_defined
23450typedef          char    int8_t;
23451typedef          short   int16_t;
23452typedef          int     int32_t;
23453#endif
23454/* assuming the system has a "long long" */
23455#ifndef _HAVE_UINT64_T
23456#define _HAVE_UINT64_T
23457#define _HAVE_LONGLONG_UINT64_T
23458typedef unsigned long long uint64_t;
23459typedef          long long  int64_t;
23460#endif
23461#else
23462#define _STDINT_NO_INT32_T
23463#endif
23464#else
23465#define _STDINT_NO_INT8_T
23466#define _STDINT_NO_INT32_T
23467#endif
23468#endif
23469
23470/*
23471 * quote from SunOS-5.8 sys/inttypes.h:
23472 * Use at your own risk.  As of February 1996, the committee is squarely
23473 * behind the fixed sized types; the "least" and "fast" types are still being
23474 * discussed.  The probability that the "fast" types may be removed before
23475 * the standard is finalized is high enough that they are not currently
23476 * implemented.
23477 */
23478
23479#if defined _STDINT_NEED_INT_LEAST_T
23480typedef  int8_t    int_least8_t;
23481typedef  int16_t   int_least16_t;
23482typedef  int32_t   int_least32_t;
23483#ifdef _HAVE_UINT64_T
23484typedef  int64_t   int_least64_t;
23485#endif
23486
23487typedef uint8_t   uint_least8_t;
23488typedef uint16_t  uint_least16_t;
23489typedef uint32_t  uint_least32_t;
23490#ifdef _HAVE_UINT64_T
23491typedef uint64_t  uint_least64_t;
23492#endif
23493  /* least types */
23494#endif
23495
23496#if defined _STDINT_NEED_INT_FAST_T
23497typedef  int8_t    int_fast8_t;
23498typedef  int       int_fast16_t;
23499typedef  int32_t   int_fast32_t;
23500#ifdef _HAVE_UINT64_T
23501typedef  int64_t   int_fast64_t;
23502#endif
23503
23504typedef uint8_t   uint_fast8_t;
23505typedef unsigned  uint_fast16_t;
23506typedef uint32_t  uint_fast32_t;
23507#ifdef _HAVE_UINT64_T
23508typedef uint64_t  uint_fast64_t;
23509#endif
23510  /* fast types */
23511#endif
23512
23513#ifdef _STDINT_NEED_INTMAX_T
23514#ifdef _HAVE_UINT64_T
23515typedef  int64_t       intmax_t;
23516typedef uint64_t      uintmax_t;
23517#else
23518typedef          long  intmax_t;
23519typedef unsigned long uintmax_t;
23520#endif
23521#endif
23522
23523#ifdef _STDINT_NEED_INTPTR_T
23524#ifndef __intptr_t_defined
23525#define __intptr_t_defined
23526/* we encourage using "long" to store pointer values, never use "int" ! */
23527#if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
23528typedef  unsigned int   uintptr_t;
23529typedef           int    intptr_t;
23530#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
23531typedef  unsigned long  uintptr_t;
23532typedef           long   intptr_t;
23533#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
23534typedef        uint64_t uintptr_t;
23535typedef         int64_t  intptr_t;
23536#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
23537typedef  unsigned long  uintptr_t;
23538typedef           long   intptr_t;
23539#endif
23540#endif
23541#endif
23542
23543/* The ISO C99 standard specifies that in C++ implementations these
23544   should only be defined if explicitly requested.  */
23545#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
23546#ifndef UINT32_C
23547
23548/* Signed.  */
23549# define INT8_C(c)      c
23550# define INT16_C(c)     c
23551# define INT32_C(c)     c
23552# ifdef _HAVE_LONGLONG_UINT64_T
23553#  define INT64_C(c)    c ## L
23554# else
23555#  define INT64_C(c)    c ## LL
23556# endif
23557
23558/* Unsigned.  */
23559# define UINT8_C(c)     c ## U
23560# define UINT16_C(c)    c ## U
23561# define UINT32_C(c)    c ## U
23562# ifdef _HAVE_LONGLONG_UINT64_T
23563#  define UINT64_C(c)   c ## UL
23564# else
23565#  define UINT64_C(c)   c ## ULL
23566# endif
23567
23568/* Maximal type.  */
23569# ifdef _HAVE_LONGLONG_UINT64_T
23570#  define INTMAX_C(c)   c ## L
23571#  define UINTMAX_C(c)  c ## UL
23572# else
23573#  define INTMAX_C(c)   c ## LL
23574#  define UINTMAX_C(c)  c ## ULL
23575# endif
23576
23577  /* literalnumbers */
23578#endif
23579#endif
23580
23581/* These limits are merily those of a two complement byte-oriented system */
23582
23583/* Minimum of signed integral types.  */
23584# define INT8_MIN               (-128)
23585# define INT16_MIN              (-32767-1)
23586# define INT32_MIN              (-2147483647-1)
23587# define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
23588/* Maximum of signed integral types.  */
23589# define INT8_MAX               (127)
23590# define INT16_MAX              (32767)
23591# define INT32_MAX              (2147483647)
23592# define INT64_MAX              (__INT64_C(9223372036854775807))
23593
23594/* Maximum of unsigned integral types.  */
23595# define UINT8_MAX              (255)
23596# define UINT16_MAX             (65535)
23597# define UINT32_MAX             (4294967295U)
23598# define UINT64_MAX             (__UINT64_C(18446744073709551615))
23599
23600/* Minimum of signed integral types having a minimum size.  */
23601# define INT_LEAST8_MIN         INT8_MIN
23602# define INT_LEAST16_MIN        INT16_MIN
23603# define INT_LEAST32_MIN        INT32_MIN
23604# define INT_LEAST64_MIN        INT64_MIN
23605/* Maximum of signed integral types having a minimum size.  */
23606# define INT_LEAST8_MAX         INT8_MAX
23607# define INT_LEAST16_MAX        INT16_MAX
23608# define INT_LEAST32_MAX        INT32_MAX
23609# define INT_LEAST64_MAX        INT64_MAX
23610
23611/* Maximum of unsigned integral types having a minimum size.  */
23612# define UINT_LEAST8_MAX        UINT8_MAX
23613# define UINT_LEAST16_MAX       UINT16_MAX
23614# define UINT_LEAST32_MAX       UINT32_MAX
23615# define UINT_LEAST64_MAX       UINT64_MAX
23616
23617  /* shortcircuit*/
23618#endif
23619  /* once */
23620#endif
23621#endif
23622STDINT_EOF
23623fi
23624    if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
23625      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
23626printf "%s\n" "$as_me: $ac_stdint_h is unchanged" >&6;}
23627    else
23628      ac_dir=`$as_dirname -- "$ac_stdint_h" ||
23629$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23630	 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
23631	 X"$ac_stdint_h" : 'X\(//\)$' \| \
23632	 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
23633printf "%s\n" X"$ac_stdint_h" |
23634    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23635	    s//\1/
23636	    q
23637	  }
23638	  /^X\(\/\/\)[^/].*/{
23639	    s//\1/
23640	    q
23641	  }
23642	  /^X\(\/\/\)$/{
23643	    s//\1/
23644	    q
23645	  }
23646	  /^X\(\/\).*/{
23647	    s//\1/
23648	    q
23649	  }
23650	  s/.*/./; q'`
23651      as_dir="$ac_dir"; as_fn_mkdir_p
23652      rm -f $ac_stdint_h
23653      mv $ac_stdint $ac_stdint_h
23654    fi
23655 ;;
23656
23657  esac
23658done # for ac_tag
23659
23660
23661as_fn_exit 0
23662_ACEOF
23663ac_clean_files=$ac_clean_files_save
23664
23665test $ac_write_fail = 0 ||
23666  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23667
23668
23669# configure is writing to config.log, and then calls config.status.
23670# config.status does its own redirection, appending to config.log.
23671# Unfortunately, on DOS this fails, as config.log is still kept open
23672# by configure, so config.status won't be able to write to it; its
23673# output is simply discarded.  So we exec the FD to /dev/null,
23674# effectively closing config.log, so it can be properly (re)opened and
23675# appended to by config.status.  When coming back to configure, we
23676# need to make the FD available again.
23677if test "$no_create" != yes; then
23678  ac_cs_success=:
23679  ac_config_status_args=
23680  test "$silent" = yes &&
23681    ac_config_status_args="$ac_config_status_args --quiet"
23682  exec 5>/dev/null
23683  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23684  exec 5>>config.log
23685  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23686  # would make configure fail if this is the last instruction.
23687  $ac_cs_success || as_fn_exit 1
23688fi
23689if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23691printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23692fi
23693
23694
23695