configure revision 953daeba
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for fontconfig 2.12.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
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  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
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'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='fontconfig'
593PACKAGE_TARNAME='fontconfig'
594PACKAGE_VERSION='2.12.4'
595PACKAGE_STRING='fontconfig 2.12.4'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig'
597PACKAGE_URL=''
598
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640PKGCONFIG_REQUIRES_PRIVATELY
641PKGCONFIG_REQUIRES
642DOCMAN3
643ENABLE_DOCS_FALSE
644ENABLE_DOCS_TRUE
645USEDOCBOOK_FALSE
646USEDOCBOOK_TRUE
647HASDOCBOOK
648HAVE_PTHREAD_FALSE
649HAVE_PTHREAD_TRUE
650PTHREAD_CFLAGS
651PTHREAD_LIBS
652PTHREAD_CC
653ax_pthread_config
654XMLDIR
655CONFIGDIR
656BASECONFIGDIR
657TEMPLATEDIR
658FC_FONTDATE
659FC_CACHEDIR
660fc_cachedir
661FC_FONTPATH
662FC_ADD_FONTS
663FC_DEFAULT_FONTS
664PREFERRED_HINTING
665LIBXML2_LIBS
666LIBXML2_CFLAGS
667HAVE_XMLPARSE_H
668EXPAT_LIBS
669EXPAT_CFLAGS
670FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE
671FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE
672FREETYPE_LIBS
673FREETYPE_CFLAGS
674ICONV_LIBS
675ICONV_CFLAGS
676ENABLE_SHARED_FALSE
677ENABLE_SHARED_TRUE
678CROSS_COMPILING_FALSE
679CROSS_COMPILING_TRUE
680EXEEXT_FOR_BUILD
681CC_FOR_BUILD
682WARN_CFLAGS
683MS_LIB_AVAILABLE_FALSE
684MS_LIB_AVAILABLE_TRUE
685ms_librarian
686OS_WIN32_FALSE
687OS_WIN32_TRUE
688LIBT_CURRENT_MINUS_AGE
689LIBT_VERSION_INFO
690LIBT_REVISION
691LIBT_CURRENT
692LT_SYS_LIBRARY_PATH
693OTOOL64
694OTOOL
695LIPO
696NMEDIT
697DSYMUTIL
698MANIFEST_TOOL
699RANLIB
700ac_ct_AR
701AR
702NM
703ac_ct_DUMPBIN
704DUMPBIN
705LD
706FGREP
707SED
708host_os
709host_vendor
710host_cpu
711host
712build_os
713build_vendor
714build_cpu
715build
716LIBTOOL
717OBJDUMP
718DLLTOOL
719AS
720RM
721HAVE_PYTHON_FALSE
722HAVE_PYTHON_TRUE
723pkgpyexecdir
724pyexecdir
725pkgpythondir
726pythondir
727PYTHON_PLATFORM
728PYTHON_EXEC_PREFIX
729PYTHON_PREFIX
730PYTHON_VERSION
731PYTHON
732GPERF
733GIT
734pkgconfigdir
735PKG_CONFIG_LIBDIR
736PKG_CONFIG_PATH
737PKG_CONFIG
738LN_S
739EGREP
740GREP
741CPP
742am__fastdepCC_FALSE
743am__fastdepCC_TRUE
744CCDEPMODE
745am__nodep
746AMDEPBACKSLASH
747AMDEP_FALSE
748AMDEP_TRUE
749am__quote
750am__include
751DEPDIR
752OBJEXT
753EXEEXT
754ac_ct_CC
755CPPFLAGS
756LDFLAGS
757CFLAGS
758CC
759AM_BACKSLASH
760AM_DEFAULT_VERBOSITY
761AM_DEFAULT_V
762AM_V
763am__untar
764am__tar
765AMTAR
766am__leading_dot
767SET_MAKE
768AWK
769mkdir_p
770MKDIR_P
771INSTALL_STRIP_PROGRAM
772STRIP
773install_sh
774MAKEINFO
775AUTOHEADER
776AUTOMAKE
777AUTOCONF
778ACLOCAL
779VERSION
780PACKAGE
781CYGPATH_W
782am__isrc
783INSTALL_DATA
784INSTALL_SCRIPT
785INSTALL_PROGRAM
786target_alias
787host_alias
788build_alias
789LIBS
790ECHO_T
791ECHO_N
792ECHO_C
793DEFS
794mandir
795localedir
796libdir
797psdir
798pdfdir
799dvidir
800htmldir
801infodir
802docdir
803oldincludedir
804includedir
805localstatedir
806sharedstatedir
807sysconfdir
808datadir
809datarootdir
810libexecdir
811sbindir
812bindir
813program_transform_name
814prefix
815exec_prefix
816PACKAGE_URL
817PACKAGE_BUGREPORT
818PACKAGE_STRING
819PACKAGE_VERSION
820PACKAGE_TARNAME
821PACKAGE_NAME
822PATH_SEPARATOR
823SHELL'
824ac_subst_files=''
825ac_user_opts='
826enable_option_checking
827enable_silent_rules
828enable_dependency_tracking
829enable_largefile
830with_pkgconfigdir
831enable_static
832enable_shared
833with_pic
834enable_fast_install
835with_aix_soname
836with_gnu_ld
837with_sysroot
838enable_libtool_lock
839with_arch
840enable_iconv
841with_libiconv
842with_libiconv_includes
843with_libiconv_lib
844with_expat
845with_expat_includes
846with_expat_lib
847enable_libxml2
848with_default_hinting
849with_default_fonts
850with_add_fonts
851with_cache_dir
852with_templatedir
853with_baseconfigdir
854with_configdir
855with_xmldir
856enable_docs
857'
858      ac_precious_vars='build_alias
859host_alias
860target_alias
861CC
862CFLAGS
863LDFLAGS
864LIBS
865CPPFLAGS
866CPP
867PKG_CONFIG
868PKG_CONFIG_PATH
869PKG_CONFIG_LIBDIR
870PYTHON
871LT_SYS_LIBRARY_PATH
872CC_FOR_BUILD
873FREETYPE_CFLAGS
874FREETYPE_LIBS
875EXPAT_CFLAGS
876EXPAT_LIBS
877LIBXML2_CFLAGS
878LIBXML2_LIBS'
879
880
881# Initialize some variables set by options.
882ac_init_help=
883ac_init_version=false
884ac_unrecognized_opts=
885ac_unrecognized_sep=
886# The variables have the same names as the options, with
887# dashes changed to underlines.
888cache_file=/dev/null
889exec_prefix=NONE
890no_create=
891no_recursion=
892prefix=NONE
893program_prefix=NONE
894program_suffix=NONE
895program_transform_name=s,x,x,
896silent=
897site=
898srcdir=
899verbose=
900x_includes=NONE
901x_libraries=NONE
902
903# Installation directory options.
904# These are left unexpanded so users can "make install exec_prefix=/foo"
905# and all the variables that are supposed to be based on exec_prefix
906# by default will actually change.
907# Use braces instead of parens because sh, perl, etc. also accept them.
908# (The list follows the same order as the GNU Coding Standards.)
909bindir='${exec_prefix}/bin'
910sbindir='${exec_prefix}/sbin'
911libexecdir='${exec_prefix}/libexec'
912datarootdir='${prefix}/share'
913datadir='${datarootdir}'
914sysconfdir='${prefix}/etc'
915sharedstatedir='${prefix}/com'
916localstatedir='${prefix}/var'
917includedir='${prefix}/include'
918oldincludedir='/usr/include'
919docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920infodir='${datarootdir}/info'
921htmldir='${docdir}'
922dvidir='${docdir}'
923pdfdir='${docdir}'
924psdir='${docdir}'
925libdir='${exec_prefix}/lib'
926localedir='${datarootdir}/locale'
927mandir='${datarootdir}/man'
928
929ac_prev=
930ac_dashdash=
931for ac_option
932do
933  # If the previous option needs an argument, assign it.
934  if test -n "$ac_prev"; then
935    eval $ac_prev=\$ac_option
936    ac_prev=
937    continue
938  fi
939
940  case $ac_option in
941  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942  *=)   ac_optarg= ;;
943  *)    ac_optarg=yes ;;
944  esac
945
946  # Accept the important Cygnus configure options, so we can diagnose typos.
947
948  case $ac_dashdash$ac_option in
949  --)
950    ac_dashdash=yes ;;
951
952  -bindir | --bindir | --bindi | --bind | --bin | --bi)
953    ac_prev=bindir ;;
954  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955    bindir=$ac_optarg ;;
956
957  -build | --build | --buil | --bui | --bu)
958    ac_prev=build_alias ;;
959  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960    build_alias=$ac_optarg ;;
961
962  -cache-file | --cache-file | --cache-fil | --cache-fi \
963  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964    ac_prev=cache_file ;;
965  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967    cache_file=$ac_optarg ;;
968
969  --config-cache | -C)
970    cache_file=config.cache ;;
971
972  -datadir | --datadir | --datadi | --datad)
973    ac_prev=datadir ;;
974  -datadir=* | --datadir=* | --datadi=* | --datad=*)
975    datadir=$ac_optarg ;;
976
977  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978  | --dataroo | --dataro | --datar)
979    ac_prev=datarootdir ;;
980  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982    datarootdir=$ac_optarg ;;
983
984  -disable-* | --disable-*)
985    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986    # Reject names that are not valid shell variable names.
987    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988      as_fn_error $? "invalid feature name: $ac_useropt"
989    ac_useropt_orig=$ac_useropt
990    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991    case $ac_user_opts in
992      *"
993"enable_$ac_useropt"
994"*) ;;
995      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996	 ac_unrecognized_sep=', ';;
997    esac
998    eval enable_$ac_useropt=no ;;
999
1000  -docdir | --docdir | --docdi | --doc | --do)
1001    ac_prev=docdir ;;
1002  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003    docdir=$ac_optarg ;;
1004
1005  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006    ac_prev=dvidir ;;
1007  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008    dvidir=$ac_optarg ;;
1009
1010  -enable-* | --enable-*)
1011    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012    # Reject names that are not valid shell variable names.
1013    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014      as_fn_error $? "invalid feature name: $ac_useropt"
1015    ac_useropt_orig=$ac_useropt
1016    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017    case $ac_user_opts in
1018      *"
1019"enable_$ac_useropt"
1020"*) ;;
1021      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022	 ac_unrecognized_sep=', ';;
1023    esac
1024    eval enable_$ac_useropt=\$ac_optarg ;;
1025
1026  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028  | --exec | --exe | --ex)
1029    ac_prev=exec_prefix ;;
1030  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032  | --exec=* | --exe=* | --ex=*)
1033    exec_prefix=$ac_optarg ;;
1034
1035  -gas | --gas | --ga | --g)
1036    # Obsolete; use --with-gas.
1037    with_gas=yes ;;
1038
1039  -help | --help | --hel | --he | -h)
1040    ac_init_help=long ;;
1041  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042    ac_init_help=recursive ;;
1043  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044    ac_init_help=short ;;
1045
1046  -host | --host | --hos | --ho)
1047    ac_prev=host_alias ;;
1048  -host=* | --host=* | --hos=* | --ho=*)
1049    host_alias=$ac_optarg ;;
1050
1051  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052    ac_prev=htmldir ;;
1053  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054  | --ht=*)
1055    htmldir=$ac_optarg ;;
1056
1057  -includedir | --includedir | --includedi | --included | --include \
1058  | --includ | --inclu | --incl | --inc)
1059    ac_prev=includedir ;;
1060  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061  | --includ=* | --inclu=* | --incl=* | --inc=*)
1062    includedir=$ac_optarg ;;
1063
1064  -infodir | --infodir | --infodi | --infod | --info | --inf)
1065    ac_prev=infodir ;;
1066  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067    infodir=$ac_optarg ;;
1068
1069  -libdir | --libdir | --libdi | --libd)
1070    ac_prev=libdir ;;
1071  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072    libdir=$ac_optarg ;;
1073
1074  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075  | --libexe | --libex | --libe)
1076    ac_prev=libexecdir ;;
1077  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078  | --libexe=* | --libex=* | --libe=*)
1079    libexecdir=$ac_optarg ;;
1080
1081  -localedir | --localedir | --localedi | --localed | --locale)
1082    ac_prev=localedir ;;
1083  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084    localedir=$ac_optarg ;;
1085
1086  -localstatedir | --localstatedir | --localstatedi | --localstated \
1087  | --localstate | --localstat | --localsta | --localst | --locals)
1088    ac_prev=localstatedir ;;
1089  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091    localstatedir=$ac_optarg ;;
1092
1093  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094    ac_prev=mandir ;;
1095  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096    mandir=$ac_optarg ;;
1097
1098  -nfp | --nfp | --nf)
1099    # Obsolete; use --without-fp.
1100    with_fp=no ;;
1101
1102  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103  | --no-cr | --no-c | -n)
1104    no_create=yes ;;
1105
1106  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108    no_recursion=yes ;;
1109
1110  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112  | --oldin | --oldi | --old | --ol | --o)
1113    ac_prev=oldincludedir ;;
1114  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117    oldincludedir=$ac_optarg ;;
1118
1119  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120    ac_prev=prefix ;;
1121  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122    prefix=$ac_optarg ;;
1123
1124  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125  | --program-pre | --program-pr | --program-p)
1126    ac_prev=program_prefix ;;
1127  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129    program_prefix=$ac_optarg ;;
1130
1131  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132  | --program-suf | --program-su | --program-s)
1133    ac_prev=program_suffix ;;
1134  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136    program_suffix=$ac_optarg ;;
1137
1138  -program-transform-name | --program-transform-name \
1139  | --program-transform-nam | --program-transform-na \
1140  | --program-transform-n | --program-transform- \
1141  | --program-transform | --program-transfor \
1142  | --program-transfo | --program-transf \
1143  | --program-trans | --program-tran \
1144  | --progr-tra | --program-tr | --program-t)
1145    ac_prev=program_transform_name ;;
1146  -program-transform-name=* | --program-transform-name=* \
1147  | --program-transform-nam=* | --program-transform-na=* \
1148  | --program-transform-n=* | --program-transform-=* \
1149  | --program-transform=* | --program-transfor=* \
1150  | --program-transfo=* | --program-transf=* \
1151  | --program-trans=* | --program-tran=* \
1152  | --progr-tra=* | --program-tr=* | --program-t=*)
1153    program_transform_name=$ac_optarg ;;
1154
1155  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156    ac_prev=pdfdir ;;
1157  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158    pdfdir=$ac_optarg ;;
1159
1160  -psdir | --psdir | --psdi | --psd | --ps)
1161    ac_prev=psdir ;;
1162  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163    psdir=$ac_optarg ;;
1164
1165  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166  | -silent | --silent | --silen | --sile | --sil)
1167    silent=yes ;;
1168
1169  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170    ac_prev=sbindir ;;
1171  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172  | --sbi=* | --sb=*)
1173    sbindir=$ac_optarg ;;
1174
1175  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177  | --sharedst | --shareds | --shared | --share | --shar \
1178  | --sha | --sh)
1179    ac_prev=sharedstatedir ;;
1180  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183  | --sha=* | --sh=*)
1184    sharedstatedir=$ac_optarg ;;
1185
1186  -site | --site | --sit)
1187    ac_prev=site ;;
1188  -site=* | --site=* | --sit=*)
1189    site=$ac_optarg ;;
1190
1191  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192    ac_prev=srcdir ;;
1193  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194    srcdir=$ac_optarg ;;
1195
1196  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197  | --syscon | --sysco | --sysc | --sys | --sy)
1198    ac_prev=sysconfdir ;;
1199  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201    sysconfdir=$ac_optarg ;;
1202
1203  -target | --target | --targe | --targ | --tar | --ta | --t)
1204    ac_prev=target_alias ;;
1205  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206    target_alias=$ac_optarg ;;
1207
1208  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209    verbose=yes ;;
1210
1211  -version | --version | --versio | --versi | --vers | -V)
1212    ac_init_version=: ;;
1213
1214  -with-* | --with-*)
1215    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216    # Reject names that are not valid shell variable names.
1217    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218      as_fn_error $? "invalid package name: $ac_useropt"
1219    ac_useropt_orig=$ac_useropt
1220    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221    case $ac_user_opts in
1222      *"
1223"with_$ac_useropt"
1224"*) ;;
1225      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226	 ac_unrecognized_sep=', ';;
1227    esac
1228    eval with_$ac_useropt=\$ac_optarg ;;
1229
1230  -without-* | --without-*)
1231    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232    # Reject names that are not valid shell variable names.
1233    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234      as_fn_error $? "invalid package name: $ac_useropt"
1235    ac_useropt_orig=$ac_useropt
1236    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237    case $ac_user_opts in
1238      *"
1239"with_$ac_useropt"
1240"*) ;;
1241      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242	 ac_unrecognized_sep=', ';;
1243    esac
1244    eval with_$ac_useropt=no ;;
1245
1246  --x)
1247    # Obsolete; use --with-x.
1248    with_x=yes ;;
1249
1250  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251  | --x-incl | --x-inc | --x-in | --x-i)
1252    ac_prev=x_includes ;;
1253  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255    x_includes=$ac_optarg ;;
1256
1257  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259    ac_prev=x_libraries ;;
1260  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262    x_libraries=$ac_optarg ;;
1263
1264  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265Try \`$0 --help' for more information"
1266    ;;
1267
1268  *=*)
1269    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270    # Reject names that are not valid shell variable names.
1271    case $ac_envvar in #(
1272      '' | [0-9]* | *[!_$as_cr_alnum]* )
1273      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1274    esac
1275    eval $ac_envvar=\$ac_optarg
1276    export $ac_envvar ;;
1277
1278  *)
1279    # FIXME: should be removed in autoconf 3.0.
1280    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284    ;;
1285
1286  esac
1287done
1288
1289if test -n "$ac_prev"; then
1290  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291  as_fn_error $? "missing argument to $ac_option"
1292fi
1293
1294if test -n "$ac_unrecognized_opts"; then
1295  case $enable_option_checking in
1296    no) ;;
1297    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1298    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299  esac
1300fi
1301
1302# Check all directory arguments for consistency.
1303for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304		datadir sysconfdir sharedstatedir localstatedir includedir \
1305		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306		libdir localedir mandir
1307do
1308  eval ac_val=\$$ac_var
1309  # Remove trailing slashes.
1310  case $ac_val in
1311    */ )
1312      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313      eval $ac_var=\$ac_val;;
1314  esac
1315  # Be sure to have absolute directory names.
1316  case $ac_val in
1317    [\\/$]* | ?:[\\/]* )  continue;;
1318    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319  esac
1320  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1321done
1322
1323# There might be people who depend on the old broken behavior: `$host'
1324# used to hold the argument of --host etc.
1325# FIXME: To remove some day.
1326build=$build_alias
1327host=$host_alias
1328target=$target_alias
1329
1330# FIXME: To remove some day.
1331if test "x$host_alias" != x; then
1332  if test "x$build_alias" = x; then
1333    cross_compiling=maybe
1334  elif test "x$build_alias" != "x$host_alias"; then
1335    cross_compiling=yes
1336  fi
1337fi
1338
1339ac_tool_prefix=
1340test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342test "$silent" = yes && exec 6>/dev/null
1343
1344
1345ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346ac_ls_di=`ls -di .` &&
1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348  as_fn_error $? "working directory cannot be determined"
1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350  as_fn_error $? "pwd does not report name of working directory"
1351
1352
1353# Find the source files, if location was not specified.
1354if test -z "$srcdir"; then
1355  ac_srcdir_defaulted=yes
1356  # Try the directory containing this script, then the parent directory.
1357  ac_confdir=`$as_dirname -- "$as_myself" ||
1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359	 X"$as_myself" : 'X\(//\)[^/]' \| \
1360	 X"$as_myself" : 'X\(//\)$' \| \
1361	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362$as_echo X"$as_myself" |
1363    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364	    s//\1/
1365	    q
1366	  }
1367	  /^X\(\/\/\)[^/].*/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\/\)$/{
1372	    s//\1/
1373	    q
1374	  }
1375	  /^X\(\/\).*/{
1376	    s//\1/
1377	    q
1378	  }
1379	  s/.*/./; q'`
1380  srcdir=$ac_confdir
1381  if test ! -r "$srcdir/$ac_unique_file"; then
1382    srcdir=..
1383  fi
1384else
1385  ac_srcdir_defaulted=no
1386fi
1387if test ! -r "$srcdir/$ac_unique_file"; then
1388  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390fi
1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392ac_abs_confdir=`(
1393	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394	pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397  srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407  eval ac_env_${ac_var}_value=\$${ac_var}
1408  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
1411
1412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416  # Omit some internal or obsolete options to make the list less imposing.
1417  # This message is too long to be a string in the A/UX 3.1 sh.
1418  cat <<_ACEOF
1419\`configure' configures fontconfig 2.12.4 to adapt to many kinds of systems.
1420
1421Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE.  See below for descriptions of some of the useful variables.
1425
1426Defaults for the options are specified in brackets.
1427
1428Configuration:
1429  -h, --help              display this help and exit
1430      --help=short        display options specific to this package
1431      --help=recursive    display the short help of all the included packages
1432  -V, --version           display version information and exit
1433  -q, --quiet, --silent   do not print \`checking ...' messages
1434      --cache-file=FILE   cache test results in FILE [disabled]
1435  -C, --config-cache      alias for \`--cache-file=config.cache'
1436  -n, --no-create         do not create output files
1437      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1438
1439Installation directories:
1440  --prefix=PREFIX         install architecture-independent files in PREFIX
1441                          [$ac_default_prefix]
1442  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1443                          [PREFIX]
1444
1445By default, \`make install' will install all the files in
1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1447an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448for instance \`--prefix=\$HOME'.
1449
1450For better control, use the options below.
1451
1452Fine tuning of the installation directories:
1453  --bindir=DIR            user executables [EPREFIX/bin]
1454  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1455  --libexecdir=DIR        program executables [EPREFIX/libexec]
1456  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1457  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1458  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1459  --libdir=DIR            object code libraries [EPREFIX/lib]
1460  --includedir=DIR        C header files [PREFIX/include]
1461  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1462  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1463  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1464  --infodir=DIR           info documentation [DATAROOTDIR/info]
1465  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1466  --mandir=DIR            man documentation [DATAROOTDIR/man]
1467  --docdir=DIR            documentation root [DATAROOTDIR/doc/fontconfig]
1468  --htmldir=DIR           html documentation [DOCDIR]
1469  --dvidir=DIR            dvi documentation [DOCDIR]
1470  --pdfdir=DIR            pdf documentation [DOCDIR]
1471  --psdir=DIR             ps documentation [DOCDIR]
1472_ACEOF
1473
1474  cat <<\_ACEOF
1475
1476Program names:
1477  --program-prefix=PREFIX            prepend PREFIX to installed program names
1478  --program-suffix=SUFFIX            append SUFFIX to installed program names
1479  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1480
1481System types:
1482  --build=BUILD     configure for building on BUILD [guessed]
1483  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1484_ACEOF
1485fi
1486
1487if test -n "$ac_init_help"; then
1488  case $ac_init_help in
1489     short | recursive ) echo "Configuration of fontconfig 2.12.4:";;
1490   esac
1491  cat <<\_ACEOF
1492
1493Optional Features:
1494  --disable-option-checking  ignore unrecognized --enable/--with options
1495  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1496  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1497  --enable-silent-rules   less verbose build output (undo: "make V=1")
1498  --disable-silent-rules  verbose build output (undo: "make V=0")
1499  --enable-dependency-tracking
1500                          do not reject slow dependency extractors
1501  --disable-dependency-tracking
1502                          speeds up one-time build
1503  --disable-largefile     omit support for large files
1504  --enable-static[=PKGS]  build static libraries [default=no]
1505  --enable-shared[=PKGS]  build shared libraries [default=yes]
1506  --enable-fast-install[=PKGS]
1507                          optimize for fast installation [default=yes]
1508  --disable-libtool-lock  avoid locking (might break parallel builds)
1509  --enable-iconv          Use iconv to support non-Unicode SFNT name
1510  --enable-libxml2        Use libxml2 instead of Expat
1511  --disable-docs          Don't build and install documentation
1512
1513Optional Packages:
1514  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516  --with-pkgconfigdir     pkg-config installation directory
1517                          ['${libdir}/pkgconfig']
1518  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1519                          both]
1520  --with-aix-soname=aix|svr4|both
1521                          shared library versioning (aka "SONAME") variant to
1522                          provide on AIX, [default=aix].
1523  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1524  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1525                          compiler's sysroot if not specified).
1526  --with-arch=ARCH        Force architecture to ARCH
1527  --with-libiconv=DIR     Use libiconv in DIR
1528  --with-libiconv-includes=DIR
1529                          Use libiconv includes in DIR
1530  --with-libiconv-lib=DIR Use libiconv library in DIR
1531  --with-expat=DIR        Use Expat in DIR
1532  --with-expat-includes=DIR
1533                          Use Expat includes in DIR
1534  --with-expat-lib=DIR
1535  --with-default-hinting=NAME
1536                          Enable your preferred hinting configuration
1537                          (none/slight/medium/full) [default=slight]
1538  --with-default-fonts=DIR
1539                          Use fonts from DIR when config is busted
1540  --with-add-fonts=DIR1,DIR2,...
1541                          Find additional fonts in DIR1,DIR2,...
1542  --with-cache-dir=DIR    Use DIR to store cache files
1543                          [default=LOCALSTATEDIR/cache/fontconfig]
1544  --with-templatedir=DIR  Use DIR to store the configuration template files
1545                          [default=DATADIR/fontconfig/conf.avail]
1546  --with-baseconfigdir=DIR
1547                          Use DIR to store the base configuration files
1548                          [default=SYSCONFDIR/fonts]
1549  --with-configdir=DIR    Use DIR to store active configuration files
1550                          [default=BASECONFIGDIR/conf.d]
1551  --with-xmldir=DIR       Use DIR to store XML schema files
1552                          [default=DATADIR/xml/fontconfig]
1553
1554Some influential environment variables:
1555  CC          C compiler command
1556  CFLAGS      C compiler flags
1557  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1558              nonstandard directory <lib dir>
1559  LIBS        libraries to pass to the linker, e.g. -l<library>
1560  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1561              you have headers in a nonstandard directory <include dir>
1562  CPP         C preprocessor
1563  PKG_CONFIG  path to pkg-config utility
1564  PKG_CONFIG_PATH
1565              directories to add to pkg-config's search path
1566  PKG_CONFIG_LIBDIR
1567              path overriding pkg-config's built-in search path
1568  PYTHON      the Python interpreter
1569  LT_SYS_LIBRARY_PATH
1570              User-defined run-time library search path.
1571  CC_FOR_BUILD
1572              build system C compiler
1573  FREETYPE_CFLAGS
1574              C compiler flags for FREETYPE, overriding pkg-config
1575  FREETYPE_LIBS
1576              linker flags for FREETYPE, overriding pkg-config
1577  EXPAT_CFLAGS
1578              C compiler flags for EXPAT, overriding pkg-config
1579  EXPAT_LIBS  linker flags for EXPAT, overriding pkg-config
1580  LIBXML2_CFLAGS
1581              C compiler flags for LIBXML2, overriding pkg-config
1582  LIBXML2_LIBS
1583              linker flags for LIBXML2, overriding pkg-config
1584
1585Use these variables to override the choices made by `configure' or to help
1586it to find libraries and programs with nonstandard names/locations.
1587
1588Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
1589_ACEOF
1590ac_status=$?
1591fi
1592
1593if test "$ac_init_help" = "recursive"; then
1594  # If there are subdirs, report their specific --help.
1595  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596    test -d "$ac_dir" ||
1597      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598      continue
1599    ac_builddir=.
1600
1601case "$ac_dir" in
1602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603*)
1604  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605  # A ".." for each directory in $ac_dir_suffix.
1606  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607  case $ac_top_builddir_sub in
1608  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610  esac ;;
1611esac
1612ac_abs_top_builddir=$ac_pwd
1613ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614# for backward compatibility:
1615ac_top_builddir=$ac_top_build_prefix
1616
1617case $srcdir in
1618  .)  # We are building in place.
1619    ac_srcdir=.
1620    ac_top_srcdir=$ac_top_builddir_sub
1621    ac_abs_top_srcdir=$ac_pwd ;;
1622  [\\/]* | ?:[\\/]* )  # Absolute name.
1623    ac_srcdir=$srcdir$ac_dir_suffix;
1624    ac_top_srcdir=$srcdir
1625    ac_abs_top_srcdir=$srcdir ;;
1626  *) # Relative name.
1627    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628    ac_top_srcdir=$ac_top_build_prefix$srcdir
1629    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630esac
1631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633    cd "$ac_dir" || { ac_status=$?; continue; }
1634    # Check for guested configure.
1635    if test -f "$ac_srcdir/configure.gnu"; then
1636      echo &&
1637      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638    elif test -f "$ac_srcdir/configure"; then
1639      echo &&
1640      $SHELL "$ac_srcdir/configure" --help=recursive
1641    else
1642      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643    fi || ac_status=$?
1644    cd "$ac_pwd" || { ac_status=$?; break; }
1645  done
1646fi
1647
1648test -n "$ac_init_help" && exit $ac_status
1649if $ac_init_version; then
1650  cat <<\_ACEOF
1651fontconfig configure 2.12.4
1652generated by GNU Autoconf 2.69
1653
1654Copyright (C) 2012 Free Software Foundation, Inc.
1655This configure script is free software; the Free Software Foundation
1656gives unlimited permission to copy, distribute and modify it.
1657_ACEOF
1658  exit
1659fi
1660
1661## ------------------------ ##
1662## Autoconf initialization. ##
1663## ------------------------ ##
1664
1665# ac_fn_c_try_compile LINENO
1666# --------------------------
1667# Try to compile conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_compile ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  rm -f conftest.$ac_objext
1672  if { { ac_try="$ac_compile"
1673case "(($ac_try" in
1674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675  *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679  (eval "$ac_compile") 2>conftest.err
1680  ac_status=$?
1681  if test -s conftest.err; then
1682    grep -v '^ *+' conftest.err >conftest.er1
1683    cat conftest.er1 >&5
1684    mv -f conftest.er1 conftest.err
1685  fi
1686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687  test $ac_status = 0; } && {
1688	 test -z "$ac_c_werror_flag" ||
1689	 test ! -s conftest.err
1690       } && test -s conftest.$ac_objext; then :
1691  ac_retval=0
1692else
1693  $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696	ac_retval=1
1697fi
1698  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699  as_fn_set_status $ac_retval
1700
1701} # ac_fn_c_try_compile
1702
1703# ac_fn_c_try_cpp LINENO
1704# ----------------------
1705# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_c_try_cpp ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  if { { ac_try="$ac_cpp conftest.$ac_ext"
1710case "(($ac_try" in
1711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712  *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717  ac_status=$?
1718  if test -s conftest.err; then
1719    grep -v '^ *+' conftest.err >conftest.er1
1720    cat conftest.er1 >&5
1721    mv -f conftest.er1 conftest.err
1722  fi
1723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724  test $ac_status = 0; } > conftest.i && {
1725	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1726	 test ! -s conftest.err
1727       }; then :
1728  ac_retval=0
1729else
1730  $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733    ac_retval=1
1734fi
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_cpp
1739
1740# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1741# -------------------------------------------------------
1742# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1743# the include files in INCLUDES and setting the cache variable VAR
1744# accordingly.
1745ac_fn_c_check_header_mongrel ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  if eval \${$3+:} false; then :
1749  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750$as_echo_n "checking for $2... " >&6; }
1751if eval \${$3+:} false; then :
1752  $as_echo_n "(cached) " >&6
1753fi
1754eval ac_res=\$$3
1755	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756$as_echo "$ac_res" >&6; }
1757else
1758  # Is the header compilable?
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1760$as_echo_n "checking $2 usability... " >&6; }
1761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763$4
1764#include <$2>
1765_ACEOF
1766if ac_fn_c_try_compile "$LINENO"; then :
1767  ac_header_compiler=yes
1768else
1769  ac_header_compiler=no
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1773$as_echo "$ac_header_compiler" >&6; }
1774
1775# Is the header present?
1776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1777$as_echo_n "checking $2 presence... " >&6; }
1778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h.  */
1780#include <$2>
1781_ACEOF
1782if ac_fn_c_try_cpp "$LINENO"; then :
1783  ac_header_preproc=yes
1784else
1785  ac_header_preproc=no
1786fi
1787rm -f conftest.err conftest.i conftest.$ac_ext
1788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1789$as_echo "$ac_header_preproc" >&6; }
1790
1791# So?  What about this header?
1792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1793  yes:no: )
1794    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1795$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1796    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1797$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1798    ;;
1799  no:yes:* )
1800    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1801$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1802    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1803$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1804    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1805$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1806    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1807$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810( $as_echo "## ---------------------------------------------------------------------------- ##
1811## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig ##
1812## ---------------------------------------------------------------------------- ##"
1813     ) | sed "s/^/$as_me: WARNING:     /" >&2
1814    ;;
1815esac
1816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817$as_echo_n "checking for $2... " >&6; }
1818if eval \${$3+:} false; then :
1819  $as_echo_n "(cached) " >&6
1820else
1821  eval "$3=\$ac_header_compiler"
1822fi
1823eval ac_res=\$$3
1824	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826fi
1827  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829} # ac_fn_c_check_header_mongrel
1830
1831# ac_fn_c_try_run LINENO
1832# ----------------------
1833# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1834# that executables *can* be run.
1835ac_fn_c_try_run ()
1836{
1837  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838  if { { ac_try="$ac_link"
1839case "(($ac_try" in
1840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841  *) ac_try_echo=$ac_try;;
1842esac
1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844$as_echo "$ac_try_echo"; } >&5
1845  (eval "$ac_link") 2>&5
1846  ac_status=$?
1847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1849  { { case "(($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\""
1854$as_echo "$ac_try_echo"; } >&5
1855  (eval "$ac_try") 2>&5
1856  ac_status=$?
1857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858  test $ac_status = 0; }; }; then :
1859  ac_retval=0
1860else
1861  $as_echo "$as_me: program exited with status $ac_status" >&5
1862       $as_echo "$as_me: failed program was:" >&5
1863sed 's/^/| /' conftest.$ac_ext >&5
1864
1865       ac_retval=$ac_status
1866fi
1867  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869  as_fn_set_status $ac_retval
1870
1871} # ac_fn_c_try_run
1872
1873# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1874# -------------------------------------------------------
1875# Tests whether HEADER exists and can be compiled using the include files in
1876# INCLUDES, setting the cache variable VAR accordingly.
1877ac_fn_c_check_header_compile ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if eval \${$3+:} false; then :
1883  $as_echo_n "(cached) " >&6
1884else
1885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h.  */
1887$4
1888#include <$2>
1889_ACEOF
1890if ac_fn_c_try_compile "$LINENO"; then :
1891  eval "$3=yes"
1892else
1893  eval "$3=no"
1894fi
1895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_header_compile
1903
1904# ac_fn_c_try_link LINENO
1905# -----------------------
1906# Try to link conftest.$ac_ext, and return whether this succeeded.
1907ac_fn_c_try_link ()
1908{
1909  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910  rm -f conftest.$ac_objext conftest$ac_exeext
1911  if { { ac_try="$ac_link"
1912case "(($ac_try" in
1913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914  *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918  (eval "$ac_link") 2>conftest.err
1919  ac_status=$?
1920  if test -s conftest.err; then
1921    grep -v '^ *+' conftest.err >conftest.er1
1922    cat conftest.er1 >&5
1923    mv -f conftest.er1 conftest.err
1924  fi
1925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926  test $ac_status = 0; } && {
1927	 test -z "$ac_c_werror_flag" ||
1928	 test ! -s conftest.err
1929       } && test -s conftest$ac_exeext && {
1930	 test "$cross_compiling" = yes ||
1931	 test -x conftest$ac_exeext
1932       }; then :
1933  ac_retval=0
1934else
1935  $as_echo "$as_me: failed program was:" >&5
1936sed 's/^/| /' conftest.$ac_ext >&5
1937
1938	ac_retval=1
1939fi
1940  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1941  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1942  # interfere with the next link command; also delete a directory that is
1943  # left behind by Apple's compiler.  We do this before executing the actions.
1944  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946  as_fn_set_status $ac_retval
1947
1948} # ac_fn_c_try_link
1949
1950# ac_fn_c_check_func LINENO FUNC VAR
1951# ----------------------------------
1952# Tests whether FUNC exists, setting the cache variable VAR accordingly
1953ac_fn_c_check_func ()
1954{
1955  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if eval \${$3+:} false; then :
1959  $as_echo_n "(cached) " >&6
1960else
1961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h.  */
1963/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1964   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1965#define $2 innocuous_$2
1966
1967/* System header to define __stub macros and hopefully few prototypes,
1968    which can conflict with char $2 (); below.
1969    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1970    <limits.h> exists even on freestanding compilers.  */
1971
1972#ifdef __STDC__
1973# include <limits.h>
1974#else
1975# include <assert.h>
1976#endif
1977
1978#undef $2
1979
1980/* Override any GCC internal prototype to avoid an error.
1981   Use char because int might match the return type of a GCC
1982   builtin and then its argument prototype would still apply.  */
1983#ifdef __cplusplus
1984extern "C"
1985#endif
1986char $2 ();
1987/* The GNU C library defines this for functions which it implements
1988    to always fail with ENOSYS.  Some functions are actually named
1989    something starting with __ and the normal name is an alias.  */
1990#if defined __stub_$2 || defined __stub___$2
1991choke me
1992#endif
1993
1994int
1995main ()
1996{
1997return $2 ();
1998  ;
1999  return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_link "$LINENO"; then :
2003  eval "$3=yes"
2004else
2005  eval "$3=no"
2006fi
2007rm -f core conftest.err conftest.$ac_objext \
2008    conftest$ac_exeext conftest.$ac_ext
2009fi
2010eval ac_res=\$$3
2011	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012$as_echo "$ac_res" >&6; }
2013  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015} # ac_fn_c_check_func
2016
2017# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2018# ---------------------------------------------
2019# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2020# accordingly.
2021ac_fn_c_check_decl ()
2022{
2023  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024  as_decl_name=`echo $2|sed 's/ *(.*//'`
2025  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2027$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2028if eval \${$3+:} false; then :
2029  $as_echo_n "(cached) " >&6
2030else
2031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h.  */
2033$4
2034int
2035main ()
2036{
2037#ifndef $as_decl_name
2038#ifdef __cplusplus
2039  (void) $as_decl_use;
2040#else
2041  (void) $as_decl_name;
2042#endif
2043#endif
2044
2045  ;
2046  return 0;
2047}
2048_ACEOF
2049if ac_fn_c_try_compile "$LINENO"; then :
2050  eval "$3=yes"
2051else
2052  eval "$3=no"
2053fi
2054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055fi
2056eval ac_res=\$$3
2057	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058$as_echo "$ac_res" >&6; }
2059  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061} # ac_fn_c_check_decl
2062
2063# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2064# -------------------------------------------
2065# Tests whether TYPE exists after having included INCLUDES, setting cache
2066# variable VAR accordingly.
2067ac_fn_c_check_type ()
2068{
2069  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071$as_echo_n "checking for $2... " >&6; }
2072if eval \${$3+:} false; then :
2073  $as_echo_n "(cached) " >&6
2074else
2075  eval "$3=no"
2076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h.  */
2078$4
2079int
2080main ()
2081{
2082if (sizeof ($2))
2083	 return 0;
2084  ;
2085  return 0;
2086}
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h.  */
2091$4
2092int
2093main ()
2094{
2095if (sizeof (($2)))
2096	    return 0;
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102
2103else
2104  eval "$3=yes"
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110eval ac_res=\$$3
2111	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112$as_echo "$ac_res" >&6; }
2113  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114
2115} # ac_fn_c_check_type
2116
2117# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2118# --------------------------------------------
2119# Tries to find the compile-time value of EXPR in a program that includes
2120# INCLUDES, setting VAR accordingly. Returns whether the value could be
2121# computed
2122ac_fn_c_compute_int ()
2123{
2124  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125  if test "$cross_compiling" = yes; then
2126    # Depending upon the size, compute the lo and hi bounds.
2127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h.  */
2129$4
2130int
2131main ()
2132{
2133static int test_array [1 - 2 * !(($2) >= 0)];
2134test_array [0] = 0;
2135return test_array [0];
2136
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142  ac_lo=0 ac_mid=0
2143  while :; do
2144    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145/* end confdefs.h.  */
2146$4
2147int
2148main ()
2149{
2150static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2151test_array [0] = 0;
2152return test_array [0];
2153
2154  ;
2155  return 0;
2156}
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"; then :
2159  ac_hi=$ac_mid; break
2160else
2161  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2162			if test $ac_lo -le $ac_mid; then
2163			  ac_lo= ac_hi=
2164			  break
2165			fi
2166			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169  done
2170else
2171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h.  */
2173$4
2174int
2175main ()
2176{
2177static int test_array [1 - 2 * !(($2) < 0)];
2178test_array [0] = 0;
2179return test_array [0];
2180
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186  ac_hi=-1 ac_mid=-1
2187  while :; do
2188    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189/* end confdefs.h.  */
2190$4
2191int
2192main ()
2193{
2194static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2195test_array [0] = 0;
2196return test_array [0];
2197
2198  ;
2199  return 0;
2200}
2201_ACEOF
2202if ac_fn_c_try_compile "$LINENO"; then :
2203  ac_lo=$ac_mid; break
2204else
2205  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2206			if test $ac_mid -le $ac_hi; then
2207			  ac_lo= ac_hi=
2208			  break
2209			fi
2210			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213  done
2214else
2215  ac_lo= ac_hi=
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220# Binary search between lo and hi bounds.
2221while test "x$ac_lo" != "x$ac_hi"; do
2222  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h.  */
2225$4
2226int
2227main ()
2228{
2229static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2230test_array [0] = 0;
2231return test_array [0];
2232
2233  ;
2234  return 0;
2235}
2236_ACEOF
2237if ac_fn_c_try_compile "$LINENO"; then :
2238  ac_hi=$ac_mid
2239else
2240  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2241fi
2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243done
2244case $ac_lo in #((
2245?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2246'') ac_retval=1 ;;
2247esac
2248  else
2249    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h.  */
2251$4
2252static long int longval () { return $2; }
2253static unsigned long int ulongval () { return $2; }
2254#include <stdio.h>
2255#include <stdlib.h>
2256int
2257main ()
2258{
2259
2260  FILE *f = fopen ("conftest.val", "w");
2261  if (! f)
2262    return 1;
2263  if (($2) < 0)
2264    {
2265      long int i = longval ();
2266      if (i != ($2))
2267	return 1;
2268      fprintf (f, "%ld", i);
2269    }
2270  else
2271    {
2272      unsigned long int i = ulongval ();
2273      if (i != ($2))
2274	return 1;
2275      fprintf (f, "%lu", i);
2276    }
2277  /* Do not output a trailing newline, as this causes \r\n confusion
2278     on some platforms.  */
2279  return ferror (f) || fclose (f) != 0;
2280
2281  ;
2282  return 0;
2283}
2284_ACEOF
2285if ac_fn_c_try_run "$LINENO"; then :
2286  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2287else
2288  ac_retval=1
2289fi
2290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2291  conftest.$ac_objext conftest.beam conftest.$ac_ext
2292rm -f conftest.val
2293
2294  fi
2295  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296  as_fn_set_status $ac_retval
2297
2298} # ac_fn_c_compute_int
2299
2300# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2301# ----------------------------------------------------
2302# Tries to find if the field MEMBER exists in type AGGR, after including
2303# INCLUDES, setting cache variable VAR accordingly.
2304ac_fn_c_check_member ()
2305{
2306  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2308$as_echo_n "checking for $2.$3... " >&6; }
2309if eval \${$4+:} false; then :
2310  $as_echo_n "(cached) " >&6
2311else
2312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313/* end confdefs.h.  */
2314$5
2315int
2316main ()
2317{
2318static $2 ac_aggr;
2319if (ac_aggr.$3)
2320return 0;
2321  ;
2322  return 0;
2323}
2324_ACEOF
2325if ac_fn_c_try_compile "$LINENO"; then :
2326  eval "$4=yes"
2327else
2328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h.  */
2330$5
2331int
2332main ()
2333{
2334static $2 ac_aggr;
2335if (sizeof ac_aggr.$3)
2336return 0;
2337  ;
2338  return 0;
2339}
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342  eval "$4=yes"
2343else
2344  eval "$4=no"
2345fi
2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349fi
2350eval ac_res=\$$4
2351	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352$as_echo "$ac_res" >&6; }
2353  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354
2355} # ac_fn_c_check_member
2356cat >config.log <<_ACEOF
2357This file contains any messages produced by compilers while
2358running configure, to aid debugging if configure makes a mistake.
2359
2360It was created by fontconfig $as_me 2.12.4, which was
2361generated by GNU Autoconf 2.69.  Invocation command line was
2362
2363  $ $0 $@
2364
2365_ACEOF
2366exec 5>>config.log
2367{
2368cat <<_ASUNAME
2369## --------- ##
2370## Platform. ##
2371## --------- ##
2372
2373hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2374uname -m = `(uname -m) 2>/dev/null || echo unknown`
2375uname -r = `(uname -r) 2>/dev/null || echo unknown`
2376uname -s = `(uname -s) 2>/dev/null || echo unknown`
2377uname -v = `(uname -v) 2>/dev/null || echo unknown`
2378
2379/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2380/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2381
2382/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2383/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2384/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2385/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2386/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2387/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2388/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2389
2390_ASUNAME
2391
2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393for as_dir in $PATH
2394do
2395  IFS=$as_save_IFS
2396  test -z "$as_dir" && as_dir=.
2397    $as_echo "PATH: $as_dir"
2398  done
2399IFS=$as_save_IFS
2400
2401} >&5
2402
2403cat >&5 <<_ACEOF
2404
2405
2406## ----------- ##
2407## Core tests. ##
2408## ----------- ##
2409
2410_ACEOF
2411
2412
2413# Keep a trace of the command line.
2414# Strip out --no-create and --no-recursion so they do not pile up.
2415# Strip out --silent because we don't want to record it for future runs.
2416# Also quote any args containing shell meta-characters.
2417# Make two passes to allow for proper duplicate-argument suppression.
2418ac_configure_args=
2419ac_configure_args0=
2420ac_configure_args1=
2421ac_must_keep_next=false
2422for ac_pass in 1 2
2423do
2424  for ac_arg
2425  do
2426    case $ac_arg in
2427    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2428    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2429    | -silent | --silent | --silen | --sile | --sil)
2430      continue ;;
2431    *\'*)
2432      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2433    esac
2434    case $ac_pass in
2435    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2436    2)
2437      as_fn_append ac_configure_args1 " '$ac_arg'"
2438      if test $ac_must_keep_next = true; then
2439	ac_must_keep_next=false # Got value, back to normal.
2440      else
2441	case $ac_arg in
2442	  *=* | --config-cache | -C | -disable-* | --disable-* \
2443	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2444	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2445	  | -with-* | --with-* | -without-* | --without-* | --x)
2446	    case "$ac_configure_args0 " in
2447	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2448	    esac
2449	    ;;
2450	  -* ) ac_must_keep_next=true ;;
2451	esac
2452      fi
2453      as_fn_append ac_configure_args " '$ac_arg'"
2454      ;;
2455    esac
2456  done
2457done
2458{ ac_configure_args0=; unset ac_configure_args0;}
2459{ ac_configure_args1=; unset ac_configure_args1;}
2460
2461# When interrupted or exit'd, cleanup temporary files, and complete
2462# config.log.  We remove comments because anyway the quotes in there
2463# would cause problems or look ugly.
2464# WARNING: Use '\'' to represent an apostrophe within the trap.
2465# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2466trap 'exit_status=$?
2467  # Save into config.log some information that might help in debugging.
2468  {
2469    echo
2470
2471    $as_echo "## ---------------- ##
2472## Cache variables. ##
2473## ---------------- ##"
2474    echo
2475    # The following way of writing the cache mishandles newlines in values,
2476(
2477  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2478    eval ac_val=\$$ac_var
2479    case $ac_val in #(
2480    *${as_nl}*)
2481      case $ac_var in #(
2482      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2483$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2484      esac
2485      case $ac_var in #(
2486      _ | IFS | as_nl) ;; #(
2487      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2488      *) { eval $ac_var=; unset $ac_var;} ;;
2489      esac ;;
2490    esac
2491  done
2492  (set) 2>&1 |
2493    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2494    *${as_nl}ac_space=\ *)
2495      sed -n \
2496	"s/'\''/'\''\\\\'\'''\''/g;
2497	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2498      ;; #(
2499    *)
2500      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2501      ;;
2502    esac |
2503    sort
2504)
2505    echo
2506
2507    $as_echo "## ----------------- ##
2508## Output variables. ##
2509## ----------------- ##"
2510    echo
2511    for ac_var in $ac_subst_vars
2512    do
2513      eval ac_val=\$$ac_var
2514      case $ac_val in
2515      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516      esac
2517      $as_echo "$ac_var='\''$ac_val'\''"
2518    done | sort
2519    echo
2520
2521    if test -n "$ac_subst_files"; then
2522      $as_echo "## ------------------- ##
2523## File substitutions. ##
2524## ------------------- ##"
2525      echo
2526      for ac_var in $ac_subst_files
2527      do
2528	eval ac_val=\$$ac_var
2529	case $ac_val in
2530	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2531	esac
2532	$as_echo "$ac_var='\''$ac_val'\''"
2533      done | sort
2534      echo
2535    fi
2536
2537    if test -s confdefs.h; then
2538      $as_echo "## ----------- ##
2539## confdefs.h. ##
2540## ----------- ##"
2541      echo
2542      cat confdefs.h
2543      echo
2544    fi
2545    test "$ac_signal" != 0 &&
2546      $as_echo "$as_me: caught signal $ac_signal"
2547    $as_echo "$as_me: exit $exit_status"
2548  } >&5
2549  rm -f core *.core core.conftest.* &&
2550    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2551    exit $exit_status
2552' 0
2553for ac_signal in 1 2 13 15; do
2554  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2555done
2556ac_signal=0
2557
2558# confdefs.h avoids OS command line length limits that DEFS can exceed.
2559rm -f -r conftest* confdefs.h
2560
2561$as_echo "/* confdefs.h */" > confdefs.h
2562
2563# Predefined preprocessor variables.
2564
2565cat >>confdefs.h <<_ACEOF
2566#define PACKAGE_NAME "$PACKAGE_NAME"
2567_ACEOF
2568
2569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2571_ACEOF
2572
2573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_VERSION "$PACKAGE_VERSION"
2575_ACEOF
2576
2577cat >>confdefs.h <<_ACEOF
2578#define PACKAGE_STRING "$PACKAGE_STRING"
2579_ACEOF
2580
2581cat >>confdefs.h <<_ACEOF
2582#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2583_ACEOF
2584
2585cat >>confdefs.h <<_ACEOF
2586#define PACKAGE_URL "$PACKAGE_URL"
2587_ACEOF
2588
2589
2590# Let the site file select an alternate cache file if it wants to.
2591# Prefer an explicitly selected file to automatically selected ones.
2592ac_site_file1=NONE
2593ac_site_file2=NONE
2594if test -n "$CONFIG_SITE"; then
2595  # We do not want a PATH search for config.site.
2596  case $CONFIG_SITE in #((
2597    -*)  ac_site_file1=./$CONFIG_SITE;;
2598    */*) ac_site_file1=$CONFIG_SITE;;
2599    *)   ac_site_file1=./$CONFIG_SITE;;
2600  esac
2601elif test "x$prefix" != xNONE; then
2602  ac_site_file1=$prefix/share/config.site
2603  ac_site_file2=$prefix/etc/config.site
2604else
2605  ac_site_file1=$ac_default_prefix/share/config.site
2606  ac_site_file2=$ac_default_prefix/etc/config.site
2607fi
2608for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2609do
2610  test "x$ac_site_file" = xNONE && continue
2611  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2612    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2613$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2614    sed 's/^/| /' "$ac_site_file" >&5
2615    . "$ac_site_file" \
2616      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2618as_fn_error $? "failed to load site script $ac_site_file
2619See \`config.log' for more details" "$LINENO" 5; }
2620  fi
2621done
2622
2623if test -r "$cache_file"; then
2624  # Some versions of bash will fail to source /dev/null (special files
2625  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2626  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2627    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2628$as_echo "$as_me: loading cache $cache_file" >&6;}
2629    case $cache_file in
2630      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2631      *)                      . "./$cache_file";;
2632    esac
2633  fi
2634else
2635  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2636$as_echo "$as_me: creating cache $cache_file" >&6;}
2637  >$cache_file
2638fi
2639
2640as_fn_append ac_header_list " stdlib.h"
2641as_fn_append ac_header_list " unistd.h"
2642as_fn_append ac_header_list " sys/param.h"
2643# Check that the precious variables saved in the cache have kept the same
2644# value.
2645ac_cache_corrupted=false
2646for ac_var in $ac_precious_vars; do
2647  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648  eval ac_new_set=\$ac_env_${ac_var}_set
2649  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650  eval ac_new_val=\$ac_env_${ac_var}_value
2651  case $ac_old_set,$ac_new_set in
2652    set,)
2653      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2654$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2655      ac_cache_corrupted=: ;;
2656    ,set)
2657      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2658$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2659      ac_cache_corrupted=: ;;
2660    ,);;
2661    *)
2662      if test "x$ac_old_val" != "x$ac_new_val"; then
2663	# differences in whitespace do not lead to failure.
2664	ac_old_val_w=`echo x $ac_old_val`
2665	ac_new_val_w=`echo x $ac_new_val`
2666	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2667	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2668$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2669	  ac_cache_corrupted=:
2670	else
2671	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2672$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2673	  eval $ac_var=\$ac_old_val
2674	fi
2675	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2676$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2677	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2678$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2679      fi;;
2680  esac
2681  # Pass precious variables to config.status.
2682  if test "$ac_new_set" = set; then
2683    case $ac_new_val in
2684    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2685    *) ac_arg=$ac_var=$ac_new_val ;;
2686    esac
2687    case " $ac_configure_args " in
2688      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2689      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2690    esac
2691  fi
2692done
2693if $ac_cache_corrupted; then
2694  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2697$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2698  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2699fi
2700## -------------------- ##
2701## Main body of script. ##
2702## -------------------- ##
2703
2704ac_ext=c
2705ac_cpp='$CPP $CPPFLAGS'
2706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710
2711am__api_version='1.15'
2712
2713ac_aux_dir=
2714for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2715  if test -f "$ac_dir/install-sh"; then
2716    ac_aux_dir=$ac_dir
2717    ac_install_sh="$ac_aux_dir/install-sh -c"
2718    break
2719  elif test -f "$ac_dir/install.sh"; then
2720    ac_aux_dir=$ac_dir
2721    ac_install_sh="$ac_aux_dir/install.sh -c"
2722    break
2723  elif test -f "$ac_dir/shtool"; then
2724    ac_aux_dir=$ac_dir
2725    ac_install_sh="$ac_aux_dir/shtool install -c"
2726    break
2727  fi
2728done
2729if test -z "$ac_aux_dir"; then
2730  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2731fi
2732
2733# These three variables are undocumented and unsupported,
2734# and are intended to be withdrawn in a future Autoconf release.
2735# They can cause serious problems if a builder's source tree is in a directory
2736# whose full name contains unusual characters.
2737ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2738ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2739ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2740
2741
2742# Find a good install program.  We prefer a C program (faster),
2743# so one script is as good as another.  But avoid the broken or
2744# incompatible versions:
2745# SysV /etc/install, /usr/sbin/install
2746# SunOS /usr/etc/install
2747# IRIX /sbin/install
2748# AIX /bin/install
2749# AmigaOS /C/install, which installs bootblocks on floppy discs
2750# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2751# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2752# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2753# OS/2's system install, which has a completely different semantic
2754# ./install, which can be erroneously created by make from ./install.sh.
2755# Reject install programs that cannot install multiple files.
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2757$as_echo_n "checking for a BSD-compatible install... " >&6; }
2758if test -z "$INSTALL"; then
2759if ${ac_cv_path_install+:} false; then :
2760  $as_echo_n "(cached) " >&6
2761else
2762  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765  IFS=$as_save_IFS
2766  test -z "$as_dir" && as_dir=.
2767    # Account for people who put trailing slashes in PATH elements.
2768case $as_dir/ in #((
2769  ./ | .// | /[cC]/* | \
2770  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2771  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2772  /usr/ucb/* ) ;;
2773  *)
2774    # OSF1 and SCO ODT 3.0 have their own names for install.
2775    # Don't use installbsd from OSF since it installs stuff as root
2776    # by default.
2777    for ac_prog in ginstall scoinst install; do
2778      for ac_exec_ext in '' $ac_executable_extensions; do
2779	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2780	  if test $ac_prog = install &&
2781	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782	    # AIX install.  It has an incompatible calling convention.
2783	    :
2784	  elif test $ac_prog = install &&
2785	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2786	    # program-specific install script used by HP pwplus--don't use.
2787	    :
2788	  else
2789	    rm -rf conftest.one conftest.two conftest.dir
2790	    echo one > conftest.one
2791	    echo two > conftest.two
2792	    mkdir conftest.dir
2793	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2794	      test -s conftest.one && test -s conftest.two &&
2795	      test -s conftest.dir/conftest.one &&
2796	      test -s conftest.dir/conftest.two
2797	    then
2798	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2799	      break 3
2800	    fi
2801	  fi
2802	fi
2803      done
2804    done
2805    ;;
2806esac
2807
2808  done
2809IFS=$as_save_IFS
2810
2811rm -rf conftest.one conftest.two conftest.dir
2812
2813fi
2814  if test "${ac_cv_path_install+set}" = set; then
2815    INSTALL=$ac_cv_path_install
2816  else
2817    # As a last resort, use the slow shell script.  Don't cache a
2818    # value for INSTALL within a source directory, because that will
2819    # break other packages using the cache if that directory is
2820    # removed, or if the value is a relative name.
2821    INSTALL=$ac_install_sh
2822  fi
2823fi
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2825$as_echo "$INSTALL" >&6; }
2826
2827# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2828# It thinks the first close brace ends the variable substitution.
2829test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2830
2831test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2832
2833test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2834
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2836$as_echo_n "checking whether build environment is sane... " >&6; }
2837# Reject unsafe characters in $srcdir or the absolute working directory
2838# name.  Accept space and tab only in the latter.
2839am_lf='
2840'
2841case `pwd` in
2842  *[\\\"\#\$\&\'\`$am_lf]*)
2843    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2844esac
2845case $srcdir in
2846  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2847    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2848esac
2849
2850# Do 'set' in a subshell so we don't clobber the current shell's
2851# arguments.  Must try -L first in case configure is actually a
2852# symlink; some systems play weird games with the mod time of symlinks
2853# (eg FreeBSD returns the mod time of the symlink's containing
2854# directory).
2855if (
2856   am_has_slept=no
2857   for am_try in 1 2; do
2858     echo "timestamp, slept: $am_has_slept" > conftest.file
2859     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2860     if test "$*" = "X"; then
2861	# -L didn't work.
2862	set X `ls -t "$srcdir/configure" conftest.file`
2863     fi
2864     if test "$*" != "X $srcdir/configure conftest.file" \
2865	&& test "$*" != "X conftest.file $srcdir/configure"; then
2866
2867	# If neither matched, then we have a broken ls.  This can happen
2868	# if, for instance, CONFIG_SHELL is bash and it inherits a
2869	# broken ls alias from the environment.  This has actually
2870	# happened.  Such a system could not be considered "sane".
2871	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2872  alias in your environment" "$LINENO" 5
2873     fi
2874     if test "$2" = conftest.file || test $am_try -eq 2; then
2875       break
2876     fi
2877     # Just in case.
2878     sleep 1
2879     am_has_slept=yes
2880   done
2881   test "$2" = conftest.file
2882   )
2883then
2884   # Ok.
2885   :
2886else
2887   as_fn_error $? "newly created file is older than distributed files!
2888Check your system clock" "$LINENO" 5
2889fi
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891$as_echo "yes" >&6; }
2892# If we didn't sleep, we still need to ensure time stamps of config.status and
2893# generated files are strictly newer.
2894am_sleep_pid=
2895if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2896  ( sleep 1 ) &
2897  am_sleep_pid=$!
2898fi
2899
2900rm -f conftest.file
2901
2902test "$program_prefix" != NONE &&
2903  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2904# Use a double $ so make ignores it.
2905test "$program_suffix" != NONE &&
2906  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2907# Double any \ or $.
2908# By default was `s,x,x', remove it if useless.
2909ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2910program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2911
2912# Expand $ac_aux_dir to an absolute path.
2913am_aux_dir=`cd "$ac_aux_dir" && pwd`
2914
2915if test x"${MISSING+set}" != xset; then
2916  case $am_aux_dir in
2917  *\ * | *\	*)
2918    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2919  *)
2920    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2921  esac
2922fi
2923# Use eval to expand $SHELL
2924if eval "$MISSING --is-lightweight"; then
2925  am_missing_run="$MISSING "
2926else
2927  am_missing_run=
2928  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2929$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2930fi
2931
2932if test x"${install_sh+set}" != xset; then
2933  case $am_aux_dir in
2934  *\ * | *\	*)
2935    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2936  *)
2937    install_sh="\${SHELL} $am_aux_dir/install-sh"
2938  esac
2939fi
2940
2941# Installed binaries are usually stripped using 'strip' when the user
2942# run "make install-strip".  However 'strip' might not be the right
2943# tool to use in cross-compilation environments, therefore Automake
2944# will honor the 'STRIP' environment variable to overrule this program.
2945if test "$cross_compiling" != no; then
2946  if test -n "$ac_tool_prefix"; then
2947  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2948set dummy ${ac_tool_prefix}strip; ac_word=$2
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950$as_echo_n "checking for $ac_word... " >&6; }
2951if ${ac_cv_prog_STRIP+:} false; then :
2952  $as_echo_n "(cached) " >&6
2953else
2954  if test -n "$STRIP"; then
2955  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2956else
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960  IFS=$as_save_IFS
2961  test -z "$as_dir" && as_dir=.
2962    for ac_exec_ext in '' $ac_executable_extensions; do
2963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966    break 2
2967  fi
2968done
2969  done
2970IFS=$as_save_IFS
2971
2972fi
2973fi
2974STRIP=$ac_cv_prog_STRIP
2975if test -n "$STRIP"; then
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2977$as_echo "$STRIP" >&6; }
2978else
2979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980$as_echo "no" >&6; }
2981fi
2982
2983
2984fi
2985if test -z "$ac_cv_prog_STRIP"; then
2986  ac_ct_STRIP=$STRIP
2987  # Extract the first word of "strip", so it can be a program name with args.
2988set dummy strip; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990$as_echo_n "checking for $ac_word... " >&6; }
2991if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2992  $as_echo_n "(cached) " >&6
2993else
2994  if test -n "$ac_ct_STRIP"; then
2995  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000  IFS=$as_save_IFS
3001  test -z "$as_dir" && as_dir=.
3002    for ac_exec_ext in '' $ac_executable_extensions; do
3003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004    ac_cv_prog_ac_ct_STRIP="strip"
3005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009  done
3010IFS=$as_save_IFS
3011
3012fi
3013fi
3014ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3015if test -n "$ac_ct_STRIP"; then
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3017$as_echo "$ac_ct_STRIP" >&6; }
3018else
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
3021fi
3022
3023  if test "x$ac_ct_STRIP" = x; then
3024    STRIP=":"
3025  else
3026    case $cross_compiling:$ac_tool_warned in
3027yes:)
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030ac_tool_warned=yes ;;
3031esac
3032    STRIP=$ac_ct_STRIP
3033  fi
3034else
3035  STRIP="$ac_cv_prog_STRIP"
3036fi
3037
3038fi
3039INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3040
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3042$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3043if test -z "$MKDIR_P"; then
3044  if ${ac_cv_path_mkdir+:} false; then :
3045  $as_echo_n "(cached) " >&6
3046else
3047  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3049do
3050  IFS=$as_save_IFS
3051  test -z "$as_dir" && as_dir=.
3052    for ac_prog in mkdir gmkdir; do
3053	 for ac_exec_ext in '' $ac_executable_extensions; do
3054	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3055	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3056	     'mkdir (GNU coreutils) '* | \
3057	     'mkdir (coreutils) '* | \
3058	     'mkdir (fileutils) '4.1*)
3059	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3060	       break 3;;
3061	   esac
3062	 done
3063       done
3064  done
3065IFS=$as_save_IFS
3066
3067fi
3068
3069  test -d ./--version && rmdir ./--version
3070  if test "${ac_cv_path_mkdir+set}" = set; then
3071    MKDIR_P="$ac_cv_path_mkdir -p"
3072  else
3073    # As a last resort, use the slow shell script.  Don't cache a
3074    # value for MKDIR_P within a source directory, because that will
3075    # break other packages using the cache if that directory is
3076    # removed, or if the value is a relative name.
3077    MKDIR_P="$ac_install_sh -d"
3078  fi
3079fi
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3081$as_echo "$MKDIR_P" >&6; }
3082
3083for ac_prog in gawk mawk nawk awk
3084do
3085  # Extract the first word of "$ac_prog", so it can be a program name with args.
3086set dummy $ac_prog; ac_word=$2
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
3089if ${ac_cv_prog_AWK+:} false; then :
3090  $as_echo_n "(cached) " >&6
3091else
3092  if test -n "$AWK"; then
3093  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098  IFS=$as_save_IFS
3099  test -z "$as_dir" && as_dir=.
3100    for ac_exec_ext in '' $ac_executable_extensions; do
3101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102    ac_cv_prog_AWK="$ac_prog"
3103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104    break 2
3105  fi
3106done
3107  done
3108IFS=$as_save_IFS
3109
3110fi
3111fi
3112AWK=$ac_cv_prog_AWK
3113if test -n "$AWK"; then
3114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3115$as_echo "$AWK" >&6; }
3116else
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
3119fi
3120
3121
3122  test -n "$AWK" && break
3123done
3124
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3126$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3127set x ${MAKE-make}
3128ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3129if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3130  $as_echo_n "(cached) " >&6
3131else
3132  cat >conftest.make <<\_ACEOF
3133SHELL = /bin/sh
3134all:
3135	@echo '@@@%%%=$(MAKE)=@@@%%%'
3136_ACEOF
3137# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3138case `${MAKE-make} -f conftest.make 2>/dev/null` in
3139  *@@@%%%=?*=@@@%%%*)
3140    eval ac_cv_prog_make_${ac_make}_set=yes;;
3141  *)
3142    eval ac_cv_prog_make_${ac_make}_set=no;;
3143esac
3144rm -f conftest.make
3145fi
3146if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3148$as_echo "yes" >&6; }
3149  SET_MAKE=
3150else
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152$as_echo "no" >&6; }
3153  SET_MAKE="MAKE=${MAKE-make}"
3154fi
3155
3156rm -rf .tst 2>/dev/null
3157mkdir .tst 2>/dev/null
3158if test -d .tst; then
3159  am__leading_dot=.
3160else
3161  am__leading_dot=_
3162fi
3163rmdir .tst 2>/dev/null
3164
3165# Check whether --enable-silent-rules was given.
3166if test "${enable_silent_rules+set}" = set; then :
3167  enableval=$enable_silent_rules;
3168fi
3169
3170case $enable_silent_rules in # (((
3171  yes) AM_DEFAULT_VERBOSITY=0;;
3172   no) AM_DEFAULT_VERBOSITY=1;;
3173    *) AM_DEFAULT_VERBOSITY=1;;
3174esac
3175am_make=${MAKE-make}
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3177$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3178if ${am_cv_make_support_nested_variables+:} false; then :
3179  $as_echo_n "(cached) " >&6
3180else
3181  if $as_echo 'TRUE=$(BAR$(V))
3182BAR0=false
3183BAR1=true
3184V=1
3185am__doit:
3186	@$(TRUE)
3187.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3188  am_cv_make_support_nested_variables=yes
3189else
3190  am_cv_make_support_nested_variables=no
3191fi
3192fi
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3194$as_echo "$am_cv_make_support_nested_variables" >&6; }
3195if test $am_cv_make_support_nested_variables = yes; then
3196    AM_V='$(V)'
3197  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3198else
3199  AM_V=$AM_DEFAULT_VERBOSITY
3200  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3201fi
3202AM_BACKSLASH='\'
3203
3204if test "`cd $srcdir && pwd`" != "`pwd`"; then
3205  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3206  # is not polluted with repeated "-I."
3207  am__isrc=' -I$(srcdir)'
3208  # test to see if srcdir already configured
3209  if test -f $srcdir/config.status; then
3210    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3211  fi
3212fi
3213
3214# test whether we have cygpath
3215if test -z "$CYGPATH_W"; then
3216  if (cygpath --version) >/dev/null 2>/dev/null; then
3217    CYGPATH_W='cygpath -w'
3218  else
3219    CYGPATH_W=echo
3220  fi
3221fi
3222
3223
3224# Define the identity of the package.
3225 PACKAGE='fontconfig'
3226 VERSION='2.12.4'
3227
3228
3229cat >>confdefs.h <<_ACEOF
3230#define PACKAGE "$PACKAGE"
3231_ACEOF
3232
3233
3234cat >>confdefs.h <<_ACEOF
3235#define VERSION "$VERSION"
3236_ACEOF
3237
3238# Some tools Automake needs.
3239
3240ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3241
3242
3243AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3244
3245
3246AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3247
3248
3249AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3250
3251
3252MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3253
3254# For better backward compatibility.  To be removed once Automake 1.9.x
3255# dies out for good.  For more background, see:
3256# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3257# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3258mkdir_p='$(MKDIR_P)'
3259
3260# We need awk for the "check" target (and possibly the TAP driver).  The
3261# system "awk" is bad on some platforms.
3262# Always define AMTAR for backward compatibility.  Yes, it's still used
3263# in the wild :-(  We should find a proper way to deprecate it ...
3264AMTAR='$${TAR-tar}'
3265
3266
3267# We'll loop over all known methods to create a tar archive until one works.
3268_am_tools='gnutar  pax cpio none'
3269
3270am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3271
3272
3273
3274
3275
3276
3277# POSIX will say in a future version that running "rm -f" with no argument
3278# is OK; and we want to be able to make that assumption in our Makefile
3279# recipes.  So use an aggressive probe to check that the usage we want is
3280# actually supported "in the wild" to an acceptable degree.
3281# See automake bug#10828.
3282# To make any issue more visible, cause the running configure to be aborted
3283# by default if the 'rm' program in use doesn't match our expectations; the
3284# user can still override this though.
3285if rm -f && rm -fr && rm -rf; then : OK; else
3286  cat >&2 <<'END'
3287Oops!
3288
3289Your 'rm' program seems unable to run without file operands specified
3290on the command line, even when the '-f' option is present.  This is contrary
3291to the behaviour of most rm programs out there, and not conforming with
3292the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3293
3294Please tell bug-automake@gnu.org about your system, including the value
3295of your $PATH and any error possibly output before this message.  This
3296can help us improve future automake versions.
3297
3298END
3299  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3300    echo 'Configuration will proceed anyway, since you have set the' >&2
3301    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3302    echo >&2
3303  else
3304    cat >&2 <<'END'
3305Aborting the configuration process, to ensure you take notice of the issue.
3306
3307You can download and install GNU coreutils to get an 'rm' implementation
3308that behaves properly: <http://www.gnu.org/software/coreutils/>.
3309
3310If you want to complete the configuration process using your problematic
3311'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3312to "yes", and re-run configure.
3313
3314END
3315    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3316  fi
3317fi
3318
3319# Check whether --enable-silent-rules was given.
3320if test "${enable_silent_rules+set}" = set; then :
3321  enableval=$enable_silent_rules;
3322fi
3323
3324case $enable_silent_rules in # (((
3325  yes) AM_DEFAULT_VERBOSITY=0;;
3326   no) AM_DEFAULT_VERBOSITY=1;;
3327    *) AM_DEFAULT_VERBOSITY=0;;
3328esac
3329am_make=${MAKE-make}
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3331$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3332if ${am_cv_make_support_nested_variables+:} false; then :
3333  $as_echo_n "(cached) " >&6
3334else
3335  if $as_echo 'TRUE=$(BAR$(V))
3336BAR0=false
3337BAR1=true
3338V=1
3339am__doit:
3340	@$(TRUE)
3341.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3342  am_cv_make_support_nested_variables=yes
3343else
3344  am_cv_make_support_nested_variables=no
3345fi
3346fi
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3348$as_echo "$am_cv_make_support_nested_variables" >&6; }
3349if test $am_cv_make_support_nested_variables = yes; then
3350    AM_V='$(V)'
3351  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3352else
3353  AM_V=$AM_DEFAULT_VERBOSITY
3354  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3355fi
3356AM_BACKSLASH='\'
3357
3358
3359
3360ac_config_headers="$ac_config_headers config.h"
3361
3362
3363
3364ac_ext=c
3365ac_cpp='$CPP $CPPFLAGS'
3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369if test -n "$ac_tool_prefix"; then
3370  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3371set dummy ${ac_tool_prefix}gcc; ac_word=$2
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
3374if ${ac_cv_prog_CC+:} false; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  if test -n "$CC"; then
3378  ac_cv_prog_CC="$CC" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385    for ac_exec_ext in '' $ac_executable_extensions; do
3386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392  done
3393IFS=$as_save_IFS
3394
3395fi
3396fi
3397CC=$ac_cv_prog_CC
3398if test -n "$CC"; then
3399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400$as_echo "$CC" >&6; }
3401else
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404fi
3405
3406
3407fi
3408if test -z "$ac_cv_prog_CC"; then
3409  ac_ct_CC=$CC
3410  # Extract the first word of "gcc", so it can be a program name with args.
3411set dummy gcc; ac_word=$2
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413$as_echo_n "checking for $ac_word... " >&6; }
3414if ${ac_cv_prog_ac_ct_CC+:} false; then :
3415  $as_echo_n "(cached) " >&6
3416else
3417  if test -n "$ac_ct_CC"; then
3418  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3419else
3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH
3422do
3423  IFS=$as_save_IFS
3424  test -z "$as_dir" && as_dir=.
3425    for ac_exec_ext in '' $ac_executable_extensions; do
3426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427    ac_cv_prog_ac_ct_CC="gcc"
3428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429    break 2
3430  fi
3431done
3432  done
3433IFS=$as_save_IFS
3434
3435fi
3436fi
3437ac_ct_CC=$ac_cv_prog_ac_ct_CC
3438if test -n "$ac_ct_CC"; then
3439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3440$as_echo "$ac_ct_CC" >&6; }
3441else
3442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443$as_echo "no" >&6; }
3444fi
3445
3446  if test "x$ac_ct_CC" = x; then
3447    CC=""
3448  else
3449    case $cross_compiling:$ac_tool_warned in
3450yes:)
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453ac_tool_warned=yes ;;
3454esac
3455    CC=$ac_ct_CC
3456  fi
3457else
3458  CC="$ac_cv_prog_CC"
3459fi
3460
3461if test -z "$CC"; then
3462          if test -n "$ac_tool_prefix"; then
3463    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3464set dummy ${ac_tool_prefix}cc; ac_word=$2
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466$as_echo_n "checking for $ac_word... " >&6; }
3467if ${ac_cv_prog_CC+:} false; then :
3468  $as_echo_n "(cached) " >&6
3469else
3470  if test -n "$CC"; then
3471  ac_cv_prog_CC="$CC" # Let the user override the test.
3472else
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476  IFS=$as_save_IFS
3477  test -z "$as_dir" && as_dir=.
3478    for ac_exec_ext in '' $ac_executable_extensions; do
3479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480    ac_cv_prog_CC="${ac_tool_prefix}cc"
3481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482    break 2
3483  fi
3484done
3485  done
3486IFS=$as_save_IFS
3487
3488fi
3489fi
3490CC=$ac_cv_prog_CC
3491if test -n "$CC"; then
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493$as_echo "$CC" >&6; }
3494else
3495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496$as_echo "no" >&6; }
3497fi
3498
3499
3500  fi
3501fi
3502if test -z "$CC"; then
3503  # Extract the first word of "cc", so it can be a program name with args.
3504set dummy cc; ac_word=$2
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506$as_echo_n "checking for $ac_word... " >&6; }
3507if ${ac_cv_prog_CC+:} false; then :
3508  $as_echo_n "(cached) " >&6
3509else
3510  if test -n "$CC"; then
3511  ac_cv_prog_CC="$CC" # Let the user override the test.
3512else
3513  ac_prog_rejected=no
3514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515for as_dir in $PATH
3516do
3517  IFS=$as_save_IFS
3518  test -z "$as_dir" && as_dir=.
3519    for ac_exec_ext in '' $ac_executable_extensions; do
3520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3521    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3522       ac_prog_rejected=yes
3523       continue
3524     fi
3525    ac_cv_prog_CC="cc"
3526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527    break 2
3528  fi
3529done
3530  done
3531IFS=$as_save_IFS
3532
3533if test $ac_prog_rejected = yes; then
3534  # We found a bogon in the path, so make sure we never use it.
3535  set dummy $ac_cv_prog_CC
3536  shift
3537  if test $# != 0; then
3538    # We chose a different compiler from the bogus one.
3539    # However, it has the same basename, so the bogon will be chosen
3540    # first if we set CC to just the basename; use the full file name.
3541    shift
3542    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3543  fi
3544fi
3545fi
3546fi
3547CC=$ac_cv_prog_CC
3548if test -n "$CC"; then
3549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550$as_echo "$CC" >&6; }
3551else
3552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553$as_echo "no" >&6; }
3554fi
3555
3556
3557fi
3558if test -z "$CC"; then
3559  if test -n "$ac_tool_prefix"; then
3560  for ac_prog in cl.exe
3561  do
3562    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565$as_echo_n "checking for $ac_word... " >&6; }
3566if ${ac_cv_prog_CC+:} false; then :
3567  $as_echo_n "(cached) " >&6
3568else
3569  if test -n "$CC"; then
3570  ac_cv_prog_CC="$CC" # Let the user override the test.
3571else
3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH
3574do
3575  IFS=$as_save_IFS
3576  test -z "$as_dir" && as_dir=.
3577    for ac_exec_ext in '' $ac_executable_extensions; do
3578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581    break 2
3582  fi
3583done
3584  done
3585IFS=$as_save_IFS
3586
3587fi
3588fi
3589CC=$ac_cv_prog_CC
3590if test -n "$CC"; then
3591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592$as_echo "$CC" >&6; }
3593else
3594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595$as_echo "no" >&6; }
3596fi
3597
3598
3599    test -n "$CC" && break
3600  done
3601fi
3602if test -z "$CC"; then
3603  ac_ct_CC=$CC
3604  for ac_prog in cl.exe
3605do
3606  # Extract the first word of "$ac_prog", so it can be a program name with args.
3607set dummy $ac_prog; ac_word=$2
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609$as_echo_n "checking for $ac_word... " >&6; }
3610if ${ac_cv_prog_ac_ct_CC+:} false; then :
3611  $as_echo_n "(cached) " >&6
3612else
3613  if test -n "$ac_ct_CC"; then
3614  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3615else
3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617for as_dir in $PATH
3618do
3619  IFS=$as_save_IFS
3620  test -z "$as_dir" && as_dir=.
3621    for ac_exec_ext in '' $ac_executable_extensions; do
3622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623    ac_cv_prog_ac_ct_CC="$ac_prog"
3624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625    break 2
3626  fi
3627done
3628  done
3629IFS=$as_save_IFS
3630
3631fi
3632fi
3633ac_ct_CC=$ac_cv_prog_ac_ct_CC
3634if test -n "$ac_ct_CC"; then
3635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3636$as_echo "$ac_ct_CC" >&6; }
3637else
3638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639$as_echo "no" >&6; }
3640fi
3641
3642
3643  test -n "$ac_ct_CC" && break
3644done
3645
3646  if test "x$ac_ct_CC" = x; then
3647    CC=""
3648  else
3649    case $cross_compiling:$ac_tool_warned in
3650yes:)
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3653ac_tool_warned=yes ;;
3654esac
3655    CC=$ac_ct_CC
3656  fi
3657fi
3658
3659fi
3660
3661
3662test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664as_fn_error $? "no acceptable C compiler found in \$PATH
3665See \`config.log' for more details" "$LINENO" 5; }
3666
3667# Provide some information about the compiler.
3668$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3669set X $ac_compile
3670ac_compiler=$2
3671for ac_option in --version -v -V -qversion; do
3672  { { ac_try="$ac_compiler $ac_option >&5"
3673case "(($ac_try" in
3674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675  *) ac_try_echo=$ac_try;;
3676esac
3677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678$as_echo "$ac_try_echo"; } >&5
3679  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3680  ac_status=$?
3681  if test -s conftest.err; then
3682    sed '10a\
3683... rest of stderr output deleted ...
3684         10q' conftest.err >conftest.er1
3685    cat conftest.er1 >&5
3686  fi
3687  rm -f conftest.er1 conftest.err
3688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689  test $ac_status = 0; }
3690done
3691
3692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693/* end confdefs.h.  */
3694
3695int
3696main ()
3697{
3698
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703ac_clean_files_save=$ac_clean_files
3704ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3705# Try to create an executable without -o first, disregard a.out.
3706# It will help us diagnose broken compilers, and finding out an intuition
3707# of exeext.
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3709$as_echo_n "checking whether the C compiler works... " >&6; }
3710ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3711
3712# The possible output files:
3713ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3714
3715ac_rmfiles=
3716for ac_file in $ac_files
3717do
3718  case $ac_file in
3719    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3720    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3721  esac
3722done
3723rm -f $ac_rmfiles
3724
3725if { { ac_try="$ac_link_default"
3726case "(($ac_try" in
3727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728  *) ac_try_echo=$ac_try;;
3729esac
3730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731$as_echo "$ac_try_echo"; } >&5
3732  (eval "$ac_link_default") 2>&5
3733  ac_status=$?
3734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735  test $ac_status = 0; }; then :
3736  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3737# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3738# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3739# so that the user can short-circuit this test for compilers unknown to
3740# Autoconf.
3741for ac_file in $ac_files ''
3742do
3743  test -f "$ac_file" || continue
3744  case $ac_file in
3745    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3746	;;
3747    [ab].out )
3748	# We found the default executable, but exeext='' is most
3749	# certainly right.
3750	break;;
3751    *.* )
3752	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3753	then :; else
3754	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3755	fi
3756	# We set ac_cv_exeext here because the later test for it is not
3757	# safe: cross compilers may not add the suffix if given an `-o'
3758	# argument, so we may need to know it at that point already.
3759	# Even if this section looks crufty: it has the advantage of
3760	# actually working.
3761	break;;
3762    * )
3763	break;;
3764  esac
3765done
3766test "$ac_cv_exeext" = no && ac_cv_exeext=
3767
3768else
3769  ac_file=''
3770fi
3771if test -z "$ac_file"; then :
3772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773$as_echo "no" >&6; }
3774$as_echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779as_fn_error 77 "C compiler cannot create executables
3780See \`config.log' for more details" "$LINENO" 5; }
3781else
3782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3783$as_echo "yes" >&6; }
3784fi
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3786$as_echo_n "checking for C compiler default output file name... " >&6; }
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3788$as_echo "$ac_file" >&6; }
3789ac_exeext=$ac_cv_exeext
3790
3791rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3792ac_clean_files=$ac_clean_files_save
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3794$as_echo_n "checking for suffix of executables... " >&6; }
3795if { { ac_try="$ac_link"
3796case "(($ac_try" in
3797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798  *) ac_try_echo=$ac_try;;
3799esac
3800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801$as_echo "$ac_try_echo"; } >&5
3802  (eval "$ac_link") 2>&5
3803  ac_status=$?
3804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805  test $ac_status = 0; }; then :
3806  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3807# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3808# work properly (i.e., refer to `conftest.exe'), while it won't with
3809# `rm'.
3810for ac_file in conftest.exe conftest conftest.*; do
3811  test -f "$ac_file" || continue
3812  case $ac_file in
3813    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3814    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3815	  break;;
3816    * ) break;;
3817  esac
3818done
3819else
3820  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3823See \`config.log' for more details" "$LINENO" 5; }
3824fi
3825rm -f conftest conftest$ac_cv_exeext
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3827$as_echo "$ac_cv_exeext" >&6; }
3828
3829rm -f conftest.$ac_ext
3830EXEEXT=$ac_cv_exeext
3831ac_exeext=$EXEEXT
3832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h.  */
3834#include <stdio.h>
3835int
3836main ()
3837{
3838FILE *f = fopen ("conftest.out", "w");
3839 return ferror (f) || fclose (f) != 0;
3840
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845ac_clean_files="$ac_clean_files conftest.out"
3846# Check that the compiler produces executables we can run.  If not, either
3847# the compiler is broken, or we cross compile.
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3849$as_echo_n "checking whether we are cross compiling... " >&6; }
3850if test "$cross_compiling" != yes; then
3851  { { ac_try="$ac_link"
3852case "(($ac_try" in
3853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854  *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857$as_echo "$ac_try_echo"; } >&5
3858  (eval "$ac_link") 2>&5
3859  ac_status=$?
3860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861  test $ac_status = 0; }
3862  if { ac_try='./conftest$ac_cv_exeext'
3863  { { case "(($ac_try" in
3864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865  *) ac_try_echo=$ac_try;;
3866esac
3867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868$as_echo "$ac_try_echo"; } >&5
3869  (eval "$ac_try") 2>&5
3870  ac_status=$?
3871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872  test $ac_status = 0; }; }; then
3873    cross_compiling=no
3874  else
3875    if test "$cross_compiling" = maybe; then
3876	cross_compiling=yes
3877    else
3878	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880as_fn_error $? "cannot run C compiled programs.
3881If you meant to cross compile, use \`--host'.
3882See \`config.log' for more details" "$LINENO" 5; }
3883    fi
3884  fi
3885fi
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3887$as_echo "$cross_compiling" >&6; }
3888
3889rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3890ac_clean_files=$ac_clean_files_save
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3892$as_echo_n "checking for suffix of object files... " >&6; }
3893if ${ac_cv_objext+:} false; then :
3894  $as_echo_n "(cached) " >&6
3895else
3896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h.  */
3898
3899int
3900main ()
3901{
3902
3903  ;
3904  return 0;
3905}
3906_ACEOF
3907rm -f conftest.o conftest.obj
3908if { { ac_try="$ac_compile"
3909case "(($ac_try" in
3910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911  *) ac_try_echo=$ac_try;;
3912esac
3913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914$as_echo "$ac_try_echo"; } >&5
3915  (eval "$ac_compile") 2>&5
3916  ac_status=$?
3917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918  test $ac_status = 0; }; then :
3919  for ac_file in conftest.o conftest.obj conftest.*; do
3920  test -f "$ac_file" || continue;
3921  case $ac_file in
3922    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3923    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3924       break;;
3925  esac
3926done
3927else
3928  $as_echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933as_fn_error $? "cannot compute suffix of object files: cannot compile
3934See \`config.log' for more details" "$LINENO" 5; }
3935fi
3936rm -f conftest.$ac_cv_objext conftest.$ac_ext
3937fi
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3939$as_echo "$ac_cv_objext" >&6; }
3940OBJEXT=$ac_cv_objext
3941ac_objext=$OBJEXT
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3943$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3944if ${ac_cv_c_compiler_gnu+:} false; then :
3945  $as_echo_n "(cached) " >&6
3946else
3947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948/* end confdefs.h.  */
3949
3950int
3951main ()
3952{
3953#ifndef __GNUC__
3954       choke me
3955#endif
3956
3957  ;
3958  return 0;
3959}
3960_ACEOF
3961if ac_fn_c_try_compile "$LINENO"; then :
3962  ac_compiler_gnu=yes
3963else
3964  ac_compiler_gnu=no
3965fi
3966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967ac_cv_c_compiler_gnu=$ac_compiler_gnu
3968
3969fi
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3971$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3972if test $ac_compiler_gnu = yes; then
3973  GCC=yes
3974else
3975  GCC=
3976fi
3977ac_test_CFLAGS=${CFLAGS+set}
3978ac_save_CFLAGS=$CFLAGS
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3980$as_echo_n "checking whether $CC accepts -g... " >&6; }
3981if ${ac_cv_prog_cc_g+:} false; then :
3982  $as_echo_n "(cached) " >&6
3983else
3984  ac_save_c_werror_flag=$ac_c_werror_flag
3985   ac_c_werror_flag=yes
3986   ac_cv_prog_cc_g=no
3987   CFLAGS="-g"
3988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989/* end confdefs.h.  */
3990
3991int
3992main ()
3993{
3994
3995  ;
3996  return 0;
3997}
3998_ACEOF
3999if ac_fn_c_try_compile "$LINENO"; then :
4000  ac_cv_prog_cc_g=yes
4001else
4002  CFLAGS=""
4003      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h.  */
4005
4006int
4007main ()
4008{
4009
4010  ;
4011  return 0;
4012}
4013_ACEOF
4014if ac_fn_c_try_compile "$LINENO"; then :
4015
4016else
4017  ac_c_werror_flag=$ac_save_c_werror_flag
4018	 CFLAGS="-g"
4019	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020/* end confdefs.h.  */
4021
4022int
4023main ()
4024{
4025
4026  ;
4027  return 0;
4028}
4029_ACEOF
4030if ac_fn_c_try_compile "$LINENO"; then :
4031  ac_cv_prog_cc_g=yes
4032fi
4033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034fi
4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036fi
4037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038   ac_c_werror_flag=$ac_save_c_werror_flag
4039fi
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4041$as_echo "$ac_cv_prog_cc_g" >&6; }
4042if test "$ac_test_CFLAGS" = set; then
4043  CFLAGS=$ac_save_CFLAGS
4044elif test $ac_cv_prog_cc_g = yes; then
4045  if test "$GCC" = yes; then
4046    CFLAGS="-g -O2"
4047  else
4048    CFLAGS="-g"
4049  fi
4050else
4051  if test "$GCC" = yes; then
4052    CFLAGS="-O2"
4053  else
4054    CFLAGS=
4055  fi
4056fi
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4058$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4059if ${ac_cv_prog_cc_c89+:} false; then :
4060  $as_echo_n "(cached) " >&6
4061else
4062  ac_cv_prog_cc_c89=no
4063ac_save_CC=$CC
4064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065/* end confdefs.h.  */
4066#include <stdarg.h>
4067#include <stdio.h>
4068struct stat;
4069/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4070struct buf { int x; };
4071FILE * (*rcsopen) (struct buf *, struct stat *, int);
4072static char *e (p, i)
4073     char **p;
4074     int i;
4075{
4076  return p[i];
4077}
4078static char *f (char * (*g) (char **, int), char **p, ...)
4079{
4080  char *s;
4081  va_list v;
4082  va_start (v,p);
4083  s = g (p, va_arg (v,int));
4084  va_end (v);
4085  return s;
4086}
4087
4088/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4089   function prototypes and stuff, but not '\xHH' hex character constants.
4090   These don't provoke an error unfortunately, instead are silently treated
4091   as 'x'.  The following induces an error, until -std is added to get
4092   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4093   array size at least.  It's necessary to write '\x00'==0 to get something
4094   that's true only with -std.  */
4095int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4096
4097/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4098   inside strings and character constants.  */
4099#define FOO(x) 'x'
4100int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4101
4102int test (int i, double x);
4103struct s1 {int (*f) (int a);};
4104struct s2 {int (*f) (double a);};
4105int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4106int argc;
4107char **argv;
4108int
4109main ()
4110{
4111return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4112  ;
4113  return 0;
4114}
4115_ACEOF
4116for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4117	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4118do
4119  CC="$ac_save_CC $ac_arg"
4120  if ac_fn_c_try_compile "$LINENO"; then :
4121  ac_cv_prog_cc_c89=$ac_arg
4122fi
4123rm -f core conftest.err conftest.$ac_objext
4124  test "x$ac_cv_prog_cc_c89" != "xno" && break
4125done
4126rm -f conftest.$ac_ext
4127CC=$ac_save_CC
4128
4129fi
4130# AC_CACHE_VAL
4131case "x$ac_cv_prog_cc_c89" in
4132  x)
4133    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4134$as_echo "none needed" >&6; } ;;
4135  xno)
4136    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4137$as_echo "unsupported" >&6; } ;;
4138  *)
4139    CC="$CC $ac_cv_prog_cc_c89"
4140    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4141$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4142esac
4143if test "x$ac_cv_prog_cc_c89" != xno; then :
4144
4145fi
4146
4147ac_ext=c
4148ac_cpp='$CPP $CPPFLAGS'
4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152
4153ac_ext=c
4154ac_cpp='$CPP $CPPFLAGS'
4155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4159$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4160if ${am_cv_prog_cc_c_o+:} false; then :
4161  $as_echo_n "(cached) " >&6
4162else
4163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h.  */
4165
4166int
4167main ()
4168{
4169
4170  ;
4171  return 0;
4172}
4173_ACEOF
4174  # Make sure it works both with $CC and with simple cc.
4175  # Following AC_PROG_CC_C_O, we do the test twice because some
4176  # compilers refuse to overwrite an existing .o file with -o,
4177  # though they will create one.
4178  am_cv_prog_cc_c_o=yes
4179  for am_i in 1 2; do
4180    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4181   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4182   ac_status=$?
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); } \
4185         && test -f conftest2.$ac_objext; then
4186      : OK
4187    else
4188      am_cv_prog_cc_c_o=no
4189      break
4190    fi
4191  done
4192  rm -f core conftest*
4193  unset am_i
4194fi
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4196$as_echo "$am_cv_prog_cc_c_o" >&6; }
4197if test "$am_cv_prog_cc_c_o" != yes; then
4198   # Losing compiler, so override with the script.
4199   # FIXME: It is wrong to rewrite CC.
4200   # But if we don't then we get into trouble of one sort or another.
4201   # A longer-term fix would be to have automake use am__CC in this case,
4202   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4203   CC="$am_aux_dir/compile $CC"
4204fi
4205ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211DEPDIR="${am__leading_dot}deps"
4212
4213ac_config_commands="$ac_config_commands depfiles"
4214
4215
4216am_make=${MAKE-make}
4217cat > confinc << 'END'
4218am__doit:
4219	@echo this is the am__doit target
4220.PHONY: am__doit
4221END
4222# If we don't find an include directive, just comment out the code.
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4224$as_echo_n "checking for style of include used by $am_make... " >&6; }
4225am__include="#"
4226am__quote=
4227_am_result=none
4228# First try GNU make style include.
4229echo "include confinc" > confmf
4230# Ignore all kinds of additional output from 'make'.
4231case `$am_make -s -f confmf 2> /dev/null` in #(
4232*the\ am__doit\ target*)
4233  am__include=include
4234  am__quote=
4235  _am_result=GNU
4236  ;;
4237esac
4238# Now try BSD make style include.
4239if test "$am__include" = "#"; then
4240   echo '.include "confinc"' > confmf
4241   case `$am_make -s -f confmf 2> /dev/null` in #(
4242   *the\ am__doit\ target*)
4243     am__include=.include
4244     am__quote="\""
4245     _am_result=BSD
4246     ;;
4247   esac
4248fi
4249
4250
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4252$as_echo "$_am_result" >&6; }
4253rm -f confinc confmf
4254
4255# Check whether --enable-dependency-tracking was given.
4256if test "${enable_dependency_tracking+set}" = set; then :
4257  enableval=$enable_dependency_tracking;
4258fi
4259
4260if test "x$enable_dependency_tracking" != xno; then
4261  am_depcomp="$ac_aux_dir/depcomp"
4262  AMDEPBACKSLASH='\'
4263  am__nodep='_no'
4264fi
4265 if test "x$enable_dependency_tracking" != xno; then
4266  AMDEP_TRUE=
4267  AMDEP_FALSE='#'
4268else
4269  AMDEP_TRUE='#'
4270  AMDEP_FALSE=
4271fi
4272
4273
4274
4275depcc="$CC"   am_compiler_list=
4276
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4278$as_echo_n "checking dependency style of $depcc... " >&6; }
4279if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4280  $as_echo_n "(cached) " >&6
4281else
4282  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4283  # We make a subdir and do the tests there.  Otherwise we can end up
4284  # making bogus files that we don't know about and never remove.  For
4285  # instance it was reported that on HP-UX the gcc test will end up
4286  # making a dummy file named 'D' -- because '-MD' means "put the output
4287  # in D".
4288  rm -rf conftest.dir
4289  mkdir conftest.dir
4290  # Copy depcomp to subdir because otherwise we won't find it if we're
4291  # using a relative directory.
4292  cp "$am_depcomp" conftest.dir
4293  cd conftest.dir
4294  # We will build objects and dependencies in a subdirectory because
4295  # it helps to detect inapplicable dependency modes.  For instance
4296  # both Tru64's cc and ICC support -MD to output dependencies as a
4297  # side effect of compilation, but ICC will put the dependencies in
4298  # the current directory while Tru64 will put them in the object
4299  # directory.
4300  mkdir sub
4301
4302  am_cv_CC_dependencies_compiler_type=none
4303  if test "$am_compiler_list" = ""; then
4304     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4305  fi
4306  am__universal=false
4307  case " $depcc " in #(
4308     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4309     esac
4310
4311  for depmode in $am_compiler_list; do
4312    # Setup a source with many dependencies, because some compilers
4313    # like to wrap large dependency lists on column 80 (with \), and
4314    # we should not choose a depcomp mode which is confused by this.
4315    #
4316    # We need to recreate these files for each test, as the compiler may
4317    # overwrite some of them when testing with obscure command lines.
4318    # This happens at least with the AIX C compiler.
4319    : > sub/conftest.c
4320    for i in 1 2 3 4 5 6; do
4321      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4322      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4323      # Solaris 10 /bin/sh.
4324      echo '/* dummy */' > sub/conftst$i.h
4325    done
4326    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4327
4328    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4329    # mode.  It turns out that the SunPro C++ compiler does not properly
4330    # handle '-M -o', and we need to detect this.  Also, some Intel
4331    # versions had trouble with output in subdirs.
4332    am__obj=sub/conftest.${OBJEXT-o}
4333    am__minus_obj="-o $am__obj"
4334    case $depmode in
4335    gcc)
4336      # This depmode causes a compiler race in universal mode.
4337      test "$am__universal" = false || continue
4338      ;;
4339    nosideeffect)
4340      # After this tag, mechanisms are not by side-effect, so they'll
4341      # only be used when explicitly requested.
4342      if test "x$enable_dependency_tracking" = xyes; then
4343	continue
4344      else
4345	break
4346      fi
4347      ;;
4348    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4349      # This compiler won't grok '-c -o', but also, the minuso test has
4350      # not run yet.  These depmodes are late enough in the game, and
4351      # so weak that their functioning should not be impacted.
4352      am__obj=conftest.${OBJEXT-o}
4353      am__minus_obj=
4354      ;;
4355    none) break ;;
4356    esac
4357    if depmode=$depmode \
4358       source=sub/conftest.c object=$am__obj \
4359       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4360       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4361         >/dev/null 2>conftest.err &&
4362       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4363       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4364       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4365       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4366      # icc doesn't choke on unknown options, it will just issue warnings
4367      # or remarks (even with -Werror).  So we grep stderr for any message
4368      # that says an option was ignored or not supported.
4369      # When given -MP, icc 7.0 and 7.1 complain thusly:
4370      #   icc: Command line warning: ignoring option '-M'; no argument required
4371      # The diagnosis changed in icc 8.0:
4372      #   icc: Command line remark: option '-MP' not supported
4373      if (grep 'ignoring option' conftest.err ||
4374          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4375        am_cv_CC_dependencies_compiler_type=$depmode
4376        break
4377      fi
4378    fi
4379  done
4380
4381  cd ..
4382  rm -rf conftest.dir
4383else
4384  am_cv_CC_dependencies_compiler_type=none
4385fi
4386
4387fi
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4389$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4390CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4391
4392 if
4393  test "x$enable_dependency_tracking" != xno \
4394  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4395  am__fastdepCC_TRUE=
4396  am__fastdepCC_FALSE='#'
4397else
4398  am__fastdepCC_TRUE='#'
4399  am__fastdepCC_FALSE=
4400fi
4401
4402
4403
4404ac_ext=c
4405ac_cpp='$CPP $CPPFLAGS'
4406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4410$as_echo_n "checking how to run the C preprocessor... " >&6; }
4411# On Suns, sometimes $CPP names a directory.
4412if test -n "$CPP" && test -d "$CPP"; then
4413  CPP=
4414fi
4415if test -z "$CPP"; then
4416  if ${ac_cv_prog_CPP+:} false; then :
4417  $as_echo_n "(cached) " >&6
4418else
4419      # Double quotes because CPP needs to be expanded
4420    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4421    do
4422      ac_preproc_ok=false
4423for ac_c_preproc_warn_flag in '' yes
4424do
4425  # Use a header file that comes with gcc, so configuring glibc
4426  # with a fresh cross-compiler works.
4427  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428  # <limits.h> exists even on freestanding compilers.
4429  # On the NeXT, cc -E runs the code through the compiler's parser,
4430  # not just through cpp. "Syntax error" is here to catch this case.
4431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h.  */
4433#ifdef __STDC__
4434# include <limits.h>
4435#else
4436# include <assert.h>
4437#endif
4438		     Syntax error
4439_ACEOF
4440if ac_fn_c_try_cpp "$LINENO"; then :
4441
4442else
4443  # Broken: fails on valid input.
4444continue
4445fi
4446rm -f conftest.err conftest.i conftest.$ac_ext
4447
4448  # OK, works on sane cases.  Now check whether nonexistent headers
4449  # can be detected and how.
4450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h.  */
4452#include <ac_nonexistent.h>
4453_ACEOF
4454if ac_fn_c_try_cpp "$LINENO"; then :
4455  # Broken: success on invalid input.
4456continue
4457else
4458  # Passes both tests.
4459ac_preproc_ok=:
4460break
4461fi
4462rm -f conftest.err conftest.i conftest.$ac_ext
4463
4464done
4465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466rm -f conftest.i conftest.err conftest.$ac_ext
4467if $ac_preproc_ok; then :
4468  break
4469fi
4470
4471    done
4472    ac_cv_prog_CPP=$CPP
4473
4474fi
4475  CPP=$ac_cv_prog_CPP
4476else
4477  ac_cv_prog_CPP=$CPP
4478fi
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4480$as_echo "$CPP" >&6; }
4481ac_preproc_ok=false
4482for ac_c_preproc_warn_flag in '' yes
4483do
4484  # Use a header file that comes with gcc, so configuring glibc
4485  # with a fresh cross-compiler works.
4486  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487  # <limits.h> exists even on freestanding compilers.
4488  # On the NeXT, cc -E runs the code through the compiler's parser,
4489  # not just through cpp. "Syntax error" is here to catch this case.
4490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491/* end confdefs.h.  */
4492#ifdef __STDC__
4493# include <limits.h>
4494#else
4495# include <assert.h>
4496#endif
4497		     Syntax error
4498_ACEOF
4499if ac_fn_c_try_cpp "$LINENO"; then :
4500
4501else
4502  # Broken: fails on valid input.
4503continue
4504fi
4505rm -f conftest.err conftest.i conftest.$ac_ext
4506
4507  # OK, works on sane cases.  Now check whether nonexistent headers
4508  # can be detected and how.
4509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h.  */
4511#include <ac_nonexistent.h>
4512_ACEOF
4513if ac_fn_c_try_cpp "$LINENO"; then :
4514  # Broken: success on invalid input.
4515continue
4516else
4517  # Passes both tests.
4518ac_preproc_ok=:
4519break
4520fi
4521rm -f conftest.err conftest.i conftest.$ac_ext
4522
4523done
4524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4525rm -f conftest.i conftest.err conftest.$ac_ext
4526if $ac_preproc_ok; then :
4527
4528else
4529  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4532See \`config.log' for more details" "$LINENO" 5; }
4533fi
4534
4535ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540
4541
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4543$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4544if ${ac_cv_path_GREP+:} false; then :
4545  $as_echo_n "(cached) " >&6
4546else
4547  if test -z "$GREP"; then
4548  ac_path_GREP_found=false
4549  # Loop through the user's path and test for each of PROGNAME-LIST
4550  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552do
4553  IFS=$as_save_IFS
4554  test -z "$as_dir" && as_dir=.
4555    for ac_prog in grep ggrep; do
4556    for ac_exec_ext in '' $ac_executable_extensions; do
4557      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4558      as_fn_executable_p "$ac_path_GREP" || continue
4559# Check for GNU ac_path_GREP and select it if it is found.
4560  # Check for GNU $ac_path_GREP
4561case `"$ac_path_GREP" --version 2>&1` in
4562*GNU*)
4563  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4564*)
4565  ac_count=0
4566  $as_echo_n 0123456789 >"conftest.in"
4567  while :
4568  do
4569    cat "conftest.in" "conftest.in" >"conftest.tmp"
4570    mv "conftest.tmp" "conftest.in"
4571    cp "conftest.in" "conftest.nl"
4572    $as_echo 'GREP' >> "conftest.nl"
4573    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4574    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4575    as_fn_arith $ac_count + 1 && ac_count=$as_val
4576    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4577      # Best one so far, save it but keep looking for a better one
4578      ac_cv_path_GREP="$ac_path_GREP"
4579      ac_path_GREP_max=$ac_count
4580    fi
4581    # 10*(2^10) chars as input seems more than enough
4582    test $ac_count -gt 10 && break
4583  done
4584  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585esac
4586
4587      $ac_path_GREP_found && break 3
4588    done
4589  done
4590  done
4591IFS=$as_save_IFS
4592  if test -z "$ac_cv_path_GREP"; then
4593    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4594  fi
4595else
4596  ac_cv_path_GREP=$GREP
4597fi
4598
4599fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4601$as_echo "$ac_cv_path_GREP" >&6; }
4602 GREP="$ac_cv_path_GREP"
4603
4604
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4606$as_echo_n "checking for egrep... " >&6; }
4607if ${ac_cv_path_EGREP+:} false; then :
4608  $as_echo_n "(cached) " >&6
4609else
4610  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4611   then ac_cv_path_EGREP="$GREP -E"
4612   else
4613     if test -z "$EGREP"; then
4614  ac_path_EGREP_found=false
4615  # Loop through the user's path and test for each of PROGNAME-LIST
4616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618do
4619  IFS=$as_save_IFS
4620  test -z "$as_dir" && as_dir=.
4621    for ac_prog in egrep; do
4622    for ac_exec_ext in '' $ac_executable_extensions; do
4623      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4624      as_fn_executable_p "$ac_path_EGREP" || continue
4625# Check for GNU ac_path_EGREP and select it if it is found.
4626  # Check for GNU $ac_path_EGREP
4627case `"$ac_path_EGREP" --version 2>&1` in
4628*GNU*)
4629  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4630*)
4631  ac_count=0
4632  $as_echo_n 0123456789 >"conftest.in"
4633  while :
4634  do
4635    cat "conftest.in" "conftest.in" >"conftest.tmp"
4636    mv "conftest.tmp" "conftest.in"
4637    cp "conftest.in" "conftest.nl"
4638    $as_echo 'EGREP' >> "conftest.nl"
4639    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641    as_fn_arith $ac_count + 1 && ac_count=$as_val
4642    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4643      # Best one so far, save it but keep looking for a better one
4644      ac_cv_path_EGREP="$ac_path_EGREP"
4645      ac_path_EGREP_max=$ac_count
4646    fi
4647    # 10*(2^10) chars as input seems more than enough
4648    test $ac_count -gt 10 && break
4649  done
4650  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651esac
4652
4653      $ac_path_EGREP_found && break 3
4654    done
4655  done
4656  done
4657IFS=$as_save_IFS
4658  if test -z "$ac_cv_path_EGREP"; then
4659    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660  fi
4661else
4662  ac_cv_path_EGREP=$EGREP
4663fi
4664
4665   fi
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4668$as_echo "$ac_cv_path_EGREP" >&6; }
4669 EGREP="$ac_cv_path_EGREP"
4670
4671
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4673$as_echo_n "checking for ANSI C header files... " >&6; }
4674if ${ac_cv_header_stdc+:} false; then :
4675  $as_echo_n "(cached) " >&6
4676else
4677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678/* end confdefs.h.  */
4679#include <stdlib.h>
4680#include <stdarg.h>
4681#include <string.h>
4682#include <float.h>
4683
4684int
4685main ()
4686{
4687
4688  ;
4689  return 0;
4690}
4691_ACEOF
4692if ac_fn_c_try_compile "$LINENO"; then :
4693  ac_cv_header_stdc=yes
4694else
4695  ac_cv_header_stdc=no
4696fi
4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698
4699if test $ac_cv_header_stdc = yes; then
4700  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702/* end confdefs.h.  */
4703#include <string.h>
4704
4705_ACEOF
4706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4707  $EGREP "memchr" >/dev/null 2>&1; then :
4708
4709else
4710  ac_cv_header_stdc=no
4711fi
4712rm -f conftest*
4713
4714fi
4715
4716if test $ac_cv_header_stdc = yes; then
4717  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719/* end confdefs.h.  */
4720#include <stdlib.h>
4721
4722_ACEOF
4723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724  $EGREP "free" >/dev/null 2>&1; then :
4725
4726else
4727  ac_cv_header_stdc=no
4728fi
4729rm -f conftest*
4730
4731fi
4732
4733if test $ac_cv_header_stdc = yes; then
4734  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4735  if test "$cross_compiling" = yes; then :
4736  :
4737else
4738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740#include <ctype.h>
4741#include <stdlib.h>
4742#if ((' ' & 0x0FF) == 0x020)
4743# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4744# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4745#else
4746# define ISLOWER(c) \
4747		   (('a' <= (c) && (c) <= 'i') \
4748		     || ('j' <= (c) && (c) <= 'r') \
4749		     || ('s' <= (c) && (c) <= 'z'))
4750# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4751#endif
4752
4753#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4754int
4755main ()
4756{
4757  int i;
4758  for (i = 0; i < 256; i++)
4759    if (XOR (islower (i), ISLOWER (i))
4760	|| toupper (i) != TOUPPER (i))
4761      return 2;
4762  return 0;
4763}
4764_ACEOF
4765if ac_fn_c_try_run "$LINENO"; then :
4766
4767else
4768  ac_cv_header_stdc=no
4769fi
4770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4771  conftest.$ac_objext conftest.beam conftest.$ac_ext
4772fi
4773
4774fi
4775fi
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4777$as_echo "$ac_cv_header_stdc" >&6; }
4778if test $ac_cv_header_stdc = yes; then
4779
4780$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4781
4782fi
4783
4784# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4785for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4786		  inttypes.h stdint.h unistd.h
4787do :
4788  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4789ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4790"
4791if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4792  cat >>confdefs.h <<_ACEOF
4793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4794_ACEOF
4795
4796fi
4797
4798done
4799
4800
4801
4802  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4803if test "x$ac_cv_header_minix_config_h" = xyes; then :
4804  MINIX=yes
4805else
4806  MINIX=
4807fi
4808
4809
4810  if test "$MINIX" = yes; then
4811
4812$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4813
4814
4815$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4816
4817
4818$as_echo "#define _MINIX 1" >>confdefs.h
4819
4820  fi
4821
4822
4823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4824$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4825if ${ac_cv_safe_to_define___extensions__+:} false; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829/* end confdefs.h.  */
4830
4831#         define __EXTENSIONS__ 1
4832          $ac_includes_default
4833int
4834main ()
4835{
4836
4837  ;
4838  return 0;
4839}
4840_ACEOF
4841if ac_fn_c_try_compile "$LINENO"; then :
4842  ac_cv_safe_to_define___extensions__=yes
4843else
4844  ac_cv_safe_to_define___extensions__=no
4845fi
4846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847fi
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4849$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4850  test $ac_cv_safe_to_define___extensions__ = yes &&
4851    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4852
4853  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4854
4855  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4856
4857  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4858
4859  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4860
4861
4862# Check whether --enable-largefile was given.
4863if test "${enable_largefile+set}" = set; then :
4864  enableval=$enable_largefile;
4865fi
4866
4867if test "$enable_largefile" != no; then
4868
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4870$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4871if ${ac_cv_sys_largefile_CC+:} false; then :
4872  $as_echo_n "(cached) " >&6
4873else
4874  ac_cv_sys_largefile_CC=no
4875     if test "$GCC" != yes; then
4876       ac_save_CC=$CC
4877       while :; do
4878	 # IRIX 6.2 and later do not support large files by default,
4879	 # so use the C compiler's -n32 option if that helps.
4880	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881/* end confdefs.h.  */
4882#include <sys/types.h>
4883 /* Check that off_t can represent 2**63 - 1 correctly.
4884    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4885    since some C++ compilers masquerading as C compilers
4886    incorrectly reject 9223372036854775807.  */
4887#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4888  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4889		       && LARGE_OFF_T % 2147483647 == 1)
4890		      ? 1 : -1];
4891int
4892main ()
4893{
4894
4895  ;
4896  return 0;
4897}
4898_ACEOF
4899	 if ac_fn_c_try_compile "$LINENO"; then :
4900  break
4901fi
4902rm -f core conftest.err conftest.$ac_objext
4903	 CC="$CC -n32"
4904	 if ac_fn_c_try_compile "$LINENO"; then :
4905  ac_cv_sys_largefile_CC=' -n32'; break
4906fi
4907rm -f core conftest.err conftest.$ac_objext
4908	 break
4909       done
4910       CC=$ac_save_CC
4911       rm -f conftest.$ac_ext
4912    fi
4913fi
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4915$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4916  if test "$ac_cv_sys_largefile_CC" != no; then
4917    CC=$CC$ac_cv_sys_largefile_CC
4918  fi
4919
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4921$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4922if ${ac_cv_sys_file_offset_bits+:} false; then :
4923  $as_echo_n "(cached) " >&6
4924else
4925  while :; do
4926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928#include <sys/types.h>
4929 /* Check that off_t can represent 2**63 - 1 correctly.
4930    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4931    since some C++ compilers masquerading as C compilers
4932    incorrectly reject 9223372036854775807.  */
4933#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4934  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4935		       && LARGE_OFF_T % 2147483647 == 1)
4936		      ? 1 : -1];
4937int
4938main ()
4939{
4940
4941  ;
4942  return 0;
4943}
4944_ACEOF
4945if ac_fn_c_try_compile "$LINENO"; then :
4946  ac_cv_sys_file_offset_bits=no; break
4947fi
4948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950/* end confdefs.h.  */
4951#define _FILE_OFFSET_BITS 64
4952#include <sys/types.h>
4953 /* Check that off_t can represent 2**63 - 1 correctly.
4954    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4955    since some C++ compilers masquerading as C compilers
4956    incorrectly reject 9223372036854775807.  */
4957#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4958  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4959		       && LARGE_OFF_T % 2147483647 == 1)
4960		      ? 1 : -1];
4961int
4962main ()
4963{
4964
4965  ;
4966  return 0;
4967}
4968_ACEOF
4969if ac_fn_c_try_compile "$LINENO"; then :
4970  ac_cv_sys_file_offset_bits=64; break
4971fi
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973  ac_cv_sys_file_offset_bits=unknown
4974  break
4975done
4976fi
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4978$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4979case $ac_cv_sys_file_offset_bits in #(
4980  no | unknown) ;;
4981  *)
4982cat >>confdefs.h <<_ACEOF
4983#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4984_ACEOF
4985;;
4986esac
4987rm -rf conftest*
4988  if test $ac_cv_sys_file_offset_bits = unknown; then
4989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4990$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4991if ${ac_cv_sys_large_files+:} false; then :
4992  $as_echo_n "(cached) " >&6
4993else
4994  while :; do
4995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996/* end confdefs.h.  */
4997#include <sys/types.h>
4998 /* Check that off_t can represent 2**63 - 1 correctly.
4999    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5000    since some C++ compilers masquerading as C compilers
5001    incorrectly reject 9223372036854775807.  */
5002#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5003  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5004		       && LARGE_OFF_T % 2147483647 == 1)
5005		      ? 1 : -1];
5006int
5007main ()
5008{
5009
5010  ;
5011  return 0;
5012}
5013_ACEOF
5014if ac_fn_c_try_compile "$LINENO"; then :
5015  ac_cv_sys_large_files=no; break
5016fi
5017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019/* end confdefs.h.  */
5020#define _LARGE_FILES 1
5021#include <sys/types.h>
5022 /* Check that off_t can represent 2**63 - 1 correctly.
5023    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5024    since some C++ compilers masquerading as C compilers
5025    incorrectly reject 9223372036854775807.  */
5026#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5027  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5028		       && LARGE_OFF_T % 2147483647 == 1)
5029		      ? 1 : -1];
5030int
5031main ()
5032{
5033
5034  ;
5035  return 0;
5036}
5037_ACEOF
5038if ac_fn_c_try_compile "$LINENO"; then :
5039  ac_cv_sys_large_files=1; break
5040fi
5041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042  ac_cv_sys_large_files=unknown
5043  break
5044done
5045fi
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5047$as_echo "$ac_cv_sys_large_files" >&6; }
5048case $ac_cv_sys_large_files in #(
5049  no | unknown) ;;
5050  *)
5051cat >>confdefs.h <<_ACEOF
5052#define _LARGE_FILES $ac_cv_sys_large_files
5053_ACEOF
5054;;
5055esac
5056rm -rf conftest*
5057  fi
5058
5059
5060fi
5061
5062
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5064$as_echo_n "checking whether ln -s works... " >&6; }
5065LN_S=$as_ln_s
5066if test "$LN_S" = "ln -s"; then
5067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5068$as_echo "yes" >&6; }
5069else
5070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5071$as_echo "no, using $LN_S" >&6; }
5072fi
5073
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5075$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5076set x ${MAKE-make}
5077ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5078if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081  cat >conftest.make <<\_ACEOF
5082SHELL = /bin/sh
5083all:
5084	@echo '@@@%%%=$(MAKE)=@@@%%%'
5085_ACEOF
5086# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5087case `${MAKE-make} -f conftest.make 2>/dev/null` in
5088  *@@@%%%=?*=@@@%%%*)
5089    eval ac_cv_prog_make_${ac_make}_set=yes;;
5090  *)
5091    eval ac_cv_prog_make_${ac_make}_set=no;;
5092esac
5093rm -f conftest.make
5094fi
5095if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097$as_echo "yes" >&6; }
5098  SET_MAKE=
5099else
5100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101$as_echo "no" >&6; }
5102  SET_MAKE="MAKE=${MAKE-make}"
5103fi
5104
5105
5106
5107
5108
5109
5110
5111
5112if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5113	if test -n "$ac_tool_prefix"; then
5114  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5115set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117$as_echo_n "checking for $ac_word... " >&6; }
5118if ${ac_cv_path_PKG_CONFIG+:} false; then :
5119  $as_echo_n "(cached) " >&6
5120else
5121  case $PKG_CONFIG in
5122  [\\/]* | ?:[\\/]*)
5123  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5124  ;;
5125  *)
5126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129  IFS=$as_save_IFS
5130  test -z "$as_dir" && as_dir=.
5131    for ac_exec_ext in '' $ac_executable_extensions; do
5132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135    break 2
5136  fi
5137done
5138  done
5139IFS=$as_save_IFS
5140
5141  ;;
5142esac
5143fi
5144PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5145if test -n "$PKG_CONFIG"; then
5146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5147$as_echo "$PKG_CONFIG" >&6; }
5148else
5149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150$as_echo "no" >&6; }
5151fi
5152
5153
5154fi
5155if test -z "$ac_cv_path_PKG_CONFIG"; then
5156  ac_pt_PKG_CONFIG=$PKG_CONFIG
5157  # Extract the first word of "pkg-config", so it can be a program name with args.
5158set dummy pkg-config; ac_word=$2
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160$as_echo_n "checking for $ac_word... " >&6; }
5161if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5162  $as_echo_n "(cached) " >&6
5163else
5164  case $ac_pt_PKG_CONFIG in
5165  [\\/]* | ?:[\\/]*)
5166  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5167  ;;
5168  *)
5169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172  IFS=$as_save_IFS
5173  test -z "$as_dir" && as_dir=.
5174    for ac_exec_ext in '' $ac_executable_extensions; do
5175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178    break 2
5179  fi
5180done
5181  done
5182IFS=$as_save_IFS
5183
5184  ;;
5185esac
5186fi
5187ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5188if test -n "$ac_pt_PKG_CONFIG"; then
5189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5190$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5191else
5192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193$as_echo "no" >&6; }
5194fi
5195
5196  if test "x$ac_pt_PKG_CONFIG" = x; then
5197    PKG_CONFIG=""
5198  else
5199    case $cross_compiling:$ac_tool_warned in
5200yes:)
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203ac_tool_warned=yes ;;
5204esac
5205    PKG_CONFIG=$ac_pt_PKG_CONFIG
5206  fi
5207else
5208  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5209fi
5210
5211fi
5212if test -n "$PKG_CONFIG"; then
5213	_pkg_min_version=0.9.0
5214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5215$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5216	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5217		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5218$as_echo "yes" >&6; }
5219	else
5220		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221$as_echo "no" >&6; }
5222		PKG_CONFIG=""
5223	fi
5224fi
5225
5226
5227
5228# Check whether --with-pkgconfigdir was given.
5229if test "${with_pkgconfigdir+set}" = set; then :
5230  withval=$with_pkgconfigdir;
5231else
5232  with_pkgconfigdir='${libdir}/pkgconfig'
5233fi
5234
5235pkgconfigdir=$with_pkgconfigdir
5236
5237
5238
5239
5240
5241
5242GIT=${GIT-"${am_missing_run}git"}
5243
5244
5245GPERF=${GPERF-"${am_missing_run}gperf"}
5246
5247
5248
5249
5250
5251
5252
5253        # Find any Python interpreter.
5254    if test -z "$PYTHON"; then
5255      for ac_prog in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
5256do
5257  # Extract the first word of "$ac_prog", so it can be a program name with args.
5258set dummy $ac_prog; ac_word=$2
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260$as_echo_n "checking for $ac_word... " >&6; }
5261if ${ac_cv_path_PYTHON+:} false; then :
5262  $as_echo_n "(cached) " >&6
5263else
5264  case $PYTHON in
5265  [\\/]* | ?:[\\/]*)
5266  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5267  ;;
5268  *)
5269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH
5271do
5272  IFS=$as_save_IFS
5273  test -z "$as_dir" && as_dir=.
5274    for ac_exec_ext in '' $ac_executable_extensions; do
5275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278    break 2
5279  fi
5280done
5281  done
5282IFS=$as_save_IFS
5283
5284  ;;
5285esac
5286fi
5287PYTHON=$ac_cv_path_PYTHON
5288if test -n "$PYTHON"; then
5289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5290$as_echo "$PYTHON" >&6; }
5291else
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293$as_echo "no" >&6; }
5294fi
5295
5296
5297  test -n "$PYTHON" && break
5298done
5299test -n "$PYTHON" || PYTHON=":"
5300
5301    fi
5302    am_display_PYTHON=python
5303
5304
5305  if test "$PYTHON" = :; then
5306      :
5307  else
5308
5309
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5311$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5312if ${am_cv_python_version+:} false; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5316fi
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5318$as_echo "$am_cv_python_version" >&6; }
5319  PYTHON_VERSION=$am_cv_python_version
5320
5321
5322
5323  PYTHON_PREFIX='${prefix}'
5324
5325  PYTHON_EXEC_PREFIX='${exec_prefix}'
5326
5327
5328
5329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5330$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5331if ${am_cv_python_platform+:} false; then :
5332  $as_echo_n "(cached) " >&6
5333else
5334  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5337$as_echo "$am_cv_python_platform" >&6; }
5338  PYTHON_PLATFORM=$am_cv_python_platform
5339
5340
5341  # Just factor out some code duplication.
5342  am_python_setup_sysconfig="\
5343import sys
5344# Prefer sysconfig over distutils.sysconfig, for better compatibility
5345# with python 3.x.  See automake bug#10227.
5346try:
5347    import sysconfig
5348except ImportError:
5349    can_use_sysconfig = 0
5350else:
5351    can_use_sysconfig = 1
5352# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5353# <https://github.com/pypa/virtualenv/issues/118>
5354try:
5355    from platform import python_implementation
5356    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5357        can_use_sysconfig = 0
5358except ImportError:
5359    pass"
5360
5361
5362            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5363$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5364if ${am_cv_python_pythondir+:} false; then :
5365  $as_echo_n "(cached) " >&6
5366else
5367  if test "x$prefix" = xNONE
5368     then
5369       am_py_prefix=$ac_default_prefix
5370     else
5371       am_py_prefix=$prefix
5372     fi
5373     am_cv_python_pythondir=`$PYTHON -c "
5374$am_python_setup_sysconfig
5375if can_use_sysconfig:
5376    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5377else:
5378    from distutils import sysconfig
5379    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5380sys.stdout.write(sitedir)"`
5381     case $am_cv_python_pythondir in
5382     $am_py_prefix*)
5383       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5384       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5385       ;;
5386     *)
5387       case $am_py_prefix in
5388         /usr|/System*) ;;
5389         *)
5390	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5391	  ;;
5392       esac
5393       ;;
5394     esac
5395
5396fi
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5398$as_echo "$am_cv_python_pythondir" >&6; }
5399  pythondir=$am_cv_python_pythondir
5400
5401
5402
5403  pkgpythondir=\${pythondir}/$PACKAGE
5404
5405
5406        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5407$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5408if ${am_cv_python_pyexecdir+:} false; then :
5409  $as_echo_n "(cached) " >&6
5410else
5411  if test "x$exec_prefix" = xNONE
5412     then
5413       am_py_exec_prefix=$am_py_prefix
5414     else
5415       am_py_exec_prefix=$exec_prefix
5416     fi
5417     am_cv_python_pyexecdir=`$PYTHON -c "
5418$am_python_setup_sysconfig
5419if can_use_sysconfig:
5420    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5421else:
5422    from distutils import sysconfig
5423    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5424sys.stdout.write(sitedir)"`
5425     case $am_cv_python_pyexecdir in
5426     $am_py_exec_prefix*)
5427       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5428       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5429       ;;
5430     *)
5431       case $am_py_exec_prefix in
5432         /usr|/System*) ;;
5433         *)
5434	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5435	   ;;
5436       esac
5437       ;;
5438     esac
5439
5440fi
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5442$as_echo "$am_cv_python_pyexecdir" >&6; }
5443  pyexecdir=$am_cv_python_pyexecdir
5444
5445
5446
5447  pkgpyexecdir=\${pyexecdir}/$PACKAGE
5448
5449
5450
5451  fi
5452
5453
5454 if test "$PYTHON" != :; then
5455  HAVE_PYTHON_TRUE=
5456  HAVE_PYTHON_FALSE='#'
5457else
5458  HAVE_PYTHON_TRUE='#'
5459  HAVE_PYTHON_FALSE=
5460fi
5461
5462
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
5464$as_echo_n "checking for RM macro... " >&6; }
5465_predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
5466if test "x$_predefined_rm" = "x"; then
5467	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
5468$as_echo "no predefined RM" >&6; }
5469	# Extract the first word of "rm", so it can be a program name with args.
5470set dummy rm; ac_word=$2
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
5473if ${ac_cv_prog_RM+:} false; then :
5474  $as_echo_n "(cached) " >&6
5475else
5476  if test -n "$RM"; then
5477  ac_cv_prog_RM="$RM" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482  IFS=$as_save_IFS
5483  test -z "$as_dir" && as_dir=.
5484    for ac_exec_ext in '' $ac_executable_extensions; do
5485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486    ac_cv_prog_RM="rm -f"
5487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488    break 2
5489  fi
5490done
5491  done
5492IFS=$as_save_IFS
5493
5494fi
5495fi
5496RM=$ac_cv_prog_RM
5497if test -n "$RM"; then
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5499$as_echo "$RM" >&6; }
5500else
5501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }
5503fi
5504
5505
5506else
5507	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
5508$as_echo "$_predefined_rm" >&6; }
5509fi
5510
5511
5512case `pwd` in
5513  *\ * | *\	*)
5514    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5515$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5516esac
5517
5518
5519
5520macro_version='2.4.6'
5521macro_revision='2.4.6'
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535ltmain=$ac_aux_dir/ltmain.sh
5536
5537# Make sure we can run config.sub.
5538$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5539  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5540
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5542$as_echo_n "checking build system type... " >&6; }
5543if ${ac_cv_build+:} false; then :
5544  $as_echo_n "(cached) " >&6
5545else
5546  ac_build_alias=$build_alias
5547test "x$ac_build_alias" = x &&
5548  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5549test "x$ac_build_alias" = x &&
5550  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5551ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5552  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5553
5554fi
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5556$as_echo "$ac_cv_build" >&6; }
5557case $ac_cv_build in
5558*-*-*) ;;
5559*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5560esac
5561build=$ac_cv_build
5562ac_save_IFS=$IFS; IFS='-'
5563set x $ac_cv_build
5564shift
5565build_cpu=$1
5566build_vendor=$2
5567shift; shift
5568# Remember, the first character of IFS is used to create $*,
5569# except with old shells:
5570build_os=$*
5571IFS=$ac_save_IFS
5572case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5573
5574
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5576$as_echo_n "checking host system type... " >&6; }
5577if ${ac_cv_host+:} false; then :
5578  $as_echo_n "(cached) " >&6
5579else
5580  if test "x$host_alias" = x; then
5581  ac_cv_host=$ac_cv_build
5582else
5583  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5584    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5585fi
5586
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5589$as_echo "$ac_cv_host" >&6; }
5590case $ac_cv_host in
5591*-*-*) ;;
5592*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5593esac
5594host=$ac_cv_host
5595ac_save_IFS=$IFS; IFS='-'
5596set x $ac_cv_host
5597shift
5598host_cpu=$1
5599host_vendor=$2
5600shift; shift
5601# Remember, the first character of IFS is used to create $*,
5602# except with old shells:
5603host_os=$*
5604IFS=$ac_save_IFS
5605case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5606
5607
5608# Backslashify metacharacters that are still active within
5609# double-quoted strings.
5610sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5611
5612# Same as above, but do not quote variable references.
5613double_quote_subst='s/\(["`\\]\)/\\\1/g'
5614
5615# Sed substitution to delay expansion of an escaped shell variable in a
5616# double_quote_subst'ed string.
5617delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5618
5619# Sed substitution to delay expansion of an escaped single quote.
5620delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5621
5622# Sed substitution to avoid accidental globbing in evaled expressions
5623no_glob_subst='s/\*/\\\*/g'
5624
5625ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5626ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5627ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5628
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5630$as_echo_n "checking how to print strings... " >&6; }
5631# Test print first, because it will be a builtin if present.
5632if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5633   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5634  ECHO='print -r --'
5635elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5636  ECHO='printf %s\n'
5637else
5638  # Use this function as a fallback that always works.
5639  func_fallback_echo ()
5640  {
5641    eval 'cat <<_LTECHO_EOF
5642$1
5643_LTECHO_EOF'
5644  }
5645  ECHO='func_fallback_echo'
5646fi
5647
5648# func_echo_all arg...
5649# Invoke $ECHO with all args, space-separated.
5650func_echo_all ()
5651{
5652    $ECHO ""
5653}
5654
5655case $ECHO in
5656  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5657$as_echo "printf" >&6; } ;;
5658  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5659$as_echo "print -r" >&6; } ;;
5660  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5661$as_echo "cat" >&6; } ;;
5662esac
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5678$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5679if ${ac_cv_path_SED+:} false; then :
5680  $as_echo_n "(cached) " >&6
5681else
5682            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5683     for ac_i in 1 2 3 4 5 6 7; do
5684       ac_script="$ac_script$as_nl$ac_script"
5685     done
5686     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5687     { ac_script=; unset ac_script;}
5688     if test -z "$SED"; then
5689  ac_path_SED_found=false
5690  # Loop through the user's path and test for each of PROGNAME-LIST
5691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694  IFS=$as_save_IFS
5695  test -z "$as_dir" && as_dir=.
5696    for ac_prog in sed gsed; do
5697    for ac_exec_ext in '' $ac_executable_extensions; do
5698      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5699      as_fn_executable_p "$ac_path_SED" || continue
5700# Check for GNU ac_path_SED and select it if it is found.
5701  # Check for GNU $ac_path_SED
5702case `"$ac_path_SED" --version 2>&1` in
5703*GNU*)
5704  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5705*)
5706  ac_count=0
5707  $as_echo_n 0123456789 >"conftest.in"
5708  while :
5709  do
5710    cat "conftest.in" "conftest.in" >"conftest.tmp"
5711    mv "conftest.tmp" "conftest.in"
5712    cp "conftest.in" "conftest.nl"
5713    $as_echo '' >> "conftest.nl"
5714    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5715    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5716    as_fn_arith $ac_count + 1 && ac_count=$as_val
5717    if test $ac_count -gt ${ac_path_SED_max-0}; then
5718      # Best one so far, save it but keep looking for a better one
5719      ac_cv_path_SED="$ac_path_SED"
5720      ac_path_SED_max=$ac_count
5721    fi
5722    # 10*(2^10) chars as input seems more than enough
5723    test $ac_count -gt 10 && break
5724  done
5725  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5726esac
5727
5728      $ac_path_SED_found && break 3
5729    done
5730  done
5731  done
5732IFS=$as_save_IFS
5733  if test -z "$ac_cv_path_SED"; then
5734    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5735  fi
5736else
5737  ac_cv_path_SED=$SED
5738fi
5739
5740fi
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5742$as_echo "$ac_cv_path_SED" >&6; }
5743 SED="$ac_cv_path_SED"
5744  rm -f conftest.sed
5745
5746test -z "$SED" && SED=sed
5747Xsed="$SED -e 1s/^X//"
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5760$as_echo_n "checking for fgrep... " >&6; }
5761if ${ac_cv_path_FGREP+:} false; then :
5762  $as_echo_n "(cached) " >&6
5763else
5764  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5765   then ac_cv_path_FGREP="$GREP -F"
5766   else
5767     if test -z "$FGREP"; then
5768  ac_path_FGREP_found=false
5769  # Loop through the user's path and test for each of PROGNAME-LIST
5770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5772do
5773  IFS=$as_save_IFS
5774  test -z "$as_dir" && as_dir=.
5775    for ac_prog in fgrep; do
5776    for ac_exec_ext in '' $ac_executable_extensions; do
5777      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5778      as_fn_executable_p "$ac_path_FGREP" || continue
5779# Check for GNU ac_path_FGREP and select it if it is found.
5780  # Check for GNU $ac_path_FGREP
5781case `"$ac_path_FGREP" --version 2>&1` in
5782*GNU*)
5783  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5784*)
5785  ac_count=0
5786  $as_echo_n 0123456789 >"conftest.in"
5787  while :
5788  do
5789    cat "conftest.in" "conftest.in" >"conftest.tmp"
5790    mv "conftest.tmp" "conftest.in"
5791    cp "conftest.in" "conftest.nl"
5792    $as_echo 'FGREP' >> "conftest.nl"
5793    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5794    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5795    as_fn_arith $ac_count + 1 && ac_count=$as_val
5796    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5797      # Best one so far, save it but keep looking for a better one
5798      ac_cv_path_FGREP="$ac_path_FGREP"
5799      ac_path_FGREP_max=$ac_count
5800    fi
5801    # 10*(2^10) chars as input seems more than enough
5802    test $ac_count -gt 10 && break
5803  done
5804  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5805esac
5806
5807      $ac_path_FGREP_found && break 3
5808    done
5809  done
5810  done
5811IFS=$as_save_IFS
5812  if test -z "$ac_cv_path_FGREP"; then
5813    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5814  fi
5815else
5816  ac_cv_path_FGREP=$FGREP
5817fi
5818
5819   fi
5820fi
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5822$as_echo "$ac_cv_path_FGREP" >&6; }
5823 FGREP="$ac_cv_path_FGREP"
5824
5825
5826test -z "$GREP" && GREP=grep
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846# Check whether --with-gnu-ld was given.
5847if test "${with_gnu_ld+set}" = set; then :
5848  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5849else
5850  with_gnu_ld=no
5851fi
5852
5853ac_prog=ld
5854if test yes = "$GCC"; then
5855  # Check if gcc -print-prog-name=ld gives a path.
5856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5857$as_echo_n "checking for ld used by $CC... " >&6; }
5858  case $host in
5859  *-*-mingw*)
5860    # gcc leaves a trailing carriage return, which upsets mingw
5861    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5862  *)
5863    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5864  esac
5865  case $ac_prog in
5866    # Accept absolute paths.
5867    [\\/]* | ?:[\\/]*)
5868      re_direlt='/[^/][^/]*/\.\./'
5869      # Canonicalize the pathname of ld
5870      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5871      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5872	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5873      done
5874      test -z "$LD" && LD=$ac_prog
5875      ;;
5876  "")
5877    # If it fails, then pretend we aren't using GCC.
5878    ac_prog=ld
5879    ;;
5880  *)
5881    # If it is relative, then search for the first ld in PATH.
5882    with_gnu_ld=unknown
5883    ;;
5884  esac
5885elif test yes = "$with_gnu_ld"; then
5886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5887$as_echo_n "checking for GNU ld... " >&6; }
5888else
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5890$as_echo_n "checking for non-GNU ld... " >&6; }
5891fi
5892if ${lt_cv_path_LD+:} false; then :
5893  $as_echo_n "(cached) " >&6
5894else
5895  if test -z "$LD"; then
5896  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5897  for ac_dir in $PATH; do
5898    IFS=$lt_save_ifs
5899    test -z "$ac_dir" && ac_dir=.
5900    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5901      lt_cv_path_LD=$ac_dir/$ac_prog
5902      # Check to see if the program is GNU ld.  I'd rather use --version,
5903      # but apparently some variants of GNU ld only accept -v.
5904      # Break only if it was the GNU/non-GNU ld that we prefer.
5905      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5906      *GNU* | *'with BFD'*)
5907	test no != "$with_gnu_ld" && break
5908	;;
5909      *)
5910	test yes != "$with_gnu_ld" && break
5911	;;
5912      esac
5913    fi
5914  done
5915  IFS=$lt_save_ifs
5916else
5917  lt_cv_path_LD=$LD # Let the user override the test with a path.
5918fi
5919fi
5920
5921LD=$lt_cv_path_LD
5922if test -n "$LD"; then
5923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5924$as_echo "$LD" >&6; }
5925else
5926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928fi
5929test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5931$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5932if ${lt_cv_prog_gnu_ld+:} false; then :
5933  $as_echo_n "(cached) " >&6
5934else
5935  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5936case `$LD -v 2>&1 </dev/null` in
5937*GNU* | *'with BFD'*)
5938  lt_cv_prog_gnu_ld=yes
5939  ;;
5940*)
5941  lt_cv_prog_gnu_ld=no
5942  ;;
5943esac
5944fi
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5946$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5947with_gnu_ld=$lt_cv_prog_gnu_ld
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5958$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5959if ${lt_cv_path_NM+:} false; then :
5960  $as_echo_n "(cached) " >&6
5961else
5962  if test -n "$NM"; then
5963  # Let the user override the test.
5964  lt_cv_path_NM=$NM
5965else
5966  lt_nm_to_check=${ac_tool_prefix}nm
5967  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5968    lt_nm_to_check="$lt_nm_to_check nm"
5969  fi
5970  for lt_tmp_nm in $lt_nm_to_check; do
5971    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5972    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5973      IFS=$lt_save_ifs
5974      test -z "$ac_dir" && ac_dir=.
5975      tmp_nm=$ac_dir/$lt_tmp_nm
5976      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5977	# Check to see if the nm accepts a BSD-compat flag.
5978	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5979	#   nm: unknown option "B" ignored
5980	# Tru64's nm complains that /dev/null is an invalid object file
5981	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5982	case $build_os in
5983	mingw*) lt_bad_file=conftest.nm/nofile ;;
5984	*) lt_bad_file=/dev/null ;;
5985	esac
5986	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5987	*$lt_bad_file* | *'Invalid file or object type'*)
5988	  lt_cv_path_NM="$tmp_nm -B"
5989	  break 2
5990	  ;;
5991	*)
5992	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5993	  */dev/null*)
5994	    lt_cv_path_NM="$tmp_nm -p"
5995	    break 2
5996	    ;;
5997	  *)
5998	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5999	    continue # so that we can try to find one that supports BSD flags
6000	    ;;
6001	  esac
6002	  ;;
6003	esac
6004      fi
6005    done
6006    IFS=$lt_save_ifs
6007  done
6008  : ${lt_cv_path_NM=no}
6009fi
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6012$as_echo "$lt_cv_path_NM" >&6; }
6013if test no != "$lt_cv_path_NM"; then
6014  NM=$lt_cv_path_NM
6015else
6016  # Didn't find any BSD compatible name lister, look for dumpbin.
6017  if test -n "$DUMPBIN"; then :
6018    # Let the user override the test.
6019  else
6020    if test -n "$ac_tool_prefix"; then
6021  for ac_prog in dumpbin "link -dump"
6022  do
6023    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6024set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026$as_echo_n "checking for $ac_word... " >&6; }
6027if ${ac_cv_prog_DUMPBIN+:} false; then :
6028  $as_echo_n "(cached) " >&6
6029else
6030  if test -n "$DUMPBIN"; then
6031  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6032else
6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
6036  IFS=$as_save_IFS
6037  test -z "$as_dir" && as_dir=.
6038    for ac_exec_ext in '' $ac_executable_extensions; do
6039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042    break 2
6043  fi
6044done
6045  done
6046IFS=$as_save_IFS
6047
6048fi
6049fi
6050DUMPBIN=$ac_cv_prog_DUMPBIN
6051if test -n "$DUMPBIN"; then
6052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6053$as_echo "$DUMPBIN" >&6; }
6054else
6055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057fi
6058
6059
6060    test -n "$DUMPBIN" && break
6061  done
6062fi
6063if test -z "$DUMPBIN"; then
6064  ac_ct_DUMPBIN=$DUMPBIN
6065  for ac_prog in dumpbin "link -dump"
6066do
6067  # Extract the first word of "$ac_prog", so it can be a program name with args.
6068set dummy $ac_prog; ac_word=$2
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
6071if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6072  $as_echo_n "(cached) " >&6
6073else
6074  if test -n "$ac_ct_DUMPBIN"; then
6075  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080  IFS=$as_save_IFS
6081  test -z "$as_dir" && as_dir=.
6082    for ac_exec_ext in '' $ac_executable_extensions; do
6083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086    break 2
6087  fi
6088done
6089  done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6095if test -n "$ac_ct_DUMPBIN"; then
6096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6097$as_echo "$ac_ct_DUMPBIN" >&6; }
6098else
6099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104  test -n "$ac_ct_DUMPBIN" && break
6105done
6106
6107  if test "x$ac_ct_DUMPBIN" = x; then
6108    DUMPBIN=":"
6109  else
6110    case $cross_compiling:$ac_tool_warned in
6111yes:)
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114ac_tool_warned=yes ;;
6115esac
6116    DUMPBIN=$ac_ct_DUMPBIN
6117  fi
6118fi
6119
6120    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6121    *COFF*)
6122      DUMPBIN="$DUMPBIN -symbols -headers"
6123      ;;
6124    *)
6125      DUMPBIN=:
6126      ;;
6127    esac
6128  fi
6129
6130  if test : != "$DUMPBIN"; then
6131    NM=$DUMPBIN
6132  fi
6133fi
6134test -z "$NM" && NM=nm
6135
6136
6137
6138
6139
6140
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6142$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6143if ${lt_cv_nm_interface+:} false; then :
6144  $as_echo_n "(cached) " >&6
6145else
6146  lt_cv_nm_interface="BSD nm"
6147  echo "int some_variable = 0;" > conftest.$ac_ext
6148  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6149  (eval "$ac_compile" 2>conftest.err)
6150  cat conftest.err >&5
6151  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6152  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6153  cat conftest.err >&5
6154  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6155  cat conftest.out >&5
6156  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6157    lt_cv_nm_interface="MS dumpbin"
6158  fi
6159  rm -f conftest*
6160fi
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6162$as_echo "$lt_cv_nm_interface" >&6; }
6163
6164# find the maximum length of command line arguments
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6166$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6167if ${lt_cv_sys_max_cmd_len+:} false; then :
6168  $as_echo_n "(cached) " >&6
6169else
6170    i=0
6171  teststring=ABCD
6172
6173  case $build_os in
6174  msdosdjgpp*)
6175    # On DJGPP, this test can blow up pretty badly due to problems in libc
6176    # (any single argument exceeding 2000 bytes causes a buffer overrun
6177    # during glob expansion).  Even if it were fixed, the result of this
6178    # check would be larger than it should be.
6179    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6180    ;;
6181
6182  gnu*)
6183    # Under GNU Hurd, this test is not required because there is
6184    # no limit to the length of command line arguments.
6185    # Libtool will interpret -1 as no limit whatsoever
6186    lt_cv_sys_max_cmd_len=-1;
6187    ;;
6188
6189  cygwin* | mingw* | cegcc*)
6190    # On Win9x/ME, this test blows up -- it succeeds, but takes
6191    # about 5 minutes as the teststring grows exponentially.
6192    # Worse, since 9x/ME are not pre-emptively multitasking,
6193    # you end up with a "frozen" computer, even though with patience
6194    # the test eventually succeeds (with a max line length of 256k).
6195    # Instead, let's just punt: use the minimum linelength reported by
6196    # all of the supported platforms: 8192 (on NT/2K/XP).
6197    lt_cv_sys_max_cmd_len=8192;
6198    ;;
6199
6200  mint*)
6201    # On MiNT this can take a long time and run out of memory.
6202    lt_cv_sys_max_cmd_len=8192;
6203    ;;
6204
6205  amigaos*)
6206    # On AmigaOS with pdksh, this test takes hours, literally.
6207    # So we just punt and use a minimum line length of 8192.
6208    lt_cv_sys_max_cmd_len=8192;
6209    ;;
6210
6211  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6212    # This has been around since 386BSD, at least.  Likely further.
6213    if test -x /sbin/sysctl; then
6214      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6215    elif test -x /usr/sbin/sysctl; then
6216      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6217    else
6218      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6219    fi
6220    # And add a safety zone
6221    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6222    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6223    ;;
6224
6225  interix*)
6226    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6227    lt_cv_sys_max_cmd_len=196608
6228    ;;
6229
6230  os2*)
6231    # The test takes a long time on OS/2.
6232    lt_cv_sys_max_cmd_len=8192
6233    ;;
6234
6235  osf*)
6236    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6237    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6238    # nice to cause kernel panics so lets avoid the loop below.
6239    # First set a reasonable default.
6240    lt_cv_sys_max_cmd_len=16384
6241    #
6242    if test -x /sbin/sysconfig; then
6243      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6244        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6245      esac
6246    fi
6247    ;;
6248  sco3.2v5*)
6249    lt_cv_sys_max_cmd_len=102400
6250    ;;
6251  sysv5* | sco5v6* | sysv4.2uw2*)
6252    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6253    if test -n "$kargmax"; then
6254      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6255    else
6256      lt_cv_sys_max_cmd_len=32768
6257    fi
6258    ;;
6259  *)
6260    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6261    if test -n "$lt_cv_sys_max_cmd_len" && \
6262       test undefined != "$lt_cv_sys_max_cmd_len"; then
6263      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6264      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6265    else
6266      # Make teststring a little bigger before we do anything with it.
6267      # a 1K string should be a reasonable start.
6268      for i in 1 2 3 4 5 6 7 8; do
6269        teststring=$teststring$teststring
6270      done
6271      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6272      # If test is not a shell built-in, we'll probably end up computing a
6273      # maximum length that is only half of the actual maximum length, but
6274      # we can't tell.
6275      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6276	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6277	      test 17 != "$i" # 1/2 MB should be enough
6278      do
6279        i=`expr $i + 1`
6280        teststring=$teststring$teststring
6281      done
6282      # Only check the string length outside the loop.
6283      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6284      teststring=
6285      # Add a significant safety factor because C++ compilers can tack on
6286      # massive amounts of additional arguments before passing them to the
6287      # linker.  It appears as though 1/2 is a usable value.
6288      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6289    fi
6290    ;;
6291  esac
6292
6293fi
6294
6295if test -n "$lt_cv_sys_max_cmd_len"; then
6296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6297$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6298else
6299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6300$as_echo "none" >&6; }
6301fi
6302max_cmd_len=$lt_cv_sys_max_cmd_len
6303
6304
6305
6306
6307
6308
6309: ${CP="cp -f"}
6310: ${MV="mv -f"}
6311: ${RM="rm -f"}
6312
6313if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6314  lt_unset=unset
6315else
6316  lt_unset=false
6317fi
6318
6319
6320
6321
6322
6323# test EBCDIC or ASCII
6324case `echo X|tr X '\101'` in
6325 A) # ASCII based system
6326    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6327  lt_SP2NL='tr \040 \012'
6328  lt_NL2SP='tr \015\012 \040\040'
6329  ;;
6330 *) # EBCDIC based system
6331  lt_SP2NL='tr \100 \n'
6332  lt_NL2SP='tr \r\n \100\100'
6333  ;;
6334esac
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6345$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6346if ${lt_cv_to_host_file_cmd+:} false; then :
6347  $as_echo_n "(cached) " >&6
6348else
6349  case $host in
6350  *-*-mingw* )
6351    case $build in
6352      *-*-mingw* ) # actually msys
6353        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6354        ;;
6355      *-*-cygwin* )
6356        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6357        ;;
6358      * ) # otherwise, assume *nix
6359        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6360        ;;
6361    esac
6362    ;;
6363  *-*-cygwin* )
6364    case $build in
6365      *-*-mingw* ) # actually msys
6366        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6367        ;;
6368      *-*-cygwin* )
6369        lt_cv_to_host_file_cmd=func_convert_file_noop
6370        ;;
6371      * ) # otherwise, assume *nix
6372        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6373        ;;
6374    esac
6375    ;;
6376  * ) # unhandled hosts (and "normal" native builds)
6377    lt_cv_to_host_file_cmd=func_convert_file_noop
6378    ;;
6379esac
6380
6381fi
6382
6383to_host_file_cmd=$lt_cv_to_host_file_cmd
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6385$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6386
6387
6388
6389
6390
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6392$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6393if ${lt_cv_to_tool_file_cmd+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  #assume ordinary cross tools, or native build.
6397lt_cv_to_tool_file_cmd=func_convert_file_noop
6398case $host in
6399  *-*-mingw* )
6400    case $build in
6401      *-*-mingw* ) # actually msys
6402        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6403        ;;
6404    esac
6405    ;;
6406esac
6407
6408fi
6409
6410to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6412$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6413
6414
6415
6416
6417
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6419$as_echo_n "checking for $LD option to reload object files... " >&6; }
6420if ${lt_cv_ld_reload_flag+:} false; then :
6421  $as_echo_n "(cached) " >&6
6422else
6423  lt_cv_ld_reload_flag='-r'
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6426$as_echo "$lt_cv_ld_reload_flag" >&6; }
6427reload_flag=$lt_cv_ld_reload_flag
6428case $reload_flag in
6429"" | " "*) ;;
6430*) reload_flag=" $reload_flag" ;;
6431esac
6432reload_cmds='$LD$reload_flag -o $output$reload_objs'
6433case $host_os in
6434  cygwin* | mingw* | pw32* | cegcc*)
6435    if test yes != "$GCC"; then
6436      reload_cmds=false
6437    fi
6438    ;;
6439  darwin*)
6440    if test yes = "$GCC"; then
6441      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6442    else
6443      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6444    fi
6445    ;;
6446esac
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456if test -n "$ac_tool_prefix"; then
6457  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6458set dummy ${ac_tool_prefix}objdump; ac_word=$2
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460$as_echo_n "checking for $ac_word... " >&6; }
6461if ${ac_cv_prog_OBJDUMP+:} false; then :
6462  $as_echo_n "(cached) " >&6
6463else
6464  if test -n "$OBJDUMP"; then
6465  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6466else
6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470  IFS=$as_save_IFS
6471  test -z "$as_dir" && as_dir=.
6472    for ac_exec_ext in '' $ac_executable_extensions; do
6473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476    break 2
6477  fi
6478done
6479  done
6480IFS=$as_save_IFS
6481
6482fi
6483fi
6484OBJDUMP=$ac_cv_prog_OBJDUMP
6485if test -n "$OBJDUMP"; then
6486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6487$as_echo "$OBJDUMP" >&6; }
6488else
6489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490$as_echo "no" >&6; }
6491fi
6492
6493
6494fi
6495if test -z "$ac_cv_prog_OBJDUMP"; then
6496  ac_ct_OBJDUMP=$OBJDUMP
6497  # Extract the first word of "objdump", so it can be a program name with args.
6498set dummy objdump; ac_word=$2
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500$as_echo_n "checking for $ac_word... " >&6; }
6501if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6502  $as_echo_n "(cached) " >&6
6503else
6504  if test -n "$ac_ct_OBJDUMP"; then
6505  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510  IFS=$as_save_IFS
6511  test -z "$as_dir" && as_dir=.
6512    for ac_exec_ext in '' $ac_executable_extensions; do
6513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516    break 2
6517  fi
6518done
6519  done
6520IFS=$as_save_IFS
6521
6522fi
6523fi
6524ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6525if test -n "$ac_ct_OBJDUMP"; then
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6527$as_echo "$ac_ct_OBJDUMP" >&6; }
6528else
6529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530$as_echo "no" >&6; }
6531fi
6532
6533  if test "x$ac_ct_OBJDUMP" = x; then
6534    OBJDUMP="false"
6535  else
6536    case $cross_compiling:$ac_tool_warned in
6537yes:)
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540ac_tool_warned=yes ;;
6541esac
6542    OBJDUMP=$ac_ct_OBJDUMP
6543  fi
6544else
6545  OBJDUMP="$ac_cv_prog_OBJDUMP"
6546fi
6547
6548test -z "$OBJDUMP" && OBJDUMP=objdump
6549
6550
6551
6552
6553
6554
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6556$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6557if ${lt_cv_deplibs_check_method+:} false; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  lt_cv_file_magic_cmd='$MAGIC_CMD'
6561lt_cv_file_magic_test_file=
6562lt_cv_deplibs_check_method='unknown'
6563# Need to set the preceding variable on all platforms that support
6564# interlibrary dependencies.
6565# 'none' -- dependencies not supported.
6566# 'unknown' -- same as none, but documents that we really don't know.
6567# 'pass_all' -- all dependencies passed with no checks.
6568# 'test_compile' -- check by making test program.
6569# 'file_magic [[regex]]' -- check by looking for files in library path
6570# that responds to the $file_magic_cmd with a given extended regex.
6571# If you have 'file' or equivalent on your system and you're not sure
6572# whether 'pass_all' will *always* work, you probably want this one.
6573
6574case $host_os in
6575aix[4-9]*)
6576  lt_cv_deplibs_check_method=pass_all
6577  ;;
6578
6579beos*)
6580  lt_cv_deplibs_check_method=pass_all
6581  ;;
6582
6583bsdi[45]*)
6584  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6585  lt_cv_file_magic_cmd='/usr/bin/file -L'
6586  lt_cv_file_magic_test_file=/shlib/libc.so
6587  ;;
6588
6589cygwin*)
6590  # func_win32_libid is a shell function defined in ltmain.sh
6591  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6592  lt_cv_file_magic_cmd='func_win32_libid'
6593  ;;
6594
6595mingw* | pw32*)
6596  # Base MSYS/MinGW do not provide the 'file' command needed by
6597  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6598  # unless we find 'file', for example because we are cross-compiling.
6599  if ( file / ) >/dev/null 2>&1; then
6600    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6601    lt_cv_file_magic_cmd='func_win32_libid'
6602  else
6603    # Keep this pattern in sync with the one in func_win32_libid.
6604    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6605    lt_cv_file_magic_cmd='$OBJDUMP -f'
6606  fi
6607  ;;
6608
6609cegcc*)
6610  # use the weaker test based on 'objdump'. See mingw*.
6611  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6612  lt_cv_file_magic_cmd='$OBJDUMP -f'
6613  ;;
6614
6615darwin* | rhapsody*)
6616  lt_cv_deplibs_check_method=pass_all
6617  ;;
6618
6619freebsd* | dragonfly*)
6620  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6621    case $host_cpu in
6622    i*86 )
6623      # Not sure whether the presence of OpenBSD here was a mistake.
6624      # Let's accept both of them until this is cleared up.
6625      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6626      lt_cv_file_magic_cmd=/usr/bin/file
6627      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6628      ;;
6629    esac
6630  else
6631    lt_cv_deplibs_check_method=pass_all
6632  fi
6633  ;;
6634
6635haiku*)
6636  lt_cv_deplibs_check_method=pass_all
6637  ;;
6638
6639hpux10.20* | hpux11*)
6640  lt_cv_file_magic_cmd=/usr/bin/file
6641  case $host_cpu in
6642  ia64*)
6643    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6644    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6645    ;;
6646  hppa*64*)
6647    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]'
6648    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6649    ;;
6650  *)
6651    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6652    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6653    ;;
6654  esac
6655  ;;
6656
6657interix[3-9]*)
6658  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6659  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6660  ;;
6661
6662irix5* | irix6* | nonstopux*)
6663  case $LD in
6664  *-32|*"-32 ") libmagic=32-bit;;
6665  *-n32|*"-n32 ") libmagic=N32;;
6666  *-64|*"-64 ") libmagic=64-bit;;
6667  *) libmagic=never-match;;
6668  esac
6669  lt_cv_deplibs_check_method=pass_all
6670  ;;
6671
6672# This must be glibc/ELF.
6673linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6674  lt_cv_deplibs_check_method=pass_all
6675  ;;
6676
6677netbsd*)
6678  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6679    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6680  else
6681    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6682  fi
6683  ;;
6684
6685newos6*)
6686  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6687  lt_cv_file_magic_cmd=/usr/bin/file
6688  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6689  ;;
6690
6691*nto* | *qnx*)
6692  lt_cv_deplibs_check_method=pass_all
6693  ;;
6694
6695openbsd* | bitrig*)
6696  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6697    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6698  else
6699    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6700  fi
6701  ;;
6702
6703osf3* | osf4* | osf5*)
6704  lt_cv_deplibs_check_method=pass_all
6705  ;;
6706
6707rdos*)
6708  lt_cv_deplibs_check_method=pass_all
6709  ;;
6710
6711solaris*)
6712  lt_cv_deplibs_check_method=pass_all
6713  ;;
6714
6715sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6716  lt_cv_deplibs_check_method=pass_all
6717  ;;
6718
6719sysv4 | sysv4.3*)
6720  case $host_vendor in
6721  motorola)
6722    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]'
6723    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6724    ;;
6725  ncr)
6726    lt_cv_deplibs_check_method=pass_all
6727    ;;
6728  sequent)
6729    lt_cv_file_magic_cmd='/bin/file'
6730    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6731    ;;
6732  sni)
6733    lt_cv_file_magic_cmd='/bin/file'
6734    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6735    lt_cv_file_magic_test_file=/lib/libc.so
6736    ;;
6737  siemens)
6738    lt_cv_deplibs_check_method=pass_all
6739    ;;
6740  pc)
6741    lt_cv_deplibs_check_method=pass_all
6742    ;;
6743  esac
6744  ;;
6745
6746tpf*)
6747  lt_cv_deplibs_check_method=pass_all
6748  ;;
6749os2*)
6750  lt_cv_deplibs_check_method=pass_all
6751  ;;
6752esac
6753
6754fi
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6756$as_echo "$lt_cv_deplibs_check_method" >&6; }
6757
6758file_magic_glob=
6759want_nocaseglob=no
6760if test "$build" = "$host"; then
6761  case $host_os in
6762  mingw* | pw32*)
6763    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6764      want_nocaseglob=yes
6765    else
6766      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6767    fi
6768    ;;
6769  esac
6770fi
6771
6772file_magic_cmd=$lt_cv_file_magic_cmd
6773deplibs_check_method=$lt_cv_deplibs_check_method
6774test -z "$deplibs_check_method" && deplibs_check_method=unknown
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797if test -n "$ac_tool_prefix"; then
6798  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6799set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801$as_echo_n "checking for $ac_word... " >&6; }
6802if ${ac_cv_prog_DLLTOOL+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  if test -n "$DLLTOOL"; then
6806  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811  IFS=$as_save_IFS
6812  test -z "$as_dir" && as_dir=.
6813    for ac_exec_ext in '' $ac_executable_extensions; do
6814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817    break 2
6818  fi
6819done
6820  done
6821IFS=$as_save_IFS
6822
6823fi
6824fi
6825DLLTOOL=$ac_cv_prog_DLLTOOL
6826if test -n "$DLLTOOL"; then
6827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6828$as_echo "$DLLTOOL" >&6; }
6829else
6830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831$as_echo "no" >&6; }
6832fi
6833
6834
6835fi
6836if test -z "$ac_cv_prog_DLLTOOL"; then
6837  ac_ct_DLLTOOL=$DLLTOOL
6838  # Extract the first word of "dlltool", so it can be a program name with args.
6839set dummy dlltool; ac_word=$2
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841$as_echo_n "checking for $ac_word... " >&6; }
6842if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6843  $as_echo_n "(cached) " >&6
6844else
6845  if test -n "$ac_ct_DLLTOOL"; then
6846  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6847else
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851  IFS=$as_save_IFS
6852  test -z "$as_dir" && as_dir=.
6853    for ac_exec_ext in '' $ac_executable_extensions; do
6854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857    break 2
6858  fi
6859done
6860  done
6861IFS=$as_save_IFS
6862
6863fi
6864fi
6865ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6866if test -n "$ac_ct_DLLTOOL"; then
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6868$as_echo "$ac_ct_DLLTOOL" >&6; }
6869else
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871$as_echo "no" >&6; }
6872fi
6873
6874  if test "x$ac_ct_DLLTOOL" = x; then
6875    DLLTOOL="false"
6876  else
6877    case $cross_compiling:$ac_tool_warned in
6878yes:)
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881ac_tool_warned=yes ;;
6882esac
6883    DLLTOOL=$ac_ct_DLLTOOL
6884  fi
6885else
6886  DLLTOOL="$ac_cv_prog_DLLTOOL"
6887fi
6888
6889test -z "$DLLTOOL" && DLLTOOL=dlltool
6890
6891
6892
6893
6894
6895
6896
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6898$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6899if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  lt_cv_sharedlib_from_linklib_cmd='unknown'
6903
6904case $host_os in
6905cygwin* | mingw* | pw32* | cegcc*)
6906  # two different shell functions defined in ltmain.sh;
6907  # decide which one to use based on capabilities of $DLLTOOL
6908  case `$DLLTOOL --help 2>&1` in
6909  *--identify-strict*)
6910    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6911    ;;
6912  *)
6913    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6914    ;;
6915  esac
6916  ;;
6917*)
6918  # fallback: assume linklib IS sharedlib
6919  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6920  ;;
6921esac
6922
6923fi
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6925$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6926sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6927test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6928
6929
6930
6931
6932
6933
6934
6935if test -n "$ac_tool_prefix"; then
6936  for ac_prog in ar
6937  do
6938    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6939set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941$as_echo_n "checking for $ac_word... " >&6; }
6942if ${ac_cv_prog_AR+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  if test -n "$AR"; then
6946  ac_cv_prog_AR="$AR" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951  IFS=$as_save_IFS
6952  test -z "$as_dir" && as_dir=.
6953    for ac_exec_ext in '' $ac_executable_extensions; do
6954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957    break 2
6958  fi
6959done
6960  done
6961IFS=$as_save_IFS
6962
6963fi
6964fi
6965AR=$ac_cv_prog_AR
6966if test -n "$AR"; then
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6968$as_echo "$AR" >&6; }
6969else
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971$as_echo "no" >&6; }
6972fi
6973
6974
6975    test -n "$AR" && break
6976  done
6977fi
6978if test -z "$AR"; then
6979  ac_ct_AR=$AR
6980  for ac_prog in ar
6981do
6982  # Extract the first word of "$ac_prog", so it can be a program name with args.
6983set dummy $ac_prog; ac_word=$2
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985$as_echo_n "checking for $ac_word... " >&6; }
6986if ${ac_cv_prog_ac_ct_AR+:} false; then :
6987  $as_echo_n "(cached) " >&6
6988else
6989  if test -n "$ac_ct_AR"; then
6990  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6991else
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995  IFS=$as_save_IFS
6996  test -z "$as_dir" && as_dir=.
6997    for ac_exec_ext in '' $ac_executable_extensions; do
6998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999    ac_cv_prog_ac_ct_AR="$ac_prog"
7000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001    break 2
7002  fi
7003done
7004  done
7005IFS=$as_save_IFS
7006
7007fi
7008fi
7009ac_ct_AR=$ac_cv_prog_ac_ct_AR
7010if test -n "$ac_ct_AR"; then
7011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7012$as_echo "$ac_ct_AR" >&6; }
7013else
7014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015$as_echo "no" >&6; }
7016fi
7017
7018
7019  test -n "$ac_ct_AR" && break
7020done
7021
7022  if test "x$ac_ct_AR" = x; then
7023    AR="false"
7024  else
7025    case $cross_compiling:$ac_tool_warned in
7026yes:)
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029ac_tool_warned=yes ;;
7030esac
7031    AR=$ac_ct_AR
7032  fi
7033fi
7034
7035: ${AR=ar}
7036: ${AR_FLAGS=cru}
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7049$as_echo_n "checking for archiver @FILE support... " >&6; }
7050if ${lt_cv_ar_at_file+:} false; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  lt_cv_ar_at_file=no
7054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055/* end confdefs.h.  */
7056
7057int
7058main ()
7059{
7060
7061  ;
7062  return 0;
7063}
7064_ACEOF
7065if ac_fn_c_try_compile "$LINENO"; then :
7066  echo conftest.$ac_objext > conftest.lst
7067      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7068      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7069  (eval $lt_ar_try) 2>&5
7070  ac_status=$?
7071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072  test $ac_status = 0; }
7073      if test 0 -eq "$ac_status"; then
7074	# Ensure the archiver fails upon bogus file names.
7075	rm -f conftest.$ac_objext libconftest.a
7076	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7077  (eval $lt_ar_try) 2>&5
7078  ac_status=$?
7079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7080  test $ac_status = 0; }
7081	if test 0 -ne "$ac_status"; then
7082          lt_cv_ar_at_file=@
7083        fi
7084      fi
7085      rm -f conftest.* libconftest.a
7086
7087fi
7088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089
7090fi
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7092$as_echo "$lt_cv_ar_at_file" >&6; }
7093
7094if test no = "$lt_cv_ar_at_file"; then
7095  archiver_list_spec=
7096else
7097  archiver_list_spec=$lt_cv_ar_at_file
7098fi
7099
7100
7101
7102
7103
7104
7105
7106if test -n "$ac_tool_prefix"; then
7107  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7108set dummy ${ac_tool_prefix}strip; ac_word=$2
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110$as_echo_n "checking for $ac_word... " >&6; }
7111if ${ac_cv_prog_STRIP+:} false; then :
7112  $as_echo_n "(cached) " >&6
7113else
7114  if test -n "$STRIP"; then
7115  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7116else
7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120  IFS=$as_save_IFS
7121  test -z "$as_dir" && as_dir=.
7122    for ac_exec_ext in '' $ac_executable_extensions; do
7123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126    break 2
7127  fi
7128done
7129  done
7130IFS=$as_save_IFS
7131
7132fi
7133fi
7134STRIP=$ac_cv_prog_STRIP
7135if test -n "$STRIP"; then
7136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7137$as_echo "$STRIP" >&6; }
7138else
7139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140$as_echo "no" >&6; }
7141fi
7142
7143
7144fi
7145if test -z "$ac_cv_prog_STRIP"; then
7146  ac_ct_STRIP=$STRIP
7147  # Extract the first word of "strip", so it can be a program name with args.
7148set dummy strip; ac_word=$2
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150$as_echo_n "checking for $ac_word... " >&6; }
7151if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7152  $as_echo_n "(cached) " >&6
7153else
7154  if test -n "$ac_ct_STRIP"; then
7155  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7156else
7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160  IFS=$as_save_IFS
7161  test -z "$as_dir" && as_dir=.
7162    for ac_exec_ext in '' $ac_executable_extensions; do
7163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164    ac_cv_prog_ac_ct_STRIP="strip"
7165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166    break 2
7167  fi
7168done
7169  done
7170IFS=$as_save_IFS
7171
7172fi
7173fi
7174ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7175if test -n "$ac_ct_STRIP"; then
7176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7177$as_echo "$ac_ct_STRIP" >&6; }
7178else
7179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180$as_echo "no" >&6; }
7181fi
7182
7183  if test "x$ac_ct_STRIP" = x; then
7184    STRIP=":"
7185  else
7186    case $cross_compiling:$ac_tool_warned in
7187yes:)
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7190ac_tool_warned=yes ;;
7191esac
7192    STRIP=$ac_ct_STRIP
7193  fi
7194else
7195  STRIP="$ac_cv_prog_STRIP"
7196fi
7197
7198test -z "$STRIP" && STRIP=:
7199
7200
7201
7202
7203
7204
7205if test -n "$ac_tool_prefix"; then
7206  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7207set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if ${ac_cv_prog_RANLIB+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  if test -n "$RANLIB"; then
7214  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219  IFS=$as_save_IFS
7220  test -z "$as_dir" && as_dir=.
7221    for ac_exec_ext in '' $ac_executable_extensions; do
7222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225    break 2
7226  fi
7227done
7228  done
7229IFS=$as_save_IFS
7230
7231fi
7232fi
7233RANLIB=$ac_cv_prog_RANLIB
7234if test -n "$RANLIB"; then
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7236$as_echo "$RANLIB" >&6; }
7237else
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242
7243fi
7244if test -z "$ac_cv_prog_RANLIB"; then
7245  ac_ct_RANLIB=$RANLIB
7246  # Extract the first word of "ranlib", so it can be a program name with args.
7247set dummy ranlib; ac_word=$2
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249$as_echo_n "checking for $ac_word... " >&6; }
7250if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  if test -n "$ac_ct_RANLIB"; then
7254  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7255else
7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259  IFS=$as_save_IFS
7260  test -z "$as_dir" && as_dir=.
7261    for ac_exec_ext in '' $ac_executable_extensions; do
7262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263    ac_cv_prog_ac_ct_RANLIB="ranlib"
7264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265    break 2
7266  fi
7267done
7268  done
7269IFS=$as_save_IFS
7270
7271fi
7272fi
7273ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7274if test -n "$ac_ct_RANLIB"; then
7275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7276$as_echo "$ac_ct_RANLIB" >&6; }
7277else
7278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279$as_echo "no" >&6; }
7280fi
7281
7282  if test "x$ac_ct_RANLIB" = x; then
7283    RANLIB=":"
7284  else
7285    case $cross_compiling:$ac_tool_warned in
7286yes:)
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289ac_tool_warned=yes ;;
7290esac
7291    RANLIB=$ac_ct_RANLIB
7292  fi
7293else
7294  RANLIB="$ac_cv_prog_RANLIB"
7295fi
7296
7297test -z "$RANLIB" && RANLIB=:
7298
7299
7300
7301
7302
7303
7304# Determine commands to create old-style static archives.
7305old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7306old_postinstall_cmds='chmod 644 $oldlib'
7307old_postuninstall_cmds=
7308
7309if test -n "$RANLIB"; then
7310  case $host_os in
7311  bitrig* | openbsd*)
7312    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7313    ;;
7314  *)
7315    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7316    ;;
7317  esac
7318  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7319fi
7320
7321case $host_os in
7322  darwin*)
7323    lock_old_archive_extraction=yes ;;
7324  *)
7325    lock_old_archive_extraction=no ;;
7326esac
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366# If no C compiler was specified, use CC.
7367LTCC=${LTCC-"$CC"}
7368
7369# If no C compiler flags were specified, use CFLAGS.
7370LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7371
7372# Allow CC to be a program name with arguments.
7373compiler=$CC
7374
7375
7376# Check for command to grab the raw symbol name followed by C symbol from nm.
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7378$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7379if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7380  $as_echo_n "(cached) " >&6
7381else
7382
7383# These are sane defaults that work on at least a few old systems.
7384# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7385
7386# Character class describing NM global symbol codes.
7387symcode='[BCDEGRST]'
7388
7389# Regexp to match symbols that can be accessed directly from C.
7390sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7391
7392# Define system-specific variables.
7393case $host_os in
7394aix*)
7395  symcode='[BCDT]'
7396  ;;
7397cygwin* | mingw* | pw32* | cegcc*)
7398  symcode='[ABCDGISTW]'
7399  ;;
7400hpux*)
7401  if test ia64 = "$host_cpu"; then
7402    symcode='[ABCDEGRST]'
7403  fi
7404  ;;
7405irix* | nonstopux*)
7406  symcode='[BCDEGRST]'
7407  ;;
7408osf*)
7409  symcode='[BCDEGQRST]'
7410  ;;
7411solaris*)
7412  symcode='[BDRT]'
7413  ;;
7414sco3.2v5*)
7415  symcode='[DT]'
7416  ;;
7417sysv4.2uw2*)
7418  symcode='[DT]'
7419  ;;
7420sysv5* | sco5v6* | unixware* | OpenUNIX*)
7421  symcode='[ABDT]'
7422  ;;
7423sysv4)
7424  symcode='[DFNSTU]'
7425  ;;
7426esac
7427
7428# If we're using GNU nm, then use its standard symbol codes.
7429case `$NM -V 2>&1` in
7430*GNU* | *'with BFD'*)
7431  symcode='[ABCDGIRSTW]' ;;
7432esac
7433
7434if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7435  # Gets list of data symbols to import.
7436  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7437  # Adjust the below global symbol transforms to fixup imported variables.
7438  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7439  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7440  lt_c_name_lib_hook="\
7441  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7442  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7443else
7444  # Disable hooks by default.
7445  lt_cv_sys_global_symbol_to_import=
7446  lt_cdecl_hook=
7447  lt_c_name_hook=
7448  lt_c_name_lib_hook=
7449fi
7450
7451# Transform an extracted symbol line into a proper C declaration.
7452# Some systems (esp. on ia64) link data and code symbols differently,
7453# so use this general approach.
7454lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7455$lt_cdecl_hook\
7456" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7457" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7458
7459# Transform an extracted symbol line into symbol name and symbol address
7460lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7461$lt_c_name_hook\
7462" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7463" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7464
7465# Transform an extracted symbol line into symbol name with lib prefix and
7466# symbol address.
7467lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7468$lt_c_name_lib_hook\
7469" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7470" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7471" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7472
7473# Handle CRLF in mingw tool chain
7474opt_cr=
7475case $build_os in
7476mingw*)
7477  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7478  ;;
7479esac
7480
7481# Try without a prefix underscore, then with it.
7482for ac_symprfx in "" "_"; do
7483
7484  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7485  symxfrm="\\1 $ac_symprfx\\2 \\2"
7486
7487  # Write the raw and C identifiers.
7488  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7489    # Fake it for dumpbin and say T for any non-static function,
7490    # D for any global variable and I for any imported variable.
7491    # Also find C++ and __fastcall symbols from MSVC++,
7492    # which start with @ or ?.
7493    lt_cv_sys_global_symbol_pipe="$AWK '"\
7494"     {last_section=section; section=\$ 3};"\
7495"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7496"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7497"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7498"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7499"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7500"     \$ 0!~/External *\|/{next};"\
7501"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7502"     {if(hide[section]) next};"\
7503"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7504"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7505"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7506"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7507"     ' prfx=^$ac_symprfx"
7508  else
7509    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7510  fi
7511  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7512
7513  # Check to see that the pipe works correctly.
7514  pipe_works=no
7515
7516  rm -f conftest*
7517  cat > conftest.$ac_ext <<_LT_EOF
7518#ifdef __cplusplus
7519extern "C" {
7520#endif
7521char nm_test_var;
7522void nm_test_func(void);
7523void nm_test_func(void){}
7524#ifdef __cplusplus
7525}
7526#endif
7527int main(){nm_test_var='a';nm_test_func();return(0);}
7528_LT_EOF
7529
7530  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7531  (eval $ac_compile) 2>&5
7532  ac_status=$?
7533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534  test $ac_status = 0; }; then
7535    # Now try to grab the symbols.
7536    nlist=conftest.nm
7537    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7538  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7539  ac_status=$?
7540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541  test $ac_status = 0; } && test -s "$nlist"; then
7542      # Try sorting and uniquifying the output.
7543      if sort "$nlist" | uniq > "$nlist"T; then
7544	mv -f "$nlist"T "$nlist"
7545      else
7546	rm -f "$nlist"T
7547      fi
7548
7549      # Make sure that we snagged all the symbols we need.
7550      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7551	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7552	  cat <<_LT_EOF > conftest.$ac_ext
7553/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7554#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7555/* DATA imports from DLLs on WIN32 can't be const, because runtime
7556   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7557# define LT_DLSYM_CONST
7558#elif defined __osf__
7559/* This system does not cope well with relocations in const data.  */
7560# define LT_DLSYM_CONST
7561#else
7562# define LT_DLSYM_CONST const
7563#endif
7564
7565#ifdef __cplusplus
7566extern "C" {
7567#endif
7568
7569_LT_EOF
7570	  # Now generate the symbol file.
7571	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7572
7573	  cat <<_LT_EOF >> conftest.$ac_ext
7574
7575/* The mapping between symbol names and symbols.  */
7576LT_DLSYM_CONST struct {
7577  const char *name;
7578  void       *address;
7579}
7580lt__PROGRAM__LTX_preloaded_symbols[] =
7581{
7582  { "@PROGRAM@", (void *) 0 },
7583_LT_EOF
7584	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7585	  cat <<\_LT_EOF >> conftest.$ac_ext
7586  {0, (void *) 0}
7587};
7588
7589/* This works around a problem in FreeBSD linker */
7590#ifdef FREEBSD_WORKAROUND
7591static const void *lt_preloaded_setup() {
7592  return lt__PROGRAM__LTX_preloaded_symbols;
7593}
7594#endif
7595
7596#ifdef __cplusplus
7597}
7598#endif
7599_LT_EOF
7600	  # Now try linking the two files.
7601	  mv conftest.$ac_objext conftstm.$ac_objext
7602	  lt_globsym_save_LIBS=$LIBS
7603	  lt_globsym_save_CFLAGS=$CFLAGS
7604	  LIBS=conftstm.$ac_objext
7605	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7606	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7607  (eval $ac_link) 2>&5
7608  ac_status=$?
7609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7611	    pipe_works=yes
7612	  fi
7613	  LIBS=$lt_globsym_save_LIBS
7614	  CFLAGS=$lt_globsym_save_CFLAGS
7615	else
7616	  echo "cannot find nm_test_func in $nlist" >&5
7617	fi
7618      else
7619	echo "cannot find nm_test_var in $nlist" >&5
7620      fi
7621    else
7622      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7623    fi
7624  else
7625    echo "$progname: failed program was:" >&5
7626    cat conftest.$ac_ext >&5
7627  fi
7628  rm -rf conftest* conftst*
7629
7630  # Do not use the global_symbol_pipe unless it works.
7631  if test yes = "$pipe_works"; then
7632    break
7633  else
7634    lt_cv_sys_global_symbol_pipe=
7635  fi
7636done
7637
7638fi
7639
7640if test -z "$lt_cv_sys_global_symbol_pipe"; then
7641  lt_cv_sys_global_symbol_to_cdecl=
7642fi
7643if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7645$as_echo "failed" >&6; }
7646else
7647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7648$as_echo "ok" >&6; }
7649fi
7650
7651# Response file support.
7652if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7653  nm_file_list_spec='@'
7654elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7655  nm_file_list_spec='@'
7656fi
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7695$as_echo_n "checking for sysroot... " >&6; }
7696
7697# Check whether --with-sysroot was given.
7698if test "${with_sysroot+set}" = set; then :
7699  withval=$with_sysroot;
7700else
7701  with_sysroot=no
7702fi
7703
7704
7705lt_sysroot=
7706case $with_sysroot in #(
7707 yes)
7708   if test yes = "$GCC"; then
7709     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7710   fi
7711   ;; #(
7712 /*)
7713   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7714   ;; #(
7715 no|'')
7716   ;; #(
7717 *)
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7719$as_echo "$with_sysroot" >&6; }
7720   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7721   ;;
7722esac
7723
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7725$as_echo "${lt_sysroot:-no}" >&6; }
7726
7727
7728
7729
7730
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7732$as_echo_n "checking for a working dd... " >&6; }
7733if ${ac_cv_path_lt_DD+:} false; then :
7734  $as_echo_n "(cached) " >&6
7735else
7736  printf 0123456789abcdef0123456789abcdef >conftest.i
7737cat conftest.i conftest.i >conftest2.i
7738: ${lt_DD:=$DD}
7739if test -z "$lt_DD"; then
7740  ac_path_lt_DD_found=false
7741  # Loop through the user's path and test for each of PROGNAME-LIST
7742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743for as_dir in $PATH
7744do
7745  IFS=$as_save_IFS
7746  test -z "$as_dir" && as_dir=.
7747    for ac_prog in dd; do
7748    for ac_exec_ext in '' $ac_executable_extensions; do
7749      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7750      as_fn_executable_p "$ac_path_lt_DD" || continue
7751if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7752  cmp -s conftest.i conftest.out \
7753  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7754fi
7755      $ac_path_lt_DD_found && break 3
7756    done
7757  done
7758  done
7759IFS=$as_save_IFS
7760  if test -z "$ac_cv_path_lt_DD"; then
7761    :
7762  fi
7763else
7764  ac_cv_path_lt_DD=$lt_DD
7765fi
7766
7767rm -f conftest.i conftest2.i conftest.out
7768fi
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7770$as_echo "$ac_cv_path_lt_DD" >&6; }
7771
7772
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7774$as_echo_n "checking how to truncate binary pipes... " >&6; }
7775if ${lt_cv_truncate_bin+:} false; then :
7776  $as_echo_n "(cached) " >&6
7777else
7778  printf 0123456789abcdef0123456789abcdef >conftest.i
7779cat conftest.i conftest.i >conftest2.i
7780lt_cv_truncate_bin=
7781if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7782  cmp -s conftest.i conftest.out \
7783  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7784fi
7785rm -f conftest.i conftest2.i conftest.out
7786test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7789$as_echo "$lt_cv_truncate_bin" >&6; }
7790
7791
7792
7793
7794
7795
7796
7797# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7798func_cc_basename ()
7799{
7800    for cc_temp in $*""; do
7801      case $cc_temp in
7802        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7803        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7804        \-*) ;;
7805        *) break;;
7806      esac
7807    done
7808    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7809}
7810
7811# Check whether --enable-libtool-lock was given.
7812if test "${enable_libtool_lock+set}" = set; then :
7813  enableval=$enable_libtool_lock;
7814fi
7815
7816test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7817
7818# Some flags need to be propagated to the compiler or linker for good
7819# libtool support.
7820case $host in
7821ia64-*-hpux*)
7822  # Find out what ABI is being produced by ac_compile, and set mode
7823  # options accordingly.
7824  echo 'int i;' > conftest.$ac_ext
7825  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7826  (eval $ac_compile) 2>&5
7827  ac_status=$?
7828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7829  test $ac_status = 0; }; then
7830    case `/usr/bin/file conftest.$ac_objext` in
7831      *ELF-32*)
7832	HPUX_IA64_MODE=32
7833	;;
7834      *ELF-64*)
7835	HPUX_IA64_MODE=64
7836	;;
7837    esac
7838  fi
7839  rm -rf conftest*
7840  ;;
7841*-*-irix6*)
7842  # Find out what ABI is being produced by ac_compile, and set linker
7843  # options accordingly.
7844  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7845  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7846  (eval $ac_compile) 2>&5
7847  ac_status=$?
7848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7849  test $ac_status = 0; }; then
7850    if test yes = "$lt_cv_prog_gnu_ld"; then
7851      case `/usr/bin/file conftest.$ac_objext` in
7852	*32-bit*)
7853	  LD="${LD-ld} -melf32bsmip"
7854	  ;;
7855	*N32*)
7856	  LD="${LD-ld} -melf32bmipn32"
7857	  ;;
7858	*64-bit*)
7859	  LD="${LD-ld} -melf64bmip"
7860	;;
7861      esac
7862    else
7863      case `/usr/bin/file conftest.$ac_objext` in
7864	*32-bit*)
7865	  LD="${LD-ld} -32"
7866	  ;;
7867	*N32*)
7868	  LD="${LD-ld} -n32"
7869	  ;;
7870	*64-bit*)
7871	  LD="${LD-ld} -64"
7872	  ;;
7873      esac
7874    fi
7875  fi
7876  rm -rf conftest*
7877  ;;
7878
7879mips64*-*linux*)
7880  # Find out what ABI is being produced by ac_compile, and set linker
7881  # options accordingly.
7882  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7883  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7884  (eval $ac_compile) 2>&5
7885  ac_status=$?
7886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7887  test $ac_status = 0; }; then
7888    emul=elf
7889    case `/usr/bin/file conftest.$ac_objext` in
7890      *32-bit*)
7891	emul="${emul}32"
7892	;;
7893      *64-bit*)
7894	emul="${emul}64"
7895	;;
7896    esac
7897    case `/usr/bin/file conftest.$ac_objext` in
7898      *MSB*)
7899	emul="${emul}btsmip"
7900	;;
7901      *LSB*)
7902	emul="${emul}ltsmip"
7903	;;
7904    esac
7905    case `/usr/bin/file conftest.$ac_objext` in
7906      *N32*)
7907	emul="${emul}n32"
7908	;;
7909    esac
7910    LD="${LD-ld} -m $emul"
7911  fi
7912  rm -rf conftest*
7913  ;;
7914
7915x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7916s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7917  # Find out what ABI is being produced by ac_compile, and set linker
7918  # options accordingly.  Note that the listed cases only cover the
7919  # situations where additional linker options are needed (such as when
7920  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7921  # vice versa); the common cases where no linker options are needed do
7922  # not appear in the list.
7923  echo 'int i;' > conftest.$ac_ext
7924  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7925  (eval $ac_compile) 2>&5
7926  ac_status=$?
7927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7928  test $ac_status = 0; }; then
7929    case `/usr/bin/file conftest.o` in
7930      *32-bit*)
7931	case $host in
7932	  x86_64-*kfreebsd*-gnu)
7933	    LD="${LD-ld} -m elf_i386_fbsd"
7934	    ;;
7935	  x86_64-*linux*)
7936	    case `/usr/bin/file conftest.o` in
7937	      *x86-64*)
7938		LD="${LD-ld} -m elf32_x86_64"
7939		;;
7940	      *)
7941		LD="${LD-ld} -m elf_i386"
7942		;;
7943	    esac
7944	    ;;
7945	  powerpc64le-*linux*)
7946	    LD="${LD-ld} -m elf32lppclinux"
7947	    ;;
7948	  powerpc64-*linux*)
7949	    LD="${LD-ld} -m elf32ppclinux"
7950	    ;;
7951	  s390x-*linux*)
7952	    LD="${LD-ld} -m elf_s390"
7953	    ;;
7954	  sparc64-*linux*)
7955	    LD="${LD-ld} -m elf32_sparc"
7956	    ;;
7957	esac
7958	;;
7959      *64-bit*)
7960	case $host in
7961	  x86_64-*kfreebsd*-gnu)
7962	    LD="${LD-ld} -m elf_x86_64_fbsd"
7963	    ;;
7964	  x86_64-*linux*)
7965	    LD="${LD-ld} -m elf_x86_64"
7966	    ;;
7967	  powerpcle-*linux*)
7968	    LD="${LD-ld} -m elf64lppc"
7969	    ;;
7970	  powerpc-*linux*)
7971	    LD="${LD-ld} -m elf64ppc"
7972	    ;;
7973	  s390*-*linux*|s390*-*tpf*)
7974	    LD="${LD-ld} -m elf64_s390"
7975	    ;;
7976	  sparc*-*linux*)
7977	    LD="${LD-ld} -m elf64_sparc"
7978	    ;;
7979	esac
7980	;;
7981    esac
7982  fi
7983  rm -rf conftest*
7984  ;;
7985
7986*-*-sco3.2v5*)
7987  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7988  SAVE_CFLAGS=$CFLAGS
7989  CFLAGS="$CFLAGS -belf"
7990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7991$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7992if ${lt_cv_cc_needs_belf+:} false; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  ac_ext=c
7996ac_cpp='$CPP $CPPFLAGS'
7997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000
8001     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002/* end confdefs.h.  */
8003
8004int
8005main ()
8006{
8007
8008  ;
8009  return 0;
8010}
8011_ACEOF
8012if ac_fn_c_try_link "$LINENO"; then :
8013  lt_cv_cc_needs_belf=yes
8014else
8015  lt_cv_cc_needs_belf=no
8016fi
8017rm -f core conftest.err conftest.$ac_objext \
8018    conftest$ac_exeext conftest.$ac_ext
8019     ac_ext=c
8020ac_cpp='$CPP $CPPFLAGS'
8021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024
8025fi
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8027$as_echo "$lt_cv_cc_needs_belf" >&6; }
8028  if test yes != "$lt_cv_cc_needs_belf"; then
8029    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8030    CFLAGS=$SAVE_CFLAGS
8031  fi
8032  ;;
8033*-*solaris*)
8034  # Find out what ABI is being produced by ac_compile, and set linker
8035  # options accordingly.
8036  echo 'int i;' > conftest.$ac_ext
8037  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8038  (eval $ac_compile) 2>&5
8039  ac_status=$?
8040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041  test $ac_status = 0; }; then
8042    case `/usr/bin/file conftest.o` in
8043    *64-bit*)
8044      case $lt_cv_prog_gnu_ld in
8045      yes*)
8046        case $host in
8047        i?86-*-solaris*|x86_64-*-solaris*)
8048          LD="${LD-ld} -m elf_x86_64"
8049          ;;
8050        sparc*-*-solaris*)
8051          LD="${LD-ld} -m elf64_sparc"
8052          ;;
8053        esac
8054        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8055        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8056          LD=${LD-ld}_sol2
8057        fi
8058        ;;
8059      *)
8060	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8061	  LD="${LD-ld} -64"
8062	fi
8063	;;
8064      esac
8065      ;;
8066    esac
8067  fi
8068  rm -rf conftest*
8069  ;;
8070esac
8071
8072need_locks=$enable_libtool_lock
8073
8074if test -n "$ac_tool_prefix"; then
8075  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8076set dummy ${ac_tool_prefix}mt; ac_word=$2
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078$as_echo_n "checking for $ac_word... " >&6; }
8079if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8080  $as_echo_n "(cached) " >&6
8081else
8082  if test -n "$MANIFEST_TOOL"; then
8083  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8084else
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088  IFS=$as_save_IFS
8089  test -z "$as_dir" && as_dir=.
8090    for ac_exec_ext in '' $ac_executable_extensions; do
8091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094    break 2
8095  fi
8096done
8097  done
8098IFS=$as_save_IFS
8099
8100fi
8101fi
8102MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8103if test -n "$MANIFEST_TOOL"; then
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8105$as_echo "$MANIFEST_TOOL" >&6; }
8106else
8107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
8109fi
8110
8111
8112fi
8113if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8114  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8115  # Extract the first word of "mt", so it can be a program name with args.
8116set dummy mt; ac_word=$2
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118$as_echo_n "checking for $ac_word... " >&6; }
8119if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8120  $as_echo_n "(cached) " >&6
8121else
8122  if test -n "$ac_ct_MANIFEST_TOOL"; then
8123  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8124else
8125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126for as_dir in $PATH
8127do
8128  IFS=$as_save_IFS
8129  test -z "$as_dir" && as_dir=.
8130    for ac_exec_ext in '' $ac_executable_extensions; do
8131  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134    break 2
8135  fi
8136done
8137  done
8138IFS=$as_save_IFS
8139
8140fi
8141fi
8142ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8143if test -n "$ac_ct_MANIFEST_TOOL"; then
8144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8145$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8146else
8147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148$as_echo "no" >&6; }
8149fi
8150
8151  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8152    MANIFEST_TOOL=":"
8153  else
8154    case $cross_compiling:$ac_tool_warned in
8155yes:)
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8158ac_tool_warned=yes ;;
8159esac
8160    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8161  fi
8162else
8163  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8164fi
8165
8166test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8168$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8169if ${lt_cv_path_mainfest_tool+:} false; then :
8170  $as_echo_n "(cached) " >&6
8171else
8172  lt_cv_path_mainfest_tool=no
8173  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8174  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8175  cat conftest.err >&5
8176  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8177    lt_cv_path_mainfest_tool=yes
8178  fi
8179  rm -f conftest*
8180fi
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8182$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8183if test yes != "$lt_cv_path_mainfest_tool"; then
8184  MANIFEST_TOOL=:
8185fi
8186
8187
8188
8189
8190
8191
8192  case $host_os in
8193    rhapsody* | darwin*)
8194    if test -n "$ac_tool_prefix"; then
8195  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8196set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198$as_echo_n "checking for $ac_word... " >&6; }
8199if ${ac_cv_prog_DSYMUTIL+:} false; then :
8200  $as_echo_n "(cached) " >&6
8201else
8202  if test -n "$DSYMUTIL"; then
8203  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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  test -z "$as_dir" && as_dir=.
8210    for ac_exec_ext in '' $ac_executable_extensions; do
8211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8212    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214    break 2
8215  fi
8216done
8217  done
8218IFS=$as_save_IFS
8219
8220fi
8221fi
8222DSYMUTIL=$ac_cv_prog_DSYMUTIL
8223if test -n "$DSYMUTIL"; then
8224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8225$as_echo "$DSYMUTIL" >&6; }
8226else
8227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228$as_echo "no" >&6; }
8229fi
8230
8231
8232fi
8233if test -z "$ac_cv_prog_DSYMUTIL"; then
8234  ac_ct_DSYMUTIL=$DSYMUTIL
8235  # Extract the first word of "dsymutil", so it can be a program name with args.
8236set dummy dsymutil; ac_word=$2
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238$as_echo_n "checking for $ac_word... " >&6; }
8239if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8240  $as_echo_n "(cached) " >&6
8241else
8242  if test -n "$ac_ct_DSYMUTIL"; then
8243  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8244else
8245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246for as_dir in $PATH
8247do
8248  IFS=$as_save_IFS
8249  test -z "$as_dir" && as_dir=.
8250    for ac_exec_ext in '' $ac_executable_extensions; do
8251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8252    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254    break 2
8255  fi
8256done
8257  done
8258IFS=$as_save_IFS
8259
8260fi
8261fi
8262ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8263if test -n "$ac_ct_DSYMUTIL"; then
8264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8265$as_echo "$ac_ct_DSYMUTIL" >&6; }
8266else
8267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268$as_echo "no" >&6; }
8269fi
8270
8271  if test "x$ac_ct_DSYMUTIL" = x; then
8272    DSYMUTIL=":"
8273  else
8274    case $cross_compiling:$ac_tool_warned in
8275yes:)
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8278ac_tool_warned=yes ;;
8279esac
8280    DSYMUTIL=$ac_ct_DSYMUTIL
8281  fi
8282else
8283  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8284fi
8285
8286    if test -n "$ac_tool_prefix"; then
8287  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8288set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290$as_echo_n "checking for $ac_word... " >&6; }
8291if ${ac_cv_prog_NMEDIT+:} false; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  if test -n "$NMEDIT"; then
8295  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8296else
8297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298for as_dir in $PATH
8299do
8300  IFS=$as_save_IFS
8301  test -z "$as_dir" && as_dir=.
8302    for ac_exec_ext in '' $ac_executable_extensions; do
8303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8304    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306    break 2
8307  fi
8308done
8309  done
8310IFS=$as_save_IFS
8311
8312fi
8313fi
8314NMEDIT=$ac_cv_prog_NMEDIT
8315if test -n "$NMEDIT"; then
8316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8317$as_echo "$NMEDIT" >&6; }
8318else
8319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320$as_echo "no" >&6; }
8321fi
8322
8323
8324fi
8325if test -z "$ac_cv_prog_NMEDIT"; then
8326  ac_ct_NMEDIT=$NMEDIT
8327  # Extract the first word of "nmedit", so it can be a program name with args.
8328set dummy nmedit; ac_word=$2
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330$as_echo_n "checking for $ac_word... " >&6; }
8331if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  if test -n "$ac_ct_NMEDIT"; then
8335  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8336else
8337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338for as_dir in $PATH
8339do
8340  IFS=$as_save_IFS
8341  test -z "$as_dir" && as_dir=.
8342    for ac_exec_ext in '' $ac_executable_extensions; do
8343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8344    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8346    break 2
8347  fi
8348done
8349  done
8350IFS=$as_save_IFS
8351
8352fi
8353fi
8354ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8355if test -n "$ac_ct_NMEDIT"; then
8356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8357$as_echo "$ac_ct_NMEDIT" >&6; }
8358else
8359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360$as_echo "no" >&6; }
8361fi
8362
8363  if test "x$ac_ct_NMEDIT" = x; then
8364    NMEDIT=":"
8365  else
8366    case $cross_compiling:$ac_tool_warned in
8367yes:)
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8370ac_tool_warned=yes ;;
8371esac
8372    NMEDIT=$ac_ct_NMEDIT
8373  fi
8374else
8375  NMEDIT="$ac_cv_prog_NMEDIT"
8376fi
8377
8378    if test -n "$ac_tool_prefix"; then
8379  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8380set dummy ${ac_tool_prefix}lipo; ac_word=$2
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382$as_echo_n "checking for $ac_word... " >&6; }
8383if ${ac_cv_prog_LIPO+:} false; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  if test -n "$LIPO"; then
8387  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8388else
8389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392  IFS=$as_save_IFS
8393  test -z "$as_dir" && as_dir=.
8394    for ac_exec_ext in '' $ac_executable_extensions; do
8395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8396    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398    break 2
8399  fi
8400done
8401  done
8402IFS=$as_save_IFS
8403
8404fi
8405fi
8406LIPO=$ac_cv_prog_LIPO
8407if test -n "$LIPO"; then
8408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8409$as_echo "$LIPO" >&6; }
8410else
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
8413fi
8414
8415
8416fi
8417if test -z "$ac_cv_prog_LIPO"; then
8418  ac_ct_LIPO=$LIPO
8419  # Extract the first word of "lipo", so it can be a program name with args.
8420set dummy lipo; ac_word=$2
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422$as_echo_n "checking for $ac_word... " >&6; }
8423if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8424  $as_echo_n "(cached) " >&6
8425else
8426  if test -n "$ac_ct_LIPO"; then
8427  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8428else
8429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430for as_dir in $PATH
8431do
8432  IFS=$as_save_IFS
8433  test -z "$as_dir" && as_dir=.
8434    for ac_exec_ext in '' $ac_executable_extensions; do
8435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8436    ac_cv_prog_ac_ct_LIPO="lipo"
8437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438    break 2
8439  fi
8440done
8441  done
8442IFS=$as_save_IFS
8443
8444fi
8445fi
8446ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8447if test -n "$ac_ct_LIPO"; then
8448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8449$as_echo "$ac_ct_LIPO" >&6; }
8450else
8451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452$as_echo "no" >&6; }
8453fi
8454
8455  if test "x$ac_ct_LIPO" = x; then
8456    LIPO=":"
8457  else
8458    case $cross_compiling:$ac_tool_warned in
8459yes:)
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8462ac_tool_warned=yes ;;
8463esac
8464    LIPO=$ac_ct_LIPO
8465  fi
8466else
8467  LIPO="$ac_cv_prog_LIPO"
8468fi
8469
8470    if test -n "$ac_tool_prefix"; then
8471  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8472set dummy ${ac_tool_prefix}otool; ac_word=$2
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474$as_echo_n "checking for $ac_word... " >&6; }
8475if ${ac_cv_prog_OTOOL+:} false; then :
8476  $as_echo_n "(cached) " >&6
8477else
8478  if test -n "$OTOOL"; then
8479  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8480else
8481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482for as_dir in $PATH
8483do
8484  IFS=$as_save_IFS
8485  test -z "$as_dir" && as_dir=.
8486    for ac_exec_ext in '' $ac_executable_extensions; do
8487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490    break 2
8491  fi
8492done
8493  done
8494IFS=$as_save_IFS
8495
8496fi
8497fi
8498OTOOL=$ac_cv_prog_OTOOL
8499if test -n "$OTOOL"; then
8500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8501$as_echo "$OTOOL" >&6; }
8502else
8503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504$as_echo "no" >&6; }
8505fi
8506
8507
8508fi
8509if test -z "$ac_cv_prog_OTOOL"; then
8510  ac_ct_OTOOL=$OTOOL
8511  # Extract the first word of "otool", so it can be a program name with args.
8512set dummy otool; ac_word=$2
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514$as_echo_n "checking for $ac_word... " >&6; }
8515if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8516  $as_echo_n "(cached) " >&6
8517else
8518  if test -n "$ac_ct_OTOOL"; then
8519  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8520else
8521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522for as_dir in $PATH
8523do
8524  IFS=$as_save_IFS
8525  test -z "$as_dir" && as_dir=.
8526    for ac_exec_ext in '' $ac_executable_extensions; do
8527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528    ac_cv_prog_ac_ct_OTOOL="otool"
8529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530    break 2
8531  fi
8532done
8533  done
8534IFS=$as_save_IFS
8535
8536fi
8537fi
8538ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8539if test -n "$ac_ct_OTOOL"; then
8540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8541$as_echo "$ac_ct_OTOOL" >&6; }
8542else
8543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
8545fi
8546
8547  if test "x$ac_ct_OTOOL" = x; then
8548    OTOOL=":"
8549  else
8550    case $cross_compiling:$ac_tool_warned in
8551yes:)
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8554ac_tool_warned=yes ;;
8555esac
8556    OTOOL=$ac_ct_OTOOL
8557  fi
8558else
8559  OTOOL="$ac_cv_prog_OTOOL"
8560fi
8561
8562    if test -n "$ac_tool_prefix"; then
8563  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8564set dummy ${ac_tool_prefix}otool64; ac_word=$2
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566$as_echo_n "checking for $ac_word... " >&6; }
8567if ${ac_cv_prog_OTOOL64+:} false; then :
8568  $as_echo_n "(cached) " >&6
8569else
8570  if test -n "$OTOOL64"; then
8571  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8572else
8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576  IFS=$as_save_IFS
8577  test -z "$as_dir" && as_dir=.
8578    for ac_exec_ext in '' $ac_executable_extensions; do
8579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8580    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582    break 2
8583  fi
8584done
8585  done
8586IFS=$as_save_IFS
8587
8588fi
8589fi
8590OTOOL64=$ac_cv_prog_OTOOL64
8591if test -n "$OTOOL64"; then
8592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8593$as_echo "$OTOOL64" >&6; }
8594else
8595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596$as_echo "no" >&6; }
8597fi
8598
8599
8600fi
8601if test -z "$ac_cv_prog_OTOOL64"; then
8602  ac_ct_OTOOL64=$OTOOL64
8603  # Extract the first word of "otool64", so it can be a program name with args.
8604set dummy otool64; ac_word=$2
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606$as_echo_n "checking for $ac_word... " >&6; }
8607if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  if test -n "$ac_ct_OTOOL64"; then
8611  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8612else
8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616  IFS=$as_save_IFS
8617  test -z "$as_dir" && as_dir=.
8618    for ac_exec_ext in '' $ac_executable_extensions; do
8619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620    ac_cv_prog_ac_ct_OTOOL64="otool64"
8621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622    break 2
8623  fi
8624done
8625  done
8626IFS=$as_save_IFS
8627
8628fi
8629fi
8630ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8631if test -n "$ac_ct_OTOOL64"; then
8632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8633$as_echo "$ac_ct_OTOOL64" >&6; }
8634else
8635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
8637fi
8638
8639  if test "x$ac_ct_OTOOL64" = x; then
8640    OTOOL64=":"
8641  else
8642    case $cross_compiling:$ac_tool_warned in
8643yes:)
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8646ac_tool_warned=yes ;;
8647esac
8648    OTOOL64=$ac_ct_OTOOL64
8649  fi
8650else
8651  OTOOL64="$ac_cv_prog_OTOOL64"
8652fi
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8681$as_echo_n "checking for -single_module linker flag... " >&6; }
8682if ${lt_cv_apple_cc_single_mod+:} false; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  lt_cv_apple_cc_single_mod=no
8686      if test -z "$LT_MULTI_MODULE"; then
8687	# By default we will add the -single_module flag. You can override
8688	# by either setting the environment variable LT_MULTI_MODULE
8689	# non-empty at configure time, or by adding -multi_module to the
8690	# link flags.
8691	rm -rf libconftest.dylib*
8692	echo "int foo(void){return 1;}" > conftest.c
8693	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8694-dynamiclib -Wl,-single_module conftest.c" >&5
8695	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8696	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8697        _lt_result=$?
8698	# If there is a non-empty error log, and "single_module"
8699	# appears in it, assume the flag caused a linker warning
8700        if test -s conftest.err && $GREP single_module conftest.err; then
8701	  cat conftest.err >&5
8702	# Otherwise, if the output was created with a 0 exit code from
8703	# the compiler, it worked.
8704	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8705	  lt_cv_apple_cc_single_mod=yes
8706	else
8707	  cat conftest.err >&5
8708	fi
8709	rm -rf libconftest.dylib*
8710	rm -f conftest.*
8711      fi
8712fi
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8714$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8715
8716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8717$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8718if ${lt_cv_ld_exported_symbols_list+:} false; then :
8719  $as_echo_n "(cached) " >&6
8720else
8721  lt_cv_ld_exported_symbols_list=no
8722      save_LDFLAGS=$LDFLAGS
8723      echo "_main" > conftest.sym
8724      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8725      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h.  */
8727
8728int
8729main ()
8730{
8731
8732  ;
8733  return 0;
8734}
8735_ACEOF
8736if ac_fn_c_try_link "$LINENO"; then :
8737  lt_cv_ld_exported_symbols_list=yes
8738else
8739  lt_cv_ld_exported_symbols_list=no
8740fi
8741rm -f core conftest.err conftest.$ac_objext \
8742    conftest$ac_exeext conftest.$ac_ext
8743	LDFLAGS=$save_LDFLAGS
8744
8745fi
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8747$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8748
8749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8750$as_echo_n "checking for -force_load linker flag... " >&6; }
8751if ${lt_cv_ld_force_load+:} false; then :
8752  $as_echo_n "(cached) " >&6
8753else
8754  lt_cv_ld_force_load=no
8755      cat > conftest.c << _LT_EOF
8756int forced_loaded() { return 2;}
8757_LT_EOF
8758      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8759      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8760      echo "$AR cru libconftest.a conftest.o" >&5
8761      $AR cru libconftest.a conftest.o 2>&5
8762      echo "$RANLIB libconftest.a" >&5
8763      $RANLIB libconftest.a 2>&5
8764      cat > conftest.c << _LT_EOF
8765int main() { return 0;}
8766_LT_EOF
8767      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8768      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8769      _lt_result=$?
8770      if test -s conftest.err && $GREP force_load conftest.err; then
8771	cat conftest.err >&5
8772      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8773	lt_cv_ld_force_load=yes
8774      else
8775	cat conftest.err >&5
8776      fi
8777        rm -f conftest.err libconftest.a conftest conftest.c
8778        rm -rf conftest.dSYM
8779
8780fi
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8782$as_echo "$lt_cv_ld_force_load" >&6; }
8783    case $host_os in
8784    rhapsody* | darwin1.[012])
8785      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8786    darwin1.*)
8787      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8788    darwin*) # darwin 5.x on
8789      # if running on 10.5 or later, the deployment target defaults
8790      # to the OS version, if on x86, and 10.4, the deployment
8791      # target defaults to 10.4. Don't you love it?
8792      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8793	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8794	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8795	10.[012][,.]*)
8796	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8797	10.*)
8798	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8799      esac
8800    ;;
8801  esac
8802    if test yes = "$lt_cv_apple_cc_single_mod"; then
8803      _lt_dar_single_mod='$single_module'
8804    fi
8805    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8806      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8807    else
8808      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8809    fi
8810    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8811      _lt_dsymutil='~$DSYMUTIL $lib || :'
8812    else
8813      _lt_dsymutil=
8814    fi
8815    ;;
8816  esac
8817
8818# func_munge_path_list VARIABLE PATH
8819# -----------------------------------
8820# VARIABLE is name of variable containing _space_ separated list of
8821# directories to be munged by the contents of PATH, which is string
8822# having a format:
8823# "DIR[:DIR]:"
8824#       string "DIR[ DIR]" will be prepended to VARIABLE
8825# ":DIR[:DIR]"
8826#       string "DIR[ DIR]" will be appended to VARIABLE
8827# "DIRP[:DIRP]::[DIRA:]DIRA"
8828#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8829#       "DIRA[ DIRA]" will be appended to VARIABLE
8830# "DIR[:DIR]"
8831#       VARIABLE will be replaced by "DIR[ DIR]"
8832func_munge_path_list ()
8833{
8834    case x$2 in
8835    x)
8836        ;;
8837    *:)
8838        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8839        ;;
8840    x:*)
8841        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8842        ;;
8843    *::*)
8844        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8845        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8846        ;;
8847    *)
8848        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8849        ;;
8850    esac
8851}
8852
8853for ac_header in dlfcn.h
8854do :
8855  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8856"
8857if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8858  cat >>confdefs.h <<_ACEOF
8859#define HAVE_DLFCN_H 1
8860_ACEOF
8861
8862fi
8863
8864done
8865
8866
8867
8868
8869
8870# Set options
8871# Check whether --enable-static was given.
8872if test "${enable_static+set}" = set; then :
8873  enableval=$enable_static; p=${PACKAGE-default}
8874    case $enableval in
8875    yes) enable_static=yes ;;
8876    no) enable_static=no ;;
8877    *)
8878     enable_static=no
8879      # Look at the argument we got.  We use all the common list separators.
8880      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8881      for pkg in $enableval; do
8882	IFS=$lt_save_ifs
8883	if test "X$pkg" = "X$p"; then
8884	  enable_static=yes
8885	fi
8886      done
8887      IFS=$lt_save_ifs
8888      ;;
8889    esac
8890else
8891  enable_static=no
8892fi
8893
8894
8895
8896
8897
8898
8899
8900enable_win32_dll=yes
8901
8902case $host in
8903*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8904  if test -n "$ac_tool_prefix"; then
8905  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8906set dummy ${ac_tool_prefix}as; ac_word=$2
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908$as_echo_n "checking for $ac_word... " >&6; }
8909if ${ac_cv_prog_AS+:} false; then :
8910  $as_echo_n "(cached) " >&6
8911else
8912  if test -n "$AS"; then
8913  ac_cv_prog_AS="$AS" # Let the user override the test.
8914else
8915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916for as_dir in $PATH
8917do
8918  IFS=$as_save_IFS
8919  test -z "$as_dir" && as_dir=.
8920    for ac_exec_ext in '' $ac_executable_extensions; do
8921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8922    ac_cv_prog_AS="${ac_tool_prefix}as"
8923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924    break 2
8925  fi
8926done
8927  done
8928IFS=$as_save_IFS
8929
8930fi
8931fi
8932AS=$ac_cv_prog_AS
8933if test -n "$AS"; then
8934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8935$as_echo "$AS" >&6; }
8936else
8937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938$as_echo "no" >&6; }
8939fi
8940
8941
8942fi
8943if test -z "$ac_cv_prog_AS"; then
8944  ac_ct_AS=$AS
8945  # Extract the first word of "as", so it can be a program name with args.
8946set dummy as; ac_word=$2
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948$as_echo_n "checking for $ac_word... " >&6; }
8949if ${ac_cv_prog_ac_ct_AS+:} false; then :
8950  $as_echo_n "(cached) " >&6
8951else
8952  if test -n "$ac_ct_AS"; then
8953  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8954else
8955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956for as_dir in $PATH
8957do
8958  IFS=$as_save_IFS
8959  test -z "$as_dir" && as_dir=.
8960    for ac_exec_ext in '' $ac_executable_extensions; do
8961  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8962    ac_cv_prog_ac_ct_AS="as"
8963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964    break 2
8965  fi
8966done
8967  done
8968IFS=$as_save_IFS
8969
8970fi
8971fi
8972ac_ct_AS=$ac_cv_prog_ac_ct_AS
8973if test -n "$ac_ct_AS"; then
8974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8975$as_echo "$ac_ct_AS" >&6; }
8976else
8977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978$as_echo "no" >&6; }
8979fi
8980
8981  if test "x$ac_ct_AS" = x; then
8982    AS="false"
8983  else
8984    case $cross_compiling:$ac_tool_warned in
8985yes:)
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8988ac_tool_warned=yes ;;
8989esac
8990    AS=$ac_ct_AS
8991  fi
8992else
8993  AS="$ac_cv_prog_AS"
8994fi
8995
8996  if test -n "$ac_tool_prefix"; then
8997  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8998set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9000$as_echo_n "checking for $ac_word... " >&6; }
9001if ${ac_cv_prog_DLLTOOL+:} false; then :
9002  $as_echo_n "(cached) " >&6
9003else
9004  if test -n "$DLLTOOL"; then
9005  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9006else
9007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008for as_dir in $PATH
9009do
9010  IFS=$as_save_IFS
9011  test -z "$as_dir" && as_dir=.
9012    for ac_exec_ext in '' $ac_executable_extensions; do
9013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9016    break 2
9017  fi
9018done
9019  done
9020IFS=$as_save_IFS
9021
9022fi
9023fi
9024DLLTOOL=$ac_cv_prog_DLLTOOL
9025if test -n "$DLLTOOL"; then
9026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9027$as_echo "$DLLTOOL" >&6; }
9028else
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030$as_echo "no" >&6; }
9031fi
9032
9033
9034fi
9035if test -z "$ac_cv_prog_DLLTOOL"; then
9036  ac_ct_DLLTOOL=$DLLTOOL
9037  # Extract the first word of "dlltool", so it can be a program name with args.
9038set dummy dlltool; ac_word=$2
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040$as_echo_n "checking for $ac_word... " >&6; }
9041if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9042  $as_echo_n "(cached) " >&6
9043else
9044  if test -n "$ac_ct_DLLTOOL"; then
9045  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9046else
9047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048for as_dir in $PATH
9049do
9050  IFS=$as_save_IFS
9051  test -z "$as_dir" && as_dir=.
9052    for ac_exec_ext in '' $ac_executable_extensions; do
9053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9054    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056    break 2
9057  fi
9058done
9059  done
9060IFS=$as_save_IFS
9061
9062fi
9063fi
9064ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9065if test -n "$ac_ct_DLLTOOL"; then
9066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9067$as_echo "$ac_ct_DLLTOOL" >&6; }
9068else
9069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070$as_echo "no" >&6; }
9071fi
9072
9073  if test "x$ac_ct_DLLTOOL" = x; then
9074    DLLTOOL="false"
9075  else
9076    case $cross_compiling:$ac_tool_warned in
9077yes:)
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9080ac_tool_warned=yes ;;
9081esac
9082    DLLTOOL=$ac_ct_DLLTOOL
9083  fi
9084else
9085  DLLTOOL="$ac_cv_prog_DLLTOOL"
9086fi
9087
9088  if test -n "$ac_tool_prefix"; then
9089  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9090set dummy ${ac_tool_prefix}objdump; ac_word=$2
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092$as_echo_n "checking for $ac_word... " >&6; }
9093if ${ac_cv_prog_OBJDUMP+:} false; then :
9094  $as_echo_n "(cached) " >&6
9095else
9096  if test -n "$OBJDUMP"; then
9097  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9098else
9099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100for as_dir in $PATH
9101do
9102  IFS=$as_save_IFS
9103  test -z "$as_dir" && as_dir=.
9104    for ac_exec_ext in '' $ac_executable_extensions; do
9105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9108    break 2
9109  fi
9110done
9111  done
9112IFS=$as_save_IFS
9113
9114fi
9115fi
9116OBJDUMP=$ac_cv_prog_OBJDUMP
9117if test -n "$OBJDUMP"; then
9118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9119$as_echo "$OBJDUMP" >&6; }
9120else
9121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122$as_echo "no" >&6; }
9123fi
9124
9125
9126fi
9127if test -z "$ac_cv_prog_OBJDUMP"; then
9128  ac_ct_OBJDUMP=$OBJDUMP
9129  # Extract the first word of "objdump", so it can be a program name with args.
9130set dummy objdump; ac_word=$2
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9132$as_echo_n "checking for $ac_word... " >&6; }
9133if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9134  $as_echo_n "(cached) " >&6
9135else
9136  if test -n "$ac_ct_OBJDUMP"; then
9137  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9138else
9139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140for as_dir in $PATH
9141do
9142  IFS=$as_save_IFS
9143  test -z "$as_dir" && as_dir=.
9144    for ac_exec_ext in '' $ac_executable_extensions; do
9145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9146    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9148    break 2
9149  fi
9150done
9151  done
9152IFS=$as_save_IFS
9153
9154fi
9155fi
9156ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9157if test -n "$ac_ct_OBJDUMP"; then
9158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9159$as_echo "$ac_ct_OBJDUMP" >&6; }
9160else
9161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162$as_echo "no" >&6; }
9163fi
9164
9165  if test "x$ac_ct_OBJDUMP" = x; then
9166    OBJDUMP="false"
9167  else
9168    case $cross_compiling:$ac_tool_warned in
9169yes:)
9170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9172ac_tool_warned=yes ;;
9173esac
9174    OBJDUMP=$ac_ct_OBJDUMP
9175  fi
9176else
9177  OBJDUMP="$ac_cv_prog_OBJDUMP"
9178fi
9179
9180  ;;
9181esac
9182
9183test -z "$AS" && AS=as
9184
9185
9186
9187
9188
9189test -z "$DLLTOOL" && DLLTOOL=dlltool
9190
9191
9192
9193
9194
9195test -z "$OBJDUMP" && OBJDUMP=objdump
9196
9197
9198
9199
9200
9201
9202
9203        enable_dlopen=no
9204
9205
9206
9207            # Check whether --enable-shared was given.
9208if test "${enable_shared+set}" = set; then :
9209  enableval=$enable_shared; p=${PACKAGE-default}
9210    case $enableval in
9211    yes) enable_shared=yes ;;
9212    no) enable_shared=no ;;
9213    *)
9214      enable_shared=no
9215      # Look at the argument we got.  We use all the common list separators.
9216      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9217      for pkg in $enableval; do
9218	IFS=$lt_save_ifs
9219	if test "X$pkg" = "X$p"; then
9220	  enable_shared=yes
9221	fi
9222      done
9223      IFS=$lt_save_ifs
9224      ;;
9225    esac
9226else
9227  enable_shared=yes
9228fi
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240# Check whether --with-pic was given.
9241if test "${with_pic+set}" = set; then :
9242  withval=$with_pic; lt_p=${PACKAGE-default}
9243    case $withval in
9244    yes|no) pic_mode=$withval ;;
9245    *)
9246      pic_mode=default
9247      # Look at the argument we got.  We use all the common list separators.
9248      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9249      for lt_pkg in $withval; do
9250	IFS=$lt_save_ifs
9251	if test "X$lt_pkg" = "X$lt_p"; then
9252	  pic_mode=yes
9253	fi
9254      done
9255      IFS=$lt_save_ifs
9256      ;;
9257    esac
9258else
9259  pic_mode=default
9260fi
9261
9262
9263
9264
9265
9266
9267
9268
9269  # Check whether --enable-fast-install was given.
9270if test "${enable_fast_install+set}" = set; then :
9271  enableval=$enable_fast_install; p=${PACKAGE-default}
9272    case $enableval in
9273    yes) enable_fast_install=yes ;;
9274    no) enable_fast_install=no ;;
9275    *)
9276      enable_fast_install=no
9277      # Look at the argument we got.  We use all the common list separators.
9278      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9279      for pkg in $enableval; do
9280	IFS=$lt_save_ifs
9281	if test "X$pkg" = "X$p"; then
9282	  enable_fast_install=yes
9283	fi
9284      done
9285      IFS=$lt_save_ifs
9286      ;;
9287    esac
9288else
9289  enable_fast_install=yes
9290fi
9291
9292
9293
9294
9295
9296
9297
9298
9299  shared_archive_member_spec=
9300case $host,$enable_shared in
9301power*-*-aix[5-9]*,yes)
9302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9303$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9304
9305# Check whether --with-aix-soname was given.
9306if test "${with_aix_soname+set}" = set; then :
9307  withval=$with_aix_soname; case $withval in
9308    aix|svr4|both)
9309      ;;
9310    *)
9311      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9312      ;;
9313    esac
9314    lt_cv_with_aix_soname=$with_aix_soname
9315else
9316  if ${lt_cv_with_aix_soname+:} false; then :
9317  $as_echo_n "(cached) " >&6
9318else
9319  lt_cv_with_aix_soname=aix
9320fi
9321
9322    with_aix_soname=$lt_cv_with_aix_soname
9323fi
9324
9325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9326$as_echo "$with_aix_soname" >&6; }
9327  if test aix != "$with_aix_soname"; then
9328    # For the AIX way of multilib, we name the shared archive member
9329    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9330    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9331    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9332    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9333    if test 64 = "${OBJECT_MODE-32}"; then
9334      shared_archive_member_spec=shr_64
9335    else
9336      shared_archive_member_spec=shr
9337    fi
9338  fi
9339  ;;
9340*)
9341  with_aix_soname=aix
9342  ;;
9343esac
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354# This can be used to rebuild libtool when needed
9355LIBTOOL_DEPS=$ltmain
9356
9357# Always use our own libtool.
9358LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389test -z "$LN_S" && LN_S="ln -s"
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404if test -n "${ZSH_VERSION+set}"; then
9405   setopt NO_GLOB_SUBST
9406fi
9407
9408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9409$as_echo_n "checking for objdir... " >&6; }
9410if ${lt_cv_objdir+:} false; then :
9411  $as_echo_n "(cached) " >&6
9412else
9413  rm -f .libs 2>/dev/null
9414mkdir .libs 2>/dev/null
9415if test -d .libs; then
9416  lt_cv_objdir=.libs
9417else
9418  # MS-DOS does not allow filenames that begin with a dot.
9419  lt_cv_objdir=_libs
9420fi
9421rmdir .libs 2>/dev/null
9422fi
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9424$as_echo "$lt_cv_objdir" >&6; }
9425objdir=$lt_cv_objdir
9426
9427
9428
9429
9430
9431cat >>confdefs.h <<_ACEOF
9432#define LT_OBJDIR "$lt_cv_objdir/"
9433_ACEOF
9434
9435
9436
9437
9438case $host_os in
9439aix3*)
9440  # AIX sometimes has problems with the GCC collect2 program.  For some
9441  # reason, if we set the COLLECT_NAMES environment variable, the problems
9442  # vanish in a puff of smoke.
9443  if test set != "${COLLECT_NAMES+set}"; then
9444    COLLECT_NAMES=
9445    export COLLECT_NAMES
9446  fi
9447  ;;
9448esac
9449
9450# Global variables:
9451ofile=libtool
9452can_build_shared=yes
9453
9454# All known linkers require a '.a' archive for static linking (except MSVC,
9455# which needs '.lib').
9456libext=a
9457
9458with_gnu_ld=$lt_cv_prog_gnu_ld
9459
9460old_CC=$CC
9461old_CFLAGS=$CFLAGS
9462
9463# Set sane defaults for various variables
9464test -z "$CC" && CC=cc
9465test -z "$LTCC" && LTCC=$CC
9466test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9467test -z "$LD" && LD=ld
9468test -z "$ac_objext" && ac_objext=o
9469
9470func_cc_basename $compiler
9471cc_basename=$func_cc_basename_result
9472
9473
9474# Only perform the check for file, if the check method requires it
9475test -z "$MAGIC_CMD" && MAGIC_CMD=file
9476case $deplibs_check_method in
9477file_magic*)
9478  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9479    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9480$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9481if ${lt_cv_path_MAGIC_CMD+:} false; then :
9482  $as_echo_n "(cached) " >&6
9483else
9484  case $MAGIC_CMD in
9485[\\/*] |  ?:[\\/]*)
9486  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9487  ;;
9488*)
9489  lt_save_MAGIC_CMD=$MAGIC_CMD
9490  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9491  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9492  for ac_dir in $ac_dummy; do
9493    IFS=$lt_save_ifs
9494    test -z "$ac_dir" && ac_dir=.
9495    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9496      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9497      if test -n "$file_magic_test_file"; then
9498	case $deplibs_check_method in
9499	"file_magic "*)
9500	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9501	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9502	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9503	    $EGREP "$file_magic_regex" > /dev/null; then
9504	    :
9505	  else
9506	    cat <<_LT_EOF 1>&2
9507
9508*** Warning: the command libtool uses to detect shared libraries,
9509*** $file_magic_cmd, produces output that libtool cannot recognize.
9510*** The result is that libtool may fail to recognize shared libraries
9511*** as such.  This will affect the creation of libtool libraries that
9512*** depend on shared libraries, but programs linked with such libtool
9513*** libraries will work regardless of this problem.  Nevertheless, you
9514*** may want to report the problem to your system manager and/or to
9515*** bug-libtool@gnu.org
9516
9517_LT_EOF
9518	  fi ;;
9519	esac
9520      fi
9521      break
9522    fi
9523  done
9524  IFS=$lt_save_ifs
9525  MAGIC_CMD=$lt_save_MAGIC_CMD
9526  ;;
9527esac
9528fi
9529
9530MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9531if test -n "$MAGIC_CMD"; then
9532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9533$as_echo "$MAGIC_CMD" >&6; }
9534else
9535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536$as_echo "no" >&6; }
9537fi
9538
9539
9540
9541
9542
9543if test -z "$lt_cv_path_MAGIC_CMD"; then
9544  if test -n "$ac_tool_prefix"; then
9545    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9546$as_echo_n "checking for file... " >&6; }
9547if ${lt_cv_path_MAGIC_CMD+:} false; then :
9548  $as_echo_n "(cached) " >&6
9549else
9550  case $MAGIC_CMD in
9551[\\/*] |  ?:[\\/]*)
9552  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9553  ;;
9554*)
9555  lt_save_MAGIC_CMD=$MAGIC_CMD
9556  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9557  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9558  for ac_dir in $ac_dummy; do
9559    IFS=$lt_save_ifs
9560    test -z "$ac_dir" && ac_dir=.
9561    if test -f "$ac_dir/file"; then
9562      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9563      if test -n "$file_magic_test_file"; then
9564	case $deplibs_check_method in
9565	"file_magic "*)
9566	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9567	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9568	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9569	    $EGREP "$file_magic_regex" > /dev/null; then
9570	    :
9571	  else
9572	    cat <<_LT_EOF 1>&2
9573
9574*** Warning: the command libtool uses to detect shared libraries,
9575*** $file_magic_cmd, produces output that libtool cannot recognize.
9576*** The result is that libtool may fail to recognize shared libraries
9577*** as such.  This will affect the creation of libtool libraries that
9578*** depend on shared libraries, but programs linked with such libtool
9579*** libraries will work regardless of this problem.  Nevertheless, you
9580*** may want to report the problem to your system manager and/or to
9581*** bug-libtool@gnu.org
9582
9583_LT_EOF
9584	  fi ;;
9585	esac
9586      fi
9587      break
9588    fi
9589  done
9590  IFS=$lt_save_ifs
9591  MAGIC_CMD=$lt_save_MAGIC_CMD
9592  ;;
9593esac
9594fi
9595
9596MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9597if test -n "$MAGIC_CMD"; then
9598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9599$as_echo "$MAGIC_CMD" >&6; }
9600else
9601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602$as_echo "no" >&6; }
9603fi
9604
9605
9606  else
9607    MAGIC_CMD=:
9608  fi
9609fi
9610
9611  fi
9612  ;;
9613esac
9614
9615# Use C for the default configuration in the libtool script
9616
9617lt_save_CC=$CC
9618ac_ext=c
9619ac_cpp='$CPP $CPPFLAGS'
9620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622ac_compiler_gnu=$ac_cv_c_compiler_gnu
9623
9624
9625# Source file extension for C test sources.
9626ac_ext=c
9627
9628# Object file extension for compiled C test sources.
9629objext=o
9630objext=$objext
9631
9632# Code to be used in simple compile tests
9633lt_simple_compile_test_code="int some_variable = 0;"
9634
9635# Code to be used in simple link tests
9636lt_simple_link_test_code='int main(){return(0);}'
9637
9638
9639
9640
9641
9642
9643
9644# If no C compiler was specified, use CC.
9645LTCC=${LTCC-"$CC"}
9646
9647# If no C compiler flags were specified, use CFLAGS.
9648LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9649
9650# Allow CC to be a program name with arguments.
9651compiler=$CC
9652
9653# Save the default compiler, since it gets overwritten when the other
9654# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9655compiler_DEFAULT=$CC
9656
9657# save warnings/boilerplate of simple test code
9658ac_outfile=conftest.$ac_objext
9659echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9660eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9661_lt_compiler_boilerplate=`cat conftest.err`
9662$RM conftest*
9663
9664ac_outfile=conftest.$ac_objext
9665echo "$lt_simple_link_test_code" >conftest.$ac_ext
9666eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9667_lt_linker_boilerplate=`cat conftest.err`
9668$RM -r conftest*
9669
9670
9671## CAVEAT EMPTOR:
9672## There is no encapsulation within the following macros, do not change
9673## the running order or otherwise move them around unless you know exactly
9674## what you are doing...
9675if test -n "$compiler"; then
9676
9677lt_prog_compiler_no_builtin_flag=
9678
9679if test yes = "$GCC"; then
9680  case $cc_basename in
9681  nvcc*)
9682    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9683  *)
9684    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9685  esac
9686
9687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9688$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9689if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9690  $as_echo_n "(cached) " >&6
9691else
9692  lt_cv_prog_compiler_rtti_exceptions=no
9693   ac_outfile=conftest.$ac_objext
9694   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9695   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9696   # Insert the option either (1) after the last *FLAGS variable, or
9697   # (2) before a word containing "conftest.", or (3) at the end.
9698   # Note that $ac_compile itself does not contain backslashes and begins
9699   # with a dollar sign (not a hyphen), so the echo should work correctly.
9700   # The option is referenced via a variable to avoid confusing sed.
9701   lt_compile=`echo "$ac_compile" | $SED \
9702   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9703   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9704   -e 's:$: $lt_compiler_flag:'`
9705   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9706   (eval "$lt_compile" 2>conftest.err)
9707   ac_status=$?
9708   cat conftest.err >&5
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   if (exit $ac_status) && test -s "$ac_outfile"; then
9711     # The compiler can only warn and ignore the option if not recognized
9712     # So say no if there are warnings other than the usual output.
9713     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9714     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9715     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9716       lt_cv_prog_compiler_rtti_exceptions=yes
9717     fi
9718   fi
9719   $RM conftest*
9720
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9723$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9724
9725if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9726    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9727else
9728    :
9729fi
9730
9731fi
9732
9733
9734
9735
9736
9737
9738  lt_prog_compiler_wl=
9739lt_prog_compiler_pic=
9740lt_prog_compiler_static=
9741
9742
9743  if test yes = "$GCC"; then
9744    lt_prog_compiler_wl='-Wl,'
9745    lt_prog_compiler_static='-static'
9746
9747    case $host_os in
9748      aix*)
9749      # All AIX code is PIC.
9750      if test ia64 = "$host_cpu"; then
9751	# AIX 5 now supports IA64 processor
9752	lt_prog_compiler_static='-Bstatic'
9753      fi
9754      lt_prog_compiler_pic='-fPIC'
9755      ;;
9756
9757    amigaos*)
9758      case $host_cpu in
9759      powerpc)
9760            # see comment about AmigaOS4 .so support
9761            lt_prog_compiler_pic='-fPIC'
9762        ;;
9763      m68k)
9764            # FIXME: we need at least 68020 code to build shared libraries, but
9765            # adding the '-m68020' flag to GCC prevents building anything better,
9766            # like '-m68040'.
9767            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9768        ;;
9769      esac
9770      ;;
9771
9772    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9773      # PIC is the default for these OSes.
9774      ;;
9775
9776    mingw* | cygwin* | pw32* | os2* | cegcc*)
9777      # This hack is so that the source file can tell whether it is being
9778      # built for inclusion in a dll (and should export symbols for example).
9779      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9780      # (--disable-auto-import) libraries
9781      lt_prog_compiler_pic='-DDLL_EXPORT'
9782      case $host_os in
9783      os2*)
9784	lt_prog_compiler_static='$wl-static'
9785	;;
9786      esac
9787      ;;
9788
9789    darwin* | rhapsody*)
9790      # PIC is the default on this platform
9791      # Common symbols not allowed in MH_DYLIB files
9792      lt_prog_compiler_pic='-fno-common'
9793      ;;
9794
9795    haiku*)
9796      # PIC is the default for Haiku.
9797      # The "-static" flag exists, but is broken.
9798      lt_prog_compiler_static=
9799      ;;
9800
9801    hpux*)
9802      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9803      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9804      # sets the default TLS model and affects inlining.
9805      case $host_cpu in
9806      hppa*64*)
9807	# +Z the default
9808	;;
9809      *)
9810	lt_prog_compiler_pic='-fPIC'
9811	;;
9812      esac
9813      ;;
9814
9815    interix[3-9]*)
9816      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9817      # Instead, we relocate shared libraries at runtime.
9818      ;;
9819
9820    msdosdjgpp*)
9821      # Just because we use GCC doesn't mean we suddenly get shared libraries
9822      # on systems that don't support them.
9823      lt_prog_compiler_can_build_shared=no
9824      enable_shared=no
9825      ;;
9826
9827    *nto* | *qnx*)
9828      # QNX uses GNU C++, but need to define -shared option too, otherwise
9829      # it will coredump.
9830      lt_prog_compiler_pic='-fPIC -shared'
9831      ;;
9832
9833    sysv4*MP*)
9834      if test -d /usr/nec; then
9835	lt_prog_compiler_pic=-Kconform_pic
9836      fi
9837      ;;
9838
9839    *)
9840      lt_prog_compiler_pic='-fPIC'
9841      ;;
9842    esac
9843
9844    case $cc_basename in
9845    nvcc*) # Cuda Compiler Driver 2.2
9846      lt_prog_compiler_wl='-Xlinker '
9847      if test -n "$lt_prog_compiler_pic"; then
9848        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9849      fi
9850      ;;
9851    esac
9852  else
9853    # PORTME Check for flag to pass linker flags through the system compiler.
9854    case $host_os in
9855    aix*)
9856      lt_prog_compiler_wl='-Wl,'
9857      if test ia64 = "$host_cpu"; then
9858	# AIX 5 now supports IA64 processor
9859	lt_prog_compiler_static='-Bstatic'
9860      else
9861	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9862      fi
9863      ;;
9864
9865    darwin* | rhapsody*)
9866      # PIC is the default on this platform
9867      # Common symbols not allowed in MH_DYLIB files
9868      lt_prog_compiler_pic='-fno-common'
9869      case $cc_basename in
9870      nagfor*)
9871        # NAG Fortran compiler
9872        lt_prog_compiler_wl='-Wl,-Wl,,'
9873        lt_prog_compiler_pic='-PIC'
9874        lt_prog_compiler_static='-Bstatic'
9875        ;;
9876      esac
9877      ;;
9878
9879    mingw* | cygwin* | pw32* | os2* | cegcc*)
9880      # This hack is so that the source file can tell whether it is being
9881      # built for inclusion in a dll (and should export symbols for example).
9882      lt_prog_compiler_pic='-DDLL_EXPORT'
9883      case $host_os in
9884      os2*)
9885	lt_prog_compiler_static='$wl-static'
9886	;;
9887      esac
9888      ;;
9889
9890    hpux9* | hpux10* | hpux11*)
9891      lt_prog_compiler_wl='-Wl,'
9892      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9893      # not for PA HP-UX.
9894      case $host_cpu in
9895      hppa*64*|ia64*)
9896	# +Z the default
9897	;;
9898      *)
9899	lt_prog_compiler_pic='+Z'
9900	;;
9901      esac
9902      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9903      lt_prog_compiler_static='$wl-a ${wl}archive'
9904      ;;
9905
9906    irix5* | irix6* | nonstopux*)
9907      lt_prog_compiler_wl='-Wl,'
9908      # PIC (with -KPIC) is the default.
9909      lt_prog_compiler_static='-non_shared'
9910      ;;
9911
9912    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9913      case $cc_basename in
9914      # old Intel for x86_64, which still supported -KPIC.
9915      ecc*)
9916	lt_prog_compiler_wl='-Wl,'
9917	lt_prog_compiler_pic='-KPIC'
9918	lt_prog_compiler_static='-static'
9919        ;;
9920      # icc used to be incompatible with GCC.
9921      # ICC 10 doesn't accept -KPIC any more.
9922      icc* | ifort*)
9923	lt_prog_compiler_wl='-Wl,'
9924	lt_prog_compiler_pic='-fPIC'
9925	lt_prog_compiler_static='-static'
9926        ;;
9927      # Lahey Fortran 8.1.
9928      lf95*)
9929	lt_prog_compiler_wl='-Wl,'
9930	lt_prog_compiler_pic='--shared'
9931	lt_prog_compiler_static='--static'
9932	;;
9933      nagfor*)
9934	# NAG Fortran compiler
9935	lt_prog_compiler_wl='-Wl,-Wl,,'
9936	lt_prog_compiler_pic='-PIC'
9937	lt_prog_compiler_static='-Bstatic'
9938	;;
9939      tcc*)
9940	# Fabrice Bellard et al's Tiny C Compiler
9941	lt_prog_compiler_wl='-Wl,'
9942	lt_prog_compiler_pic='-fPIC'
9943	lt_prog_compiler_static='-static'
9944	;;
9945      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9946        # Portland Group compilers (*not* the Pentium gcc compiler,
9947	# which looks to be a dead project)
9948	lt_prog_compiler_wl='-Wl,'
9949	lt_prog_compiler_pic='-fpic'
9950	lt_prog_compiler_static='-Bstatic'
9951        ;;
9952      ccc*)
9953        lt_prog_compiler_wl='-Wl,'
9954        # All Alpha code is PIC.
9955        lt_prog_compiler_static='-non_shared'
9956        ;;
9957      xl* | bgxl* | bgf* | mpixl*)
9958	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9959	lt_prog_compiler_wl='-Wl,'
9960	lt_prog_compiler_pic='-qpic'
9961	lt_prog_compiler_static='-qstaticlink'
9962	;;
9963      *)
9964	case `$CC -V 2>&1 | sed 5q` in
9965	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9966	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9967	  lt_prog_compiler_pic='-KPIC'
9968	  lt_prog_compiler_static='-Bstatic'
9969	  lt_prog_compiler_wl=''
9970	  ;;
9971	*Sun\ F* | *Sun*Fortran*)
9972	  lt_prog_compiler_pic='-KPIC'
9973	  lt_prog_compiler_static='-Bstatic'
9974	  lt_prog_compiler_wl='-Qoption ld '
9975	  ;;
9976	*Sun\ C*)
9977	  # Sun C 5.9
9978	  lt_prog_compiler_pic='-KPIC'
9979	  lt_prog_compiler_static='-Bstatic'
9980	  lt_prog_compiler_wl='-Wl,'
9981	  ;;
9982        *Intel*\ [CF]*Compiler*)
9983	  lt_prog_compiler_wl='-Wl,'
9984	  lt_prog_compiler_pic='-fPIC'
9985	  lt_prog_compiler_static='-static'
9986	  ;;
9987	*Portland\ Group*)
9988	  lt_prog_compiler_wl='-Wl,'
9989	  lt_prog_compiler_pic='-fpic'
9990	  lt_prog_compiler_static='-Bstatic'
9991	  ;;
9992	esac
9993	;;
9994      esac
9995      ;;
9996
9997    newsos6)
9998      lt_prog_compiler_pic='-KPIC'
9999      lt_prog_compiler_static='-Bstatic'
10000      ;;
10001
10002    *nto* | *qnx*)
10003      # QNX uses GNU C++, but need to define -shared option too, otherwise
10004      # it will coredump.
10005      lt_prog_compiler_pic='-fPIC -shared'
10006      ;;
10007
10008    osf3* | osf4* | osf5*)
10009      lt_prog_compiler_wl='-Wl,'
10010      # All OSF/1 code is PIC.
10011      lt_prog_compiler_static='-non_shared'
10012      ;;
10013
10014    rdos*)
10015      lt_prog_compiler_static='-non_shared'
10016      ;;
10017
10018    solaris*)
10019      lt_prog_compiler_pic='-KPIC'
10020      lt_prog_compiler_static='-Bstatic'
10021      case $cc_basename in
10022      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10023	lt_prog_compiler_wl='-Qoption ld ';;
10024      *)
10025	lt_prog_compiler_wl='-Wl,';;
10026      esac
10027      ;;
10028
10029    sunos4*)
10030      lt_prog_compiler_wl='-Qoption ld '
10031      lt_prog_compiler_pic='-PIC'
10032      lt_prog_compiler_static='-Bstatic'
10033      ;;
10034
10035    sysv4 | sysv4.2uw2* | sysv4.3*)
10036      lt_prog_compiler_wl='-Wl,'
10037      lt_prog_compiler_pic='-KPIC'
10038      lt_prog_compiler_static='-Bstatic'
10039      ;;
10040
10041    sysv4*MP*)
10042      if test -d /usr/nec; then
10043	lt_prog_compiler_pic='-Kconform_pic'
10044	lt_prog_compiler_static='-Bstatic'
10045      fi
10046      ;;
10047
10048    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10049      lt_prog_compiler_wl='-Wl,'
10050      lt_prog_compiler_pic='-KPIC'
10051      lt_prog_compiler_static='-Bstatic'
10052      ;;
10053
10054    unicos*)
10055      lt_prog_compiler_wl='-Wl,'
10056      lt_prog_compiler_can_build_shared=no
10057      ;;
10058
10059    uts4*)
10060      lt_prog_compiler_pic='-pic'
10061      lt_prog_compiler_static='-Bstatic'
10062      ;;
10063
10064    *)
10065      lt_prog_compiler_can_build_shared=no
10066      ;;
10067    esac
10068  fi
10069
10070case $host_os in
10071  # For platforms that do not support PIC, -DPIC is meaningless:
10072  *djgpp*)
10073    lt_prog_compiler_pic=
10074    ;;
10075  *)
10076    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10077    ;;
10078esac
10079
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10081$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10082if ${lt_cv_prog_compiler_pic+:} false; then :
10083  $as_echo_n "(cached) " >&6
10084else
10085  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10086fi
10087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10088$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10089lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10090
10091#
10092# Check to make sure the PIC flag actually works.
10093#
10094if test -n "$lt_prog_compiler_pic"; then
10095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10096$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10097if ${lt_cv_prog_compiler_pic_works+:} false; then :
10098  $as_echo_n "(cached) " >&6
10099else
10100  lt_cv_prog_compiler_pic_works=no
10101   ac_outfile=conftest.$ac_objext
10102   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10103   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10104   # Insert the option either (1) after the last *FLAGS variable, or
10105   # (2) before a word containing "conftest.", or (3) at the end.
10106   # Note that $ac_compile itself does not contain backslashes and begins
10107   # with a dollar sign (not a hyphen), so the echo should work correctly.
10108   # The option is referenced via a variable to avoid confusing sed.
10109   lt_compile=`echo "$ac_compile" | $SED \
10110   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10111   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10112   -e 's:$: $lt_compiler_flag:'`
10113   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10114   (eval "$lt_compile" 2>conftest.err)
10115   ac_status=$?
10116   cat conftest.err >&5
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   if (exit $ac_status) && test -s "$ac_outfile"; then
10119     # The compiler can only warn and ignore the option if not recognized
10120     # So say no if there are warnings other than the usual output.
10121     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10122     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10123     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10124       lt_cv_prog_compiler_pic_works=yes
10125     fi
10126   fi
10127   $RM conftest*
10128
10129fi
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10131$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10132
10133if test yes = "$lt_cv_prog_compiler_pic_works"; then
10134    case $lt_prog_compiler_pic in
10135     "" | " "*) ;;
10136     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10137     esac
10138else
10139    lt_prog_compiler_pic=
10140     lt_prog_compiler_can_build_shared=no
10141fi
10142
10143fi
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155#
10156# Check to make sure the static flag actually works.
10157#
10158wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10160$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10161if ${lt_cv_prog_compiler_static_works+:} false; then :
10162  $as_echo_n "(cached) " >&6
10163else
10164  lt_cv_prog_compiler_static_works=no
10165   save_LDFLAGS=$LDFLAGS
10166   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10167   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10168   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10169     # The linker can only warn and ignore the option if not recognized
10170     # So say no if there are warnings
10171     if test -s conftest.err; then
10172       # Append any errors to the config.log.
10173       cat conftest.err 1>&5
10174       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10175       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10176       if diff conftest.exp conftest.er2 >/dev/null; then
10177         lt_cv_prog_compiler_static_works=yes
10178       fi
10179     else
10180       lt_cv_prog_compiler_static_works=yes
10181     fi
10182   fi
10183   $RM -r conftest*
10184   LDFLAGS=$save_LDFLAGS
10185
10186fi
10187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10188$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10189
10190if test yes = "$lt_cv_prog_compiler_static_works"; then
10191    :
10192else
10193    lt_prog_compiler_static=
10194fi
10195
10196
10197
10198
10199
10200
10201
10202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10203$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10204if ${lt_cv_prog_compiler_c_o+:} false; then :
10205  $as_echo_n "(cached) " >&6
10206else
10207  lt_cv_prog_compiler_c_o=no
10208   $RM -r conftest 2>/dev/null
10209   mkdir conftest
10210   cd conftest
10211   mkdir out
10212   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10213
10214   lt_compiler_flag="-o out/conftest2.$ac_objext"
10215   # Insert the option either (1) after the last *FLAGS variable, or
10216   # (2) before a word containing "conftest.", or (3) at the end.
10217   # Note that $ac_compile itself does not contain backslashes and begins
10218   # with a dollar sign (not a hyphen), so the echo should work correctly.
10219   lt_compile=`echo "$ac_compile" | $SED \
10220   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10221   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10222   -e 's:$: $lt_compiler_flag:'`
10223   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10224   (eval "$lt_compile" 2>out/conftest.err)
10225   ac_status=$?
10226   cat out/conftest.err >&5
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10229   then
10230     # The compiler can only warn and ignore the option if not recognized
10231     # So say no if there are warnings
10232     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10233     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10234     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10235       lt_cv_prog_compiler_c_o=yes
10236     fi
10237   fi
10238   chmod u+w . 2>&5
10239   $RM conftest*
10240   # SGI C++ compiler will create directory out/ii_files/ for
10241   # template instantiation
10242   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10243   $RM out/* && rmdir out
10244   cd ..
10245   $RM -r conftest
10246   $RM conftest*
10247
10248fi
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10250$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10251
10252
10253
10254
10255
10256
10257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10258$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10259if ${lt_cv_prog_compiler_c_o+:} false; then :
10260  $as_echo_n "(cached) " >&6
10261else
10262  lt_cv_prog_compiler_c_o=no
10263   $RM -r conftest 2>/dev/null
10264   mkdir conftest
10265   cd conftest
10266   mkdir out
10267   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10268
10269   lt_compiler_flag="-o out/conftest2.$ac_objext"
10270   # Insert the option either (1) after the last *FLAGS variable, or
10271   # (2) before a word containing "conftest.", or (3) at the end.
10272   # Note that $ac_compile itself does not contain backslashes and begins
10273   # with a dollar sign (not a hyphen), so the echo should work correctly.
10274   lt_compile=`echo "$ac_compile" | $SED \
10275   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10276   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10277   -e 's:$: $lt_compiler_flag:'`
10278   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10279   (eval "$lt_compile" 2>out/conftest.err)
10280   ac_status=$?
10281   cat out/conftest.err >&5
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10284   then
10285     # The compiler can only warn and ignore the option if not recognized
10286     # So say no if there are warnings
10287     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10288     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10289     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10290       lt_cv_prog_compiler_c_o=yes
10291     fi
10292   fi
10293   chmod u+w . 2>&5
10294   $RM conftest*
10295   # SGI C++ compiler will create directory out/ii_files/ for
10296   # template instantiation
10297   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10298   $RM out/* && rmdir out
10299   cd ..
10300   $RM -r conftest
10301   $RM conftest*
10302
10303fi
10304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10305$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10306
10307
10308
10309
10310hard_links=nottested
10311if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10312  # do not overwrite the value of need_locks provided by the user
10313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10314$as_echo_n "checking if we can lock with hard links... " >&6; }
10315  hard_links=yes
10316  $RM conftest*
10317  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10318  touch conftest.a
10319  ln conftest.a conftest.b 2>&5 || hard_links=no
10320  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10322$as_echo "$hard_links" >&6; }
10323  if test no = "$hard_links"; then
10324    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10325$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10326    need_locks=warn
10327  fi
10328else
10329  need_locks=no
10330fi
10331
10332
10333
10334
10335
10336
10337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10338$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10339
10340  runpath_var=
10341  allow_undefined_flag=
10342  always_export_symbols=no
10343  archive_cmds=
10344  archive_expsym_cmds=
10345  compiler_needs_object=no
10346  enable_shared_with_static_runtimes=no
10347  export_dynamic_flag_spec=
10348  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10349  hardcode_automatic=no
10350  hardcode_direct=no
10351  hardcode_direct_absolute=no
10352  hardcode_libdir_flag_spec=
10353  hardcode_libdir_separator=
10354  hardcode_minus_L=no
10355  hardcode_shlibpath_var=unsupported
10356  inherit_rpath=no
10357  link_all_deplibs=unknown
10358  module_cmds=
10359  module_expsym_cmds=
10360  old_archive_from_new_cmds=
10361  old_archive_from_expsyms_cmds=
10362  thread_safe_flag_spec=
10363  whole_archive_flag_spec=
10364  # include_expsyms should be a list of space-separated symbols to be *always*
10365  # included in the symbol list
10366  include_expsyms=
10367  # exclude_expsyms can be an extended regexp of symbols to exclude
10368  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10369  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10370  # as well as any symbol that contains 'd'.
10371  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10372  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10373  # platforms (ab)use it in PIC code, but their linkers get confused if
10374  # the symbol is explicitly referenced.  Since portable code cannot
10375  # rely on this symbol name, it's probably fine to never include it in
10376  # preloaded symbol tables.
10377  # Exclude shared library initialization/finalization symbols.
10378  extract_expsyms_cmds=
10379
10380  case $host_os in
10381  cygwin* | mingw* | pw32* | cegcc*)
10382    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10383    # When not using gcc, we currently assume that we are using
10384    # Microsoft Visual C++.
10385    if test yes != "$GCC"; then
10386      with_gnu_ld=no
10387    fi
10388    ;;
10389  interix*)
10390    # we just hope/assume this is gcc and not c89 (= MSVC++)
10391    with_gnu_ld=yes
10392    ;;
10393  openbsd* | bitrig*)
10394    with_gnu_ld=no
10395    ;;
10396  esac
10397
10398  ld_shlibs=yes
10399
10400  # On some targets, GNU ld is compatible enough with the native linker
10401  # that we're better off using the native interface for both.
10402  lt_use_gnu_ld_interface=no
10403  if test yes = "$with_gnu_ld"; then
10404    case $host_os in
10405      aix*)
10406	# The AIX port of GNU ld has always aspired to compatibility
10407	# with the native linker.  However, as the warning in the GNU ld
10408	# block says, versions before 2.19.5* couldn't really create working
10409	# shared libraries, regardless of the interface used.
10410	case `$LD -v 2>&1` in
10411	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10412	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10413	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10414	  *)
10415	    lt_use_gnu_ld_interface=yes
10416	    ;;
10417	esac
10418	;;
10419      *)
10420	lt_use_gnu_ld_interface=yes
10421	;;
10422    esac
10423  fi
10424
10425  if test yes = "$lt_use_gnu_ld_interface"; then
10426    # If archive_cmds runs LD, not CC, wlarc should be empty
10427    wlarc='$wl'
10428
10429    # Set some defaults for GNU ld with shared library support. These
10430    # are reset later if shared libraries are not supported. Putting them
10431    # here allows them to be overridden if necessary.
10432    runpath_var=LD_RUN_PATH
10433    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10434    export_dynamic_flag_spec='$wl--export-dynamic'
10435    # ancient GNU ld didn't support --whole-archive et. al.
10436    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10437      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10438    else
10439      whole_archive_flag_spec=
10440    fi
10441    supports_anon_versioning=no
10442    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10443      *GNU\ gold*) supports_anon_versioning=yes ;;
10444      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10445      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10446      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10447      *\ 2.11.*) ;; # other 2.11 versions
10448      *) supports_anon_versioning=yes ;;
10449    esac
10450
10451    # See if GNU ld supports shared libraries.
10452    case $host_os in
10453    aix[3-9]*)
10454      # On AIX/PPC, the GNU linker is very broken
10455      if test ia64 != "$host_cpu"; then
10456	ld_shlibs=no
10457	cat <<_LT_EOF 1>&2
10458
10459*** Warning: the GNU linker, at least up to release 2.19, is reported
10460*** to be unable to reliably create shared libraries on AIX.
10461*** Therefore, libtool is disabling shared libraries support.  If you
10462*** really care for shared libraries, you may want to install binutils
10463*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10464*** You will then need to restart the configuration process.
10465
10466_LT_EOF
10467      fi
10468      ;;
10469
10470    amigaos*)
10471      case $host_cpu in
10472      powerpc)
10473            # see comment about AmigaOS4 .so support
10474            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10475            archive_expsym_cmds=''
10476        ;;
10477      m68k)
10478            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)'
10479            hardcode_libdir_flag_spec='-L$libdir'
10480            hardcode_minus_L=yes
10481        ;;
10482      esac
10483      ;;
10484
10485    beos*)
10486      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10487	allow_undefined_flag=unsupported
10488	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10489	# support --undefined.  This deserves some investigation.  FIXME
10490	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10491      else
10492	ld_shlibs=no
10493      fi
10494      ;;
10495
10496    cygwin* | mingw* | pw32* | cegcc*)
10497      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10498      # as there is no search path for DLLs.
10499      hardcode_libdir_flag_spec='-L$libdir'
10500      export_dynamic_flag_spec='$wl--export-all-symbols'
10501      allow_undefined_flag=unsupported
10502      always_export_symbols=no
10503      enable_shared_with_static_runtimes=yes
10504      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'
10505      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10506
10507      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10508        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10509	# If the export-symbols file already is a .def file, use it as
10510	# is; otherwise, prepend EXPORTS...
10511	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10512          cp $export_symbols $output_objdir/$soname.def;
10513        else
10514          echo EXPORTS > $output_objdir/$soname.def;
10515          cat $export_symbols >> $output_objdir/$soname.def;
10516        fi~
10517        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10518      else
10519	ld_shlibs=no
10520      fi
10521      ;;
10522
10523    haiku*)
10524      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10525      link_all_deplibs=yes
10526      ;;
10527
10528    os2*)
10529      hardcode_libdir_flag_spec='-L$libdir'
10530      hardcode_minus_L=yes
10531      allow_undefined_flag=unsupported
10532      shrext_cmds=.dll
10533      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10534	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10535	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10536	$ECHO EXPORTS >> $output_objdir/$libname.def~
10537	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10538	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10539	emximp -o $lib $output_objdir/$libname.def'
10540      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10541	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10542	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10543	$ECHO EXPORTS >> $output_objdir/$libname.def~
10544	prefix_cmds="$SED"~
10545	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10546	  prefix_cmds="$prefix_cmds -e 1d";
10547	fi~
10548	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10549	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10550	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10551	emximp -o $lib $output_objdir/$libname.def'
10552      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10553      enable_shared_with_static_runtimes=yes
10554      ;;
10555
10556    interix[3-9]*)
10557      hardcode_direct=no
10558      hardcode_shlibpath_var=no
10559      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10560      export_dynamic_flag_spec='$wl-E'
10561      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10562      # Instead, shared libraries are loaded at an image base (0x10000000 by
10563      # default) and relocated if they conflict, which is a slow very memory
10564      # consuming and fragmenting process.  To avoid this, we pick a random,
10565      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10566      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10567      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10568      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'
10569      ;;
10570
10571    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10572      tmp_diet=no
10573      if test linux-dietlibc = "$host_os"; then
10574	case $cc_basename in
10575	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10576	esac
10577      fi
10578      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10579	 && test no = "$tmp_diet"
10580      then
10581	tmp_addflag=' $pic_flag'
10582	tmp_sharedflag='-shared'
10583	case $cc_basename,$host_cpu in
10584        pgcc*)				# Portland Group C compiler
10585	  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'
10586	  tmp_addflag=' $pic_flag'
10587	  ;;
10588	pgf77* | pgf90* | pgf95* | pgfortran*)
10589					# Portland Group f77 and f90 compilers
10590	  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'
10591	  tmp_addflag=' $pic_flag -Mnomain' ;;
10592	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10593	  tmp_addflag=' -i_dynamic' ;;
10594	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10595	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10596	ifc* | ifort*)			# Intel Fortran compiler
10597	  tmp_addflag=' -nofor_main' ;;
10598	lf95*)				# Lahey Fortran 8.1
10599	  whole_archive_flag_spec=
10600	  tmp_sharedflag='--shared' ;;
10601        nagfor*)                        # NAGFOR 5.3
10602          tmp_sharedflag='-Wl,-shared' ;;
10603	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10604	  tmp_sharedflag='-qmkshrobj'
10605	  tmp_addflag= ;;
10606	nvcc*)	# Cuda Compiler Driver 2.2
10607	  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'
10608	  compiler_needs_object=yes
10609	  ;;
10610	esac
10611	case `$CC -V 2>&1 | sed 5q` in
10612	*Sun\ C*)			# Sun C 5.9
10613	  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'
10614	  compiler_needs_object=yes
10615	  tmp_sharedflag='-G' ;;
10616	*Sun\ F*)			# Sun Fortran 8.3
10617	  tmp_sharedflag='-G' ;;
10618	esac
10619	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10620
10621        if test yes = "$supports_anon_versioning"; then
10622          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10623            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10624            echo "local: *; };" >> $output_objdir/$libname.ver~
10625            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10626        fi
10627
10628	case $cc_basename in
10629	tcc*)
10630	  export_dynamic_flag_spec='-rdynamic'
10631	  ;;
10632	xlf* | bgf* | bgxlf* | mpixlf*)
10633	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10634	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10635	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10636	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10637	  if test yes = "$supports_anon_versioning"; then
10638	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10639              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10640              echo "local: *; };" >> $output_objdir/$libname.ver~
10641              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10642	  fi
10643	  ;;
10644	esac
10645      else
10646        ld_shlibs=no
10647      fi
10648      ;;
10649
10650    netbsd*)
10651      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10652	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10653	wlarc=
10654      else
10655	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10656	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10657      fi
10658      ;;
10659
10660    solaris*)
10661      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10662	ld_shlibs=no
10663	cat <<_LT_EOF 1>&2
10664
10665*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10666*** create shared libraries on Solaris systems.  Therefore, libtool
10667*** is disabling shared libraries support.  We urge you to upgrade GNU
10668*** binutils to release 2.9.1 or newer.  Another option is to modify
10669*** your PATH or compiler configuration so that the native linker is
10670*** used, and then restart.
10671
10672_LT_EOF
10673      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10674	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10675	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10676      else
10677	ld_shlibs=no
10678      fi
10679      ;;
10680
10681    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10682      case `$LD -v 2>&1` in
10683        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10684	ld_shlibs=no
10685	cat <<_LT_EOF 1>&2
10686
10687*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10688*** reliably create shared libraries on SCO systems.  Therefore, libtool
10689*** is disabling shared libraries support.  We urge you to upgrade GNU
10690*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10691*** your PATH or compiler configuration so that the native linker is
10692*** used, and then restart.
10693
10694_LT_EOF
10695	;;
10696	*)
10697	  # For security reasons, it is highly recommended that you always
10698	  # use absolute paths for naming shared libraries, and exclude the
10699	  # DT_RUNPATH tag from executables and libraries.  But doing so
10700	  # requires that you compile everything twice, which is a pain.
10701	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10702	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10703	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10704	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10705	  else
10706	    ld_shlibs=no
10707	  fi
10708	;;
10709      esac
10710      ;;
10711
10712    sunos4*)
10713      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10714      wlarc=
10715      hardcode_direct=yes
10716      hardcode_shlibpath_var=no
10717      ;;
10718
10719    *)
10720      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10721	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10722	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10723      else
10724	ld_shlibs=no
10725      fi
10726      ;;
10727    esac
10728
10729    if test no = "$ld_shlibs"; then
10730      runpath_var=
10731      hardcode_libdir_flag_spec=
10732      export_dynamic_flag_spec=
10733      whole_archive_flag_spec=
10734    fi
10735  else
10736    # PORTME fill in a description of your system's linker (not GNU ld)
10737    case $host_os in
10738    aix3*)
10739      allow_undefined_flag=unsupported
10740      always_export_symbols=yes
10741      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'
10742      # Note: this linker hardcodes the directories in LIBPATH if there
10743      # are no directories specified by -L.
10744      hardcode_minus_L=yes
10745      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10746	# Neither direct hardcoding nor static linking is supported with a
10747	# broken collect2.
10748	hardcode_direct=unsupported
10749      fi
10750      ;;
10751
10752    aix[4-9]*)
10753      if test ia64 = "$host_cpu"; then
10754	# On IA64, the linker does run time linking by default, so we don't
10755	# have to do anything special.
10756	aix_use_runtimelinking=no
10757	exp_sym_flag='-Bexport'
10758	no_entry_flag=
10759      else
10760	# If we're using GNU nm, then we don't want the "-C" option.
10761	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10762	# Without the "-l" option, or with the "-B" option, AIX nm treats
10763	# weak defined symbols like other global defined symbols, whereas
10764	# GNU nm marks them as "W".
10765	# While the 'weak' keyword is ignored in the Export File, we need
10766	# it in the Import File for the 'aix-soname' feature, so we have
10767	# to replace the "-B" option with "-P" for AIX nm.
10768	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10769	  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'
10770	else
10771	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10772	fi
10773	aix_use_runtimelinking=no
10774
10775	# Test if we are trying to use run time linking or normal
10776	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10777	# have runtime linking enabled, and use it for executables.
10778	# For shared libraries, we enable/disable runtime linking
10779	# depending on the kind of the shared library created -
10780	# when "with_aix_soname,aix_use_runtimelinking" is:
10781	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10782	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10783	#            lib.a           static archive
10784	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10785	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10786	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10787	#            lib.a(lib.so.V) shared, rtl:no
10788	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10789	#            lib.a           static archive
10790	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10791	  for ld_flag in $LDFLAGS; do
10792	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10793	    aix_use_runtimelinking=yes
10794	    break
10795	  fi
10796	  done
10797	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10798	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10799	    # so we don't have lib.a shared libs to link our executables.
10800	    # We have to force runtime linking in this case.
10801	    aix_use_runtimelinking=yes
10802	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10803	  fi
10804	  ;;
10805	esac
10806
10807	exp_sym_flag='-bexport'
10808	no_entry_flag='-bnoentry'
10809      fi
10810
10811      # When large executables or shared objects are built, AIX ld can
10812      # have problems creating the table of contents.  If linking a library
10813      # or program results in "error TOC overflow" add -mminimal-toc to
10814      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10815      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10816
10817      archive_cmds=''
10818      hardcode_direct=yes
10819      hardcode_direct_absolute=yes
10820      hardcode_libdir_separator=':'
10821      link_all_deplibs=yes
10822      file_list_spec='$wl-f,'
10823      case $with_aix_soname,$aix_use_runtimelinking in
10824      aix,*) ;; # traditional, no import file
10825      svr4,* | *,yes) # use import file
10826	# The Import File defines what to hardcode.
10827	hardcode_direct=no
10828	hardcode_direct_absolute=no
10829	;;
10830      esac
10831
10832      if test yes = "$GCC"; then
10833	case $host_os in aix4.[012]|aix4.[012].*)
10834	# We only want to do this on AIX 4.2 and lower, the check
10835	# below for broken collect2 doesn't work under 4.3+
10836	  collect2name=`$CC -print-prog-name=collect2`
10837	  if test -f "$collect2name" &&
10838	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10839	  then
10840	  # We have reworked collect2
10841	  :
10842	  else
10843	  # We have old collect2
10844	  hardcode_direct=unsupported
10845	  # It fails to find uninstalled libraries when the uninstalled
10846	  # path is not listed in the libpath.  Setting hardcode_minus_L
10847	  # to unsupported forces relinking
10848	  hardcode_minus_L=yes
10849	  hardcode_libdir_flag_spec='-L$libdir'
10850	  hardcode_libdir_separator=
10851	  fi
10852	  ;;
10853	esac
10854	shared_flag='-shared'
10855	if test yes = "$aix_use_runtimelinking"; then
10856	  shared_flag="$shared_flag "'$wl-G'
10857	fi
10858	# Need to ensure runtime linking is disabled for the traditional
10859	# shared library, or the linker may eventually find shared libraries
10860	# /with/ Import File - we do not want to mix them.
10861	shared_flag_aix='-shared'
10862	shared_flag_svr4='-shared $wl-G'
10863      else
10864	# not using gcc
10865	if test ia64 = "$host_cpu"; then
10866	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10867	# chokes on -Wl,-G. The following line is correct:
10868	  shared_flag='-G'
10869	else
10870	  if test yes = "$aix_use_runtimelinking"; then
10871	    shared_flag='$wl-G'
10872	  else
10873	    shared_flag='$wl-bM:SRE'
10874	  fi
10875	  shared_flag_aix='$wl-bM:SRE'
10876	  shared_flag_svr4='$wl-G'
10877	fi
10878      fi
10879
10880      export_dynamic_flag_spec='$wl-bexpall'
10881      # It seems that -bexpall does not export symbols beginning with
10882      # underscore (_), so it is better to generate a list of symbols to export.
10883      always_export_symbols=yes
10884      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10885	# Warning - without using the other runtime loading flags (-brtl),
10886	# -berok will link without error, but may produce a broken library.
10887	allow_undefined_flag='-berok'
10888        # Determine the default libpath from the value encoded in an
10889        # empty executable.
10890        if test set = "${lt_cv_aix_libpath+set}"; then
10891  aix_libpath=$lt_cv_aix_libpath
10892else
10893  if ${lt_cv_aix_libpath_+:} false; then :
10894  $as_echo_n "(cached) " >&6
10895else
10896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897/* end confdefs.h.  */
10898
10899int
10900main ()
10901{
10902
10903  ;
10904  return 0;
10905}
10906_ACEOF
10907if ac_fn_c_try_link "$LINENO"; then :
10908
10909  lt_aix_libpath_sed='
10910      /Import File Strings/,/^$/ {
10911	  /^0/ {
10912	      s/^0  *\([^ ]*\) *$/\1/
10913	      p
10914	  }
10915      }'
10916  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10917  # Check for a 64-bit object if we didn't find anything.
10918  if test -z "$lt_cv_aix_libpath_"; then
10919    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10920  fi
10921fi
10922rm -f core conftest.err conftest.$ac_objext \
10923    conftest$ac_exeext conftest.$ac_ext
10924  if test -z "$lt_cv_aix_libpath_"; then
10925    lt_cv_aix_libpath_=/usr/lib:/lib
10926  fi
10927
10928fi
10929
10930  aix_libpath=$lt_cv_aix_libpath_
10931fi
10932
10933        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10934        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
10935      else
10936	if test ia64 = "$host_cpu"; then
10937	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10938	  allow_undefined_flag="-z nodefs"
10939	  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"
10940	else
10941	 # Determine the default libpath from the value encoded in an
10942	 # empty executable.
10943	 if test set = "${lt_cv_aix_libpath+set}"; then
10944  aix_libpath=$lt_cv_aix_libpath
10945else
10946  if ${lt_cv_aix_libpath_+:} false; then :
10947  $as_echo_n "(cached) " >&6
10948else
10949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950/* end confdefs.h.  */
10951
10952int
10953main ()
10954{
10955
10956  ;
10957  return 0;
10958}
10959_ACEOF
10960if ac_fn_c_try_link "$LINENO"; then :
10961
10962  lt_aix_libpath_sed='
10963      /Import File Strings/,/^$/ {
10964	  /^0/ {
10965	      s/^0  *\([^ ]*\) *$/\1/
10966	      p
10967	  }
10968      }'
10969  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10970  # Check for a 64-bit object if we didn't find anything.
10971  if test -z "$lt_cv_aix_libpath_"; then
10972    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10973  fi
10974fi
10975rm -f core conftest.err conftest.$ac_objext \
10976    conftest$ac_exeext conftest.$ac_ext
10977  if test -z "$lt_cv_aix_libpath_"; then
10978    lt_cv_aix_libpath_=/usr/lib:/lib
10979  fi
10980
10981fi
10982
10983  aix_libpath=$lt_cv_aix_libpath_
10984fi
10985
10986	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10987	  # Warning - without using the other run time loading flags,
10988	  # -berok will link without error, but may produce a broken library.
10989	  no_undefined_flag=' $wl-bernotok'
10990	  allow_undefined_flag=' $wl-berok'
10991	  if test yes = "$with_gnu_ld"; then
10992	    # We only use this code for GNU lds that support --whole-archive.
10993	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10994	  else
10995	    # Exported symbols can be pulled into shared objects from archives
10996	    whole_archive_flag_spec='$convenience'
10997	  fi
10998	  archive_cmds_need_lc=yes
10999	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11000	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11001	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11002	  if test svr4 != "$with_aix_soname"; then
11003	    # This is similar to how AIX traditionally builds its shared libraries.
11004	    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'
11005	  fi
11006	  if test aix != "$with_aix_soname"; then
11007	    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'
11008	  else
11009	    # used by -dlpreopen to get the symbols
11010	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11011	  fi
11012	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11013	fi
11014      fi
11015      ;;
11016
11017    amigaos*)
11018      case $host_cpu in
11019      powerpc)
11020            # see comment about AmigaOS4 .so support
11021            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11022            archive_expsym_cmds=''
11023        ;;
11024      m68k)
11025            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)'
11026            hardcode_libdir_flag_spec='-L$libdir'
11027            hardcode_minus_L=yes
11028        ;;
11029      esac
11030      ;;
11031
11032    bsdi[45]*)
11033      export_dynamic_flag_spec=-rdynamic
11034      ;;
11035
11036    cygwin* | mingw* | pw32* | cegcc*)
11037      # When not using gcc, we currently assume that we are using
11038      # Microsoft Visual C++.
11039      # hardcode_libdir_flag_spec is actually meaningless, as there is
11040      # no search path for DLLs.
11041      case $cc_basename in
11042      cl*)
11043	# Native MSVC
11044	hardcode_libdir_flag_spec=' '
11045	allow_undefined_flag=unsupported
11046	always_export_symbols=yes
11047	file_list_spec='@'
11048	# Tell ltmain to make .lib files, not .a files.
11049	libext=lib
11050	# Tell ltmain to make .dll files, not .so files.
11051	shrext_cmds=.dll
11052	# FIXME: Setting linknames here is a bad hack.
11053	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11054	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11055            cp "$export_symbols" "$output_objdir/$soname.def";
11056            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11057          else
11058            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11059          fi~
11060          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11061          linknames='
11062	# The linker will not automatically build a static lib if we build a DLL.
11063	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11064	enable_shared_with_static_runtimes=yes
11065	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11066	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11067	# Don't use ranlib
11068	old_postinstall_cmds='chmod 644 $oldlib'
11069	postlink_cmds='lt_outputfile="@OUTPUT@"~
11070          lt_tool_outputfile="@TOOL_OUTPUT@"~
11071          case $lt_outputfile in
11072            *.exe|*.EXE) ;;
11073            *)
11074              lt_outputfile=$lt_outputfile.exe
11075              lt_tool_outputfile=$lt_tool_outputfile.exe
11076              ;;
11077          esac~
11078          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11079            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11080            $RM "$lt_outputfile.manifest";
11081          fi'
11082	;;
11083      *)
11084	# Assume MSVC wrapper
11085	hardcode_libdir_flag_spec=' '
11086	allow_undefined_flag=unsupported
11087	# Tell ltmain to make .lib files, not .a files.
11088	libext=lib
11089	# Tell ltmain to make .dll files, not .so files.
11090	shrext_cmds=.dll
11091	# FIXME: Setting linknames here is a bad hack.
11092	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11093	# The linker will automatically build a .lib file if we build a DLL.
11094	old_archive_from_new_cmds='true'
11095	# FIXME: Should let the user specify the lib program.
11096	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11097	enable_shared_with_static_runtimes=yes
11098	;;
11099      esac
11100      ;;
11101
11102    darwin* | rhapsody*)
11103
11104
11105  archive_cmds_need_lc=no
11106  hardcode_direct=no
11107  hardcode_automatic=yes
11108  hardcode_shlibpath_var=unsupported
11109  if test yes = "$lt_cv_ld_force_load"; then
11110    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\"`'
11111
11112  else
11113    whole_archive_flag_spec=''
11114  fi
11115  link_all_deplibs=yes
11116  allow_undefined_flag=$_lt_dar_allow_undefined
11117  case $cc_basename in
11118     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11119     *) _lt_dar_can_shared=$GCC ;;
11120  esac
11121  if test yes = "$_lt_dar_can_shared"; then
11122    output_verbose_link_cmd=func_echo_all
11123    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11124    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11125    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"
11126    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"
11127
11128  else
11129  ld_shlibs=no
11130  fi
11131
11132      ;;
11133
11134    dgux*)
11135      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11136      hardcode_libdir_flag_spec='-L$libdir'
11137      hardcode_shlibpath_var=no
11138      ;;
11139
11140    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11141    # support.  Future versions do this automatically, but an explicit c++rt0.o
11142    # does not break anything, and helps significantly (at the cost of a little
11143    # extra space).
11144    freebsd2.2*)
11145      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11146      hardcode_libdir_flag_spec='-R$libdir'
11147      hardcode_direct=yes
11148      hardcode_shlibpath_var=no
11149      ;;
11150
11151    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11152    freebsd2.*)
11153      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11154      hardcode_direct=yes
11155      hardcode_minus_L=yes
11156      hardcode_shlibpath_var=no
11157      ;;
11158
11159    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11160    freebsd* | dragonfly*)
11161      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11162      hardcode_libdir_flag_spec='-R$libdir'
11163      hardcode_direct=yes
11164      hardcode_shlibpath_var=no
11165      ;;
11166
11167    hpux9*)
11168      if test yes = "$GCC"; then
11169	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'
11170      else
11171	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'
11172      fi
11173      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11174      hardcode_libdir_separator=:
11175      hardcode_direct=yes
11176
11177      # hardcode_minus_L: Not really in the search PATH,
11178      # but as the default location of the library.
11179      hardcode_minus_L=yes
11180      export_dynamic_flag_spec='$wl-E'
11181      ;;
11182
11183    hpux10*)
11184      if test yes,no = "$GCC,$with_gnu_ld"; then
11185	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11186      else
11187	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11188      fi
11189      if test no = "$with_gnu_ld"; then
11190	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11191	hardcode_libdir_separator=:
11192	hardcode_direct=yes
11193	hardcode_direct_absolute=yes
11194	export_dynamic_flag_spec='$wl-E'
11195	# hardcode_minus_L: Not really in the search PATH,
11196	# but as the default location of the library.
11197	hardcode_minus_L=yes
11198      fi
11199      ;;
11200
11201    hpux11*)
11202      if test yes,no = "$GCC,$with_gnu_ld"; then
11203	case $host_cpu in
11204	hppa*64*)
11205	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11206	  ;;
11207	ia64*)
11208	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11209	  ;;
11210	*)
11211	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11212	  ;;
11213	esac
11214      else
11215	case $host_cpu in
11216	hppa*64*)
11217	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11218	  ;;
11219	ia64*)
11220	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11221	  ;;
11222	*)
11223
11224	  # Older versions of the 11.00 compiler do not understand -b yet
11225	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11226	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11227$as_echo_n "checking if $CC understands -b... " >&6; }
11228if ${lt_cv_prog_compiler__b+:} false; then :
11229  $as_echo_n "(cached) " >&6
11230else
11231  lt_cv_prog_compiler__b=no
11232   save_LDFLAGS=$LDFLAGS
11233   LDFLAGS="$LDFLAGS -b"
11234   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11235   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11236     # The linker can only warn and ignore the option if not recognized
11237     # So say no if there are warnings
11238     if test -s conftest.err; then
11239       # Append any errors to the config.log.
11240       cat conftest.err 1>&5
11241       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11242       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11243       if diff conftest.exp conftest.er2 >/dev/null; then
11244         lt_cv_prog_compiler__b=yes
11245       fi
11246     else
11247       lt_cv_prog_compiler__b=yes
11248     fi
11249   fi
11250   $RM -r conftest*
11251   LDFLAGS=$save_LDFLAGS
11252
11253fi
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11255$as_echo "$lt_cv_prog_compiler__b" >&6; }
11256
11257if test yes = "$lt_cv_prog_compiler__b"; then
11258    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11259else
11260    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11261fi
11262
11263	  ;;
11264	esac
11265      fi
11266      if test no = "$with_gnu_ld"; then
11267	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11268	hardcode_libdir_separator=:
11269
11270	case $host_cpu in
11271	hppa*64*|ia64*)
11272	  hardcode_direct=no
11273	  hardcode_shlibpath_var=no
11274	  ;;
11275	*)
11276	  hardcode_direct=yes
11277	  hardcode_direct_absolute=yes
11278	  export_dynamic_flag_spec='$wl-E'
11279
11280	  # hardcode_minus_L: Not really in the search PATH,
11281	  # but as the default location of the library.
11282	  hardcode_minus_L=yes
11283	  ;;
11284	esac
11285      fi
11286      ;;
11287
11288    irix5* | irix6* | nonstopux*)
11289      if test yes = "$GCC"; then
11290	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'
11291	# Try to use the -exported_symbol ld option, if it does not
11292	# work, assume that -exports_file does not work either and
11293	# implicitly export all symbols.
11294	# This should be the same for all languages, so no per-tag cache variable.
11295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11296$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11297if ${lt_cv_irix_exported_symbol+:} false; then :
11298  $as_echo_n "(cached) " >&6
11299else
11300  save_LDFLAGS=$LDFLAGS
11301	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11302	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h.  */
11304int foo (void) { return 0; }
11305_ACEOF
11306if ac_fn_c_try_link "$LINENO"; then :
11307  lt_cv_irix_exported_symbol=yes
11308else
11309  lt_cv_irix_exported_symbol=no
11310fi
11311rm -f core conftest.err conftest.$ac_objext \
11312    conftest$ac_exeext conftest.$ac_ext
11313           LDFLAGS=$save_LDFLAGS
11314fi
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11316$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11317	if test yes = "$lt_cv_irix_exported_symbol"; then
11318          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'
11319	fi
11320      else
11321	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'
11322	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'
11323      fi
11324      archive_cmds_need_lc='no'
11325      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11326      hardcode_libdir_separator=:
11327      inherit_rpath=yes
11328      link_all_deplibs=yes
11329      ;;
11330
11331    linux*)
11332      case $cc_basename in
11333      tcc*)
11334	# Fabrice Bellard et al's Tiny C Compiler
11335	ld_shlibs=yes
11336	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11337	;;
11338      esac
11339      ;;
11340
11341    netbsd*)
11342      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11343	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11344      else
11345	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11346      fi
11347      hardcode_libdir_flag_spec='-R$libdir'
11348      hardcode_direct=yes
11349      hardcode_shlibpath_var=no
11350      ;;
11351
11352    newsos6)
11353      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11354      hardcode_direct=yes
11355      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11356      hardcode_libdir_separator=:
11357      hardcode_shlibpath_var=no
11358      ;;
11359
11360    *nto* | *qnx*)
11361      ;;
11362
11363    openbsd* | bitrig*)
11364      if test -f /usr/libexec/ld.so; then
11365	hardcode_direct=yes
11366	hardcode_shlibpath_var=no
11367	hardcode_direct_absolute=yes
11368	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11369	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11370	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11371	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11372	  export_dynamic_flag_spec='$wl-E'
11373	else
11374	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11375	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11376	fi
11377      else
11378	ld_shlibs=no
11379      fi
11380      ;;
11381
11382    os2*)
11383      hardcode_libdir_flag_spec='-L$libdir'
11384      hardcode_minus_L=yes
11385      allow_undefined_flag=unsupported
11386      shrext_cmds=.dll
11387      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11388	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11389	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11390	$ECHO EXPORTS >> $output_objdir/$libname.def~
11391	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11392	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11393	emximp -o $lib $output_objdir/$libname.def'
11394      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11395	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11396	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11397	$ECHO EXPORTS >> $output_objdir/$libname.def~
11398	prefix_cmds="$SED"~
11399	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11400	  prefix_cmds="$prefix_cmds -e 1d";
11401	fi~
11402	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11403	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11404	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11405	emximp -o $lib $output_objdir/$libname.def'
11406      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11407      enable_shared_with_static_runtimes=yes
11408      ;;
11409
11410    osf3*)
11411      if test yes = "$GCC"; then
11412	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11413	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'
11414      else
11415	allow_undefined_flag=' -expect_unresolved \*'
11416	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'
11417      fi
11418      archive_cmds_need_lc='no'
11419      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11420      hardcode_libdir_separator=:
11421      ;;
11422
11423    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11424      if test yes = "$GCC"; then
11425	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11426	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'
11427	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11428      else
11429	allow_undefined_flag=' -expect_unresolved \*'
11430	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'
11431	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~
11432          $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'
11433
11434	# Both c and cxx compiler support -rpath directly
11435	hardcode_libdir_flag_spec='-rpath $libdir'
11436      fi
11437      archive_cmds_need_lc='no'
11438      hardcode_libdir_separator=:
11439      ;;
11440
11441    solaris*)
11442      no_undefined_flag=' -z defs'
11443      if test yes = "$GCC"; then
11444	wlarc='$wl'
11445	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11446	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11447          $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'
11448      else
11449	case `$CC -V 2>&1` in
11450	*"Compilers 5.0"*)
11451	  wlarc=''
11452	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11453	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11454            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11455	  ;;
11456	*)
11457	  wlarc='$wl'
11458	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11459	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11460            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11461	  ;;
11462	esac
11463      fi
11464      hardcode_libdir_flag_spec='-R$libdir'
11465      hardcode_shlibpath_var=no
11466      case $host_os in
11467      solaris2.[0-5] | solaris2.[0-5].*) ;;
11468      *)
11469	# The compiler driver will combine and reorder linker options,
11470	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11471	# but is careful enough not to reorder.
11472	# Supported since Solaris 2.6 (maybe 2.5.1?)
11473	if test yes = "$GCC"; then
11474	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11475	else
11476	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11477	fi
11478	;;
11479      esac
11480      link_all_deplibs=yes
11481      ;;
11482
11483    sunos4*)
11484      if test sequent = "$host_vendor"; then
11485	# Use $CC to link under sequent, because it throws in some extra .o
11486	# files that make .init and .fini sections work.
11487	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11488      else
11489	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11490      fi
11491      hardcode_libdir_flag_spec='-L$libdir'
11492      hardcode_direct=yes
11493      hardcode_minus_L=yes
11494      hardcode_shlibpath_var=no
11495      ;;
11496
11497    sysv4)
11498      case $host_vendor in
11499	sni)
11500	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11501	  hardcode_direct=yes # is this really true???
11502	;;
11503	siemens)
11504	  ## LD is ld it makes a PLAMLIB
11505	  ## CC just makes a GrossModule.
11506	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11507	  reload_cmds='$CC -r -o $output$reload_objs'
11508	  hardcode_direct=no
11509        ;;
11510	motorola)
11511	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11512	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11513	;;
11514      esac
11515      runpath_var='LD_RUN_PATH'
11516      hardcode_shlibpath_var=no
11517      ;;
11518
11519    sysv4.3*)
11520      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11521      hardcode_shlibpath_var=no
11522      export_dynamic_flag_spec='-Bexport'
11523      ;;
11524
11525    sysv4*MP*)
11526      if test -d /usr/nec; then
11527	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11528	hardcode_shlibpath_var=no
11529	runpath_var=LD_RUN_PATH
11530	hardcode_runpath_var=yes
11531	ld_shlibs=yes
11532      fi
11533      ;;
11534
11535    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11536      no_undefined_flag='$wl-z,text'
11537      archive_cmds_need_lc=no
11538      hardcode_shlibpath_var=no
11539      runpath_var='LD_RUN_PATH'
11540
11541      if test yes = "$GCC"; then
11542	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11543	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11544      else
11545	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11546	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11547      fi
11548      ;;
11549
11550    sysv5* | sco3.2v5* | sco5v6*)
11551      # Note: We CANNOT use -z defs as we might desire, because we do not
11552      # link with -lc, and that would cause any symbols used from libc to
11553      # always be unresolved, which means just about no library would
11554      # ever link correctly.  If we're not using GNU ld we use -z text
11555      # though, which does catch some bad symbols but isn't as heavy-handed
11556      # as -z defs.
11557      no_undefined_flag='$wl-z,text'
11558      allow_undefined_flag='$wl-z,nodefs'
11559      archive_cmds_need_lc=no
11560      hardcode_shlibpath_var=no
11561      hardcode_libdir_flag_spec='$wl-R,$libdir'
11562      hardcode_libdir_separator=':'
11563      link_all_deplibs=yes
11564      export_dynamic_flag_spec='$wl-Bexport'
11565      runpath_var='LD_RUN_PATH'
11566
11567      if test yes = "$GCC"; then
11568	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11569	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11570      else
11571	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11572	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11573      fi
11574      ;;
11575
11576    uts4*)
11577      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11578      hardcode_libdir_flag_spec='-L$libdir'
11579      hardcode_shlibpath_var=no
11580      ;;
11581
11582    *)
11583      ld_shlibs=no
11584      ;;
11585    esac
11586
11587    if test sni = "$host_vendor"; then
11588      case $host in
11589      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11590	export_dynamic_flag_spec='$wl-Blargedynsym'
11591	;;
11592      esac
11593    fi
11594  fi
11595
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11597$as_echo "$ld_shlibs" >&6; }
11598test no = "$ld_shlibs" && can_build_shared=no
11599
11600with_gnu_ld=$with_gnu_ld
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616#
11617# Do we need to explicitly link libc?
11618#
11619case "x$archive_cmds_need_lc" in
11620x|xyes)
11621  # Assume -lc should be added
11622  archive_cmds_need_lc=yes
11623
11624  if test yes,yes = "$GCC,$enable_shared"; then
11625    case $archive_cmds in
11626    *'~'*)
11627      # FIXME: we may have to deal with multi-command sequences.
11628      ;;
11629    '$CC '*)
11630      # Test whether the compiler implicitly links with -lc since on some
11631      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11632      # to ld, don't add -lc before -lgcc.
11633      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11634$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11635if ${lt_cv_archive_cmds_need_lc+:} false; then :
11636  $as_echo_n "(cached) " >&6
11637else
11638  $RM conftest*
11639	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11640
11641	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11642  (eval $ac_compile) 2>&5
11643  ac_status=$?
11644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11645  test $ac_status = 0; } 2>conftest.err; then
11646	  soname=conftest
11647	  lib=conftest
11648	  libobjs=conftest.$ac_objext
11649	  deplibs=
11650	  wl=$lt_prog_compiler_wl
11651	  pic_flag=$lt_prog_compiler_pic
11652	  compiler_flags=-v
11653	  linker_flags=-v
11654	  verstring=
11655	  output_objdir=.
11656	  libname=conftest
11657	  lt_save_allow_undefined_flag=$allow_undefined_flag
11658	  allow_undefined_flag=
11659	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11660  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11661  ac_status=$?
11662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663  test $ac_status = 0; }
11664	  then
11665	    lt_cv_archive_cmds_need_lc=no
11666	  else
11667	    lt_cv_archive_cmds_need_lc=yes
11668	  fi
11669	  allow_undefined_flag=$lt_save_allow_undefined_flag
11670	else
11671	  cat conftest.err 1>&5
11672	fi
11673	$RM conftest*
11674
11675fi
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11677$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11678      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11679      ;;
11680    esac
11681  fi
11682  ;;
11683esac
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11837$as_echo_n "checking dynamic linker characteristics... " >&6; }
11838
11839if test yes = "$GCC"; then
11840  case $host_os in
11841    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11842    *) lt_awk_arg='/^libraries:/' ;;
11843  esac
11844  case $host_os in
11845    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11846    *) lt_sed_strip_eq='s|=/|/|g' ;;
11847  esac
11848  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11849  case $lt_search_path_spec in
11850  *\;*)
11851    # if the path contains ";" then we assume it to be the separator
11852    # otherwise default to the standard path separator (i.e. ":") - it is
11853    # assumed that no part of a normal pathname contains ";" but that should
11854    # okay in the real world where ";" in dirpaths is itself problematic.
11855    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11856    ;;
11857  *)
11858    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11859    ;;
11860  esac
11861  # Ok, now we have the path, separated by spaces, we can step through it
11862  # and add multilib dir if necessary...
11863  lt_tmp_lt_search_path_spec=
11864  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11865  # ...but if some path component already ends with the multilib dir we assume
11866  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11867  case "$lt_multi_os_dir; $lt_search_path_spec " in
11868  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11869    lt_multi_os_dir=
11870    ;;
11871  esac
11872  for lt_sys_path in $lt_search_path_spec; do
11873    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11874      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11875    elif test -n "$lt_multi_os_dir"; then
11876      test -d "$lt_sys_path" && \
11877	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11878    fi
11879  done
11880  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11881BEGIN {RS = " "; FS = "/|\n";} {
11882  lt_foo = "";
11883  lt_count = 0;
11884  for (lt_i = NF; lt_i > 0; lt_i--) {
11885    if ($lt_i != "" && $lt_i != ".") {
11886      if ($lt_i == "..") {
11887        lt_count++;
11888      } else {
11889        if (lt_count == 0) {
11890          lt_foo = "/" $lt_i lt_foo;
11891        } else {
11892          lt_count--;
11893        }
11894      }
11895    }
11896  }
11897  if (lt_foo != "") { lt_freq[lt_foo]++; }
11898  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11899}'`
11900  # AWK program above erroneously prepends '/' to C:/dos/paths
11901  # for these hosts.
11902  case $host_os in
11903    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11904      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11905  esac
11906  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11907else
11908  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11909fi
11910library_names_spec=
11911libname_spec='lib$name'
11912soname_spec=
11913shrext_cmds=.so
11914postinstall_cmds=
11915postuninstall_cmds=
11916finish_cmds=
11917finish_eval=
11918shlibpath_var=
11919shlibpath_overrides_runpath=unknown
11920version_type=none
11921dynamic_linker="$host_os ld.so"
11922sys_lib_dlsearch_path_spec="/lib /usr/lib"
11923need_lib_prefix=unknown
11924hardcode_into_libs=no
11925
11926# when you set need_version to no, make sure it does not cause -set_version
11927# flags to be left without arguments
11928need_version=unknown
11929
11930
11931
11932case $host_os in
11933aix3*)
11934  version_type=linux # correct to gnu/linux during the next big refactor
11935  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11936  shlibpath_var=LIBPATH
11937
11938  # AIX 3 has no versioning support, so we append a major version to the name.
11939  soname_spec='$libname$release$shared_ext$major'
11940  ;;
11941
11942aix[4-9]*)
11943  version_type=linux # correct to gnu/linux during the next big refactor
11944  need_lib_prefix=no
11945  need_version=no
11946  hardcode_into_libs=yes
11947  if test ia64 = "$host_cpu"; then
11948    # AIX 5 supports IA64
11949    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11950    shlibpath_var=LD_LIBRARY_PATH
11951  else
11952    # With GCC up to 2.95.x, collect2 would create an import file
11953    # for dependence libraries.  The import file would start with
11954    # the line '#! .'.  This would cause the generated library to
11955    # depend on '.', always an invalid library.  This was fixed in
11956    # development snapshots of GCC prior to 3.0.
11957    case $host_os in
11958      aix4 | aix4.[01] | aix4.[01].*)
11959      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11960	   echo ' yes '
11961	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11962	:
11963      else
11964	can_build_shared=no
11965      fi
11966      ;;
11967    esac
11968    # Using Import Files as archive members, it is possible to support
11969    # filename-based versioning of shared library archives on AIX. While
11970    # this would work for both with and without runtime linking, it will
11971    # prevent static linking of such archives. So we do filename-based
11972    # shared library versioning with .so extension only, which is used
11973    # when both runtime linking and shared linking is enabled.
11974    # Unfortunately, runtime linking may impact performance, so we do
11975    # not want this to be the default eventually. Also, we use the
11976    # versioned .so libs for executables only if there is the -brtl
11977    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11978    # To allow for filename-based versioning support, we need to create
11979    # libNAME.so.V as an archive file, containing:
11980    # *) an Import File, referring to the versioned filename of the
11981    #    archive as well as the shared archive member, telling the
11982    #    bitwidth (32 or 64) of that shared object, and providing the
11983    #    list of exported symbols of that shared object, eventually
11984    #    decorated with the 'weak' keyword
11985    # *) the shared object with the F_LOADONLY flag set, to really avoid
11986    #    it being seen by the linker.
11987    # At run time we better use the real file rather than another symlink,
11988    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11989
11990    case $with_aix_soname,$aix_use_runtimelinking in
11991    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11992    # soname into executable. Probably we can add versioning support to
11993    # collect2, so additional links can be useful in future.
11994    aix,yes) # traditional libtool
11995      dynamic_linker='AIX unversionable lib.so'
11996      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11997      # instead of lib<name>.a to let people know that these are not
11998      # typical AIX shared libraries.
11999      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12000      ;;
12001    aix,no) # traditional AIX only
12002      dynamic_linker='AIX lib.a(lib.so.V)'
12003      # We preserve .a as extension for shared libraries through AIX4.2
12004      # and later when we are not doing run time linking.
12005      library_names_spec='$libname$release.a $libname.a'
12006      soname_spec='$libname$release$shared_ext$major'
12007      ;;
12008    svr4,*) # full svr4 only
12009      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12010      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12011      # We do not specify a path in Import Files, so LIBPATH fires.
12012      shlibpath_overrides_runpath=yes
12013      ;;
12014    *,yes) # both, prefer svr4
12015      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12016      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12017      # unpreferred sharedlib libNAME.a needs extra handling
12018      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"'
12019      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"'
12020      # We do not specify a path in Import Files, so LIBPATH fires.
12021      shlibpath_overrides_runpath=yes
12022      ;;
12023    *,no) # both, prefer aix
12024      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12025      library_names_spec='$libname$release.a $libname.a'
12026      soname_spec='$libname$release$shared_ext$major'
12027      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12028      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)'
12029      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"'
12030      ;;
12031    esac
12032    shlibpath_var=LIBPATH
12033  fi
12034  ;;
12035
12036amigaos*)
12037  case $host_cpu in
12038  powerpc)
12039    # Since July 2007 AmigaOS4 officially supports .so libraries.
12040    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12041    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12042    ;;
12043  m68k)
12044    library_names_spec='$libname.ixlibrary $libname.a'
12045    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12046    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'
12047    ;;
12048  esac
12049  ;;
12050
12051beos*)
12052  library_names_spec='$libname$shared_ext'
12053  dynamic_linker="$host_os ld.so"
12054  shlibpath_var=LIBRARY_PATH
12055  ;;
12056
12057bsdi[45]*)
12058  version_type=linux # correct to gnu/linux during the next big refactor
12059  need_version=no
12060  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061  soname_spec='$libname$release$shared_ext$major'
12062  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12063  shlibpath_var=LD_LIBRARY_PATH
12064  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12065  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12066  # the default ld.so.conf also contains /usr/contrib/lib and
12067  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12068  # libtool to hard-code these into programs
12069  ;;
12070
12071cygwin* | mingw* | pw32* | cegcc*)
12072  version_type=windows
12073  shrext_cmds=.dll
12074  need_version=no
12075  need_lib_prefix=no
12076
12077  case $GCC,$cc_basename in
12078  yes,*)
12079    # gcc
12080    library_names_spec='$libname.dll.a'
12081    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12082    postinstall_cmds='base_file=`basename \$file`~
12083      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12084      dldir=$destdir/`dirname \$dlpath`~
12085      test -d \$dldir || mkdir -p \$dldir~
12086      $install_prog $dir/$dlname \$dldir/$dlname~
12087      chmod a+x \$dldir/$dlname~
12088      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12089        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12090      fi'
12091    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12092      dlpath=$dir/\$dldll~
12093       $RM \$dlpath'
12094    shlibpath_overrides_runpath=yes
12095
12096    case $host_os in
12097    cygwin*)
12098      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12099      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12100
12101      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12102      ;;
12103    mingw* | cegcc*)
12104      # MinGW DLLs use traditional 'lib' prefix
12105      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12106      ;;
12107    pw32*)
12108      # pw32 DLLs use 'pw' prefix rather than 'lib'
12109      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12110      ;;
12111    esac
12112    dynamic_linker='Win32 ld.exe'
12113    ;;
12114
12115  *,cl*)
12116    # Native MSVC
12117    libname_spec='$name'
12118    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12119    library_names_spec='$libname.dll.lib'
12120
12121    case $build_os in
12122    mingw*)
12123      sys_lib_search_path_spec=
12124      lt_save_ifs=$IFS
12125      IFS=';'
12126      for lt_path in $LIB
12127      do
12128        IFS=$lt_save_ifs
12129        # Let DOS variable expansion print the short 8.3 style file name.
12130        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12131        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12132      done
12133      IFS=$lt_save_ifs
12134      # Convert to MSYS style.
12135      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12136      ;;
12137    cygwin*)
12138      # Convert to unix form, then to dos form, then back to unix form
12139      # but this time dos style (no spaces!) so that the unix form looks
12140      # like /cygdrive/c/PROGRA~1:/cygdr...
12141      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12142      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12143      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12144      ;;
12145    *)
12146      sys_lib_search_path_spec=$LIB
12147      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12148        # It is most probably a Windows format PATH.
12149        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12150      else
12151        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12152      fi
12153      # FIXME: find the short name or the path components, as spaces are
12154      # common. (e.g. "Program Files" -> "PROGRA~1")
12155      ;;
12156    esac
12157
12158    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12159    postinstall_cmds='base_file=`basename \$file`~
12160      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12161      dldir=$destdir/`dirname \$dlpath`~
12162      test -d \$dldir || mkdir -p \$dldir~
12163      $install_prog $dir/$dlname \$dldir/$dlname'
12164    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12165      dlpath=$dir/\$dldll~
12166       $RM \$dlpath'
12167    shlibpath_overrides_runpath=yes
12168    dynamic_linker='Win32 link.exe'
12169    ;;
12170
12171  *)
12172    # Assume MSVC wrapper
12173    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12174    dynamic_linker='Win32 ld.exe'
12175    ;;
12176  esac
12177  # FIXME: first we should search . and the directory the executable is in
12178  shlibpath_var=PATH
12179  ;;
12180
12181darwin* | rhapsody*)
12182  dynamic_linker="$host_os dyld"
12183  version_type=darwin
12184  need_lib_prefix=no
12185  need_version=no
12186  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12187  soname_spec='$libname$release$major$shared_ext'
12188  shlibpath_overrides_runpath=yes
12189  shlibpath_var=DYLD_LIBRARY_PATH
12190  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12191
12192  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12193  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12194  ;;
12195
12196dgux*)
12197  version_type=linux # correct to gnu/linux during the next big refactor
12198  need_lib_prefix=no
12199  need_version=no
12200  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12201  soname_spec='$libname$release$shared_ext$major'
12202  shlibpath_var=LD_LIBRARY_PATH
12203  ;;
12204
12205freebsd* | dragonfly*)
12206  # DragonFly does not have aout.  When/if they implement a new
12207  # versioning mechanism, adjust this.
12208  if test -x /usr/bin/objformat; then
12209    objformat=`/usr/bin/objformat`
12210  else
12211    case $host_os in
12212    freebsd[23].*) objformat=aout ;;
12213    *) objformat=elf ;;
12214    esac
12215  fi
12216  version_type=freebsd-$objformat
12217  case $version_type in
12218    freebsd-elf*)
12219      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12220      soname_spec='$libname$release$shared_ext$major'
12221      need_version=no
12222      need_lib_prefix=no
12223      ;;
12224    freebsd-*)
12225      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12226      need_version=yes
12227      ;;
12228  esac
12229  shlibpath_var=LD_LIBRARY_PATH
12230  case $host_os in
12231  freebsd2.*)
12232    shlibpath_overrides_runpath=yes
12233    ;;
12234  freebsd3.[01]* | freebsdelf3.[01]*)
12235    shlibpath_overrides_runpath=yes
12236    hardcode_into_libs=yes
12237    ;;
12238  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12239  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12240    shlibpath_overrides_runpath=no
12241    hardcode_into_libs=yes
12242    ;;
12243  *) # from 4.6 on, and DragonFly
12244    shlibpath_overrides_runpath=yes
12245    hardcode_into_libs=yes
12246    ;;
12247  esac
12248  ;;
12249
12250haiku*)
12251  version_type=linux # correct to gnu/linux during the next big refactor
12252  need_lib_prefix=no
12253  need_version=no
12254  dynamic_linker="$host_os runtime_loader"
12255  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256  soname_spec='$libname$release$shared_ext$major'
12257  shlibpath_var=LIBRARY_PATH
12258  shlibpath_overrides_runpath=no
12259  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12260  hardcode_into_libs=yes
12261  ;;
12262
12263hpux9* | hpux10* | hpux11*)
12264  # Give a soname corresponding to the major version so that dld.sl refuses to
12265  # link against other versions.
12266  version_type=sunos
12267  need_lib_prefix=no
12268  need_version=no
12269  case $host_cpu in
12270  ia64*)
12271    shrext_cmds='.so'
12272    hardcode_into_libs=yes
12273    dynamic_linker="$host_os dld.so"
12274    shlibpath_var=LD_LIBRARY_PATH
12275    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12276    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12277    soname_spec='$libname$release$shared_ext$major'
12278    if test 32 = "$HPUX_IA64_MODE"; then
12279      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12280      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12281    else
12282      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12283      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12284    fi
12285    ;;
12286  hppa*64*)
12287    shrext_cmds='.sl'
12288    hardcode_into_libs=yes
12289    dynamic_linker="$host_os dld.sl"
12290    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12291    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12292    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12293    soname_spec='$libname$release$shared_ext$major'
12294    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12295    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12296    ;;
12297  *)
12298    shrext_cmds='.sl'
12299    dynamic_linker="$host_os dld.sl"
12300    shlibpath_var=SHLIB_PATH
12301    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12302    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12303    soname_spec='$libname$release$shared_ext$major'
12304    ;;
12305  esac
12306  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12307  postinstall_cmds='chmod 555 $lib'
12308  # or fails outright, so override atomically:
12309  install_override_mode=555
12310  ;;
12311
12312interix[3-9]*)
12313  version_type=linux # correct to gnu/linux during the next big refactor
12314  need_lib_prefix=no
12315  need_version=no
12316  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12317  soname_spec='$libname$release$shared_ext$major'
12318  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12319  shlibpath_var=LD_LIBRARY_PATH
12320  shlibpath_overrides_runpath=no
12321  hardcode_into_libs=yes
12322  ;;
12323
12324irix5* | irix6* | nonstopux*)
12325  case $host_os in
12326    nonstopux*) version_type=nonstopux ;;
12327    *)
12328	if test yes = "$lt_cv_prog_gnu_ld"; then
12329		version_type=linux # correct to gnu/linux during the next big refactor
12330	else
12331		version_type=irix
12332	fi ;;
12333  esac
12334  need_lib_prefix=no
12335  need_version=no
12336  soname_spec='$libname$release$shared_ext$major'
12337  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12338  case $host_os in
12339  irix5* | nonstopux*)
12340    libsuff= shlibsuff=
12341    ;;
12342  *)
12343    case $LD in # libtool.m4 will add one of these switches to LD
12344    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12345      libsuff= shlibsuff= libmagic=32-bit;;
12346    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12347      libsuff=32 shlibsuff=N32 libmagic=N32;;
12348    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12349      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12350    *) libsuff= shlibsuff= libmagic=never-match;;
12351    esac
12352    ;;
12353  esac
12354  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12355  shlibpath_overrides_runpath=no
12356  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12357  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12358  hardcode_into_libs=yes
12359  ;;
12360
12361# No shared lib support for Linux oldld, aout, or coff.
12362linux*oldld* | linux*aout* | linux*coff*)
12363  dynamic_linker=no
12364  ;;
12365
12366linux*android*)
12367  version_type=none # Android doesn't support versioned libraries.
12368  need_lib_prefix=no
12369  need_version=no
12370  library_names_spec='$libname$release$shared_ext'
12371  soname_spec='$libname$release$shared_ext'
12372  finish_cmds=
12373  shlibpath_var=LD_LIBRARY_PATH
12374  shlibpath_overrides_runpath=yes
12375
12376  # This implies no fast_install, which is unacceptable.
12377  # Some rework will be needed to allow for fast_install
12378  # before this can be enabled.
12379  hardcode_into_libs=yes
12380
12381  dynamic_linker='Android linker'
12382  # Don't embed -rpath directories since the linker doesn't support them.
12383  hardcode_libdir_flag_spec='-L$libdir'
12384  ;;
12385
12386# This must be glibc/ELF.
12387linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12388  version_type=linux # correct to gnu/linux during the next big refactor
12389  need_lib_prefix=no
12390  need_version=no
12391  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12392  soname_spec='$libname$release$shared_ext$major'
12393  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12394  shlibpath_var=LD_LIBRARY_PATH
12395  shlibpath_overrides_runpath=no
12396
12397  # Some binutils ld are patched to set DT_RUNPATH
12398  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12399  $as_echo_n "(cached) " >&6
12400else
12401  lt_cv_shlibpath_overrides_runpath=no
12402    save_LDFLAGS=$LDFLAGS
12403    save_libdir=$libdir
12404    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12405	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12406    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407/* end confdefs.h.  */
12408
12409int
12410main ()
12411{
12412
12413  ;
12414  return 0;
12415}
12416_ACEOF
12417if ac_fn_c_try_link "$LINENO"; then :
12418  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12419  lt_cv_shlibpath_overrides_runpath=yes
12420fi
12421fi
12422rm -f core conftest.err conftest.$ac_objext \
12423    conftest$ac_exeext conftest.$ac_ext
12424    LDFLAGS=$save_LDFLAGS
12425    libdir=$save_libdir
12426
12427fi
12428
12429  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12430
12431  # This implies no fast_install, which is unacceptable.
12432  # Some rework will be needed to allow for fast_install
12433  # before this can be enabled.
12434  hardcode_into_libs=yes
12435
12436  # Add ABI-specific directories to the system library path.
12437  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12438
12439  # Ideally, we could use ldconfig to report *all* directores which are
12440  # searched for libraries, however this is still not possible.  Aside from not
12441  # being certain /sbin/ldconfig is available, command
12442  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12443  # even though it is searched at run-time.  Try to do the best guess by
12444  # appending ld.so.conf contents (and includes) to the search path.
12445  if test -f /etc/ld.so.conf; then
12446    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' ' '`
12447    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12448  fi
12449
12450  # We used to test for /lib/ld.so.1 and disable shared libraries on
12451  # powerpc, because MkLinux only supported shared libraries with the
12452  # GNU dynamic linker.  Since this was broken with cross compilers,
12453  # most powerpc-linux boxes support dynamic linking these days and
12454  # people can always --disable-shared, the test was removed, and we
12455  # assume the GNU/Linux dynamic linker is in use.
12456  dynamic_linker='GNU/Linux ld.so'
12457  ;;
12458
12459netbsd*)
12460  version_type=sunos
12461  need_lib_prefix=no
12462  need_version=no
12463  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12464    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12465    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12466    dynamic_linker='NetBSD (a.out) ld.so'
12467  else
12468    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12469    soname_spec='$libname$release$shared_ext$major'
12470    dynamic_linker='NetBSD ld.elf_so'
12471  fi
12472  shlibpath_var=LD_LIBRARY_PATH
12473  shlibpath_overrides_runpath=yes
12474  hardcode_into_libs=yes
12475  ;;
12476
12477newsos6)
12478  version_type=linux # correct to gnu/linux during the next big refactor
12479  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12480  shlibpath_var=LD_LIBRARY_PATH
12481  shlibpath_overrides_runpath=yes
12482  ;;
12483
12484*nto* | *qnx*)
12485  version_type=qnx
12486  need_lib_prefix=no
12487  need_version=no
12488  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12489  soname_spec='$libname$release$shared_ext$major'
12490  shlibpath_var=LD_LIBRARY_PATH
12491  shlibpath_overrides_runpath=no
12492  hardcode_into_libs=yes
12493  dynamic_linker='ldqnx.so'
12494  ;;
12495
12496openbsd* | bitrig*)
12497  version_type=sunos
12498  sys_lib_dlsearch_path_spec=/usr/lib
12499  need_lib_prefix=no
12500  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12501    need_version=no
12502  else
12503    need_version=yes
12504  fi
12505  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12506  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12507  shlibpath_var=LD_LIBRARY_PATH
12508  shlibpath_overrides_runpath=yes
12509  ;;
12510
12511os2*)
12512  libname_spec='$name'
12513  version_type=windows
12514  shrext_cmds=.dll
12515  need_version=no
12516  need_lib_prefix=no
12517  # OS/2 can only load a DLL with a base name of 8 characters or less.
12518  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12519    v=$($ECHO $release$versuffix | tr -d .-);
12520    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12521    $ECHO $n$v`$shared_ext'
12522  library_names_spec='${libname}_dll.$libext'
12523  dynamic_linker='OS/2 ld.exe'
12524  shlibpath_var=BEGINLIBPATH
12525  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12526  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12527  postinstall_cmds='base_file=`basename \$file`~
12528    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12529    dldir=$destdir/`dirname \$dlpath`~
12530    test -d \$dldir || mkdir -p \$dldir~
12531    $install_prog $dir/$dlname \$dldir/$dlname~
12532    chmod a+x \$dldir/$dlname~
12533    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12534      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12535    fi'
12536  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12537    dlpath=$dir/\$dldll~
12538    $RM \$dlpath'
12539  ;;
12540
12541osf3* | osf4* | osf5*)
12542  version_type=osf
12543  need_lib_prefix=no
12544  need_version=no
12545  soname_spec='$libname$release$shared_ext$major'
12546  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12547  shlibpath_var=LD_LIBRARY_PATH
12548  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12549  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12550  ;;
12551
12552rdos*)
12553  dynamic_linker=no
12554  ;;
12555
12556solaris*)
12557  version_type=linux # correct to gnu/linux during the next big refactor
12558  need_lib_prefix=no
12559  need_version=no
12560  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12561  soname_spec='$libname$release$shared_ext$major'
12562  shlibpath_var=LD_LIBRARY_PATH
12563  shlibpath_overrides_runpath=yes
12564  hardcode_into_libs=yes
12565  # ldd complains unless libraries are executable
12566  postinstall_cmds='chmod +x $lib'
12567  ;;
12568
12569sunos4*)
12570  version_type=sunos
12571  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12572  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12573  shlibpath_var=LD_LIBRARY_PATH
12574  shlibpath_overrides_runpath=yes
12575  if test yes = "$with_gnu_ld"; then
12576    need_lib_prefix=no
12577  fi
12578  need_version=yes
12579  ;;
12580
12581sysv4 | sysv4.3*)
12582  version_type=linux # correct to gnu/linux during the next big refactor
12583  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12584  soname_spec='$libname$release$shared_ext$major'
12585  shlibpath_var=LD_LIBRARY_PATH
12586  case $host_vendor in
12587    sni)
12588      shlibpath_overrides_runpath=no
12589      need_lib_prefix=no
12590      runpath_var=LD_RUN_PATH
12591      ;;
12592    siemens)
12593      need_lib_prefix=no
12594      ;;
12595    motorola)
12596      need_lib_prefix=no
12597      need_version=no
12598      shlibpath_overrides_runpath=no
12599      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12600      ;;
12601  esac
12602  ;;
12603
12604sysv4*MP*)
12605  if test -d /usr/nec; then
12606    version_type=linux # correct to gnu/linux during the next big refactor
12607    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12608    soname_spec='$libname$shared_ext.$major'
12609    shlibpath_var=LD_LIBRARY_PATH
12610  fi
12611  ;;
12612
12613sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12614  version_type=sco
12615  need_lib_prefix=no
12616  need_version=no
12617  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12618  soname_spec='$libname$release$shared_ext$major'
12619  shlibpath_var=LD_LIBRARY_PATH
12620  shlibpath_overrides_runpath=yes
12621  hardcode_into_libs=yes
12622  if test yes = "$with_gnu_ld"; then
12623    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12624  else
12625    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12626    case $host_os in
12627      sco3.2v5*)
12628        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12629	;;
12630    esac
12631  fi
12632  sys_lib_dlsearch_path_spec='/usr/lib'
12633  ;;
12634
12635tpf*)
12636  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12637  version_type=linux # correct to gnu/linux during the next big refactor
12638  need_lib_prefix=no
12639  need_version=no
12640  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12641  shlibpath_var=LD_LIBRARY_PATH
12642  shlibpath_overrides_runpath=no
12643  hardcode_into_libs=yes
12644  ;;
12645
12646uts4*)
12647  version_type=linux # correct to gnu/linux during the next big refactor
12648  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12649  soname_spec='$libname$release$shared_ext$major'
12650  shlibpath_var=LD_LIBRARY_PATH
12651  ;;
12652
12653*)
12654  dynamic_linker=no
12655  ;;
12656esac
12657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12658$as_echo "$dynamic_linker" >&6; }
12659test no = "$dynamic_linker" && can_build_shared=no
12660
12661variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12662if test yes = "$GCC"; then
12663  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12664fi
12665
12666if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12667  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12668fi
12669
12670if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12671  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12672fi
12673
12674# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12675configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12676
12677# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12678func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12679
12680# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12681configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12780$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12781hardcode_action=
12782if test -n "$hardcode_libdir_flag_spec" ||
12783   test -n "$runpath_var" ||
12784   test yes = "$hardcode_automatic"; then
12785
12786  # We can hardcode non-existent directories.
12787  if test no != "$hardcode_direct" &&
12788     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12789     # have to relink, otherwise we might link with an installed library
12790     # when we should be linking with a yet-to-be-installed one
12791     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12792     test no != "$hardcode_minus_L"; then
12793    # Linking always hardcodes the temporary library directory.
12794    hardcode_action=relink
12795  else
12796    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12797    hardcode_action=immediate
12798  fi
12799else
12800  # We cannot hardcode anything, or else we can only hardcode existing
12801  # directories.
12802  hardcode_action=unsupported
12803fi
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12805$as_echo "$hardcode_action" >&6; }
12806
12807if test relink = "$hardcode_action" ||
12808   test yes = "$inherit_rpath"; then
12809  # Fast installation is not supported
12810  enable_fast_install=no
12811elif test yes = "$shlibpath_overrides_runpath" ||
12812     test no = "$enable_shared"; then
12813  # Fast installation is not necessary
12814  enable_fast_install=needless
12815fi
12816
12817
12818
12819
12820
12821
12822  if test yes != "$enable_dlopen"; then
12823  enable_dlopen=unknown
12824  enable_dlopen_self=unknown
12825  enable_dlopen_self_static=unknown
12826else
12827  lt_cv_dlopen=no
12828  lt_cv_dlopen_libs=
12829
12830  case $host_os in
12831  beos*)
12832    lt_cv_dlopen=load_add_on
12833    lt_cv_dlopen_libs=
12834    lt_cv_dlopen_self=yes
12835    ;;
12836
12837  mingw* | pw32* | cegcc*)
12838    lt_cv_dlopen=LoadLibrary
12839    lt_cv_dlopen_libs=
12840    ;;
12841
12842  cygwin*)
12843    lt_cv_dlopen=dlopen
12844    lt_cv_dlopen_libs=
12845    ;;
12846
12847  darwin*)
12848    # if libdl is installed we need to link against it
12849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12850$as_echo_n "checking for dlopen in -ldl... " >&6; }
12851if ${ac_cv_lib_dl_dlopen+:} false; then :
12852  $as_echo_n "(cached) " >&6
12853else
12854  ac_check_lib_save_LIBS=$LIBS
12855LIBS="-ldl  $LIBS"
12856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857/* end confdefs.h.  */
12858
12859/* Override any GCC internal prototype to avoid an error.
12860   Use char because int might match the return type of a GCC
12861   builtin and then its argument prototype would still apply.  */
12862#ifdef __cplusplus
12863extern "C"
12864#endif
12865char dlopen ();
12866int
12867main ()
12868{
12869return dlopen ();
12870  ;
12871  return 0;
12872}
12873_ACEOF
12874if ac_fn_c_try_link "$LINENO"; then :
12875  ac_cv_lib_dl_dlopen=yes
12876else
12877  ac_cv_lib_dl_dlopen=no
12878fi
12879rm -f core conftest.err conftest.$ac_objext \
12880    conftest$ac_exeext conftest.$ac_ext
12881LIBS=$ac_check_lib_save_LIBS
12882fi
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12884$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12885if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12886  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12887else
12888
12889    lt_cv_dlopen=dyld
12890    lt_cv_dlopen_libs=
12891    lt_cv_dlopen_self=yes
12892
12893fi
12894
12895    ;;
12896
12897  tpf*)
12898    # Don't try to run any link tests for TPF.  We know it's impossible
12899    # because TPF is a cross-compiler, and we know how we open DSOs.
12900    lt_cv_dlopen=dlopen
12901    lt_cv_dlopen_libs=
12902    lt_cv_dlopen_self=no
12903    ;;
12904
12905  *)
12906    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12907if test "x$ac_cv_func_shl_load" = xyes; then :
12908  lt_cv_dlopen=shl_load
12909else
12910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12911$as_echo_n "checking for shl_load in -ldld... " >&6; }
12912if ${ac_cv_lib_dld_shl_load+:} false; then :
12913  $as_echo_n "(cached) " >&6
12914else
12915  ac_check_lib_save_LIBS=$LIBS
12916LIBS="-ldld  $LIBS"
12917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918/* end confdefs.h.  */
12919
12920/* Override any GCC internal prototype to avoid an error.
12921   Use char because int might match the return type of a GCC
12922   builtin and then its argument prototype would still apply.  */
12923#ifdef __cplusplus
12924extern "C"
12925#endif
12926char shl_load ();
12927int
12928main ()
12929{
12930return shl_load ();
12931  ;
12932  return 0;
12933}
12934_ACEOF
12935if ac_fn_c_try_link "$LINENO"; then :
12936  ac_cv_lib_dld_shl_load=yes
12937else
12938  ac_cv_lib_dld_shl_load=no
12939fi
12940rm -f core conftest.err conftest.$ac_objext \
12941    conftest$ac_exeext conftest.$ac_ext
12942LIBS=$ac_check_lib_save_LIBS
12943fi
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12945$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12946if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12947  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12948else
12949  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12950if test "x$ac_cv_func_dlopen" = xyes; then :
12951  lt_cv_dlopen=dlopen
12952else
12953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12954$as_echo_n "checking for dlopen in -ldl... " >&6; }
12955if ${ac_cv_lib_dl_dlopen+:} false; then :
12956  $as_echo_n "(cached) " >&6
12957else
12958  ac_check_lib_save_LIBS=$LIBS
12959LIBS="-ldl  $LIBS"
12960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961/* end confdefs.h.  */
12962
12963/* Override any GCC internal prototype to avoid an error.
12964   Use char because int might match the return type of a GCC
12965   builtin and then its argument prototype would still apply.  */
12966#ifdef __cplusplus
12967extern "C"
12968#endif
12969char dlopen ();
12970int
12971main ()
12972{
12973return dlopen ();
12974  ;
12975  return 0;
12976}
12977_ACEOF
12978if ac_fn_c_try_link "$LINENO"; then :
12979  ac_cv_lib_dl_dlopen=yes
12980else
12981  ac_cv_lib_dl_dlopen=no
12982fi
12983rm -f core conftest.err conftest.$ac_objext \
12984    conftest$ac_exeext conftest.$ac_ext
12985LIBS=$ac_check_lib_save_LIBS
12986fi
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12988$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12989if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12990  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12991else
12992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12993$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12994if ${ac_cv_lib_svld_dlopen+:} false; then :
12995  $as_echo_n "(cached) " >&6
12996else
12997  ac_check_lib_save_LIBS=$LIBS
12998LIBS="-lsvld  $LIBS"
12999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h.  */
13001
13002/* Override any GCC internal prototype to avoid an error.
13003   Use char because int might match the return type of a GCC
13004   builtin and then its argument prototype would still apply.  */
13005#ifdef __cplusplus
13006extern "C"
13007#endif
13008char dlopen ();
13009int
13010main ()
13011{
13012return dlopen ();
13013  ;
13014  return 0;
13015}
13016_ACEOF
13017if ac_fn_c_try_link "$LINENO"; then :
13018  ac_cv_lib_svld_dlopen=yes
13019else
13020  ac_cv_lib_svld_dlopen=no
13021fi
13022rm -f core conftest.err conftest.$ac_objext \
13023    conftest$ac_exeext conftest.$ac_ext
13024LIBS=$ac_check_lib_save_LIBS
13025fi
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13027$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13028if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13029  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13030else
13031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13032$as_echo_n "checking for dld_link in -ldld... " >&6; }
13033if ${ac_cv_lib_dld_dld_link+:} false; then :
13034  $as_echo_n "(cached) " >&6
13035else
13036  ac_check_lib_save_LIBS=$LIBS
13037LIBS="-ldld  $LIBS"
13038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039/* end confdefs.h.  */
13040
13041/* Override any GCC internal prototype to avoid an error.
13042   Use char because int might match the return type of a GCC
13043   builtin and then its argument prototype would still apply.  */
13044#ifdef __cplusplus
13045extern "C"
13046#endif
13047char dld_link ();
13048int
13049main ()
13050{
13051return dld_link ();
13052  ;
13053  return 0;
13054}
13055_ACEOF
13056if ac_fn_c_try_link "$LINENO"; then :
13057  ac_cv_lib_dld_dld_link=yes
13058else
13059  ac_cv_lib_dld_dld_link=no
13060fi
13061rm -f core conftest.err conftest.$ac_objext \
13062    conftest$ac_exeext conftest.$ac_ext
13063LIBS=$ac_check_lib_save_LIBS
13064fi
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13066$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13067if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13068  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13069fi
13070
13071
13072fi
13073
13074
13075fi
13076
13077
13078fi
13079
13080
13081fi
13082
13083
13084fi
13085
13086    ;;
13087  esac
13088
13089  if test no = "$lt_cv_dlopen"; then
13090    enable_dlopen=no
13091  else
13092    enable_dlopen=yes
13093  fi
13094
13095  case $lt_cv_dlopen in
13096  dlopen)
13097    save_CPPFLAGS=$CPPFLAGS
13098    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13099
13100    save_LDFLAGS=$LDFLAGS
13101    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13102
13103    save_LIBS=$LIBS
13104    LIBS="$lt_cv_dlopen_libs $LIBS"
13105
13106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13107$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13108if ${lt_cv_dlopen_self+:} false; then :
13109  $as_echo_n "(cached) " >&6
13110else
13111  	  if test yes = "$cross_compiling"; then :
13112  lt_cv_dlopen_self=cross
13113else
13114  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13115  lt_status=$lt_dlunknown
13116  cat > conftest.$ac_ext <<_LT_EOF
13117#line $LINENO "configure"
13118#include "confdefs.h"
13119
13120#if HAVE_DLFCN_H
13121#include <dlfcn.h>
13122#endif
13123
13124#include <stdio.h>
13125
13126#ifdef RTLD_GLOBAL
13127#  define LT_DLGLOBAL		RTLD_GLOBAL
13128#else
13129#  ifdef DL_GLOBAL
13130#    define LT_DLGLOBAL		DL_GLOBAL
13131#  else
13132#    define LT_DLGLOBAL		0
13133#  endif
13134#endif
13135
13136/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13137   find out it does not work in some platform. */
13138#ifndef LT_DLLAZY_OR_NOW
13139#  ifdef RTLD_LAZY
13140#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13141#  else
13142#    ifdef DL_LAZY
13143#      define LT_DLLAZY_OR_NOW		DL_LAZY
13144#    else
13145#      ifdef RTLD_NOW
13146#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13147#      else
13148#        ifdef DL_NOW
13149#          define LT_DLLAZY_OR_NOW	DL_NOW
13150#        else
13151#          define LT_DLLAZY_OR_NOW	0
13152#        endif
13153#      endif
13154#    endif
13155#  endif
13156#endif
13157
13158/* When -fvisibility=hidden is used, assume the code has been annotated
13159   correspondingly for the symbols needed.  */
13160#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13161int fnord () __attribute__((visibility("default")));
13162#endif
13163
13164int fnord () { return 42; }
13165int main ()
13166{
13167  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13168  int status = $lt_dlunknown;
13169
13170  if (self)
13171    {
13172      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13173      else
13174        {
13175	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13176          else puts (dlerror ());
13177	}
13178      /* dlclose (self); */
13179    }
13180  else
13181    puts (dlerror ());
13182
13183  return status;
13184}
13185_LT_EOF
13186  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13187  (eval $ac_link) 2>&5
13188  ac_status=$?
13189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13190  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13191    (./conftest; exit; ) >&5 2>/dev/null
13192    lt_status=$?
13193    case x$lt_status in
13194      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13195      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13196      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13197    esac
13198  else :
13199    # compilation failed
13200    lt_cv_dlopen_self=no
13201  fi
13202fi
13203rm -fr conftest*
13204
13205
13206fi
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13208$as_echo "$lt_cv_dlopen_self" >&6; }
13209
13210    if test yes = "$lt_cv_dlopen_self"; then
13211      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13212      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13213$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13214if ${lt_cv_dlopen_self_static+:} false; then :
13215  $as_echo_n "(cached) " >&6
13216else
13217  	  if test yes = "$cross_compiling"; then :
13218  lt_cv_dlopen_self_static=cross
13219else
13220  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13221  lt_status=$lt_dlunknown
13222  cat > conftest.$ac_ext <<_LT_EOF
13223#line $LINENO "configure"
13224#include "confdefs.h"
13225
13226#if HAVE_DLFCN_H
13227#include <dlfcn.h>
13228#endif
13229
13230#include <stdio.h>
13231
13232#ifdef RTLD_GLOBAL
13233#  define LT_DLGLOBAL		RTLD_GLOBAL
13234#else
13235#  ifdef DL_GLOBAL
13236#    define LT_DLGLOBAL		DL_GLOBAL
13237#  else
13238#    define LT_DLGLOBAL		0
13239#  endif
13240#endif
13241
13242/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13243   find out it does not work in some platform. */
13244#ifndef LT_DLLAZY_OR_NOW
13245#  ifdef RTLD_LAZY
13246#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13247#  else
13248#    ifdef DL_LAZY
13249#      define LT_DLLAZY_OR_NOW		DL_LAZY
13250#    else
13251#      ifdef RTLD_NOW
13252#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13253#      else
13254#        ifdef DL_NOW
13255#          define LT_DLLAZY_OR_NOW	DL_NOW
13256#        else
13257#          define LT_DLLAZY_OR_NOW	0
13258#        endif
13259#      endif
13260#    endif
13261#  endif
13262#endif
13263
13264/* When -fvisibility=hidden is used, assume the code has been annotated
13265   correspondingly for the symbols needed.  */
13266#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13267int fnord () __attribute__((visibility("default")));
13268#endif
13269
13270int fnord () { return 42; }
13271int main ()
13272{
13273  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13274  int status = $lt_dlunknown;
13275
13276  if (self)
13277    {
13278      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13279      else
13280        {
13281	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13282          else puts (dlerror ());
13283	}
13284      /* dlclose (self); */
13285    }
13286  else
13287    puts (dlerror ());
13288
13289  return status;
13290}
13291_LT_EOF
13292  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13293  (eval $ac_link) 2>&5
13294  ac_status=$?
13295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13296  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13297    (./conftest; exit; ) >&5 2>/dev/null
13298    lt_status=$?
13299    case x$lt_status in
13300      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13301      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13302      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13303    esac
13304  else :
13305    # compilation failed
13306    lt_cv_dlopen_self_static=no
13307  fi
13308fi
13309rm -fr conftest*
13310
13311
13312fi
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13314$as_echo "$lt_cv_dlopen_self_static" >&6; }
13315    fi
13316
13317    CPPFLAGS=$save_CPPFLAGS
13318    LDFLAGS=$save_LDFLAGS
13319    LIBS=$save_LIBS
13320    ;;
13321  esac
13322
13323  case $lt_cv_dlopen_self in
13324  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13325  *) enable_dlopen_self=unknown ;;
13326  esac
13327
13328  case $lt_cv_dlopen_self_static in
13329  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13330  *) enable_dlopen_self_static=unknown ;;
13331  esac
13332fi
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350striplib=
13351old_striplib=
13352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13353$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13354if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13355  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13356  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13358$as_echo "yes" >&6; }
13359else
13360# FIXME - insert some real tests, host_os isn't really good enough
13361  case $host_os in
13362  darwin*)
13363    if test -n "$STRIP"; then
13364      striplib="$STRIP -x"
13365      old_striplib="$STRIP -S"
13366      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13367$as_echo "yes" >&6; }
13368    else
13369      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370$as_echo "no" >&6; }
13371    fi
13372    ;;
13373  *)
13374    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375$as_echo "no" >&6; }
13376    ;;
13377  esac
13378fi
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391  # Report what library types will actually be built
13392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13393$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13395$as_echo "$can_build_shared" >&6; }
13396
13397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13398$as_echo_n "checking whether to build shared libraries... " >&6; }
13399  test no = "$can_build_shared" && enable_shared=no
13400
13401  # On AIX, shared libraries and static libraries use the same namespace, and
13402  # are all built from PIC.
13403  case $host_os in
13404  aix3*)
13405    test yes = "$enable_shared" && enable_static=no
13406    if test -n "$RANLIB"; then
13407      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13408      postinstall_cmds='$RANLIB $lib'
13409    fi
13410    ;;
13411
13412  aix[4-9]*)
13413    if test ia64 != "$host_cpu"; then
13414      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13415      yes,aix,yes) ;;			# shared object as lib.so file only
13416      yes,svr4,*) ;;			# shared object as lib.so archive member only
13417      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13418      esac
13419    fi
13420    ;;
13421  esac
13422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13423$as_echo "$enable_shared" >&6; }
13424
13425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13426$as_echo_n "checking whether to build static libraries... " >&6; }
13427  # Make sure either enable_shared or enable_static is yes.
13428  test yes = "$enable_shared" || enable_static=yes
13429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13430$as_echo "$enable_static" >&6; }
13431
13432
13433
13434
13435fi
13436ac_ext=c
13437ac_cpp='$CPP $CPPFLAGS'
13438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13440ac_compiler_gnu=$ac_cv_c_compiler_gnu
13441
13442CC=$lt_save_CC
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458        ac_config_commands="$ac_config_commands libtool"
13459
13460
13461
13462
13463# Only expand once:
13464
13465
13466
13467
13468LIBT_CURRENT=10
13469LIBT_REVISION=4
13470
13471
13472LIBT_AGE=9
13473
13474LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
13475
13476
13477LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
13478
13479
13480PKGCONFIG_REQUIRES=
13481PKGCONFIG_REQUIRES_PRIVATELY=
13482
13483
13484case "$host" in
13485  *-*-mingw*)
13486    os_win32=yes
13487    ;;
13488  *)
13489    os_win32=no
13490esac
13491 if test "$os_win32" = "yes"; then
13492  OS_WIN32_TRUE=
13493  OS_WIN32_FALSE='#'
13494else
13495  OS_WIN32_TRUE='#'
13496  OS_WIN32_FALSE=
13497fi
13498
13499
13500if test "$os_win32" = "yes"; then
13501  # Extract the first word of "lib.exe", so it can be a program name with args.
13502set dummy lib.exe; ac_word=$2
13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504$as_echo_n "checking for $ac_word... " >&6; }
13505if ${ac_cv_prog_ms_librarian+:} false; then :
13506  $as_echo_n "(cached) " >&6
13507else
13508  if test -n "$ms_librarian"; then
13509  ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
13510else
13511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512for as_dir in $PATH
13513do
13514  IFS=$as_save_IFS
13515  test -z "$as_dir" && as_dir=.
13516    for ac_exec_ext in '' $ac_executable_extensions; do
13517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13518    ac_cv_prog_ms_librarian="yes"
13519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520    break 2
13521  fi
13522done
13523  done
13524IFS=$as_save_IFS
13525
13526  test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
13527fi
13528fi
13529ms_librarian=$ac_cv_prog_ms_librarian
13530if test -n "$ms_librarian"; then
13531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
13532$as_echo "$ms_librarian" >&6; }
13533else
13534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535$as_echo "no" >&6; }
13536fi
13537
13538
13539fi
13540 if test x$ms_librarian = xyes; then
13541  MS_LIB_AVAILABLE_TRUE=
13542  MS_LIB_AVAILABLE_FALSE='#'
13543else
13544  MS_LIB_AVAILABLE_TRUE='#'
13545  MS_LIB_AVAILABLE_FALSE=
13546fi
13547
13548
13549ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
13550if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
13551  SUNCC="yes"
13552else
13553  SUNCC="no"
13554fi
13555
13556WARN_CFLAGS=""
13557WARNING_CPP_DIRECTIVE="no"
13558if test "x$GCC" = "xyes"; then
13559	WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
13560	-Wmissing-prototypes -Wmissing-declarations \
13561	-Wnested-externs -fno-strict-aliasing"
13562	WARNING_CPP_DIRECTIVE="yes"
13563elif test "x$SUNCC" = "xyes"; then
13564	WARN_CFLAGS="-v -fd"
13565	WARNING_CPP_DIRECTIVE="yes"
13566fi
13567if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
13568
13569cat >>confdefs.h <<_ACEOF
13570#define HAVE_WARNING_CPP_DIRECTIVE 1
13571_ACEOF
13572
13573fi
13574
13575
13576
13577
13578# Put a plausible default for CC_FOR_BUILD in Makefile.
13579if test -z "$CC_FOR_BUILD"; then
13580  if test "x$cross_compiling" = "xno"; then
13581    CC_FOR_BUILD='$(CC)'
13582  else
13583    CC_FOR_BUILD=gcc
13584  fi
13585fi
13586
13587# Also set EXEEXT_FOR_BUILD.
13588if test "x$cross_compiling" = "xno"; then
13589  EXEEXT_FOR_BUILD='$(EXEEXT)'
13590else
13591  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13592$as_echo_n "checking for build system executable suffix... " >&6; }
13593if ${bfd_cv_build_exeext+:} false; then :
13594  $as_echo_n "(cached) " >&6
13595else
13596  rm -f conftest*
13597     echo 'int main () { return 0; }' > conftest.c
13598     bfd_cv_build_exeext=
13599     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13600     for file in conftest.*; do
13601       case $file in
13602       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13603       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13604       esac
13605     done
13606     rm -f conftest*
13607     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13608fi
13609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13610$as_echo "$bfd_cv_build_exeext" >&6; }
13611  EXEEXT_FOR_BUILD=""
13612  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13613fi
13614
13615
13616 if test $cross_compiling = yes; then
13617  CROSS_COMPILING_TRUE=
13618  CROSS_COMPILING_FALSE='#'
13619else
13620  CROSS_COMPILING_TRUE='#'
13621  CROSS_COMPILING_FALSE=
13622fi
13623
13624 if test "$enable_shared" = "yes"; then
13625  ENABLE_SHARED_TRUE=
13626  ENABLE_SHARED_FALSE='#'
13627else
13628  ENABLE_SHARED_TRUE='#'
13629  ENABLE_SHARED_FALSE=
13630fi
13631
13632
13633
13634
13635# Check whether --with-arch was given.
13636if test "${with_arch+set}" = set; then :
13637  withval=$with_arch; arch="$withval"
13638else
13639  arch=auto
13640fi
13641
13642
13643if test "x$arch" != xauto; then
13644
13645cat >>confdefs.h <<_ACEOF
13646#define FC_ARCHITECTURE "$arch"
13647_ACEOF
13648
13649fi
13650
13651
13652
13653# Checks for header files.
13654ac_header_dirent=no
13655for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13656  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13658$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13659if eval \${$as_ac_Header+:} false; then :
13660  $as_echo_n "(cached) " >&6
13661else
13662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663/* end confdefs.h.  */
13664#include <sys/types.h>
13665#include <$ac_hdr>
13666
13667int
13668main ()
13669{
13670if ((DIR *) 0)
13671return 0;
13672  ;
13673  return 0;
13674}
13675_ACEOF
13676if ac_fn_c_try_compile "$LINENO"; then :
13677  eval "$as_ac_Header=yes"
13678else
13679  eval "$as_ac_Header=no"
13680fi
13681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682fi
13683eval ac_res=\$$as_ac_Header
13684	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13685$as_echo "$ac_res" >&6; }
13686if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13687  cat >>confdefs.h <<_ACEOF
13688#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13689_ACEOF
13690
13691ac_header_dirent=$ac_hdr; break
13692fi
13693
13694done
13695# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13696if test $ac_header_dirent = dirent.h; then
13697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13698$as_echo_n "checking for library containing opendir... " >&6; }
13699if ${ac_cv_search_opendir+:} false; then :
13700  $as_echo_n "(cached) " >&6
13701else
13702  ac_func_search_save_LIBS=$LIBS
13703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704/* end confdefs.h.  */
13705
13706/* Override any GCC internal prototype to avoid an error.
13707   Use char because int might match the return type of a GCC
13708   builtin and then its argument prototype would still apply.  */
13709#ifdef __cplusplus
13710extern "C"
13711#endif
13712char opendir ();
13713int
13714main ()
13715{
13716return opendir ();
13717  ;
13718  return 0;
13719}
13720_ACEOF
13721for ac_lib in '' dir; do
13722  if test -z "$ac_lib"; then
13723    ac_res="none required"
13724  else
13725    ac_res=-l$ac_lib
13726    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13727  fi
13728  if ac_fn_c_try_link "$LINENO"; then :
13729  ac_cv_search_opendir=$ac_res
13730fi
13731rm -f core conftest.err conftest.$ac_objext \
13732    conftest$ac_exeext
13733  if ${ac_cv_search_opendir+:} false; then :
13734  break
13735fi
13736done
13737if ${ac_cv_search_opendir+:} false; then :
13738
13739else
13740  ac_cv_search_opendir=no
13741fi
13742rm conftest.$ac_ext
13743LIBS=$ac_func_search_save_LIBS
13744fi
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13746$as_echo "$ac_cv_search_opendir" >&6; }
13747ac_res=$ac_cv_search_opendir
13748if test "$ac_res" != no; then :
13749  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13750
13751fi
13752
13753else
13754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13755$as_echo_n "checking for library containing opendir... " >&6; }
13756if ${ac_cv_search_opendir+:} false; then :
13757  $as_echo_n "(cached) " >&6
13758else
13759  ac_func_search_save_LIBS=$LIBS
13760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761/* end confdefs.h.  */
13762
13763/* Override any GCC internal prototype to avoid an error.
13764   Use char because int might match the return type of a GCC
13765   builtin and then its argument prototype would still apply.  */
13766#ifdef __cplusplus
13767extern "C"
13768#endif
13769char opendir ();
13770int
13771main ()
13772{
13773return opendir ();
13774  ;
13775  return 0;
13776}
13777_ACEOF
13778for ac_lib in '' x; do
13779  if test -z "$ac_lib"; then
13780    ac_res="none required"
13781  else
13782    ac_res=-l$ac_lib
13783    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13784  fi
13785  if ac_fn_c_try_link "$LINENO"; then :
13786  ac_cv_search_opendir=$ac_res
13787fi
13788rm -f core conftest.err conftest.$ac_objext \
13789    conftest$ac_exeext
13790  if ${ac_cv_search_opendir+:} false; then :
13791  break
13792fi
13793done
13794if ${ac_cv_search_opendir+:} false; then :
13795
13796else
13797  ac_cv_search_opendir=no
13798fi
13799rm conftest.$ac_ext
13800LIBS=$ac_func_search_save_LIBS
13801fi
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13803$as_echo "$ac_cv_search_opendir" >&6; }
13804ac_res=$ac_cv_search_opendir
13805if test "$ac_res" != no; then :
13806  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13807
13808fi
13809
13810fi
13811
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13813$as_echo_n "checking for ANSI C header files... " >&6; }
13814if ${ac_cv_header_stdc+:} false; then :
13815  $as_echo_n "(cached) " >&6
13816else
13817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818/* end confdefs.h.  */
13819#include <stdlib.h>
13820#include <stdarg.h>
13821#include <string.h>
13822#include <float.h>
13823
13824int
13825main ()
13826{
13827
13828  ;
13829  return 0;
13830}
13831_ACEOF
13832if ac_fn_c_try_compile "$LINENO"; then :
13833  ac_cv_header_stdc=yes
13834else
13835  ac_cv_header_stdc=no
13836fi
13837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838
13839if test $ac_cv_header_stdc = yes; then
13840  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842/* end confdefs.h.  */
13843#include <string.h>
13844
13845_ACEOF
13846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13847  $EGREP "memchr" >/dev/null 2>&1; then :
13848
13849else
13850  ac_cv_header_stdc=no
13851fi
13852rm -f conftest*
13853
13854fi
13855
13856if test $ac_cv_header_stdc = yes; then
13857  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859/* end confdefs.h.  */
13860#include <stdlib.h>
13861
13862_ACEOF
13863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13864  $EGREP "free" >/dev/null 2>&1; then :
13865
13866else
13867  ac_cv_header_stdc=no
13868fi
13869rm -f conftest*
13870
13871fi
13872
13873if test $ac_cv_header_stdc = yes; then
13874  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13875  if test "$cross_compiling" = yes; then :
13876  :
13877else
13878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879/* end confdefs.h.  */
13880#include <ctype.h>
13881#include <stdlib.h>
13882#if ((' ' & 0x0FF) == 0x020)
13883# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13884# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13885#else
13886# define ISLOWER(c) \
13887		   (('a' <= (c) && (c) <= 'i') \
13888		     || ('j' <= (c) && (c) <= 'r') \
13889		     || ('s' <= (c) && (c) <= 'z'))
13890# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13891#endif
13892
13893#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13894int
13895main ()
13896{
13897  int i;
13898  for (i = 0; i < 256; i++)
13899    if (XOR (islower (i), ISLOWER (i))
13900	|| toupper (i) != TOUPPER (i))
13901      return 2;
13902  return 0;
13903}
13904_ACEOF
13905if ac_fn_c_try_run "$LINENO"; then :
13906
13907else
13908  ac_cv_header_stdc=no
13909fi
13910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13911  conftest.$ac_objext conftest.beam conftest.$ac_ext
13912fi
13913
13914fi
13915fi
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13917$as_echo "$ac_cv_header_stdc" >&6; }
13918if test $ac_cv_header_stdc = yes; then
13919
13920$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13921
13922fi
13923
13924for ac_header in fcntl.h stdlib.h string.h unistd.h sys/statvfs.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h
13925do :
13926  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13927ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13928if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13929  cat >>confdefs.h <<_ACEOF
13930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13931_ACEOF
13932
13933fi
13934
13935done
13936
13937# ------ AX CREATE STDINT H -------------------------------------
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
13939$as_echo_n "checking for stdint types... " >&6; }
13940ac_stdint_h=`echo src/fcstdint.h`
13941# try to shortcircuit - if the default include path of the compiler
13942# can find a "stdint.h" header then we assume that all compilers can.
13943if ${ac_cv_header_stdint_t+:} false; then :
13944  $as_echo_n "(cached) " >&6
13945else
13946
13947old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
13948old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
13949old_CFLAGS="$CFLAGS"     ; CFLAGS=""
13950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13951/* end confdefs.h.  */
13952#include <stdint.h>
13953int
13954main ()
13955{
13956int_least32_t v = 0;
13957  ;
13958  return 0;
13959}
13960_ACEOF
13961if ac_fn_c_try_compile "$LINENO"; then :
13962  ac_cv_stdint_result="(assuming C99 compatible system)"
13963 ac_cv_header_stdint_t="stdint.h";
13964else
13965  ac_cv_header_stdint_t=""
13966fi
13967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
13969CFLAGS="-std=c99"
13970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971/* end confdefs.h.  */
13972#include <stdint.h>
13973int
13974main ()
13975{
13976int_least32_t v = 0;
13977  ;
13978  return 0;
13979}
13980_ACEOF
13981if ac_fn_c_try_compile "$LINENO"; then :
13982  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
13983$as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
13984fi
13985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986fi
13987CXXFLAGS="$old_CXXFLAGS"
13988CPPFLAGS="$old_CPPFLAGS"
13989CFLAGS="$old_CFLAGS"
13990fi
13991
13992
13993v="... $ac_cv_header_stdint_h"
13994if test "$ac_stdint_h" = "stdint.h" ; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
13996$as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
13997elif test "$ac_stdint_h" = "inttypes.h" ; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
13999$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
14000elif test "_$ac_cv_header_stdint_t" = "_" ; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
14002$as_echo "(putting them into $ac_stdint_h)$v" >&6; }
14003else
14004 ac_cv_header_stdint="$ac_cv_header_stdint_t"
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
14006$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
14007fi
14008
14009if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
14010
14011
14012inttype_headers=`echo  | sed -e 's/,/ /g'`
14013
14014ac_cv_stdint_result="(no helpful system typedefs seen)"
14015
14016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
14017$as_echo_n "checking for stdint uintptr_t... " >&6; }
14018if ${ac_cv_header_stdint_x+:} false; then :
14019  $as_echo_n "(cached) " >&6
14020else
14021
14022 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
14023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14024$as_echo "(..)" >&6; }
14025  for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
14026  do
14027   unset ac_cv_type_uintptr_t
14028   unset ac_cv_type_uint64_t
14029   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
14030"
14031if test "x$ac_cv_type_uintptr_t" = xyes; then :
14032  ac_cv_header_stdint_x=$i
14033else
14034  continue
14035fi
14036
14037   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
14038"
14039if test "x$ac_cv_type_uint64_t" = xyes; then :
14040  and64="/uint64_t"
14041else
14042  and64=""
14043fi
14044
14045   ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
14046 break
14047  done
14048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
14049$as_echo_n "checking for stdint uintptr_t... " >&6; }
14050
14051fi
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
14053$as_echo "$ac_cv_header_stdint_x" >&6; }
14054
14055
14056if test "_$ac_cv_header_stdint_x" = "_" ; then
14057
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
14059$as_echo_n "checking for stdint uint32_t... " >&6; }
14060if ${ac_cv_header_stdint_o+:} false; then :
14061  $as_echo_n "(cached) " >&6
14062else
14063
14064 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
14065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14066$as_echo "(..)" >&6; }
14067  for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
14068  do
14069   unset ac_cv_type_uint32_t
14070   unset ac_cv_type_uint64_t
14071   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
14072"
14073if test "x$ac_cv_type_uint32_t" = xyes; then :
14074  ac_cv_header_stdint_o=$i
14075else
14076  continue
14077fi
14078
14079   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
14080"
14081if test "x$ac_cv_type_uint64_t" = xyes; then :
14082  and64="/uint64_t"
14083else
14084  and64=""
14085fi
14086
14087   ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
14088 break
14089   break;
14090  done
14091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
14092$as_echo_n "checking for stdint uint32_t... " >&6; }
14093
14094fi
14095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
14096$as_echo "$ac_cv_header_stdint_o" >&6; }
14097
14098fi
14099
14100if test "_$ac_cv_header_stdint_x" = "_" ; then
14101if test "_$ac_cv_header_stdint_o" = "_" ; then
14102
14103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
14104$as_echo_n "checking for stdint u_int32_t... " >&6; }
14105if ${ac_cv_header_stdint_u+:} false; then :
14106  $as_echo_n "(cached) " >&6
14107else
14108
14109 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
14110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14111$as_echo "(..)" >&6; }
14112  for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
14113   unset ac_cv_type_u_int32_t
14114   unset ac_cv_type_u_int64_t
14115   ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
14116"
14117if test "x$ac_cv_type_u_int32_t" = xyes; then :
14118  ac_cv_header_stdint_u=$i
14119else
14120  continue
14121fi
14122
14123   ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
14124"
14125if test "x$ac_cv_type_u_int64_t" = xyes; then :
14126  and64="/u_int64_t"
14127else
14128  and64=""
14129fi
14130
14131   ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
14132 break
14133   break;
14134  done
14135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
14136$as_echo_n "checking for stdint u_int32_t... " >&6; }
14137
14138fi
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
14140$as_echo "$ac_cv_header_stdint_u" >&6; }
14141
14142fi fi
14143
14144if test "_$ac_cv_header_stdint_x" = "_" ; then
14145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
14146$as_echo_n "checking for stdint datatype model... " >&6; }
14147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14148$as_echo "(..)" >&6; }
14149
14150   # The cast to long int works around a bug in the HP C Compiler
14151# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14152# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14153# This bug is HP SR number 8606223364.
14154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14155$as_echo_n "checking size of char... " >&6; }
14156if ${ac_cv_sizeof_char+:} false; then :
14157  $as_echo_n "(cached) " >&6
14158else
14159  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
14160
14161else
14162  if test "$ac_cv_type_char" = yes; then
14163     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14165as_fn_error 77 "cannot compute sizeof (char)
14166See \`config.log' for more details" "$LINENO" 5; }
14167   else
14168     ac_cv_sizeof_char=0
14169   fi
14170fi
14171
14172fi
14173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14174$as_echo "$ac_cv_sizeof_char" >&6; }
14175
14176
14177
14178cat >>confdefs.h <<_ACEOF
14179#define SIZEOF_CHAR $ac_cv_sizeof_char
14180_ACEOF
14181
14182
14183   # The cast to long int works around a bug in the HP C Compiler
14184# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14185# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14186# This bug is HP SR number 8606223364.
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14188$as_echo_n "checking size of short... " >&6; }
14189if ${ac_cv_sizeof_short+:} false; then :
14190  $as_echo_n "(cached) " >&6
14191else
14192  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14193
14194else
14195  if test "$ac_cv_type_short" = yes; then
14196     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14198as_fn_error 77 "cannot compute sizeof (short)
14199See \`config.log' for more details" "$LINENO" 5; }
14200   else
14201     ac_cv_sizeof_short=0
14202   fi
14203fi
14204
14205fi
14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14207$as_echo "$ac_cv_sizeof_short" >&6; }
14208
14209
14210
14211cat >>confdefs.h <<_ACEOF
14212#define SIZEOF_SHORT $ac_cv_sizeof_short
14213_ACEOF
14214
14215
14216   # The cast to long int works around a bug in the HP C Compiler
14217# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14218# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14219# This bug is HP SR number 8606223364.
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14221$as_echo_n "checking size of int... " >&6; }
14222if ${ac_cv_sizeof_int+:} false; then :
14223  $as_echo_n "(cached) " >&6
14224else
14225  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14226
14227else
14228  if test "$ac_cv_type_int" = yes; then
14229     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14231as_fn_error 77 "cannot compute sizeof (int)
14232See \`config.log' for more details" "$LINENO" 5; }
14233   else
14234     ac_cv_sizeof_int=0
14235   fi
14236fi
14237
14238fi
14239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14240$as_echo "$ac_cv_sizeof_int" >&6; }
14241
14242
14243
14244cat >>confdefs.h <<_ACEOF
14245#define SIZEOF_INT $ac_cv_sizeof_int
14246_ACEOF
14247
14248
14249   # The cast to long int works around a bug in the HP C Compiler
14250# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14251# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14252# This bug is HP SR number 8606223364.
14253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14254$as_echo_n "checking size of long... " >&6; }
14255if ${ac_cv_sizeof_long+:} false; then :
14256  $as_echo_n "(cached) " >&6
14257else
14258  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14259
14260else
14261  if test "$ac_cv_type_long" = yes; then
14262     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14264as_fn_error 77 "cannot compute sizeof (long)
14265See \`config.log' for more details" "$LINENO" 5; }
14266   else
14267     ac_cv_sizeof_long=0
14268   fi
14269fi
14270
14271fi
14272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14273$as_echo "$ac_cv_sizeof_long" >&6; }
14274
14275
14276
14277cat >>confdefs.h <<_ACEOF
14278#define SIZEOF_LONG $ac_cv_sizeof_long
14279_ACEOF
14280
14281
14282   # The cast to long int works around a bug in the HP C Compiler
14283# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14284# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14285# This bug is HP SR number 8606223364.
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
14287$as_echo_n "checking size of void*... " >&6; }
14288if ${ac_cv_sizeof_voidp+:} false; then :
14289  $as_echo_n "(cached) " >&6
14290else
14291  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
14292
14293else
14294  if test "$ac_cv_type_voidp" = yes; then
14295     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14297as_fn_error 77 "cannot compute sizeof (void*)
14298See \`config.log' for more details" "$LINENO" 5; }
14299   else
14300     ac_cv_sizeof_voidp=0
14301   fi
14302fi
14303
14304fi
14305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
14306$as_echo "$ac_cv_sizeof_voidp" >&6; }
14307
14308
14309
14310cat >>confdefs.h <<_ACEOF
14311#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
14312_ACEOF
14313
14314
14315   ac_cv_char_data_model=""
14316   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
14317   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
14318   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
14319   ac_cv_long_data_model=""
14320   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
14321   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
14322   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
14323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
14324$as_echo_n "checking data model... " >&6; }
14325   case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
14326    122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
14327    122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
14328    122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
14329    124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
14330    124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
14331    124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
14332    124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
14333    128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
14334    128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
14335    222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
14336    333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
14337    444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
14338    666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
14339    888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
14340    222/*|333/*|444/*|666/*|888/*) :
14341                 ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
14342     *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
14343   esac
14344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
14345$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
14346
14347fi
14348
14349if test "_$ac_cv_header_stdint_x" != "_" ; then
14350   ac_cv_header_stdint="$ac_cv_header_stdint_x"
14351elif  test "_$ac_cv_header_stdint_o" != "_" ; then
14352   ac_cv_header_stdint="$ac_cv_header_stdint_o"
14353elif  test "_$ac_cv_header_stdint_u" != "_" ; then
14354   ac_cv_header_stdint="$ac_cv_header_stdint_u"
14355else
14356   ac_cv_header_stdint="stddef.h"
14357fi
14358
14359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
14360$as_echo_n "checking for extra inttypes in chosen header... " >&6; }
14361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
14362$as_echo "($ac_cv_header_stdint)" >&6; }
14363unset ac_cv_type_int_least32_t
14364unset ac_cv_type_int_fast32_t
14365ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
14366"
14367if test "x$ac_cv_type_int_least32_t" = xyes; then :
14368
14369fi
14370
14371ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
14372"
14373if test "x$ac_cv_type_int_fast32_t" = xyes; then :
14374
14375fi
14376
14377ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
14378"
14379if test "x$ac_cv_type_intmax_t" = xyes; then :
14380
14381fi
14382
14383
14384fi # shortcircut to system "stdint.h"
14385# ------------------ PREPARE VARIABLES ------------------------------
14386if test "$GCC" = "yes" ; then
14387ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
14388else
14389ac_cv_stdint_message="using $CC"
14390fi
14391
14392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
14393$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
14394
14395# ----------------- DONE inttypes.h checks START header -------------
14396ac_config_commands="$ac_config_commands $ac_stdint_h"
14397
14398
14399
14400# Checks for typedefs, structures, and compiler characteristics.
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14402$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14403if ${ac_cv_c_const+:} false; then :
14404  $as_echo_n "(cached) " >&6
14405else
14406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407/* end confdefs.h.  */
14408
14409int
14410main ()
14411{
14412
14413#ifndef __cplusplus
14414  /* Ultrix mips cc rejects this sort of thing.  */
14415  typedef int charset[2];
14416  const charset cs = { 0, 0 };
14417  /* SunOS 4.1.1 cc rejects this.  */
14418  char const *const *pcpcc;
14419  char **ppc;
14420  /* NEC SVR4.0.2 mips cc rejects this.  */
14421  struct point {int x, y;};
14422  static struct point const zero = {0,0};
14423  /* AIX XL C 1.02.0.0 rejects this.
14424     It does not let you subtract one const X* pointer from another in
14425     an arm of an if-expression whose if-part is not a constant
14426     expression */
14427  const char *g = "string";
14428  pcpcc = &g + (g ? g-g : 0);
14429  /* HPUX 7.0 cc rejects these. */
14430  ++pcpcc;
14431  ppc = (char**) pcpcc;
14432  pcpcc = (char const *const *) ppc;
14433  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14434    char tx;
14435    char *t = &tx;
14436    char const *s = 0 ? (char *) 0 : (char const *) 0;
14437
14438    *t++ = 0;
14439    if (s) return 0;
14440  }
14441  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14442    int x[] = {25, 17};
14443    const int *foo = &x[0];
14444    ++foo;
14445  }
14446  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14447    typedef const int *iptr;
14448    iptr p = 0;
14449    ++p;
14450  }
14451  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14452       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14453    struct s { int j; const int *ap[3]; } bx;
14454    struct s *b = &bx; b->j = 5;
14455  }
14456  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14457    const int foo = 10;
14458    if (!foo) return 0;
14459  }
14460  return !cs[0] && !zero.x;
14461#endif
14462
14463  ;
14464  return 0;
14465}
14466_ACEOF
14467if ac_fn_c_try_compile "$LINENO"; then :
14468  ac_cv_c_const=yes
14469else
14470  ac_cv_c_const=no
14471fi
14472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473fi
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14475$as_echo "$ac_cv_c_const" >&6; }
14476if test $ac_cv_c_const = no; then
14477
14478$as_echo "#define const /**/" >>confdefs.h
14479
14480fi
14481
14482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14483$as_echo_n "checking for inline... " >&6; }
14484if ${ac_cv_c_inline+:} false; then :
14485  $as_echo_n "(cached) " >&6
14486else
14487  ac_cv_c_inline=no
14488for ac_kw in inline __inline__ __inline; do
14489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490/* end confdefs.h.  */
14491#ifndef __cplusplus
14492typedef int foo_t;
14493static $ac_kw foo_t static_foo () {return 0; }
14494$ac_kw foo_t foo () {return 0; }
14495#endif
14496
14497_ACEOF
14498if ac_fn_c_try_compile "$LINENO"; then :
14499  ac_cv_c_inline=$ac_kw
14500fi
14501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502  test "$ac_cv_c_inline" != no && break
14503done
14504
14505fi
14506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14507$as_echo "$ac_cv_c_inline" >&6; }
14508
14509case $ac_cv_c_inline in
14510  inline | yes) ;;
14511  *)
14512    case $ac_cv_c_inline in
14513      no) ac_val=;;
14514      *) ac_val=$ac_cv_c_inline;;
14515    esac
14516    cat >>confdefs.h <<_ACEOF
14517#ifndef __cplusplus
14518#define inline $ac_val
14519#endif
14520_ACEOF
14521    ;;
14522esac
14523
14524
14525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
14526$as_echo_n "checking for flexible array members... " >&6; }
14527if ${ac_cv_c_flexmember+:} false; then :
14528  $as_echo_n "(cached) " >&6
14529else
14530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531/* end confdefs.h.  */
14532#include <stdlib.h>
14533	    #include <stdio.h>
14534	    #include <stddef.h>
14535	    struct s { int n; double d[]; };
14536int
14537main ()
14538{
14539int m = getchar ();
14540	    struct s *p = malloc (offsetof (struct s, d)
14541				  + m * sizeof (double));
14542	    p->d[0] = 0.0;
14543	    return p->d != (double *) NULL;
14544  ;
14545  return 0;
14546}
14547_ACEOF
14548if ac_fn_c_try_compile "$LINENO"; then :
14549  ac_cv_c_flexmember=yes
14550else
14551  ac_cv_c_flexmember=no
14552fi
14553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554fi
14555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14556$as_echo "$ac_cv_c_flexmember" >&6; }
14557  if test $ac_cv_c_flexmember = yes; then
14558
14559$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14560
14561  else
14562    $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14563
14564  fi
14565
14566ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14567if test "x$ac_cv_type_pid_t" = xyes; then :
14568
14569else
14570
14571cat >>confdefs.h <<_ACEOF
14572#define pid_t int
14573_ACEOF
14574
14575fi
14576
14577
14578# Checks for library functions.
14579for ac_func in vprintf
14580do :
14581  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14582if test "x$ac_cv_func_vprintf" = xyes; then :
14583  cat >>confdefs.h <<_ACEOF
14584#define HAVE_VPRINTF 1
14585_ACEOF
14586
14587ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14588if test "x$ac_cv_func__doprnt" = xyes; then :
14589
14590$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14591
14592fi
14593
14594fi
14595done
14596
14597
14598
14599
14600
14601  for ac_header in $ac_header_list
14602do :
14603  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14604ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14605"
14606if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14607  cat >>confdefs.h <<_ACEOF
14608#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14609_ACEOF
14610
14611fi
14612
14613done
14614
14615
14616
14617
14618
14619
14620
14621
14622for ac_func in getpagesize
14623do :
14624  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14625if test "x$ac_cv_func_getpagesize" = xyes; then :
14626  cat >>confdefs.h <<_ACEOF
14627#define HAVE_GETPAGESIZE 1
14628_ACEOF
14629
14630fi
14631done
14632
14633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14634$as_echo_n "checking for working mmap... " >&6; }
14635if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14636  $as_echo_n "(cached) " >&6
14637else
14638  if test "$cross_compiling" = yes; then :
14639  ac_cv_func_mmap_fixed_mapped=no
14640else
14641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642/* end confdefs.h.  */
14643$ac_includes_default
14644/* malloc might have been renamed as rpl_malloc. */
14645#undef malloc
14646
14647/* Thanks to Mike Haertel and Jim Avera for this test.
14648   Here is a matrix of mmap possibilities:
14649	mmap private not fixed
14650	mmap private fixed at somewhere currently unmapped
14651	mmap private fixed at somewhere already mapped
14652	mmap shared not fixed
14653	mmap shared fixed at somewhere currently unmapped
14654	mmap shared fixed at somewhere already mapped
14655   For private mappings, we should verify that changes cannot be read()
14656   back from the file, nor mmap's back from the file at a different
14657   address.  (There have been systems where private was not correctly
14658   implemented like the infamous i386 svr4.0, and systems where the
14659   VM page cache was not coherent with the file system buffer cache
14660   like early versions of FreeBSD and possibly contemporary NetBSD.)
14661   For shared mappings, we should conversely verify that changes get
14662   propagated back to all the places they're supposed to be.
14663
14664   Grep wants private fixed already mapped.
14665   The main things grep needs to know about mmap are:
14666   * does it exist and is it safe to write into the mmap'd area
14667   * how to use it (BSD variants)  */
14668
14669#include <fcntl.h>
14670#include <sys/mman.h>
14671
14672#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14673char *malloc ();
14674#endif
14675
14676/* This mess was copied from the GNU getpagesize.h.  */
14677#ifndef HAVE_GETPAGESIZE
14678# ifdef _SC_PAGESIZE
14679#  define getpagesize() sysconf(_SC_PAGESIZE)
14680# else /* no _SC_PAGESIZE */
14681#  ifdef HAVE_SYS_PARAM_H
14682#   include <sys/param.h>
14683#   ifdef EXEC_PAGESIZE
14684#    define getpagesize() EXEC_PAGESIZE
14685#   else /* no EXEC_PAGESIZE */
14686#    ifdef NBPG
14687#     define getpagesize() NBPG * CLSIZE
14688#     ifndef CLSIZE
14689#      define CLSIZE 1
14690#     endif /* no CLSIZE */
14691#    else /* no NBPG */
14692#     ifdef NBPC
14693#      define getpagesize() NBPC
14694#     else /* no NBPC */
14695#      ifdef PAGESIZE
14696#       define getpagesize() PAGESIZE
14697#      endif /* PAGESIZE */
14698#     endif /* no NBPC */
14699#    endif /* no NBPG */
14700#   endif /* no EXEC_PAGESIZE */
14701#  else /* no HAVE_SYS_PARAM_H */
14702#   define getpagesize() 8192	/* punt totally */
14703#  endif /* no HAVE_SYS_PARAM_H */
14704# endif /* no _SC_PAGESIZE */
14705
14706#endif /* no HAVE_GETPAGESIZE */
14707
14708int
14709main ()
14710{
14711  char *data, *data2, *data3;
14712  const char *cdata2;
14713  int i, pagesize;
14714  int fd, fd2;
14715
14716  pagesize = getpagesize ();
14717
14718  /* First, make a file with some known garbage in it. */
14719  data = (char *) malloc (pagesize);
14720  if (!data)
14721    return 1;
14722  for (i = 0; i < pagesize; ++i)
14723    *(data + i) = rand ();
14724  umask (0);
14725  fd = creat ("conftest.mmap", 0600);
14726  if (fd < 0)
14727    return 2;
14728  if (write (fd, data, pagesize) != pagesize)
14729    return 3;
14730  close (fd);
14731
14732  /* Next, check that the tail of a page is zero-filled.  File must have
14733     non-zero length, otherwise we risk SIGBUS for entire page.  */
14734  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14735  if (fd2 < 0)
14736    return 4;
14737  cdata2 = "";
14738  if (write (fd2, cdata2, 1) != 1)
14739    return 5;
14740  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14741  if (data2 == MAP_FAILED)
14742    return 6;
14743  for (i = 0; i < pagesize; ++i)
14744    if (*(data2 + i))
14745      return 7;
14746  close (fd2);
14747  if (munmap (data2, pagesize))
14748    return 8;
14749
14750  /* Next, try to mmap the file at a fixed address which already has
14751     something else allocated at it.  If we can, also make sure that
14752     we see the same garbage.  */
14753  fd = open ("conftest.mmap", O_RDWR);
14754  if (fd < 0)
14755    return 9;
14756  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14757		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
14758    return 10;
14759  for (i = 0; i < pagesize; ++i)
14760    if (*(data + i) != *(data2 + i))
14761      return 11;
14762
14763  /* Finally, make sure that changes to the mapped area do not
14764     percolate back to the file as seen by read().  (This is a bug on
14765     some variants of i386 svr4.0.)  */
14766  for (i = 0; i < pagesize; ++i)
14767    *(data2 + i) = *(data2 + i) + 1;
14768  data3 = (char *) malloc (pagesize);
14769  if (!data3)
14770    return 12;
14771  if (read (fd, data3, pagesize) != pagesize)
14772    return 13;
14773  for (i = 0; i < pagesize; ++i)
14774    if (*(data + i) != *(data3 + i))
14775      return 14;
14776  close (fd);
14777  return 0;
14778}
14779_ACEOF
14780if ac_fn_c_try_run "$LINENO"; then :
14781  ac_cv_func_mmap_fixed_mapped=yes
14782else
14783  ac_cv_func_mmap_fixed_mapped=no
14784fi
14785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14786  conftest.$ac_objext conftest.beam conftest.$ac_ext
14787fi
14788
14789fi
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14791$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14792if test $ac_cv_func_mmap_fixed_mapped = yes; then
14793
14794$as_echo "#define HAVE_MMAP 1" >>confdefs.h
14795
14796fi
14797rm -f conftest.mmap conftest.txt
14798
14799for ac_func in link mkstemp mkostemp _mktemp_s mkdtemp getopt getopt_long getprogname getexecname rand random lrand48 random_r rand_r readlink fstatvfs fstatfs lstat
14800do :
14801  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14802ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14803if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14804  cat >>confdefs.h <<_ACEOF
14805#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14806_ACEOF
14807
14808fi
14809done
14810
14811
14812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
14813$as_echo_n "checking for posix_fadvise in fcntl.h... " >&6; }
14814if ${ac_cv_func_posix_fadvise+:} false; then :
14815  $as_echo_n "(cached) " >&6
14816else
14817  symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
14818ac_found=no
14819for ac_header in fcntl.h ; do
14820  ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
14821  if test $ac_found != "yes" ; then
14822      if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14823            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h.  */
14825#include <$ac_header>
14826
14827_ACEOF
14828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14829  $EGREP "$symbol" >/dev/null 2>&1; then :
14830  ac_found="$ac_header"
14831fi
14832rm -f conftest*
14833
14834      fi
14835  fi
14836done
14837if test "$ac_found" != "no" ; then
14838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
14839$as_echo "$ac_found" >&6; }
14840  fc_func_posix_fadvise=1
14841else
14842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14843$as_echo "no" >&6; }
14844  fc_func_posix_fadvise=0
14845fi
14846
14847fi
14848
14849
14850cat >>confdefs.h <<_ACEOF
14851#define HAVE_POSIX_FADVISE $fc_func_posix_fadvise
14852_ACEOF
14853
14854
14855#
14856ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
14857"
14858if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14859
14860cat >>confdefs.h <<_ACEOF
14861#define HAVE_STRUCT_STAT_ST_MTIM 1
14862_ACEOF
14863
14864
14865fi
14866
14867
14868#
14869if test "x$ac_cv_func_fstatvfs" = "xyes"; then
14870	ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
14871"
14872if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
14873
14874cat >>confdefs.h <<_ACEOF
14875#define HAVE_STRUCT_STATVFS_F_BASETYPE 1
14876_ACEOF
14877
14878
14879fi
14880ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
14881"
14882if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
14883
14884cat >>confdefs.h <<_ACEOF
14885#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
14886_ACEOF
14887
14888
14889fi
14890
14891fi
14892if test "x$ac_cv_func_fstatfs" = "xyes"; then
14893	ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
14894#ifdef HAVE_SYS_VFS_H
14895#include <sys/vfs.h>
14896#endif
14897#ifdef HAVE_SYS_STATFS_H
14898#include <sys/statfs.h>
14899#endif
14900#ifdef HAVE_SYS_PARAM_H
14901#include <sys/param.h>
14902#endif
14903#ifdef HAVE_SYS_MOUNT_H
14904#include <sys/mount.h>
14905#endif
14906"
14907if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
14908
14909cat >>confdefs.h <<_ACEOF
14910#define HAVE_STRUCT_STATFS_F_FLAGS 1
14911_ACEOF
14912
14913
14914fi
14915ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
14916#ifdef HAVE_SYS_VFS_H
14917#include <sys/vfs.h>
14918#endif
14919#ifdef HAVE_SYS_STATFS_H
14920#include <sys/statfs.h>
14921#endif
14922#ifdef HAVE_SYS_PARAM_H
14923#include <sys/param.h>
14924#endif
14925#ifdef HAVE_SYS_MOUNT_H
14926#include <sys/mount.h>
14927#endif
14928"
14929if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
14930
14931cat >>confdefs.h <<_ACEOF
14932#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
14933_ACEOF
14934
14935
14936fi
14937
14938fi
14939ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
14940"
14941if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
14942
14943cat >>confdefs.h <<_ACEOF
14944#define HAVE_STRUCT_DIRENT_D_TYPE 1
14945_ACEOF
14946
14947
14948fi
14949
14950
14951# Check the argument type of the gperf hash/lookup function
14952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking The type of len parameter of gperf hash/lookup function" >&5
14953$as_echo_n "checking The type of len parameter of gperf hash/lookup function... " >&6; }
14954fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
14955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956/* end confdefs.h.  */
14957
14958	#include <string.h>
14959
14960	const char *in_word_set(register const char *, register size_t);
14961	$fc_gperf_test
14962
14963int
14964main ()
14965{
14966
14967  ;
14968  return 0;
14969}
14970_ACEOF
14971if ac_fn_c_try_compile "$LINENO"; then :
14972  FC_GPERF_SIZE_T=size_t
14973else
14974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975/* end confdefs.h.  */
14976
14977		#include <string.h>
14978
14979		const char *in_word_set(register const char *, register unsigned int);
14980		$fc_gperf_test
14981
14982int
14983main ()
14984{
14985
14986  ;
14987  return 0;
14988}
14989_ACEOF
14990if ac_fn_c_try_compile "$LINENO"; then :
14991  FC_GPERF_SIZE_T="unsigned int"
14992else
14993  as_fn_error $? "Unable to determine the type of the len parameter of the gperf hash/lookup function" "$LINENO" 5
14994
14995fi
14996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997fi
14998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999
15000cat >>confdefs.h <<_ACEOF
15001#define FC_GPERF_SIZE_T $FC_GPERF_SIZE_T
15002_ACEOF
15003
15004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_GPERF_SIZE_T" >&5
15005$as_echo "$FC_GPERF_SIZE_T" >&6; }
15006
15007#
15008# Checks for iconv
15009#
15010# Check whether --enable-iconv was given.
15011if test "${enable_iconv+set}" = set; then :
15012  enableval=$enable_iconv;
15013else
15014  enable_iconv=no
15015fi
15016
15017
15018# Check whether --with-libiconv was given.
15019if test "${with_libiconv+set}" = set; then :
15020  withval=$with_libiconv; if test "x$withval" = "xyes"; then
15021		libiconv_prefix=$prefix
15022	 else
15023		libiconv_prefix=$withval
15024	 fi
15025else
15026  libiconv_prefix=auto
15027fi
15028
15029
15030# Check whether --with-libiconv-includes was given.
15031if test "${with_libiconv_includes+set}" = set; then :
15032  withval=$with_libiconv_includes; libiconv_includes=$withval
15033else
15034  libiconv_includes=auto
15035fi
15036
15037
15038# Check whether --with-libiconv-lib was given.
15039if test "${with_libiconv_lib+set}" = set; then :
15040  withval=$with_libiconv_lib; libiconv_lib=$withval
15041else
15042  libiconv_lib=auto
15043fi
15044
15045
15046# if no libiconv,libiconv-includes,libiconv-lib are specified,
15047# libc's iconv has a priority.
15048if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
15049	libiconv_cflags="-I${libiconv_includes}"
15050elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
15051	libiconv_cflags="-I${libiconv_prefix}/include"
15052else
15053	libiconv_cflags=""
15054fi
15055libiconv_libs=""
15056if test "x$libiconv_cflags" != "x"; then
15057	if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
15058		libiconv_libs="-L${libiconv_lib} -liconv"
15059	elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
15060		libiconv_libs="-L${libiconv_prefix}/lib -liconv"
15061	else
15062		libiconv_libs="-liconv"
15063	fi
15064fi
15065
15066use_iconv=0
15067if test "x$enable_iconv" != "xno"; then
15068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
15069$as_echo_n "checking for a usable iconv... " >&6; }
15070	if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
15071		iconvsaved_CFLAGS="$CFLAGS"
15072		iconvsaved_LIBS="$LIBS"
15073		CFLAGS="$CFLAGS $libiconv_cflags"
15074		LIBS="$LIBS $libiconv_libs"
15075
15076		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077/* end confdefs.h.  */
15078#include <iconv.h>
15079int
15080main ()
15081{
15082iconv_open ("from", "to");
15083  ;
15084  return 0;
15085}
15086_ACEOF
15087if ac_fn_c_try_link "$LINENO"; then :
15088  iconv_type="libiconv"
15089			 use_iconv=1
15090			 ICONV_CFLAGS="$libiconv_cflags"
15091			 ICONV_LIBS="$libiconv_libs"
15092
15093else
15094  use_iconv=0
15095fi
15096rm -f core conftest.err conftest.$ac_objext \
15097    conftest$ac_exeext conftest.$ac_ext
15098
15099		CFLAGS="$iconvsaved_CFLAGS"
15100		LIBS="$iconvsaved_LIBS"
15101	fi
15102	if test "x$use_iconv" = "x0"; then
15103		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h.  */
15105#include <iconv.h>
15106int
15107main ()
15108{
15109iconv_open ("from", "to");
15110  ;
15111  return 0;
15112}
15113_ACEOF
15114if ac_fn_c_try_link "$LINENO"; then :
15115  iconv_type="libc"
15116			 use_iconv=1
15117else
15118  iconv_type="not found"
15119			 use_iconv=0
15120fi
15121rm -f core conftest.err conftest.$ac_objext \
15122    conftest$ac_exeext conftest.$ac_ext
15123	fi
15124
15125	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
15126$as_echo "$iconv_type" >&6; }
15127
15128
15129fi
15130
15131cat >>confdefs.h <<_ACEOF
15132#define USE_ICONV $use_iconv
15133_ACEOF
15134
15135#
15136# Checks for FreeType
15137#
15138
15139pkg_failed=no
15140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
15141$as_echo_n "checking for FREETYPE... " >&6; }
15142
15143if test -n "$FREETYPE_CFLAGS"; then
15144    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
15145 elif test -n "$PKG_CONFIG"; then
15146    if test -n "$PKG_CONFIG" && \
15147    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
15148  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
15149  ac_status=$?
15150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15151  test $ac_status = 0; }; then
15152  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
15153		      test "x$?" != "x0" && pkg_failed=yes
15154else
15155  pkg_failed=yes
15156fi
15157 else
15158    pkg_failed=untried
15159fi
15160if test -n "$FREETYPE_LIBS"; then
15161    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
15162 elif test -n "$PKG_CONFIG"; then
15163    if test -n "$PKG_CONFIG" && \
15164    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
15165  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
15166  ac_status=$?
15167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15168  test $ac_status = 0; }; then
15169  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
15170		      test "x$?" != "x0" && pkg_failed=yes
15171else
15172  pkg_failed=yes
15173fi
15174 else
15175    pkg_failed=untried
15176fi
15177
15178
15179
15180if test $pkg_failed = yes; then
15181   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15182$as_echo "no" >&6; }
15183
15184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15185        _pkg_short_errors_supported=yes
15186else
15187        _pkg_short_errors_supported=no
15188fi
15189        if test $_pkg_short_errors_supported = yes; then
15190	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
15191        else
15192	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
15193        fi
15194	# Put the nasty error message in config.log where it belongs
15195	echo "$FREETYPE_PKG_ERRORS" >&5
15196
15197	as_fn_error $? "Package requirements (freetype2) were not met:
15198
15199$FREETYPE_PKG_ERRORS
15200
15201Consider adjusting the PKG_CONFIG_PATH environment variable if you
15202installed software in a non-standard prefix.
15203
15204Alternatively, you may set the environment variables FREETYPE_CFLAGS
15205and FREETYPE_LIBS to avoid the need to call pkg-config.
15206See the pkg-config man page for more details." "$LINENO" 5
15207elif test $pkg_failed = untried; then
15208     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15209$as_echo "no" >&6; }
15210	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15212as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15213is in your PATH or set the PKG_CONFIG environment variable to the full
15214path to pkg-config.
15215
15216Alternatively, you may set the environment variables FREETYPE_CFLAGS
15217and FREETYPE_LIBS to avoid the need to call pkg-config.
15218See the pkg-config man page for more details.
15219
15220To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15221See \`config.log' for more details" "$LINENO" 5; }
15222else
15223	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
15224	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
15225        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15226$as_echo "yes" >&6; }
15227
15228fi
15229PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2"
15230
15231
15232
15233
15234fontconfig_save_libs="$LIBS"
15235fontconfig_save_cflags="$CFLAGS"
15236LIBS="$LIBS $FREETYPE_LIBS"
15237CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
15238
15239if test -n "$PKG_CONFIG" && \
15240    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 = 19.0.13\""; } >&5
15241  ($PKG_CONFIG --exists --print-errors "freetype2 = 19.0.13") 2>&5
15242  ac_status=$?
15243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15244  test $ac_status = 0; }; then
15245  have_freetype_2_7_1=yes
15246else
15247  have_freetype_2_7_1=no
15248fi
15249if test -n "$PKG_CONFIG" && \
15250    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 20.0.14\""; } >&5
15251  ($PKG_CONFIG --exists --print-errors "freetype2 >= 20.0.14") 2>&5
15252  ac_status=$?
15253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15254  test $ac_status = 0; }; then
15255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256/* end confdefs.h.  */
15257
15258		#include <ft2build.h>
15259		#include FT_CONFIG_OPTIONS_H
15260		#ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
15261		#  error "No pcf long family names support"
15262		#endif
15263
15264_ACEOF
15265if ac_fn_c_try_compile "$LINENO"; then :
15266  have_pcf_long_family_names=yes
15267else
15268  have_pcf_long_family_names=no
15269fi
15270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271else
15272  have_pcf_long_family_names=no
15273fi
15274 if test "x$have_freetype_2_7_1" = xyes -o "x$have_pcf_long_family_names" = xyes; then
15275  FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE=
15276  FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE='#'
15277else
15278  FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE='#'
15279  FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE=
15280fi
15281
15282
15283for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Select_Size
15284do :
15285  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15286ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15287if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15288  cat >>confdefs.h <<_ACEOF
15289#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15290_ACEOF
15291
15292fi
15293done
15294
15295ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
15296#include FT_FREETYPE_H
15297"
15298if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
15299  HAVE_FT_BITMAP_SIZE_Y_PPEM=1
15300else
15301  HAVE_FT_BITMAP_SIZE_Y_PPEM=0
15302fi
15303
15304
15305cat >>confdefs.h <<_ACEOF
15306#define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
15307_ACEOF
15308
15309ac_fn_c_check_member "$LINENO" "TT_OS2" "usLowerOpticalPointSize" "ac_cv_member_TT_OS2_usLowerOpticalPointSize" "
15310#include <ft2build.h>
15311#include FT_FREETYPE_H
15312#include FT_TRUETYPE_TABLES_H
15313"
15314if test "x$ac_cv_member_TT_OS2_usLowerOpticalPointSize" = xyes; then :
15315
15316cat >>confdefs.h <<_ACEOF
15317#define HAVE_TT_OS2_USLOWEROPTICALPOINTSIZE 1
15318_ACEOF
15319
15320
15321fi
15322ac_fn_c_check_member "$LINENO" "TT_OS2" "usUpperOpticalPointSize" "ac_cv_member_TT_OS2_usUpperOpticalPointSize" "
15323#include <ft2build.h>
15324#include FT_FREETYPE_H
15325#include FT_TRUETYPE_TABLES_H
15326"
15327if test "x$ac_cv_member_TT_OS2_usUpperOpticalPointSize" = xyes; then :
15328
15329cat >>confdefs.h <<_ACEOF
15330#define HAVE_TT_OS2_USUPPEROPTICALPOINTSIZE 1
15331_ACEOF
15332
15333
15334fi
15335
15336
15337CFLAGS="$fontconfig_save_cflags"
15338LIBS="$fontconfig_save_libs"
15339
15340#
15341# Check expat configuration
15342#
15343
15344# Check whether --with-expat was given.
15345if test "${with_expat+set}" = set; then :
15346  withval=$with_expat; expat_prefix=$withval
15347else
15348  expat_prefix=auto
15349fi
15350
15351
15352# Check whether --with-expat-includes was given.
15353if test "${with_expat_includes+set}" = set; then :
15354  withval=$with_expat_includes; expat_includes=$withval
15355else
15356  expat_includes=auto
15357fi
15358
15359
15360# Check whether --with-expat-lib was given.
15361if test "${with_expat_lib+set}" = set; then :
15362  withval=$with_expat_lib; expat_lib=$withval
15363else
15364  expat_lib=auto
15365fi
15366
15367
15368if test "$enable_libxml2" != "yes"; then
15369	use_pkgconfig_for_expat=yes
15370	if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
15371
15372pkg_failed=no
15373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
15374$as_echo_n "checking for EXPAT... " >&6; }
15375
15376if test -n "$EXPAT_CFLAGS"; then
15377    pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
15378 elif test -n "$PKG_CONFIG"; then
15379    if test -n "$PKG_CONFIG" && \
15380    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
15381  ($PKG_CONFIG --exists --print-errors "expat") 2>&5
15382  ac_status=$?
15383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15384  test $ac_status = 0; }; then
15385  pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
15386		      test "x$?" != "x0" && pkg_failed=yes
15387else
15388  pkg_failed=yes
15389fi
15390 else
15391    pkg_failed=untried
15392fi
15393if test -n "$EXPAT_LIBS"; then
15394    pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
15395 elif test -n "$PKG_CONFIG"; then
15396    if test -n "$PKG_CONFIG" && \
15397    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
15398  ($PKG_CONFIG --exists --print-errors "expat") 2>&5
15399  ac_status=$?
15400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15401  test $ac_status = 0; }; then
15402  pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
15403		      test "x$?" != "x0" && pkg_failed=yes
15404else
15405  pkg_failed=yes
15406fi
15407 else
15408    pkg_failed=untried
15409fi
15410
15411
15412
15413if test $pkg_failed = yes; then
15414   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15415$as_echo "no" >&6; }
15416
15417if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15418        _pkg_short_errors_supported=yes
15419else
15420        _pkg_short_errors_supported=no
15421fi
15422        if test $_pkg_short_errors_supported = yes; then
15423	        EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
15424        else
15425	        EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
15426        fi
15427	# Put the nasty error message in config.log where it belongs
15428	echo "$EXPAT_PKG_ERRORS" >&5
15429
15430	use_pkgconfig_for_expat=no
15431elif test $pkg_failed = untried; then
15432     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15433$as_echo "no" >&6; }
15434	use_pkgconfig_for_expat=no
15435else
15436	EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
15437	EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
15438        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15439$as_echo "yes" >&6; }
15440
15441fi
15442	else
15443		use_pkgconfig_for_expat=no
15444	fi
15445	if test "x$use_pkgconfig_for_expat" = "xno"; then
15446		if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
15447			EXPAT_CFLAGS="-I${expat_includes}"
15448		elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
15449			EXPAT_CFLAGS="-I${expat_prefix}/include"
15450		else
15451			EXPAT_CFLAGS=""
15452		fi
15453		if test "$expat_lib" != "auto"; then
15454			EXPAT_LIBS="-L${expat_lib} -lexpat"
15455		elif test "$expat_prefix" != "auto"; then
15456			EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
15457		else
15458			EXPAT_LIBS="-lexpat"
15459		fi
15460	else
15461		PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
15462	fi
15463
15464	expatsaved_CPPFLAGS="$CPPFLAGS"
15465	expatsaved_LIBS="$LIBS"
15466	CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
15467	LIBS="$LIBS $EXPAT_LIBS"
15468
15469	ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
15470if test "x$ac_cv_header_expat_h" = xyes; then :
15471
15472fi
15473
15474
15475	if test "$ac_cv_header_expat_h" = "no"; then
15476		ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
15477if test "x$ac_cv_header_xmlparse_h" = xyes; then :
15478
15479fi
15480
15481
15482		if test "$ac_cv_header_xmlparse_h" = "yes"; then
15483			HAVE_XMLPARSE_H=1
15484
15485
15486cat >>confdefs.h <<_ACEOF
15487#define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
15488_ACEOF
15489
15490		else
15491			as_fn_error $? "
15492*** expat is required. or try to use --enable-libxml2" "$LINENO" 5
15493		fi
15494	fi
15495	for ac_func in XML_SetDoctypeDeclHandler
15496do :
15497  ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
15498if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
15499  cat >>confdefs.h <<_ACEOF
15500#define HAVE_XML_SETDOCTYPEDECLHANDLER 1
15501_ACEOF
15502
15503fi
15504done
15505
15506	if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
15507		as_fn_error $? "
15508*** expat is required. or try to use --enable-libxml2" "$LINENO" 5
15509	fi
15510	CPPFLAGS="$expatsaved_CPPFLAGS"
15511	LIBS="$expatsaved_LIBS"
15512
15513
15514
15515fi
15516
15517#
15518# Check libxml2 configuration
15519#
15520# Check whether --enable-libxml2 was given.
15521if test "${enable_libxml2+set}" = set; then :
15522  enableval=$enable_libxml2;
15523fi
15524
15525
15526if test "$enable_libxml2" = "yes"; then
15527
15528pkg_failed=no
15529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
15530$as_echo_n "checking for LIBXML2... " >&6; }
15531
15532if test -n "$LIBXML2_CFLAGS"; then
15533    pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
15534 elif test -n "$PKG_CONFIG"; then
15535    if test -n "$PKG_CONFIG" && \
15536    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
15537  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
15538  ac_status=$?
15539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15540  test $ac_status = 0; }; then
15541  pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
15542		      test "x$?" != "x0" && pkg_failed=yes
15543else
15544  pkg_failed=yes
15545fi
15546 else
15547    pkg_failed=untried
15548fi
15549if test -n "$LIBXML2_LIBS"; then
15550    pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
15551 elif test -n "$PKG_CONFIG"; then
15552    if test -n "$PKG_CONFIG" && \
15553    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
15554  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
15555  ac_status=$?
15556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15557  test $ac_status = 0; }; then
15558  pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
15559		      test "x$?" != "x0" && pkg_failed=yes
15560else
15561  pkg_failed=yes
15562fi
15563 else
15564    pkg_failed=untried
15565fi
15566
15567
15568
15569if test $pkg_failed = yes; then
15570   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15571$as_echo "no" >&6; }
15572
15573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15574        _pkg_short_errors_supported=yes
15575else
15576        _pkg_short_errors_supported=no
15577fi
15578        if test $_pkg_short_errors_supported = yes; then
15579	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
15580        else
15581	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
15582        fi
15583	# Put the nasty error message in config.log where it belongs
15584	echo "$LIBXML2_PKG_ERRORS" >&5
15585
15586	as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
15587
15588$LIBXML2_PKG_ERRORS
15589
15590Consider adjusting the PKG_CONFIG_PATH environment variable if you
15591installed software in a non-standard prefix.
15592
15593Alternatively, you may set the environment variables LIBXML2_CFLAGS
15594and LIBXML2_LIBS to avoid the need to call pkg-config.
15595See the pkg-config man page for more details." "$LINENO" 5
15596elif test $pkg_failed = untried; then
15597     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15598$as_echo "no" >&6; }
15599	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15601as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15602is in your PATH or set the PKG_CONFIG environment variable to the full
15603path to pkg-config.
15604
15605Alternatively, you may set the environment variables LIBXML2_CFLAGS
15606and LIBXML2_LIBS to avoid the need to call pkg-config.
15607See the pkg-config man page for more details.
15608
15609To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15610See \`config.log' for more details" "$LINENO" 5; }
15611else
15612	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
15613	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
15614        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15615$as_echo "yes" >&6; }
15616
15617fi
15618    PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0"
15619
15620cat >>confdefs.h <<_ACEOF
15621#define ENABLE_LIBXML2 1
15622_ACEOF
15623
15624
15625
15626
15627
15628    fc_saved_CFLAGS="$CFLAGS"
15629    CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
15630    { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
15631$as_echo_n "checking SAX1 support in libxml2... " >&6; }
15632    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633/* end confdefs.h.  */
15634
15635	#include <libxml/xmlversion.h>
15636	#if !defined(LIBXML_SAX1_ENABLED)
15637	#  include "error: No SAX1 support in libxml2"
15638	#endif
15639
15640_ACEOF
15641if ac_fn_c_try_compile "$LINENO"; then :
15642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15643$as_echo "found" >&6; }
15644else
15645  as_fn_error $? "
15646*** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
15647fi
15648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15649    CFLAGS="$fc_saved_CFLAGS"
15650fi
15651
15652#
15653# Set default hinting
15654#
15655
15656
15657# Check whether --with-default-hinting was given.
15658if test "${with_default_hinting+set}" = set; then :
15659  withval=$with_default_hinting; preferred_hinting="$withval"
15660else
15661  preferred_hinting=slight
15662fi
15663
15664
15665case "$preferred_hinting" in
15666none|slight|medium|full)
15667	PREFERRED_HINTING="$preferred_hinting"
15668
15669	;;
15670*)
15671	as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
15672	;;
15673esac
15674
15675#
15676# Set default font directory
15677#
15678
15679
15680# Check whether --with-default-fonts was given.
15681if test "${with_default_fonts+set}" = set; then :
15682  withval=$with_default_fonts; default_fonts="$withval"
15683else
15684  default_fonts=yes
15685fi
15686
15687
15688case "$default_fonts" in
15689yes)
15690	if test "$os_win32" = "yes"; then
15691		FC_DEFAULT_FONTS="WINDOWSFONTDIR"
15692
15693cat >>confdefs.h <<_ACEOF
15694#define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
15695_ACEOF
15696
15697	else
15698		FC_DEFAULT_FONTS="/usr/share/fonts"
15699
15700cat >>confdefs.h <<_ACEOF
15701#define FC_DEFAULT_FONTS "/usr/share/fonts"
15702_ACEOF
15703
15704	fi
15705	;;
15706*)
15707	FC_DEFAULT_FONTS="$default_fonts"
15708
15709cat >>confdefs.h <<_ACEOF
15710#define FC_DEFAULT_FONTS "$default_fonts"
15711_ACEOF
15712
15713	;;
15714esac
15715
15716
15717
15718#
15719# Add more fonts if available.  By default, add only the directories
15720# with outline fonts; those with bitmaps can be added as desired in
15721# local.conf or ~/.fonts.conf
15722#
15723
15724# Check whether --with-add-fonts was given.
15725if test "${with_add_fonts+set}" = set; then :
15726  withval=$with_add_fonts; add_fonts="$withval"
15727else
15728  add_fonts=yes
15729fi
15730
15731
15732case "$add_fonts" in
15733yes)
15734	FC_ADD_FONTS=""
15735	for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
15736		case x"$FC_ADD_FONTS" in
15737		x)
15738			sub="$dir/fonts"
15739			if test -d "$sub"; then
15740				case x$FC_ADD_FONTS in
15741				x)
15742					FC_ADD_FONTS="$sub"
15743					;;
15744				*)
15745					FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
15746					;;
15747				esac
15748			fi
15749			;;
15750		esac
15751	done
15752
15753cat >>confdefs.h <<_ACEOF
15754#define FC_ADD_FONTS "$add_fonts"
15755_ACEOF
15756
15757	;;
15758no)
15759	FC_ADD_FONTS=""
15760	;;
15761*)
15762	FC_ADD_FONTS="$add_fonts"
15763
15764cat >>confdefs.h <<_ACEOF
15765#define FC_ADD_FONTS "$add_fonts"
15766_ACEOF
15767
15768	;;
15769esac
15770
15771
15772
15773FC_FONTPATH=""
15774
15775case "$FC_ADD_FONTS" in
15776"")
15777	;;
15778*)
15779	FC_FONTPATH=`echo $FC_ADD_FONTS |
15780			sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
15781	;;
15782esac
15783
15784
15785
15786#
15787# Set default cache directory path
15788#
15789
15790# Check whether --with-cache-dir was given.
15791if test "${with_cache_dir+set}" = set; then :
15792  withval=$with_cache_dir; fc_cachedir="$withval"
15793else
15794  fc_cachedir=yes
15795fi
15796
15797
15798case $fc_cachedir in
15799no|yes)
15800	if test "$os_win32" = "yes"; then
15801		fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
15802	else
15803		fc_cachedir='${localstatedir}/cache/${PACKAGE}'
15804	fi
15805	;;
15806*)
15807	;;
15808esac
15809
15810FC_CACHEDIR=${fc_cachedir}
15811
15812
15813FC_FONTDATE=`LC_ALL=C date`
15814
15815
15816
15817#
15818# Set configuration paths
15819#
15820
15821
15822# Check whether --with-templatedir was given.
15823if test "${with_templatedir+set}" = set; then :
15824  withval=$with_templatedir; templatedir="$withval"
15825else
15826  templatedir=yes
15827fi
15828
15829
15830# Check whether --with-baseconfigdir was given.
15831if test "${with_baseconfigdir+set}" = set; then :
15832  withval=$with_baseconfigdir; baseconfigdir="$withval"
15833else
15834  baseconfigdir=yes
15835fi
15836
15837
15838# Check whether --with-configdir was given.
15839if test "${with_configdir+set}" = set; then :
15840  withval=$with_configdir; configdir="$withval"
15841else
15842  configdir=yes
15843fi
15844
15845
15846# Check whether --with-xmldir was given.
15847if test "${with_xmldir+set}" = set; then :
15848  withval=$with_xmldir; xmldir="$withval"
15849else
15850  xmldir=yes
15851fi
15852
15853
15854case "$templatedir" in
15855no|yes)
15856	templatedir='${datadir}'/fontconfig/conf.avail
15857	;;
15858*)
15859	;;
15860esac
15861case "$baseconfigdir" in
15862no|yes)
15863	baseconfigdir='${sysconfdir}'/fonts
15864	;;
15865*)
15866	;;
15867esac
15868case "$configdir" in
15869no|yes)
15870	configdir='${BASECONFIGDIR}'/conf.d
15871	;;
15872*)
15873	;;
15874esac
15875case "$xmldir" in
15876no|yes)
15877	xmldir='${datadir}'/xml/fontconfig
15878	;;
15879*)
15880	;;
15881esac
15882
15883TEMPLATEDIR=${templatedir}
15884BASECONFIGDIR=${baseconfigdir}
15885CONFIGDIR=${configdir}
15886XMLDIR=${xmldir}
15887
15888
15889
15890
15891
15892
15893
15894#
15895# Thread-safety primitives
15896#
15897
15898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
15899$as_echo_n "checking for Intel atomic primitives... " >&6; }
15900if ${fc_cv_have_intel_atomic_primitives+:} false; then :
15901  $as_echo_n "(cached) " >&6
15902else
15903
15904	fc_cv_have_intel_atomic_primitives=false
15905	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906/* end confdefs.h.  */
15907
15908		void memory_barrier (void) { __sync_synchronize (); }
15909		int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
15910		int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
15911		void mutex_unlock (int *m) { __sync_lock_release (m); }
15912
15913int
15914main ()
15915{
15916
15917  ;
15918  return 0;
15919}
15920_ACEOF
15921if ac_fn_c_try_link "$LINENO"; then :
15922  fc_cv_have_intel_atomic_primitives=true
15923
15924fi
15925rm -f core conftest.err conftest.$ac_objext \
15926    conftest$ac_exeext conftest.$ac_ext
15927
15928fi
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
15930$as_echo "$fc_cv_have_intel_atomic_primitives" >&6; }
15931if $fc_cv_have_intel_atomic_primitives; then
15932
15933$as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
15934
15935fi
15936
15937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
15938$as_echo_n "checking for Solaris atomic operations... " >&6; }
15939if ${fc_cv_have_solaris_atomic_ops+:} false; then :
15940  $as_echo_n "(cached) " >&6
15941else
15942
15943	fc_cv_have_solaris_atomic_ops=false
15944	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945/* end confdefs.h.  */
15946
15947		#include <atomic.h>
15948		/* This requires Solaris Studio 12.2 or newer: */
15949		#include <mbarrier.h>
15950		void memory_barrier (void) { __machine_rw_barrier (); }
15951		int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
15952		void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
15953
15954int
15955main ()
15956{
15957
15958  ;
15959  return 0;
15960}
15961_ACEOF
15962if ac_fn_c_try_link "$LINENO"; then :
15963  fc_cv_have_solaris_atomic_ops=true
15964
15965fi
15966rm -f core conftest.err conftest.$ac_objext \
15967    conftest$ac_exeext conftest.$ac_ext
15968
15969fi
15970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
15971$as_echo "$fc_cv_have_solaris_atomic_ops" >&6; }
15972if $fc_cv_have_solaris_atomic_ops; then
15973
15974$as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
15975
15976fi
15977
15978if test "$os_win32" = no && ! $have_pthread; then
15979	for ac_header in sched.h
15980do :
15981  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15982if test "x$ac_cv_header_sched_h" = xyes; then :
15983  cat >>confdefs.h <<_ACEOF
15984#define HAVE_SCHED_H 1
15985_ACEOF
15986
15987fi
15988
15989done
15990
15991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
15992$as_echo_n "checking for library containing sched_yield... " >&6; }
15993if ${ac_cv_search_sched_yield+:} false; then :
15994  $as_echo_n "(cached) " >&6
15995else
15996  ac_func_search_save_LIBS=$LIBS
15997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998/* end confdefs.h.  */
15999
16000/* Override any GCC internal prototype to avoid an error.
16001   Use char because int might match the return type of a GCC
16002   builtin and then its argument prototype would still apply.  */
16003#ifdef __cplusplus
16004extern "C"
16005#endif
16006char sched_yield ();
16007int
16008main ()
16009{
16010return sched_yield ();
16011  ;
16012  return 0;
16013}
16014_ACEOF
16015for ac_lib in '' rt; do
16016  if test -z "$ac_lib"; then
16017    ac_res="none required"
16018  else
16019    ac_res=-l$ac_lib
16020    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16021  fi
16022  if ac_fn_c_try_link "$LINENO"; then :
16023  ac_cv_search_sched_yield=$ac_res
16024fi
16025rm -f core conftest.err conftest.$ac_objext \
16026    conftest$ac_exeext
16027  if ${ac_cv_search_sched_yield+:} false; then :
16028  break
16029fi
16030done
16031if ${ac_cv_search_sched_yield+:} false; then :
16032
16033else
16034  ac_cv_search_sched_yield=no
16035fi
16036rm conftest.$ac_ext
16037LIBS=$ac_func_search_save_LIBS
16038fi
16039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
16040$as_echo "$ac_cv_search_sched_yield" >&6; }
16041ac_res=$ac_cv_search_sched_yield
16042if test "$ac_res" != no; then :
16043  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16044
16045$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
16046
16047fi
16048
16049fi
16050
16051have_pthread=false
16052if test "$os_win32" = no; then
16053
16054
16055ac_ext=c
16056ac_cpp='$CPP $CPPFLAGS'
16057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16059ac_compiler_gnu=$ac_cv_c_compiler_gnu
16060
16061ax_pthread_ok=no
16062
16063# We used to check for pthread.h first, but this fails if pthread.h
16064# requires special compiler flags (e.g. on True64 or Sequent).
16065# It gets checked for in the link test anyway.
16066
16067# First of all, check if the user has set any of the PTHREAD_LIBS,
16068# etcetera environment variables, and if threads linking works using
16069# them:
16070if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16071        save_CFLAGS="$CFLAGS"
16072        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16073        save_LIBS="$LIBS"
16074        LIBS="$PTHREAD_LIBS $LIBS"
16075        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16076$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16077        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078/* end confdefs.h.  */
16079
16080/* Override any GCC internal prototype to avoid an error.
16081   Use char because int might match the return type of a GCC
16082   builtin and then its argument prototype would still apply.  */
16083#ifdef __cplusplus
16084extern "C"
16085#endif
16086char pthread_join ();
16087int
16088main ()
16089{
16090return pthread_join ();
16091  ;
16092  return 0;
16093}
16094_ACEOF
16095if ac_fn_c_try_link "$LINENO"; then :
16096  ax_pthread_ok=yes
16097fi
16098rm -f core conftest.err conftest.$ac_objext \
16099    conftest$ac_exeext conftest.$ac_ext
16100        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16101$as_echo "$ax_pthread_ok" >&6; }
16102        if test x"$ax_pthread_ok" = xno; then
16103                PTHREAD_LIBS=""
16104                PTHREAD_CFLAGS=""
16105        fi
16106        LIBS="$save_LIBS"
16107        CFLAGS="$save_CFLAGS"
16108fi
16109
16110# We must check for the threads library under a number of different
16111# names; the ordering is very important because some systems
16112# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16113# libraries is broken (non-POSIX).
16114
16115# Create a list of thread flags to try.  Items starting with a "-" are
16116# C compiler flags, and other items are library names, except for "none"
16117# which indicates that we try without any flags at all, and "pthread-config"
16118# which is a program returning the flags for the Pth emulation library.
16119
16120ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16121
16122# The ordering *is* (sometimes) important.  Some notes on the
16123# individual items follow:
16124
16125# pthreads: AIX (must check this before -lpthread)
16126# none: in case threads are in libc; should be tried before -Kthread and
16127#       other compiler flags to prevent continual compiler warnings
16128# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16129# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16130# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16131# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16132# -pthreads: Solaris/gcc
16133# -mthreads: Mingw32/gcc, Lynx/gcc
16134# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16135#      doesn't hurt to check since this sometimes defines pthreads too;
16136#      also defines -D_REENTRANT)
16137#      ... -mt is also the pthreads flag for HP/aCC
16138# pthread: Linux, etcetera
16139# --thread-safe: KAI C++
16140# pthread-config: use pthread-config program (for GNU Pth library)
16141
16142case ${host_os} in
16143        solaris*)
16144
16145        # On Solaris (at least, for some versions), libc contains stubbed
16146        # (non-functional) versions of the pthreads routines, so link-based
16147        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16148        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16149        # a function called by this macro, so we could check for that, but
16150        # who knows whether they'll stub that too in a future libc.)  So,
16151        # we'll just look for -pthreads and -lpthread first:
16152
16153        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16154        ;;
16155
16156        darwin*)
16157        ax_pthread_flags="-pthread $ax_pthread_flags"
16158        ;;
16159	netbsd*)
16160	# use libc stubs, don't link against libpthread, to allow
16161	# dynamic loading
16162	ax_pthread_flags=""
16163	;;
16164esac
16165
16166# Clang doesn't consider unrecognized options an error unless we specify
16167# -Werror. We throw in some extra Clang-specific options to ensure that
16168# this doesn't happen for GCC, which also accepts -Werror.
16169
16170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16171$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16172save_CFLAGS="$CFLAGS"
16173ax_pthread_extra_flags="-Werror"
16174CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176/* end confdefs.h.  */
16177int foo(void);
16178int
16179main ()
16180{
16181foo()
16182  ;
16183  return 0;
16184}
16185_ACEOF
16186if ac_fn_c_try_compile "$LINENO"; then :
16187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16188$as_echo "yes" >&6; }
16189else
16190  ax_pthread_extra_flags=
16191                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192$as_echo "no" >&6; }
16193fi
16194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195CFLAGS="$save_CFLAGS"
16196
16197if test x"$ax_pthread_ok" = xno; then
16198for flag in $ax_pthread_flags; do
16199
16200        case $flag in
16201                none)
16202                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16203$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16204                ;;
16205
16206                -*)
16207                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16208$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16209                PTHREAD_CFLAGS="$flag"
16210                ;;
16211
16212                pthread-config)
16213                # Extract the first word of "pthread-config", so it can be a program name with args.
16214set dummy pthread-config; ac_word=$2
16215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16216$as_echo_n "checking for $ac_word... " >&6; }
16217if ${ac_cv_prog_ax_pthread_config+:} false; then :
16218  $as_echo_n "(cached) " >&6
16219else
16220  if test -n "$ax_pthread_config"; then
16221  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16222else
16223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16224for as_dir in $PATH
16225do
16226  IFS=$as_save_IFS
16227  test -z "$as_dir" && as_dir=.
16228    for ac_exec_ext in '' $ac_executable_extensions; do
16229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16230    ac_cv_prog_ax_pthread_config="yes"
16231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16232    break 2
16233  fi
16234done
16235  done
16236IFS=$as_save_IFS
16237
16238  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16239fi
16240fi
16241ax_pthread_config=$ac_cv_prog_ax_pthread_config
16242if test -n "$ax_pthread_config"; then
16243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16244$as_echo "$ax_pthread_config" >&6; }
16245else
16246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247$as_echo "no" >&6; }
16248fi
16249
16250
16251                if test x"$ax_pthread_config" = xno; then continue; fi
16252                PTHREAD_CFLAGS="`pthread-config --cflags`"
16253                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16254                ;;
16255
16256                *)
16257                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16258$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16259                PTHREAD_LIBS="-l$flag"
16260                ;;
16261        esac
16262
16263        save_LIBS="$LIBS"
16264        save_CFLAGS="$CFLAGS"
16265        LIBS="$PTHREAD_LIBS $LIBS"
16266        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16267
16268        # Check for various functions.  We must include pthread.h,
16269        # since some functions may be macros.  (On the Sequent, we
16270        # need a special flag -Kthread to make this header compile.)
16271        # We check for pthread_join because it is in -lpthread on IRIX
16272        # while pthread_create is in libc.  We check for pthread_attr_init
16273        # due to DEC craziness with -lpthreads.  We check for
16274        # pthread_cleanup_push because it is one of the few pthread
16275        # functions on Solaris that doesn't have a non-functional libc stub.
16276        # We try pthread_create on general principles.
16277        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278/* end confdefs.h.  */
16279#include <pthread.h>
16280                        static void routine(void *a) { a = 0; }
16281                        static void *start_routine(void *a) { return a; }
16282int
16283main ()
16284{
16285pthread_t th; pthread_attr_t attr;
16286                        pthread_create(&th, 0, start_routine, 0);
16287                        pthread_join(th, 0);
16288                        pthread_attr_init(&attr);
16289                        pthread_cleanup_push(routine, 0);
16290                        pthread_cleanup_pop(0) /* ; */
16291  ;
16292  return 0;
16293}
16294_ACEOF
16295if ac_fn_c_try_link "$LINENO"; then :
16296  ax_pthread_ok=yes
16297fi
16298rm -f core conftest.err conftest.$ac_objext \
16299    conftest$ac_exeext conftest.$ac_ext
16300
16301        LIBS="$save_LIBS"
16302        CFLAGS="$save_CFLAGS"
16303
16304        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16305$as_echo "$ax_pthread_ok" >&6; }
16306        if test "x$ax_pthread_ok" = xyes; then
16307                break;
16308        fi
16309
16310        PTHREAD_LIBS=""
16311        PTHREAD_CFLAGS=""
16312done
16313fi
16314
16315# Various other checks:
16316if test "x$ax_pthread_ok" = xyes; then
16317        save_LIBS="$LIBS"
16318        LIBS="$PTHREAD_LIBS $LIBS"
16319        save_CFLAGS="$CFLAGS"
16320        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16321
16322        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16323        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16324$as_echo_n "checking for joinable pthread attribute... " >&6; }
16325        attr_name=unknown
16326        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16327            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328/* end confdefs.h.  */
16329#include <pthread.h>
16330int
16331main ()
16332{
16333int attr = $attr; return attr /* ; */
16334  ;
16335  return 0;
16336}
16337_ACEOF
16338if ac_fn_c_try_link "$LINENO"; then :
16339  attr_name=$attr; break
16340fi
16341rm -f core conftest.err conftest.$ac_objext \
16342    conftest$ac_exeext conftest.$ac_ext
16343        done
16344        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16345$as_echo "$attr_name" >&6; }
16346        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16347
16348cat >>confdefs.h <<_ACEOF
16349#define PTHREAD_CREATE_JOINABLE $attr_name
16350_ACEOF
16351
16352        fi
16353
16354        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16355$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16356        flag=no
16357        case ${host_os} in
16358            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16359            osf* | hpux*) flag="-D_REENTRANT";;
16360            solaris*)
16361            if test "$GCC" = "yes"; then
16362                flag="-D_REENTRANT"
16363            else
16364                # TODO: What about Clang on Solaris?
16365                flag="-mt -D_REENTRANT"
16366            fi
16367            ;;
16368        esac
16369        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16370$as_echo "$flag" >&6; }
16371        if test "x$flag" != xno; then
16372            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16373        fi
16374
16375        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16376$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16377if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16378  $as_echo_n "(cached) " >&6
16379else
16380
16381                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382/* end confdefs.h.  */
16383#include <pthread.h>
16384int
16385main ()
16386{
16387int i = PTHREAD_PRIO_INHERIT;
16388  ;
16389  return 0;
16390}
16391_ACEOF
16392if ac_fn_c_try_link "$LINENO"; then :
16393  ax_cv_PTHREAD_PRIO_INHERIT=yes
16394else
16395  ax_cv_PTHREAD_PRIO_INHERIT=no
16396fi
16397rm -f core conftest.err conftest.$ac_objext \
16398    conftest$ac_exeext conftest.$ac_ext
16399
16400fi
16401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16402$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16403        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16404
16405$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16406
16407fi
16408
16409        LIBS="$save_LIBS"
16410        CFLAGS="$save_CFLAGS"
16411
16412        # More AIX lossage: compile with *_r variant
16413        if test "x$GCC" != xyes; then
16414            case $host_os in
16415                aix*)
16416                case "x/$CC" in #(
16417  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16418    #handle absolute path differently from PATH based program lookup
16419                   case "x$CC" in #(
16420  x/*) :
16421    if as_fn_executable_p ${CC}_r; then :
16422  PTHREAD_CC="${CC}_r"
16423fi ;; #(
16424  *) :
16425    for ac_prog in ${CC}_r
16426do
16427  # Extract the first word of "$ac_prog", so it can be a program name with args.
16428set dummy $ac_prog; ac_word=$2
16429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16430$as_echo_n "checking for $ac_word... " >&6; }
16431if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16432  $as_echo_n "(cached) " >&6
16433else
16434  if test -n "$PTHREAD_CC"; then
16435  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16436else
16437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16438for as_dir in $PATH
16439do
16440  IFS=$as_save_IFS
16441  test -z "$as_dir" && as_dir=.
16442    for ac_exec_ext in '' $ac_executable_extensions; do
16443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16444    ac_cv_prog_PTHREAD_CC="$ac_prog"
16445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16446    break 2
16447  fi
16448done
16449  done
16450IFS=$as_save_IFS
16451
16452fi
16453fi
16454PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16455if test -n "$PTHREAD_CC"; then
16456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16457$as_echo "$PTHREAD_CC" >&6; }
16458else
16459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16460$as_echo "no" >&6; }
16461fi
16462
16463
16464  test -n "$PTHREAD_CC" && break
16465done
16466test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16467 ;;
16468esac ;; #(
16469  *) :
16470     ;;
16471esac
16472                ;;
16473            esac
16474        fi
16475fi
16476
16477test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16478
16479
16480
16481
16482
16483# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16484if test x"$ax_pthread_ok" = xyes; then
16485        have_pthread=true
16486        :
16487else
16488        ax_pthread_ok=no
16489
16490fi
16491ac_ext=c
16492ac_cpp='$CPP $CPPFLAGS'
16493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16495ac_compiler_gnu=$ac_cv_c_compiler_gnu
16496
16497
16498fi
16499if $have_pthread; then
16500	LIBS="$PTHREAD_LIBS $LIBS"
16501	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16502	CC="$PTHREAD_CC"
16503
16504$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16505
16506fi
16507 if $have_pthread; then
16508  HAVE_PTHREAD_TRUE=
16509  HAVE_PTHREAD_FALSE='#'
16510else
16511  HAVE_PTHREAD_TRUE='#'
16512  HAVE_PTHREAD_FALSE=
16513fi
16514
16515
16516
16517
16518#
16519# Let people not build/install docs if they don't have docbook
16520#
16521
16522# Extract the first word of "docbook2html", so it can be a program name with args.
16523set dummy docbook2html; ac_word=$2
16524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16525$as_echo_n "checking for $ac_word... " >&6; }
16526if ${ac_cv_prog_HASDOCBOOK+:} false; then :
16527  $as_echo_n "(cached) " >&6
16528else
16529  if test -n "$HASDOCBOOK"; then
16530  ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
16531else
16532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16533for as_dir in $PATH
16534do
16535  IFS=$as_save_IFS
16536  test -z "$as_dir" && as_dir=.
16537    for ac_exec_ext in '' $ac_executable_extensions; do
16538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16539    ac_cv_prog_HASDOCBOOK="yes"
16540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16541    break 2
16542  fi
16543done
16544  done
16545IFS=$as_save_IFS
16546
16547  test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
16548fi
16549fi
16550HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
16551if test -n "$HASDOCBOOK"; then
16552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
16553$as_echo "$HASDOCBOOK" >&6; }
16554else
16555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16556$as_echo "no" >&6; }
16557fi
16558
16559
16560
16561 if test "x$HASDOCBOOK" = xyes; then
16562  USEDOCBOOK_TRUE=
16563  USEDOCBOOK_FALSE='#'
16564else
16565  USEDOCBOOK_TRUE='#'
16566  USEDOCBOOK_FALSE=
16567fi
16568
16569
16570default_docs="yes"
16571#
16572# Check if docs exist or can be created
16573#
16574if test x$HASDOCBOOK = xno; then
16575	if test -f $srcdir/doc/fonts-conf.5; then
16576		:
16577	else
16578		default_docs="no"
16579	fi
16580fi
16581
16582# Check whether --enable-docs was given.
16583if test "${enable_docs+set}" = set; then :
16584  enableval=$enable_docs;
16585else
16586  enable_docs=$default_docs
16587fi
16588
16589
16590 if test "x$enable_docs" = xyes; then
16591  ENABLE_DOCS_TRUE=
16592  ENABLE_DOCS_FALSE='#'
16593else
16594  ENABLE_DOCS_TRUE='#'
16595  ENABLE_DOCS_FALSE=
16596fi
16597
16598
16599if test "x$enable_docs" = xyes; then
16600	tmp=funcs.$$
16601	cat $srcdir/doc/*.fncs | awk '
16602	/^@TITLE@/	{ if (!done) { printf ("%s\n", $2); done = 1; } }
16603	/^@FUNC@/	{ if (!done) { printf ("%s\n", $2); done = 1; } }
16604	/^@@/		{ done = 0; }' > $tmp
16605	DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
16606	echo DOCMAN3 $DOCMAN3
16607	rm -f $tmp
16608else
16609	DOCMAN3=""
16610fi
16611
16612
16613
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16615$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16616if ${ac_cv_c_bigendian+:} false; then :
16617  $as_echo_n "(cached) " >&6
16618else
16619  ac_cv_c_bigendian=unknown
16620    # See if we're dealing with a universal compiler.
16621    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622/* end confdefs.h.  */
16623#ifndef __APPLE_CC__
16624	       not a universal capable compiler
16625	     #endif
16626	     typedef int dummy;
16627
16628_ACEOF
16629if ac_fn_c_try_compile "$LINENO"; then :
16630
16631	# Check for potential -arch flags.  It is not universal unless
16632	# there are at least two -arch flags with different values.
16633	ac_arch=
16634	ac_prev=
16635	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16636	 if test -n "$ac_prev"; then
16637	   case $ac_word in
16638	     i?86 | x86_64 | ppc | ppc64)
16639	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16640		 ac_arch=$ac_word
16641	       else
16642		 ac_cv_c_bigendian=universal
16643		 break
16644	       fi
16645	       ;;
16646	   esac
16647	   ac_prev=
16648	 elif test "x$ac_word" = "x-arch"; then
16649	   ac_prev=arch
16650	 fi
16651       done
16652fi
16653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16654    if test $ac_cv_c_bigendian = unknown; then
16655      # See if sys/param.h defines the BYTE_ORDER macro.
16656      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16657/* end confdefs.h.  */
16658#include <sys/types.h>
16659	     #include <sys/param.h>
16660
16661int
16662main ()
16663{
16664#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16665		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16666		     && LITTLE_ENDIAN)
16667	      bogus endian macros
16668	     #endif
16669
16670  ;
16671  return 0;
16672}
16673_ACEOF
16674if ac_fn_c_try_compile "$LINENO"; then :
16675  # It does; now see whether it defined to BIG_ENDIAN or not.
16676	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677/* end confdefs.h.  */
16678#include <sys/types.h>
16679		#include <sys/param.h>
16680
16681int
16682main ()
16683{
16684#if BYTE_ORDER != BIG_ENDIAN
16685		 not big endian
16686		#endif
16687
16688  ;
16689  return 0;
16690}
16691_ACEOF
16692if ac_fn_c_try_compile "$LINENO"; then :
16693  ac_cv_c_bigendian=yes
16694else
16695  ac_cv_c_bigendian=no
16696fi
16697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16698fi
16699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700    fi
16701    if test $ac_cv_c_bigendian = unknown; then
16702      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16703      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704/* end confdefs.h.  */
16705#include <limits.h>
16706
16707int
16708main ()
16709{
16710#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16711	      bogus endian macros
16712	     #endif
16713
16714  ;
16715  return 0;
16716}
16717_ACEOF
16718if ac_fn_c_try_compile "$LINENO"; then :
16719  # It does; now see whether it defined to _BIG_ENDIAN or not.
16720	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721/* end confdefs.h.  */
16722#include <limits.h>
16723
16724int
16725main ()
16726{
16727#ifndef _BIG_ENDIAN
16728		 not big endian
16729		#endif
16730
16731  ;
16732  return 0;
16733}
16734_ACEOF
16735if ac_fn_c_try_compile "$LINENO"; then :
16736  ac_cv_c_bigendian=yes
16737else
16738  ac_cv_c_bigendian=no
16739fi
16740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16741fi
16742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16743    fi
16744    if test $ac_cv_c_bigendian = unknown; then
16745      # Compile a test program.
16746      if test "$cross_compiling" = yes; then :
16747  # Try to guess by grepping values from an object file.
16748	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749/* end confdefs.h.  */
16750short int ascii_mm[] =
16751		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16752		short int ascii_ii[] =
16753		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16754		int use_ascii (int i) {
16755		  return ascii_mm[i] + ascii_ii[i];
16756		}
16757		short int ebcdic_ii[] =
16758		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16759		short int ebcdic_mm[] =
16760		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16761		int use_ebcdic (int i) {
16762		  return ebcdic_mm[i] + ebcdic_ii[i];
16763		}
16764		extern int foo;
16765
16766int
16767main ()
16768{
16769return use_ascii (foo) == use_ebcdic (foo);
16770  ;
16771  return 0;
16772}
16773_ACEOF
16774if ac_fn_c_try_compile "$LINENO"; then :
16775  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16776	      ac_cv_c_bigendian=yes
16777	    fi
16778	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16779	      if test "$ac_cv_c_bigendian" = unknown; then
16780		ac_cv_c_bigendian=no
16781	      else
16782		# finding both strings is unlikely to happen, but who knows?
16783		ac_cv_c_bigendian=unknown
16784	      fi
16785	    fi
16786fi
16787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16788else
16789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790/* end confdefs.h.  */
16791$ac_includes_default
16792int
16793main ()
16794{
16795
16796	     /* Are we little or big endian?  From Harbison&Steele.  */
16797	     union
16798	     {
16799	       long int l;
16800	       char c[sizeof (long int)];
16801	     } u;
16802	     u.l = 1;
16803	     return u.c[sizeof (long int) - 1] == 1;
16804
16805  ;
16806  return 0;
16807}
16808_ACEOF
16809if ac_fn_c_try_run "$LINENO"; then :
16810  ac_cv_c_bigendian=no
16811else
16812  ac_cv_c_bigendian=yes
16813fi
16814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16815  conftest.$ac_objext conftest.beam conftest.$ac_ext
16816fi
16817
16818    fi
16819fi
16820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16821$as_echo "$ac_cv_c_bigendian" >&6; }
16822 case $ac_cv_c_bigendian in #(
16823   yes)
16824     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16825;; #(
16826   no)
16827      ;; #(
16828   universal)
16829
16830$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16831
16832     ;; #(
16833   *)
16834     as_fn_error $? "unknown endianness
16835 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16836 esac
16837
16838# The cast to long int works around a bug in the HP C Compiler
16839# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16840# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16841# This bug is HP SR number 8606223364.
16842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16843$as_echo_n "checking size of void *... " >&6; }
16844if ${ac_cv_sizeof_void_p+:} false; then :
16845  $as_echo_n "(cached) " >&6
16846else
16847  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
16848
16849else
16850  if test "$ac_cv_type_void_p" = yes; then
16851     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16853as_fn_error 77 "cannot compute sizeof (void *)
16854See \`config.log' for more details" "$LINENO" 5; }
16855   else
16856     ac_cv_sizeof_void_p=0
16857   fi
16858fi
16859
16860fi
16861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16862$as_echo "$ac_cv_sizeof_void_p" >&6; }
16863
16864
16865
16866cat >>confdefs.h <<_ACEOF
16867#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16868_ACEOF
16869
16870
16871# The cast to long int works around a bug in the HP C Compiler,
16872# see AC_CHECK_SIZEOF for more information.
16873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
16874$as_echo_n "checking alignment of double... " >&6; }
16875if ${ac_cv_alignof_double+:} false; then :
16876  $as_echo_n "(cached) " >&6
16877else
16878  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
16879#ifndef offsetof
16880# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16881#endif
16882typedef struct { char x; double y; } ac__type_alignof_;"; then :
16883
16884else
16885  if test "$ac_cv_type_double" = yes; then
16886     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16888as_fn_error 77 "cannot compute alignment of double
16889See \`config.log' for more details" "$LINENO" 5; }
16890   else
16891     ac_cv_alignof_double=0
16892   fi
16893fi
16894
16895fi
16896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
16897$as_echo "$ac_cv_alignof_double" >&6; }
16898
16899
16900
16901cat >>confdefs.h <<_ACEOF
16902#define ALIGNOF_DOUBLE $ac_cv_alignof_double
16903_ACEOF
16904
16905
16906# The cast to long int works around a bug in the HP C Compiler,
16907# see AC_CHECK_SIZEOF for more information.
16908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
16909$as_echo_n "checking alignment of void *... " >&6; }
16910if ${ac_cv_alignof_void_p+:} false; then :
16911  $as_echo_n "(cached) " >&6
16912else
16913  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p"        "$ac_includes_default
16914#ifndef offsetof
16915# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16916#endif
16917typedef struct { char x; void * y; } ac__type_alignof_;"; then :
16918
16919else
16920  if test "$ac_cv_type_void_p" = yes; then
16921     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16923as_fn_error 77 "cannot compute alignment of void *
16924See \`config.log' for more details" "$LINENO" 5; }
16925   else
16926     ac_cv_alignof_void_p=0
16927   fi
16928fi
16929
16930fi
16931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
16932$as_echo "$ac_cv_alignof_void_p" >&6; }
16933
16934
16935
16936cat >>confdefs.h <<_ACEOF
16937#define ALIGNOF_VOID_P $ac_cv_alignof_void_p
16938_ACEOF
16939
16940
16941
16942
16943
16944
16945
16946
16947ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-blanks/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip"
16948
16949cat >confcache <<\_ACEOF
16950# This file is a shell script that caches the results of configure
16951# tests run on this system so they can be shared between configure
16952# scripts and configure runs, see configure's option --config-cache.
16953# It is not useful on other systems.  If it contains results you don't
16954# want to keep, you may remove or edit it.
16955#
16956# config.status only pays attention to the cache file if you give it
16957# the --recheck option to rerun configure.
16958#
16959# `ac_cv_env_foo' variables (set or unset) will be overridden when
16960# loading this file, other *unset* `ac_cv_foo' will be assigned the
16961# following values.
16962
16963_ACEOF
16964
16965# The following way of writing the cache mishandles newlines in values,
16966# but we know of no workaround that is simple, portable, and efficient.
16967# So, we kill variables containing newlines.
16968# Ultrix sh set writes to stderr and can't be redirected directly,
16969# and sets the high bit in the cache file unless we assign to the vars.
16970(
16971  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16972    eval ac_val=\$$ac_var
16973    case $ac_val in #(
16974    *${as_nl}*)
16975      case $ac_var in #(
16976      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16977$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16978      esac
16979      case $ac_var in #(
16980      _ | IFS | as_nl) ;; #(
16981      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16982      *) { eval $ac_var=; unset $ac_var;} ;;
16983      esac ;;
16984    esac
16985  done
16986
16987  (set) 2>&1 |
16988    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16989    *${as_nl}ac_space=\ *)
16990      # `set' does not quote correctly, so add quotes: double-quote
16991      # substitution turns \\\\ into \\, and sed turns \\ into \.
16992      sed -n \
16993	"s/'/'\\\\''/g;
16994	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16995      ;; #(
16996    *)
16997      # `set' quotes correctly as required by POSIX, so do not add quotes.
16998      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16999      ;;
17000    esac |
17001    sort
17002) |
17003  sed '
17004     /^ac_cv_env_/b end
17005     t clear
17006     :clear
17007     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17008     t end
17009     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17010     :end' >>confcache
17011if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17012  if test -w "$cache_file"; then
17013    if test "x$cache_file" != "x/dev/null"; then
17014      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17015$as_echo "$as_me: updating cache $cache_file" >&6;}
17016      if test ! -f "$cache_file" || test -h "$cache_file"; then
17017	cat confcache >"$cache_file"
17018      else
17019        case $cache_file in #(
17020        */* | ?:*)
17021	  mv -f confcache "$cache_file"$$ &&
17022	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17023        *)
17024	  mv -f confcache "$cache_file" ;;
17025	esac
17026      fi
17027    fi
17028  else
17029    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17030$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17031  fi
17032fi
17033rm -f confcache
17034
17035test "x$prefix" = xNONE && prefix=$ac_default_prefix
17036# Let make expand exec_prefix.
17037test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17038
17039DEFS=-DHAVE_CONFIG_H
17040
17041ac_libobjs=
17042ac_ltlibobjs=
17043U=
17044for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17045  # 1. Remove the extension, and $U if already installed.
17046  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17047  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17048  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17049  #    will be set to the directory where LIBOBJS objects are built.
17050  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17051  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17052done
17053LIBOBJS=$ac_libobjs
17054
17055LTLIBOBJS=$ac_ltlibobjs
17056
17057
17058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17059$as_echo_n "checking that generated files are newer than configure... " >&6; }
17060   if test -n "$am_sleep_pid"; then
17061     # Hide warnings about reused PIDs.
17062     wait $am_sleep_pid 2>/dev/null
17063   fi
17064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17065$as_echo "done" >&6; }
17066 if test -n "$EXEEXT"; then
17067  am__EXEEXT_TRUE=
17068  am__EXEEXT_FALSE='#'
17069else
17070  am__EXEEXT_TRUE='#'
17071  am__EXEEXT_FALSE=
17072fi
17073
17074if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17075  as_fn_error $? "conditional \"AMDEP\" was never defined.
17076Usually this means the macro was only invoked conditionally." "$LINENO" 5
17077fi
17078if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17079  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17080Usually this means the macro was only invoked conditionally." "$LINENO" 5
17081fi
17082if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17083  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17084Usually this means the macro was only invoked conditionally." "$LINENO" 5
17085fi
17086if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
17087  as_fn_error $? "conditional \"OS_WIN32\" was never defined.
17088Usually this means the macro was only invoked conditionally." "$LINENO" 5
17089fi
17090if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
17091  as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
17092Usually this means the macro was only invoked conditionally." "$LINENO" 5
17093fi
17094if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
17095  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
17096Usually this means the macro was only invoked conditionally." "$LINENO" 5
17097fi
17098if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17099  as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
17100Usually this means the macro was only invoked conditionally." "$LINENO" 5
17101fi
17102if test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE}" && test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE}"; then
17103  as_fn_error $? "conditional \"FREETYPE_PCF_LONG_FAMILY_NAMES\" was never defined.
17104Usually this means the macro was only invoked conditionally." "$LINENO" 5
17105fi
17106if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
17107  as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
17108Usually this means the macro was only invoked conditionally." "$LINENO" 5
17109fi
17110if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
17111  as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
17112Usually this means the macro was only invoked conditionally." "$LINENO" 5
17113fi
17114if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
17115  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
17116Usually this means the macro was only invoked conditionally." "$LINENO" 5
17117fi
17118
17119
17120: "${CONFIG_STATUS=./config.status}"
17121ac_write_fail=0
17122ac_clean_files_save=$ac_clean_files
17123ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17124{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17125$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17126as_write_fail=0
17127cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17128#! $SHELL
17129# Generated by $as_me.
17130# Run this file to recreate the current configuration.
17131# Compiler output produced by configure, useful for debugging
17132# configure, is in config.log if it exists.
17133
17134debug=false
17135ac_cs_recheck=false
17136ac_cs_silent=false
17137
17138SHELL=\${CONFIG_SHELL-$SHELL}
17139export SHELL
17140_ASEOF
17141cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17142## -------------------- ##
17143## M4sh Initialization. ##
17144## -------------------- ##
17145
17146# Be more Bourne compatible
17147DUALCASE=1; export DUALCASE # for MKS sh
17148if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17149  emulate sh
17150  NULLCMD=:
17151  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17152  # is contrary to our usage.  Disable this feature.
17153  alias -g '${1+"$@"}'='"$@"'
17154  setopt NO_GLOB_SUBST
17155else
17156  case `(set -o) 2>/dev/null` in #(
17157  *posix*) :
17158    set -o posix ;; #(
17159  *) :
17160     ;;
17161esac
17162fi
17163
17164
17165as_nl='
17166'
17167export as_nl
17168# Printing a long string crashes Solaris 7 /usr/bin/printf.
17169as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17170as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17171as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17172# Prefer a ksh shell builtin over an external printf program on Solaris,
17173# but without wasting forks for bash or zsh.
17174if test -z "$BASH_VERSION$ZSH_VERSION" \
17175    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17176  as_echo='print -r --'
17177  as_echo_n='print -rn --'
17178elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17179  as_echo='printf %s\n'
17180  as_echo_n='printf %s'
17181else
17182  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17183    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17184    as_echo_n='/usr/ucb/echo -n'
17185  else
17186    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17187    as_echo_n_body='eval
17188      arg=$1;
17189      case $arg in #(
17190      *"$as_nl"*)
17191	expr "X$arg" : "X\\(.*\\)$as_nl";
17192	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17193      esac;
17194      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17195    '
17196    export as_echo_n_body
17197    as_echo_n='sh -c $as_echo_n_body as_echo'
17198  fi
17199  export as_echo_body
17200  as_echo='sh -c $as_echo_body as_echo'
17201fi
17202
17203# The user is always right.
17204if test "${PATH_SEPARATOR+set}" != set; then
17205  PATH_SEPARATOR=:
17206  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17207    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17208      PATH_SEPARATOR=';'
17209  }
17210fi
17211
17212
17213# IFS
17214# We need space, tab and new line, in precisely that order.  Quoting is
17215# there to prevent editors from complaining about space-tab.
17216# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17217# splitting by setting IFS to empty value.)
17218IFS=" ""	$as_nl"
17219
17220# Find who we are.  Look in the path if we contain no directory separator.
17221as_myself=
17222case $0 in #((
17223  *[\\/]* ) as_myself=$0 ;;
17224  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17225for as_dir in $PATH
17226do
17227  IFS=$as_save_IFS
17228  test -z "$as_dir" && as_dir=.
17229    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17230  done
17231IFS=$as_save_IFS
17232
17233     ;;
17234esac
17235# We did not find ourselves, most probably we were run as `sh COMMAND'
17236# in which case we are not to be found in the path.
17237if test "x$as_myself" = x; then
17238  as_myself=$0
17239fi
17240if test ! -f "$as_myself"; then
17241  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17242  exit 1
17243fi
17244
17245# Unset variables that we do not need and which cause bugs (e.g. in
17246# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17247# suppresses any "Segmentation fault" message there.  '((' could
17248# trigger a bug in pdksh 5.2.14.
17249for as_var in BASH_ENV ENV MAIL MAILPATH
17250do eval test x\${$as_var+set} = xset \
17251  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17252done
17253PS1='$ '
17254PS2='> '
17255PS4='+ '
17256
17257# NLS nuisances.
17258LC_ALL=C
17259export LC_ALL
17260LANGUAGE=C
17261export LANGUAGE
17262
17263# CDPATH.
17264(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17265
17266
17267# as_fn_error STATUS ERROR [LINENO LOG_FD]
17268# ----------------------------------------
17269# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17270# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17271# script with STATUS, using 1 if that was 0.
17272as_fn_error ()
17273{
17274  as_status=$1; test $as_status -eq 0 && as_status=1
17275  if test "$4"; then
17276    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17277    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17278  fi
17279  $as_echo "$as_me: error: $2" >&2
17280  as_fn_exit $as_status
17281} # as_fn_error
17282
17283
17284# as_fn_set_status STATUS
17285# -----------------------
17286# Set $? to STATUS, without forking.
17287as_fn_set_status ()
17288{
17289  return $1
17290} # as_fn_set_status
17291
17292# as_fn_exit STATUS
17293# -----------------
17294# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17295as_fn_exit ()
17296{
17297  set +e
17298  as_fn_set_status $1
17299  exit $1
17300} # as_fn_exit
17301
17302# as_fn_unset VAR
17303# ---------------
17304# Portably unset VAR.
17305as_fn_unset ()
17306{
17307  { eval $1=; unset $1;}
17308}
17309as_unset=as_fn_unset
17310# as_fn_append VAR VALUE
17311# ----------------------
17312# Append the text in VALUE to the end of the definition contained in VAR. Take
17313# advantage of any shell optimizations that allow amortized linear growth over
17314# repeated appends, instead of the typical quadratic growth present in naive
17315# implementations.
17316if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17317  eval 'as_fn_append ()
17318  {
17319    eval $1+=\$2
17320  }'
17321else
17322  as_fn_append ()
17323  {
17324    eval $1=\$$1\$2
17325  }
17326fi # as_fn_append
17327
17328# as_fn_arith ARG...
17329# ------------------
17330# Perform arithmetic evaluation on the ARGs, and store the result in the
17331# global $as_val. Take advantage of shells that can avoid forks. The arguments
17332# must be portable across $(()) and expr.
17333if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17334  eval 'as_fn_arith ()
17335  {
17336    as_val=$(( $* ))
17337  }'
17338else
17339  as_fn_arith ()
17340  {
17341    as_val=`expr "$@" || test $? -eq 1`
17342  }
17343fi # as_fn_arith
17344
17345
17346if expr a : '\(a\)' >/dev/null 2>&1 &&
17347   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17348  as_expr=expr
17349else
17350  as_expr=false
17351fi
17352
17353if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17354  as_basename=basename
17355else
17356  as_basename=false
17357fi
17358
17359if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17360  as_dirname=dirname
17361else
17362  as_dirname=false
17363fi
17364
17365as_me=`$as_basename -- "$0" ||
17366$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17367	 X"$0" : 'X\(//\)$' \| \
17368	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17369$as_echo X/"$0" |
17370    sed '/^.*\/\([^/][^/]*\)\/*$/{
17371	    s//\1/
17372	    q
17373	  }
17374	  /^X\/\(\/\/\)$/{
17375	    s//\1/
17376	    q
17377	  }
17378	  /^X\/\(\/\).*/{
17379	    s//\1/
17380	    q
17381	  }
17382	  s/.*/./; q'`
17383
17384# Avoid depending upon Character Ranges.
17385as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17386as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17387as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17388as_cr_digits='0123456789'
17389as_cr_alnum=$as_cr_Letters$as_cr_digits
17390
17391ECHO_C= ECHO_N= ECHO_T=
17392case `echo -n x` in #(((((
17393-n*)
17394  case `echo 'xy\c'` in
17395  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17396  xy)  ECHO_C='\c';;
17397  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17398       ECHO_T='	';;
17399  esac;;
17400*)
17401  ECHO_N='-n';;
17402esac
17403
17404rm -f conf$$ conf$$.exe conf$$.file
17405if test -d conf$$.dir; then
17406  rm -f conf$$.dir/conf$$.file
17407else
17408  rm -f conf$$.dir
17409  mkdir conf$$.dir 2>/dev/null
17410fi
17411if (echo >conf$$.file) 2>/dev/null; then
17412  if ln -s conf$$.file conf$$ 2>/dev/null; then
17413    as_ln_s='ln -s'
17414    # ... but there are two gotchas:
17415    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17416    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17417    # In both cases, we have to default to `cp -pR'.
17418    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17419      as_ln_s='cp -pR'
17420  elif ln conf$$.file conf$$ 2>/dev/null; then
17421    as_ln_s=ln
17422  else
17423    as_ln_s='cp -pR'
17424  fi
17425else
17426  as_ln_s='cp -pR'
17427fi
17428rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17429rmdir conf$$.dir 2>/dev/null
17430
17431
17432# as_fn_mkdir_p
17433# -------------
17434# Create "$as_dir" as a directory, including parents if necessary.
17435as_fn_mkdir_p ()
17436{
17437
17438  case $as_dir in #(
17439  -*) as_dir=./$as_dir;;
17440  esac
17441  test -d "$as_dir" || eval $as_mkdir_p || {
17442    as_dirs=
17443    while :; do
17444      case $as_dir in #(
17445      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17446      *) as_qdir=$as_dir;;
17447      esac
17448      as_dirs="'$as_qdir' $as_dirs"
17449      as_dir=`$as_dirname -- "$as_dir" ||
17450$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17451	 X"$as_dir" : 'X\(//\)[^/]' \| \
17452	 X"$as_dir" : 'X\(//\)$' \| \
17453	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17454$as_echo X"$as_dir" |
17455    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17456	    s//\1/
17457	    q
17458	  }
17459	  /^X\(\/\/\)[^/].*/{
17460	    s//\1/
17461	    q
17462	  }
17463	  /^X\(\/\/\)$/{
17464	    s//\1/
17465	    q
17466	  }
17467	  /^X\(\/\).*/{
17468	    s//\1/
17469	    q
17470	  }
17471	  s/.*/./; q'`
17472      test -d "$as_dir" && break
17473    done
17474    test -z "$as_dirs" || eval "mkdir $as_dirs"
17475  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17476
17477
17478} # as_fn_mkdir_p
17479if mkdir -p . 2>/dev/null; then
17480  as_mkdir_p='mkdir -p "$as_dir"'
17481else
17482  test -d ./-p && rmdir ./-p
17483  as_mkdir_p=false
17484fi
17485
17486
17487# as_fn_executable_p FILE
17488# -----------------------
17489# Test if FILE is an executable regular file.
17490as_fn_executable_p ()
17491{
17492  test -f "$1" && test -x "$1"
17493} # as_fn_executable_p
17494as_test_x='test -x'
17495as_executable_p=as_fn_executable_p
17496
17497# Sed expression to map a string onto a valid CPP name.
17498as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17499
17500# Sed expression to map a string onto a valid variable name.
17501as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17502
17503
17504exec 6>&1
17505## ----------------------------------- ##
17506## Main body of $CONFIG_STATUS script. ##
17507## ----------------------------------- ##
17508_ASEOF
17509test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17510
17511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17512# Save the log message, to keep $0 and so on meaningful, and to
17513# report actual input values of CONFIG_FILES etc. instead of their
17514# values after options handling.
17515ac_log="
17516This file was extended by fontconfig $as_me 2.12.4, which was
17517generated by GNU Autoconf 2.69.  Invocation command line was
17518
17519  CONFIG_FILES    = $CONFIG_FILES
17520  CONFIG_HEADERS  = $CONFIG_HEADERS
17521  CONFIG_LINKS    = $CONFIG_LINKS
17522  CONFIG_COMMANDS = $CONFIG_COMMANDS
17523  $ $0 $@
17524
17525on `(hostname || uname -n) 2>/dev/null | sed 1q`
17526"
17527
17528_ACEOF
17529
17530case $ac_config_files in *"
17531"*) set x $ac_config_files; shift; ac_config_files=$*;;
17532esac
17533
17534case $ac_config_headers in *"
17535"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17536esac
17537
17538
17539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17540# Files that config.status was made for.
17541config_files="$ac_config_files"
17542config_headers="$ac_config_headers"
17543config_commands="$ac_config_commands"
17544
17545_ACEOF
17546
17547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17548ac_cs_usage="\
17549\`$as_me' instantiates files and other configuration actions
17550from templates according to the current configuration.  Unless the files
17551and actions are specified as TAGs, all are instantiated by default.
17552
17553Usage: $0 [OPTION]... [TAG]...
17554
17555  -h, --help       print this help, then exit
17556  -V, --version    print version number and configuration settings, then exit
17557      --config     print configuration, then exit
17558  -q, --quiet, --silent
17559                   do not print progress messages
17560  -d, --debug      don't remove temporary files
17561      --recheck    update $as_me by reconfiguring in the same conditions
17562      --file=FILE[:TEMPLATE]
17563                   instantiate the configuration file FILE
17564      --header=FILE[:TEMPLATE]
17565                   instantiate the configuration header FILE
17566
17567Configuration files:
17568$config_files
17569
17570Configuration headers:
17571$config_headers
17572
17573Configuration commands:
17574$config_commands
17575
17576Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>."
17577
17578_ACEOF
17579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17580ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17581ac_cs_version="\\
17582fontconfig config.status 2.12.4
17583configured by $0, generated by GNU Autoconf 2.69,
17584  with options \\"\$ac_cs_config\\"
17585
17586Copyright (C) 2012 Free Software Foundation, Inc.
17587This config.status script is free software; the Free Software Foundation
17588gives unlimited permission to copy, distribute and modify it."
17589
17590ac_pwd='$ac_pwd'
17591srcdir='$srcdir'
17592INSTALL='$INSTALL'
17593MKDIR_P='$MKDIR_P'
17594AWK='$AWK'
17595test -n "\$AWK" || AWK=awk
17596_ACEOF
17597
17598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17599# The default lists apply if the user does not specify any file.
17600ac_need_defaults=:
17601while test $# != 0
17602do
17603  case $1 in
17604  --*=?*)
17605    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17606    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17607    ac_shift=:
17608    ;;
17609  --*=)
17610    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17611    ac_optarg=
17612    ac_shift=:
17613    ;;
17614  *)
17615    ac_option=$1
17616    ac_optarg=$2
17617    ac_shift=shift
17618    ;;
17619  esac
17620
17621  case $ac_option in
17622  # Handling of the options.
17623  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17624    ac_cs_recheck=: ;;
17625  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17626    $as_echo "$ac_cs_version"; exit ;;
17627  --config | --confi | --conf | --con | --co | --c )
17628    $as_echo "$ac_cs_config"; exit ;;
17629  --debug | --debu | --deb | --de | --d | -d )
17630    debug=: ;;
17631  --file | --fil | --fi | --f )
17632    $ac_shift
17633    case $ac_optarg in
17634    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17635    '') as_fn_error $? "missing file argument" ;;
17636    esac
17637    as_fn_append CONFIG_FILES " '$ac_optarg'"
17638    ac_need_defaults=false;;
17639  --header | --heade | --head | --hea )
17640    $ac_shift
17641    case $ac_optarg in
17642    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17643    esac
17644    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17645    ac_need_defaults=false;;
17646  --he | --h)
17647    # Conflict between --help and --header
17648    as_fn_error $? "ambiguous option: \`$1'
17649Try \`$0 --help' for more information.";;
17650  --help | --hel | -h )
17651    $as_echo "$ac_cs_usage"; exit ;;
17652  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17653  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17654    ac_cs_silent=: ;;
17655
17656  # This is an error.
17657  -*) as_fn_error $? "unrecognized option: \`$1'
17658Try \`$0 --help' for more information." ;;
17659
17660  *) as_fn_append ac_config_targets " $1"
17661     ac_need_defaults=false ;;
17662
17663  esac
17664  shift
17665done
17666
17667ac_configure_extra_args=
17668
17669if $ac_cs_silent; then
17670  exec 6>/dev/null
17671  ac_configure_extra_args="$ac_configure_extra_args --silent"
17672fi
17673
17674_ACEOF
17675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17676if \$ac_cs_recheck; then
17677  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17678  shift
17679  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17680  CONFIG_SHELL='$SHELL'
17681  export CONFIG_SHELL
17682  exec "\$@"
17683fi
17684
17685_ACEOF
17686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17687exec 5>>config.log
17688{
17689  echo
17690  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17691## Running $as_me. ##
17692_ASBOX
17693  $as_echo "$ac_log"
17694} >&5
17695
17696_ACEOF
17697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17698#
17699# INIT-COMMANDS
17700#
17701AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17702
17703
17704# The HP-UX ksh and POSIX shell print the target directory to stdout
17705# if CDPATH is set.
17706(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17707
17708sed_quote_subst='$sed_quote_subst'
17709double_quote_subst='$double_quote_subst'
17710delay_variable_subst='$delay_variable_subst'
17711macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17712macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17713enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17714AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17715DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17716OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17717enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17718pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17719enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17720shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17721SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17722ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17723PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17724host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17725host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17726host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17727build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17728build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17729build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17730SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17731Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17732GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17733EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17734FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17735LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17736NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17737LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17738max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17739ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17740exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17741lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17742lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17743lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17744lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17745lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17746reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17747reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17748deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17749file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17750file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17751want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17752sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17753AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17754AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17755archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17756STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17757RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17758old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17759old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17760old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17761lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17762CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17763CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17764compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17765GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17766lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17767lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17768lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17769lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17770lt_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"`'
17771lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17772nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17773lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17774lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17775objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17776MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17777lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17778lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17779lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17780lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17781lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17782need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17783MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17784DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17785NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17786LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17787OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17788OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17789libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17790shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17791extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17792archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17793enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17794export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17795whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17796compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17797old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17798old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17799archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17800archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17801module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17802module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17803with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17804allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17805no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17806hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17807hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17808hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17809hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17810hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17811hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17812hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17813inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17814link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17815always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17816export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17817exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17818include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17819prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17820postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17821file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17822variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17823need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17824need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17825version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17826runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17827shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17828shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17829libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17830library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17831soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17832install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17833postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17834postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17835finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17836finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17837hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17838sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17839configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17840configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17841hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17842enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17843enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17844enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17845old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17846striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17847
17848LTCC='$LTCC'
17849LTCFLAGS='$LTCFLAGS'
17850compiler='$compiler_DEFAULT'
17851
17852# A function that is used when there is no print builtin or printf.
17853func_fallback_echo ()
17854{
17855  eval 'cat <<_LTECHO_EOF
17856\$1
17857_LTECHO_EOF'
17858}
17859
17860# Quote evaled strings.
17861for var in AS \
17862DLLTOOL \
17863OBJDUMP \
17864SHELL \
17865ECHO \
17866PATH_SEPARATOR \
17867SED \
17868GREP \
17869EGREP \
17870FGREP \
17871LD \
17872NM \
17873LN_S \
17874lt_SP2NL \
17875lt_NL2SP \
17876reload_flag \
17877deplibs_check_method \
17878file_magic_cmd \
17879file_magic_glob \
17880want_nocaseglob \
17881sharedlib_from_linklib_cmd \
17882AR \
17883AR_FLAGS \
17884archiver_list_spec \
17885STRIP \
17886RANLIB \
17887CC \
17888CFLAGS \
17889compiler \
17890lt_cv_sys_global_symbol_pipe \
17891lt_cv_sys_global_symbol_to_cdecl \
17892lt_cv_sys_global_symbol_to_import \
17893lt_cv_sys_global_symbol_to_c_name_address \
17894lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17895lt_cv_nm_interface \
17896nm_file_list_spec \
17897lt_cv_truncate_bin \
17898lt_prog_compiler_no_builtin_flag \
17899lt_prog_compiler_pic \
17900lt_prog_compiler_wl \
17901lt_prog_compiler_static \
17902lt_cv_prog_compiler_c_o \
17903need_locks \
17904MANIFEST_TOOL \
17905DSYMUTIL \
17906NMEDIT \
17907LIPO \
17908OTOOL \
17909OTOOL64 \
17910shrext_cmds \
17911export_dynamic_flag_spec \
17912whole_archive_flag_spec \
17913compiler_needs_object \
17914with_gnu_ld \
17915allow_undefined_flag \
17916no_undefined_flag \
17917hardcode_libdir_flag_spec \
17918hardcode_libdir_separator \
17919exclude_expsyms \
17920include_expsyms \
17921file_list_spec \
17922variables_saved_for_relink \
17923libname_spec \
17924library_names_spec \
17925soname_spec \
17926install_override_mode \
17927finish_eval \
17928old_striplib \
17929striplib; do
17930    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17931    *[\\\\\\\`\\"\\\$]*)
17932      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17933      ;;
17934    *)
17935      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17936      ;;
17937    esac
17938done
17939
17940# Double-quote double-evaled strings.
17941for var in reload_cmds \
17942old_postinstall_cmds \
17943old_postuninstall_cmds \
17944old_archive_cmds \
17945extract_expsyms_cmds \
17946old_archive_from_new_cmds \
17947old_archive_from_expsyms_cmds \
17948archive_cmds \
17949archive_expsym_cmds \
17950module_cmds \
17951module_expsym_cmds \
17952export_symbols_cmds \
17953prelink_cmds \
17954postlink_cmds \
17955postinstall_cmds \
17956postuninstall_cmds \
17957finish_cmds \
17958sys_lib_search_path_spec \
17959configure_time_dlsearch_path \
17960configure_time_lt_sys_library_path; do
17961    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17962    *[\\\\\\\`\\"\\\$]*)
17963      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17964      ;;
17965    *)
17966      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17967      ;;
17968    esac
17969done
17970
17971ac_aux_dir='$ac_aux_dir'
17972
17973# See if we are running on zsh, and set the options that allow our
17974# commands through without removal of \ escapes INIT.
17975if test -n "\${ZSH_VERSION+set}"; then
17976   setopt NO_GLOB_SUBST
17977fi
17978
17979
17980    PACKAGE='$PACKAGE'
17981    VERSION='$VERSION'
17982    RM='$RM'
17983    ofile='$ofile'
17984
17985
17986
17987# variables for create stdint.h replacement
17988PACKAGE="$PACKAGE"
17989VERSION="$VERSION"
17990ac_stdint_h="$ac_stdint_h"
17991_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
17992ac_cv_stdint_message="$ac_cv_stdint_message"
17993ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
17994ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
17995ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
17996ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
17997ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17998ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17999ac_cv_char_data_model="$ac_cv_char_data_model"
18000ac_cv_long_data_model="$ac_cv_long_data_model"
18001ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18002ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18003ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
18004
18005
18006_ACEOF
18007
18008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18009
18010# Handling of arguments.
18011for ac_config_target in $ac_config_targets
18012do
18013  case $ac_config_target in
18014    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18015    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18016    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18017    "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
18018    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18019    "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
18020    "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
18021    "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
18022    "fc-blanks/Makefile") CONFIG_FILES="$CONFIG_FILES fc-blanks/Makefile" ;;
18023    "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
18024    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18025    "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
18026    "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
18027    "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
18028    "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
18029    "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
18030    "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
18031    "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
18032    "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
18033    "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
18034    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18035    "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
18036    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18037    "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
18038    "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
18039    "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
18040
18041  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18042  esac
18043done
18044
18045
18046# If the user did not use the arguments to specify the items to instantiate,
18047# then the envvar interface is used.  Set only those that are not.
18048# We use the long form for the default assignment because of an extremely
18049# bizarre bug on SunOS 4.1.3.
18050if $ac_need_defaults; then
18051  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18052  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18053  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18054fi
18055
18056# Have a temporary directory for convenience.  Make it in the build tree
18057# simply because there is no reason against having it here, and in addition,
18058# creating and moving files from /tmp can sometimes cause problems.
18059# Hook for its removal unless debugging.
18060# Note that there is a small window in which the directory will not be cleaned:
18061# after its creation but before its name has been assigned to `$tmp'.
18062$debug ||
18063{
18064  tmp= ac_tmp=
18065  trap 'exit_status=$?
18066  : "${ac_tmp:=$tmp}"
18067  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18068' 0
18069  trap 'as_fn_exit 1' 1 2 13 15
18070}
18071# Create a (secure) tmp directory for tmp files.
18072
18073{
18074  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18075  test -d "$tmp"
18076}  ||
18077{
18078  tmp=./conf$$-$RANDOM
18079  (umask 077 && mkdir "$tmp")
18080} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18081ac_tmp=$tmp
18082
18083# Set up the scripts for CONFIG_FILES section.
18084# No need to generate them if there are no CONFIG_FILES.
18085# This happens for instance with `./config.status config.h'.
18086if test -n "$CONFIG_FILES"; then
18087
18088
18089ac_cr=`echo X | tr X '\015'`
18090# On cygwin, bash can eat \r inside `` if the user requested igncr.
18091# But we know of no other shell where ac_cr would be empty at this
18092# point, so we can use a bashism as a fallback.
18093if test "x$ac_cr" = x; then
18094  eval ac_cr=\$\'\\r\'
18095fi
18096ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18097if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18098  ac_cs_awk_cr='\\r'
18099else
18100  ac_cs_awk_cr=$ac_cr
18101fi
18102
18103echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18104_ACEOF
18105
18106
18107{
18108  echo "cat >conf$$subs.awk <<_ACEOF" &&
18109  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18110  echo "_ACEOF"
18111} >conf$$subs.sh ||
18112  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18113ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18114ac_delim='%!_!# '
18115for ac_last_try in false false false false false :; do
18116  . ./conf$$subs.sh ||
18117    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18118
18119  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18120  if test $ac_delim_n = $ac_delim_num; then
18121    break
18122  elif $ac_last_try; then
18123    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18124  else
18125    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18126  fi
18127done
18128rm -f conf$$subs.sh
18129
18130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18131cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18132_ACEOF
18133sed -n '
18134h
18135s/^/S["/; s/!.*/"]=/
18136p
18137g
18138s/^[^!]*!//
18139:repl
18140t repl
18141s/'"$ac_delim"'$//
18142t delim
18143:nl
18144h
18145s/\(.\{148\}\)..*/\1/
18146t more1
18147s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18148p
18149n
18150b repl
18151:more1
18152s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18153p
18154g
18155s/.\{148\}//
18156t nl
18157:delim
18158h
18159s/\(.\{148\}\)..*/\1/
18160t more2
18161s/["\\]/\\&/g; s/^/"/; s/$/"/
18162p
18163b
18164:more2
18165s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18166p
18167g
18168s/.\{148\}//
18169t delim
18170' <conf$$subs.awk | sed '
18171/^[^""]/{
18172  N
18173  s/\n//
18174}
18175' >>$CONFIG_STATUS || ac_write_fail=1
18176rm -f conf$$subs.awk
18177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18178_ACAWK
18179cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18180  for (key in S) S_is_set[key] = 1
18181  FS = ""
18182
18183}
18184{
18185  line = $ 0
18186  nfields = split(line, field, "@")
18187  substed = 0
18188  len = length(field[1])
18189  for (i = 2; i < nfields; i++) {
18190    key = field[i]
18191    keylen = length(key)
18192    if (S_is_set[key]) {
18193      value = S[key]
18194      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18195      len += length(value) + length(field[++i])
18196      substed = 1
18197    } else
18198      len += 1 + keylen
18199  }
18200
18201  print line
18202}
18203
18204_ACAWK
18205_ACEOF
18206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18207if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18208  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18209else
18210  cat
18211fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18212  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18213_ACEOF
18214
18215# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18216# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18217# trailing colons and then remove the whole line if VPATH becomes empty
18218# (actually we leave an empty line to preserve line numbers).
18219if test "x$srcdir" = x.; then
18220  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18221h
18222s///
18223s/^/:/
18224s/[	 ]*$/:/
18225s/:\$(srcdir):/:/g
18226s/:\${srcdir}:/:/g
18227s/:@srcdir@:/:/g
18228s/^:*//
18229s/:*$//
18230x
18231s/\(=[	 ]*\).*/\1/
18232G
18233s/\n//
18234s/^[^=]*=[	 ]*$//
18235}'
18236fi
18237
18238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18239fi # test -n "$CONFIG_FILES"
18240
18241# Set up the scripts for CONFIG_HEADERS section.
18242# No need to generate them if there are no CONFIG_HEADERS.
18243# This happens for instance with `./config.status Makefile'.
18244if test -n "$CONFIG_HEADERS"; then
18245cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18246BEGIN {
18247_ACEOF
18248
18249# Transform confdefs.h into an awk script `defines.awk', embedded as
18250# here-document in config.status, that substitutes the proper values into
18251# config.h.in to produce config.h.
18252
18253# Create a delimiter string that does not exist in confdefs.h, to ease
18254# handling of long lines.
18255ac_delim='%!_!# '
18256for ac_last_try in false false :; do
18257  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18258  if test -z "$ac_tt"; then
18259    break
18260  elif $ac_last_try; then
18261    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18262  else
18263    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18264  fi
18265done
18266
18267# For the awk script, D is an array of macro values keyed by name,
18268# likewise P contains macro parameters if any.  Preserve backslash
18269# newline sequences.
18270
18271ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18272sed -n '
18273s/.\{148\}/&'"$ac_delim"'/g
18274t rset
18275:rset
18276s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18277t def
18278d
18279:def
18280s/\\$//
18281t bsnl
18282s/["\\]/\\&/g
18283s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18284D["\1"]=" \3"/p
18285s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18286d
18287:bsnl
18288s/["\\]/\\&/g
18289s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18290D["\1"]=" \3\\\\\\n"\\/p
18291t cont
18292s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18293t cont
18294d
18295:cont
18296n
18297s/.\{148\}/&'"$ac_delim"'/g
18298t clear
18299:clear
18300s/\\$//
18301t bsnlc
18302s/["\\]/\\&/g; s/^/"/; s/$/"/p
18303d
18304:bsnlc
18305s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18306b cont
18307' <confdefs.h | sed '
18308s/'"$ac_delim"'/"\\\
18309"/g' >>$CONFIG_STATUS || ac_write_fail=1
18310
18311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18312  for (key in D) D_is_set[key] = 1
18313  FS = ""
18314}
18315/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18316  line = \$ 0
18317  split(line, arg, " ")
18318  if (arg[1] == "#") {
18319    defundef = arg[2]
18320    mac1 = arg[3]
18321  } else {
18322    defundef = substr(arg[1], 2)
18323    mac1 = arg[2]
18324  }
18325  split(mac1, mac2, "(") #)
18326  macro = mac2[1]
18327  prefix = substr(line, 1, index(line, defundef) - 1)
18328  if (D_is_set[macro]) {
18329    # Preserve the white space surrounding the "#".
18330    print prefix "define", macro P[macro] D[macro]
18331    next
18332  } else {
18333    # Replace #undef with comments.  This is necessary, for example,
18334    # in the case of _POSIX_SOURCE, which is predefined and required
18335    # on some systems where configure will not decide to define it.
18336    if (defundef == "undef") {
18337      print "/*", prefix defundef, macro, "*/"
18338      next
18339    }
18340  }
18341}
18342{ print }
18343_ACAWK
18344_ACEOF
18345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18346  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18347fi # test -n "$CONFIG_HEADERS"
18348
18349
18350eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18351shift
18352for ac_tag
18353do
18354  case $ac_tag in
18355  :[FHLC]) ac_mode=$ac_tag; continue;;
18356  esac
18357  case $ac_mode$ac_tag in
18358  :[FHL]*:*);;
18359  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18360  :[FH]-) ac_tag=-:-;;
18361  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18362  esac
18363  ac_save_IFS=$IFS
18364  IFS=:
18365  set x $ac_tag
18366  IFS=$ac_save_IFS
18367  shift
18368  ac_file=$1
18369  shift
18370
18371  case $ac_mode in
18372  :L) ac_source=$1;;
18373  :[FH])
18374    ac_file_inputs=
18375    for ac_f
18376    do
18377      case $ac_f in
18378      -) ac_f="$ac_tmp/stdin";;
18379      *) # Look for the file first in the build tree, then in the source tree
18380	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18381	 # because $ac_f cannot contain `:'.
18382	 test -f "$ac_f" ||
18383	   case $ac_f in
18384	   [\\/$]*) false;;
18385	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18386	   esac ||
18387	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18388      esac
18389      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18390      as_fn_append ac_file_inputs " '$ac_f'"
18391    done
18392
18393    # Let's still pretend it is `configure' which instantiates (i.e., don't
18394    # use $as_me), people would be surprised to read:
18395    #    /* config.h.  Generated by config.status.  */
18396    configure_input='Generated from '`
18397	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18398	`' by configure.'
18399    if test x"$ac_file" != x-; then
18400      configure_input="$ac_file.  $configure_input"
18401      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18402$as_echo "$as_me: creating $ac_file" >&6;}
18403    fi
18404    # Neutralize special characters interpreted by sed in replacement strings.
18405    case $configure_input in #(
18406    *\&* | *\|* | *\\* )
18407       ac_sed_conf_input=`$as_echo "$configure_input" |
18408       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18409    *) ac_sed_conf_input=$configure_input;;
18410    esac
18411
18412    case $ac_tag in
18413    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18414      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18415    esac
18416    ;;
18417  esac
18418
18419  ac_dir=`$as_dirname -- "$ac_file" ||
18420$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18421	 X"$ac_file" : 'X\(//\)[^/]' \| \
18422	 X"$ac_file" : 'X\(//\)$' \| \
18423	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18424$as_echo X"$ac_file" |
18425    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18426	    s//\1/
18427	    q
18428	  }
18429	  /^X\(\/\/\)[^/].*/{
18430	    s//\1/
18431	    q
18432	  }
18433	  /^X\(\/\/\)$/{
18434	    s//\1/
18435	    q
18436	  }
18437	  /^X\(\/\).*/{
18438	    s//\1/
18439	    q
18440	  }
18441	  s/.*/./; q'`
18442  as_dir="$ac_dir"; as_fn_mkdir_p
18443  ac_builddir=.
18444
18445case "$ac_dir" in
18446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18447*)
18448  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18449  # A ".." for each directory in $ac_dir_suffix.
18450  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18451  case $ac_top_builddir_sub in
18452  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18453  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18454  esac ;;
18455esac
18456ac_abs_top_builddir=$ac_pwd
18457ac_abs_builddir=$ac_pwd$ac_dir_suffix
18458# for backward compatibility:
18459ac_top_builddir=$ac_top_build_prefix
18460
18461case $srcdir in
18462  .)  # We are building in place.
18463    ac_srcdir=.
18464    ac_top_srcdir=$ac_top_builddir_sub
18465    ac_abs_top_srcdir=$ac_pwd ;;
18466  [\\/]* | ?:[\\/]* )  # Absolute name.
18467    ac_srcdir=$srcdir$ac_dir_suffix;
18468    ac_top_srcdir=$srcdir
18469    ac_abs_top_srcdir=$srcdir ;;
18470  *) # Relative name.
18471    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18472    ac_top_srcdir=$ac_top_build_prefix$srcdir
18473    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18474esac
18475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18476
18477
18478  case $ac_mode in
18479  :F)
18480  #
18481  # CONFIG_FILE
18482  #
18483
18484  case $INSTALL in
18485  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18486  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18487  esac
18488  ac_MKDIR_P=$MKDIR_P
18489  case $MKDIR_P in
18490  [\\/$]* | ?:[\\/]* ) ;;
18491  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18492  esac
18493_ACEOF
18494
18495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18496# If the template does not know about datarootdir, expand it.
18497# FIXME: This hack should be removed a few years after 2.60.
18498ac_datarootdir_hack=; ac_datarootdir_seen=
18499ac_sed_dataroot='
18500/datarootdir/ {
18501  p
18502  q
18503}
18504/@datadir@/p
18505/@docdir@/p
18506/@infodir@/p
18507/@localedir@/p
18508/@mandir@/p'
18509case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18510*datarootdir*) ac_datarootdir_seen=yes;;
18511*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18512  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18513$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18514_ACEOF
18515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18516  ac_datarootdir_hack='
18517  s&@datadir@&$datadir&g
18518  s&@docdir@&$docdir&g
18519  s&@infodir@&$infodir&g
18520  s&@localedir@&$localedir&g
18521  s&@mandir@&$mandir&g
18522  s&\\\${datarootdir}&$datarootdir&g' ;;
18523esac
18524_ACEOF
18525
18526# Neutralize VPATH when `$srcdir' = `.'.
18527# Shell code in configure.ac might set extrasub.
18528# FIXME: do we really want to maintain this feature?
18529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18530ac_sed_extra="$ac_vpsub
18531$extrasub
18532_ACEOF
18533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18534:t
18535/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18536s|@configure_input@|$ac_sed_conf_input|;t t
18537s&@top_builddir@&$ac_top_builddir_sub&;t t
18538s&@top_build_prefix@&$ac_top_build_prefix&;t t
18539s&@srcdir@&$ac_srcdir&;t t
18540s&@abs_srcdir@&$ac_abs_srcdir&;t t
18541s&@top_srcdir@&$ac_top_srcdir&;t t
18542s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18543s&@builddir@&$ac_builddir&;t t
18544s&@abs_builddir@&$ac_abs_builddir&;t t
18545s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18546s&@INSTALL@&$ac_INSTALL&;t t
18547s&@MKDIR_P@&$ac_MKDIR_P&;t t
18548$ac_datarootdir_hack
18549"
18550eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18551  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18552
18553test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18554  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18555  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18556      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18557  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18558which seems to be undefined.  Please make sure it is defined" >&5
18559$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18560which seems to be undefined.  Please make sure it is defined" >&2;}
18561
18562  rm -f "$ac_tmp/stdin"
18563  case $ac_file in
18564  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18565  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18566  esac \
18567  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18568 ;;
18569  :H)
18570  #
18571  # CONFIG_HEADER
18572  #
18573  if test x"$ac_file" != x-; then
18574    {
18575      $as_echo "/* $configure_input  */" \
18576      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18577    } >"$ac_tmp/config.h" \
18578      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18579    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18580      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18581$as_echo "$as_me: $ac_file is unchanged" >&6;}
18582    else
18583      rm -f "$ac_file"
18584      mv "$ac_tmp/config.h" "$ac_file" \
18585	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18586    fi
18587  else
18588    $as_echo "/* $configure_input  */" \
18589      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18590      || as_fn_error $? "could not create -" "$LINENO" 5
18591  fi
18592# Compute "$ac_file"'s index in $config_headers.
18593_am_arg="$ac_file"
18594_am_stamp_count=1
18595for _am_header in $config_headers :; do
18596  case $_am_header in
18597    $_am_arg | $_am_arg:* )
18598      break ;;
18599    * )
18600      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18601  esac
18602done
18603echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18604$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18605	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18606	 X"$_am_arg" : 'X\(//\)$' \| \
18607	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18608$as_echo X"$_am_arg" |
18609    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18610	    s//\1/
18611	    q
18612	  }
18613	  /^X\(\/\/\)[^/].*/{
18614	    s//\1/
18615	    q
18616	  }
18617	  /^X\(\/\/\)$/{
18618	    s//\1/
18619	    q
18620	  }
18621	  /^X\(\/\).*/{
18622	    s//\1/
18623	    q
18624	  }
18625	  s/.*/./; q'`/stamp-h$_am_stamp_count
18626 ;;
18627
18628  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18629$as_echo "$as_me: executing $ac_file commands" >&6;}
18630 ;;
18631  esac
18632
18633
18634  case $ac_file$ac_mode in
18635    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18636  # Older Autoconf quotes --file arguments for eval, but not when files
18637  # are listed without --file.  Let's play safe and only enable the eval
18638  # if we detect the quoting.
18639  case $CONFIG_FILES in
18640  *\'*) eval set x "$CONFIG_FILES" ;;
18641  *)   set x $CONFIG_FILES ;;
18642  esac
18643  shift
18644  for mf
18645  do
18646    # Strip MF so we end up with the name of the file.
18647    mf=`echo "$mf" | sed -e 's/:.*$//'`
18648    # Check whether this is an Automake generated Makefile or not.
18649    # We used to match only the files named 'Makefile.in', but
18650    # some people rename them; so instead we look at the file content.
18651    # Grep'ing the first line is not enough: some people post-process
18652    # each Makefile.in and add a new line on top of each file to say so.
18653    # Grep'ing the whole file is not good either: AIX grep has a line
18654    # limit of 2048, but all sed's we know have understand at least 4000.
18655    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18656      dirpart=`$as_dirname -- "$mf" ||
18657$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18658	 X"$mf" : 'X\(//\)[^/]' \| \
18659	 X"$mf" : 'X\(//\)$' \| \
18660	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18661$as_echo X"$mf" |
18662    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18663	    s//\1/
18664	    q
18665	  }
18666	  /^X\(\/\/\)[^/].*/{
18667	    s//\1/
18668	    q
18669	  }
18670	  /^X\(\/\/\)$/{
18671	    s//\1/
18672	    q
18673	  }
18674	  /^X\(\/\).*/{
18675	    s//\1/
18676	    q
18677	  }
18678	  s/.*/./; q'`
18679    else
18680      continue
18681    fi
18682    # Extract the definition of DEPDIR, am__include, and am__quote
18683    # from the Makefile without running 'make'.
18684    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18685    test -z "$DEPDIR" && continue
18686    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18687    test -z "$am__include" && continue
18688    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18689    # Find all dependency output files, they are included files with
18690    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18691    # simplest approach to changing $(DEPDIR) to its actual value in the
18692    # expansion.
18693    for file in `sed -n "
18694      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18695	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18696      # Make sure the directory exists.
18697      test -f "$dirpart/$file" && continue
18698      fdir=`$as_dirname -- "$file" ||
18699$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18700	 X"$file" : 'X\(//\)[^/]' \| \
18701	 X"$file" : 'X\(//\)$' \| \
18702	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18703$as_echo X"$file" |
18704    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18705	    s//\1/
18706	    q
18707	  }
18708	  /^X\(\/\/\)[^/].*/{
18709	    s//\1/
18710	    q
18711	  }
18712	  /^X\(\/\/\)$/{
18713	    s//\1/
18714	    q
18715	  }
18716	  /^X\(\/\).*/{
18717	    s//\1/
18718	    q
18719	  }
18720	  s/.*/./; q'`
18721      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18722      # echo "creating $dirpart/$file"
18723      echo '# dummy' > "$dirpart/$file"
18724    done
18725  done
18726}
18727 ;;
18728    "libtool":C)
18729
18730    # See if we are running on zsh, and set the options that allow our
18731    # commands through without removal of \ escapes.
18732    if test -n "${ZSH_VERSION+set}"; then
18733      setopt NO_GLOB_SUBST
18734    fi
18735
18736    cfgfile=${ofile}T
18737    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18738    $RM "$cfgfile"
18739
18740    cat <<_LT_EOF >> "$cfgfile"
18741#! $SHELL
18742# Generated automatically by $as_me ($PACKAGE) $VERSION
18743# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18744# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18745
18746# Provide generalized library-building support services.
18747# Written by Gordon Matzigkeit, 1996
18748
18749# Copyright (C) 2014 Free Software Foundation, Inc.
18750# This is free software; see the source for copying conditions.  There is NO
18751# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18752
18753# GNU Libtool is free software; you can redistribute it and/or modify
18754# it under the terms of the GNU General Public License as published by
18755# the Free Software Foundation; either version 2 of of the License, or
18756# (at your option) any later version.
18757#
18758# As a special exception to the GNU General Public License, if you
18759# distribute this file as part of a program or library that is built
18760# using GNU Libtool, you may include this file under the  same
18761# distribution terms that you use for the rest of that program.
18762#
18763# GNU Libtool is distributed in the hope that it will be useful, but
18764# WITHOUT ANY WARRANTY; without even the implied warranty of
18765# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18766# GNU General Public License for more details.
18767#
18768# You should have received a copy of the GNU General Public License
18769# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18770
18771
18772# The names of the tagged configurations supported by this script.
18773available_tags=''
18774
18775# Configured defaults for sys_lib_dlsearch_path munging.
18776: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18777
18778# ### BEGIN LIBTOOL CONFIG
18779
18780# Which release of libtool.m4 was used?
18781macro_version=$macro_version
18782macro_revision=$macro_revision
18783
18784# Whether or not to build static libraries.
18785build_old_libs=$enable_static
18786
18787# Assembler program.
18788AS=$lt_AS
18789
18790# DLL creation program.
18791DLLTOOL=$lt_DLLTOOL
18792
18793# Object dumper program.
18794OBJDUMP=$lt_OBJDUMP
18795
18796# Whether or not to build shared libraries.
18797build_libtool_libs=$enable_shared
18798
18799# What type of objects to build.
18800pic_mode=$pic_mode
18801
18802# Whether or not to optimize for fast installation.
18803fast_install=$enable_fast_install
18804
18805# Shared archive member basename,for filename based shared library versioning on AIX.
18806shared_archive_member_spec=$shared_archive_member_spec
18807
18808# Shell to use when invoking shell scripts.
18809SHELL=$lt_SHELL
18810
18811# An echo program that protects backslashes.
18812ECHO=$lt_ECHO
18813
18814# The PATH separator for the build system.
18815PATH_SEPARATOR=$lt_PATH_SEPARATOR
18816
18817# The host system.
18818host_alias=$host_alias
18819host=$host
18820host_os=$host_os
18821
18822# The build system.
18823build_alias=$build_alias
18824build=$build
18825build_os=$build_os
18826
18827# A sed program that does not truncate output.
18828SED=$lt_SED
18829
18830# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18831Xsed="\$SED -e 1s/^X//"
18832
18833# A grep program that handles long lines.
18834GREP=$lt_GREP
18835
18836# An ERE matcher.
18837EGREP=$lt_EGREP
18838
18839# A literal string matcher.
18840FGREP=$lt_FGREP
18841
18842# A BSD- or MS-compatible name lister.
18843NM=$lt_NM
18844
18845# Whether we need soft or hard links.
18846LN_S=$lt_LN_S
18847
18848# What is the maximum length of a command?
18849max_cmd_len=$max_cmd_len
18850
18851# Object file suffix (normally "o").
18852objext=$ac_objext
18853
18854# Executable file suffix (normally "").
18855exeext=$exeext
18856
18857# whether the shell understands "unset".
18858lt_unset=$lt_unset
18859
18860# turn spaces into newlines.
18861SP2NL=$lt_lt_SP2NL
18862
18863# turn newlines into spaces.
18864NL2SP=$lt_lt_NL2SP
18865
18866# convert \$build file names to \$host format.
18867to_host_file_cmd=$lt_cv_to_host_file_cmd
18868
18869# convert \$build files to toolchain format.
18870to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18871
18872# Method to check whether dependent libraries are shared objects.
18873deplibs_check_method=$lt_deplibs_check_method
18874
18875# Command to use when deplibs_check_method = "file_magic".
18876file_magic_cmd=$lt_file_magic_cmd
18877
18878# How to find potential files when deplibs_check_method = "file_magic".
18879file_magic_glob=$lt_file_magic_glob
18880
18881# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18882want_nocaseglob=$lt_want_nocaseglob
18883
18884# Command to associate shared and link libraries.
18885sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18886
18887# The archiver.
18888AR=$lt_AR
18889
18890# Flags to create an archive.
18891AR_FLAGS=$lt_AR_FLAGS
18892
18893# How to feed a file listing to the archiver.
18894archiver_list_spec=$lt_archiver_list_spec
18895
18896# A symbol stripping program.
18897STRIP=$lt_STRIP
18898
18899# Commands used to install an old-style archive.
18900RANLIB=$lt_RANLIB
18901old_postinstall_cmds=$lt_old_postinstall_cmds
18902old_postuninstall_cmds=$lt_old_postuninstall_cmds
18903
18904# Whether to use a lock for old archive extraction.
18905lock_old_archive_extraction=$lock_old_archive_extraction
18906
18907# A C compiler.
18908LTCC=$lt_CC
18909
18910# LTCC compiler flags.
18911LTCFLAGS=$lt_CFLAGS
18912
18913# Take the output of nm and produce a listing of raw symbols and C names.
18914global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18915
18916# Transform the output of nm in a proper C declaration.
18917global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18918
18919# Transform the output of nm into a list of symbols to manually relocate.
18920global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18921
18922# Transform the output of nm in a C name address pair.
18923global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18924
18925# Transform the output of nm in a C name address pair when lib prefix is needed.
18926global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18927
18928# The name lister interface.
18929nm_interface=$lt_lt_cv_nm_interface
18930
18931# Specify filename containing input files for \$NM.
18932nm_file_list_spec=$lt_nm_file_list_spec
18933
18934# The root where to search for dependent libraries,and where our libraries should be installed.
18935lt_sysroot=$lt_sysroot
18936
18937# Command to truncate a binary pipe.
18938lt_truncate_bin=$lt_lt_cv_truncate_bin
18939
18940# The name of the directory that contains temporary libtool files.
18941objdir=$objdir
18942
18943# Used to examine libraries when file_magic_cmd begins with "file".
18944MAGIC_CMD=$MAGIC_CMD
18945
18946# Must we lock files when doing compilation?
18947need_locks=$lt_need_locks
18948
18949# Manifest tool.
18950MANIFEST_TOOL=$lt_MANIFEST_TOOL
18951
18952# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18953DSYMUTIL=$lt_DSYMUTIL
18954
18955# Tool to change global to local symbols on Mac OS X.
18956NMEDIT=$lt_NMEDIT
18957
18958# Tool to manipulate fat objects and archives on Mac OS X.
18959LIPO=$lt_LIPO
18960
18961# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18962OTOOL=$lt_OTOOL
18963
18964# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18965OTOOL64=$lt_OTOOL64
18966
18967# Old archive suffix (normally "a").
18968libext=$libext
18969
18970# Shared library suffix (normally ".so").
18971shrext_cmds=$lt_shrext_cmds
18972
18973# The commands to extract the exported symbol list from a shared archive.
18974extract_expsyms_cmds=$lt_extract_expsyms_cmds
18975
18976# Variables whose values should be saved in libtool wrapper scripts and
18977# restored at link time.
18978variables_saved_for_relink=$lt_variables_saved_for_relink
18979
18980# Do we need the "lib" prefix for modules?
18981need_lib_prefix=$need_lib_prefix
18982
18983# Do we need a version for libraries?
18984need_version=$need_version
18985
18986# Library versioning type.
18987version_type=$version_type
18988
18989# Shared library runtime path variable.
18990runpath_var=$runpath_var
18991
18992# Shared library path variable.
18993shlibpath_var=$shlibpath_var
18994
18995# Is shlibpath searched before the hard-coded library search path?
18996shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18997
18998# Format of library name prefix.
18999libname_spec=$lt_libname_spec
19000
19001# List of archive names.  First name is the real one, the rest are links.
19002# The last name is the one that the linker finds with -lNAME
19003library_names_spec=$lt_library_names_spec
19004
19005# The coded name of the library, if different from the real name.
19006soname_spec=$lt_soname_spec
19007
19008# Permission mode override for installation of shared libraries.
19009install_override_mode=$lt_install_override_mode
19010
19011# Command to use after installation of a shared archive.
19012postinstall_cmds=$lt_postinstall_cmds
19013
19014# Command to use after uninstallation of a shared archive.
19015postuninstall_cmds=$lt_postuninstall_cmds
19016
19017# Commands used to finish a libtool library installation in a directory.
19018finish_cmds=$lt_finish_cmds
19019
19020# As "finish_cmds", except a single script fragment to be evaled but
19021# not shown.
19022finish_eval=$lt_finish_eval
19023
19024# Whether we should hardcode library paths into libraries.
19025hardcode_into_libs=$hardcode_into_libs
19026
19027# Compile-time system search path for libraries.
19028sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19029
19030# Detected run-time system search path for libraries.
19031sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19032
19033# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19034configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19035
19036# Whether dlopen is supported.
19037dlopen_support=$enable_dlopen
19038
19039# Whether dlopen of programs is supported.
19040dlopen_self=$enable_dlopen_self
19041
19042# Whether dlopen of statically linked programs is supported.
19043dlopen_self_static=$enable_dlopen_self_static
19044
19045# Commands to strip libraries.
19046old_striplib=$lt_old_striplib
19047striplib=$lt_striplib
19048
19049
19050# The linker used to build libraries.
19051LD=$lt_LD
19052
19053# How to create reloadable object files.
19054reload_flag=$lt_reload_flag
19055reload_cmds=$lt_reload_cmds
19056
19057# Commands used to build an old-style archive.
19058old_archive_cmds=$lt_old_archive_cmds
19059
19060# A language specific compiler.
19061CC=$lt_compiler
19062
19063# Is the compiler the GNU compiler?
19064with_gcc=$GCC
19065
19066# Compiler flag to turn off builtin functions.
19067no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19068
19069# Additional compiler flags for building library objects.
19070pic_flag=$lt_lt_prog_compiler_pic
19071
19072# How to pass a linker flag through the compiler.
19073wl=$lt_lt_prog_compiler_wl
19074
19075# Compiler flag to prevent dynamic linking.
19076link_static_flag=$lt_lt_prog_compiler_static
19077
19078# Does compiler simultaneously support -c and -o options?
19079compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19080
19081# Whether or not to add -lc for building shared libraries.
19082build_libtool_need_lc=$archive_cmds_need_lc
19083
19084# Whether or not to disallow shared libs when runtime libs are static.
19085allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19086
19087# Compiler flag to allow reflexive dlopens.
19088export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19089
19090# Compiler flag to generate shared objects directly from archives.
19091whole_archive_flag_spec=$lt_whole_archive_flag_spec
19092
19093# Whether the compiler copes with passing no objects directly.
19094compiler_needs_object=$lt_compiler_needs_object
19095
19096# Create an old-style archive from a shared archive.
19097old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19098
19099# Create a temporary old-style archive to link instead of a shared archive.
19100old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19101
19102# Commands used to build a shared archive.
19103archive_cmds=$lt_archive_cmds
19104archive_expsym_cmds=$lt_archive_expsym_cmds
19105
19106# Commands used to build a loadable module if different from building
19107# a shared archive.
19108module_cmds=$lt_module_cmds
19109module_expsym_cmds=$lt_module_expsym_cmds
19110
19111# Whether we are building with GNU ld or not.
19112with_gnu_ld=$lt_with_gnu_ld
19113
19114# Flag that allows shared libraries with undefined symbols to be built.
19115allow_undefined_flag=$lt_allow_undefined_flag
19116
19117# Flag that enforces no undefined symbols.
19118no_undefined_flag=$lt_no_undefined_flag
19119
19120# Flag to hardcode \$libdir into a binary during linking.
19121# This must work even if \$libdir does not exist
19122hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19123
19124# Whether we need a single "-rpath" flag with a separated argument.
19125hardcode_libdir_separator=$lt_hardcode_libdir_separator
19126
19127# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19128# DIR into the resulting binary.
19129hardcode_direct=$hardcode_direct
19130
19131# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19132# DIR into the resulting binary and the resulting library dependency is
19133# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19134# library is relocated.
19135hardcode_direct_absolute=$hardcode_direct_absolute
19136
19137# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19138# into the resulting binary.
19139hardcode_minus_L=$hardcode_minus_L
19140
19141# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19142# into the resulting binary.
19143hardcode_shlibpath_var=$hardcode_shlibpath_var
19144
19145# Set to "yes" if building a shared library automatically hardcodes DIR
19146# into the library and all subsequent libraries and executables linked
19147# against it.
19148hardcode_automatic=$hardcode_automatic
19149
19150# Set to yes if linker adds runtime paths of dependent libraries
19151# to runtime path list.
19152inherit_rpath=$inherit_rpath
19153
19154# Whether libtool must link a program against all its dependency libraries.
19155link_all_deplibs=$link_all_deplibs
19156
19157# Set to "yes" if exported symbols are required.
19158always_export_symbols=$always_export_symbols
19159
19160# The commands to list exported symbols.
19161export_symbols_cmds=$lt_export_symbols_cmds
19162
19163# Symbols that should not be listed in the preloaded symbols.
19164exclude_expsyms=$lt_exclude_expsyms
19165
19166# Symbols that must always be exported.
19167include_expsyms=$lt_include_expsyms
19168
19169# Commands necessary for linking programs (against libraries) with templates.
19170prelink_cmds=$lt_prelink_cmds
19171
19172# Commands necessary for finishing linking programs.
19173postlink_cmds=$lt_postlink_cmds
19174
19175# Specify filename containing input files.
19176file_list_spec=$lt_file_list_spec
19177
19178# How to hardcode a shared library path into an executable.
19179hardcode_action=$hardcode_action
19180
19181# ### END LIBTOOL CONFIG
19182
19183_LT_EOF
19184
19185    cat <<'_LT_EOF' >> "$cfgfile"
19186
19187# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19188
19189# func_munge_path_list VARIABLE PATH
19190# -----------------------------------
19191# VARIABLE is name of variable containing _space_ separated list of
19192# directories to be munged by the contents of PATH, which is string
19193# having a format:
19194# "DIR[:DIR]:"
19195#       string "DIR[ DIR]" will be prepended to VARIABLE
19196# ":DIR[:DIR]"
19197#       string "DIR[ DIR]" will be appended to VARIABLE
19198# "DIRP[:DIRP]::[DIRA:]DIRA"
19199#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19200#       "DIRA[ DIRA]" will be appended to VARIABLE
19201# "DIR[:DIR]"
19202#       VARIABLE will be replaced by "DIR[ DIR]"
19203func_munge_path_list ()
19204{
19205    case x$2 in
19206    x)
19207        ;;
19208    *:)
19209        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19210        ;;
19211    x:*)
19212        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19213        ;;
19214    *::*)
19215        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19216        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19217        ;;
19218    *)
19219        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19220        ;;
19221    esac
19222}
19223
19224
19225# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19226func_cc_basename ()
19227{
19228    for cc_temp in $*""; do
19229      case $cc_temp in
19230        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19231        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19232        \-*) ;;
19233        *) break;;
19234      esac
19235    done
19236    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19237}
19238
19239
19240# ### END FUNCTIONS SHARED WITH CONFIGURE
19241
19242_LT_EOF
19243
19244  case $host_os in
19245  aix3*)
19246    cat <<\_LT_EOF >> "$cfgfile"
19247# AIX sometimes has problems with the GCC collect2 program.  For some
19248# reason, if we set the COLLECT_NAMES environment variable, the problems
19249# vanish in a puff of smoke.
19250if test set != "${COLLECT_NAMES+set}"; then
19251  COLLECT_NAMES=
19252  export COLLECT_NAMES
19253fi
19254_LT_EOF
19255    ;;
19256  esac
19257
19258
19259ltmain=$ac_aux_dir/ltmain.sh
19260
19261
19262  # We use sed instead of cat because bash on DJGPP gets confused if
19263  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19264  # text mode, it properly converts lines to CR/LF.  This bash problem
19265  # is reportedly fixed, but why not run on old versions too?
19266  sed '$q' "$ltmain" >> "$cfgfile" \
19267     || (rm -f "$cfgfile"; exit 1)
19268
19269   mv -f "$cfgfile" "$ofile" ||
19270    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19271  chmod +x "$ofile"
19272
19273 ;;
19274    "$ac_stdint_h":C)
19275{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
19276$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
19277ac_stdint=$tmp/_stdint.h
19278
19279echo "#ifndef" $_ac_stdint_h >$ac_stdint
19280echo "#define" $_ac_stdint_h "1" >>$ac_stdint
19281echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
19282echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
19283echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
19284if test "_$ac_cv_header_stdint_t" != "_" ; then
19285echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
19286echo "#include <stdint.h>" >>$ac_stdint
19287echo "#endif" >>$ac_stdint
19288echo "#endif" >>$ac_stdint
19289else
19290
19291cat >>$ac_stdint <<STDINT_EOF
19292
19293/* ................... shortcircuit part ........................... */
19294
19295#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
19296#include <stdint.h>
19297#else
19298#include <stddef.h>
19299
19300/* .................... configured part ............................ */
19301
19302STDINT_EOF
19303
19304echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
19305if test "_$ac_cv_header_stdint_x" != "_" ; then
19306  ac_header="$ac_cv_header_stdint_x"
19307  echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
19308else
19309  echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
19310fi
19311
19312echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
19313if  test "_$ac_cv_header_stdint_o" != "_" ; then
19314  ac_header="$ac_cv_header_stdint_o"
19315  echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
19316else
19317  echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
19318fi
19319
19320echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
19321if  test "_$ac_cv_header_stdint_u" != "_" ; then
19322  ac_header="$ac_cv_header_stdint_u"
19323  echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
19324else
19325  echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
19326fi
19327
19328echo "" >>$ac_stdint
19329
19330if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
19331  echo "#include <$ac_header>" >>$ac_stdint
19332  echo "" >>$ac_stdint
19333fi fi
19334
19335echo "/* which 64bit typedef has been found */" >>$ac_stdint
19336if test "$ac_cv_type_uint64_t" = "yes" ; then
19337echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
19338else
19339echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
19340fi
19341if test "$ac_cv_type_u_int64_t" = "yes" ; then
19342echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
19343else
19344echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
19345fi
19346echo "" >>$ac_stdint
19347
19348echo "/* which type model has been detected */" >>$ac_stdint
19349if test "_$ac_cv_char_data_model" != "_" ; then
19350echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
19351echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
19352else
19353echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
19354echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
19355fi
19356echo "" >>$ac_stdint
19357
19358echo "/* whether int_least types were detected */" >>$ac_stdint
19359if test "$ac_cv_type_int_least32_t" = "yes"; then
19360echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
19361else
19362echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
19363fi
19364echo "/* whether int_fast types were detected */" >>$ac_stdint
19365if test "$ac_cv_type_int_fast32_t" = "yes"; then
19366echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
19367else
19368echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
19369fi
19370echo "/* whether intmax_t type was detected */" >>$ac_stdint
19371if test "$ac_cv_type_intmax_t" = "yes"; then
19372echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
19373else
19374echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
19375fi
19376echo "" >>$ac_stdint
19377
19378  cat >>$ac_stdint <<STDINT_EOF
19379/* .................... detections part ............................ */
19380
19381/* whether we need to define bitspecific types from compiler base types */
19382#ifndef _STDINT_HEADER_INTPTR
19383#ifndef _STDINT_HEADER_UINT32
19384#ifndef _STDINT_HEADER_U_INT32
19385#define _STDINT_NEED_INT_MODEL_T
19386#else
19387#define _STDINT_HAVE_U_INT_TYPES
19388#endif
19389#endif
19390#endif
19391
19392#ifdef _STDINT_HAVE_U_INT_TYPES
19393#undef _STDINT_NEED_INT_MODEL_T
19394#endif
19395
19396#ifdef  _STDINT_CHAR_MODEL
19397#if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
19398#ifndef _STDINT_BYTE_MODEL
19399#define _STDINT_BYTE_MODEL 12
19400#endif
19401#endif
19402#endif
19403
19404#ifndef _STDINT_HAVE_INT_LEAST32_T
19405#define _STDINT_NEED_INT_LEAST_T
19406#endif
19407
19408#ifndef _STDINT_HAVE_INT_FAST32_T
19409#define _STDINT_NEED_INT_FAST_T
19410#endif
19411
19412#ifndef _STDINT_HEADER_INTPTR
19413#define _STDINT_NEED_INTPTR_T
19414#ifndef _STDINT_HAVE_INTMAX_T
19415#define _STDINT_NEED_INTMAX_T
19416#endif
19417#endif
19418
19419
19420/* .................... definition part ............................ */
19421
19422/* some system headers have good uint64_t */
19423#ifndef _HAVE_UINT64_T
19424#if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
19425#define _HAVE_UINT64_T
19426#elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
19427#define _HAVE_UINT64_T
19428typedef u_int64_t uint64_t;
19429#endif
19430#endif
19431
19432#ifndef _HAVE_UINT64_T
19433/* .. here are some common heuristics using compiler runtime specifics */
19434#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
19435#define _HAVE_UINT64_T
19436#define _HAVE_LONGLONG_UINT64_T
19437typedef long long int64_t;
19438typedef unsigned long long uint64_t;
19439
19440#elif !defined __STRICT_ANSI__
19441#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19442#define _HAVE_UINT64_T
19443typedef __int64 int64_t;
19444typedef unsigned __int64 uint64_t;
19445
19446#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
19447/* note: all ELF-systems seem to have loff-support which needs 64-bit */
19448#if !defined _NO_LONGLONG
19449#define _HAVE_UINT64_T
19450#define _HAVE_LONGLONG_UINT64_T
19451typedef long long int64_t;
19452typedef unsigned long long uint64_t;
19453#endif
19454
19455#elif defined __alpha || (defined __mips && defined _ABIN32)
19456#if !defined _NO_LONGLONG
19457typedef long int64_t;
19458typedef unsigned long uint64_t;
19459#endif
19460  /* compiler/cpu type to define int64_t */
19461#endif
19462#endif
19463#endif
19464
19465#if defined _STDINT_HAVE_U_INT_TYPES
19466/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
19467typedef u_int8_t uint8_t;
19468typedef u_int16_t uint16_t;
19469typedef u_int32_t uint32_t;
19470
19471/* glibc compatibility */
19472#ifndef __int8_t_defined
19473#define __int8_t_defined
19474#endif
19475#endif
19476
19477#ifdef _STDINT_NEED_INT_MODEL_T
19478/* we must guess all the basic types. Apart from byte-adressable system, */
19479/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
19480/* (btw, those nibble-addressable systems are way off, or so we assume) */
19481
19482
19483#if defined _STDINT_BYTE_MODEL
19484#if _STDINT_LONG_MODEL+0 == 242
19485/* 2:4:2 =  IP16 = a normal 16-bit system                */
19486typedef unsigned char   uint8_t;
19487typedef unsigned short  uint16_t;
19488typedef unsigned long   uint32_t;
19489#ifndef __int8_t_defined
19490#define __int8_t_defined
19491typedef          char    int8_t;
19492typedef          short   int16_t;
19493typedef          long    int32_t;
19494#endif
19495#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
19496/* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
19497/* 4:4:4 = ILP32 = a normal 32-bit system                */
19498typedef unsigned char   uint8_t;
19499typedef unsigned short  uint16_t;
19500typedef unsigned int    uint32_t;
19501#ifndef __int8_t_defined
19502#define __int8_t_defined
19503typedef          char    int8_t;
19504typedef          short   int16_t;
19505typedef          int     int32_t;
19506#endif
19507#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
19508/* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
19509/* 4:8:8 =  LP64 = a normal 64-bit system                 */
19510typedef unsigned char   uint8_t;
19511typedef unsigned short  uint16_t;
19512typedef unsigned int    uint32_t;
19513#ifndef __int8_t_defined
19514#define __int8_t_defined
19515typedef          char    int8_t;
19516typedef          short   int16_t;
19517typedef          int     int32_t;
19518#endif
19519/* this system has a "long" of 64bit */
19520#ifndef _HAVE_UINT64_T
19521#define _HAVE_UINT64_T
19522typedef unsigned long   uint64_t;
19523typedef          long    int64_t;
19524#endif
19525#elif _STDINT_LONG_MODEL+0 == 448
19526/*      LLP64   a 64-bit system derived from a 32-bit system */
19527typedef unsigned char   uint8_t;
19528typedef unsigned short  uint16_t;
19529typedef unsigned int    uint32_t;
19530#ifndef __int8_t_defined
19531#define __int8_t_defined
19532typedef          char    int8_t;
19533typedef          short   int16_t;
19534typedef          int     int32_t;
19535#endif
19536/* assuming the system has a "long long" */
19537#ifndef _HAVE_UINT64_T
19538#define _HAVE_UINT64_T
19539#define _HAVE_LONGLONG_UINT64_T
19540typedef unsigned long long uint64_t;
19541typedef          long long  int64_t;
19542#endif
19543#else
19544#define _STDINT_NO_INT32_T
19545#endif
19546#else
19547#define _STDINT_NO_INT8_T
19548#define _STDINT_NO_INT32_T
19549#endif
19550#endif
19551
19552/*
19553 * quote from SunOS-5.8 sys/inttypes.h:
19554 * Use at your own risk.  As of February 1996, the committee is squarely
19555 * behind the fixed sized types; the "least" and "fast" types are still being
19556 * discussed.  The probability that the "fast" types may be removed before
19557 * the standard is finalized is high enough that they are not currently
19558 * implemented.
19559 */
19560
19561#if defined _STDINT_NEED_INT_LEAST_T
19562typedef  int8_t    int_least8_t;
19563typedef  int16_t   int_least16_t;
19564typedef  int32_t   int_least32_t;
19565#ifdef _HAVE_UINT64_T
19566typedef  int64_t   int_least64_t;
19567#endif
19568
19569typedef uint8_t   uint_least8_t;
19570typedef uint16_t  uint_least16_t;
19571typedef uint32_t  uint_least32_t;
19572#ifdef _HAVE_UINT64_T
19573typedef uint64_t  uint_least64_t;
19574#endif
19575  /* least types */
19576#endif
19577
19578#if defined _STDINT_NEED_INT_FAST_T
19579typedef  int8_t    int_fast8_t;
19580typedef  int       int_fast16_t;
19581typedef  int32_t   int_fast32_t;
19582#ifdef _HAVE_UINT64_T
19583typedef  int64_t   int_fast64_t;
19584#endif
19585
19586typedef uint8_t   uint_fast8_t;
19587typedef unsigned  uint_fast16_t;
19588typedef uint32_t  uint_fast32_t;
19589#ifdef _HAVE_UINT64_T
19590typedef uint64_t  uint_fast64_t;
19591#endif
19592  /* fast types */
19593#endif
19594
19595#ifdef _STDINT_NEED_INTMAX_T
19596#ifdef _HAVE_UINT64_T
19597typedef  int64_t       intmax_t;
19598typedef uint64_t      uintmax_t;
19599#else
19600typedef          long  intmax_t;
19601typedef unsigned long uintmax_t;
19602#endif
19603#endif
19604
19605#ifdef _STDINT_NEED_INTPTR_T
19606#ifndef __intptr_t_defined
19607#define __intptr_t_defined
19608/* we encourage using "long" to store pointer values, never use "int" ! */
19609#if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
19610typedef  unsigned int   uintptr_t;
19611typedef           int    intptr_t;
19612#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
19613typedef  unsigned long  uintptr_t;
19614typedef           long   intptr_t;
19615#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
19616typedef        uint64_t uintptr_t;
19617typedef         int64_t  intptr_t;
19618#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
19619typedef  unsigned long  uintptr_t;
19620typedef           long   intptr_t;
19621#endif
19622#endif
19623#endif
19624
19625/* The ISO C99 standard specifies that in C++ implementations these
19626   should only be defined if explicitly requested.  */
19627#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
19628#ifndef UINT32_C
19629
19630/* Signed.  */
19631# define INT8_C(c)      c
19632# define INT16_C(c)     c
19633# define INT32_C(c)     c
19634# ifdef _HAVE_LONGLONG_UINT64_T
19635#  define INT64_C(c)    c ## L
19636# else
19637#  define INT64_C(c)    c ## LL
19638# endif
19639
19640/* Unsigned.  */
19641# define UINT8_C(c)     c ## U
19642# define UINT16_C(c)    c ## U
19643# define UINT32_C(c)    c ## U
19644# ifdef _HAVE_LONGLONG_UINT64_T
19645#  define UINT64_C(c)   c ## UL
19646# else
19647#  define UINT64_C(c)   c ## ULL
19648# endif
19649
19650/* Maximal type.  */
19651# ifdef _HAVE_LONGLONG_UINT64_T
19652#  define INTMAX_C(c)   c ## L
19653#  define UINTMAX_C(c)  c ## UL
19654# else
19655#  define INTMAX_C(c)   c ## LL
19656#  define UINTMAX_C(c)  c ## ULL
19657# endif
19658
19659  /* literalnumbers */
19660#endif
19661#endif
19662
19663/* These limits are merily those of a two complement byte-oriented system */
19664
19665/* Minimum of signed integral types.  */
19666# define INT8_MIN               (-128)
19667# define INT16_MIN              (-32767-1)
19668# define INT32_MIN              (-2147483647-1)
19669# define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
19670/* Maximum of signed integral types.  */
19671# define INT8_MAX               (127)
19672# define INT16_MAX              (32767)
19673# define INT32_MAX              (2147483647)
19674# define INT64_MAX              (__INT64_C(9223372036854775807))
19675
19676/* Maximum of unsigned integral types.  */
19677# define UINT8_MAX              (255)
19678# define UINT16_MAX             (65535)
19679# define UINT32_MAX             (4294967295U)
19680# define UINT64_MAX             (__UINT64_C(18446744073709551615))
19681
19682/* Minimum of signed integral types having a minimum size.  */
19683# define INT_LEAST8_MIN         INT8_MIN
19684# define INT_LEAST16_MIN        INT16_MIN
19685# define INT_LEAST32_MIN        INT32_MIN
19686# define INT_LEAST64_MIN        INT64_MIN
19687/* Maximum of signed integral types having a minimum size.  */
19688# define INT_LEAST8_MAX         INT8_MAX
19689# define INT_LEAST16_MAX        INT16_MAX
19690# define INT_LEAST32_MAX        INT32_MAX
19691# define INT_LEAST64_MAX        INT64_MAX
19692
19693/* Maximum of unsigned integral types having a minimum size.  */
19694# define UINT_LEAST8_MAX        UINT8_MAX
19695# define UINT_LEAST16_MAX       UINT16_MAX
19696# define UINT_LEAST32_MAX       UINT32_MAX
19697# define UINT_LEAST64_MAX       UINT64_MAX
19698
19699  /* shortcircuit*/
19700#endif
19701  /* once */
19702#endif
19703#endif
19704STDINT_EOF
19705fi
19706    if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
19707      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
19708$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
19709    else
19710      ac_dir=`$as_dirname -- "$ac_stdint_h" ||
19711$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19712	 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
19713	 X"$ac_stdint_h" : 'X\(//\)$' \| \
19714	 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
19715$as_echo X"$ac_stdint_h" |
19716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19717	    s//\1/
19718	    q
19719	  }
19720	  /^X\(\/\/\)[^/].*/{
19721	    s//\1/
19722	    q
19723	  }
19724	  /^X\(\/\/\)$/{
19725	    s//\1/
19726	    q
19727	  }
19728	  /^X\(\/\).*/{
19729	    s//\1/
19730	    q
19731	  }
19732	  s/.*/./; q'`
19733      as_dir="$ac_dir"; as_fn_mkdir_p
19734      rm -f $ac_stdint_h
19735      mv $ac_stdint $ac_stdint_h
19736    fi
19737 ;;
19738
19739  esac
19740done # for ac_tag
19741
19742
19743as_fn_exit 0
19744_ACEOF
19745ac_clean_files=$ac_clean_files_save
19746
19747test $ac_write_fail = 0 ||
19748  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19749
19750
19751# configure is writing to config.log, and then calls config.status.
19752# config.status does its own redirection, appending to config.log.
19753# Unfortunately, on DOS this fails, as config.log is still kept open
19754# by configure, so config.status won't be able to write to it; its
19755# output is simply discarded.  So we exec the FD to /dev/null,
19756# effectively closing config.log, so it can be properly (re)opened and
19757# appended to by config.status.  When coming back to configure, we
19758# need to make the FD available again.
19759if test "$no_create" != yes; then
19760  ac_cs_success=:
19761  ac_config_status_args=
19762  test "$silent" = yes &&
19763    ac_config_status_args="$ac_config_status_args --quiet"
19764  exec 5>/dev/null
19765  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19766  exec 5>>config.log
19767  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19768  # would make configure fail if this is the last instruction.
19769  $ac_cs_success || as_fn_exit 1
19770fi
19771if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19772  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19773$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19774fi
19775
19776