1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for FreeType 2.4.12.
4#
5# Report bugs to <freetype@nongnu.org>.
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: freetype@nongnu.org about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='FreeType'
592PACKAGE_TARNAME='freetype'
593PACKAGE_VERSION='2.4.12'
594PACKAGE_STRING='FreeType 2.4.12'
595PACKAGE_BUGREPORT='freetype@nongnu.org'
596PACKAGE_URL=''
597
598ac_unique_file="ftconfig.in"
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='LTLIBOBJS
637LIBOBJS
638build_libtool_libs
639wl
640hardcode_libdir_flag_spec
641OTOOL64
642OTOOL
643LIPO
644NMEDIT
645DSYMUTIL
646MANIFEST_TOOL
647AWK
648RANLIB
649STRIP
650ac_ct_AR
651AR
652LN_S
653NM
654ac_ct_DUMPBIN
655DUMPBIN
656LD
657FGREP
658SED
659LIBTOOL
660OBJDUMP
661DLLTOOL
662AS
663SYSTEM_ZLIB
664FT2_EXTRA_LIBS
665LIBBZ2
666LIBZ
667ftmac_c
668XX_ANSIFLAGS
669XX_CFLAGS
670FTSYS_SRC
671EGREP
672GREP
673INSTALL_DATA
674INSTALL_SCRIPT
675INSTALL_PROGRAM
676RMDIR
677EXEEXT_BUILD
678CC_BUILD
679CPP
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
687host_os
688host_vendor
689host_cpu
690host
691build_os
692build_vendor
693build_cpu
694build
695ft_version
696version_info
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files=''
736ac_user_opts='
737enable_option_checking
738enable_biarch_config
739enable_mmap
740with_zlib
741with_bzip2
742with_old_mac_fonts
743with_fsspec
744with_fsref
745with_quickdraw_toolbox
746with_quickdraw_carbon
747with_ats
748enable_shared
749enable_static
750with_pic
751enable_fast_install
752with_gnu_ld
753with_sysroot
754enable_libtool_lock
755'
756      ac_precious_vars='build_alias
757host_alias
758target_alias
759CC
760CFLAGS
761LDFLAGS
762LIBS
763CPPFLAGS
764CPP'
765
766
767# Initialize some variables set by options.
768ac_init_help=
769ac_init_version=false
770ac_unrecognized_opts=
771ac_unrecognized_sep=
772# The variables have the same names as the options, with
773# dashes changed to underlines.
774cache_file=/dev/null
775exec_prefix=NONE
776no_create=
777no_recursion=
778prefix=NONE
779program_prefix=NONE
780program_suffix=NONE
781program_transform_name=s,x,x,
782silent=
783site=
784srcdir=
785verbose=
786x_includes=NONE
787x_libraries=NONE
788
789# Installation directory options.
790# These are left unexpanded so users can "make install exec_prefix=/foo"
791# and all the variables that are supposed to be based on exec_prefix
792# by default will actually change.
793# Use braces instead of parens because sh, perl, etc. also accept them.
794# (The list follows the same order as the GNU Coding Standards.)
795bindir='${exec_prefix}/bin'
796sbindir='${exec_prefix}/sbin'
797libexecdir='${exec_prefix}/libexec'
798datarootdir='${prefix}/share'
799datadir='${datarootdir}'
800sysconfdir='${prefix}/etc'
801sharedstatedir='${prefix}/com'
802localstatedir='${prefix}/var'
803includedir='${prefix}/include'
804oldincludedir='/usr/include'
805docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806infodir='${datarootdir}/info'
807htmldir='${docdir}'
808dvidir='${docdir}'
809pdfdir='${docdir}'
810psdir='${docdir}'
811libdir='${exec_prefix}/lib'
812localedir='${datarootdir}/locale'
813mandir='${datarootdir}/man'
814
815ac_prev=
816ac_dashdash=
817for ac_option
818do
819  # If the previous option needs an argument, assign it.
820  if test -n "$ac_prev"; then
821    eval $ac_prev=\$ac_option
822    ac_prev=
823    continue
824  fi
825
826  case $ac_option in
827  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828  *=)   ac_optarg= ;;
829  *)    ac_optarg=yes ;;
830  esac
831
832  # Accept the important Cygnus configure options, so we can diagnose typos.
833
834  case $ac_dashdash$ac_option in
835  --)
836    ac_dashdash=yes ;;
837
838  -bindir | --bindir | --bindi | --bind | --bin | --bi)
839    ac_prev=bindir ;;
840  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841    bindir=$ac_optarg ;;
842
843  -build | --build | --buil | --bui | --bu)
844    ac_prev=build_alias ;;
845  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846    build_alias=$ac_optarg ;;
847
848  -cache-file | --cache-file | --cache-fil | --cache-fi \
849  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850    ac_prev=cache_file ;;
851  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853    cache_file=$ac_optarg ;;
854
855  --config-cache | -C)
856    cache_file=config.cache ;;
857
858  -datadir | --datadir | --datadi | --datad)
859    ac_prev=datadir ;;
860  -datadir=* | --datadir=* | --datadi=* | --datad=*)
861    datadir=$ac_optarg ;;
862
863  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864  | --dataroo | --dataro | --datar)
865    ac_prev=datarootdir ;;
866  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868    datarootdir=$ac_optarg ;;
869
870  -disable-* | --disable-*)
871    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872    # Reject names that are not valid shell variable names.
873    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874      as_fn_error $? "invalid feature name: $ac_useropt"
875    ac_useropt_orig=$ac_useropt
876    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877    case $ac_user_opts in
878      *"
879"enable_$ac_useropt"
880"*) ;;
881      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882	 ac_unrecognized_sep=', ';;
883    esac
884    eval enable_$ac_useropt=no ;;
885
886  -docdir | --docdir | --docdi | --doc | --do)
887    ac_prev=docdir ;;
888  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889    docdir=$ac_optarg ;;
890
891  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892    ac_prev=dvidir ;;
893  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894    dvidir=$ac_optarg ;;
895
896  -enable-* | --enable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error $? "invalid feature name: $ac_useropt"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=\$ac_optarg ;;
911
912  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914  | --exec | --exe | --ex)
915    ac_prev=exec_prefix ;;
916  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918  | --exec=* | --exe=* | --ex=*)
919    exec_prefix=$ac_optarg ;;
920
921  -gas | --gas | --ga | --g)
922    # Obsolete; use --with-gas.
923    with_gas=yes ;;
924
925  -help | --help | --hel | --he | -h)
926    ac_init_help=long ;;
927  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928    ac_init_help=recursive ;;
929  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930    ac_init_help=short ;;
931
932  -host | --host | --hos | --ho)
933    ac_prev=host_alias ;;
934  -host=* | --host=* | --hos=* | --ho=*)
935    host_alias=$ac_optarg ;;
936
937  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938    ac_prev=htmldir ;;
939  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940  | --ht=*)
941    htmldir=$ac_optarg ;;
942
943  -includedir | --includedir | --includedi | --included | --include \
944  | --includ | --inclu | --incl | --inc)
945    ac_prev=includedir ;;
946  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947  | --includ=* | --inclu=* | --incl=* | --inc=*)
948    includedir=$ac_optarg ;;
949
950  -infodir | --infodir | --infodi | --infod | --info | --inf)
951    ac_prev=infodir ;;
952  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953    infodir=$ac_optarg ;;
954
955  -libdir | --libdir | --libdi | --libd)
956    ac_prev=libdir ;;
957  -libdir=* | --libdir=* | --libdi=* | --libd=*)
958    libdir=$ac_optarg ;;
959
960  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961  | --libexe | --libex | --libe)
962    ac_prev=libexecdir ;;
963  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964  | --libexe=* | --libex=* | --libe=*)
965    libexecdir=$ac_optarg ;;
966
967  -localedir | --localedir | --localedi | --localed | --locale)
968    ac_prev=localedir ;;
969  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970    localedir=$ac_optarg ;;
971
972  -localstatedir | --localstatedir | --localstatedi | --localstated \
973  | --localstate | --localstat | --localsta | --localst | --locals)
974    ac_prev=localstatedir ;;
975  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977    localstatedir=$ac_optarg ;;
978
979  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980    ac_prev=mandir ;;
981  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982    mandir=$ac_optarg ;;
983
984  -nfp | --nfp | --nf)
985    # Obsolete; use --without-fp.
986    with_fp=no ;;
987
988  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989  | --no-cr | --no-c | -n)
990    no_create=yes ;;
991
992  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994    no_recursion=yes ;;
995
996  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998  | --oldin | --oldi | --old | --ol | --o)
999    ac_prev=oldincludedir ;;
1000  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003    oldincludedir=$ac_optarg ;;
1004
1005  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006    ac_prev=prefix ;;
1007  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008    prefix=$ac_optarg ;;
1009
1010  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011  | --program-pre | --program-pr | --program-p)
1012    ac_prev=program_prefix ;;
1013  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015    program_prefix=$ac_optarg ;;
1016
1017  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018  | --program-suf | --program-su | --program-s)
1019    ac_prev=program_suffix ;;
1020  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022    program_suffix=$ac_optarg ;;
1023
1024  -program-transform-name | --program-transform-name \
1025  | --program-transform-nam | --program-transform-na \
1026  | --program-transform-n | --program-transform- \
1027  | --program-transform | --program-transfor \
1028  | --program-transfo | --program-transf \
1029  | --program-trans | --program-tran \
1030  | --progr-tra | --program-tr | --program-t)
1031    ac_prev=program_transform_name ;;
1032  -program-transform-name=* | --program-transform-name=* \
1033  | --program-transform-nam=* | --program-transform-na=* \
1034  | --program-transform-n=* | --program-transform-=* \
1035  | --program-transform=* | --program-transfor=* \
1036  | --program-transfo=* | --program-transf=* \
1037  | --program-trans=* | --program-tran=* \
1038  | --progr-tra=* | --program-tr=* | --program-t=*)
1039    program_transform_name=$ac_optarg ;;
1040
1041  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042    ac_prev=pdfdir ;;
1043  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044    pdfdir=$ac_optarg ;;
1045
1046  -psdir | --psdir | --psdi | --psd | --ps)
1047    ac_prev=psdir ;;
1048  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049    psdir=$ac_optarg ;;
1050
1051  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052  | -silent | --silent | --silen | --sile | --sil)
1053    silent=yes ;;
1054
1055  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056    ac_prev=sbindir ;;
1057  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058  | --sbi=* | --sb=*)
1059    sbindir=$ac_optarg ;;
1060
1061  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063  | --sharedst | --shareds | --shared | --share | --shar \
1064  | --sha | --sh)
1065    ac_prev=sharedstatedir ;;
1066  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069  | --sha=* | --sh=*)
1070    sharedstatedir=$ac_optarg ;;
1071
1072  -site | --site | --sit)
1073    ac_prev=site ;;
1074  -site=* | --site=* | --sit=*)
1075    site=$ac_optarg ;;
1076
1077  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078    ac_prev=srcdir ;;
1079  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080    srcdir=$ac_optarg ;;
1081
1082  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083  | --syscon | --sysco | --sysc | --sys | --sy)
1084    ac_prev=sysconfdir ;;
1085  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087    sysconfdir=$ac_optarg ;;
1088
1089  -target | --target | --targe | --targ | --tar | --ta | --t)
1090    ac_prev=target_alias ;;
1091  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092    target_alias=$ac_optarg ;;
1093
1094  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095    verbose=yes ;;
1096
1097  -version | --version | --versio | --versi | --vers | -V)
1098    ac_init_version=: ;;
1099
1100  -with-* | --with-*)
1101    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102    # Reject names that are not valid shell variable names.
1103    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104      as_fn_error $? "invalid package name: $ac_useropt"
1105    ac_useropt_orig=$ac_useropt
1106    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107    case $ac_user_opts in
1108      *"
1109"with_$ac_useropt"
1110"*) ;;
1111      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112	 ac_unrecognized_sep=', ';;
1113    esac
1114    eval with_$ac_useropt=\$ac_optarg ;;
1115
1116  -without-* | --without-*)
1117    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118    # Reject names that are not valid shell variable names.
1119    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120      as_fn_error $? "invalid package name: $ac_useropt"
1121    ac_useropt_orig=$ac_useropt
1122    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123    case $ac_user_opts in
1124      *"
1125"with_$ac_useropt"
1126"*) ;;
1127      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128	 ac_unrecognized_sep=', ';;
1129    esac
1130    eval with_$ac_useropt=no ;;
1131
1132  --x)
1133    # Obsolete; use --with-x.
1134    with_x=yes ;;
1135
1136  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137  | --x-incl | --x-inc | --x-in | --x-i)
1138    ac_prev=x_includes ;;
1139  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141    x_includes=$ac_optarg ;;
1142
1143  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145    ac_prev=x_libraries ;;
1146  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148    x_libraries=$ac_optarg ;;
1149
1150  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1151Try \`$0 --help' for more information"
1152    ;;
1153
1154  *=*)
1155    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156    # Reject names that are not valid shell variable names.
1157    case $ac_envvar in #(
1158      '' | [0-9]* | *[!_$as_cr_alnum]* )
1159      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1160    esac
1161    eval $ac_envvar=\$ac_optarg
1162    export $ac_envvar ;;
1163
1164  *)
1165    # FIXME: should be removed in autoconf 3.0.
1166    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1170    ;;
1171
1172  esac
1173done
1174
1175if test -n "$ac_prev"; then
1176  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177  as_fn_error $? "missing argument to $ac_option"
1178fi
1179
1180if test -n "$ac_unrecognized_opts"; then
1181  case $enable_option_checking in
1182    no) ;;
1183    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1184    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185  esac
1186fi
1187
1188# Check all directory arguments for consistency.
1189for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190		datadir sysconfdir sharedstatedir localstatedir includedir \
1191		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192		libdir localedir mandir
1193do
1194  eval ac_val=\$$ac_var
1195  # Remove trailing slashes.
1196  case $ac_val in
1197    */ )
1198      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199      eval $ac_var=\$ac_val;;
1200  esac
1201  # Be sure to have absolute directory names.
1202  case $ac_val in
1203    [\\/$]* | ?:[\\/]* )  continue;;
1204    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205  esac
1206  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1207done
1208
1209# There might be people who depend on the old broken behavior: `$host'
1210# used to hold the argument of --host etc.
1211# FIXME: To remove some day.
1212build=$build_alias
1213host=$host_alias
1214target=$target_alias
1215
1216# FIXME: To remove some day.
1217if test "x$host_alias" != x; then
1218  if test "x$build_alias" = x; then
1219    cross_compiling=maybe
1220  elif test "x$build_alias" != "x$host_alias"; then
1221    cross_compiling=yes
1222  fi
1223fi
1224
1225ac_tool_prefix=
1226test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227
1228test "$silent" = yes && exec 6>/dev/null
1229
1230
1231ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232ac_ls_di=`ls -di .` &&
1233ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234  as_fn_error $? "working directory cannot be determined"
1235test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236  as_fn_error $? "pwd does not report name of working directory"
1237
1238
1239# Find the source files, if location was not specified.
1240if test -z "$srcdir"; then
1241  ac_srcdir_defaulted=yes
1242  # Try the directory containing this script, then the parent directory.
1243  ac_confdir=`$as_dirname -- "$as_myself" ||
1244$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245	 X"$as_myself" : 'X\(//\)[^/]' \| \
1246	 X"$as_myself" : 'X\(//\)$' \| \
1247	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248$as_echo X"$as_myself" |
1249    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\/\)[^/].*/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\/\)$/{
1258	    s//\1/
1259	    q
1260	  }
1261	  /^X\(\/\).*/{
1262	    s//\1/
1263	    q
1264	  }
1265	  s/.*/./; q'`
1266  srcdir=$ac_confdir
1267  if test ! -r "$srcdir/$ac_unique_file"; then
1268    srcdir=..
1269  fi
1270else
1271  ac_srcdir_defaulted=no
1272fi
1273if test ! -r "$srcdir/$ac_unique_file"; then
1274  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1276fi
1277ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278ac_abs_confdir=`(
1279	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280	pwd)`
1281# When building in place, set srcdir=.
1282if test "$ac_abs_confdir" = "$ac_pwd"; then
1283  srcdir=.
1284fi
1285# Remove unnecessary trailing slashes from srcdir.
1286# Double slashes in file names in object file debugging info
1287# mess up M-x gdb in Emacs.
1288case $srcdir in
1289*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290esac
1291for ac_var in $ac_precious_vars; do
1292  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293  eval ac_env_${ac_var}_value=\$${ac_var}
1294  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296done
1297
1298#
1299# Report the --help message.
1300#
1301if test "$ac_init_help" = "long"; then
1302  # Omit some internal or obsolete options to make the list less imposing.
1303  # This message is too long to be a string in the A/UX 3.1 sh.
1304  cat <<_ACEOF
1305\`configure' configures FreeType 2.4.12 to adapt to many kinds of systems.
1306
1307Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310VAR=VALUE.  See below for descriptions of some of the useful variables.
1311
1312Defaults for the options are specified in brackets.
1313
1314Configuration:
1315  -h, --help              display this help and exit
1316      --help=short        display options specific to this package
1317      --help=recursive    display the short help of all the included packages
1318  -V, --version           display version information and exit
1319  -q, --quiet, --silent   do not print \`checking ...' messages
1320      --cache-file=FILE   cache test results in FILE [disabled]
1321  -C, --config-cache      alias for \`--cache-file=config.cache'
1322  -n, --no-create         do not create output files
1323      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1324
1325Installation directories:
1326  --prefix=PREFIX         install architecture-independent files in PREFIX
1327                          [$ac_default_prefix]
1328  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1329                          [PREFIX]
1330
1331By default, \`make install' will install all the files in
1332\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1333an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334for instance \`--prefix=\$HOME'.
1335
1336For better control, use the options below.
1337
1338Fine tuning of the installation directories:
1339  --bindir=DIR            user executables [EPREFIX/bin]
1340  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1341  --libexecdir=DIR        program executables [EPREFIX/libexec]
1342  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1343  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1344  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1345  --libdir=DIR            object code libraries [EPREFIX/lib]
1346  --includedir=DIR        C header files [PREFIX/include]
1347  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1348  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1349  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1350  --infodir=DIR           info documentation [DATAROOTDIR/info]
1351  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1352  --mandir=DIR            man documentation [DATAROOTDIR/man]
1353  --docdir=DIR            documentation root [DATAROOTDIR/doc/freetype]
1354  --htmldir=DIR           html documentation [DOCDIR]
1355  --dvidir=DIR            dvi documentation [DOCDIR]
1356  --pdfdir=DIR            pdf documentation [DOCDIR]
1357  --psdir=DIR             ps documentation [DOCDIR]
1358_ACEOF
1359
1360  cat <<\_ACEOF
1361
1362System types:
1363  --build=BUILD     configure for building on BUILD [guessed]
1364  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365_ACEOF
1366fi
1367
1368if test -n "$ac_init_help"; then
1369  case $ac_init_help in
1370     short | recursive ) echo "Configuration of FreeType 2.4.12:";;
1371   esac
1372  cat <<\_ACEOF
1373
1374Optional Features:
1375  --disable-option-checking  ignore unrecognized --enable/--with options
1376  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378  --enable-biarch-config  install biarch ftconfig.h to support multiple
1379                          architectures by single file
1380  --disable-mmap          do not check mmap() and do not use
1381  --enable-shared[=PKGS]  build shared libraries [default=yes]
1382  --enable-static[=PKGS]  build static libraries [default=yes]
1383  --enable-fast-install[=PKGS]
1384                          optimize for fast installation [default=yes]
1385  --disable-libtool-lock  avoid locking (might break parallel builds)
1386
1387Optional Packages:
1388  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1389  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1390  --without-zlib          use internal zlib instead of system-wide
1391  --without-bzip2         do not support bzip2 compressed fonts
1392  --with-old-mac-fonts    allow Mac resource-based fonts to be used
1393  --with-fsspec           use obsolete FSSpec API of MacOS, if available
1394                          (default=yes)
1395  --with-fsref            use Carbon FSRef API of MacOS, if available
1396                          (default=yes)
1397  --with-quickdraw-toolbox
1398                          use MacOS QuickDraw in ToolBox, if available
1399                          (default=yes)
1400  --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1401                          (default=yes)
1402  --with-ats              use AppleTypeService, if available (default=yes)
1403  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1404                          both]
1405  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1406  --with-sysroot=DIR Search for dependent libraries within DIR
1407                        (or the compiler's sysroot if not specified).
1408
1409Some influential environment variables:
1410  CC          C compiler command
1411  CFLAGS      C compiler flags
1412  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1413              nonstandard directory <lib dir>
1414  LIBS        libraries to pass to the linker, e.g. -l<library>
1415  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1416              you have headers in a nonstandard directory <include dir>
1417  CPP         C preprocessor
1418
1419Use these variables to override the choices made by `configure' or to help
1420it to find libraries and programs with nonstandard names/locations.
1421
1422Report bugs to <freetype@nongnu.org>.
1423_ACEOF
1424ac_status=$?
1425fi
1426
1427if test "$ac_init_help" = "recursive"; then
1428  # If there are subdirs, report their specific --help.
1429  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430    test -d "$ac_dir" ||
1431      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432      continue
1433    ac_builddir=.
1434
1435case "$ac_dir" in
1436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437*)
1438  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439  # A ".." for each directory in $ac_dir_suffix.
1440  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441  case $ac_top_builddir_sub in
1442  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444  esac ;;
1445esac
1446ac_abs_top_builddir=$ac_pwd
1447ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448# for backward compatibility:
1449ac_top_builddir=$ac_top_build_prefix
1450
1451case $srcdir in
1452  .)  # We are building in place.
1453    ac_srcdir=.
1454    ac_top_srcdir=$ac_top_builddir_sub
1455    ac_abs_top_srcdir=$ac_pwd ;;
1456  [\\/]* | ?:[\\/]* )  # Absolute name.
1457    ac_srcdir=$srcdir$ac_dir_suffix;
1458    ac_top_srcdir=$srcdir
1459    ac_abs_top_srcdir=$srcdir ;;
1460  *) # Relative name.
1461    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462    ac_top_srcdir=$ac_top_build_prefix$srcdir
1463    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464esac
1465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467    cd "$ac_dir" || { ac_status=$?; continue; }
1468    # Check for guested configure.
1469    if test -f "$ac_srcdir/configure.gnu"; then
1470      echo &&
1471      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472    elif test -f "$ac_srcdir/configure"; then
1473      echo &&
1474      $SHELL "$ac_srcdir/configure" --help=recursive
1475    else
1476      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477    fi || ac_status=$?
1478    cd "$ac_pwd" || { ac_status=$?; break; }
1479  done
1480fi
1481
1482test -n "$ac_init_help" && exit $ac_status
1483if $ac_init_version; then
1484  cat <<\_ACEOF
1485FreeType configure 2.4.12
1486generated by GNU Autoconf 2.69
1487
1488Copyright (C) 2012 Free Software Foundation, Inc.
1489This configure script is free software; the Free Software Foundation
1490gives unlimited permission to copy, distribute and modify it.
1491_ACEOF
1492  exit
1493fi
1494
1495## ------------------------ ##
1496## Autoconf initialization. ##
1497## ------------------------ ##
1498
1499# ac_fn_c_try_compile LINENO
1500# --------------------------
1501# Try to compile conftest.$ac_ext, and return whether this succeeded.
1502ac_fn_c_try_compile ()
1503{
1504  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505  rm -f conftest.$ac_objext
1506  if { { ac_try="$ac_compile"
1507case "(($ac_try" in
1508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509  *) ac_try_echo=$ac_try;;
1510esac
1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512$as_echo "$ac_try_echo"; } >&5
1513  (eval "$ac_compile") 2>conftest.err
1514  ac_status=$?
1515  if test -s conftest.err; then
1516    grep -v '^ *+' conftest.err >conftest.er1
1517    cat conftest.er1 >&5
1518    mv -f conftest.er1 conftest.err
1519  fi
1520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521  test $ac_status = 0; } && {
1522	 test -z "$ac_c_werror_flag" ||
1523	 test ! -s conftest.err
1524       } && test -s conftest.$ac_objext; then :
1525  ac_retval=0
1526else
1527  $as_echo "$as_me: failed program was:" >&5
1528sed 's/^/| /' conftest.$ac_ext >&5
1529
1530	ac_retval=1
1531fi
1532  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533  as_fn_set_status $ac_retval
1534
1535} # ac_fn_c_try_compile
1536
1537# ac_fn_c_try_cpp LINENO
1538# ----------------------
1539# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1540ac_fn_c_try_cpp ()
1541{
1542  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543  if { { ac_try="$ac_cpp conftest.$ac_ext"
1544case "(($ac_try" in
1545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546  *) ac_try_echo=$ac_try;;
1547esac
1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549$as_echo "$ac_try_echo"; } >&5
1550  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1551  ac_status=$?
1552  if test -s conftest.err; then
1553    grep -v '^ *+' conftest.err >conftest.er1
1554    cat conftest.er1 >&5
1555    mv -f conftest.er1 conftest.err
1556  fi
1557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558  test $ac_status = 0; } > conftest.i && {
1559	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1560	 test ! -s conftest.err
1561       }; then :
1562  ac_retval=0
1563else
1564  $as_echo "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
1566
1567    ac_retval=1
1568fi
1569  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570  as_fn_set_status $ac_retval
1571
1572} # ac_fn_c_try_cpp
1573
1574# ac_fn_c_try_run LINENO
1575# ----------------------
1576# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1577# that executables *can* be run.
1578ac_fn_c_try_run ()
1579{
1580  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581  if { { ac_try="$ac_link"
1582case "(($ac_try" in
1583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584  *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588  (eval "$ac_link") 2>&5
1589  ac_status=$?
1590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1592  { { case "(($ac_try" in
1593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594  *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598  (eval "$ac_try") 2>&5
1599  ac_status=$?
1600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601  test $ac_status = 0; }; }; then :
1602  ac_retval=0
1603else
1604  $as_echo "$as_me: program exited with status $ac_status" >&5
1605       $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608       ac_retval=$ac_status
1609fi
1610  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612  as_fn_set_status $ac_retval
1613
1614} # ac_fn_c_try_run
1615
1616# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617# -------------------------------------------------------
1618# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619# the include files in INCLUDES and setting the cache variable VAR
1620# accordingly.
1621ac_fn_c_check_header_mongrel ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  if eval \${$3+:} false; then :
1625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if eval \${$3+:} false; then :
1628  $as_echo_n "(cached) " >&6
1629fi
1630eval ac_res=\$$3
1631	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632$as_echo "$ac_res" >&6; }
1633else
1634  # Is the header compilable?
1635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636$as_echo_n "checking $2 usability... " >&6; }
1637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h.  */
1639$4
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_compile "$LINENO"; then :
1643  ac_header_compiler=yes
1644else
1645  ac_header_compiler=no
1646fi
1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649$as_echo "$ac_header_compiler" >&6; }
1650
1651# Is the header present?
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653$as_echo_n "checking $2 presence... " >&6; }
1654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h.  */
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_cpp "$LINENO"; then :
1659  ac_header_preproc=yes
1660else
1661  ac_header_preproc=no
1662fi
1663rm -f conftest.err conftest.i conftest.$ac_ext
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665$as_echo "$ac_header_preproc" >&6; }
1666
1667# So?  What about this header?
1668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669  yes:no: )
1670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674    ;;
1675  no:yes:* )
1676    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1679$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1680    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1683$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1684    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686( $as_echo "## ---------------------------------- ##
1687## Report this to freetype@nongnu.org ##
1688## ---------------------------------- ##"
1689     ) | sed "s/^/$as_me: WARNING:     /" >&2
1690    ;;
1691esac
1692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if eval \${$3+:} false; then :
1695  $as_echo_n "(cached) " >&6
1696else
1697  eval "$3=\$ac_header_compiler"
1698fi
1699eval ac_res=\$$3
1700	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701$as_echo "$ac_res" >&6; }
1702fi
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705} # ac_fn_c_check_header_mongrel
1706
1707# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708# -------------------------------------------------------
1709# Tests whether HEADER exists and can be compiled using the include files in
1710# INCLUDES, setting the cache variable VAR accordingly.
1711ac_fn_c_check_header_compile ()
1712{
1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715$as_echo_n "checking for $2... " >&6; }
1716if eval \${$3+:} false; then :
1717  $as_echo_n "(cached) " >&6
1718else
1719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h.  */
1721$4
1722#include <$2>
1723_ACEOF
1724if ac_fn_c_try_compile "$LINENO"; then :
1725  eval "$3=yes"
1726else
1727  eval "$3=no"
1728fi
1729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730fi
1731eval ac_res=\$$3
1732	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733$as_echo "$ac_res" >&6; }
1734  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736} # ac_fn_c_check_header_compile
1737
1738# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1739# --------------------------------------------
1740# Tries to find the compile-time value of EXPR in a program that includes
1741# INCLUDES, setting VAR accordingly. Returns whether the value could be
1742# computed
1743ac_fn_c_compute_int ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  if test "$cross_compiling" = yes; then
1747    # Depending upon the size, compute the lo and hi bounds.
1748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750$4
1751int
1752main ()
1753{
1754static int test_array [1 - 2 * !(($2) >= 0)];
1755test_array [0] = 0;
1756return test_array [0];
1757
1758  ;
1759  return 0;
1760}
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763  ac_lo=0 ac_mid=0
1764  while :; do
1765    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767$4
1768int
1769main ()
1770{
1771static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1772test_array [0] = 0;
1773return test_array [0];
1774
1775  ;
1776  return 0;
1777}
1778_ACEOF
1779if ac_fn_c_try_compile "$LINENO"; then :
1780  ac_hi=$ac_mid; break
1781else
1782  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1783			if test $ac_lo -le $ac_mid; then
1784			  ac_lo= ac_hi=
1785			  break
1786			fi
1787			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1788fi
1789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790  done
1791else
1792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h.  */
1794$4
1795int
1796main ()
1797{
1798static int test_array [1 - 2 * !(($2) < 0)];
1799test_array [0] = 0;
1800return test_array [0];
1801
1802  ;
1803  return 0;
1804}
1805_ACEOF
1806if ac_fn_c_try_compile "$LINENO"; then :
1807  ac_hi=-1 ac_mid=-1
1808  while :; do
1809    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h.  */
1811$4
1812int
1813main ()
1814{
1815static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1816test_array [0] = 0;
1817return test_array [0];
1818
1819  ;
1820  return 0;
1821}
1822_ACEOF
1823if ac_fn_c_try_compile "$LINENO"; then :
1824  ac_lo=$ac_mid; break
1825else
1826  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1827			if test $ac_mid -le $ac_hi; then
1828			  ac_lo= ac_hi=
1829			  break
1830			fi
1831			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1832fi
1833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834  done
1835else
1836  ac_lo= ac_hi=
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839fi
1840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841# Binary search between lo and hi bounds.
1842while test "x$ac_lo" != "x$ac_hi"; do
1843  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h.  */
1846$4
1847int
1848main ()
1849{
1850static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1851test_array [0] = 0;
1852return test_array [0];
1853
1854  ;
1855  return 0;
1856}
1857_ACEOF
1858if ac_fn_c_try_compile "$LINENO"; then :
1859  ac_hi=$ac_mid
1860else
1861  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1862fi
1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864done
1865case $ac_lo in #((
1866?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1867'') ac_retval=1 ;;
1868esac
1869  else
1870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h.  */
1872$4
1873static long int longval () { return $2; }
1874static unsigned long int ulongval () { return $2; }
1875#include <stdio.h>
1876#include <stdlib.h>
1877int
1878main ()
1879{
1880
1881  FILE *f = fopen ("conftest.val", "w");
1882  if (! f)
1883    return 1;
1884  if (($2) < 0)
1885    {
1886      long int i = longval ();
1887      if (i != ($2))
1888	return 1;
1889      fprintf (f, "%ld", i);
1890    }
1891  else
1892    {
1893      unsigned long int i = ulongval ();
1894      if (i != ($2))
1895	return 1;
1896      fprintf (f, "%lu", i);
1897    }
1898  /* Do not output a trailing newline, as this causes \r\n confusion
1899     on some platforms.  */
1900  return ferror (f) || fclose (f) != 0;
1901
1902  ;
1903  return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_run "$LINENO"; then :
1907  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1908else
1909  ac_retval=1
1910fi
1911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1912  conftest.$ac_objext conftest.beam conftest.$ac_ext
1913rm -f conftest.val
1914
1915  fi
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917  as_fn_set_status $ac_retval
1918
1919} # ac_fn_c_compute_int
1920
1921# ac_fn_c_try_link LINENO
1922# -----------------------
1923# Try to link conftest.$ac_ext, and return whether this succeeded.
1924ac_fn_c_try_link ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  rm -f conftest.$ac_objext conftest$ac_exeext
1928  if { { ac_try="$ac_link"
1929case "(($ac_try" in
1930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931  *) ac_try_echo=$ac_try;;
1932esac
1933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934$as_echo "$ac_try_echo"; } >&5
1935  (eval "$ac_link") 2>conftest.err
1936  ac_status=$?
1937  if test -s conftest.err; then
1938    grep -v '^ *+' conftest.err >conftest.er1
1939    cat conftest.er1 >&5
1940    mv -f conftest.er1 conftest.err
1941  fi
1942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943  test $ac_status = 0; } && {
1944	 test -z "$ac_c_werror_flag" ||
1945	 test ! -s conftest.err
1946       } && test -s conftest$ac_exeext && {
1947	 test "$cross_compiling" = yes ||
1948	 test -x conftest$ac_exeext
1949       }; then :
1950  ac_retval=0
1951else
1952  $as_echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955	ac_retval=1
1956fi
1957  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959  # interfere with the next link command; also delete a directory that is
1960  # left behind by Apple's compiler.  We do this before executing the actions.
1961  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963  as_fn_set_status $ac_retval
1964
1965} # ac_fn_c_try_link
1966
1967# ac_fn_c_check_func LINENO FUNC VAR
1968# ----------------------------------
1969# Tests whether FUNC exists, setting the cache variable VAR accordingly
1970ac_fn_c_check_func ()
1971{
1972  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974$as_echo_n "checking for $2... " >&6; }
1975if eval \${$3+:} false; then :
1976  $as_echo_n "(cached) " >&6
1977else
1978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h.  */
1980/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1981   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1982#define $2 innocuous_$2
1983
1984/* System header to define __stub macros and hopefully few prototypes,
1985    which can conflict with char $2 (); below.
1986    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1987    <limits.h> exists even on freestanding compilers.  */
1988
1989#ifdef __STDC__
1990# include <limits.h>
1991#else
1992# include <assert.h>
1993#endif
1994
1995#undef $2
1996
1997/* Override any GCC internal prototype to avoid an error.
1998   Use char because int might match the return type of a GCC
1999   builtin and then its argument prototype would still apply.  */
2000#ifdef __cplusplus
2001extern "C"
2002#endif
2003char $2 ();
2004/* The GNU C library defines this for functions which it implements
2005    to always fail with ENOSYS.  Some functions are actually named
2006    something starting with __ and the normal name is an alias.  */
2007#if defined __stub_$2 || defined __stub___$2
2008choke me
2009#endif
2010
2011int
2012main ()
2013{
2014return $2 ();
2015  ;
2016  return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_link "$LINENO"; then :
2020  eval "$3=yes"
2021else
2022  eval "$3=no"
2023fi
2024rm -f core conftest.err conftest.$ac_objext \
2025    conftest$ac_exeext conftest.$ac_ext
2026fi
2027eval ac_res=\$$3
2028	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029$as_echo "$ac_res" >&6; }
2030  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031
2032} # ac_fn_c_check_func
2033
2034# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2035# ---------------------------------------------
2036# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2037# accordingly.
2038ac_fn_c_check_decl ()
2039{
2040  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041  as_decl_name=`echo $2|sed 's/ *(.*//'`
2042  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2044$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2045if eval \${$3+:} false; then :
2046  $as_echo_n "(cached) " >&6
2047else
2048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h.  */
2050$4
2051int
2052main ()
2053{
2054#ifndef $as_decl_name
2055#ifdef __cplusplus
2056  (void) $as_decl_use;
2057#else
2058  (void) $as_decl_name;
2059#endif
2060#endif
2061
2062  ;
2063  return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_compile "$LINENO"; then :
2067  eval "$3=yes"
2068else
2069  eval "$3=no"
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072fi
2073eval ac_res=\$$3
2074	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075$as_echo "$ac_res" >&6; }
2076  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078} # ac_fn_c_check_decl
2079cat >config.log <<_ACEOF
2080This file contains any messages produced by compilers while
2081running configure, to aid debugging if configure makes a mistake.
2082
2083It was created by FreeType $as_me 2.4.12, which was
2084generated by GNU Autoconf 2.69.  Invocation command line was
2085
2086  $ $0 $@
2087
2088_ACEOF
2089exec 5>>config.log
2090{
2091cat <<_ASUNAME
2092## --------- ##
2093## Platform. ##
2094## --------- ##
2095
2096hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2097uname -m = `(uname -m) 2>/dev/null || echo unknown`
2098uname -r = `(uname -r) 2>/dev/null || echo unknown`
2099uname -s = `(uname -s) 2>/dev/null || echo unknown`
2100uname -v = `(uname -v) 2>/dev/null || echo unknown`
2101
2102/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2103/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2104
2105/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2106/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2107/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2108/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2109/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2110/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2111/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2112
2113_ASUNAME
2114
2115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116for as_dir in $PATH
2117do
2118  IFS=$as_save_IFS
2119  test -z "$as_dir" && as_dir=.
2120    $as_echo "PATH: $as_dir"
2121  done
2122IFS=$as_save_IFS
2123
2124} >&5
2125
2126cat >&5 <<_ACEOF
2127
2128
2129## ----------- ##
2130## Core tests. ##
2131## ----------- ##
2132
2133_ACEOF
2134
2135
2136# Keep a trace of the command line.
2137# Strip out --no-create and --no-recursion so they do not pile up.
2138# Strip out --silent because we don't want to record it for future runs.
2139# Also quote any args containing shell meta-characters.
2140# Make two passes to allow for proper duplicate-argument suppression.
2141ac_configure_args=
2142ac_configure_args0=
2143ac_configure_args1=
2144ac_must_keep_next=false
2145for ac_pass in 1 2
2146do
2147  for ac_arg
2148  do
2149    case $ac_arg in
2150    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2151    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2152    | -silent | --silent | --silen | --sile | --sil)
2153      continue ;;
2154    *\'*)
2155      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2156    esac
2157    case $ac_pass in
2158    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2159    2)
2160      as_fn_append ac_configure_args1 " '$ac_arg'"
2161      if test $ac_must_keep_next = true; then
2162	ac_must_keep_next=false # Got value, back to normal.
2163      else
2164	case $ac_arg in
2165	  *=* | --config-cache | -C | -disable-* | --disable-* \
2166	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2167	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2168	  | -with-* | --with-* | -without-* | --without-* | --x)
2169	    case "$ac_configure_args0 " in
2170	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2171	    esac
2172	    ;;
2173	  -* ) ac_must_keep_next=true ;;
2174	esac
2175      fi
2176      as_fn_append ac_configure_args " '$ac_arg'"
2177      ;;
2178    esac
2179  done
2180done
2181{ ac_configure_args0=; unset ac_configure_args0;}
2182{ ac_configure_args1=; unset ac_configure_args1;}
2183
2184# When interrupted or exit'd, cleanup temporary files, and complete
2185# config.log.  We remove comments because anyway the quotes in there
2186# would cause problems or look ugly.
2187# WARNING: Use '\'' to represent an apostrophe within the trap.
2188# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2189trap 'exit_status=$?
2190  # Save into config.log some information that might help in debugging.
2191  {
2192    echo
2193
2194    $as_echo "## ---------------- ##
2195## Cache variables. ##
2196## ---------------- ##"
2197    echo
2198    # The following way of writing the cache mishandles newlines in values,
2199(
2200  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2201    eval ac_val=\$$ac_var
2202    case $ac_val in #(
2203    *${as_nl}*)
2204      case $ac_var in #(
2205      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2206$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2207      esac
2208      case $ac_var in #(
2209      _ | IFS | as_nl) ;; #(
2210      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2211      *) { eval $ac_var=; unset $ac_var;} ;;
2212      esac ;;
2213    esac
2214  done
2215  (set) 2>&1 |
2216    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2217    *${as_nl}ac_space=\ *)
2218      sed -n \
2219	"s/'\''/'\''\\\\'\'''\''/g;
2220	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2221      ;; #(
2222    *)
2223      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2224      ;;
2225    esac |
2226    sort
2227)
2228    echo
2229
2230    $as_echo "## ----------------- ##
2231## Output variables. ##
2232## ----------------- ##"
2233    echo
2234    for ac_var in $ac_subst_vars
2235    do
2236      eval ac_val=\$$ac_var
2237      case $ac_val in
2238      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239      esac
2240      $as_echo "$ac_var='\''$ac_val'\''"
2241    done | sort
2242    echo
2243
2244    if test -n "$ac_subst_files"; then
2245      $as_echo "## ------------------- ##
2246## File substitutions. ##
2247## ------------------- ##"
2248      echo
2249      for ac_var in $ac_subst_files
2250      do
2251	eval ac_val=\$$ac_var
2252	case $ac_val in
2253	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254	esac
2255	$as_echo "$ac_var='\''$ac_val'\''"
2256      done | sort
2257      echo
2258    fi
2259
2260    if test -s confdefs.h; then
2261      $as_echo "## ----------- ##
2262## confdefs.h. ##
2263## ----------- ##"
2264      echo
2265      cat confdefs.h
2266      echo
2267    fi
2268    test "$ac_signal" != 0 &&
2269      $as_echo "$as_me: caught signal $ac_signal"
2270    $as_echo "$as_me: exit $exit_status"
2271  } >&5
2272  rm -f core *.core core.conftest.* &&
2273    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2274    exit $exit_status
2275' 0
2276for ac_signal in 1 2 13 15; do
2277  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2278done
2279ac_signal=0
2280
2281# confdefs.h avoids OS command line length limits that DEFS can exceed.
2282rm -f -r conftest* confdefs.h
2283
2284$as_echo "/* confdefs.h */" > confdefs.h
2285
2286# Predefined preprocessor variables.
2287
2288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_NAME "$PACKAGE_NAME"
2290_ACEOF
2291
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2294_ACEOF
2295
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_VERSION "$PACKAGE_VERSION"
2298_ACEOF
2299
2300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_STRING "$PACKAGE_STRING"
2302_ACEOF
2303
2304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2306_ACEOF
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_URL "$PACKAGE_URL"
2310_ACEOF
2311
2312
2313# Let the site file select an alternate cache file if it wants to.
2314# Prefer an explicitly selected file to automatically selected ones.
2315ac_site_file1=NONE
2316ac_site_file2=NONE
2317if test -n "$CONFIG_SITE"; then
2318  # We do not want a PATH search for config.site.
2319  case $CONFIG_SITE in #((
2320    -*)  ac_site_file1=./$CONFIG_SITE;;
2321    */*) ac_site_file1=$CONFIG_SITE;;
2322    *)   ac_site_file1=./$CONFIG_SITE;;
2323  esac
2324elif test "x$prefix" != xNONE; then
2325  ac_site_file1=$prefix/share/config.site
2326  ac_site_file2=$prefix/etc/config.site
2327else
2328  ac_site_file1=$ac_default_prefix/share/config.site
2329  ac_site_file2=$ac_default_prefix/etc/config.site
2330fi
2331for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2332do
2333  test "x$ac_site_file" = xNONE && continue
2334  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2335    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2336$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2337    sed 's/^/| /' "$ac_site_file" >&5
2338    . "$ac_site_file" \
2339      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341as_fn_error $? "failed to load site script $ac_site_file
2342See \`config.log' for more details" "$LINENO" 5; }
2343  fi
2344done
2345
2346if test -r "$cache_file"; then
2347  # Some versions of bash will fail to source /dev/null (special files
2348  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2349  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2350    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2351$as_echo "$as_me: loading cache $cache_file" >&6;}
2352    case $cache_file in
2353      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2354      *)                      . "./$cache_file";;
2355    esac
2356  fi
2357else
2358  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2359$as_echo "$as_me: creating cache $cache_file" >&6;}
2360  >$cache_file
2361fi
2362
2363as_fn_append ac_header_list " stdlib.h"
2364as_fn_append ac_header_list " unistd.h"
2365as_fn_append ac_header_list " sys/param.h"
2366# Check that the precious variables saved in the cache have kept the same
2367# value.
2368ac_cache_corrupted=false
2369for ac_var in $ac_precious_vars; do
2370  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2371  eval ac_new_set=\$ac_env_${ac_var}_set
2372  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2373  eval ac_new_val=\$ac_env_${ac_var}_value
2374  case $ac_old_set,$ac_new_set in
2375    set,)
2376      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2377$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2378      ac_cache_corrupted=: ;;
2379    ,set)
2380      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2381$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2382      ac_cache_corrupted=: ;;
2383    ,);;
2384    *)
2385      if test "x$ac_old_val" != "x$ac_new_val"; then
2386	# differences in whitespace do not lead to failure.
2387	ac_old_val_w=`echo x $ac_old_val`
2388	ac_new_val_w=`echo x $ac_new_val`
2389	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2390	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2391$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2392	  ac_cache_corrupted=:
2393	else
2394	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2395$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2396	  eval $ac_var=\$ac_old_val
2397	fi
2398	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2399$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2400	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2401$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2402      fi;;
2403  esac
2404  # Pass precious variables to config.status.
2405  if test "$ac_new_set" = set; then
2406    case $ac_new_val in
2407    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2408    *) ac_arg=$ac_var=$ac_new_val ;;
2409    esac
2410    case " $ac_configure_args " in
2411      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2412      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2413    esac
2414  fi
2415done
2416if $ac_cache_corrupted; then
2417  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2420$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2421  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2422fi
2423## -------------------- ##
2424## Main body of script. ##
2425## -------------------- ##
2426
2427ac_ext=c
2428ac_cpp='$CPP $CPPFLAGS'
2429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432
2433
2434
2435
2436
2437# Don't forget to update docs/VERSION.DLL!
2438
2439version_info='16:1:10'
2440
2441ft_version=`echo $version_info | tr : .`
2442
2443
2444
2445# checks for system type
2446
2447ac_aux_dir=
2448for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2449  if test -f "$ac_dir/install-sh"; then
2450    ac_aux_dir=$ac_dir
2451    ac_install_sh="$ac_aux_dir/install-sh -c"
2452    break
2453  elif test -f "$ac_dir/install.sh"; then
2454    ac_aux_dir=$ac_dir
2455    ac_install_sh="$ac_aux_dir/install.sh -c"
2456    break
2457  elif test -f "$ac_dir/shtool"; then
2458    ac_aux_dir=$ac_dir
2459    ac_install_sh="$ac_aux_dir/shtool install -c"
2460    break
2461  fi
2462done
2463if test -z "$ac_aux_dir"; then
2464  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2465fi
2466
2467# These three variables are undocumented and unsupported,
2468# and are intended to be withdrawn in a future Autoconf release.
2469# They can cause serious problems if a builder's source tree is in a directory
2470# whose full name contains unusual characters.
2471ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2472ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2473ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2474
2475
2476# Make sure we can run config.sub.
2477$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2478  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2479
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2481$as_echo_n "checking build system type... " >&6; }
2482if ${ac_cv_build+:} false; then :
2483  $as_echo_n "(cached) " >&6
2484else
2485  ac_build_alias=$build_alias
2486test "x$ac_build_alias" = x &&
2487  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2488test "x$ac_build_alias" = x &&
2489  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2490ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2491  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2492
2493fi
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2495$as_echo "$ac_cv_build" >&6; }
2496case $ac_cv_build in
2497*-*-*) ;;
2498*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2499esac
2500build=$ac_cv_build
2501ac_save_IFS=$IFS; IFS='-'
2502set x $ac_cv_build
2503shift
2504build_cpu=$1
2505build_vendor=$2
2506shift; shift
2507# Remember, the first character of IFS is used to create $*,
2508# except with old shells:
2509build_os=$*
2510IFS=$ac_save_IFS
2511case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2512
2513
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2515$as_echo_n "checking host system type... " >&6; }
2516if ${ac_cv_host+:} false; then :
2517  $as_echo_n "(cached) " >&6
2518else
2519  if test "x$host_alias" = x; then
2520  ac_cv_host=$ac_cv_build
2521else
2522  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2523    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2524fi
2525
2526fi
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2528$as_echo "$ac_cv_host" >&6; }
2529case $ac_cv_host in
2530*-*-*) ;;
2531*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2532esac
2533host=$ac_cv_host
2534ac_save_IFS=$IFS; IFS='-'
2535set x $ac_cv_host
2536shift
2537host_cpu=$1
2538host_vendor=$2
2539shift; shift
2540# Remember, the first character of IFS is used to create $*,
2541# except with old shells:
2542host_os=$*
2543IFS=$ac_save_IFS
2544case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2545
2546
2547
2548
2549# checks for programs
2550
2551ac_ext=c
2552ac_cpp='$CPP $CPPFLAGS'
2553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556if test -n "$ac_tool_prefix"; then
2557  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2558set dummy ${ac_tool_prefix}gcc; ac_word=$2
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560$as_echo_n "checking for $ac_word... " >&6; }
2561if ${ac_cv_prog_CC+:} false; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  if test -n "$CC"; then
2565  ac_cv_prog_CC="$CC" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570  IFS=$as_save_IFS
2571  test -z "$as_dir" && as_dir=.
2572    for ac_exec_ext in '' $ac_executable_extensions; do
2573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576    break 2
2577  fi
2578done
2579  done
2580IFS=$as_save_IFS
2581
2582fi
2583fi
2584CC=$ac_cv_prog_CC
2585if test -n "$CC"; then
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2587$as_echo "$CC" >&6; }
2588else
2589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590$as_echo "no" >&6; }
2591fi
2592
2593
2594fi
2595if test -z "$ac_cv_prog_CC"; then
2596  ac_ct_CC=$CC
2597  # Extract the first word of "gcc", so it can be a program name with args.
2598set dummy gcc; ac_word=$2
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600$as_echo_n "checking for $ac_word... " >&6; }
2601if ${ac_cv_prog_ac_ct_CC+:} false; then :
2602  $as_echo_n "(cached) " >&6
2603else
2604  if test -n "$ac_ct_CC"; then
2605  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610  IFS=$as_save_IFS
2611  test -z "$as_dir" && as_dir=.
2612    for ac_exec_ext in '' $ac_executable_extensions; do
2613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614    ac_cv_prog_ac_ct_CC="gcc"
2615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616    break 2
2617  fi
2618done
2619  done
2620IFS=$as_save_IFS
2621
2622fi
2623fi
2624ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625if test -n "$ac_ct_CC"; then
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2627$as_echo "$ac_ct_CC" >&6; }
2628else
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630$as_echo "no" >&6; }
2631fi
2632
2633  if test "x$ac_ct_CC" = x; then
2634    CC=""
2635  else
2636    case $cross_compiling:$ac_tool_warned in
2637yes:)
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2640ac_tool_warned=yes ;;
2641esac
2642    CC=$ac_ct_CC
2643  fi
2644else
2645  CC="$ac_cv_prog_CC"
2646fi
2647
2648if test -z "$CC"; then
2649          if test -n "$ac_tool_prefix"; then
2650    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2651set dummy ${ac_tool_prefix}cc; ac_word=$2
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653$as_echo_n "checking for $ac_word... " >&6; }
2654if ${ac_cv_prog_CC+:} false; then :
2655  $as_echo_n "(cached) " >&6
2656else
2657  if test -n "$CC"; then
2658  ac_cv_prog_CC="$CC" # Let the user override the test.
2659else
2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663  IFS=$as_save_IFS
2664  test -z "$as_dir" && as_dir=.
2665    for ac_exec_ext in '' $ac_executable_extensions; do
2666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2667    ac_cv_prog_CC="${ac_tool_prefix}cc"
2668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669    break 2
2670  fi
2671done
2672  done
2673IFS=$as_save_IFS
2674
2675fi
2676fi
2677CC=$ac_cv_prog_CC
2678if test -n "$CC"; then
2679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2680$as_echo "$CC" >&6; }
2681else
2682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683$as_echo "no" >&6; }
2684fi
2685
2686
2687  fi
2688fi
2689if test -z "$CC"; then
2690  # Extract the first word of "cc", so it can be a program name with args.
2691set dummy cc; ac_word=$2
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693$as_echo_n "checking for $ac_word... " >&6; }
2694if ${ac_cv_prog_CC+:} false; then :
2695  $as_echo_n "(cached) " >&6
2696else
2697  if test -n "$CC"; then
2698  ac_cv_prog_CC="$CC" # Let the user override the test.
2699else
2700  ac_prog_rejected=no
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704  IFS=$as_save_IFS
2705  test -z "$as_dir" && as_dir=.
2706    for ac_exec_ext in '' $ac_executable_extensions; do
2707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2709       ac_prog_rejected=yes
2710       continue
2711     fi
2712    ac_cv_prog_CC="cc"
2713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714    break 2
2715  fi
2716done
2717  done
2718IFS=$as_save_IFS
2719
2720if test $ac_prog_rejected = yes; then
2721  # We found a bogon in the path, so make sure we never use it.
2722  set dummy $ac_cv_prog_CC
2723  shift
2724  if test $# != 0; then
2725    # We chose a different compiler from the bogus one.
2726    # However, it has the same basename, so the bogon will be chosen
2727    # first if we set CC to just the basename; use the full file name.
2728    shift
2729    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2730  fi
2731fi
2732fi
2733fi
2734CC=$ac_cv_prog_CC
2735if test -n "$CC"; then
2736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2737$as_echo "$CC" >&6; }
2738else
2739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743
2744fi
2745if test -z "$CC"; then
2746  if test -n "$ac_tool_prefix"; then
2747  for ac_prog in cl.exe
2748  do
2749    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2750set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752$as_echo_n "checking for $ac_word... " >&6; }
2753if ${ac_cv_prog_CC+:} false; then :
2754  $as_echo_n "(cached) " >&6
2755else
2756  if test -n "$CC"; then
2757  ac_cv_prog_CC="$CC" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762  IFS=$as_save_IFS
2763  test -z "$as_dir" && as_dir=.
2764    for ac_exec_ext in '' $ac_executable_extensions; do
2765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768    break 2
2769  fi
2770done
2771  done
2772IFS=$as_save_IFS
2773
2774fi
2775fi
2776CC=$ac_cv_prog_CC
2777if test -n "$CC"; then
2778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779$as_echo "$CC" >&6; }
2780else
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782$as_echo "no" >&6; }
2783fi
2784
2785
2786    test -n "$CC" && break
2787  done
2788fi
2789if test -z "$CC"; then
2790  ac_ct_CC=$CC
2791  for ac_prog in cl.exe
2792do
2793  # Extract the first word of "$ac_prog", so it can be a program name with args.
2794set dummy $ac_prog; ac_word=$2
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if ${ac_cv_prog_ac_ct_CC+:} false; then :
2798  $as_echo_n "(cached) " >&6
2799else
2800  if test -n "$ac_ct_CC"; then
2801  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806  IFS=$as_save_IFS
2807  test -z "$as_dir" && as_dir=.
2808    for ac_exec_ext in '' $ac_executable_extensions; do
2809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810    ac_cv_prog_ac_ct_CC="$ac_prog"
2811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812    break 2
2813  fi
2814done
2815  done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821if test -n "$ac_ct_CC"; then
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2823$as_echo "$ac_ct_CC" >&6; }
2824else
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829
2830  test -n "$ac_ct_CC" && break
2831done
2832
2833  if test "x$ac_ct_CC" = x; then
2834    CC=""
2835  else
2836    case $cross_compiling:$ac_tool_warned in
2837yes:)
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2840ac_tool_warned=yes ;;
2841esac
2842    CC=$ac_ct_CC
2843  fi
2844fi
2845
2846fi
2847
2848
2849test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851as_fn_error $? "no acceptable C compiler found in \$PATH
2852See \`config.log' for more details" "$LINENO" 5; }
2853
2854# Provide some information about the compiler.
2855$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2856set X $ac_compile
2857ac_compiler=$2
2858for ac_option in --version -v -V -qversion; do
2859  { { ac_try="$ac_compiler $ac_option >&5"
2860case "(($ac_try" in
2861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862  *) ac_try_echo=$ac_try;;
2863esac
2864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2865$as_echo "$ac_try_echo"; } >&5
2866  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2867  ac_status=$?
2868  if test -s conftest.err; then
2869    sed '10a\
2870... rest of stderr output deleted ...
2871         10q' conftest.err >conftest.er1
2872    cat conftest.er1 >&5
2873  fi
2874  rm -f conftest.er1 conftest.err
2875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876  test $ac_status = 0; }
2877done
2878
2879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880/* end confdefs.h.  */
2881
2882int
2883main ()
2884{
2885
2886  ;
2887  return 0;
2888}
2889_ACEOF
2890ac_clean_files_save=$ac_clean_files
2891ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2892# Try to create an executable without -o first, disregard a.out.
2893# It will help us diagnose broken compilers, and finding out an intuition
2894# of exeext.
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2896$as_echo_n "checking whether the C compiler works... " >&6; }
2897ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2898
2899# The possible output files:
2900ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2901
2902ac_rmfiles=
2903for ac_file in $ac_files
2904do
2905  case $ac_file in
2906    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2907    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2908  esac
2909done
2910rm -f $ac_rmfiles
2911
2912if { { ac_try="$ac_link_default"
2913case "(($ac_try" in
2914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915  *) ac_try_echo=$ac_try;;
2916esac
2917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918$as_echo "$ac_try_echo"; } >&5
2919  (eval "$ac_link_default") 2>&5
2920  ac_status=$?
2921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922  test $ac_status = 0; }; then :
2923  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2924# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2925# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2926# so that the user can short-circuit this test for compilers unknown to
2927# Autoconf.
2928for ac_file in $ac_files ''
2929do
2930  test -f "$ac_file" || continue
2931  case $ac_file in
2932    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2933	;;
2934    [ab].out )
2935	# We found the default executable, but exeext='' is most
2936	# certainly right.
2937	break;;
2938    *.* )
2939	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2940	then :; else
2941	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942	fi
2943	# We set ac_cv_exeext here because the later test for it is not
2944	# safe: cross compilers may not add the suffix if given an `-o'
2945	# argument, so we may need to know it at that point already.
2946	# Even if this section looks crufty: it has the advantage of
2947	# actually working.
2948	break;;
2949    * )
2950	break;;
2951  esac
2952done
2953test "$ac_cv_exeext" = no && ac_cv_exeext=
2954
2955else
2956  ac_file=''
2957fi
2958if test -z "$ac_file"; then :
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960$as_echo "no" >&6; }
2961$as_echo "$as_me: failed program was:" >&5
2962sed 's/^/| /' conftest.$ac_ext >&5
2963
2964{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966as_fn_error 77 "C compiler cannot create executables
2967See \`config.log' for more details" "$LINENO" 5; }
2968else
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970$as_echo "yes" >&6; }
2971fi
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2973$as_echo_n "checking for C compiler default output file name... " >&6; }
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2975$as_echo "$ac_file" >&6; }
2976ac_exeext=$ac_cv_exeext
2977
2978rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2979ac_clean_files=$ac_clean_files_save
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2981$as_echo_n "checking for suffix of executables... " >&6; }
2982if { { ac_try="$ac_link"
2983case "(($ac_try" in
2984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985  *) ac_try_echo=$ac_try;;
2986esac
2987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988$as_echo "$ac_try_echo"; } >&5
2989  (eval "$ac_link") 2>&5
2990  ac_status=$?
2991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992  test $ac_status = 0; }; then :
2993  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2994# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2995# work properly (i.e., refer to `conftest.exe'), while it won't with
2996# `rm'.
2997for ac_file in conftest.exe conftest conftest.*; do
2998  test -f "$ac_file" || continue
2999  case $ac_file in
3000    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3001    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3002	  break;;
3003    * ) break;;
3004  esac
3005done
3006else
3007  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3010See \`config.log' for more details" "$LINENO" 5; }
3011fi
3012rm -f conftest conftest$ac_cv_exeext
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3014$as_echo "$ac_cv_exeext" >&6; }
3015
3016rm -f conftest.$ac_ext
3017EXEEXT=$ac_cv_exeext
3018ac_exeext=$EXEEXT
3019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h.  */
3021#include <stdio.h>
3022int
3023main ()
3024{
3025FILE *f = fopen ("conftest.out", "w");
3026 return ferror (f) || fclose (f) != 0;
3027
3028  ;
3029  return 0;
3030}
3031_ACEOF
3032ac_clean_files="$ac_clean_files conftest.out"
3033# Check that the compiler produces executables we can run.  If not, either
3034# the compiler is broken, or we cross compile.
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3036$as_echo_n "checking whether we are cross compiling... " >&6; }
3037if test "$cross_compiling" != yes; then
3038  { { ac_try="$ac_link"
3039case "(($ac_try" in
3040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041  *) ac_try_echo=$ac_try;;
3042esac
3043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044$as_echo "$ac_try_echo"; } >&5
3045  (eval "$ac_link") 2>&5
3046  ac_status=$?
3047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048  test $ac_status = 0; }
3049  if { ac_try='./conftest$ac_cv_exeext'
3050  { { case "(($ac_try" in
3051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052  *) ac_try_echo=$ac_try;;
3053esac
3054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055$as_echo "$ac_try_echo"; } >&5
3056  (eval "$ac_try") 2>&5
3057  ac_status=$?
3058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059  test $ac_status = 0; }; }; then
3060    cross_compiling=no
3061  else
3062    if test "$cross_compiling" = maybe; then
3063	cross_compiling=yes
3064    else
3065	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067as_fn_error $? "cannot run C compiled programs.
3068If you meant to cross compile, use \`--host'.
3069See \`config.log' for more details" "$LINENO" 5; }
3070    fi
3071  fi
3072fi
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3074$as_echo "$cross_compiling" >&6; }
3075
3076rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3077ac_clean_files=$ac_clean_files_save
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3079$as_echo_n "checking for suffix of object files... " >&6; }
3080if ${ac_cv_objext+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084/* end confdefs.h.  */
3085
3086int
3087main ()
3088{
3089
3090  ;
3091  return 0;
3092}
3093_ACEOF
3094rm -f conftest.o conftest.obj
3095if { { ac_try="$ac_compile"
3096case "(($ac_try" in
3097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098  *) ac_try_echo=$ac_try;;
3099esac
3100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101$as_echo "$ac_try_echo"; } >&5
3102  (eval "$ac_compile") 2>&5
3103  ac_status=$?
3104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105  test $ac_status = 0; }; then :
3106  for ac_file in conftest.o conftest.obj conftest.*; do
3107  test -f "$ac_file" || continue;
3108  case $ac_file in
3109    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3110    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3111       break;;
3112  esac
3113done
3114else
3115  $as_echo "$as_me: failed program was:" >&5
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
3118{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120as_fn_error $? "cannot compute suffix of object files: cannot compile
3121See \`config.log' for more details" "$LINENO" 5; }
3122fi
3123rm -f conftest.$ac_cv_objext conftest.$ac_ext
3124fi
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3126$as_echo "$ac_cv_objext" >&6; }
3127OBJEXT=$ac_cv_objext
3128ac_objext=$OBJEXT
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3130$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3131if ${ac_cv_c_compiler_gnu+:} false; then :
3132  $as_echo_n "(cached) " >&6
3133else
3134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135/* end confdefs.h.  */
3136
3137int
3138main ()
3139{
3140#ifndef __GNUC__
3141       choke me
3142#endif
3143
3144  ;
3145  return 0;
3146}
3147_ACEOF
3148if ac_fn_c_try_compile "$LINENO"; then :
3149  ac_compiler_gnu=yes
3150else
3151  ac_compiler_gnu=no
3152fi
3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154ac_cv_c_compiler_gnu=$ac_compiler_gnu
3155
3156fi
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3158$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3159if test $ac_compiler_gnu = yes; then
3160  GCC=yes
3161else
3162  GCC=
3163fi
3164ac_test_CFLAGS=${CFLAGS+set}
3165ac_save_CFLAGS=$CFLAGS
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3167$as_echo_n "checking whether $CC accepts -g... " >&6; }
3168if ${ac_cv_prog_cc_g+:} false; then :
3169  $as_echo_n "(cached) " >&6
3170else
3171  ac_save_c_werror_flag=$ac_c_werror_flag
3172   ac_c_werror_flag=yes
3173   ac_cv_prog_cc_g=no
3174   CFLAGS="-g"
3175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176/* end confdefs.h.  */
3177
3178int
3179main ()
3180{
3181
3182  ;
3183  return 0;
3184}
3185_ACEOF
3186if ac_fn_c_try_compile "$LINENO"; then :
3187  ac_cv_prog_cc_g=yes
3188else
3189  CFLAGS=""
3190      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191/* end confdefs.h.  */
3192
3193int
3194main ()
3195{
3196
3197  ;
3198  return 0;
3199}
3200_ACEOF
3201if ac_fn_c_try_compile "$LINENO"; then :
3202
3203else
3204  ac_c_werror_flag=$ac_save_c_werror_flag
3205	 CFLAGS="-g"
3206	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217if ac_fn_c_try_compile "$LINENO"; then :
3218  ac_cv_prog_cc_g=yes
3219fi
3220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221fi
3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223fi
3224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225   ac_c_werror_flag=$ac_save_c_werror_flag
3226fi
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3228$as_echo "$ac_cv_prog_cc_g" >&6; }
3229if test "$ac_test_CFLAGS" = set; then
3230  CFLAGS=$ac_save_CFLAGS
3231elif test $ac_cv_prog_cc_g = yes; then
3232  if test "$GCC" = yes; then
3233    CFLAGS="-g -O2"
3234  else
3235    CFLAGS="-g"
3236  fi
3237else
3238  if test "$GCC" = yes; then
3239    CFLAGS="-O2"
3240  else
3241    CFLAGS=
3242  fi
3243fi
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3245$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3246if ${ac_cv_prog_cc_c89+:} false; then :
3247  $as_echo_n "(cached) " >&6
3248else
3249  ac_cv_prog_cc_c89=no
3250ac_save_CC=$CC
3251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h.  */
3253#include <stdarg.h>
3254#include <stdio.h>
3255struct stat;
3256/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3257struct buf { int x; };
3258FILE * (*rcsopen) (struct buf *, struct stat *, int);
3259static char *e (p, i)
3260     char **p;
3261     int i;
3262{
3263  return p[i];
3264}
3265static char *f (char * (*g) (char **, int), char **p, ...)
3266{
3267  char *s;
3268  va_list v;
3269  va_start (v,p);
3270  s = g (p, va_arg (v,int));
3271  va_end (v);
3272  return s;
3273}
3274
3275/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3276   function prototypes and stuff, but not '\xHH' hex character constants.
3277   These don't provoke an error unfortunately, instead are silently treated
3278   as 'x'.  The following induces an error, until -std is added to get
3279   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3280   array size at least.  It's necessary to write '\x00'==0 to get something
3281   that's true only with -std.  */
3282int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3283
3284/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3285   inside strings and character constants.  */
3286#define FOO(x) 'x'
3287int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3288
3289int test (int i, double x);
3290struct s1 {int (*f) (int a);};
3291struct s2 {int (*f) (double a);};
3292int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3293int argc;
3294char **argv;
3295int
3296main ()
3297{
3298return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3304	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3305do
3306  CC="$ac_save_CC $ac_arg"
3307  if ac_fn_c_try_compile "$LINENO"; then :
3308  ac_cv_prog_cc_c89=$ac_arg
3309fi
3310rm -f core conftest.err conftest.$ac_objext
3311  test "x$ac_cv_prog_cc_c89" != "xno" && break
3312done
3313rm -f conftest.$ac_ext
3314CC=$ac_save_CC
3315
3316fi
3317# AC_CACHE_VAL
3318case "x$ac_cv_prog_cc_c89" in
3319  x)
3320    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3321$as_echo "none needed" >&6; } ;;
3322  xno)
3323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3324$as_echo "unsupported" >&6; } ;;
3325  *)
3326    CC="$CC $ac_cv_prog_cc_c89"
3327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3328$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3329esac
3330if test "x$ac_cv_prog_cc_c89" != xno; then :
3331
3332fi
3333
3334ac_ext=c
3335ac_cpp='$CPP $CPPFLAGS'
3336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339
3340ac_ext=c
3341ac_cpp='$CPP $CPPFLAGS'
3342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3346$as_echo_n "checking how to run the C preprocessor... " >&6; }
3347# On Suns, sometimes $CPP names a directory.
3348if test -n "$CPP" && test -d "$CPP"; then
3349  CPP=
3350fi
3351if test -z "$CPP"; then
3352  if ${ac_cv_prog_CPP+:} false; then :
3353  $as_echo_n "(cached) " >&6
3354else
3355      # Double quotes because CPP needs to be expanded
3356    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3357    do
3358      ac_preproc_ok=false
3359for ac_c_preproc_warn_flag in '' yes
3360do
3361  # Use a header file that comes with gcc, so configuring glibc
3362  # with a fresh cross-compiler works.
3363  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3364  # <limits.h> exists even on freestanding compilers.
3365  # On the NeXT, cc -E runs the code through the compiler's parser,
3366  # not just through cpp. "Syntax error" is here to catch this case.
3367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368/* end confdefs.h.  */
3369#ifdef __STDC__
3370# include <limits.h>
3371#else
3372# include <assert.h>
3373#endif
3374		     Syntax error
3375_ACEOF
3376if ac_fn_c_try_cpp "$LINENO"; then :
3377
3378else
3379  # Broken: fails on valid input.
3380continue
3381fi
3382rm -f conftest.err conftest.i conftest.$ac_ext
3383
3384  # OK, works on sane cases.  Now check whether nonexistent headers
3385  # can be detected and how.
3386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387/* end confdefs.h.  */
3388#include <ac_nonexistent.h>
3389_ACEOF
3390if ac_fn_c_try_cpp "$LINENO"; then :
3391  # Broken: success on invalid input.
3392continue
3393else
3394  # Passes both tests.
3395ac_preproc_ok=:
3396break
3397fi
3398rm -f conftest.err conftest.i conftest.$ac_ext
3399
3400done
3401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3402rm -f conftest.i conftest.err conftest.$ac_ext
3403if $ac_preproc_ok; then :
3404  break
3405fi
3406
3407    done
3408    ac_cv_prog_CPP=$CPP
3409
3410fi
3411  CPP=$ac_cv_prog_CPP
3412else
3413  ac_cv_prog_CPP=$CPP
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3416$as_echo "$CPP" >&6; }
3417ac_preproc_ok=false
3418for ac_c_preproc_warn_flag in '' yes
3419do
3420  # Use a header file that comes with gcc, so configuring glibc
3421  # with a fresh cross-compiler works.
3422  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423  # <limits.h> exists even on freestanding compilers.
3424  # On the NeXT, cc -E runs the code through the compiler's parser,
3425  # not just through cpp. "Syntax error" is here to catch this case.
3426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h.  */
3428#ifdef __STDC__
3429# include <limits.h>
3430#else
3431# include <assert.h>
3432#endif
3433		     Syntax error
3434_ACEOF
3435if ac_fn_c_try_cpp "$LINENO"; then :
3436
3437else
3438  # Broken: fails on valid input.
3439continue
3440fi
3441rm -f conftest.err conftest.i conftest.$ac_ext
3442
3443  # OK, works on sane cases.  Now check whether nonexistent headers
3444  # can be detected and how.
3445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446/* end confdefs.h.  */
3447#include <ac_nonexistent.h>
3448_ACEOF
3449if ac_fn_c_try_cpp "$LINENO"; then :
3450  # Broken: success on invalid input.
3451continue
3452else
3453  # Passes both tests.
3454ac_preproc_ok=:
3455break
3456fi
3457rm -f conftest.err conftest.i conftest.$ac_ext
3458
3459done
3460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461rm -f conftest.i conftest.err conftest.$ac_ext
3462if $ac_preproc_ok; then :
3463
3464else
3465  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3468See \`config.log' for more details" "$LINENO" 5; }
3469fi
3470
3471ac_ext=c
3472ac_cpp='$CPP $CPPFLAGS'
3473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
3477
3478
3479
3480# checks for native programs to generate building tool
3481
3482if test ${cross_compiling} = yes; then
3483  # Extract the first word of "${build}-gcc", so it can be a program name with args.
3484set dummy ${build}-gcc; ac_word=$2
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486$as_echo_n "checking for $ac_word... " >&6; }
3487if ${ac_cv_prog_CC_BUILD+:} false; then :
3488  $as_echo_n "(cached) " >&6
3489else
3490  if test -n "$CC_BUILD"; then
3491  ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3492else
3493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494for as_dir in $PATH
3495do
3496  IFS=$as_save_IFS
3497  test -z "$as_dir" && as_dir=.
3498    for ac_exec_ext in '' $ac_executable_extensions; do
3499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500    ac_cv_prog_CC_BUILD="${build}-gcc"
3501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502    break 2
3503  fi
3504done
3505  done
3506IFS=$as_save_IFS
3507
3508fi
3509fi
3510CC_BUILD=$ac_cv_prog_CC_BUILD
3511if test -n "$CC_BUILD"; then
3512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3513$as_echo "$CC_BUILD" >&6; }
3514else
3515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516$as_echo "no" >&6; }
3517fi
3518
3519
3520  test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
3521set dummy gcc; ac_word=$2
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523$as_echo_n "checking for $ac_word... " >&6; }
3524if ${ac_cv_prog_CC_BUILD+:} false; then :
3525  $as_echo_n "(cached) " >&6
3526else
3527  if test -n "$CC_BUILD"; then
3528  ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533  IFS=$as_save_IFS
3534  test -z "$as_dir" && as_dir=.
3535    for ac_exec_ext in '' $ac_executable_extensions; do
3536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537    ac_cv_prog_CC_BUILD="gcc"
3538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539    break 2
3540  fi
3541done
3542  done
3543IFS=$as_save_IFS
3544
3545fi
3546fi
3547CC_BUILD=$ac_cv_prog_CC_BUILD
3548if test -n "$CC_BUILD"; then
3549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3550$as_echo "$CC_BUILD" >&6; }
3551else
3552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553$as_echo "no" >&6; }
3554fi
3555
3556
3557  test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
3558set dummy cc; ac_word=$2
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560$as_echo_n "checking for $ac_word... " >&6; }
3561if ${ac_cv_prog_CC_BUILD+:} false; then :
3562  $as_echo_n "(cached) " >&6
3563else
3564  if test -n "$CC_BUILD"; then
3565  ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3566else
3567  ac_prog_rejected=no
3568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569for as_dir in $PATH
3570do
3571  IFS=$as_save_IFS
3572  test -z "$as_dir" && as_dir=.
3573    for ac_exec_ext in '' $ac_executable_extensions; do
3574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3575    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3576       ac_prog_rejected=yes
3577       continue
3578     fi
3579    ac_cv_prog_CC_BUILD="cc"
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
3587if test $ac_prog_rejected = yes; then
3588  # We found a bogon in the path, so make sure we never use it.
3589  set dummy $ac_cv_prog_CC_BUILD
3590  shift
3591  if test $# != 0; then
3592    # We chose a different compiler from the bogus one.
3593    # However, it has the same basename, so the bogon will be chosen
3594    # first if we set CC_BUILD to just the basename; use the full file name.
3595    shift
3596    ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
3597  fi
3598fi
3599fi
3600fi
3601CC_BUILD=$ac_cv_prog_CC_BUILD
3602if test -n "$CC_BUILD"; then
3603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3604$as_echo "$CC_BUILD" >&6; }
3605else
3606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607$as_echo "no" >&6; }
3608fi
3609
3610
3611  test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
3612
3613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
3614$as_echo_n "checking for suffix of native executables... " >&6; }
3615  rm -f a.* b.* a_out.exe conftest.*
3616  echo > conftest.c "int main() { return 0;}"
3617  ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
3618  rm -f conftest.c
3619  if test -x a.out -o -x b.out -o -x conftest; then
3620    EXEEXT_BUILD=""
3621  elif test -x a_out.exe -o -x conftest.exe; then
3622    EXEEXT_BUILD=".exe"
3623  elif test -x conftest.*; then
3624    EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
3625  fi
3626  rm -f a.* b.* a_out.exe conftest.*
3627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
3628$as_echo "$EXEEXT_BUILD" >&6; }
3629else
3630  CC_BUILD=${CC}
3631  EXEEXT_BUILD=${EXEEXT}
3632fi
3633
3634
3635
3636
3637
3638# auxiliary programs
3639
3640# Extract the first word of "rmdir", so it can be a program name with args.
3641set dummy rmdir; ac_word=$2
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643$as_echo_n "checking for $ac_word... " >&6; }
3644if ${ac_cv_prog_RMDIR+:} false; then :
3645  $as_echo_n "(cached) " >&6
3646else
3647  if test -n "$RMDIR"; then
3648  ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
3649else
3650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651for as_dir in $PATH
3652do
3653  IFS=$as_save_IFS
3654  test -z "$as_dir" && as_dir=.
3655    for ac_exec_ext in '' $ac_executable_extensions; do
3656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657    ac_cv_prog_RMDIR="rmdir"
3658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659    break 2
3660  fi
3661done
3662  done
3663IFS=$as_save_IFS
3664
3665fi
3666fi
3667RMDIR=$ac_cv_prog_RMDIR
3668if test -n "$RMDIR"; then
3669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
3670$as_echo "$RMDIR" >&6; }
3671else
3672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673$as_echo "no" >&6; }
3674fi
3675
3676
3677
3678
3679# Since this file will be finally moved to another directory we make
3680# the path of the install script absolute.  This small code snippet has
3681# been taken from automake's `ylwrap' script.
3682
3683# Find a good install program.  We prefer a C program (faster),
3684# so one script is as good as another.  But avoid the broken or
3685# incompatible versions:
3686# SysV /etc/install, /usr/sbin/install
3687# SunOS /usr/etc/install
3688# IRIX /sbin/install
3689# AIX /bin/install
3690# AmigaOS /C/install, which installs bootblocks on floppy discs
3691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3692# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3694# OS/2's system install, which has a completely different semantic
3695# ./install, which can be erroneously created by make from ./install.sh.
3696# Reject install programs that cannot install multiple files.
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3698$as_echo_n "checking for a BSD-compatible install... " >&6; }
3699if test -z "$INSTALL"; then
3700if ${ac_cv_path_install+:} false; then :
3701  $as_echo_n "(cached) " >&6
3702else
3703  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706  IFS=$as_save_IFS
3707  test -z "$as_dir" && as_dir=.
3708    # Account for people who put trailing slashes in PATH elements.
3709case $as_dir/ in #((
3710  ./ | .// | /[cC]/* | \
3711  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3712  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3713  /usr/ucb/* ) ;;
3714  *)
3715    # OSF1 and SCO ODT 3.0 have their own names for install.
3716    # Don't use installbsd from OSF since it installs stuff as root
3717    # by default.
3718    for ac_prog in ginstall scoinst install; do
3719      for ac_exec_ext in '' $ac_executable_extensions; do
3720	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3721	  if test $ac_prog = install &&
3722	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3723	    # AIX install.  It has an incompatible calling convention.
3724	    :
3725	  elif test $ac_prog = install &&
3726	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3727	    # program-specific install script used by HP pwplus--don't use.
3728	    :
3729	  else
3730	    rm -rf conftest.one conftest.two conftest.dir
3731	    echo one > conftest.one
3732	    echo two > conftest.two
3733	    mkdir conftest.dir
3734	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3735	      test -s conftest.one && test -s conftest.two &&
3736	      test -s conftest.dir/conftest.one &&
3737	      test -s conftest.dir/conftest.two
3738	    then
3739	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3740	      break 3
3741	    fi
3742	  fi
3743	fi
3744      done
3745    done
3746    ;;
3747esac
3748
3749  done
3750IFS=$as_save_IFS
3751
3752rm -rf conftest.one conftest.two conftest.dir
3753
3754fi
3755  if test "${ac_cv_path_install+set}" = set; then
3756    INSTALL=$ac_cv_path_install
3757  else
3758    # As a last resort, use the slow shell script.  Don't cache a
3759    # value for INSTALL within a source directory, because that will
3760    # break other packages using the cache if that directory is
3761    # removed, or if the value is a relative name.
3762    INSTALL=$ac_install_sh
3763  fi
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3766$as_echo "$INSTALL" >&6; }
3767
3768# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3769# It thinks the first close brace ends the variable substitution.
3770test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3771
3772test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3773
3774test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3775
3776case "$INSTALL" in
3777/*)
3778  ;;
3779*/*)
3780  INSTALL="`pwd`/$INSTALL"
3781  ;;
3782esac
3783
3784
3785# checks for header files
3786
3787
3788
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3790$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3791if ${ac_cv_path_GREP+:} false; then :
3792  $as_echo_n "(cached) " >&6
3793else
3794  if test -z "$GREP"; then
3795  ac_path_GREP_found=false
3796  # Loop through the user's path and test for each of PROGNAME-LIST
3797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3799do
3800  IFS=$as_save_IFS
3801  test -z "$as_dir" && as_dir=.
3802    for ac_prog in grep ggrep; do
3803    for ac_exec_ext in '' $ac_executable_extensions; do
3804      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3805      as_fn_executable_p "$ac_path_GREP" || continue
3806# Check for GNU ac_path_GREP and select it if it is found.
3807  # Check for GNU $ac_path_GREP
3808case `"$ac_path_GREP" --version 2>&1` in
3809*GNU*)
3810  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3811*)
3812  ac_count=0
3813  $as_echo_n 0123456789 >"conftest.in"
3814  while :
3815  do
3816    cat "conftest.in" "conftest.in" >"conftest.tmp"
3817    mv "conftest.tmp" "conftest.in"
3818    cp "conftest.in" "conftest.nl"
3819    $as_echo 'GREP' >> "conftest.nl"
3820    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822    as_fn_arith $ac_count + 1 && ac_count=$as_val
3823    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3824      # Best one so far, save it but keep looking for a better one
3825      ac_cv_path_GREP="$ac_path_GREP"
3826      ac_path_GREP_max=$ac_count
3827    fi
3828    # 10*(2^10) chars as input seems more than enough
3829    test $ac_count -gt 10 && break
3830  done
3831  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832esac
3833
3834      $ac_path_GREP_found && break 3
3835    done
3836  done
3837  done
3838IFS=$as_save_IFS
3839  if test -z "$ac_cv_path_GREP"; then
3840    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3841  fi
3842else
3843  ac_cv_path_GREP=$GREP
3844fi
3845
3846fi
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3848$as_echo "$ac_cv_path_GREP" >&6; }
3849 GREP="$ac_cv_path_GREP"
3850
3851
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3853$as_echo_n "checking for egrep... " >&6; }
3854if ${ac_cv_path_EGREP+:} false; then :
3855  $as_echo_n "(cached) " >&6
3856else
3857  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3858   then ac_cv_path_EGREP="$GREP -E"
3859   else
3860     if test -z "$EGREP"; then
3861  ac_path_EGREP_found=false
3862  # Loop through the user's path and test for each of PROGNAME-LIST
3863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3865do
3866  IFS=$as_save_IFS
3867  test -z "$as_dir" && as_dir=.
3868    for ac_prog in egrep; do
3869    for ac_exec_ext in '' $ac_executable_extensions; do
3870      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3871      as_fn_executable_p "$ac_path_EGREP" || continue
3872# Check for GNU ac_path_EGREP and select it if it is found.
3873  # Check for GNU $ac_path_EGREP
3874case `"$ac_path_EGREP" --version 2>&1` in
3875*GNU*)
3876  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3877*)
3878  ac_count=0
3879  $as_echo_n 0123456789 >"conftest.in"
3880  while :
3881  do
3882    cat "conftest.in" "conftest.in" >"conftest.tmp"
3883    mv "conftest.tmp" "conftest.in"
3884    cp "conftest.in" "conftest.nl"
3885    $as_echo 'EGREP' >> "conftest.nl"
3886    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3887    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3888    as_fn_arith $ac_count + 1 && ac_count=$as_val
3889    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3890      # Best one so far, save it but keep looking for a better one
3891      ac_cv_path_EGREP="$ac_path_EGREP"
3892      ac_path_EGREP_max=$ac_count
3893    fi
3894    # 10*(2^10) chars as input seems more than enough
3895    test $ac_count -gt 10 && break
3896  done
3897  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3898esac
3899
3900      $ac_path_EGREP_found && break 3
3901    done
3902  done
3903  done
3904IFS=$as_save_IFS
3905  if test -z "$ac_cv_path_EGREP"; then
3906    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3907  fi
3908else
3909  ac_cv_path_EGREP=$EGREP
3910fi
3911
3912   fi
3913fi
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3915$as_echo "$ac_cv_path_EGREP" >&6; }
3916 EGREP="$ac_cv_path_EGREP"
3917
3918
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3920$as_echo_n "checking for ANSI C header files... " >&6; }
3921if ${ac_cv_header_stdc+:} false; then :
3922  $as_echo_n "(cached) " >&6
3923else
3924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h.  */
3926#include <stdlib.h>
3927#include <stdarg.h>
3928#include <string.h>
3929#include <float.h>
3930
3931int
3932main ()
3933{
3934
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939if ac_fn_c_try_compile "$LINENO"; then :
3940  ac_cv_header_stdc=yes
3941else
3942  ac_cv_header_stdc=no
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945
3946if test $ac_cv_header_stdc = yes; then
3947  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h.  */
3950#include <string.h>
3951
3952_ACEOF
3953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3954  $EGREP "memchr" >/dev/null 2>&1; then :
3955
3956else
3957  ac_cv_header_stdc=no
3958fi
3959rm -f conftest*
3960
3961fi
3962
3963if test $ac_cv_header_stdc = yes; then
3964  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966/* end confdefs.h.  */
3967#include <stdlib.h>
3968
3969_ACEOF
3970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971  $EGREP "free" >/dev/null 2>&1; then :
3972
3973else
3974  ac_cv_header_stdc=no
3975fi
3976rm -f conftest*
3977
3978fi
3979
3980if test $ac_cv_header_stdc = yes; then
3981  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3982  if test "$cross_compiling" = yes; then :
3983  :
3984else
3985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h.  */
3987#include <ctype.h>
3988#include <stdlib.h>
3989#if ((' ' & 0x0FF) == 0x020)
3990# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3991# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3992#else
3993# define ISLOWER(c) \
3994		   (('a' <= (c) && (c) <= 'i') \
3995		     || ('j' <= (c) && (c) <= 'r') \
3996		     || ('s' <= (c) && (c) <= 'z'))
3997# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3998#endif
3999
4000#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4001int
4002main ()
4003{
4004  int i;
4005  for (i = 0; i < 256; i++)
4006    if (XOR (islower (i), ISLOWER (i))
4007	|| toupper (i) != TOUPPER (i))
4008      return 2;
4009  return 0;
4010}
4011_ACEOF
4012if ac_fn_c_try_run "$LINENO"; then :
4013
4014else
4015  ac_cv_header_stdc=no
4016fi
4017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4018  conftest.$ac_objext conftest.beam conftest.$ac_ext
4019fi
4020
4021fi
4022fi
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4024$as_echo "$ac_cv_header_stdc" >&6; }
4025if test $ac_cv_header_stdc = yes; then
4026
4027$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4028
4029fi
4030
4031# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4032for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4033		  inttypes.h stdint.h unistd.h
4034do :
4035  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4036ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4037"
4038if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4039  cat >>confdefs.h <<_ACEOF
4040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4041_ACEOF
4042
4043fi
4044
4045done
4046
4047
4048for ac_header in fcntl.h unistd.h
4049do :
4050  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4051ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4052if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4053  cat >>confdefs.h <<_ACEOF
4054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055_ACEOF
4056
4057fi
4058
4059done
4060
4061
4062
4063# checks for typedefs, structures, and compiler characteristics
4064
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4066$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4067if ${ac_cv_c_const+:} false; then :
4068  $as_echo_n "(cached) " >&6
4069else
4070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h.  */
4072
4073int
4074main ()
4075{
4076
4077#ifndef __cplusplus
4078  /* Ultrix mips cc rejects this sort of thing.  */
4079  typedef int charset[2];
4080  const charset cs = { 0, 0 };
4081  /* SunOS 4.1.1 cc rejects this.  */
4082  char const *const *pcpcc;
4083  char **ppc;
4084  /* NEC SVR4.0.2 mips cc rejects this.  */
4085  struct point {int x, y;};
4086  static struct point const zero = {0,0};
4087  /* AIX XL C 1.02.0.0 rejects this.
4088     It does not let you subtract one const X* pointer from another in
4089     an arm of an if-expression whose if-part is not a constant
4090     expression */
4091  const char *g = "string";
4092  pcpcc = &g + (g ? g-g : 0);
4093  /* HPUX 7.0 cc rejects these. */
4094  ++pcpcc;
4095  ppc = (char**) pcpcc;
4096  pcpcc = (char const *const *) ppc;
4097  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4098    char tx;
4099    char *t = &tx;
4100    char const *s = 0 ? (char *) 0 : (char const *) 0;
4101
4102    *t++ = 0;
4103    if (s) return 0;
4104  }
4105  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4106    int x[] = {25, 17};
4107    const int *foo = &x[0];
4108    ++foo;
4109  }
4110  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4111    typedef const int *iptr;
4112    iptr p = 0;
4113    ++p;
4114  }
4115  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4116       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4117    struct s { int j; const int *ap[3]; } bx;
4118    struct s *b = &bx; b->j = 5;
4119  }
4120  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4121    const int foo = 10;
4122    if (!foo) return 0;
4123  }
4124  return !cs[0] && !zero.x;
4125#endif
4126
4127  ;
4128  return 0;
4129}
4130_ACEOF
4131if ac_fn_c_try_compile "$LINENO"; then :
4132  ac_cv_c_const=yes
4133else
4134  ac_cv_c_const=no
4135fi
4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4139$as_echo "$ac_cv_c_const" >&6; }
4140if test $ac_cv_c_const = no; then
4141
4142$as_echo "#define const /**/" >>confdefs.h
4143
4144fi
4145
4146# The cast to long int works around a bug in the HP C Compiler
4147# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4148# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4149# This bug is HP SR number 8606223364.
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4151$as_echo_n "checking size of int... " >&6; }
4152if ${ac_cv_sizeof_int+:} false; then :
4153  $as_echo_n "(cached) " >&6
4154else
4155  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
4156
4157else
4158  if test "$ac_cv_type_int" = yes; then
4159     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4161as_fn_error 77 "cannot compute sizeof (int)
4162See \`config.log' for more details" "$LINENO" 5; }
4163   else
4164     ac_cv_sizeof_int=0
4165   fi
4166fi
4167
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4170$as_echo "$ac_cv_sizeof_int" >&6; }
4171
4172
4173
4174cat >>confdefs.h <<_ACEOF
4175#define SIZEOF_INT $ac_cv_sizeof_int
4176_ACEOF
4177
4178
4179# The cast to long int works around a bug in the HP C Compiler
4180# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4181# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4182# This bug is HP SR number 8606223364.
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4184$as_echo_n "checking size of long... " >&6; }
4185if ${ac_cv_sizeof_long+:} false; then :
4186  $as_echo_n "(cached) " >&6
4187else
4188  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
4189
4190else
4191  if test "$ac_cv_type_long" = yes; then
4192     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194as_fn_error 77 "cannot compute sizeof (long)
4195See \`config.log' for more details" "$LINENO" 5; }
4196   else
4197     ac_cv_sizeof_long=0
4198   fi
4199fi
4200
4201fi
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4203$as_echo "$ac_cv_sizeof_long" >&6; }
4204
4205
4206
4207cat >>confdefs.h <<_ACEOF
4208#define SIZEOF_LONG $ac_cv_sizeof_long
4209_ACEOF
4210
4211
4212
4213
4214# check whether cpp computation of size of int and long in ftconfig.in works
4215
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpp computation of bit length in ftconfig.in works" >&5
4217$as_echo_n "checking whether cpp computation of bit length in ftconfig.in works... " >&6; }
4218orig_CPPFLAGS="${CPPFLAGS}"
4219CPPFLAGS="-I${srcdir} -I. ${CPPFLAGS}"
4220
4221ac_clean_files=
4222for f in ft2build.h ftoption.h ftstdlib.h; do
4223  if test ! -f $f; then
4224    ac_clean_files="$ac_clean_files $f"
4225    touch $f
4226  fi
4227done
4228
4229cat > conftest.c <<\_ACEOF
4230#include <limits.h>
4231#define FT_CONFIG_OPTIONS_H "ftoption.h"
4232#define FT_CONFIG_STANDARD_LIBRARY_H "ftstdlib.h"
4233#define FT_UINT_MAX  UINT_MAX
4234#define FT_ULONG_MAX ULONG_MAX
4235#include "ftconfig.in"
4236_ACEOF
4237echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
4238echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
4239echo >> conftest.c "#endif"
4240echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
4241echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
4242echo >> conftest.c "#endif"
4243
4244${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
4245eval `cat conftest.sh`
4246rm -f conftest.* $ac_clean_files
4247
4248if test x != "x${ac_cpp_ft_sizeof_int}" \
4249   -a x != x"${ac_cpp_ft_sizeof_long}"; then
4250  unset ft_use_autoconf_sizeof_types
4251else
4252  ft_use_autoconf_sizeof_types=yes
4253fi
4254
4255# Check whether --enable-biarch-config was given.
4256if test "${enable_biarch_config+set}" = set; then :
4257  enableval=$enable_biarch_config;
4258fi
4259
4260
4261case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
4262  :yes:yes:)
4263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken but use it" >&5
4264$as_echo "broken but use it" >&6; }
4265    unset ft_use_autoconf_sizeof_types
4266    ;;
4267  ::no:)
4268    { $as_echo "$as_me:${as_lineno-$LINENO}: result: works but ignore it" >&5
4269$as_echo "works but ignore it" >&6; }
4270    ft_use_autoconf_sizeof_types=yes
4271    ;;
4272  ::yes: | :::)
4273    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4274$as_echo "yes" >&6; }
4275    unset ft_use_autoconf_sizeof_types
4276    ;;
4277  *)
4278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279$as_echo "no" >&6; }
4280    ft_use_autoconf_sizeof_types=yes
4281    ;;
4282esac
4283
4284if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
4285
4286$as_echo "#define FT_USE_AUTOCONF_SIZEOF_TYPES /**/" >>confdefs.h
4287
4288fi
4289
4290CPPFLAGS="${orig_CPPFLAGS}"
4291
4292
4293# checks for library functions
4294
4295# Here we check whether we can use our mmap file component.
4296
4297# Check whether --enable-mmap was given.
4298if test "${enable_mmap+set}" = set; then :
4299  enableval=$enable_mmap; enable_mmap="no"
4300else
4301  enable_mmap="yes"
4302fi
4303
4304if test "x${enable_mmap}" != "xno"; then
4305
4306
4307
4308  for ac_header in $ac_header_list
4309do :
4310  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4311ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4312"
4313if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4314  cat >>confdefs.h <<_ACEOF
4315#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316_ACEOF
4317
4318fi
4319
4320done
4321
4322
4323
4324
4325
4326
4327
4328
4329for ac_func in getpagesize
4330do :
4331  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4332if test "x$ac_cv_func_getpagesize" = xyes; then :
4333  cat >>confdefs.h <<_ACEOF
4334#define HAVE_GETPAGESIZE 1
4335_ACEOF
4336
4337fi
4338done
4339
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4341$as_echo_n "checking for working mmap... " >&6; }
4342if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4343  $as_echo_n "(cached) " >&6
4344else
4345  if test "$cross_compiling" = yes; then :
4346  ac_cv_func_mmap_fixed_mapped=no
4347else
4348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349/* end confdefs.h.  */
4350$ac_includes_default
4351/* malloc might have been renamed as rpl_malloc. */
4352#undef malloc
4353
4354/* Thanks to Mike Haertel and Jim Avera for this test.
4355   Here is a matrix of mmap possibilities:
4356	mmap private not fixed
4357	mmap private fixed at somewhere currently unmapped
4358	mmap private fixed at somewhere already mapped
4359	mmap shared not fixed
4360	mmap shared fixed at somewhere currently unmapped
4361	mmap shared fixed at somewhere already mapped
4362   For private mappings, we should verify that changes cannot be read()
4363   back from the file, nor mmap's back from the file at a different
4364   address.  (There have been systems where private was not correctly
4365   implemented like the infamous i386 svr4.0, and systems where the
4366   VM page cache was not coherent with the file system buffer cache
4367   like early versions of FreeBSD and possibly contemporary NetBSD.)
4368   For shared mappings, we should conversely verify that changes get
4369   propagated back to all the places they're supposed to be.
4370
4371   Grep wants private fixed already mapped.
4372   The main things grep needs to know about mmap are:
4373   * does it exist and is it safe to write into the mmap'd area
4374   * how to use it (BSD variants)  */
4375
4376#include <fcntl.h>
4377#include <sys/mman.h>
4378
4379#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4380char *malloc ();
4381#endif
4382
4383/* This mess was copied from the GNU getpagesize.h.  */
4384#ifndef HAVE_GETPAGESIZE
4385# ifdef _SC_PAGESIZE
4386#  define getpagesize() sysconf(_SC_PAGESIZE)
4387# else /* no _SC_PAGESIZE */
4388#  ifdef HAVE_SYS_PARAM_H
4389#   include <sys/param.h>
4390#   ifdef EXEC_PAGESIZE
4391#    define getpagesize() EXEC_PAGESIZE
4392#   else /* no EXEC_PAGESIZE */
4393#    ifdef NBPG
4394#     define getpagesize() NBPG * CLSIZE
4395#     ifndef CLSIZE
4396#      define CLSIZE 1
4397#     endif /* no CLSIZE */
4398#    else /* no NBPG */
4399#     ifdef NBPC
4400#      define getpagesize() NBPC
4401#     else /* no NBPC */
4402#      ifdef PAGESIZE
4403#       define getpagesize() PAGESIZE
4404#      endif /* PAGESIZE */
4405#     endif /* no NBPC */
4406#    endif /* no NBPG */
4407#   endif /* no EXEC_PAGESIZE */
4408#  else /* no HAVE_SYS_PARAM_H */
4409#   define getpagesize() 8192	/* punt totally */
4410#  endif /* no HAVE_SYS_PARAM_H */
4411# endif /* no _SC_PAGESIZE */
4412
4413#endif /* no HAVE_GETPAGESIZE */
4414
4415int
4416main ()
4417{
4418  char *data, *data2, *data3;
4419  const char *cdata2;
4420  int i, pagesize;
4421  int fd, fd2;
4422
4423  pagesize = getpagesize ();
4424
4425  /* First, make a file with some known garbage in it. */
4426  data = (char *) malloc (pagesize);
4427  if (!data)
4428    return 1;
4429  for (i = 0; i < pagesize; ++i)
4430    *(data + i) = rand ();
4431  umask (0);
4432  fd = creat ("conftest.mmap", 0600);
4433  if (fd < 0)
4434    return 2;
4435  if (write (fd, data, pagesize) != pagesize)
4436    return 3;
4437  close (fd);
4438
4439  /* Next, check that the tail of a page is zero-filled.  File must have
4440     non-zero length, otherwise we risk SIGBUS for entire page.  */
4441  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4442  if (fd2 < 0)
4443    return 4;
4444  cdata2 = "";
4445  if (write (fd2, cdata2, 1) != 1)
4446    return 5;
4447  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4448  if (data2 == MAP_FAILED)
4449    return 6;
4450  for (i = 0; i < pagesize; ++i)
4451    if (*(data2 + i))
4452      return 7;
4453  close (fd2);
4454  if (munmap (data2, pagesize))
4455    return 8;
4456
4457  /* Next, try to mmap the file at a fixed address which already has
4458     something else allocated at it.  If we can, also make sure that
4459     we see the same garbage.  */
4460  fd = open ("conftest.mmap", O_RDWR);
4461  if (fd < 0)
4462    return 9;
4463  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4464		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
4465    return 10;
4466  for (i = 0; i < pagesize; ++i)
4467    if (*(data + i) != *(data2 + i))
4468      return 11;
4469
4470  /* Finally, make sure that changes to the mapped area do not
4471     percolate back to the file as seen by read().  (This is a bug on
4472     some variants of i386 svr4.0.)  */
4473  for (i = 0; i < pagesize; ++i)
4474    *(data2 + i) = *(data2 + i) + 1;
4475  data3 = (char *) malloc (pagesize);
4476  if (!data3)
4477    return 12;
4478  if (read (fd, data3, pagesize) != pagesize)
4479    return 13;
4480  for (i = 0; i < pagesize; ++i)
4481    if (*(data + i) != *(data3 + i))
4482      return 14;
4483  close (fd);
4484  return 0;
4485}
4486_ACEOF
4487if ac_fn_c_try_run "$LINENO"; then :
4488  ac_cv_func_mmap_fixed_mapped=yes
4489else
4490  ac_cv_func_mmap_fixed_mapped=no
4491fi
4492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4493  conftest.$ac_objext conftest.beam conftest.$ac_ext
4494fi
4495
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4498$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4499if test $ac_cv_func_mmap_fixed_mapped = yes; then
4500
4501$as_echo "#define HAVE_MMAP 1" >>confdefs.h
4502
4503fi
4504rm -f conftest.mmap conftest.txt
4505
4506fi
4507if test "x${enable_mmap}" = "xno" \
4508   -o "$ac_cv_func_mmap_fixed_mapped" != "yes"; then
4509  FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
4510else
4511  FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
4512
4513  ac_fn_c_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
4514
4515#ifdef HAVE_UNISTD_H
4516#include <unistd.h>
4517#endif
4518#include <sys/mman.h>
4519
4520
4521"
4522if test "x$ac_cv_have_decl_munmap" = xyes; then :
4523  ac_have_decl=1
4524else
4525  ac_have_decl=0
4526fi
4527
4528cat >>confdefs.h <<_ACEOF
4529#define HAVE_DECL_MUNMAP $ac_have_decl
4530_ACEOF
4531
4532
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
4534$as_echo_n "checking for munmap's first parameter type... " >&6; }
4535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h.  */
4537
4538
4539
4540#include <unistd.h>
4541#include <sys/mman.h>
4542int munmap(void *, size_t);
4543
4544
4545
4546_ACEOF
4547if ac_fn_c_try_compile "$LINENO"; then :
4548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: void *" >&5
4549$as_echo "void *" >&6; }
4550
4551$as_echo "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
4552
4553else
4554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
4555$as_echo "char *" >&6; }
4556fi
4557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558
4559fi
4560
4561
4562for ac_func in memcpy memmove
4563do :
4564  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4565ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4566if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4567  cat >>confdefs.h <<_ACEOF
4568#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4569_ACEOF
4570
4571fi
4572done
4573
4574
4575
4576# get compiler flags right
4577#  we try to make the compiler work for C89-strict source.
4578#  even if C compiler is GCC and C89 flags are available,
4579#  some system headers (e.g. Android Bionic libc) is broken
4580#  in C89 mode. we have to check the compilation finishes
4581#  successfully.
4582#
4583if test "x$GCC" = xyes; then
4584  XX_CFLAGS="-Wall"
4585  XX_ANSIFLAGS=""
4586  for a in -pedantic -ansi
4587  do
4588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc compiler flag ${a} to assure ANSI C works correctly" >&5
4589$as_echo_n "checking gcc compiler flag ${a} to assure ANSI C works correctly... " >&6; }
4590    orig_CFLAGS="${CFLAGS}"
4591    CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
4592    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h.  */
4594
4595        #include <stdio.h>
4596int
4597main ()
4598{
4599{puts("");return 0;}
4600  ;
4601  return 0;
4602}
4603
4604_ACEOF
4605if ac_fn_c_try_compile "$LINENO"; then :
4606
4607        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, add it to XX_ANSIFLAGS" >&5
4608$as_echo "ok, add it to XX_ANSIFLAGS" >&6; }
4609        XX_ANSIFLAGS="${XX_ANSIFLAGS} ${a}"
4610
4611else
4612
4613        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614$as_echo "no" >&6; }
4615
4616fi
4617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618    CFLAGS="${orig_CFLAGS}"
4619  done
4620else
4621  case "$host" in
4622  *-dec-osf*)
4623    CFLAGS=
4624    XX_CFLAGS="-std1 -g3"
4625    XX_ANSIFLAGS=
4626    ;;
4627  *)
4628    XX_CFLAGS=
4629    XX_ANSIFLAGS=
4630    ;;
4631  esac
4632fi
4633
4634
4635
4636
4637# check for system zlib
4638
4639# don't quote AS_HELP_STRING!
4640
4641# Check whether --with-zlib was given.
4642if test "${with_zlib+set}" = set; then :
4643  withval=$with_zlib;
4644fi
4645
4646if test x$with_zlib != xno && test -z "$LIBZ"; then
4647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
4648$as_echo_n "checking for gzsetparams in -lz... " >&6; }
4649if ${ac_cv_lib_z_gzsetparams+:} false; then :
4650  $as_echo_n "(cached) " >&6
4651else
4652  ac_check_lib_save_LIBS=$LIBS
4653LIBS="-lz  $LIBS"
4654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h.  */
4656
4657/* Override any GCC internal prototype to avoid an error.
4658   Use char because int might match the return type of a GCC
4659   builtin and then its argument prototype would still apply.  */
4660#ifdef __cplusplus
4661extern "C"
4662#endif
4663char gzsetparams ();
4664int
4665main ()
4666{
4667return gzsetparams ();
4668  ;
4669  return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_link "$LINENO"; then :
4673  ac_cv_lib_z_gzsetparams=yes
4674else
4675  ac_cv_lib_z_gzsetparams=no
4676fi
4677rm -f core conftest.err conftest.$ac_objext \
4678    conftest$ac_exeext conftest.$ac_ext
4679LIBS=$ac_check_lib_save_LIBS
4680fi
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
4682$as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
4683if test "x$ac_cv_lib_z_gzsetparams" = xyes; then :
4684  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4685if test "x$ac_cv_header_zlib_h" = xyes; then :
4686  LIBZ='-lz'
4687fi
4688
4689
4690fi
4691
4692fi
4693if test x$with_zlib != xno && test -n "$LIBZ"; then
4694  SYSTEM_ZLIB=yes
4695fi
4696
4697# check for system libbz2
4698
4699# don't quote AS_HELP_STRING!
4700
4701# Check whether --with-bzip2 was given.
4702if test "${with_bzip2+set}" = set; then :
4703  withval=$with_bzip2;
4704fi
4705
4706if test x$with_bzip2 != xno && test -z "$LIBBZ2"; then
4707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
4708$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
4709if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
4710  $as_echo_n "(cached) " >&6
4711else
4712  ac_check_lib_save_LIBS=$LIBS
4713LIBS="-lbz2  $LIBS"
4714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h.  */
4716
4717/* Override any GCC internal prototype to avoid an error.
4718   Use char because int might match the return type of a GCC
4719   builtin and then its argument prototype would still apply.  */
4720#ifdef __cplusplus
4721extern "C"
4722#endif
4723char BZ2_bzDecompress ();
4724int
4725main ()
4726{
4727return BZ2_bzDecompress ();
4728  ;
4729  return 0;
4730}
4731_ACEOF
4732if ac_fn_c_try_link "$LINENO"; then :
4733  ac_cv_lib_bz2_BZ2_bzDecompress=yes
4734else
4735  ac_cv_lib_bz2_BZ2_bzDecompress=no
4736fi
4737rm -f core conftest.err conftest.$ac_objext \
4738    conftest$ac_exeext conftest.$ac_ext
4739LIBS=$ac_check_lib_save_LIBS
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
4742$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
4743if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
4744  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
4745if test "x$ac_cv_header_bzlib_h" = xyes; then :
4746  LIBBZ2='-lbz2'
4747fi
4748
4749
4750fi
4751
4752fi
4753if test x$with_bzip2 != xno && test -n "$LIBBZ2"; then
4754  SYSTEM_LIBBZ2=yes
4755fi
4756
4757# Some options handling SDKs/archs in CFLAGS should be copied
4758# to LDFLAGS. Apple TechNote 2137 recommends to include these
4759# options in CFLAGS but not in LDFLAGS.
4760
4761save_config_args=$*
4762set dummy ${CFLAGS}
4763i=1
4764while test $i -le $#
4765do
4766  c=$1
4767
4768  case "${c}" in
4769  -isysroot|-arch) # options taking 1 argument
4770    a=$2
4771    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
4772$as_echo_n "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
4773    if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
4774    then
4775      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4776$as_echo "yes" >&6; }
4777    else
4778      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
4779$as_echo "no, copy to LDFLAGS" >&6; }
4780      LDFLAGS="${LDFLAGS} ${c} ${a}"
4781    fi
4782    shift 1
4783    ;;
4784  -m32|-m64|-march=*|-mcpu=*) # options taking no argument
4785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c}" >&5
4786$as_echo_n "checking whether CFLAGS and LDFLAGS share ${c}... " >&6; }
4787    if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
4788    then
4789      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4790$as_echo "yes" >&6; }
4791    else
4792      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
4793$as_echo "no, copy to LDFLAGS" >&6; }
4794      LDFLAGS="${LDFLAGS} ${c}"
4795    fi
4796    ;;
4797  # *)
4798  #   AC_MSG_RESULT([${c} is not copied to LDFLAGS])
4799  #   ;;
4800  esac
4801
4802  shift 1
4803done
4804set ${save_config_args}
4805
4806
4807# Whether to use Mac OS resource-based fonts.
4808
4809ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
4810
4811# don't quote AS_HELP_STRING!
4812
4813# Check whether --with-old-mac-fonts was given.
4814if test "${with_old_mac_fonts+set}" = set; then :
4815  withval=$with_old_mac_fonts;
4816fi
4817
4818if test x$with_old_mac_fonts = xyes; then
4819  orig_LDFLAGS="${LDFLAGS}"
4820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
4821$as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
4822  FT2_EXTRA_LIBS="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
4823  LDFLAGS="$LDFLAGS $FT2_EXTRA_LIBS"
4824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825/* end confdefs.h.  */
4826
4827
4828
4829#if defined(__GNUC__) && defined(__APPLE_CC__)
4830# include <CoreServices/CoreServices.h>
4831# include <ApplicationServices/ApplicationServices.h>
4832#else
4833# include <ConditionalMacros.h>
4834# include <Files.h>
4835#endif
4836
4837
4838int
4839main ()
4840{
4841
4842
4843        short res = 0;
4844
4845
4846        UseResFile( res );
4847
4848
4849  ;
4850  return 0;
4851}
4852_ACEOF
4853if ac_fn_c_try_link "$LINENO"; then :
4854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4855$as_echo "ok" >&6; }
4856     ftmac_c='ftmac.c'
4857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
4858$as_echo_n "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
4859     orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
4860     CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
4861     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h.  */
4863
4864
4865
4866#if defined(__GNUC__) && defined(__APPLE_CC__)
4867# include <CoreServices/CoreServices.h>
4868# include <ApplicationServices/ApplicationServices.h>
4869#else
4870# include <ConditionalMacros.h>
4871# include <Files.h>
4872#endif
4873
4874
4875int
4876main ()
4877{
4878
4879
4880           /* OSHostByteOrder() is typed as OS_INLINE */
4881           int32_t  os_byte_order = OSHostByteOrder();
4882
4883
4884           if ( OSBigEndian != os_byte_order )
4885             return 1;
4886
4887
4888  ;
4889  return 0;
4890}
4891_ACEOF
4892if ac_fn_c_try_compile "$LINENO"; then :
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4894$as_echo "ok" >&6; }
4895        CFLAGS="$orig_CFLAGS"
4896        CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
4897
4898else
4899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
4900$as_echo "no, ANSI incompatible" >&6; }
4901        CFLAGS="$orig_CFLAGS"
4902
4903fi
4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
4906$as_echo_n "checking type ResourceIndex... " >&6; }
4907     orig_CFLAGS="$CFLAGS"
4908     CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
4909     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910/* end confdefs.h.  */
4911
4912
4913
4914#if defined(__GNUC__) && defined(__APPLE_CC__)
4915# include <CoreServices/CoreServices.h>
4916# include <ApplicationServices/ApplicationServices.h>
4917#else
4918# include <ConditionalMacros.h>
4919# include <Files.h>
4920# include <Resources.h>
4921#endif
4922
4923
4924int
4925main ()
4926{
4927
4928
4929           ResourceIndex i = 0;
4930           return i;
4931
4932
4933  ;
4934  return 0;
4935}
4936_ACEOF
4937if ac_fn_c_try_compile "$LINENO"; then :
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4939$as_echo "ok" >&6; }
4940        CFLAGS="$orig_CFLAGS"
4941        CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
4942
4943else
4944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945$as_echo "no" >&6; }
4946        CFLAGS="$orig_CFLAGS"
4947        CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
4948
4949fi
4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951else
4952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4953$as_echo "not found" >&6; }
4954     FT2_EXTRA_LIBS=""
4955     LDFLAGS="${orig_LDFLAGS}"
4956     CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
4957fi
4958rm -f core conftest.err conftest.$ac_objext \
4959    conftest$ac_exeext conftest.$ac_ext
4960else
4961  case x$host_os in
4962  xdarwin*)
4963        CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
4964    ;;
4965  *)
4966    ;;
4967  esac
4968fi
4969
4970
4971# Whether to use FileManager which is deprecated since Mac OS X 10.4.
4972
4973
4974# Check whether --with-fsspec was given.
4975if test "${with_fsspec+set}" = set; then :
4976  withval=$with_fsspec;
4977fi
4978
4979if test x$with_fsspec = xno; then
4980  CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
4981elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
4982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
4983$as_echo_n "checking FSSpec-based FileManager... " >&6; }
4984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985/* end confdefs.h.  */
4986
4987
4988
4989#if defined(__GNUC__) && defined(__APPLE_CC__)
4990# include <CoreServices/CoreServices.h>
4991# include <ApplicationServices/ApplicationServices.h>
4992#else
4993# include <ConditionalMacros.h>
4994# include <Files.h>
4995#endif
4996
4997
4998int
4999main ()
5000{
5001
5002
5003        FCBPBPtr          paramBlock;
5004        short             vRefNum;
5005        long              dirID;
5006        ConstStr255Param  fileName;
5007        FSSpec*           spec;
5008
5009
5010        /* FSSpec functions: deprecated since Mac OS X 10.4 */
5011        PBGetFCBInfoSync( paramBlock );
5012        FSMakeFSSpec( vRefNum, dirID, fileName, spec );
5013
5014
5015  ;
5016  return 0;
5017}
5018_ACEOF
5019if ac_fn_c_try_link "$LINENO"; then :
5020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5021$as_echo "ok" >&6; }
5022     CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
5023else
5024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5025$as_echo "not found" >&6; }
5026     CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
5027fi
5028rm -f core conftest.err conftest.$ac_objext \
5029    conftest$ac_exeext conftest.$ac_ext
5030fi
5031
5032
5033# Whether to use FileManager in Carbon since MacOS 9.x.
5034
5035
5036# Check whether --with-fsref was given.
5037if test "${with_fsref+set}" = set; then :
5038  withval=$with_fsref;
5039fi
5040
5041if test x$with_fsref = xno; then
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5043*** WARNING
5044    FreeType2 built without FSRef API cannot load
5045    data-fork fonts on MacOS, except of XXX.dfont.
5046    " >&5
5047$as_echo "$as_me: WARNING:
5048*** WARNING
5049    FreeType2 built without FSRef API cannot load
5050    data-fork fonts on MacOS, except of XXX.dfont.
5051    " >&2;}
5052  CFLAGS="$CFLAGS -DHAVE_FSREF=0"
5053elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
5054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
5055$as_echo_n "checking FSRef-based FileManager... " >&6; }
5056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h.  */
5058
5059
5060
5061#if defined(__GNUC__) && defined(__APPLE_CC__)
5062# include <CoreServices/CoreServices.h>
5063# include <ApplicationServices/ApplicationServices.h>
5064#else
5065# include <ConditionalMacros.h>
5066# include <Files.h>
5067#endif
5068
5069
5070int
5071main ()
5072{
5073
5074
5075        short                vRefNum;
5076        long                 dirID;
5077        ConstStr255Param     fileName;
5078
5079        Boolean*             isDirectory;
5080        UInt8*               path;
5081        SInt16               desiredRefNum;
5082        SInt16*              iterator;
5083        SInt16*              actualRefNum;
5084        HFSUniStr255*        outForkName;
5085        FSVolumeRefNum       volume;
5086        FSCatalogInfoBitmap  whichInfo;
5087        FSCatalogInfo*       catalogInfo;
5088        FSForkInfo*          forkInfo;
5089        FSRef*               ref;
5090
5091#if HAVE_FSSPEC
5092        FSSpec*              spec;
5093#endif
5094
5095        /* FSRef functions: no need to check? */
5096        FSGetForkCBInfo( desiredRefNum, volume, iterator,
5097                         actualRefNum, forkInfo, ref,
5098                         outForkName );
5099        FSPathMakeRef( path, ref, isDirectory );
5100
5101#if HAVE_FSSPEC
5102        FSpMakeFSRef ( spec, ref );
5103        FSGetCatalogInfo( ref, whichInfo, catalogInfo,
5104                          outForkName, spec, ref );
5105#endif
5106
5107  ;
5108  return 0;
5109}
5110_ACEOF
5111if ac_fn_c_try_link "$LINENO"; then :
5112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5113$as_echo "ok" >&6; }
5114     CFLAGS="$CFLAGS -DHAVE_FSREF=1"
5115else
5116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5117$as_echo "not found" >&6; }
5118     CFLAGS="$CFLAGS -DHAVE_FSREF=0"
5119fi
5120rm -f core conftest.err conftest.$ac_objext \
5121    conftest$ac_exeext conftest.$ac_ext
5122fi
5123
5124
5125# Whether to use QuickDraw API in ToolBox which is deprecated since
5126# Mac OS X 10.4.
5127
5128
5129# Check whether --with-quickdraw-toolbox was given.
5130if test "${with_quickdraw_toolbox+set}" = set; then :
5131  withval=$with_quickdraw_toolbox;
5132fi
5133
5134if test x$with_quickdraw_toolbox = xno; then
5135  CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
5136elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
5137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
5138$as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
5139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140/* end confdefs.h.  */
5141
5142
5143
5144#if defined(__GNUC__) && defined(__APPLE_CC__)
5145# include <CoreServices/CoreServices.h>
5146# include <ApplicationServices/ApplicationServices.h>
5147#else
5148# include <ConditionalMacros.h>
5149# include <Fonts.h>
5150#endif
5151
5152
5153int
5154main ()
5155{
5156
5157
5158        Str255     familyName;
5159        SInt16     familyID   = 0;
5160        FMInput*   fmIn       = NULL;
5161        FMOutput*  fmOut      = NULL;
5162
5163
5164        GetFontName( familyID, familyName );
5165        GetFNum( familyName, &familyID );
5166        fmOut = FMSwapFont( fmIn );
5167
5168
5169  ;
5170  return 0;
5171}
5172_ACEOF
5173if ac_fn_c_try_link "$LINENO"; then :
5174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5175$as_echo "ok" >&6; }
5176     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
5177else
5178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5179$as_echo "not found" >&6; }
5180     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
5181fi
5182rm -f core conftest.err conftest.$ac_objext \
5183    conftest$ac_exeext conftest.$ac_ext
5184fi
5185
5186
5187# Whether to use QuickDraw API in Carbon which is deprecated since
5188# Mac OS X 10.4.
5189
5190
5191# Check whether --with-quickdraw-carbon was given.
5192if test "${with_quickdraw_carbon+set}" = set; then :
5193  withval=$with_quickdraw_carbon;
5194fi
5195
5196if test x$with_quickdraw_carbon = xno; then
5197  CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
5198elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
5200$as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
5201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202/* end confdefs.h.  */
5203
5204
5205
5206#if defined(__GNUC__) && defined(__APPLE_CC__)
5207# include <CoreServices/CoreServices.h>
5208# include <ApplicationServices/ApplicationServices.h>
5209#else
5210# include <ConditionalMacros.h>
5211# include <Fonts.h>
5212#endif
5213
5214
5215int
5216main ()
5217{
5218
5219
5220        FMFontFamilyIterator          famIter;
5221        FMFontFamily                  family;
5222        Str255                        famNameStr;
5223        FMFontFamilyInstanceIterator  instIter;
5224        FMFontStyle                   style;
5225        FMFontSize                    size;
5226        FMFont                        font;
5227        FSSpec*                       pathSpec;
5228
5229
5230        FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
5231                                    &famIter );
5232        FMGetNextFontFamily( &famIter, &family );
5233        FMGetFontFamilyName( family, famNameStr );
5234        FMCreateFontFamilyInstanceIterator( family, &instIter );
5235        FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
5236        FMDisposeFontFamilyInstanceIterator( &instIter );
5237        FMDisposeFontFamilyIterator( &famIter );
5238        FMGetFontContainer( font, pathSpec );
5239
5240
5241  ;
5242  return 0;
5243}
5244_ACEOF
5245if ac_fn_c_try_link "$LINENO"; then :
5246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5247$as_echo "ok" >&6; }
5248     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
5249else
5250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5251$as_echo "not found" >&6; }
5252     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
5253fi
5254rm -f core conftest.err conftest.$ac_objext \
5255    conftest$ac_exeext conftest.$ac_ext
5256fi
5257
5258
5259# Whether to use AppleTypeService since Mac OS X.
5260
5261# don't quote AS_HELP_STRING!
5262
5263# Check whether --with-ats was given.
5264if test "${with_ats+set}" = set; then :
5265  withval=$with_ats;
5266fi
5267
5268if test x$with_ats = xno; then
5269  CFLAGS="$CFLAGS -DHAVE_ATS=0"
5270elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
5272$as_echo_n "checking AppleTypeService functions... " >&6; }
5273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274/* end confdefs.h.  */
5275
5276
5277
5278#if defined(__GNUC__) && defined(__APPLE_CC__)
5279# include <CoreServices/CoreServices.h>
5280# include <ApplicationServices/ApplicationServices.h>
5281#else
5282# include <ConditionalMacros.h>
5283# include <Files.h>
5284#endif
5285
5286
5287int
5288main ()
5289{
5290
5291
5292        FSSpec*  pathSpec;
5293
5294
5295        ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
5296#if HAVE_FSSPEC
5297        ATSFontGetFileSpecification( 0, pathSpec );
5298#endif
5299
5300
5301  ;
5302  return 0;
5303}
5304_ACEOF
5305if ac_fn_c_try_link "$LINENO"; then :
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5307$as_echo "ok" >&6; }
5308     CFLAGS="$CFLAGS -DHAVE_ATS=1"
5309else
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5311$as_echo "not found" >&6; }
5312     CFLAGS="$CFLAGS -DHAVE_ATS=0"
5313fi
5314rm -f core conftest.err conftest.$ac_objext \
5315    conftest$ac_exeext conftest.$ac_ext
5316fi
5317
5318case "$CFLAGS" in
5319  *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
5320    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5321*** WARNING
5322    FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
5323    thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
5324    " >&5
5325$as_echo "$as_me: WARNING:
5326*** WARNING
5327    FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
5328    thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
5329    " >&2;}
5330    CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
5331    ;;
5332  *)
5333    ;;
5334esac
5335
5336
5337
5338
5339
5340
5341
5342
5343case `pwd` in
5344  *\ * | *\	*)
5345    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5346$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5347esac
5348
5349
5350
5351macro_version='2.4.2'
5352macro_revision='1.3337'
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366ltmain="$ac_aux_dir/ltmain.sh"
5367
5368# Backslashify metacharacters that are still active within
5369# double-quoted strings.
5370sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5371
5372# Same as above, but do not quote variable references.
5373double_quote_subst='s/\(["`\\]\)/\\\1/g'
5374
5375# Sed substitution to delay expansion of an escaped shell variable in a
5376# double_quote_subst'ed string.
5377delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5378
5379# Sed substitution to delay expansion of an escaped single quote.
5380delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5381
5382# Sed substitution to avoid accidental globbing in evaled expressions
5383no_glob_subst='s/\*/\\\*/g'
5384
5385ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5386ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5387ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5388
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5390$as_echo_n "checking how to print strings... " >&6; }
5391# Test print first, because it will be a builtin if present.
5392if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5393   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5394  ECHO='print -r --'
5395elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5396  ECHO='printf %s\n'
5397else
5398  # Use this function as a fallback that always works.
5399  func_fallback_echo ()
5400  {
5401    eval 'cat <<_LTECHO_EOF
5402$1
5403_LTECHO_EOF'
5404  }
5405  ECHO='func_fallback_echo'
5406fi
5407
5408# func_echo_all arg...
5409# Invoke $ECHO with all args, space-separated.
5410func_echo_all ()
5411{
5412    $ECHO ""
5413}
5414
5415case "$ECHO" in
5416  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5417$as_echo "printf" >&6; } ;;
5418  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5419$as_echo "print -r" >&6; } ;;
5420  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5421$as_echo "cat" >&6; } ;;
5422esac
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5438$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5439if ${ac_cv_path_SED+:} false; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5443     for ac_i in 1 2 3 4 5 6 7; do
5444       ac_script="$ac_script$as_nl$ac_script"
5445     done
5446     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5447     { ac_script=; unset ac_script;}
5448     if test -z "$SED"; then
5449  ac_path_SED_found=false
5450  # Loop through the user's path and test for each of PROGNAME-LIST
5451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454  IFS=$as_save_IFS
5455  test -z "$as_dir" && as_dir=.
5456    for ac_prog in sed gsed; do
5457    for ac_exec_ext in '' $ac_executable_extensions; do
5458      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5459      as_fn_executable_p "$ac_path_SED" || continue
5460# Check for GNU ac_path_SED and select it if it is found.
5461  # Check for GNU $ac_path_SED
5462case `"$ac_path_SED" --version 2>&1` in
5463*GNU*)
5464  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5465*)
5466  ac_count=0
5467  $as_echo_n 0123456789 >"conftest.in"
5468  while :
5469  do
5470    cat "conftest.in" "conftest.in" >"conftest.tmp"
5471    mv "conftest.tmp" "conftest.in"
5472    cp "conftest.in" "conftest.nl"
5473    $as_echo '' >> "conftest.nl"
5474    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5475    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5476    as_fn_arith $ac_count + 1 && ac_count=$as_val
5477    if test $ac_count -gt ${ac_path_SED_max-0}; then
5478      # Best one so far, save it but keep looking for a better one
5479      ac_cv_path_SED="$ac_path_SED"
5480      ac_path_SED_max=$ac_count
5481    fi
5482    # 10*(2^10) chars as input seems more than enough
5483    test $ac_count -gt 10 && break
5484  done
5485  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5486esac
5487
5488      $ac_path_SED_found && break 3
5489    done
5490  done
5491  done
5492IFS=$as_save_IFS
5493  if test -z "$ac_cv_path_SED"; then
5494    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5495  fi
5496else
5497  ac_cv_path_SED=$SED
5498fi
5499
5500fi
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5502$as_echo "$ac_cv_path_SED" >&6; }
5503 SED="$ac_cv_path_SED"
5504  rm -f conftest.sed
5505
5506test -z "$SED" && SED=sed
5507Xsed="$SED -e 1s/^X//"
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5520$as_echo_n "checking for fgrep... " >&6; }
5521if ${ac_cv_path_FGREP+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5525   then ac_cv_path_FGREP="$GREP -F"
5526   else
5527     if test -z "$FGREP"; then
5528  ac_path_FGREP_found=false
5529  # Loop through the user's path and test for each of PROGNAME-LIST
5530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5532do
5533  IFS=$as_save_IFS
5534  test -z "$as_dir" && as_dir=.
5535    for ac_prog in fgrep; do
5536    for ac_exec_ext in '' $ac_executable_extensions; do
5537      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5538      as_fn_executable_p "$ac_path_FGREP" || continue
5539# Check for GNU ac_path_FGREP and select it if it is found.
5540  # Check for GNU $ac_path_FGREP
5541case `"$ac_path_FGREP" --version 2>&1` in
5542*GNU*)
5543  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5544*)
5545  ac_count=0
5546  $as_echo_n 0123456789 >"conftest.in"
5547  while :
5548  do
5549    cat "conftest.in" "conftest.in" >"conftest.tmp"
5550    mv "conftest.tmp" "conftest.in"
5551    cp "conftest.in" "conftest.nl"
5552    $as_echo 'FGREP' >> "conftest.nl"
5553    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5554    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5555    as_fn_arith $ac_count + 1 && ac_count=$as_val
5556    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5557      # Best one so far, save it but keep looking for a better one
5558      ac_cv_path_FGREP="$ac_path_FGREP"
5559      ac_path_FGREP_max=$ac_count
5560    fi
5561    # 10*(2^10) chars as input seems more than enough
5562    test $ac_count -gt 10 && break
5563  done
5564  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5565esac
5566
5567      $ac_path_FGREP_found && break 3
5568    done
5569  done
5570  done
5571IFS=$as_save_IFS
5572  if test -z "$ac_cv_path_FGREP"; then
5573    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5574  fi
5575else
5576  ac_cv_path_FGREP=$FGREP
5577fi
5578
5579   fi
5580fi
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5582$as_echo "$ac_cv_path_FGREP" >&6; }
5583 FGREP="$ac_cv_path_FGREP"
5584
5585
5586test -z "$GREP" && GREP=grep
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606# Check whether --with-gnu-ld was given.
5607if test "${with_gnu_ld+set}" = set; then :
5608  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5609else
5610  with_gnu_ld=no
5611fi
5612
5613ac_prog=ld
5614if test "$GCC" = yes; then
5615  # Check if gcc -print-prog-name=ld gives a path.
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5617$as_echo_n "checking for ld used by $CC... " >&6; }
5618  case $host in
5619  *-*-mingw*)
5620    # gcc leaves a trailing carriage return which upsets mingw
5621    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5622  *)
5623    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5624  esac
5625  case $ac_prog in
5626    # Accept absolute paths.
5627    [\\/]* | ?:[\\/]*)
5628      re_direlt='/[^/][^/]*/\.\./'
5629      # Canonicalize the pathname of ld
5630      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5631      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5632	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5633      done
5634      test -z "$LD" && LD="$ac_prog"
5635      ;;
5636  "")
5637    # If it fails, then pretend we aren't using GCC.
5638    ac_prog=ld
5639    ;;
5640  *)
5641    # If it is relative, then search for the first ld in PATH.
5642    with_gnu_ld=unknown
5643    ;;
5644  esac
5645elif test "$with_gnu_ld" = yes; then
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5647$as_echo_n "checking for GNU ld... " >&6; }
5648else
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5650$as_echo_n "checking for non-GNU ld... " >&6; }
5651fi
5652if ${lt_cv_path_LD+:} false; then :
5653  $as_echo_n "(cached) " >&6
5654else
5655  if test -z "$LD"; then
5656  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5657  for ac_dir in $PATH; do
5658    IFS="$lt_save_ifs"
5659    test -z "$ac_dir" && ac_dir=.
5660    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5661      lt_cv_path_LD="$ac_dir/$ac_prog"
5662      # Check to see if the program is GNU ld.  I'd rather use --version,
5663      # but apparently some variants of GNU ld only accept -v.
5664      # Break only if it was the GNU/non-GNU ld that we prefer.
5665      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5666      *GNU* | *'with BFD'*)
5667	test "$with_gnu_ld" != no && break
5668	;;
5669      *)
5670	test "$with_gnu_ld" != yes && break
5671	;;
5672      esac
5673    fi
5674  done
5675  IFS="$lt_save_ifs"
5676else
5677  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5678fi
5679fi
5680
5681LD="$lt_cv_path_LD"
5682if test -n "$LD"; then
5683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5684$as_echo "$LD" >&6; }
5685else
5686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687$as_echo "no" >&6; }
5688fi
5689test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5691$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5692if ${lt_cv_prog_gnu_ld+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5696case `$LD -v 2>&1 </dev/null` in
5697*GNU* | *'with BFD'*)
5698  lt_cv_prog_gnu_ld=yes
5699  ;;
5700*)
5701  lt_cv_prog_gnu_ld=no
5702  ;;
5703esac
5704fi
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5706$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5707with_gnu_ld=$lt_cv_prog_gnu_ld
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5718$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5719if ${lt_cv_path_NM+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -n "$NM"; then
5723  # Let the user override the test.
5724  lt_cv_path_NM="$NM"
5725else
5726  lt_nm_to_check="${ac_tool_prefix}nm"
5727  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5728    lt_nm_to_check="$lt_nm_to_check nm"
5729  fi
5730  for lt_tmp_nm in $lt_nm_to_check; do
5731    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5732    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5733      IFS="$lt_save_ifs"
5734      test -z "$ac_dir" && ac_dir=.
5735      tmp_nm="$ac_dir/$lt_tmp_nm"
5736      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5737	# Check to see if the nm accepts a BSD-compat flag.
5738	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5739	#   nm: unknown option "B" ignored
5740	# Tru64's nm complains that /dev/null is an invalid object file
5741	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5742	*/dev/null* | *'Invalid file or object type'*)
5743	  lt_cv_path_NM="$tmp_nm -B"
5744	  break
5745	  ;;
5746	*)
5747	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5748	  */dev/null*)
5749	    lt_cv_path_NM="$tmp_nm -p"
5750	    break
5751	    ;;
5752	  *)
5753	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5754	    continue # so that we can try to find one that supports BSD flags
5755	    ;;
5756	  esac
5757	  ;;
5758	esac
5759      fi
5760    done
5761    IFS="$lt_save_ifs"
5762  done
5763  : ${lt_cv_path_NM=no}
5764fi
5765fi
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5767$as_echo "$lt_cv_path_NM" >&6; }
5768if test "$lt_cv_path_NM" != "no"; then
5769  NM="$lt_cv_path_NM"
5770else
5771  # Didn't find any BSD compatible name lister, look for dumpbin.
5772  if test -n "$DUMPBIN"; then :
5773    # Let the user override the test.
5774  else
5775    if test -n "$ac_tool_prefix"; then
5776  for ac_prog in dumpbin "link -dump"
5777  do
5778    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781$as_echo_n "checking for $ac_word... " >&6; }
5782if ${ac_cv_prog_DUMPBIN+:} false; then :
5783  $as_echo_n "(cached) " >&6
5784else
5785  if test -n "$DUMPBIN"; then
5786  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791  IFS=$as_save_IFS
5792  test -z "$as_dir" && as_dir=.
5793    for ac_exec_ext in '' $ac_executable_extensions; do
5794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797    break 2
5798  fi
5799done
5800  done
5801IFS=$as_save_IFS
5802
5803fi
5804fi
5805DUMPBIN=$ac_cv_prog_DUMPBIN
5806if test -n "$DUMPBIN"; then
5807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5808$as_echo "$DUMPBIN" >&6; }
5809else
5810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811$as_echo "no" >&6; }
5812fi
5813
5814
5815    test -n "$DUMPBIN" && break
5816  done
5817fi
5818if test -z "$DUMPBIN"; then
5819  ac_ct_DUMPBIN=$DUMPBIN
5820  for ac_prog in dumpbin "link -dump"
5821do
5822  # Extract the first word of "$ac_prog", so it can be a program name with args.
5823set dummy $ac_prog; ac_word=$2
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825$as_echo_n "checking for $ac_word... " >&6; }
5826if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5827  $as_echo_n "(cached) " >&6
5828else
5829  if test -n "$ac_ct_DUMPBIN"; then
5830  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5831else
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835  IFS=$as_save_IFS
5836  test -z "$as_dir" && as_dir=.
5837    for ac_exec_ext in '' $ac_executable_extensions; do
5838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841    break 2
5842  fi
5843done
5844  done
5845IFS=$as_save_IFS
5846
5847fi
5848fi
5849ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5850if test -n "$ac_ct_DUMPBIN"; then
5851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5852$as_echo "$ac_ct_DUMPBIN" >&6; }
5853else
5854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855$as_echo "no" >&6; }
5856fi
5857
5858
5859  test -n "$ac_ct_DUMPBIN" && break
5860done
5861
5862  if test "x$ac_ct_DUMPBIN" = x; then
5863    DUMPBIN=":"
5864  else
5865    case $cross_compiling:$ac_tool_warned in
5866yes:)
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869ac_tool_warned=yes ;;
5870esac
5871    DUMPBIN=$ac_ct_DUMPBIN
5872  fi
5873fi
5874
5875    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5876    *COFF*)
5877      DUMPBIN="$DUMPBIN -symbols"
5878      ;;
5879    *)
5880      DUMPBIN=:
5881      ;;
5882    esac
5883  fi
5884
5885  if test "$DUMPBIN" != ":"; then
5886    NM="$DUMPBIN"
5887  fi
5888fi
5889test -z "$NM" && NM=nm
5890
5891
5892
5893
5894
5895
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5897$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5898if ${lt_cv_nm_interface+:} false; then :
5899  $as_echo_n "(cached) " >&6
5900else
5901  lt_cv_nm_interface="BSD nm"
5902  echo "int some_variable = 0;" > conftest.$ac_ext
5903  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5904  (eval "$ac_compile" 2>conftest.err)
5905  cat conftest.err >&5
5906  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5907  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5908  cat conftest.err >&5
5909  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5910  cat conftest.out >&5
5911  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5912    lt_cv_nm_interface="MS dumpbin"
5913  fi
5914  rm -f conftest*
5915fi
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5917$as_echo "$lt_cv_nm_interface" >&6; }
5918
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5920$as_echo_n "checking whether ln -s works... " >&6; }
5921LN_S=$as_ln_s
5922if test "$LN_S" = "ln -s"; then
5923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5924$as_echo "yes" >&6; }
5925else
5926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5927$as_echo "no, using $LN_S" >&6; }
5928fi
5929
5930# find the maximum length of command line arguments
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5932$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5933if ${lt_cv_sys_max_cmd_len+:} false; then :
5934  $as_echo_n "(cached) " >&6
5935else
5936    i=0
5937  teststring="ABCD"
5938
5939  case $build_os in
5940  msdosdjgpp*)
5941    # On DJGPP, this test can blow up pretty badly due to problems in libc
5942    # (any single argument exceeding 2000 bytes causes a buffer overrun
5943    # during glob expansion).  Even if it were fixed, the result of this
5944    # check would be larger than it should be.
5945    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5946    ;;
5947
5948  gnu*)
5949    # Under GNU Hurd, this test is not required because there is
5950    # no limit to the length of command line arguments.
5951    # Libtool will interpret -1 as no limit whatsoever
5952    lt_cv_sys_max_cmd_len=-1;
5953    ;;
5954
5955  cygwin* | mingw* | cegcc*)
5956    # On Win9x/ME, this test blows up -- it succeeds, but takes
5957    # about 5 minutes as the teststring grows exponentially.
5958    # Worse, since 9x/ME are not pre-emptively multitasking,
5959    # you end up with a "frozen" computer, even though with patience
5960    # the test eventually succeeds (with a max line length of 256k).
5961    # Instead, let's just punt: use the minimum linelength reported by
5962    # all of the supported platforms: 8192 (on NT/2K/XP).
5963    lt_cv_sys_max_cmd_len=8192;
5964    ;;
5965
5966  mint*)
5967    # On MiNT this can take a long time and run out of memory.
5968    lt_cv_sys_max_cmd_len=8192;
5969    ;;
5970
5971  amigaos*)
5972    # On AmigaOS with pdksh, this test takes hours, literally.
5973    # So we just punt and use a minimum line length of 8192.
5974    lt_cv_sys_max_cmd_len=8192;
5975    ;;
5976
5977  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5978    # This has been around since 386BSD, at least.  Likely further.
5979    if test -x /sbin/sysctl; then
5980      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5981    elif test -x /usr/sbin/sysctl; then
5982      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5983    else
5984      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5985    fi
5986    # And add a safety zone
5987    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5988    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5989    ;;
5990
5991  interix*)
5992    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5993    lt_cv_sys_max_cmd_len=196608
5994    ;;
5995
5996  os2*)
5997    # The test takes a long time on OS/2.
5998    lt_cv_sys_max_cmd_len=8192
5999    ;;
6000
6001  osf*)
6002    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6003    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6004    # nice to cause kernel panics so lets avoid the loop below.
6005    # First set a reasonable default.
6006    lt_cv_sys_max_cmd_len=16384
6007    #
6008    if test -x /sbin/sysconfig; then
6009      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6010        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6011      esac
6012    fi
6013    ;;
6014  sco3.2v5*)
6015    lt_cv_sys_max_cmd_len=102400
6016    ;;
6017  sysv5* | sco5v6* | sysv4.2uw2*)
6018    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6019    if test -n "$kargmax"; then
6020      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6021    else
6022      lt_cv_sys_max_cmd_len=32768
6023    fi
6024    ;;
6025  *)
6026    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6027    if test -n "$lt_cv_sys_max_cmd_len"; then
6028      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6029      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6030    else
6031      # Make teststring a little bigger before we do anything with it.
6032      # a 1K string should be a reasonable start.
6033      for i in 1 2 3 4 5 6 7 8 ; do
6034        teststring=$teststring$teststring
6035      done
6036      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6037      # If test is not a shell built-in, we'll probably end up computing a
6038      # maximum length that is only half of the actual maximum length, but
6039      # we can't tell.
6040      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6041	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6042	      test $i != 17 # 1/2 MB should be enough
6043      do
6044        i=`expr $i + 1`
6045        teststring=$teststring$teststring
6046      done
6047      # Only check the string length outside the loop.
6048      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6049      teststring=
6050      # Add a significant safety factor because C++ compilers can tack on
6051      # massive amounts of additional arguments before passing them to the
6052      # linker.  It appears as though 1/2 is a usable value.
6053      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6054    fi
6055    ;;
6056  esac
6057
6058fi
6059
6060if test -n $lt_cv_sys_max_cmd_len ; then
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6062$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6063else
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6065$as_echo "none" >&6; }
6066fi
6067max_cmd_len=$lt_cv_sys_max_cmd_len
6068
6069
6070
6071
6072
6073
6074: ${CP="cp -f"}
6075: ${MV="mv -f"}
6076: ${RM="rm -f"}
6077
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6079$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6080# Try some XSI features
6081xsi_shell=no
6082( _lt_dummy="a/b/c"
6083  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6084      = c,a/b,b/c, \
6085    && eval 'test $(( 1 + 1 )) -eq 2 \
6086    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6087  && xsi_shell=yes
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6089$as_echo "$xsi_shell" >&6; }
6090
6091
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6093$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6094lt_shell_append=no
6095( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6096    >/dev/null 2>&1 \
6097  && lt_shell_append=yes
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6099$as_echo "$lt_shell_append" >&6; }
6100
6101
6102if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6103  lt_unset=unset
6104else
6105  lt_unset=false
6106fi
6107
6108
6109
6110
6111
6112# test EBCDIC or ASCII
6113case `echo X|tr X '\101'` in
6114 A) # ASCII based system
6115    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6116  lt_SP2NL='tr \040 \012'
6117  lt_NL2SP='tr \015\012 \040\040'
6118  ;;
6119 *) # EBCDIC based system
6120  lt_SP2NL='tr \100 \n'
6121  lt_NL2SP='tr \r\n \100\100'
6122  ;;
6123esac
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6134$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6135if ${lt_cv_to_host_file_cmd+:} false; then :
6136  $as_echo_n "(cached) " >&6
6137else
6138  case $host in
6139  *-*-mingw* )
6140    case $build in
6141      *-*-mingw* ) # actually msys
6142        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6143        ;;
6144      *-*-cygwin* )
6145        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6146        ;;
6147      * ) # otherwise, assume *nix
6148        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6149        ;;
6150    esac
6151    ;;
6152  *-*-cygwin* )
6153    case $build in
6154      *-*-mingw* ) # actually msys
6155        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6156        ;;
6157      *-*-cygwin* )
6158        lt_cv_to_host_file_cmd=func_convert_file_noop
6159        ;;
6160      * ) # otherwise, assume *nix
6161        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6162        ;;
6163    esac
6164    ;;
6165  * ) # unhandled hosts (and "normal" native builds)
6166    lt_cv_to_host_file_cmd=func_convert_file_noop
6167    ;;
6168esac
6169
6170fi
6171
6172to_host_file_cmd=$lt_cv_to_host_file_cmd
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6174$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6175
6176
6177
6178
6179
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6181$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6182if ${lt_cv_to_tool_file_cmd+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  #assume ordinary cross tools, or native build.
6186lt_cv_to_tool_file_cmd=func_convert_file_noop
6187case $host in
6188  *-*-mingw* )
6189    case $build in
6190      *-*-mingw* ) # actually msys
6191        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6192        ;;
6193    esac
6194    ;;
6195esac
6196
6197fi
6198
6199to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6201$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6202
6203
6204
6205
6206
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6208$as_echo_n "checking for $LD option to reload object files... " >&6; }
6209if ${lt_cv_ld_reload_flag+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212  lt_cv_ld_reload_flag='-r'
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6215$as_echo "$lt_cv_ld_reload_flag" >&6; }
6216reload_flag=$lt_cv_ld_reload_flag
6217case $reload_flag in
6218"" | " "*) ;;
6219*) reload_flag=" $reload_flag" ;;
6220esac
6221reload_cmds='$LD$reload_flag -o $output$reload_objs'
6222case $host_os in
6223  cygwin* | mingw* | pw32* | cegcc*)
6224    if test "$GCC" != yes; then
6225      reload_cmds=false
6226    fi
6227    ;;
6228  darwin*)
6229    if test "$GCC" = yes; then
6230      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6231    else
6232      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6233    fi
6234    ;;
6235esac
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245if test -n "$ac_tool_prefix"; then
6246  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6247set dummy ${ac_tool_prefix}objdump; ac_word=$2
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249$as_echo_n "checking for $ac_word... " >&6; }
6250if ${ac_cv_prog_OBJDUMP+:} false; then :
6251  $as_echo_n "(cached) " >&6
6252else
6253  if test -n "$OBJDUMP"; then
6254  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259  IFS=$as_save_IFS
6260  test -z "$as_dir" && as_dir=.
6261    for ac_exec_ext in '' $ac_executable_extensions; do
6262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265    break 2
6266  fi
6267done
6268  done
6269IFS=$as_save_IFS
6270
6271fi
6272fi
6273OBJDUMP=$ac_cv_prog_OBJDUMP
6274if test -n "$OBJDUMP"; then
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6276$as_echo "$OBJDUMP" >&6; }
6277else
6278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279$as_echo "no" >&6; }
6280fi
6281
6282
6283fi
6284if test -z "$ac_cv_prog_OBJDUMP"; then
6285  ac_ct_OBJDUMP=$OBJDUMP
6286  # Extract the first word of "objdump", so it can be a program name with args.
6287set dummy objdump; ac_word=$2
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289$as_echo_n "checking for $ac_word... " >&6; }
6290if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  if test -n "$ac_ct_OBJDUMP"; then
6294  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6295else
6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297for as_dir in $PATH
6298do
6299  IFS=$as_save_IFS
6300  test -z "$as_dir" && as_dir=.
6301    for ac_exec_ext in '' $ac_executable_extensions; do
6302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305    break 2
6306  fi
6307done
6308  done
6309IFS=$as_save_IFS
6310
6311fi
6312fi
6313ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6314if test -n "$ac_ct_OBJDUMP"; then
6315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6316$as_echo "$ac_ct_OBJDUMP" >&6; }
6317else
6318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319$as_echo "no" >&6; }
6320fi
6321
6322  if test "x$ac_ct_OBJDUMP" = x; then
6323    OBJDUMP="false"
6324  else
6325    case $cross_compiling:$ac_tool_warned in
6326yes:)
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329ac_tool_warned=yes ;;
6330esac
6331    OBJDUMP=$ac_ct_OBJDUMP
6332  fi
6333else
6334  OBJDUMP="$ac_cv_prog_OBJDUMP"
6335fi
6336
6337test -z "$OBJDUMP" && OBJDUMP=objdump
6338
6339
6340
6341
6342
6343
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6345$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6346if ${lt_cv_deplibs_check_method+:} false; then :
6347  $as_echo_n "(cached) " >&6
6348else
6349  lt_cv_file_magic_cmd='$MAGIC_CMD'
6350lt_cv_file_magic_test_file=
6351lt_cv_deplibs_check_method='unknown'
6352# Need to set the preceding variable on all platforms that support
6353# interlibrary dependencies.
6354# 'none' -- dependencies not supported.
6355# `unknown' -- same as none, but documents that we really don't know.
6356# 'pass_all' -- all dependencies passed with no checks.
6357# 'test_compile' -- check by making test program.
6358# 'file_magic [[regex]]' -- check by looking for files in library path
6359# which responds to the $file_magic_cmd with a given extended regex.
6360# If you have `file' or equivalent on your system and you're not sure
6361# whether `pass_all' will *always* work, you probably want this one.
6362
6363case $host_os in
6364aix[4-9]*)
6365  lt_cv_deplibs_check_method=pass_all
6366  ;;
6367
6368beos*)
6369  lt_cv_deplibs_check_method=pass_all
6370  ;;
6371
6372bsdi[45]*)
6373  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6374  lt_cv_file_magic_cmd='/usr/bin/file -L'
6375  lt_cv_file_magic_test_file=/shlib/libc.so
6376  ;;
6377
6378cygwin*)
6379  # func_win32_libid is a shell function defined in ltmain.sh
6380  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6381  lt_cv_file_magic_cmd='func_win32_libid'
6382  ;;
6383
6384mingw* | pw32*)
6385  # Base MSYS/MinGW do not provide the 'file' command needed by
6386  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6387  # unless we find 'file', for example because we are cross-compiling.
6388  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6389  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6390    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391    lt_cv_file_magic_cmd='func_win32_libid'
6392  else
6393    # Keep this pattern in sync with the one in func_win32_libid.
6394    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6395    lt_cv_file_magic_cmd='$OBJDUMP -f'
6396  fi
6397  ;;
6398
6399cegcc*)
6400  # use the weaker test based on 'objdump'. See mingw*.
6401  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6402  lt_cv_file_magic_cmd='$OBJDUMP -f'
6403  ;;
6404
6405darwin* | rhapsody*)
6406  lt_cv_deplibs_check_method=pass_all
6407  ;;
6408
6409freebsd* | dragonfly*)
6410  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6411    case $host_cpu in
6412    i*86 )
6413      # Not sure whether the presence of OpenBSD here was a mistake.
6414      # Let's accept both of them until this is cleared up.
6415      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6416      lt_cv_file_magic_cmd=/usr/bin/file
6417      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6418      ;;
6419    esac
6420  else
6421    lt_cv_deplibs_check_method=pass_all
6422  fi
6423  ;;
6424
6425gnu*)
6426  lt_cv_deplibs_check_method=pass_all
6427  ;;
6428
6429haiku*)
6430  lt_cv_deplibs_check_method=pass_all
6431  ;;
6432
6433hpux10.20* | hpux11*)
6434  lt_cv_file_magic_cmd=/usr/bin/file
6435  case $host_cpu in
6436  ia64*)
6437    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6438    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6439    ;;
6440  hppa*64*)
6441    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]'
6442    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6443    ;;
6444  *)
6445    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6446    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6447    ;;
6448  esac
6449  ;;
6450
6451interix[3-9]*)
6452  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6453  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6454  ;;
6455
6456irix5* | irix6* | nonstopux*)
6457  case $LD in
6458  *-32|*"-32 ") libmagic=32-bit;;
6459  *-n32|*"-n32 ") libmagic=N32;;
6460  *-64|*"-64 ") libmagic=64-bit;;
6461  *) libmagic=never-match;;
6462  esac
6463  lt_cv_deplibs_check_method=pass_all
6464  ;;
6465
6466# This must be glibc/ELF.
6467linux* | k*bsd*-gnu | kopensolaris*-gnu)
6468  lt_cv_deplibs_check_method=pass_all
6469  ;;
6470
6471netbsd*)
6472  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6473    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6474  else
6475    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6476  fi
6477  ;;
6478
6479newos6*)
6480  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6481  lt_cv_file_magic_cmd=/usr/bin/file
6482  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6483  ;;
6484
6485*nto* | *qnx*)
6486  lt_cv_deplibs_check_method=pass_all
6487  ;;
6488
6489openbsd*)
6490  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6491    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6492  else
6493    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6494  fi
6495  ;;
6496
6497osf3* | osf4* | osf5*)
6498  lt_cv_deplibs_check_method=pass_all
6499  ;;
6500
6501rdos*)
6502  lt_cv_deplibs_check_method=pass_all
6503  ;;
6504
6505solaris*)
6506  lt_cv_deplibs_check_method=pass_all
6507  ;;
6508
6509sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6510  lt_cv_deplibs_check_method=pass_all
6511  ;;
6512
6513sysv4 | sysv4.3*)
6514  case $host_vendor in
6515  motorola)
6516    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]'
6517    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6518    ;;
6519  ncr)
6520    lt_cv_deplibs_check_method=pass_all
6521    ;;
6522  sequent)
6523    lt_cv_file_magic_cmd='/bin/file'
6524    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6525    ;;
6526  sni)
6527    lt_cv_file_magic_cmd='/bin/file'
6528    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6529    lt_cv_file_magic_test_file=/lib/libc.so
6530    ;;
6531  siemens)
6532    lt_cv_deplibs_check_method=pass_all
6533    ;;
6534  pc)
6535    lt_cv_deplibs_check_method=pass_all
6536    ;;
6537  esac
6538  ;;
6539
6540tpf*)
6541  lt_cv_deplibs_check_method=pass_all
6542  ;;
6543esac
6544
6545fi
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6547$as_echo "$lt_cv_deplibs_check_method" >&6; }
6548
6549file_magic_glob=
6550want_nocaseglob=no
6551if test "$build" = "$host"; then
6552  case $host_os in
6553  mingw* | pw32*)
6554    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6555      want_nocaseglob=yes
6556    else
6557      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6558    fi
6559    ;;
6560  esac
6561fi
6562
6563file_magic_cmd=$lt_cv_file_magic_cmd
6564deplibs_check_method=$lt_cv_deplibs_check_method
6565test -z "$deplibs_check_method" && deplibs_check_method=unknown
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588if test -n "$ac_tool_prefix"; then
6589  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6590set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592$as_echo_n "checking for $ac_word... " >&6; }
6593if ${ac_cv_prog_DLLTOOL+:} false; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  if test -n "$DLLTOOL"; then
6597  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6598else
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602  IFS=$as_save_IFS
6603  test -z "$as_dir" && as_dir=.
6604    for ac_exec_ext in '' $ac_executable_extensions; do
6605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608    break 2
6609  fi
6610done
6611  done
6612IFS=$as_save_IFS
6613
6614fi
6615fi
6616DLLTOOL=$ac_cv_prog_DLLTOOL
6617if test -n "$DLLTOOL"; then
6618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6619$as_echo "$DLLTOOL" >&6; }
6620else
6621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622$as_echo "no" >&6; }
6623fi
6624
6625
6626fi
6627if test -z "$ac_cv_prog_DLLTOOL"; then
6628  ac_ct_DLLTOOL=$DLLTOOL
6629  # Extract the first word of "dlltool", so it can be a program name with args.
6630set dummy dlltool; ac_word=$2
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632$as_echo_n "checking for $ac_word... " >&6; }
6633if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6634  $as_echo_n "(cached) " >&6
6635else
6636  if test -n "$ac_ct_DLLTOOL"; then
6637  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6638else
6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642  IFS=$as_save_IFS
6643  test -z "$as_dir" && as_dir=.
6644    for ac_exec_ext in '' $ac_executable_extensions; do
6645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648    break 2
6649  fi
6650done
6651  done
6652IFS=$as_save_IFS
6653
6654fi
6655fi
6656ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6657if test -n "$ac_ct_DLLTOOL"; then
6658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6659$as_echo "$ac_ct_DLLTOOL" >&6; }
6660else
6661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662$as_echo "no" >&6; }
6663fi
6664
6665  if test "x$ac_ct_DLLTOOL" = x; then
6666    DLLTOOL="false"
6667  else
6668    case $cross_compiling:$ac_tool_warned in
6669yes:)
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672ac_tool_warned=yes ;;
6673esac
6674    DLLTOOL=$ac_ct_DLLTOOL
6675  fi
6676else
6677  DLLTOOL="$ac_cv_prog_DLLTOOL"
6678fi
6679
6680test -z "$DLLTOOL" && DLLTOOL=dlltool
6681
6682
6683
6684
6685
6686
6687
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6689$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6690if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693  lt_cv_sharedlib_from_linklib_cmd='unknown'
6694
6695case $host_os in
6696cygwin* | mingw* | pw32* | cegcc*)
6697  # two different shell functions defined in ltmain.sh
6698  # decide which to use based on capabilities of $DLLTOOL
6699  case `$DLLTOOL --help 2>&1` in
6700  *--identify-strict*)
6701    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6702    ;;
6703  *)
6704    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6705    ;;
6706  esac
6707  ;;
6708*)
6709  # fallback: assume linklib IS sharedlib
6710  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6711  ;;
6712esac
6713
6714fi
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6716$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6717sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6718test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6719
6720
6721
6722
6723
6724
6725
6726if test -n "$ac_tool_prefix"; then
6727  for ac_prog in ar
6728  do
6729    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6730set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732$as_echo_n "checking for $ac_word... " >&6; }
6733if ${ac_cv_prog_AR+:} false; then :
6734  $as_echo_n "(cached) " >&6
6735else
6736  if test -n "$AR"; then
6737  ac_cv_prog_AR="$AR" # Let the user override the test.
6738else
6739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742  IFS=$as_save_IFS
6743  test -z "$as_dir" && as_dir=.
6744    for ac_exec_ext in '' $ac_executable_extensions; do
6745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748    break 2
6749  fi
6750done
6751  done
6752IFS=$as_save_IFS
6753
6754fi
6755fi
6756AR=$ac_cv_prog_AR
6757if test -n "$AR"; then
6758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6759$as_echo "$AR" >&6; }
6760else
6761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762$as_echo "no" >&6; }
6763fi
6764
6765
6766    test -n "$AR" && break
6767  done
6768fi
6769if test -z "$AR"; then
6770  ac_ct_AR=$AR
6771  for ac_prog in ar
6772do
6773  # Extract the first word of "$ac_prog", so it can be a program name with args.
6774set dummy $ac_prog; ac_word=$2
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776$as_echo_n "checking for $ac_word... " >&6; }
6777if ${ac_cv_prog_ac_ct_AR+:} false; then :
6778  $as_echo_n "(cached) " >&6
6779else
6780  if test -n "$ac_ct_AR"; then
6781  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6782else
6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786  IFS=$as_save_IFS
6787  test -z "$as_dir" && as_dir=.
6788    for ac_exec_ext in '' $ac_executable_extensions; do
6789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790    ac_cv_prog_ac_ct_AR="$ac_prog"
6791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792    break 2
6793  fi
6794done
6795  done
6796IFS=$as_save_IFS
6797
6798fi
6799fi
6800ac_ct_AR=$ac_cv_prog_ac_ct_AR
6801if test -n "$ac_ct_AR"; then
6802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6803$as_echo "$ac_ct_AR" >&6; }
6804else
6805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806$as_echo "no" >&6; }
6807fi
6808
6809
6810  test -n "$ac_ct_AR" && break
6811done
6812
6813  if test "x$ac_ct_AR" = x; then
6814    AR="false"
6815  else
6816    case $cross_compiling:$ac_tool_warned in
6817yes:)
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820ac_tool_warned=yes ;;
6821esac
6822    AR=$ac_ct_AR
6823  fi
6824fi
6825
6826: ${AR=ar}
6827: ${AR_FLAGS=cru}
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6840$as_echo_n "checking for archiver @FILE support... " >&6; }
6841if ${lt_cv_ar_at_file+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  lt_cv_ar_at_file=no
6845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846/* end confdefs.h.  */
6847
6848int
6849main ()
6850{
6851
6852  ;
6853  return 0;
6854}
6855_ACEOF
6856if ac_fn_c_try_compile "$LINENO"; then :
6857  echo conftest.$ac_objext > conftest.lst
6858      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6859      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6860  (eval $lt_ar_try) 2>&5
6861  ac_status=$?
6862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6863  test $ac_status = 0; }
6864      if test "$ac_status" -eq 0; then
6865	# Ensure the archiver fails upon bogus file names.
6866	rm -f conftest.$ac_objext libconftest.a
6867	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6868  (eval $lt_ar_try) 2>&5
6869  ac_status=$?
6870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871  test $ac_status = 0; }
6872	if test "$ac_status" -ne 0; then
6873          lt_cv_ar_at_file=@
6874        fi
6875      fi
6876      rm -f conftest.* libconftest.a
6877
6878fi
6879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880
6881fi
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6883$as_echo "$lt_cv_ar_at_file" >&6; }
6884
6885if test "x$lt_cv_ar_at_file" = xno; then
6886  archiver_list_spec=
6887else
6888  archiver_list_spec=$lt_cv_ar_at_file
6889fi
6890
6891
6892
6893
6894
6895
6896
6897if test -n "$ac_tool_prefix"; then
6898  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6899set dummy ${ac_tool_prefix}strip; ac_word=$2
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901$as_echo_n "checking for $ac_word... " >&6; }
6902if ${ac_cv_prog_STRIP+:} false; then :
6903  $as_echo_n "(cached) " >&6
6904else
6905  if test -n "$STRIP"; then
6906  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911  IFS=$as_save_IFS
6912  test -z "$as_dir" && as_dir=.
6913    for ac_exec_ext in '' $ac_executable_extensions; do
6914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917    break 2
6918  fi
6919done
6920  done
6921IFS=$as_save_IFS
6922
6923fi
6924fi
6925STRIP=$ac_cv_prog_STRIP
6926if test -n "$STRIP"; then
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6928$as_echo "$STRIP" >&6; }
6929else
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931$as_echo "no" >&6; }
6932fi
6933
6934
6935fi
6936if test -z "$ac_cv_prog_STRIP"; then
6937  ac_ct_STRIP=$STRIP
6938  # Extract the first word of "strip", so it can be a program name with args.
6939set dummy strip; 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_ac_ct_STRIP+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  if test -n "$ac_ct_STRIP"; then
6946  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
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
6965ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6966if test -n "$ac_ct_STRIP"; then
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6968$as_echo "$ac_ct_STRIP" >&6; }
6969else
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971$as_echo "no" >&6; }
6972fi
6973
6974  if test "x$ac_ct_STRIP" = x; then
6975    STRIP=":"
6976  else
6977    case $cross_compiling:$ac_tool_warned in
6978yes:)
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981ac_tool_warned=yes ;;
6982esac
6983    STRIP=$ac_ct_STRIP
6984  fi
6985else
6986  STRIP="$ac_cv_prog_STRIP"
6987fi
6988
6989test -z "$STRIP" && STRIP=:
6990
6991
6992
6993
6994
6995
6996if test -n "$ac_tool_prefix"; then
6997  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6998set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000$as_echo_n "checking for $ac_word... " >&6; }
7001if ${ac_cv_prog_RANLIB+:} false; then :
7002  $as_echo_n "(cached) " >&6
7003else
7004  if test -n "$RANLIB"; then
7005  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7006else
7007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008for as_dir in $PATH
7009do
7010  IFS=$as_save_IFS
7011  test -z "$as_dir" && as_dir=.
7012    for ac_exec_ext in '' $ac_executable_extensions; do
7013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7014    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016    break 2
7017  fi
7018done
7019  done
7020IFS=$as_save_IFS
7021
7022fi
7023fi
7024RANLIB=$ac_cv_prog_RANLIB
7025if test -n "$RANLIB"; then
7026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7027$as_echo "$RANLIB" >&6; }
7028else
7029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030$as_echo "no" >&6; }
7031fi
7032
7033
7034fi
7035if test -z "$ac_cv_prog_RANLIB"; then
7036  ac_ct_RANLIB=$RANLIB
7037  # Extract the first word of "ranlib", so it can be a program name with args.
7038set dummy ranlib; ac_word=$2
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040$as_echo_n "checking for $ac_word... " >&6; }
7041if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  if test -n "$ac_ct_RANLIB"; then
7045  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7046else
7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050  IFS=$as_save_IFS
7051  test -z "$as_dir" && as_dir=.
7052    for ac_exec_ext in '' $ac_executable_extensions; do
7053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054    ac_cv_prog_ac_ct_RANLIB="ranlib"
7055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056    break 2
7057  fi
7058done
7059  done
7060IFS=$as_save_IFS
7061
7062fi
7063fi
7064ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7065if test -n "$ac_ct_RANLIB"; then
7066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7067$as_echo "$ac_ct_RANLIB" >&6; }
7068else
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070$as_echo "no" >&6; }
7071fi
7072
7073  if test "x$ac_ct_RANLIB" = x; then
7074    RANLIB=":"
7075  else
7076    case $cross_compiling:$ac_tool_warned in
7077yes:)
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7080ac_tool_warned=yes ;;
7081esac
7082    RANLIB=$ac_ct_RANLIB
7083  fi
7084else
7085  RANLIB="$ac_cv_prog_RANLIB"
7086fi
7087
7088test -z "$RANLIB" && RANLIB=:
7089
7090
7091
7092
7093
7094
7095# Determine commands to create old-style static archives.
7096old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7097old_postinstall_cmds='chmod 644 $oldlib'
7098old_postuninstall_cmds=
7099
7100if test -n "$RANLIB"; then
7101  case $host_os in
7102  openbsd*)
7103    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7104    ;;
7105  *)
7106    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7107    ;;
7108  esac
7109  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7110fi
7111
7112case $host_os in
7113  darwin*)
7114    lock_old_archive_extraction=yes ;;
7115  *)
7116    lock_old_archive_extraction=no ;;
7117esac
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139for ac_prog in gawk mawk nawk awk
7140do
7141  # Extract the first word of "$ac_prog", so it can be a program name with args.
7142set dummy $ac_prog; ac_word=$2
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144$as_echo_n "checking for $ac_word... " >&6; }
7145if ${ac_cv_prog_AWK+:} false; then :
7146  $as_echo_n "(cached) " >&6
7147else
7148  if test -n "$AWK"; then
7149  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7150else
7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154  IFS=$as_save_IFS
7155  test -z "$as_dir" && as_dir=.
7156    for ac_exec_ext in '' $ac_executable_extensions; do
7157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158    ac_cv_prog_AWK="$ac_prog"
7159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160    break 2
7161  fi
7162done
7163  done
7164IFS=$as_save_IFS
7165
7166fi
7167fi
7168AWK=$ac_cv_prog_AWK
7169if test -n "$AWK"; then
7170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7171$as_echo "$AWK" >&6; }
7172else
7173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174$as_echo "no" >&6; }
7175fi
7176
7177
7178  test -n "$AWK" && break
7179done
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199# If no C compiler was specified, use CC.
7200LTCC=${LTCC-"$CC"}
7201
7202# If no C compiler flags were specified, use CFLAGS.
7203LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7204
7205# Allow CC to be a program name with arguments.
7206compiler=$CC
7207
7208
7209# Check for command to grab the raw symbol name followed by C symbol from nm.
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7211$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7212if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7213  $as_echo_n "(cached) " >&6
7214else
7215
7216# These are sane defaults that work on at least a few old systems.
7217# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7218
7219# Character class describing NM global symbol codes.
7220symcode='[BCDEGRST]'
7221
7222# Regexp to match symbols that can be accessed directly from C.
7223sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7224
7225# Define system-specific variables.
7226case $host_os in
7227aix*)
7228  symcode='[BCDT]'
7229  ;;
7230cygwin* | mingw* | pw32* | cegcc*)
7231  symcode='[ABCDGISTW]'
7232  ;;
7233hpux*)
7234  if test "$host_cpu" = ia64; then
7235    symcode='[ABCDEGRST]'
7236  fi
7237  ;;
7238irix* | nonstopux*)
7239  symcode='[BCDEGRST]'
7240  ;;
7241osf*)
7242  symcode='[BCDEGQRST]'
7243  ;;
7244solaris*)
7245  symcode='[BDRT]'
7246  ;;
7247sco3.2v5*)
7248  symcode='[DT]'
7249  ;;
7250sysv4.2uw2*)
7251  symcode='[DT]'
7252  ;;
7253sysv5* | sco5v6* | unixware* | OpenUNIX*)
7254  symcode='[ABDT]'
7255  ;;
7256sysv4)
7257  symcode='[DFNSTU]'
7258  ;;
7259esac
7260
7261# If we're using GNU nm, then use its standard symbol codes.
7262case `$NM -V 2>&1` in
7263*GNU* | *'with BFD'*)
7264  symcode='[ABCDGIRSTW]' ;;
7265esac
7266
7267# Transform an extracted symbol line into a proper C declaration.
7268# Some systems (esp. on ia64) link data and code symbols differently,
7269# so use this general approach.
7270lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7271
7272# Transform an extracted symbol line into symbol name and symbol address
7273lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7274lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7275
7276# Handle CRLF in mingw tool chain
7277opt_cr=
7278case $build_os in
7279mingw*)
7280  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7281  ;;
7282esac
7283
7284# Try without a prefix underscore, then with it.
7285for ac_symprfx in "" "_"; do
7286
7287  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7288  symxfrm="\\1 $ac_symprfx\\2 \\2"
7289
7290  # Write the raw and C identifiers.
7291  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7292    # Fake it for dumpbin and say T for any non-static function
7293    # and D for any global variable.
7294    # Also find C++ and __fastcall symbols from MSVC++,
7295    # which start with @ or ?.
7296    lt_cv_sys_global_symbol_pipe="$AWK '"\
7297"     {last_section=section; section=\$ 3};"\
7298"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7299"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7300"     \$ 0!~/External *\|/{next};"\
7301"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7302"     {if(hide[section]) next};"\
7303"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7304"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7305"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7306"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7307"     ' prfx=^$ac_symprfx"
7308  else
7309    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7310  fi
7311  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7312
7313  # Check to see that the pipe works correctly.
7314  pipe_works=no
7315
7316  rm -f conftest*
7317  cat > conftest.$ac_ext <<_LT_EOF
7318#ifdef __cplusplus
7319extern "C" {
7320#endif
7321char nm_test_var;
7322void nm_test_func(void);
7323void nm_test_func(void){}
7324#ifdef __cplusplus
7325}
7326#endif
7327int main(){nm_test_var='a';nm_test_func();return(0);}
7328_LT_EOF
7329
7330  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7331  (eval $ac_compile) 2>&5
7332  ac_status=$?
7333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334  test $ac_status = 0; }; then
7335    # Now try to grab the symbols.
7336    nlist=conftest.nm
7337    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7338  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7339  ac_status=$?
7340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7341  test $ac_status = 0; } && test -s "$nlist"; then
7342      # Try sorting and uniquifying the output.
7343      if sort "$nlist" | uniq > "$nlist"T; then
7344	mv -f "$nlist"T "$nlist"
7345      else
7346	rm -f "$nlist"T
7347      fi
7348
7349      # Make sure that we snagged all the symbols we need.
7350      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7351	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7352	  cat <<_LT_EOF > conftest.$ac_ext
7353/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7354#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7355/* DATA imports from DLLs on WIN32 con't be const, because runtime
7356   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7357# define LT_DLSYM_CONST
7358#elif defined(__osf__)
7359/* This system does not cope well with relocations in const data.  */
7360# define LT_DLSYM_CONST
7361#else
7362# define LT_DLSYM_CONST const
7363#endif
7364
7365#ifdef __cplusplus
7366extern "C" {
7367#endif
7368
7369_LT_EOF
7370	  # Now generate the symbol file.
7371	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7372
7373	  cat <<_LT_EOF >> conftest.$ac_ext
7374
7375/* The mapping between symbol names and symbols.  */
7376LT_DLSYM_CONST struct {
7377  const char *name;
7378  void       *address;
7379}
7380lt__PROGRAM__LTX_preloaded_symbols[] =
7381{
7382  { "@PROGRAM@", (void *) 0 },
7383_LT_EOF
7384	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7385	  cat <<\_LT_EOF >> conftest.$ac_ext
7386  {0, (void *) 0}
7387};
7388
7389/* This works around a problem in FreeBSD linker */
7390#ifdef FREEBSD_WORKAROUND
7391static const void *lt_preloaded_setup() {
7392  return lt__PROGRAM__LTX_preloaded_symbols;
7393}
7394#endif
7395
7396#ifdef __cplusplus
7397}
7398#endif
7399_LT_EOF
7400	  # Now try linking the two files.
7401	  mv conftest.$ac_objext conftstm.$ac_objext
7402	  lt_globsym_save_LIBS=$LIBS
7403	  lt_globsym_save_CFLAGS=$CFLAGS
7404	  LIBS="conftstm.$ac_objext"
7405	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7406	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7407  (eval $ac_link) 2>&5
7408  ac_status=$?
7409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7410  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7411	    pipe_works=yes
7412	  fi
7413	  LIBS=$lt_globsym_save_LIBS
7414	  CFLAGS=$lt_globsym_save_CFLAGS
7415	else
7416	  echo "cannot find nm_test_func in $nlist" >&5
7417	fi
7418      else
7419	echo "cannot find nm_test_var in $nlist" >&5
7420      fi
7421    else
7422      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7423    fi
7424  else
7425    echo "$progname: failed program was:" >&5
7426    cat conftest.$ac_ext >&5
7427  fi
7428  rm -rf conftest* conftst*
7429
7430  # Do not use the global_symbol_pipe unless it works.
7431  if test "$pipe_works" = yes; then
7432    break
7433  else
7434    lt_cv_sys_global_symbol_pipe=
7435  fi
7436done
7437
7438fi
7439
7440if test -z "$lt_cv_sys_global_symbol_pipe"; then
7441  lt_cv_sys_global_symbol_to_cdecl=
7442fi
7443if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7445$as_echo "failed" >&6; }
7446else
7447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7448$as_echo "ok" >&6; }
7449fi
7450
7451# Response file support.
7452if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7453  nm_file_list_spec='@'
7454elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7455  nm_file_list_spec='@'
7456fi
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7485$as_echo_n "checking for sysroot... " >&6; }
7486
7487# Check whether --with-sysroot was given.
7488if test "${with_sysroot+set}" = set; then :
7489  withval=$with_sysroot;
7490else
7491  with_sysroot=no
7492fi
7493
7494
7495lt_sysroot=
7496case ${with_sysroot} in #(
7497 yes)
7498   if test "$GCC" = yes; then
7499     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7500   fi
7501   ;; #(
7502 /*)
7503   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7504   ;; #(
7505 no|'')
7506   ;; #(
7507 *)
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7509$as_echo "${with_sysroot}" >&6; }
7510   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7511   ;;
7512esac
7513
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7515$as_echo "${lt_sysroot:-no}" >&6; }
7516
7517
7518
7519
7520
7521# Check whether --enable-libtool-lock was given.
7522if test "${enable_libtool_lock+set}" = set; then :
7523  enableval=$enable_libtool_lock;
7524fi
7525
7526test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7527
7528# Some flags need to be propagated to the compiler or linker for good
7529# libtool support.
7530case $host in
7531ia64-*-hpux*)
7532  # Find out which ABI we are using.
7533  echo 'int i;' > conftest.$ac_ext
7534  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7535  (eval $ac_compile) 2>&5
7536  ac_status=$?
7537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538  test $ac_status = 0; }; then
7539    case `/usr/bin/file conftest.$ac_objext` in
7540      *ELF-32*)
7541	HPUX_IA64_MODE="32"
7542	;;
7543      *ELF-64*)
7544	HPUX_IA64_MODE="64"
7545	;;
7546    esac
7547  fi
7548  rm -rf conftest*
7549  ;;
7550*-*-irix6*)
7551  # Find out which ABI we are using.
7552  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7553  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7554  (eval $ac_compile) 2>&5
7555  ac_status=$?
7556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557  test $ac_status = 0; }; then
7558    if test "$lt_cv_prog_gnu_ld" = yes; then
7559      case `/usr/bin/file conftest.$ac_objext` in
7560	*32-bit*)
7561	  LD="${LD-ld} -melf32bsmip"
7562	  ;;
7563	*N32*)
7564	  LD="${LD-ld} -melf32bmipn32"
7565	  ;;
7566	*64-bit*)
7567	  LD="${LD-ld} -melf64bmip"
7568	;;
7569      esac
7570    else
7571      case `/usr/bin/file conftest.$ac_objext` in
7572	*32-bit*)
7573	  LD="${LD-ld} -32"
7574	  ;;
7575	*N32*)
7576	  LD="${LD-ld} -n32"
7577	  ;;
7578	*64-bit*)
7579	  LD="${LD-ld} -64"
7580	  ;;
7581      esac
7582    fi
7583  fi
7584  rm -rf conftest*
7585  ;;
7586
7587x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7588s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7589  # Find out which ABI we are using.
7590  echo 'int i;' > conftest.$ac_ext
7591  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7592  (eval $ac_compile) 2>&5
7593  ac_status=$?
7594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7595  test $ac_status = 0; }; then
7596    case `/usr/bin/file conftest.o` in
7597      *32-bit*)
7598	case $host in
7599	  x86_64-*kfreebsd*-gnu)
7600	    LD="${LD-ld} -m elf_i386_fbsd"
7601	    ;;
7602	  x86_64-*linux*)
7603	    LD="${LD-ld} -m elf_i386"
7604	    ;;
7605	  ppc64-*linux*|powerpc64-*linux*)
7606	    LD="${LD-ld} -m elf32ppclinux"
7607	    ;;
7608	  s390x-*linux*)
7609	    LD="${LD-ld} -m elf_s390"
7610	    ;;
7611	  sparc64-*linux*)
7612	    LD="${LD-ld} -m elf32_sparc"
7613	    ;;
7614	esac
7615	;;
7616      *64-bit*)
7617	case $host in
7618	  x86_64-*kfreebsd*-gnu)
7619	    LD="${LD-ld} -m elf_x86_64_fbsd"
7620	    ;;
7621	  x86_64-*linux*)
7622	    LD="${LD-ld} -m elf_x86_64"
7623	    ;;
7624	  ppc*-*linux*|powerpc*-*linux*)
7625	    LD="${LD-ld} -m elf64ppc"
7626	    ;;
7627	  s390*-*linux*|s390*-*tpf*)
7628	    LD="${LD-ld} -m elf64_s390"
7629	    ;;
7630	  sparc*-*linux*)
7631	    LD="${LD-ld} -m elf64_sparc"
7632	    ;;
7633	esac
7634	;;
7635    esac
7636  fi
7637  rm -rf conftest*
7638  ;;
7639
7640*-*-sco3.2v5*)
7641  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7642  SAVE_CFLAGS="$CFLAGS"
7643  CFLAGS="$CFLAGS -belf"
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7645$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7646if ${lt_cv_cc_needs_belf+:} false; then :
7647  $as_echo_n "(cached) " >&6
7648else
7649  ac_ext=c
7650ac_cpp='$CPP $CPPFLAGS'
7651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657
7658int
7659main ()
7660{
7661
7662  ;
7663  return 0;
7664}
7665_ACEOF
7666if ac_fn_c_try_link "$LINENO"; then :
7667  lt_cv_cc_needs_belf=yes
7668else
7669  lt_cv_cc_needs_belf=no
7670fi
7671rm -f core conftest.err conftest.$ac_objext \
7672    conftest$ac_exeext conftest.$ac_ext
7673     ac_ext=c
7674ac_cpp='$CPP $CPPFLAGS'
7675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7677ac_compiler_gnu=$ac_cv_c_compiler_gnu
7678
7679fi
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7681$as_echo "$lt_cv_cc_needs_belf" >&6; }
7682  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7683    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7684    CFLAGS="$SAVE_CFLAGS"
7685  fi
7686  ;;
7687*-*solaris*)
7688  # Find out which ABI we are using.
7689  echo 'int i;' > conftest.$ac_ext
7690  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7691  (eval $ac_compile) 2>&5
7692  ac_status=$?
7693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7694  test $ac_status = 0; }; then
7695    case `/usr/bin/file conftest.o` in
7696    *64-bit*)
7697      case $lt_cv_prog_gnu_ld in
7698      yes*)
7699        case $host in
7700        i?86-*-solaris*)
7701          LD="${LD-ld} -m elf_x86_64"
7702          ;;
7703        sparc*-*-solaris*)
7704          LD="${LD-ld} -m elf64_sparc"
7705          ;;
7706        esac
7707        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7708        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7709          LD="${LD-ld}_sol2"
7710        fi
7711        ;;
7712      *)
7713	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7714	  LD="${LD-ld} -64"
7715	fi
7716	;;
7717      esac
7718      ;;
7719    esac
7720  fi
7721  rm -rf conftest*
7722  ;;
7723esac
7724
7725need_locks="$enable_libtool_lock"
7726
7727if test -n "$ac_tool_prefix"; then
7728  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7729set dummy ${ac_tool_prefix}mt; ac_word=$2
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731$as_echo_n "checking for $ac_word... " >&6; }
7732if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7733  $as_echo_n "(cached) " >&6
7734else
7735  if test -n "$MANIFEST_TOOL"; then
7736  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7737else
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741  IFS=$as_save_IFS
7742  test -z "$as_dir" && as_dir=.
7743    for ac_exec_ext in '' $ac_executable_extensions; do
7744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747    break 2
7748  fi
7749done
7750  done
7751IFS=$as_save_IFS
7752
7753fi
7754fi
7755MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7756if test -n "$MANIFEST_TOOL"; then
7757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7758$as_echo "$MANIFEST_TOOL" >&6; }
7759else
7760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761$as_echo "no" >&6; }
7762fi
7763
7764
7765fi
7766if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7767  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7768  # Extract the first word of "mt", so it can be a program name with args.
7769set dummy mt; ac_word=$2
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
7772if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7773  $as_echo_n "(cached) " >&6
7774else
7775  if test -n "$ac_ct_MANIFEST_TOOL"; then
7776  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7777else
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781  IFS=$as_save_IFS
7782  test -z "$as_dir" && as_dir=.
7783    for ac_exec_ext in '' $ac_executable_extensions; do
7784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787    break 2
7788  fi
7789done
7790  done
7791IFS=$as_save_IFS
7792
7793fi
7794fi
7795ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7796if test -n "$ac_ct_MANIFEST_TOOL"; then
7797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7798$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7799else
7800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
7802fi
7803
7804  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7805    MANIFEST_TOOL=":"
7806  else
7807    case $cross_compiling:$ac_tool_warned in
7808yes:)
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811ac_tool_warned=yes ;;
7812esac
7813    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7814  fi
7815else
7816  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7817fi
7818
7819test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7821$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7822if ${lt_cv_path_mainfest_tool+:} false; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825  lt_cv_path_mainfest_tool=no
7826  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7827  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7828  cat conftest.err >&5
7829  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7830    lt_cv_path_mainfest_tool=yes
7831  fi
7832  rm -f conftest*
7833fi
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7835$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7836if test "x$lt_cv_path_mainfest_tool" != xyes; then
7837  MANIFEST_TOOL=:
7838fi
7839
7840
7841
7842
7843
7844
7845  case $host_os in
7846    rhapsody* | darwin*)
7847    if test -n "$ac_tool_prefix"; then
7848  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7849set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851$as_echo_n "checking for $ac_word... " >&6; }
7852if ${ac_cv_prog_DSYMUTIL+:} false; then :
7853  $as_echo_n "(cached) " >&6
7854else
7855  if test -n "$DSYMUTIL"; then
7856  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7857else
7858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859for as_dir in $PATH
7860do
7861  IFS=$as_save_IFS
7862  test -z "$as_dir" && as_dir=.
7863    for ac_exec_ext in '' $ac_executable_extensions; do
7864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867    break 2
7868  fi
7869done
7870  done
7871IFS=$as_save_IFS
7872
7873fi
7874fi
7875DSYMUTIL=$ac_cv_prog_DSYMUTIL
7876if test -n "$DSYMUTIL"; then
7877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7878$as_echo "$DSYMUTIL" >&6; }
7879else
7880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881$as_echo "no" >&6; }
7882fi
7883
7884
7885fi
7886if test -z "$ac_cv_prog_DSYMUTIL"; then
7887  ac_ct_DSYMUTIL=$DSYMUTIL
7888  # Extract the first word of "dsymutil", so it can be a program name with args.
7889set dummy dsymutil; ac_word=$2
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891$as_echo_n "checking for $ac_word... " >&6; }
7892if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7893  $as_echo_n "(cached) " >&6
7894else
7895  if test -n "$ac_ct_DSYMUTIL"; then
7896  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901  IFS=$as_save_IFS
7902  test -z "$as_dir" && as_dir=.
7903    for ac_exec_ext in '' $ac_executable_extensions; do
7904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907    break 2
7908  fi
7909done
7910  done
7911IFS=$as_save_IFS
7912
7913fi
7914fi
7915ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7916if test -n "$ac_ct_DSYMUTIL"; then
7917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7918$as_echo "$ac_ct_DSYMUTIL" >&6; }
7919else
7920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
7922fi
7923
7924  if test "x$ac_ct_DSYMUTIL" = x; then
7925    DSYMUTIL=":"
7926  else
7927    case $cross_compiling:$ac_tool_warned in
7928yes:)
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7931ac_tool_warned=yes ;;
7932esac
7933    DSYMUTIL=$ac_ct_DSYMUTIL
7934  fi
7935else
7936  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7937fi
7938
7939    if test -n "$ac_tool_prefix"; then
7940  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7941set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943$as_echo_n "checking for $ac_word... " >&6; }
7944if ${ac_cv_prog_NMEDIT+:} false; then :
7945  $as_echo_n "(cached) " >&6
7946else
7947  if test -n "$NMEDIT"; then
7948  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7949else
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953  IFS=$as_save_IFS
7954  test -z "$as_dir" && as_dir=.
7955    for ac_exec_ext in '' $ac_executable_extensions; do
7956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959    break 2
7960  fi
7961done
7962  done
7963IFS=$as_save_IFS
7964
7965fi
7966fi
7967NMEDIT=$ac_cv_prog_NMEDIT
7968if test -n "$NMEDIT"; then
7969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7970$as_echo "$NMEDIT" >&6; }
7971else
7972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973$as_echo "no" >&6; }
7974fi
7975
7976
7977fi
7978if test -z "$ac_cv_prog_NMEDIT"; then
7979  ac_ct_NMEDIT=$NMEDIT
7980  # Extract the first word of "nmedit", so it can be a program name with args.
7981set dummy nmedit; ac_word=$2
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983$as_echo_n "checking for $ac_word... " >&6; }
7984if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  if test -n "$ac_ct_NMEDIT"; then
7988  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7989else
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993  IFS=$as_save_IFS
7994  test -z "$as_dir" && as_dir=.
7995    for ac_exec_ext in '' $ac_executable_extensions; do
7996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999    break 2
8000  fi
8001done
8002  done
8003IFS=$as_save_IFS
8004
8005fi
8006fi
8007ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8008if test -n "$ac_ct_NMEDIT"; then
8009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8010$as_echo "$ac_ct_NMEDIT" >&6; }
8011else
8012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013$as_echo "no" >&6; }
8014fi
8015
8016  if test "x$ac_ct_NMEDIT" = x; then
8017    NMEDIT=":"
8018  else
8019    case $cross_compiling:$ac_tool_warned in
8020yes:)
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023ac_tool_warned=yes ;;
8024esac
8025    NMEDIT=$ac_ct_NMEDIT
8026  fi
8027else
8028  NMEDIT="$ac_cv_prog_NMEDIT"
8029fi
8030
8031    if test -n "$ac_tool_prefix"; then
8032  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8033set dummy ${ac_tool_prefix}lipo; ac_word=$2
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035$as_echo_n "checking for $ac_word... " >&6; }
8036if ${ac_cv_prog_LIPO+:} false; then :
8037  $as_echo_n "(cached) " >&6
8038else
8039  if test -n "$LIPO"; then
8040  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8041else
8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045  IFS=$as_save_IFS
8046  test -z "$as_dir" && as_dir=.
8047    for ac_exec_ext in '' $ac_executable_extensions; do
8048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051    break 2
8052  fi
8053done
8054  done
8055IFS=$as_save_IFS
8056
8057fi
8058fi
8059LIPO=$ac_cv_prog_LIPO
8060if test -n "$LIPO"; then
8061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8062$as_echo "$LIPO" >&6; }
8063else
8064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
8066fi
8067
8068
8069fi
8070if test -z "$ac_cv_prog_LIPO"; then
8071  ac_ct_LIPO=$LIPO
8072  # Extract the first word of "lipo", so it can be a program name with args.
8073set dummy lipo; ac_word=$2
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075$as_echo_n "checking for $ac_word... " >&6; }
8076if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8077  $as_echo_n "(cached) " >&6
8078else
8079  if test -n "$ac_ct_LIPO"; then
8080  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8081else
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085  IFS=$as_save_IFS
8086  test -z "$as_dir" && as_dir=.
8087    for ac_exec_ext in '' $ac_executable_extensions; do
8088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089    ac_cv_prog_ac_ct_LIPO="lipo"
8090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091    break 2
8092  fi
8093done
8094  done
8095IFS=$as_save_IFS
8096
8097fi
8098fi
8099ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8100if test -n "$ac_ct_LIPO"; then
8101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8102$as_echo "$ac_ct_LIPO" >&6; }
8103else
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
8106fi
8107
8108  if test "x$ac_ct_LIPO" = x; then
8109    LIPO=":"
8110  else
8111    case $cross_compiling:$ac_tool_warned in
8112yes:)
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8115ac_tool_warned=yes ;;
8116esac
8117    LIPO=$ac_ct_LIPO
8118  fi
8119else
8120  LIPO="$ac_cv_prog_LIPO"
8121fi
8122
8123    if test -n "$ac_tool_prefix"; then
8124  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8125set dummy ${ac_tool_prefix}otool; ac_word=$2
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127$as_echo_n "checking for $ac_word... " >&6; }
8128if ${ac_cv_prog_OTOOL+:} false; then :
8129  $as_echo_n "(cached) " >&6
8130else
8131  if test -n "$OTOOL"; then
8132  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8133else
8134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135for as_dir in $PATH
8136do
8137  IFS=$as_save_IFS
8138  test -z "$as_dir" && as_dir=.
8139    for ac_exec_ext in '' $ac_executable_extensions; do
8140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143    break 2
8144  fi
8145done
8146  done
8147IFS=$as_save_IFS
8148
8149fi
8150fi
8151OTOOL=$ac_cv_prog_OTOOL
8152if test -n "$OTOOL"; then
8153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8154$as_echo "$OTOOL" >&6; }
8155else
8156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157$as_echo "no" >&6; }
8158fi
8159
8160
8161fi
8162if test -z "$ac_cv_prog_OTOOL"; then
8163  ac_ct_OTOOL=$OTOOL
8164  # Extract the first word of "otool", so it can be a program name with args.
8165set dummy otool; ac_word=$2
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167$as_echo_n "checking for $ac_word... " >&6; }
8168if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  if test -n "$ac_ct_OTOOL"; then
8172  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8173else
8174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175for as_dir in $PATH
8176do
8177  IFS=$as_save_IFS
8178  test -z "$as_dir" && as_dir=.
8179    for ac_exec_ext in '' $ac_executable_extensions; do
8180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8181    ac_cv_prog_ac_ct_OTOOL="otool"
8182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183    break 2
8184  fi
8185done
8186  done
8187IFS=$as_save_IFS
8188
8189fi
8190fi
8191ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8192if test -n "$ac_ct_OTOOL"; then
8193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8194$as_echo "$ac_ct_OTOOL" >&6; }
8195else
8196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197$as_echo "no" >&6; }
8198fi
8199
8200  if test "x$ac_ct_OTOOL" = x; then
8201    OTOOL=":"
8202  else
8203    case $cross_compiling:$ac_tool_warned in
8204yes:)
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8207ac_tool_warned=yes ;;
8208esac
8209    OTOOL=$ac_ct_OTOOL
8210  fi
8211else
8212  OTOOL="$ac_cv_prog_OTOOL"
8213fi
8214
8215    if test -n "$ac_tool_prefix"; then
8216  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8217set dummy ${ac_tool_prefix}otool64; ac_word=$2
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219$as_echo_n "checking for $ac_word... " >&6; }
8220if ${ac_cv_prog_OTOOL64+:} false; then :
8221  $as_echo_n "(cached) " >&6
8222else
8223  if test -n "$OTOOL64"; then
8224  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8225else
8226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229  IFS=$as_save_IFS
8230  test -z "$as_dir" && as_dir=.
8231    for ac_exec_ext in '' $ac_executable_extensions; do
8232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8233    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235    break 2
8236  fi
8237done
8238  done
8239IFS=$as_save_IFS
8240
8241fi
8242fi
8243OTOOL64=$ac_cv_prog_OTOOL64
8244if test -n "$OTOOL64"; then
8245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8246$as_echo "$OTOOL64" >&6; }
8247else
8248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249$as_echo "no" >&6; }
8250fi
8251
8252
8253fi
8254if test -z "$ac_cv_prog_OTOOL64"; then
8255  ac_ct_OTOOL64=$OTOOL64
8256  # Extract the first word of "otool64", so it can be a program name with args.
8257set dummy otool64; ac_word=$2
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259$as_echo_n "checking for $ac_word... " >&6; }
8260if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8261  $as_echo_n "(cached) " >&6
8262else
8263  if test -n "$ac_ct_OTOOL64"; then
8264  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8265else
8266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269  IFS=$as_save_IFS
8270  test -z "$as_dir" && as_dir=.
8271    for ac_exec_ext in '' $ac_executable_extensions; do
8272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8273    ac_cv_prog_ac_ct_OTOOL64="otool64"
8274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275    break 2
8276  fi
8277done
8278  done
8279IFS=$as_save_IFS
8280
8281fi
8282fi
8283ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8284if test -n "$ac_ct_OTOOL64"; then
8285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8286$as_echo "$ac_ct_OTOOL64" >&6; }
8287else
8288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289$as_echo "no" >&6; }
8290fi
8291
8292  if test "x$ac_ct_OTOOL64" = x; then
8293    OTOOL64=":"
8294  else
8295    case $cross_compiling:$ac_tool_warned in
8296yes:)
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8299ac_tool_warned=yes ;;
8300esac
8301    OTOOL64=$ac_ct_OTOOL64
8302  fi
8303else
8304  OTOOL64="$ac_cv_prog_OTOOL64"
8305fi
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8334$as_echo_n "checking for -single_module linker flag... " >&6; }
8335if ${lt_cv_apple_cc_single_mod+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  lt_cv_apple_cc_single_mod=no
8339      if test -z "${LT_MULTI_MODULE}"; then
8340	# By default we will add the -single_module flag. You can override
8341	# by either setting the environment variable LT_MULTI_MODULE
8342	# non-empty at configure time, or by adding -multi_module to the
8343	# link flags.
8344	rm -rf libconftest.dylib*
8345	echo "int foo(void){return 1;}" > conftest.c
8346	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8347-dynamiclib -Wl,-single_module conftest.c" >&5
8348	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8349	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8350        _lt_result=$?
8351	# If there is a non-empty error log, and "single_module"
8352	# appears in it, assume the flag caused a linker warning
8353        if test -s conftest.err && $GREP single_module conftest.err; then
8354	  cat conftest.err >&5
8355	# Otherwise, if the output was created with a 0 exit code from
8356	# the compiler, it worked.
8357	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8358	  lt_cv_apple_cc_single_mod=yes
8359	else
8360	  cat conftest.err >&5
8361	fi
8362	rm -rf libconftest.dylib*
8363	rm -f conftest.*
8364      fi
8365fi
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8367$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8368
8369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8370$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8371if ${lt_cv_ld_exported_symbols_list+:} false; then :
8372  $as_echo_n "(cached) " >&6
8373else
8374  lt_cv_ld_exported_symbols_list=no
8375      save_LDFLAGS=$LDFLAGS
8376      echo "_main" > conftest.sym
8377      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8378      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379/* end confdefs.h.  */
8380
8381int
8382main ()
8383{
8384
8385  ;
8386  return 0;
8387}
8388_ACEOF
8389if ac_fn_c_try_link "$LINENO"; then :
8390  lt_cv_ld_exported_symbols_list=yes
8391else
8392  lt_cv_ld_exported_symbols_list=no
8393fi
8394rm -f core conftest.err conftest.$ac_objext \
8395    conftest$ac_exeext conftest.$ac_ext
8396	LDFLAGS="$save_LDFLAGS"
8397
8398fi
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8400$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8401
8402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8403$as_echo_n "checking for -force_load linker flag... " >&6; }
8404if ${lt_cv_ld_force_load+:} false; then :
8405  $as_echo_n "(cached) " >&6
8406else
8407  lt_cv_ld_force_load=no
8408      cat > conftest.c << _LT_EOF
8409int forced_loaded() { return 2;}
8410_LT_EOF
8411      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8412      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8413      echo "$AR cru libconftest.a conftest.o" >&5
8414      $AR cru libconftest.a conftest.o 2>&5
8415      echo "$RANLIB libconftest.a" >&5
8416      $RANLIB libconftest.a 2>&5
8417      cat > conftest.c << _LT_EOF
8418int main() { return 0;}
8419_LT_EOF
8420      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8421      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8422      _lt_result=$?
8423      if test -s conftest.err && $GREP force_load conftest.err; then
8424	cat conftest.err >&5
8425      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8426	lt_cv_ld_force_load=yes
8427      else
8428	cat conftest.err >&5
8429      fi
8430        rm -f conftest.err libconftest.a conftest conftest.c
8431        rm -rf conftest.dSYM
8432
8433fi
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8435$as_echo "$lt_cv_ld_force_load" >&6; }
8436    case $host_os in
8437    rhapsody* | darwin1.[012])
8438      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8439    darwin1.*)
8440      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8441    darwin*) # darwin 5.x on
8442      # if running on 10.5 or later, the deployment target defaults
8443      # to the OS version, if on x86, and 10.4, the deployment
8444      # target defaults to 10.4. Don't you love it?
8445      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8446	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8447	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8448	10.[012]*)
8449	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8450	10.*)
8451	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8452      esac
8453    ;;
8454  esac
8455    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8456      _lt_dar_single_mod='$single_module'
8457    fi
8458    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8459      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8460    else
8461      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8462    fi
8463    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8464      _lt_dsymutil='~$DSYMUTIL $lib || :'
8465    else
8466      _lt_dsymutil=
8467    fi
8468    ;;
8469  esac
8470
8471for ac_header in dlfcn.h
8472do :
8473  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8474"
8475if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8476  cat >>confdefs.h <<_ACEOF
8477#define HAVE_DLFCN_H 1
8478_ACEOF
8479
8480fi
8481
8482done
8483
8484
8485
8486
8487
8488# Set options
8489enable_win32_dll=yes
8490
8491case $host in
8492*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8493  if test -n "$ac_tool_prefix"; then
8494  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8495set dummy ${ac_tool_prefix}as; ac_word=$2
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497$as_echo_n "checking for $ac_word... " >&6; }
8498if ${ac_cv_prog_AS+:} false; then :
8499  $as_echo_n "(cached) " >&6
8500else
8501  if test -n "$AS"; then
8502  ac_cv_prog_AS="$AS" # Let the user override the test.
8503else
8504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507  IFS=$as_save_IFS
8508  test -z "$as_dir" && as_dir=.
8509    for ac_exec_ext in '' $ac_executable_extensions; do
8510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511    ac_cv_prog_AS="${ac_tool_prefix}as"
8512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513    break 2
8514  fi
8515done
8516  done
8517IFS=$as_save_IFS
8518
8519fi
8520fi
8521AS=$ac_cv_prog_AS
8522if test -n "$AS"; then
8523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8524$as_echo "$AS" >&6; }
8525else
8526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
8528fi
8529
8530
8531fi
8532if test -z "$ac_cv_prog_AS"; then
8533  ac_ct_AS=$AS
8534  # Extract the first word of "as", so it can be a program name with args.
8535set dummy as; ac_word=$2
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
8538if ${ac_cv_prog_ac_ct_AS+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  if test -n "$ac_ct_AS"; then
8542  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547  IFS=$as_save_IFS
8548  test -z "$as_dir" && as_dir=.
8549    for ac_exec_ext in '' $ac_executable_extensions; do
8550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551    ac_cv_prog_ac_ct_AS="as"
8552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553    break 2
8554  fi
8555done
8556  done
8557IFS=$as_save_IFS
8558
8559fi
8560fi
8561ac_ct_AS=$ac_cv_prog_ac_ct_AS
8562if test -n "$ac_ct_AS"; then
8563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8564$as_echo "$ac_ct_AS" >&6; }
8565else
8566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
8568fi
8569
8570  if test "x$ac_ct_AS" = x; then
8571    AS="false"
8572  else
8573    case $cross_compiling:$ac_tool_warned in
8574yes:)
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8577ac_tool_warned=yes ;;
8578esac
8579    AS=$ac_ct_AS
8580  fi
8581else
8582  AS="$ac_cv_prog_AS"
8583fi
8584
8585  if test -n "$ac_tool_prefix"; then
8586  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8587set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8589$as_echo_n "checking for $ac_word... " >&6; }
8590if ${ac_cv_prog_DLLTOOL+:} false; then :
8591  $as_echo_n "(cached) " >&6
8592else
8593  if test -n "$DLLTOOL"; then
8594  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8595else
8596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597for as_dir in $PATH
8598do
8599  IFS=$as_save_IFS
8600  test -z "$as_dir" && as_dir=.
8601    for ac_exec_ext in '' $ac_executable_extensions; do
8602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8603    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8605    break 2
8606  fi
8607done
8608  done
8609IFS=$as_save_IFS
8610
8611fi
8612fi
8613DLLTOOL=$ac_cv_prog_DLLTOOL
8614if test -n "$DLLTOOL"; then
8615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8616$as_echo "$DLLTOOL" >&6; }
8617else
8618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619$as_echo "no" >&6; }
8620fi
8621
8622
8623fi
8624if test -z "$ac_cv_prog_DLLTOOL"; then
8625  ac_ct_DLLTOOL=$DLLTOOL
8626  # Extract the first word of "dlltool", so it can be a program name with args.
8627set dummy dlltool; ac_word=$2
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629$as_echo_n "checking for $ac_word... " >&6; }
8630if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8631  $as_echo_n "(cached) " >&6
8632else
8633  if test -n "$ac_ct_DLLTOOL"; then
8634  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8635else
8636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637for as_dir in $PATH
8638do
8639  IFS=$as_save_IFS
8640  test -z "$as_dir" && as_dir=.
8641    for ac_exec_ext in '' $ac_executable_extensions; do
8642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8643    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645    break 2
8646  fi
8647done
8648  done
8649IFS=$as_save_IFS
8650
8651fi
8652fi
8653ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8654if test -n "$ac_ct_DLLTOOL"; then
8655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8656$as_echo "$ac_ct_DLLTOOL" >&6; }
8657else
8658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659$as_echo "no" >&6; }
8660fi
8661
8662  if test "x$ac_ct_DLLTOOL" = x; then
8663    DLLTOOL="false"
8664  else
8665    case $cross_compiling:$ac_tool_warned in
8666yes:)
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8669ac_tool_warned=yes ;;
8670esac
8671    DLLTOOL=$ac_ct_DLLTOOL
8672  fi
8673else
8674  DLLTOOL="$ac_cv_prog_DLLTOOL"
8675fi
8676
8677  if test -n "$ac_tool_prefix"; then
8678  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8679set dummy ${ac_tool_prefix}objdump; ac_word=$2
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681$as_echo_n "checking for $ac_word... " >&6; }
8682if ${ac_cv_prog_OBJDUMP+:} false; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  if test -n "$OBJDUMP"; then
8686  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8687else
8688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689for as_dir in $PATH
8690do
8691  IFS=$as_save_IFS
8692  test -z "$as_dir" && as_dir=.
8693    for ac_exec_ext in '' $ac_executable_extensions; do
8694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8695    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8697    break 2
8698  fi
8699done
8700  done
8701IFS=$as_save_IFS
8702
8703fi
8704fi
8705OBJDUMP=$ac_cv_prog_OBJDUMP
8706if test -n "$OBJDUMP"; then
8707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8708$as_echo "$OBJDUMP" >&6; }
8709else
8710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711$as_echo "no" >&6; }
8712fi
8713
8714
8715fi
8716if test -z "$ac_cv_prog_OBJDUMP"; then
8717  ac_ct_OBJDUMP=$OBJDUMP
8718  # Extract the first word of "objdump", so it can be a program name with args.
8719set dummy objdump; ac_word=$2
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721$as_echo_n "checking for $ac_word... " >&6; }
8722if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8723  $as_echo_n "(cached) " >&6
8724else
8725  if test -n "$ac_ct_OBJDUMP"; then
8726  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8727else
8728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729for as_dir in $PATH
8730do
8731  IFS=$as_save_IFS
8732  test -z "$as_dir" && as_dir=.
8733    for ac_exec_ext in '' $ac_executable_extensions; do
8734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8735    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737    break 2
8738  fi
8739done
8740  done
8741IFS=$as_save_IFS
8742
8743fi
8744fi
8745ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8746if test -n "$ac_ct_OBJDUMP"; then
8747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8748$as_echo "$ac_ct_OBJDUMP" >&6; }
8749else
8750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751$as_echo "no" >&6; }
8752fi
8753
8754  if test "x$ac_ct_OBJDUMP" = x; then
8755    OBJDUMP="false"
8756  else
8757    case $cross_compiling:$ac_tool_warned in
8758yes:)
8759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8761ac_tool_warned=yes ;;
8762esac
8763    OBJDUMP=$ac_ct_OBJDUMP
8764  fi
8765else
8766  OBJDUMP="$ac_cv_prog_OBJDUMP"
8767fi
8768
8769  ;;
8770esac
8771
8772test -z "$AS" && AS=as
8773
8774
8775
8776
8777
8778test -z "$DLLTOOL" && DLLTOOL=dlltool
8779
8780
8781
8782
8783
8784test -z "$OBJDUMP" && OBJDUMP=objdump
8785
8786
8787
8788
8789
8790
8791
8792        enable_dlopen=no
8793
8794
8795
8796            # Check whether --enable-shared was given.
8797if test "${enable_shared+set}" = set; then :
8798  enableval=$enable_shared; p=${PACKAGE-default}
8799    case $enableval in
8800    yes) enable_shared=yes ;;
8801    no) enable_shared=no ;;
8802    *)
8803      enable_shared=no
8804      # Look at the argument we got.  We use all the common list separators.
8805      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8806      for pkg in $enableval; do
8807	IFS="$lt_save_ifs"
8808	if test "X$pkg" = "X$p"; then
8809	  enable_shared=yes
8810	fi
8811      done
8812      IFS="$lt_save_ifs"
8813      ;;
8814    esac
8815else
8816  enable_shared=yes
8817fi
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827  # Check whether --enable-static was given.
8828if test "${enable_static+set}" = set; then :
8829  enableval=$enable_static; p=${PACKAGE-default}
8830    case $enableval in
8831    yes) enable_static=yes ;;
8832    no) enable_static=no ;;
8833    *)
8834     enable_static=no
8835      # Look at the argument we got.  We use all the common list separators.
8836      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8837      for pkg in $enableval; do
8838	IFS="$lt_save_ifs"
8839	if test "X$pkg" = "X$p"; then
8840	  enable_static=yes
8841	fi
8842      done
8843      IFS="$lt_save_ifs"
8844      ;;
8845    esac
8846else
8847  enable_static=yes
8848fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859# Check whether --with-pic was given.
8860if test "${with_pic+set}" = set; then :
8861  withval=$with_pic; lt_p=${PACKAGE-default}
8862    case $withval in
8863    yes|no) pic_mode=$withval ;;
8864    *)
8865      pic_mode=default
8866      # Look at the argument we got.  We use all the common list separators.
8867      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8868      for lt_pkg in $withval; do
8869	IFS="$lt_save_ifs"
8870	if test "X$lt_pkg" = "X$lt_p"; then
8871	  pic_mode=yes
8872	fi
8873      done
8874      IFS="$lt_save_ifs"
8875      ;;
8876    esac
8877else
8878  pic_mode=default
8879fi
8880
8881
8882test -z "$pic_mode" && pic_mode=default
8883
8884
8885
8886
8887
8888
8889
8890  # Check whether --enable-fast-install was given.
8891if test "${enable_fast_install+set}" = set; then :
8892  enableval=$enable_fast_install; p=${PACKAGE-default}
8893    case $enableval in
8894    yes) enable_fast_install=yes ;;
8895    no) enable_fast_install=no ;;
8896    *)
8897      enable_fast_install=no
8898      # Look at the argument we got.  We use all the common list separators.
8899      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8900      for pkg in $enableval; do
8901	IFS="$lt_save_ifs"
8902	if test "X$pkg" = "X$p"; then
8903	  enable_fast_install=yes
8904	fi
8905      done
8906      IFS="$lt_save_ifs"
8907      ;;
8908    esac
8909else
8910  enable_fast_install=yes
8911fi
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923# This can be used to rebuild libtool when needed
8924LIBTOOL_DEPS="$ltmain"
8925
8926# Always use our own libtool.
8927LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958test -z "$LN_S" && LN_S="ln -s"
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973if test -n "${ZSH_VERSION+set}" ; then
8974   setopt NO_GLOB_SUBST
8975fi
8976
8977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8978$as_echo_n "checking for objdir... " >&6; }
8979if ${lt_cv_objdir+:} false; then :
8980  $as_echo_n "(cached) " >&6
8981else
8982  rm -f .libs 2>/dev/null
8983mkdir .libs 2>/dev/null
8984if test -d .libs; then
8985  lt_cv_objdir=.libs
8986else
8987  # MS-DOS does not allow filenames that begin with a dot.
8988  lt_cv_objdir=_libs
8989fi
8990rmdir .libs 2>/dev/null
8991fi
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8993$as_echo "$lt_cv_objdir" >&6; }
8994objdir=$lt_cv_objdir
8995
8996
8997
8998
8999
9000cat >>confdefs.h <<_ACEOF
9001#define LT_OBJDIR "$lt_cv_objdir/"
9002_ACEOF
9003
9004
9005
9006
9007case $host_os in
9008aix3*)
9009  # AIX sometimes has problems with the GCC collect2 program.  For some
9010  # reason, if we set the COLLECT_NAMES environment variable, the problems
9011  # vanish in a puff of smoke.
9012  if test "X${COLLECT_NAMES+set}" != Xset; then
9013    COLLECT_NAMES=
9014    export COLLECT_NAMES
9015  fi
9016  ;;
9017esac
9018
9019# Global variables:
9020ofile=libtool
9021can_build_shared=yes
9022
9023# All known linkers require a `.a' archive for static linking (except MSVC,
9024# which needs '.lib').
9025libext=a
9026
9027with_gnu_ld="$lt_cv_prog_gnu_ld"
9028
9029old_CC="$CC"
9030old_CFLAGS="$CFLAGS"
9031
9032# Set sane defaults for various variables
9033test -z "$CC" && CC=cc
9034test -z "$LTCC" && LTCC=$CC
9035test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9036test -z "$LD" && LD=ld
9037test -z "$ac_objext" && ac_objext=o
9038
9039for cc_temp in $compiler""; do
9040  case $cc_temp in
9041    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9042    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9043    \-*) ;;
9044    *) break;;
9045  esac
9046done
9047cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9048
9049
9050# Only perform the check for file, if the check method requires it
9051test -z "$MAGIC_CMD" && MAGIC_CMD=file
9052case $deplibs_check_method in
9053file_magic*)
9054  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9056$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9057if ${lt_cv_path_MAGIC_CMD+:} false; then :
9058  $as_echo_n "(cached) " >&6
9059else
9060  case $MAGIC_CMD in
9061[\\/*] |  ?:[\\/]*)
9062  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9063  ;;
9064*)
9065  lt_save_MAGIC_CMD="$MAGIC_CMD"
9066  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9067  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9068  for ac_dir in $ac_dummy; do
9069    IFS="$lt_save_ifs"
9070    test -z "$ac_dir" && ac_dir=.
9071    if test -f $ac_dir/${ac_tool_prefix}file; then
9072      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9073      if test -n "$file_magic_test_file"; then
9074	case $deplibs_check_method in
9075	"file_magic "*)
9076	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9077	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9078	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9079	    $EGREP "$file_magic_regex" > /dev/null; then
9080	    :
9081	  else
9082	    cat <<_LT_EOF 1>&2
9083
9084*** Warning: the command libtool uses to detect shared libraries,
9085*** $file_magic_cmd, produces output that libtool cannot recognize.
9086*** The result is that libtool may fail to recognize shared libraries
9087*** as such.  This will affect the creation of libtool libraries that
9088*** depend on shared libraries, but programs linked with such libtool
9089*** libraries will work regardless of this problem.  Nevertheless, you
9090*** may want to report the problem to your system manager and/or to
9091*** bug-libtool@gnu.org
9092
9093_LT_EOF
9094	  fi ;;
9095	esac
9096      fi
9097      break
9098    fi
9099  done
9100  IFS="$lt_save_ifs"
9101  MAGIC_CMD="$lt_save_MAGIC_CMD"
9102  ;;
9103esac
9104fi
9105
9106MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9107if test -n "$MAGIC_CMD"; then
9108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9109$as_echo "$MAGIC_CMD" >&6; }
9110else
9111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112$as_echo "no" >&6; }
9113fi
9114
9115
9116
9117
9118
9119if test -z "$lt_cv_path_MAGIC_CMD"; then
9120  if test -n "$ac_tool_prefix"; then
9121    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9122$as_echo_n "checking for file... " >&6; }
9123if ${lt_cv_path_MAGIC_CMD+:} false; then :
9124  $as_echo_n "(cached) " >&6
9125else
9126  case $MAGIC_CMD in
9127[\\/*] |  ?:[\\/]*)
9128  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9129  ;;
9130*)
9131  lt_save_MAGIC_CMD="$MAGIC_CMD"
9132  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9133  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9134  for ac_dir in $ac_dummy; do
9135    IFS="$lt_save_ifs"
9136    test -z "$ac_dir" && ac_dir=.
9137    if test -f $ac_dir/file; then
9138      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9139      if test -n "$file_magic_test_file"; then
9140	case $deplibs_check_method in
9141	"file_magic "*)
9142	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9143	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9144	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9145	    $EGREP "$file_magic_regex" > /dev/null; then
9146	    :
9147	  else
9148	    cat <<_LT_EOF 1>&2
9149
9150*** Warning: the command libtool uses to detect shared libraries,
9151*** $file_magic_cmd, produces output that libtool cannot recognize.
9152*** The result is that libtool may fail to recognize shared libraries
9153*** as such.  This will affect the creation of libtool libraries that
9154*** depend on shared libraries, but programs linked with such libtool
9155*** libraries will work regardless of this problem.  Nevertheless, you
9156*** may want to report the problem to your system manager and/or to
9157*** bug-libtool@gnu.org
9158
9159_LT_EOF
9160	  fi ;;
9161	esac
9162      fi
9163      break
9164    fi
9165  done
9166  IFS="$lt_save_ifs"
9167  MAGIC_CMD="$lt_save_MAGIC_CMD"
9168  ;;
9169esac
9170fi
9171
9172MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9173if test -n "$MAGIC_CMD"; then
9174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9175$as_echo "$MAGIC_CMD" >&6; }
9176else
9177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178$as_echo "no" >&6; }
9179fi
9180
9181
9182  else
9183    MAGIC_CMD=:
9184  fi
9185fi
9186
9187  fi
9188  ;;
9189esac
9190
9191# Use C for the default configuration in the libtool script
9192
9193lt_save_CC="$CC"
9194ac_ext=c
9195ac_cpp='$CPP $CPPFLAGS'
9196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9198ac_compiler_gnu=$ac_cv_c_compiler_gnu
9199
9200
9201# Source file extension for C test sources.
9202ac_ext=c
9203
9204# Object file extension for compiled C test sources.
9205objext=o
9206objext=$objext
9207
9208# Code to be used in simple compile tests
9209lt_simple_compile_test_code="int some_variable = 0;"
9210
9211# Code to be used in simple link tests
9212lt_simple_link_test_code='int main(){return(0);}'
9213
9214
9215
9216
9217
9218
9219
9220# If no C compiler was specified, use CC.
9221LTCC=${LTCC-"$CC"}
9222
9223# If no C compiler flags were specified, use CFLAGS.
9224LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9225
9226# Allow CC to be a program name with arguments.
9227compiler=$CC
9228
9229# Save the default compiler, since it gets overwritten when the other
9230# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9231compiler_DEFAULT=$CC
9232
9233# save warnings/boilerplate of simple test code
9234ac_outfile=conftest.$ac_objext
9235echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9236eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9237_lt_compiler_boilerplate=`cat conftest.err`
9238$RM conftest*
9239
9240ac_outfile=conftest.$ac_objext
9241echo "$lt_simple_link_test_code" >conftest.$ac_ext
9242eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9243_lt_linker_boilerplate=`cat conftest.err`
9244$RM -r conftest*
9245
9246
9247if test -n "$compiler"; then
9248
9249lt_prog_compiler_no_builtin_flag=
9250
9251if test "$GCC" = yes; then
9252  case $cc_basename in
9253  nvcc*)
9254    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9255  *)
9256    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9257  esac
9258
9259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9260$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9261if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9262  $as_echo_n "(cached) " >&6
9263else
9264  lt_cv_prog_compiler_rtti_exceptions=no
9265   ac_outfile=conftest.$ac_objext
9266   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9267   lt_compiler_flag="-fno-rtti -fno-exceptions"
9268   # Insert the option either (1) after the last *FLAGS variable, or
9269   # (2) before a word containing "conftest.", or (3) at the end.
9270   # Note that $ac_compile itself does not contain backslashes and begins
9271   # with a dollar sign (not a hyphen), so the echo should work correctly.
9272   # The option is referenced via a variable to avoid confusing sed.
9273   lt_compile=`echo "$ac_compile" | $SED \
9274   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9275   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9276   -e 's:$: $lt_compiler_flag:'`
9277   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9278   (eval "$lt_compile" 2>conftest.err)
9279   ac_status=$?
9280   cat conftest.err >&5
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   if (exit $ac_status) && test -s "$ac_outfile"; then
9283     # The compiler can only warn and ignore the option if not recognized
9284     # So say no if there are warnings other than the usual output.
9285     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9286     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9287     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9288       lt_cv_prog_compiler_rtti_exceptions=yes
9289     fi
9290   fi
9291   $RM conftest*
9292
9293fi
9294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9295$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9296
9297if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9298    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9299else
9300    :
9301fi
9302
9303fi
9304
9305
9306
9307
9308
9309
9310  lt_prog_compiler_wl=
9311lt_prog_compiler_pic=
9312lt_prog_compiler_static=
9313
9314
9315  if test "$GCC" = yes; then
9316    lt_prog_compiler_wl='-Wl,'
9317    lt_prog_compiler_static='-static'
9318
9319    case $host_os in
9320      aix*)
9321      # All AIX code is PIC.
9322      if test "$host_cpu" = ia64; then
9323	# AIX 5 now supports IA64 processor
9324	lt_prog_compiler_static='-Bstatic'
9325      fi
9326      ;;
9327
9328    amigaos*)
9329      case $host_cpu in
9330      powerpc)
9331            # see comment about AmigaOS4 .so support
9332            lt_prog_compiler_pic='-fPIC'
9333        ;;
9334      m68k)
9335            # FIXME: we need at least 68020 code to build shared libraries, but
9336            # adding the `-m68020' flag to GCC prevents building anything better,
9337            # like `-m68040'.
9338            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9339        ;;
9340      esac
9341      ;;
9342
9343    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9344      # PIC is the default for these OSes.
9345      ;;
9346
9347    mingw* | cygwin* | pw32* | os2* | cegcc*)
9348      # This hack is so that the source file can tell whether it is being
9349      # built for inclusion in a dll (and should export symbols for example).
9350      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9351      # (--disable-auto-import) libraries
9352      lt_prog_compiler_pic='-DDLL_EXPORT'
9353      ;;
9354
9355    darwin* | rhapsody*)
9356      # PIC is the default on this platform
9357      # Common symbols not allowed in MH_DYLIB files
9358      lt_prog_compiler_pic='-fno-common'
9359      ;;
9360
9361    haiku*)
9362      # PIC is the default for Haiku.
9363      # The "-static" flag exists, but is broken.
9364      lt_prog_compiler_static=
9365      ;;
9366
9367    hpux*)
9368      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9369      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9370      # sets the default TLS model and affects inlining.
9371      case $host_cpu in
9372      hppa*64*)
9373	# +Z the default
9374	;;
9375      *)
9376	lt_prog_compiler_pic='-fPIC'
9377	;;
9378      esac
9379      ;;
9380
9381    interix[3-9]*)
9382      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9383      # Instead, we relocate shared libraries at runtime.
9384      ;;
9385
9386    msdosdjgpp*)
9387      # Just because we use GCC doesn't mean we suddenly get shared libraries
9388      # on systems that don't support them.
9389      lt_prog_compiler_can_build_shared=no
9390      enable_shared=no
9391      ;;
9392
9393    *nto* | *qnx*)
9394      # QNX uses GNU C++, but need to define -shared option too, otherwise
9395      # it will coredump.
9396      lt_prog_compiler_pic='-fPIC -shared'
9397      ;;
9398
9399    sysv4*MP*)
9400      if test -d /usr/nec; then
9401	lt_prog_compiler_pic=-Kconform_pic
9402      fi
9403      ;;
9404
9405    *)
9406      lt_prog_compiler_pic='-fPIC'
9407      ;;
9408    esac
9409
9410    case $cc_basename in
9411    nvcc*) # Cuda Compiler Driver 2.2
9412      lt_prog_compiler_wl='-Xlinker '
9413      if test -n "$lt_prog_compiler_pic"; then
9414        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9415      fi
9416      ;;
9417    esac
9418  else
9419    # PORTME Check for flag to pass linker flags through the system compiler.
9420    case $host_os in
9421    aix*)
9422      lt_prog_compiler_wl='-Wl,'
9423      if test "$host_cpu" = ia64; then
9424	# AIX 5 now supports IA64 processor
9425	lt_prog_compiler_static='-Bstatic'
9426      else
9427	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9428      fi
9429      ;;
9430
9431    mingw* | cygwin* | pw32* | os2* | cegcc*)
9432      # This hack is so that the source file can tell whether it is being
9433      # built for inclusion in a dll (and should export symbols for example).
9434      lt_prog_compiler_pic='-DDLL_EXPORT'
9435      ;;
9436
9437    hpux9* | hpux10* | hpux11*)
9438      lt_prog_compiler_wl='-Wl,'
9439      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9440      # not for PA HP-UX.
9441      case $host_cpu in
9442      hppa*64*|ia64*)
9443	# +Z the default
9444	;;
9445      *)
9446	lt_prog_compiler_pic='+Z'
9447	;;
9448      esac
9449      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9450      lt_prog_compiler_static='${wl}-a ${wl}archive'
9451      ;;
9452
9453    irix5* | irix6* | nonstopux*)
9454      lt_prog_compiler_wl='-Wl,'
9455      # PIC (with -KPIC) is the default.
9456      lt_prog_compiler_static='-non_shared'
9457      ;;
9458
9459    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9460      case $cc_basename in
9461      # old Intel for x86_64 which still supported -KPIC.
9462      ecc*)
9463	lt_prog_compiler_wl='-Wl,'
9464	lt_prog_compiler_pic='-KPIC'
9465	lt_prog_compiler_static='-static'
9466        ;;
9467      # icc used to be incompatible with GCC.
9468      # ICC 10 doesn't accept -KPIC any more.
9469      icc* | ifort*)
9470	lt_prog_compiler_wl='-Wl,'
9471	lt_prog_compiler_pic='-fPIC'
9472	lt_prog_compiler_static='-static'
9473        ;;
9474      # Lahey Fortran 8.1.
9475      lf95*)
9476	lt_prog_compiler_wl='-Wl,'
9477	lt_prog_compiler_pic='--shared'
9478	lt_prog_compiler_static='--static'
9479	;;
9480      nagfor*)
9481	# NAG Fortran compiler
9482	lt_prog_compiler_wl='-Wl,-Wl,,'
9483	lt_prog_compiler_pic='-PIC'
9484	lt_prog_compiler_static='-Bstatic'
9485	;;
9486      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9487        # Portland Group compilers (*not* the Pentium gcc compiler,
9488	# which looks to be a dead project)
9489	lt_prog_compiler_wl='-Wl,'
9490	lt_prog_compiler_pic='-fpic'
9491	lt_prog_compiler_static='-Bstatic'
9492        ;;
9493      ccc*)
9494        lt_prog_compiler_wl='-Wl,'
9495        # All Alpha code is PIC.
9496        lt_prog_compiler_static='-non_shared'
9497        ;;
9498      xl* | bgxl* | bgf* | mpixl*)
9499	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9500	lt_prog_compiler_wl='-Wl,'
9501	lt_prog_compiler_pic='-qpic'
9502	lt_prog_compiler_static='-qstaticlink'
9503	;;
9504      *)
9505	case `$CC -V 2>&1 | sed 5q` in
9506	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9507	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9508	  lt_prog_compiler_pic='-KPIC'
9509	  lt_prog_compiler_static='-Bstatic'
9510	  lt_prog_compiler_wl=''
9511	  ;;
9512	*Sun\ F* | *Sun*Fortran*)
9513	  lt_prog_compiler_pic='-KPIC'
9514	  lt_prog_compiler_static='-Bstatic'
9515	  lt_prog_compiler_wl='-Qoption ld '
9516	  ;;
9517	*Sun\ C*)
9518	  # Sun C 5.9
9519	  lt_prog_compiler_pic='-KPIC'
9520	  lt_prog_compiler_static='-Bstatic'
9521	  lt_prog_compiler_wl='-Wl,'
9522	  ;;
9523        *Intel*\ [CF]*Compiler*)
9524	  lt_prog_compiler_wl='-Wl,'
9525	  lt_prog_compiler_pic='-fPIC'
9526	  lt_prog_compiler_static='-static'
9527	  ;;
9528	*Portland\ Group*)
9529	  lt_prog_compiler_wl='-Wl,'
9530	  lt_prog_compiler_pic='-fpic'
9531	  lt_prog_compiler_static='-Bstatic'
9532	  ;;
9533	esac
9534	;;
9535      esac
9536      ;;
9537
9538    newsos6)
9539      lt_prog_compiler_pic='-KPIC'
9540      lt_prog_compiler_static='-Bstatic'
9541      ;;
9542
9543    *nto* | *qnx*)
9544      # QNX uses GNU C++, but need to define -shared option too, otherwise
9545      # it will coredump.
9546      lt_prog_compiler_pic='-fPIC -shared'
9547      ;;
9548
9549    osf3* | osf4* | osf5*)
9550      lt_prog_compiler_wl='-Wl,'
9551      # All OSF/1 code is PIC.
9552      lt_prog_compiler_static='-non_shared'
9553      ;;
9554
9555    rdos*)
9556      lt_prog_compiler_static='-non_shared'
9557      ;;
9558
9559    solaris*)
9560      lt_prog_compiler_pic='-KPIC'
9561      lt_prog_compiler_static='-Bstatic'
9562      case $cc_basename in
9563      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9564	lt_prog_compiler_wl='-Qoption ld ';;
9565      *)
9566	lt_prog_compiler_wl='-Wl,';;
9567      esac
9568      ;;
9569
9570    sunos4*)
9571      lt_prog_compiler_wl='-Qoption ld '
9572      lt_prog_compiler_pic='-PIC'
9573      lt_prog_compiler_static='-Bstatic'
9574      ;;
9575
9576    sysv4 | sysv4.2uw2* | sysv4.3*)
9577      lt_prog_compiler_wl='-Wl,'
9578      lt_prog_compiler_pic='-KPIC'
9579      lt_prog_compiler_static='-Bstatic'
9580      ;;
9581
9582    sysv4*MP*)
9583      if test -d /usr/nec ;then
9584	lt_prog_compiler_pic='-Kconform_pic'
9585	lt_prog_compiler_static='-Bstatic'
9586      fi
9587      ;;
9588
9589    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9590      lt_prog_compiler_wl='-Wl,'
9591      lt_prog_compiler_pic='-KPIC'
9592      lt_prog_compiler_static='-Bstatic'
9593      ;;
9594
9595    unicos*)
9596      lt_prog_compiler_wl='-Wl,'
9597      lt_prog_compiler_can_build_shared=no
9598      ;;
9599
9600    uts4*)
9601      lt_prog_compiler_pic='-pic'
9602      lt_prog_compiler_static='-Bstatic'
9603      ;;
9604
9605    *)
9606      lt_prog_compiler_can_build_shared=no
9607      ;;
9608    esac
9609  fi
9610
9611case $host_os in
9612  # For platforms which do not support PIC, -DPIC is meaningless:
9613  *djgpp*)
9614    lt_prog_compiler_pic=
9615    ;;
9616  *)
9617    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9618    ;;
9619esac
9620
9621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9622$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9623if ${lt_cv_prog_compiler_pic+:} false; then :
9624  $as_echo_n "(cached) " >&6
9625else
9626  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9627fi
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9629$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9630lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9631
9632#
9633# Check to make sure the PIC flag actually works.
9634#
9635if test -n "$lt_prog_compiler_pic"; then
9636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9637$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9638if ${lt_cv_prog_compiler_pic_works+:} false; then :
9639  $as_echo_n "(cached) " >&6
9640else
9641  lt_cv_prog_compiler_pic_works=no
9642   ac_outfile=conftest.$ac_objext
9643   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9644   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9645   # Insert the option either (1) after the last *FLAGS variable, or
9646   # (2) before a word containing "conftest.", or (3) at the end.
9647   # Note that $ac_compile itself does not contain backslashes and begins
9648   # with a dollar sign (not a hyphen), so the echo should work correctly.
9649   # The option is referenced via a variable to avoid confusing sed.
9650   lt_compile=`echo "$ac_compile" | $SED \
9651   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9653   -e 's:$: $lt_compiler_flag:'`
9654   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9655   (eval "$lt_compile" 2>conftest.err)
9656   ac_status=$?
9657   cat conftest.err >&5
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   if (exit $ac_status) && test -s "$ac_outfile"; then
9660     # The compiler can only warn and ignore the option if not recognized
9661     # So say no if there are warnings other than the usual output.
9662     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9663     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9664     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9665       lt_cv_prog_compiler_pic_works=yes
9666     fi
9667   fi
9668   $RM conftest*
9669
9670fi
9671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9672$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9673
9674if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9675    case $lt_prog_compiler_pic in
9676     "" | " "*) ;;
9677     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9678     esac
9679else
9680    lt_prog_compiler_pic=
9681     lt_prog_compiler_can_build_shared=no
9682fi
9683
9684fi
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696#
9697# Check to make sure the static flag actually works.
9698#
9699wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9701$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9702if ${lt_cv_prog_compiler_static_works+:} false; then :
9703  $as_echo_n "(cached) " >&6
9704else
9705  lt_cv_prog_compiler_static_works=no
9706   save_LDFLAGS="$LDFLAGS"
9707   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9708   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9709   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9710     # The linker can only warn and ignore the option if not recognized
9711     # So say no if there are warnings
9712     if test -s conftest.err; then
9713       # Append any errors to the config.log.
9714       cat conftest.err 1>&5
9715       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9716       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9717       if diff conftest.exp conftest.er2 >/dev/null; then
9718         lt_cv_prog_compiler_static_works=yes
9719       fi
9720     else
9721       lt_cv_prog_compiler_static_works=yes
9722     fi
9723   fi
9724   $RM -r conftest*
9725   LDFLAGS="$save_LDFLAGS"
9726
9727fi
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9729$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9730
9731if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9732    :
9733else
9734    lt_prog_compiler_static=
9735fi
9736
9737
9738
9739
9740
9741
9742
9743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9744$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9745if ${lt_cv_prog_compiler_c_o+:} false; then :
9746  $as_echo_n "(cached) " >&6
9747else
9748  lt_cv_prog_compiler_c_o=no
9749   $RM -r conftest 2>/dev/null
9750   mkdir conftest
9751   cd conftest
9752   mkdir out
9753   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9754
9755   lt_compiler_flag="-o out/conftest2.$ac_objext"
9756   # Insert the option either (1) after the last *FLAGS variable, or
9757   # (2) before a word containing "conftest.", or (3) at the end.
9758   # Note that $ac_compile itself does not contain backslashes and begins
9759   # with a dollar sign (not a hyphen), so the echo should work correctly.
9760   lt_compile=`echo "$ac_compile" | $SED \
9761   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763   -e 's:$: $lt_compiler_flag:'`
9764   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9765   (eval "$lt_compile" 2>out/conftest.err)
9766   ac_status=$?
9767   cat out/conftest.err >&5
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9770   then
9771     # The compiler can only warn and ignore the option if not recognized
9772     # So say no if there are warnings
9773     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9774     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9775     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9776       lt_cv_prog_compiler_c_o=yes
9777     fi
9778   fi
9779   chmod u+w . 2>&5
9780   $RM conftest*
9781   # SGI C++ compiler will create directory out/ii_files/ for
9782   # template instantiation
9783   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9784   $RM out/* && rmdir out
9785   cd ..
9786   $RM -r conftest
9787   $RM conftest*
9788
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9791$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9792
9793
9794
9795
9796
9797
9798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9799$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9800if ${lt_cv_prog_compiler_c_o+:} false; then :
9801  $as_echo_n "(cached) " >&6
9802else
9803  lt_cv_prog_compiler_c_o=no
9804   $RM -r conftest 2>/dev/null
9805   mkdir conftest
9806   cd conftest
9807   mkdir out
9808   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9809
9810   lt_compiler_flag="-o out/conftest2.$ac_objext"
9811   # Insert the option either (1) after the last *FLAGS variable, or
9812   # (2) before a word containing "conftest.", or (3) at the end.
9813   # Note that $ac_compile itself does not contain backslashes and begins
9814   # with a dollar sign (not a hyphen), so the echo should work correctly.
9815   lt_compile=`echo "$ac_compile" | $SED \
9816   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9817   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9818   -e 's:$: $lt_compiler_flag:'`
9819   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9820   (eval "$lt_compile" 2>out/conftest.err)
9821   ac_status=$?
9822   cat out/conftest.err >&5
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9825   then
9826     # The compiler can only warn and ignore the option if not recognized
9827     # So say no if there are warnings
9828     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9829     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9830     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9831       lt_cv_prog_compiler_c_o=yes
9832     fi
9833   fi
9834   chmod u+w . 2>&5
9835   $RM conftest*
9836   # SGI C++ compiler will create directory out/ii_files/ for
9837   # template instantiation
9838   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9839   $RM out/* && rmdir out
9840   cd ..
9841   $RM -r conftest
9842   $RM conftest*
9843
9844fi
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9846$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9847
9848
9849
9850
9851hard_links="nottested"
9852if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9853  # do not overwrite the value of need_locks provided by the user
9854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9855$as_echo_n "checking if we can lock with hard links... " >&6; }
9856  hard_links=yes
9857  $RM conftest*
9858  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9859  touch conftest.a
9860  ln conftest.a conftest.b 2>&5 || hard_links=no
9861  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9863$as_echo "$hard_links" >&6; }
9864  if test "$hard_links" = no; then
9865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9866$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9867    need_locks=warn
9868  fi
9869else
9870  need_locks=no
9871fi
9872
9873
9874
9875
9876
9877
9878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9879$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9880
9881  runpath_var=
9882  allow_undefined_flag=
9883  always_export_symbols=no
9884  archive_cmds=
9885  archive_expsym_cmds=
9886  compiler_needs_object=no
9887  enable_shared_with_static_runtimes=no
9888  export_dynamic_flag_spec=
9889  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9890  hardcode_automatic=no
9891  hardcode_direct=no
9892  hardcode_direct_absolute=no
9893  hardcode_libdir_flag_spec=
9894  hardcode_libdir_separator=
9895  hardcode_minus_L=no
9896  hardcode_shlibpath_var=unsupported
9897  inherit_rpath=no
9898  link_all_deplibs=unknown
9899  module_cmds=
9900  module_expsym_cmds=
9901  old_archive_from_new_cmds=
9902  old_archive_from_expsyms_cmds=
9903  thread_safe_flag_spec=
9904  whole_archive_flag_spec=
9905  # include_expsyms should be a list of space-separated symbols to be *always*
9906  # included in the symbol list
9907  include_expsyms=
9908  # exclude_expsyms can be an extended regexp of symbols to exclude
9909  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9910  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9911  # as well as any symbol that contains `d'.
9912  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9913  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9914  # platforms (ab)use it in PIC code, but their linkers get confused if
9915  # the symbol is explicitly referenced.  Since portable code cannot
9916  # rely on this symbol name, it's probably fine to never include it in
9917  # preloaded symbol tables.
9918  # Exclude shared library initialization/finalization symbols.
9919  extract_expsyms_cmds=
9920
9921  case $host_os in
9922  cygwin* | mingw* | pw32* | cegcc*)
9923    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9924    # When not using gcc, we currently assume that we are using
9925    # Microsoft Visual C++.
9926    if test "$GCC" != yes; then
9927      with_gnu_ld=no
9928    fi
9929    ;;
9930  interix*)
9931    # we just hope/assume this is gcc and not c89 (= MSVC++)
9932    with_gnu_ld=yes
9933    ;;
9934  openbsd*)
9935    with_gnu_ld=no
9936    ;;
9937  esac
9938
9939  ld_shlibs=yes
9940
9941  # On some targets, GNU ld is compatible enough with the native linker
9942  # that we're better off using the native interface for both.
9943  lt_use_gnu_ld_interface=no
9944  if test "$with_gnu_ld" = yes; then
9945    case $host_os in
9946      aix*)
9947	# The AIX port of GNU ld has always aspired to compatibility
9948	# with the native linker.  However, as the warning in the GNU ld
9949	# block says, versions before 2.19.5* couldn't really create working
9950	# shared libraries, regardless of the interface used.
9951	case `$LD -v 2>&1` in
9952	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9953	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9954	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9955	  *)
9956	    lt_use_gnu_ld_interface=yes
9957	    ;;
9958	esac
9959	;;
9960      *)
9961	lt_use_gnu_ld_interface=yes
9962	;;
9963    esac
9964  fi
9965
9966  if test "$lt_use_gnu_ld_interface" = yes; then
9967    # If archive_cmds runs LD, not CC, wlarc should be empty
9968    wlarc='${wl}'
9969
9970    # Set some defaults for GNU ld with shared library support. These
9971    # are reset later if shared libraries are not supported. Putting them
9972    # here allows them to be overridden if necessary.
9973    runpath_var=LD_RUN_PATH
9974    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9975    export_dynamic_flag_spec='${wl}--export-dynamic'
9976    # ancient GNU ld didn't support --whole-archive et. al.
9977    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9978      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9979    else
9980      whole_archive_flag_spec=
9981    fi
9982    supports_anon_versioning=no
9983    case `$LD -v 2>&1` in
9984      *GNU\ gold*) supports_anon_versioning=yes ;;
9985      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9986      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9987      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9988      *\ 2.11.*) ;; # other 2.11 versions
9989      *) supports_anon_versioning=yes ;;
9990    esac
9991
9992    # See if GNU ld supports shared libraries.
9993    case $host_os in
9994    aix[3-9]*)
9995      # On AIX/PPC, the GNU linker is very broken
9996      if test "$host_cpu" != ia64; then
9997	ld_shlibs=no
9998	cat <<_LT_EOF 1>&2
9999
10000*** Warning: the GNU linker, at least up to release 2.19, is reported
10001*** to be unable to reliably create shared libraries on AIX.
10002*** Therefore, libtool is disabling shared libraries support.  If you
10003*** really care for shared libraries, you may want to install binutils
10004*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10005*** You will then need to restart the configuration process.
10006
10007_LT_EOF
10008      fi
10009      ;;
10010
10011    amigaos*)
10012      case $host_cpu in
10013      powerpc)
10014            # see comment about AmigaOS4 .so support
10015            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016            archive_expsym_cmds=''
10017        ;;
10018      m68k)
10019            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)'
10020            hardcode_libdir_flag_spec='-L$libdir'
10021            hardcode_minus_L=yes
10022        ;;
10023      esac
10024      ;;
10025
10026    beos*)
10027      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10028	allow_undefined_flag=unsupported
10029	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10030	# support --undefined.  This deserves some investigation.  FIXME
10031	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10032      else
10033	ld_shlibs=no
10034      fi
10035      ;;
10036
10037    cygwin* | mingw* | pw32* | cegcc*)
10038      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10039      # as there is no search path for DLLs.
10040      hardcode_libdir_flag_spec='-L$libdir'
10041      export_dynamic_flag_spec='${wl}--export-all-symbols'
10042      allow_undefined_flag=unsupported
10043      always_export_symbols=no
10044      enable_shared_with_static_runtimes=yes
10045      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'
10046      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10047
10048      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10049        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10050	# If the export-symbols file already is a .def file (1st line
10051	# is EXPORTS), use it as is; otherwise, prepend...
10052	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10053	  cp $export_symbols $output_objdir/$soname.def;
10054	else
10055	  echo EXPORTS > $output_objdir/$soname.def;
10056	  cat $export_symbols >> $output_objdir/$soname.def;
10057	fi~
10058	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10059      else
10060	ld_shlibs=no
10061      fi
10062      ;;
10063
10064    haiku*)
10065      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066      link_all_deplibs=yes
10067      ;;
10068
10069    interix[3-9]*)
10070      hardcode_direct=no
10071      hardcode_shlibpath_var=no
10072      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10073      export_dynamic_flag_spec='${wl}-E'
10074      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10075      # Instead, shared libraries are loaded at an image base (0x10000000 by
10076      # default) and relocated if they conflict, which is a slow very memory
10077      # consuming and fragmenting process.  To avoid this, we pick a random,
10078      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10079      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10080      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10081      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'
10082      ;;
10083
10084    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10085      tmp_diet=no
10086      if test "$host_os" = linux-dietlibc; then
10087	case $cc_basename in
10088	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10089	esac
10090      fi
10091      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10092	 && test "$tmp_diet" = no
10093      then
10094	tmp_addflag=' $pic_flag'
10095	tmp_sharedflag='-shared'
10096	case $cc_basename,$host_cpu in
10097        pgcc*)				# Portland Group C compiler
10098	  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'
10099	  tmp_addflag=' $pic_flag'
10100	  ;;
10101	pgf77* | pgf90* | pgf95* | pgfortran*)
10102					# Portland Group f77 and f90 compilers
10103	  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'
10104	  tmp_addflag=' $pic_flag -Mnomain' ;;
10105	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10106	  tmp_addflag=' -i_dynamic' ;;
10107	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10108	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10109	ifc* | ifort*)			# Intel Fortran compiler
10110	  tmp_addflag=' -nofor_main' ;;
10111	lf95*)				# Lahey Fortran 8.1
10112	  whole_archive_flag_spec=
10113	  tmp_sharedflag='--shared' ;;
10114	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10115	  tmp_sharedflag='-qmkshrobj'
10116	  tmp_addflag= ;;
10117	nvcc*)	# Cuda Compiler Driver 2.2
10118	  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'
10119	  compiler_needs_object=yes
10120	  ;;
10121	esac
10122	case `$CC -V 2>&1 | sed 5q` in
10123	*Sun\ C*)			# Sun C 5.9
10124	  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'
10125	  compiler_needs_object=yes
10126	  tmp_sharedflag='-G' ;;
10127	*Sun\ F*)			# Sun Fortran 8.3
10128	  tmp_sharedflag='-G' ;;
10129	esac
10130	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10131
10132        if test "x$supports_anon_versioning" = xyes; then
10133          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10134	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10135	    echo "local: *; };" >> $output_objdir/$libname.ver~
10136	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10137        fi
10138
10139	case $cc_basename in
10140	xlf* | bgf* | bgxlf* | mpixlf*)
10141	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10142	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10143	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10144	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10145	  if test "x$supports_anon_versioning" = xyes; then
10146	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10147	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10148	      echo "local: *; };" >> $output_objdir/$libname.ver~
10149	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10150	  fi
10151	  ;;
10152	esac
10153      else
10154        ld_shlibs=no
10155      fi
10156      ;;
10157
10158    netbsd*)
10159      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10160	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10161	wlarc=
10162      else
10163	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10164	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10165      fi
10166      ;;
10167
10168    solaris*)
10169      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10170	ld_shlibs=no
10171	cat <<_LT_EOF 1>&2
10172
10173*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10174*** create shared libraries on Solaris systems.  Therefore, libtool
10175*** is disabling shared libraries support.  We urge you to upgrade GNU
10176*** binutils to release 2.9.1 or newer.  Another option is to modify
10177*** your PATH or compiler configuration so that the native linker is
10178*** used, and then restart.
10179
10180_LT_EOF
10181      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10182	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10183	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10184      else
10185	ld_shlibs=no
10186      fi
10187      ;;
10188
10189    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10190      case `$LD -v 2>&1` in
10191        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10192	ld_shlibs=no
10193	cat <<_LT_EOF 1>&2
10194
10195*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10196*** reliably create shared libraries on SCO systems.  Therefore, libtool
10197*** is disabling shared libraries support.  We urge you to upgrade GNU
10198*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10199*** your PATH or compiler configuration so that the native linker is
10200*** used, and then restart.
10201
10202_LT_EOF
10203	;;
10204	*)
10205	  # For security reasons, it is highly recommended that you always
10206	  # use absolute paths for naming shared libraries, and exclude the
10207	  # DT_RUNPATH tag from executables and libraries.  But doing so
10208	  # requires that you compile everything twice, which is a pain.
10209	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10210	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10211	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10212	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10213	  else
10214	    ld_shlibs=no
10215	  fi
10216	;;
10217      esac
10218      ;;
10219
10220    sunos4*)
10221      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10222      wlarc=
10223      hardcode_direct=yes
10224      hardcode_shlibpath_var=no
10225      ;;
10226
10227    *)
10228      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10229	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10230	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10231      else
10232	ld_shlibs=no
10233      fi
10234      ;;
10235    esac
10236
10237    if test "$ld_shlibs" = no; then
10238      runpath_var=
10239      hardcode_libdir_flag_spec=
10240      export_dynamic_flag_spec=
10241      whole_archive_flag_spec=
10242    fi
10243  else
10244    # PORTME fill in a description of your system's linker (not GNU ld)
10245    case $host_os in
10246    aix3*)
10247      allow_undefined_flag=unsupported
10248      always_export_symbols=yes
10249      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'
10250      # Note: this linker hardcodes the directories in LIBPATH if there
10251      # are no directories specified by -L.
10252      hardcode_minus_L=yes
10253      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10254	# Neither direct hardcoding nor static linking is supported with a
10255	# broken collect2.
10256	hardcode_direct=unsupported
10257      fi
10258      ;;
10259
10260    aix[4-9]*)
10261      if test "$host_cpu" = ia64; then
10262	# On IA64, the linker does run time linking by default, so we don't
10263	# have to do anything special.
10264	aix_use_runtimelinking=no
10265	exp_sym_flag='-Bexport'
10266	no_entry_flag=""
10267      else
10268	# If we're using GNU nm, then we don't want the "-C" option.
10269	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10270	# Also, AIX nm treats weak defined symbols like other global
10271	# defined symbols, whereas GNU nm marks them as "W".
10272	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10273	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10274	else
10275	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10276	fi
10277	aix_use_runtimelinking=no
10278
10279	# Test if we are trying to use run time linking or normal
10280	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10281	# need to do runtime linking.
10282	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10283	  for ld_flag in $LDFLAGS; do
10284	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10285	    aix_use_runtimelinking=yes
10286	    break
10287	  fi
10288	  done
10289	  ;;
10290	esac
10291
10292	exp_sym_flag='-bexport'
10293	no_entry_flag='-bnoentry'
10294      fi
10295
10296      # When large executables or shared objects are built, AIX ld can
10297      # have problems creating the table of contents.  If linking a library
10298      # or program results in "error TOC overflow" add -mminimal-toc to
10299      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10300      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10301
10302      archive_cmds=''
10303      hardcode_direct=yes
10304      hardcode_direct_absolute=yes
10305      hardcode_libdir_separator=':'
10306      link_all_deplibs=yes
10307      file_list_spec='${wl}-f,'
10308
10309      if test "$GCC" = yes; then
10310	case $host_os in aix4.[012]|aix4.[012].*)
10311	# We only want to do this on AIX 4.2 and lower, the check
10312	# below for broken collect2 doesn't work under 4.3+
10313	  collect2name=`${CC} -print-prog-name=collect2`
10314	  if test -f "$collect2name" &&
10315	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10316	  then
10317	  # We have reworked collect2
10318	  :
10319	  else
10320	  # We have old collect2
10321	  hardcode_direct=unsupported
10322	  # It fails to find uninstalled libraries when the uninstalled
10323	  # path is not listed in the libpath.  Setting hardcode_minus_L
10324	  # to unsupported forces relinking
10325	  hardcode_minus_L=yes
10326	  hardcode_libdir_flag_spec='-L$libdir'
10327	  hardcode_libdir_separator=
10328	  fi
10329	  ;;
10330	esac
10331	shared_flag='-shared'
10332	if test "$aix_use_runtimelinking" = yes; then
10333	  shared_flag="$shared_flag "'${wl}-G'
10334	fi
10335      else
10336	# not using gcc
10337	if test "$host_cpu" = ia64; then
10338	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10339	# chokes on -Wl,-G. The following line is correct:
10340	  shared_flag='-G'
10341	else
10342	  if test "$aix_use_runtimelinking" = yes; then
10343	    shared_flag='${wl}-G'
10344	  else
10345	    shared_flag='${wl}-bM:SRE'
10346	  fi
10347	fi
10348      fi
10349
10350      export_dynamic_flag_spec='${wl}-bexpall'
10351      # It seems that -bexpall does not export symbols beginning with
10352      # underscore (_), so it is better to generate a list of symbols to export.
10353      always_export_symbols=yes
10354      if test "$aix_use_runtimelinking" = yes; then
10355	# Warning - without using the other runtime loading flags (-brtl),
10356	# -berok will link without error, but may produce a broken library.
10357	allow_undefined_flag='-berok'
10358        # Determine the default libpath from the value encoded in an
10359        # empty executable.
10360        if test "${lt_cv_aix_libpath+set}" = set; then
10361  aix_libpath=$lt_cv_aix_libpath
10362else
10363  if ${lt_cv_aix_libpath_+:} false; then :
10364  $as_echo_n "(cached) " >&6
10365else
10366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367/* end confdefs.h.  */
10368
10369int
10370main ()
10371{
10372
10373  ;
10374  return 0;
10375}
10376_ACEOF
10377if ac_fn_c_try_link "$LINENO"; then :
10378
10379  lt_aix_libpath_sed='
10380      /Import File Strings/,/^$/ {
10381	  /^0/ {
10382	      s/^0  *\([^ ]*\) *$/\1/
10383	      p
10384	  }
10385      }'
10386  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10387  # Check for a 64-bit object if we didn't find anything.
10388  if test -z "$lt_cv_aix_libpath_"; then
10389    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10390  fi
10391fi
10392rm -f core conftest.err conftest.$ac_objext \
10393    conftest$ac_exeext conftest.$ac_ext
10394  if test -z "$lt_cv_aix_libpath_"; then
10395    lt_cv_aix_libpath_="/usr/lib:/lib"
10396  fi
10397
10398fi
10399
10400  aix_libpath=$lt_cv_aix_libpath_
10401fi
10402
10403        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10404        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10405      else
10406	if test "$host_cpu" = ia64; then
10407	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10408	  allow_undefined_flag="-z nodefs"
10409	  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"
10410	else
10411	 # Determine the default libpath from the value encoded in an
10412	 # empty executable.
10413	 if test "${lt_cv_aix_libpath+set}" = set; then
10414  aix_libpath=$lt_cv_aix_libpath
10415else
10416  if ${lt_cv_aix_libpath_+:} false; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421
10422int
10423main ()
10424{
10425
10426  ;
10427  return 0;
10428}
10429_ACEOF
10430if ac_fn_c_try_link "$LINENO"; then :
10431
10432  lt_aix_libpath_sed='
10433      /Import File Strings/,/^$/ {
10434	  /^0/ {
10435	      s/^0  *\([^ ]*\) *$/\1/
10436	      p
10437	  }
10438      }'
10439  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10440  # Check for a 64-bit object if we didn't find anything.
10441  if test -z "$lt_cv_aix_libpath_"; then
10442    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10443  fi
10444fi
10445rm -f core conftest.err conftest.$ac_objext \
10446    conftest$ac_exeext conftest.$ac_ext
10447  if test -z "$lt_cv_aix_libpath_"; then
10448    lt_cv_aix_libpath_="/usr/lib:/lib"
10449  fi
10450
10451fi
10452
10453  aix_libpath=$lt_cv_aix_libpath_
10454fi
10455
10456	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10457	  # Warning - without using the other run time loading flags,
10458	  # -berok will link without error, but may produce a broken library.
10459	  no_undefined_flag=' ${wl}-bernotok'
10460	  allow_undefined_flag=' ${wl}-berok'
10461	  if test "$with_gnu_ld" = yes; then
10462	    # We only use this code for GNU lds that support --whole-archive.
10463	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10464	  else
10465	    # Exported symbols can be pulled into shared objects from archives
10466	    whole_archive_flag_spec='$convenience'
10467	  fi
10468	  archive_cmds_need_lc=yes
10469	  # This is similar to how AIX traditionally builds its shared libraries.
10470	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10471	fi
10472      fi
10473      ;;
10474
10475    amigaos*)
10476      case $host_cpu in
10477      powerpc)
10478            # see comment about AmigaOS4 .so support
10479            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10480            archive_expsym_cmds=''
10481        ;;
10482      m68k)
10483            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)'
10484            hardcode_libdir_flag_spec='-L$libdir'
10485            hardcode_minus_L=yes
10486        ;;
10487      esac
10488      ;;
10489
10490    bsdi[45]*)
10491      export_dynamic_flag_spec=-rdynamic
10492      ;;
10493
10494    cygwin* | mingw* | pw32* | cegcc*)
10495      # When not using gcc, we currently assume that we are using
10496      # Microsoft Visual C++.
10497      # hardcode_libdir_flag_spec is actually meaningless, as there is
10498      # no search path for DLLs.
10499      case $cc_basename in
10500      cl*)
10501	# Native MSVC
10502	hardcode_libdir_flag_spec=' '
10503	allow_undefined_flag=unsupported
10504	always_export_symbols=yes
10505	file_list_spec='@'
10506	# Tell ltmain to make .lib files, not .a files.
10507	libext=lib
10508	# Tell ltmain to make .dll files, not .so files.
10509	shrext_cmds=".dll"
10510	# FIXME: Setting linknames here is a bad hack.
10511	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10512	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10513	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10514	  else
10515	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10516	  fi~
10517	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10518	  linknames='
10519	# The linker will not automatically build a static lib if we build a DLL.
10520	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10521	enable_shared_with_static_runtimes=yes
10522	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10523	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10524	# Don't use ranlib
10525	old_postinstall_cmds='chmod 644 $oldlib'
10526	postlink_cmds='lt_outputfile="@OUTPUT@"~
10527	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10528	  case $lt_outputfile in
10529	    *.exe|*.EXE) ;;
10530	    *)
10531	      lt_outputfile="$lt_outputfile.exe"
10532	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10533	      ;;
10534	  esac~
10535	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10536	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10537	    $RM "$lt_outputfile.manifest";
10538	  fi'
10539	;;
10540      *)
10541	# Assume MSVC wrapper
10542	hardcode_libdir_flag_spec=' '
10543	allow_undefined_flag=unsupported
10544	# Tell ltmain to make .lib files, not .a files.
10545	libext=lib
10546	# Tell ltmain to make .dll files, not .so files.
10547	shrext_cmds=".dll"
10548	# FIXME: Setting linknames here is a bad hack.
10549	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10550	# The linker will automatically build a .lib file if we build a DLL.
10551	old_archive_from_new_cmds='true'
10552	# FIXME: Should let the user specify the lib program.
10553	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10554	enable_shared_with_static_runtimes=yes
10555	;;
10556      esac
10557      ;;
10558
10559    darwin* | rhapsody*)
10560
10561
10562  archive_cmds_need_lc=no
10563  hardcode_direct=no
10564  hardcode_automatic=yes
10565  hardcode_shlibpath_var=unsupported
10566  if test "$lt_cv_ld_force_load" = "yes"; then
10567    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\"`'
10568
10569  else
10570    whole_archive_flag_spec=''
10571  fi
10572  link_all_deplibs=yes
10573  allow_undefined_flag="$_lt_dar_allow_undefined"
10574  case $cc_basename in
10575     ifort*) _lt_dar_can_shared=yes ;;
10576     *) _lt_dar_can_shared=$GCC ;;
10577  esac
10578  if test "$_lt_dar_can_shared" = "yes"; then
10579    output_verbose_link_cmd=func_echo_all
10580    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10581    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10582    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}"
10583    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}"
10584
10585  else
10586  ld_shlibs=no
10587  fi
10588
10589      ;;
10590
10591    dgux*)
10592      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10593      hardcode_libdir_flag_spec='-L$libdir'
10594      hardcode_shlibpath_var=no
10595      ;;
10596
10597    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10598    # support.  Future versions do this automatically, but an explicit c++rt0.o
10599    # does not break anything, and helps significantly (at the cost of a little
10600    # extra space).
10601    freebsd2.2*)
10602      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10603      hardcode_libdir_flag_spec='-R$libdir'
10604      hardcode_direct=yes
10605      hardcode_shlibpath_var=no
10606      ;;
10607
10608    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10609    freebsd2.*)
10610      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10611      hardcode_direct=yes
10612      hardcode_minus_L=yes
10613      hardcode_shlibpath_var=no
10614      ;;
10615
10616    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10617    freebsd* | dragonfly*)
10618      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10619      hardcode_libdir_flag_spec='-R$libdir'
10620      hardcode_direct=yes
10621      hardcode_shlibpath_var=no
10622      ;;
10623
10624    hpux9*)
10625      if test "$GCC" = yes; then
10626	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10627      else
10628	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10629      fi
10630      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10631      hardcode_libdir_separator=:
10632      hardcode_direct=yes
10633
10634      # hardcode_minus_L: Not really in the search PATH,
10635      # but as the default location of the library.
10636      hardcode_minus_L=yes
10637      export_dynamic_flag_spec='${wl}-E'
10638      ;;
10639
10640    hpux10*)
10641      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10642	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10643      else
10644	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10645      fi
10646      if test "$with_gnu_ld" = no; then
10647	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10648	hardcode_libdir_separator=:
10649	hardcode_direct=yes
10650	hardcode_direct_absolute=yes
10651	export_dynamic_flag_spec='${wl}-E'
10652	# hardcode_minus_L: Not really in the search PATH,
10653	# but as the default location of the library.
10654	hardcode_minus_L=yes
10655      fi
10656      ;;
10657
10658    hpux11*)
10659      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10660	case $host_cpu in
10661	hppa*64*)
10662	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10663	  ;;
10664	ia64*)
10665	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10666	  ;;
10667	*)
10668	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10669	  ;;
10670	esac
10671      else
10672	case $host_cpu in
10673	hppa*64*)
10674	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10675	  ;;
10676	ia64*)
10677	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10678	  ;;
10679	*)
10680
10681	  # Older versions of the 11.00 compiler do not understand -b yet
10682	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10683	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10684$as_echo_n "checking if $CC understands -b... " >&6; }
10685if ${lt_cv_prog_compiler__b+:} false; then :
10686  $as_echo_n "(cached) " >&6
10687else
10688  lt_cv_prog_compiler__b=no
10689   save_LDFLAGS="$LDFLAGS"
10690   LDFLAGS="$LDFLAGS -b"
10691   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10692   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10693     # The linker can only warn and ignore the option if not recognized
10694     # So say no if there are warnings
10695     if test -s conftest.err; then
10696       # Append any errors to the config.log.
10697       cat conftest.err 1>&5
10698       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10699       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10700       if diff conftest.exp conftest.er2 >/dev/null; then
10701         lt_cv_prog_compiler__b=yes
10702       fi
10703     else
10704       lt_cv_prog_compiler__b=yes
10705     fi
10706   fi
10707   $RM -r conftest*
10708   LDFLAGS="$save_LDFLAGS"
10709
10710fi
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10712$as_echo "$lt_cv_prog_compiler__b" >&6; }
10713
10714if test x"$lt_cv_prog_compiler__b" = xyes; then
10715    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10716else
10717    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10718fi
10719
10720	  ;;
10721	esac
10722      fi
10723      if test "$with_gnu_ld" = no; then
10724	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10725	hardcode_libdir_separator=:
10726
10727	case $host_cpu in
10728	hppa*64*|ia64*)
10729	  hardcode_direct=no
10730	  hardcode_shlibpath_var=no
10731	  ;;
10732	*)
10733	  hardcode_direct=yes
10734	  hardcode_direct_absolute=yes
10735	  export_dynamic_flag_spec='${wl}-E'
10736
10737	  # hardcode_minus_L: Not really in the search PATH,
10738	  # but as the default location of the library.
10739	  hardcode_minus_L=yes
10740	  ;;
10741	esac
10742      fi
10743      ;;
10744
10745    irix5* | irix6* | nonstopux*)
10746      if test "$GCC" = yes; then
10747	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'
10748	# Try to use the -exported_symbol ld option, if it does not
10749	# work, assume that -exports_file does not work either and
10750	# implicitly export all symbols.
10751	# This should be the same for all languages, so no per-tag cache variable.
10752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10753$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10754if ${lt_cv_irix_exported_symbol+:} false; then :
10755  $as_echo_n "(cached) " >&6
10756else
10757  save_LDFLAGS="$LDFLAGS"
10758	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10759	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760/* end confdefs.h.  */
10761int foo (void) { return 0; }
10762_ACEOF
10763if ac_fn_c_try_link "$LINENO"; then :
10764  lt_cv_irix_exported_symbol=yes
10765else
10766  lt_cv_irix_exported_symbol=no
10767fi
10768rm -f core conftest.err conftest.$ac_objext \
10769    conftest$ac_exeext conftest.$ac_ext
10770           LDFLAGS="$save_LDFLAGS"
10771fi
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10773$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10774	if test "$lt_cv_irix_exported_symbol" = yes; then
10775          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'
10776	fi
10777      else
10778	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'
10779	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'
10780      fi
10781      archive_cmds_need_lc='no'
10782      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10783      hardcode_libdir_separator=:
10784      inherit_rpath=yes
10785      link_all_deplibs=yes
10786      ;;
10787
10788    netbsd*)
10789      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10790	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10791      else
10792	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10793      fi
10794      hardcode_libdir_flag_spec='-R$libdir'
10795      hardcode_direct=yes
10796      hardcode_shlibpath_var=no
10797      ;;
10798
10799    newsos6)
10800      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10801      hardcode_direct=yes
10802      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10803      hardcode_libdir_separator=:
10804      hardcode_shlibpath_var=no
10805      ;;
10806
10807    *nto* | *qnx*)
10808      ;;
10809
10810    openbsd*)
10811      if test -f /usr/libexec/ld.so; then
10812	hardcode_direct=yes
10813	hardcode_shlibpath_var=no
10814	hardcode_direct_absolute=yes
10815	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10816	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10817	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10818	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10819	  export_dynamic_flag_spec='${wl}-E'
10820	else
10821	  case $host_os in
10822	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10823	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10824	     hardcode_libdir_flag_spec='-R$libdir'
10825	     ;;
10826	   *)
10827	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10828	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10829	     ;;
10830	  esac
10831	fi
10832      else
10833	ld_shlibs=no
10834      fi
10835      ;;
10836
10837    os2*)
10838      hardcode_libdir_flag_spec='-L$libdir'
10839      hardcode_minus_L=yes
10840      allow_undefined_flag=unsupported
10841      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10842      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10843      ;;
10844
10845    osf3*)
10846      if test "$GCC" = yes; then
10847	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10848	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'
10849      else
10850	allow_undefined_flag=' -expect_unresolved \*'
10851	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'
10852      fi
10853      archive_cmds_need_lc='no'
10854      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10855      hardcode_libdir_separator=:
10856      ;;
10857
10858    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10859      if test "$GCC" = yes; then
10860	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10861	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'
10862	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10863      else
10864	allow_undefined_flag=' -expect_unresolved \*'
10865	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'
10866	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~
10867	$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'
10868
10869	# Both c and cxx compiler support -rpath directly
10870	hardcode_libdir_flag_spec='-rpath $libdir'
10871      fi
10872      archive_cmds_need_lc='no'
10873      hardcode_libdir_separator=:
10874      ;;
10875
10876    solaris*)
10877      no_undefined_flag=' -z defs'
10878      if test "$GCC" = yes; then
10879	wlarc='${wl}'
10880	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10881	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10882	  $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'
10883      else
10884	case `$CC -V 2>&1` in
10885	*"Compilers 5.0"*)
10886	  wlarc=''
10887	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10888	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10889	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10890	  ;;
10891	*)
10892	  wlarc='${wl}'
10893	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10894	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10895	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10896	  ;;
10897	esac
10898      fi
10899      hardcode_libdir_flag_spec='-R$libdir'
10900      hardcode_shlibpath_var=no
10901      case $host_os in
10902      solaris2.[0-5] | solaris2.[0-5].*) ;;
10903      *)
10904	# The compiler driver will combine and reorder linker options,
10905	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10906	# but is careful enough not to reorder.
10907	# Supported since Solaris 2.6 (maybe 2.5.1?)
10908	if test "$GCC" = yes; then
10909	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10910	else
10911	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10912	fi
10913	;;
10914      esac
10915      link_all_deplibs=yes
10916      ;;
10917
10918    sunos4*)
10919      if test "x$host_vendor" = xsequent; then
10920	# Use $CC to link under sequent, because it throws in some extra .o
10921	# files that make .init and .fini sections work.
10922	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10923      else
10924	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10925      fi
10926      hardcode_libdir_flag_spec='-L$libdir'
10927      hardcode_direct=yes
10928      hardcode_minus_L=yes
10929      hardcode_shlibpath_var=no
10930      ;;
10931
10932    sysv4)
10933      case $host_vendor in
10934	sni)
10935	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10936	  hardcode_direct=yes # is this really true???
10937	;;
10938	siemens)
10939	  ## LD is ld it makes a PLAMLIB
10940	  ## CC just makes a GrossModule.
10941	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10942	  reload_cmds='$CC -r -o $output$reload_objs'
10943	  hardcode_direct=no
10944        ;;
10945	motorola)
10946	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10947	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10948	;;
10949      esac
10950      runpath_var='LD_RUN_PATH'
10951      hardcode_shlibpath_var=no
10952      ;;
10953
10954    sysv4.3*)
10955      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956      hardcode_shlibpath_var=no
10957      export_dynamic_flag_spec='-Bexport'
10958      ;;
10959
10960    sysv4*MP*)
10961      if test -d /usr/nec; then
10962	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963	hardcode_shlibpath_var=no
10964	runpath_var=LD_RUN_PATH
10965	hardcode_runpath_var=yes
10966	ld_shlibs=yes
10967      fi
10968      ;;
10969
10970    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10971      no_undefined_flag='${wl}-z,text'
10972      archive_cmds_need_lc=no
10973      hardcode_shlibpath_var=no
10974      runpath_var='LD_RUN_PATH'
10975
10976      if test "$GCC" = yes; then
10977	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10978	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10979      else
10980	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10981	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10982      fi
10983      ;;
10984
10985    sysv5* | sco3.2v5* | sco5v6*)
10986      # Note: We can NOT use -z defs as we might desire, because we do not
10987      # link with -lc, and that would cause any symbols used from libc to
10988      # always be unresolved, which means just about no library would
10989      # ever link correctly.  If we're not using GNU ld we use -z text
10990      # though, which does catch some bad symbols but isn't as heavy-handed
10991      # as -z defs.
10992      no_undefined_flag='${wl}-z,text'
10993      allow_undefined_flag='${wl}-z,nodefs'
10994      archive_cmds_need_lc=no
10995      hardcode_shlibpath_var=no
10996      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10997      hardcode_libdir_separator=':'
10998      link_all_deplibs=yes
10999      export_dynamic_flag_spec='${wl}-Bexport'
11000      runpath_var='LD_RUN_PATH'
11001
11002      if test "$GCC" = yes; then
11003	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005      else
11006	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008      fi
11009      ;;
11010
11011    uts4*)
11012      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11013      hardcode_libdir_flag_spec='-L$libdir'
11014      hardcode_shlibpath_var=no
11015      ;;
11016
11017    *)
11018      ld_shlibs=no
11019      ;;
11020    esac
11021
11022    if test x$host_vendor = xsni; then
11023      case $host in
11024      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11025	export_dynamic_flag_spec='${wl}-Blargedynsym'
11026	;;
11027      esac
11028    fi
11029  fi
11030
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11032$as_echo "$ld_shlibs" >&6; }
11033test "$ld_shlibs" = no && can_build_shared=no
11034
11035with_gnu_ld=$with_gnu_ld
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051#
11052# Do we need to explicitly link libc?
11053#
11054case "x$archive_cmds_need_lc" in
11055x|xyes)
11056  # Assume -lc should be added
11057  archive_cmds_need_lc=yes
11058
11059  if test "$enable_shared" = yes && test "$GCC" = yes; then
11060    case $archive_cmds in
11061    *'~'*)
11062      # FIXME: we may have to deal with multi-command sequences.
11063      ;;
11064    '$CC '*)
11065      # Test whether the compiler implicitly links with -lc since on some
11066      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11067      # to ld, don't add -lc before -lgcc.
11068      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11069$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11070if ${lt_cv_archive_cmds_need_lc+:} false; then :
11071  $as_echo_n "(cached) " >&6
11072else
11073  $RM conftest*
11074	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11075
11076	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11077  (eval $ac_compile) 2>&5
11078  ac_status=$?
11079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11080  test $ac_status = 0; } 2>conftest.err; then
11081	  soname=conftest
11082	  lib=conftest
11083	  libobjs=conftest.$ac_objext
11084	  deplibs=
11085	  wl=$lt_prog_compiler_wl
11086	  pic_flag=$lt_prog_compiler_pic
11087	  compiler_flags=-v
11088	  linker_flags=-v
11089	  verstring=
11090	  output_objdir=.
11091	  libname=conftest
11092	  lt_save_allow_undefined_flag=$allow_undefined_flag
11093	  allow_undefined_flag=
11094	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11095  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11096  ac_status=$?
11097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11098  test $ac_status = 0; }
11099	  then
11100	    lt_cv_archive_cmds_need_lc=no
11101	  else
11102	    lt_cv_archive_cmds_need_lc=yes
11103	  fi
11104	  allow_undefined_flag=$lt_save_allow_undefined_flag
11105	else
11106	  cat conftest.err 1>&5
11107	fi
11108	$RM conftest*
11109
11110fi
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11112$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11113      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11114      ;;
11115    esac
11116  fi
11117  ;;
11118esac
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11272$as_echo_n "checking dynamic linker characteristics... " >&6; }
11273
11274if test "$GCC" = yes; then
11275  case $host_os in
11276    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11277    *) lt_awk_arg="/^libraries:/" ;;
11278  esac
11279  case $host_os in
11280    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11281    *) lt_sed_strip_eq="s,=/,/,g" ;;
11282  esac
11283  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11284  case $lt_search_path_spec in
11285  *\;*)
11286    # if the path contains ";" then we assume it to be the separator
11287    # otherwise default to the standard path separator (i.e. ":") - it is
11288    # assumed that no part of a normal pathname contains ";" but that should
11289    # okay in the real world where ";" in dirpaths is itself problematic.
11290    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11291    ;;
11292  *)
11293    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11294    ;;
11295  esac
11296  # Ok, now we have the path, separated by spaces, we can step through it
11297  # and add multilib dir if necessary.
11298  lt_tmp_lt_search_path_spec=
11299  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11300  for lt_sys_path in $lt_search_path_spec; do
11301    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11302      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11303    else
11304      test -d "$lt_sys_path" && \
11305	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11306    fi
11307  done
11308  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11309BEGIN {RS=" "; FS="/|\n";} {
11310  lt_foo="";
11311  lt_count=0;
11312  for (lt_i = NF; lt_i > 0; lt_i--) {
11313    if ($lt_i != "" && $lt_i != ".") {
11314      if ($lt_i == "..") {
11315        lt_count++;
11316      } else {
11317        if (lt_count == 0) {
11318          lt_foo="/" $lt_i lt_foo;
11319        } else {
11320          lt_count--;
11321        }
11322      }
11323    }
11324  }
11325  if (lt_foo != "") { lt_freq[lt_foo]++; }
11326  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11327}'`
11328  # AWK program above erroneously prepends '/' to C:/dos/paths
11329  # for these hosts.
11330  case $host_os in
11331    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11332      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11333  esac
11334  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11335else
11336  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11337fi
11338library_names_spec=
11339libname_spec='lib$name'
11340soname_spec=
11341shrext_cmds=".so"
11342postinstall_cmds=
11343postuninstall_cmds=
11344finish_cmds=
11345finish_eval=
11346shlibpath_var=
11347shlibpath_overrides_runpath=unknown
11348version_type=none
11349dynamic_linker="$host_os ld.so"
11350sys_lib_dlsearch_path_spec="/lib /usr/lib"
11351need_lib_prefix=unknown
11352hardcode_into_libs=no
11353
11354# when you set need_version to no, make sure it does not cause -set_version
11355# flags to be left without arguments
11356need_version=unknown
11357
11358case $host_os in
11359aix3*)
11360  version_type=linux # correct to gnu/linux during the next big refactor
11361  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11362  shlibpath_var=LIBPATH
11363
11364  # AIX 3 has no versioning support, so we append a major version to the name.
11365  soname_spec='${libname}${release}${shared_ext}$major'
11366  ;;
11367
11368aix[4-9]*)
11369  version_type=linux # correct to gnu/linux during the next big refactor
11370  need_lib_prefix=no
11371  need_version=no
11372  hardcode_into_libs=yes
11373  if test "$host_cpu" = ia64; then
11374    # AIX 5 supports IA64
11375    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11376    shlibpath_var=LD_LIBRARY_PATH
11377  else
11378    # With GCC up to 2.95.x, collect2 would create an import file
11379    # for dependence libraries.  The import file would start with
11380    # the line `#! .'.  This would cause the generated library to
11381    # depend on `.', always an invalid library.  This was fixed in
11382    # development snapshots of GCC prior to 3.0.
11383    case $host_os in
11384      aix4 | aix4.[01] | aix4.[01].*)
11385      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11386	   echo ' yes '
11387	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11388	:
11389      else
11390	can_build_shared=no
11391      fi
11392      ;;
11393    esac
11394    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11395    # soname into executable. Probably we can add versioning support to
11396    # collect2, so additional links can be useful in future.
11397    if test "$aix_use_runtimelinking" = yes; then
11398      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11399      # instead of lib<name>.a to let people know that these are not
11400      # typical AIX shared libraries.
11401      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402    else
11403      # We preserve .a as extension for shared libraries through AIX4.2
11404      # and later when we are not doing run time linking.
11405      library_names_spec='${libname}${release}.a $libname.a'
11406      soname_spec='${libname}${release}${shared_ext}$major'
11407    fi
11408    shlibpath_var=LIBPATH
11409  fi
11410  ;;
11411
11412amigaos*)
11413  case $host_cpu in
11414  powerpc)
11415    # Since July 2007 AmigaOS4 officially supports .so libraries.
11416    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11417    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418    ;;
11419  m68k)
11420    library_names_spec='$libname.ixlibrary $libname.a'
11421    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11422    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11423    ;;
11424  esac
11425  ;;
11426
11427beos*)
11428  library_names_spec='${libname}${shared_ext}'
11429  dynamic_linker="$host_os ld.so"
11430  shlibpath_var=LIBRARY_PATH
11431  ;;
11432
11433bsdi[45]*)
11434  version_type=linux # correct to gnu/linux during the next big refactor
11435  need_version=no
11436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437  soname_spec='${libname}${release}${shared_ext}$major'
11438  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11439  shlibpath_var=LD_LIBRARY_PATH
11440  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11441  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11442  # the default ld.so.conf also contains /usr/contrib/lib and
11443  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11444  # libtool to hard-code these into programs
11445  ;;
11446
11447cygwin* | mingw* | pw32* | cegcc*)
11448  version_type=windows
11449  shrext_cmds=".dll"
11450  need_version=no
11451  need_lib_prefix=no
11452
11453  case $GCC,$cc_basename in
11454  yes,*)
11455    # gcc
11456    library_names_spec='$libname.dll.a'
11457    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11458    postinstall_cmds='base_file=`basename \${file}`~
11459      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11460      dldir=$destdir/`dirname \$dlpath`~
11461      test -d \$dldir || mkdir -p \$dldir~
11462      $install_prog $dir/$dlname \$dldir/$dlname~
11463      chmod a+x \$dldir/$dlname~
11464      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11465        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11466      fi'
11467    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11468      dlpath=$dir/\$dldll~
11469       $RM \$dlpath'
11470    shlibpath_overrides_runpath=yes
11471
11472    case $host_os in
11473    cygwin*)
11474      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11475      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11476
11477      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11478      ;;
11479    mingw* | cegcc*)
11480      # MinGW DLLs use traditional 'lib' prefix
11481      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11482      ;;
11483    pw32*)
11484      # pw32 DLLs use 'pw' prefix rather than 'lib'
11485      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11486      ;;
11487    esac
11488    dynamic_linker='Win32 ld.exe'
11489    ;;
11490
11491  *,cl*)
11492    # Native MSVC
11493    libname_spec='$name'
11494    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11495    library_names_spec='${libname}.dll.lib'
11496
11497    case $build_os in
11498    mingw*)
11499      sys_lib_search_path_spec=
11500      lt_save_ifs=$IFS
11501      IFS=';'
11502      for lt_path in $LIB
11503      do
11504        IFS=$lt_save_ifs
11505        # Let DOS variable expansion print the short 8.3 style file name.
11506        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11507        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11508      done
11509      IFS=$lt_save_ifs
11510      # Convert to MSYS style.
11511      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11512      ;;
11513    cygwin*)
11514      # Convert to unix form, then to dos form, then back to unix form
11515      # but this time dos style (no spaces!) so that the unix form looks
11516      # like /cygdrive/c/PROGRA~1:/cygdr...
11517      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11518      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11519      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11520      ;;
11521    *)
11522      sys_lib_search_path_spec="$LIB"
11523      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11524        # It is most probably a Windows format PATH.
11525        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11526      else
11527        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11528      fi
11529      # FIXME: find the short name or the path components, as spaces are
11530      # common. (e.g. "Program Files" -> "PROGRA~1")
11531      ;;
11532    esac
11533
11534    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11535    postinstall_cmds='base_file=`basename \${file}`~
11536      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11537      dldir=$destdir/`dirname \$dlpath`~
11538      test -d \$dldir || mkdir -p \$dldir~
11539      $install_prog $dir/$dlname \$dldir/$dlname'
11540    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11541      dlpath=$dir/\$dldll~
11542       $RM \$dlpath'
11543    shlibpath_overrides_runpath=yes
11544    dynamic_linker='Win32 link.exe'
11545    ;;
11546
11547  *)
11548    # Assume MSVC wrapper
11549    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11550    dynamic_linker='Win32 ld.exe'
11551    ;;
11552  esac
11553  # FIXME: first we should search . and the directory the executable is in
11554  shlibpath_var=PATH
11555  ;;
11556
11557darwin* | rhapsody*)
11558  dynamic_linker="$host_os dyld"
11559  version_type=darwin
11560  need_lib_prefix=no
11561  need_version=no
11562  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11563  soname_spec='${libname}${release}${major}$shared_ext'
11564  shlibpath_overrides_runpath=yes
11565  shlibpath_var=DYLD_LIBRARY_PATH
11566  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11567
11568  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11569  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11570  ;;
11571
11572dgux*)
11573  version_type=linux # correct to gnu/linux during the next big refactor
11574  need_lib_prefix=no
11575  need_version=no
11576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11577  soname_spec='${libname}${release}${shared_ext}$major'
11578  shlibpath_var=LD_LIBRARY_PATH
11579  ;;
11580
11581freebsd* | dragonfly*)
11582  # DragonFly does not have aout.  When/if they implement a new
11583  # versioning mechanism, adjust this.
11584  if test -x /usr/bin/objformat; then
11585    objformat=`/usr/bin/objformat`
11586  else
11587    case $host_os in
11588    freebsd[23].*) objformat=aout ;;
11589    *) objformat=elf ;;
11590    esac
11591  fi
11592  version_type=freebsd-$objformat
11593  case $version_type in
11594    freebsd-elf*)
11595      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11596      need_version=no
11597      need_lib_prefix=no
11598      ;;
11599    freebsd-*)
11600      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11601      need_version=yes
11602      ;;
11603  esac
11604  shlibpath_var=LD_LIBRARY_PATH
11605  case $host_os in
11606  freebsd2.*)
11607    shlibpath_overrides_runpath=yes
11608    ;;
11609  freebsd3.[01]* | freebsdelf3.[01]*)
11610    shlibpath_overrides_runpath=yes
11611    hardcode_into_libs=yes
11612    ;;
11613  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11614  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11615    shlibpath_overrides_runpath=no
11616    hardcode_into_libs=yes
11617    ;;
11618  *) # from 4.6 on, and DragonFly
11619    shlibpath_overrides_runpath=yes
11620    hardcode_into_libs=yes
11621    ;;
11622  esac
11623  ;;
11624
11625gnu*)
11626  version_type=linux # correct to gnu/linux during the next big refactor
11627  need_lib_prefix=no
11628  need_version=no
11629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11630  soname_spec='${libname}${release}${shared_ext}$major'
11631  shlibpath_var=LD_LIBRARY_PATH
11632  shlibpath_overrides_runpath=no
11633  hardcode_into_libs=yes
11634  ;;
11635
11636haiku*)
11637  version_type=linux # correct to gnu/linux during the next big refactor
11638  need_lib_prefix=no
11639  need_version=no
11640  dynamic_linker="$host_os runtime_loader"
11641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11642  soname_spec='${libname}${release}${shared_ext}$major'
11643  shlibpath_var=LIBRARY_PATH
11644  shlibpath_overrides_runpath=yes
11645  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11646  hardcode_into_libs=yes
11647  ;;
11648
11649hpux9* | hpux10* | hpux11*)
11650  # Give a soname corresponding to the major version so that dld.sl refuses to
11651  # link against other versions.
11652  version_type=sunos
11653  need_lib_prefix=no
11654  need_version=no
11655  case $host_cpu in
11656  ia64*)
11657    shrext_cmds='.so'
11658    hardcode_into_libs=yes
11659    dynamic_linker="$host_os dld.so"
11660    shlibpath_var=LD_LIBRARY_PATH
11661    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11663    soname_spec='${libname}${release}${shared_ext}$major'
11664    if test "X$HPUX_IA64_MODE" = X32; then
11665      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11666    else
11667      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11668    fi
11669    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11670    ;;
11671  hppa*64*)
11672    shrext_cmds='.sl'
11673    hardcode_into_libs=yes
11674    dynamic_linker="$host_os dld.sl"
11675    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11676    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11677    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11678    soname_spec='${libname}${release}${shared_ext}$major'
11679    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11680    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11681    ;;
11682  *)
11683    shrext_cmds='.sl'
11684    dynamic_linker="$host_os dld.sl"
11685    shlibpath_var=SHLIB_PATH
11686    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11687    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688    soname_spec='${libname}${release}${shared_ext}$major'
11689    ;;
11690  esac
11691  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11692  postinstall_cmds='chmod 555 $lib'
11693  # or fails outright, so override atomically:
11694  install_override_mode=555
11695  ;;
11696
11697interix[3-9]*)
11698  version_type=linux # correct to gnu/linux during the next big refactor
11699  need_lib_prefix=no
11700  need_version=no
11701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11702  soname_spec='${libname}${release}${shared_ext}$major'
11703  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11704  shlibpath_var=LD_LIBRARY_PATH
11705  shlibpath_overrides_runpath=no
11706  hardcode_into_libs=yes
11707  ;;
11708
11709irix5* | irix6* | nonstopux*)
11710  case $host_os in
11711    nonstopux*) version_type=nonstopux ;;
11712    *)
11713	if test "$lt_cv_prog_gnu_ld" = yes; then
11714		version_type=linux # correct to gnu/linux during the next big refactor
11715	else
11716		version_type=irix
11717	fi ;;
11718  esac
11719  need_lib_prefix=no
11720  need_version=no
11721  soname_spec='${libname}${release}${shared_ext}$major'
11722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11723  case $host_os in
11724  irix5* | nonstopux*)
11725    libsuff= shlibsuff=
11726    ;;
11727  *)
11728    case $LD in # libtool.m4 will add one of these switches to LD
11729    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11730      libsuff= shlibsuff= libmagic=32-bit;;
11731    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11732      libsuff=32 shlibsuff=N32 libmagic=N32;;
11733    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11734      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11735    *) libsuff= shlibsuff= libmagic=never-match;;
11736    esac
11737    ;;
11738  esac
11739  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11740  shlibpath_overrides_runpath=no
11741  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11742  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11743  hardcode_into_libs=yes
11744  ;;
11745
11746# No shared lib support for Linux oldld, aout, or coff.
11747linux*oldld* | linux*aout* | linux*coff*)
11748  dynamic_linker=no
11749  ;;
11750
11751# This must be glibc/ELF.
11752linux* | k*bsd*-gnu | kopensolaris*-gnu)
11753  version_type=linux # correct to gnu/linux during the next big refactor
11754  need_lib_prefix=no
11755  need_version=no
11756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757  soname_spec='${libname}${release}${shared_ext}$major'
11758  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11759  shlibpath_var=LD_LIBRARY_PATH
11760  shlibpath_overrides_runpath=no
11761
11762  # Some binutils ld are patched to set DT_RUNPATH
11763  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11764  $as_echo_n "(cached) " >&6
11765else
11766  lt_cv_shlibpath_overrides_runpath=no
11767    save_LDFLAGS=$LDFLAGS
11768    save_libdir=$libdir
11769    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11770	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11771    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772/* end confdefs.h.  */
11773
11774int
11775main ()
11776{
11777
11778  ;
11779  return 0;
11780}
11781_ACEOF
11782if ac_fn_c_try_link "$LINENO"; then :
11783  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11784  lt_cv_shlibpath_overrides_runpath=yes
11785fi
11786fi
11787rm -f core conftest.err conftest.$ac_objext \
11788    conftest$ac_exeext conftest.$ac_ext
11789    LDFLAGS=$save_LDFLAGS
11790    libdir=$save_libdir
11791
11792fi
11793
11794  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11795
11796  # This implies no fast_install, which is unacceptable.
11797  # Some rework will be needed to allow for fast_install
11798  # before this can be enabled.
11799  hardcode_into_libs=yes
11800
11801  # Append ld.so.conf contents to the search path
11802  if test -f /etc/ld.so.conf; then
11803    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' ' '`
11804    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11805  fi
11806
11807  # We used to test for /lib/ld.so.1 and disable shared libraries on
11808  # powerpc, because MkLinux only supported shared libraries with the
11809  # GNU dynamic linker.  Since this was broken with cross compilers,
11810  # most powerpc-linux boxes support dynamic linking these days and
11811  # people can always --disable-shared, the test was removed, and we
11812  # assume the GNU/Linux dynamic linker is in use.
11813  dynamic_linker='GNU/Linux ld.so'
11814  ;;
11815
11816netbsd*)
11817  version_type=sunos
11818  need_lib_prefix=no
11819  need_version=no
11820  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11821    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11822    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11823    dynamic_linker='NetBSD (a.out) ld.so'
11824  else
11825    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11826    soname_spec='${libname}${release}${shared_ext}$major'
11827    dynamic_linker='NetBSD ld.elf_so'
11828  fi
11829  shlibpath_var=LD_LIBRARY_PATH
11830  shlibpath_overrides_runpath=yes
11831  hardcode_into_libs=yes
11832  ;;
11833
11834newsos6)
11835  version_type=linux # correct to gnu/linux during the next big refactor
11836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837  shlibpath_var=LD_LIBRARY_PATH
11838  shlibpath_overrides_runpath=yes
11839  ;;
11840
11841*nto* | *qnx*)
11842  version_type=qnx
11843  need_lib_prefix=no
11844  need_version=no
11845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11846  soname_spec='${libname}${release}${shared_ext}$major'
11847  shlibpath_var=LD_LIBRARY_PATH
11848  shlibpath_overrides_runpath=no
11849  hardcode_into_libs=yes
11850  dynamic_linker='ldqnx.so'
11851  ;;
11852
11853openbsd*)
11854  version_type=sunos
11855  sys_lib_dlsearch_path_spec="/usr/lib"
11856  need_lib_prefix=no
11857  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11858  case $host_os in
11859    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11860    *)				need_version=no  ;;
11861  esac
11862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11863  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11864  shlibpath_var=LD_LIBRARY_PATH
11865  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11866    case $host_os in
11867      openbsd2.[89] | openbsd2.[89].*)
11868	shlibpath_overrides_runpath=no
11869	;;
11870      *)
11871	shlibpath_overrides_runpath=yes
11872	;;
11873      esac
11874  else
11875    shlibpath_overrides_runpath=yes
11876  fi
11877  ;;
11878
11879os2*)
11880  libname_spec='$name'
11881  shrext_cmds=".dll"
11882  need_lib_prefix=no
11883  library_names_spec='$libname${shared_ext} $libname.a'
11884  dynamic_linker='OS/2 ld.exe'
11885  shlibpath_var=LIBPATH
11886  ;;
11887
11888osf3* | osf4* | osf5*)
11889  version_type=osf
11890  need_lib_prefix=no
11891  need_version=no
11892  soname_spec='${libname}${release}${shared_ext}$major'
11893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11894  shlibpath_var=LD_LIBRARY_PATH
11895  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11896  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11897  ;;
11898
11899rdos*)
11900  dynamic_linker=no
11901  ;;
11902
11903solaris*)
11904  version_type=linux # correct to gnu/linux during the next big refactor
11905  need_lib_prefix=no
11906  need_version=no
11907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908  soname_spec='${libname}${release}${shared_ext}$major'
11909  shlibpath_var=LD_LIBRARY_PATH
11910  shlibpath_overrides_runpath=yes
11911  hardcode_into_libs=yes
11912  # ldd complains unless libraries are executable
11913  postinstall_cmds='chmod +x $lib'
11914  ;;
11915
11916sunos4*)
11917  version_type=sunos
11918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11919  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11920  shlibpath_var=LD_LIBRARY_PATH
11921  shlibpath_overrides_runpath=yes
11922  if test "$with_gnu_ld" = yes; then
11923    need_lib_prefix=no
11924  fi
11925  need_version=yes
11926  ;;
11927
11928sysv4 | sysv4.3*)
11929  version_type=linux # correct to gnu/linux during the next big refactor
11930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11931  soname_spec='${libname}${release}${shared_ext}$major'
11932  shlibpath_var=LD_LIBRARY_PATH
11933  case $host_vendor in
11934    sni)
11935      shlibpath_overrides_runpath=no
11936      need_lib_prefix=no
11937      runpath_var=LD_RUN_PATH
11938      ;;
11939    siemens)
11940      need_lib_prefix=no
11941      ;;
11942    motorola)
11943      need_lib_prefix=no
11944      need_version=no
11945      shlibpath_overrides_runpath=no
11946      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11947      ;;
11948  esac
11949  ;;
11950
11951sysv4*MP*)
11952  if test -d /usr/nec ;then
11953    version_type=linux # correct to gnu/linux during the next big refactor
11954    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11955    soname_spec='$libname${shared_ext}.$major'
11956    shlibpath_var=LD_LIBRARY_PATH
11957  fi
11958  ;;
11959
11960sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11961  version_type=freebsd-elf
11962  need_lib_prefix=no
11963  need_version=no
11964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11965  soname_spec='${libname}${release}${shared_ext}$major'
11966  shlibpath_var=LD_LIBRARY_PATH
11967  shlibpath_overrides_runpath=yes
11968  hardcode_into_libs=yes
11969  if test "$with_gnu_ld" = yes; then
11970    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11971  else
11972    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11973    case $host_os in
11974      sco3.2v5*)
11975        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11976	;;
11977    esac
11978  fi
11979  sys_lib_dlsearch_path_spec='/usr/lib'
11980  ;;
11981
11982tpf*)
11983  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11984  version_type=linux # correct to gnu/linux during the next big refactor
11985  need_lib_prefix=no
11986  need_version=no
11987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11988  shlibpath_var=LD_LIBRARY_PATH
11989  shlibpath_overrides_runpath=no
11990  hardcode_into_libs=yes
11991  ;;
11992
11993uts4*)
11994  version_type=linux # correct to gnu/linux during the next big refactor
11995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11996  soname_spec='${libname}${release}${shared_ext}$major'
11997  shlibpath_var=LD_LIBRARY_PATH
11998  ;;
11999
12000*)
12001  dynamic_linker=no
12002  ;;
12003esac
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12005$as_echo "$dynamic_linker" >&6; }
12006test "$dynamic_linker" = no && can_build_shared=no
12007
12008variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12009if test "$GCC" = yes; then
12010  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12011fi
12012
12013if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12014  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12015fi
12016if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12017  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12018fi
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12112$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12113hardcode_action=
12114if test -n "$hardcode_libdir_flag_spec" ||
12115   test -n "$runpath_var" ||
12116   test "X$hardcode_automatic" = "Xyes" ; then
12117
12118  # We can hardcode non-existent directories.
12119  if test "$hardcode_direct" != no &&
12120     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12121     # have to relink, otherwise we might link with an installed library
12122     # when we should be linking with a yet-to-be-installed one
12123     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12124     test "$hardcode_minus_L" != no; then
12125    # Linking always hardcodes the temporary library directory.
12126    hardcode_action=relink
12127  else
12128    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12129    hardcode_action=immediate
12130  fi
12131else
12132  # We cannot hardcode anything, or else we can only hardcode existing
12133  # directories.
12134  hardcode_action=unsupported
12135fi
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12137$as_echo "$hardcode_action" >&6; }
12138
12139if test "$hardcode_action" = relink ||
12140   test "$inherit_rpath" = yes; then
12141  # Fast installation is not supported
12142  enable_fast_install=no
12143elif test "$shlibpath_overrides_runpath" = yes ||
12144     test "$enable_shared" = no; then
12145  # Fast installation is not necessary
12146  enable_fast_install=needless
12147fi
12148
12149
12150
12151
12152
12153
12154  if test "x$enable_dlopen" != xyes; then
12155  enable_dlopen=unknown
12156  enable_dlopen_self=unknown
12157  enable_dlopen_self_static=unknown
12158else
12159  lt_cv_dlopen=no
12160  lt_cv_dlopen_libs=
12161
12162  case $host_os in
12163  beos*)
12164    lt_cv_dlopen="load_add_on"
12165    lt_cv_dlopen_libs=
12166    lt_cv_dlopen_self=yes
12167    ;;
12168
12169  mingw* | pw32* | cegcc*)
12170    lt_cv_dlopen="LoadLibrary"
12171    lt_cv_dlopen_libs=
12172    ;;
12173
12174  cygwin*)
12175    lt_cv_dlopen="dlopen"
12176    lt_cv_dlopen_libs=
12177    ;;
12178
12179  darwin*)
12180  # if libdl is installed we need to link against it
12181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12182$as_echo_n "checking for dlopen in -ldl... " >&6; }
12183if ${ac_cv_lib_dl_dlopen+:} false; then :
12184  $as_echo_n "(cached) " >&6
12185else
12186  ac_check_lib_save_LIBS=$LIBS
12187LIBS="-ldl  $LIBS"
12188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189/* end confdefs.h.  */
12190
12191/* Override any GCC internal prototype to avoid an error.
12192   Use char because int might match the return type of a GCC
12193   builtin and then its argument prototype would still apply.  */
12194#ifdef __cplusplus
12195extern "C"
12196#endif
12197char dlopen ();
12198int
12199main ()
12200{
12201return dlopen ();
12202  ;
12203  return 0;
12204}
12205_ACEOF
12206if ac_fn_c_try_link "$LINENO"; then :
12207  ac_cv_lib_dl_dlopen=yes
12208else
12209  ac_cv_lib_dl_dlopen=no
12210fi
12211rm -f core conftest.err conftest.$ac_objext \
12212    conftest$ac_exeext conftest.$ac_ext
12213LIBS=$ac_check_lib_save_LIBS
12214fi
12215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12216$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12217if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12218  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12219else
12220
12221    lt_cv_dlopen="dyld"
12222    lt_cv_dlopen_libs=
12223    lt_cv_dlopen_self=yes
12224
12225fi
12226
12227    ;;
12228
12229  *)
12230    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12231if test "x$ac_cv_func_shl_load" = xyes; then :
12232  lt_cv_dlopen="shl_load"
12233else
12234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12235$as_echo_n "checking for shl_load in -ldld... " >&6; }
12236if ${ac_cv_lib_dld_shl_load+:} false; then :
12237  $as_echo_n "(cached) " >&6
12238else
12239  ac_check_lib_save_LIBS=$LIBS
12240LIBS="-ldld  $LIBS"
12241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242/* end confdefs.h.  */
12243
12244/* Override any GCC internal prototype to avoid an error.
12245   Use char because int might match the return type of a GCC
12246   builtin and then its argument prototype would still apply.  */
12247#ifdef __cplusplus
12248extern "C"
12249#endif
12250char shl_load ();
12251int
12252main ()
12253{
12254return shl_load ();
12255  ;
12256  return 0;
12257}
12258_ACEOF
12259if ac_fn_c_try_link "$LINENO"; then :
12260  ac_cv_lib_dld_shl_load=yes
12261else
12262  ac_cv_lib_dld_shl_load=no
12263fi
12264rm -f core conftest.err conftest.$ac_objext \
12265    conftest$ac_exeext conftest.$ac_ext
12266LIBS=$ac_check_lib_save_LIBS
12267fi
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12269$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12270if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12271  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12272else
12273  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12274if test "x$ac_cv_func_dlopen" = xyes; then :
12275  lt_cv_dlopen="dlopen"
12276else
12277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12278$as_echo_n "checking for dlopen in -ldl... " >&6; }
12279if ${ac_cv_lib_dl_dlopen+:} false; then :
12280  $as_echo_n "(cached) " >&6
12281else
12282  ac_check_lib_save_LIBS=$LIBS
12283LIBS="-ldl  $LIBS"
12284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285/* end confdefs.h.  */
12286
12287/* Override any GCC internal prototype to avoid an error.
12288   Use char because int might match the return type of a GCC
12289   builtin and then its argument prototype would still apply.  */
12290#ifdef __cplusplus
12291extern "C"
12292#endif
12293char dlopen ();
12294int
12295main ()
12296{
12297return dlopen ();
12298  ;
12299  return 0;
12300}
12301_ACEOF
12302if ac_fn_c_try_link "$LINENO"; then :
12303  ac_cv_lib_dl_dlopen=yes
12304else
12305  ac_cv_lib_dl_dlopen=no
12306fi
12307rm -f core conftest.err conftest.$ac_objext \
12308    conftest$ac_exeext conftest.$ac_ext
12309LIBS=$ac_check_lib_save_LIBS
12310fi
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12312$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12313if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12314  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12315else
12316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12317$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12318if ${ac_cv_lib_svld_dlopen+:} false; then :
12319  $as_echo_n "(cached) " >&6
12320else
12321  ac_check_lib_save_LIBS=$LIBS
12322LIBS="-lsvld  $LIBS"
12323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324/* end confdefs.h.  */
12325
12326/* Override any GCC internal prototype to avoid an error.
12327   Use char because int might match the return type of a GCC
12328   builtin and then its argument prototype would still apply.  */
12329#ifdef __cplusplus
12330extern "C"
12331#endif
12332char dlopen ();
12333int
12334main ()
12335{
12336return dlopen ();
12337  ;
12338  return 0;
12339}
12340_ACEOF
12341if ac_fn_c_try_link "$LINENO"; then :
12342  ac_cv_lib_svld_dlopen=yes
12343else
12344  ac_cv_lib_svld_dlopen=no
12345fi
12346rm -f core conftest.err conftest.$ac_objext \
12347    conftest$ac_exeext conftest.$ac_ext
12348LIBS=$ac_check_lib_save_LIBS
12349fi
12350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12351$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12352if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12353  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12354else
12355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12356$as_echo_n "checking for dld_link in -ldld... " >&6; }
12357if ${ac_cv_lib_dld_dld_link+:} false; then :
12358  $as_echo_n "(cached) " >&6
12359else
12360  ac_check_lib_save_LIBS=$LIBS
12361LIBS="-ldld  $LIBS"
12362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363/* end confdefs.h.  */
12364
12365/* Override any GCC internal prototype to avoid an error.
12366   Use char because int might match the return type of a GCC
12367   builtin and then its argument prototype would still apply.  */
12368#ifdef __cplusplus
12369extern "C"
12370#endif
12371char dld_link ();
12372int
12373main ()
12374{
12375return dld_link ();
12376  ;
12377  return 0;
12378}
12379_ACEOF
12380if ac_fn_c_try_link "$LINENO"; then :
12381  ac_cv_lib_dld_dld_link=yes
12382else
12383  ac_cv_lib_dld_dld_link=no
12384fi
12385rm -f core conftest.err conftest.$ac_objext \
12386    conftest$ac_exeext conftest.$ac_ext
12387LIBS=$ac_check_lib_save_LIBS
12388fi
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12390$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12391if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12392  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12393fi
12394
12395
12396fi
12397
12398
12399fi
12400
12401
12402fi
12403
12404
12405fi
12406
12407
12408fi
12409
12410    ;;
12411  esac
12412
12413  if test "x$lt_cv_dlopen" != xno; then
12414    enable_dlopen=yes
12415  else
12416    enable_dlopen=no
12417  fi
12418
12419  case $lt_cv_dlopen in
12420  dlopen)
12421    save_CPPFLAGS="$CPPFLAGS"
12422    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12423
12424    save_LDFLAGS="$LDFLAGS"
12425    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12426
12427    save_LIBS="$LIBS"
12428    LIBS="$lt_cv_dlopen_libs $LIBS"
12429
12430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12431$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12432if ${lt_cv_dlopen_self+:} false; then :
12433  $as_echo_n "(cached) " >&6
12434else
12435  	  if test "$cross_compiling" = yes; then :
12436  lt_cv_dlopen_self=cross
12437else
12438  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12439  lt_status=$lt_dlunknown
12440  cat > conftest.$ac_ext <<_LT_EOF
12441#line $LINENO "configure"
12442#include "confdefs.h"
12443
12444#if HAVE_DLFCN_H
12445#include <dlfcn.h>
12446#endif
12447
12448#include <stdio.h>
12449
12450#ifdef RTLD_GLOBAL
12451#  define LT_DLGLOBAL		RTLD_GLOBAL
12452#else
12453#  ifdef DL_GLOBAL
12454#    define LT_DLGLOBAL		DL_GLOBAL
12455#  else
12456#    define LT_DLGLOBAL		0
12457#  endif
12458#endif
12459
12460/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12461   find out it does not work in some platform. */
12462#ifndef LT_DLLAZY_OR_NOW
12463#  ifdef RTLD_LAZY
12464#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12465#  else
12466#    ifdef DL_LAZY
12467#      define LT_DLLAZY_OR_NOW		DL_LAZY
12468#    else
12469#      ifdef RTLD_NOW
12470#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12471#      else
12472#        ifdef DL_NOW
12473#          define LT_DLLAZY_OR_NOW	DL_NOW
12474#        else
12475#          define LT_DLLAZY_OR_NOW	0
12476#        endif
12477#      endif
12478#    endif
12479#  endif
12480#endif
12481
12482/* When -fvisbility=hidden is used, assume the code has been annotated
12483   correspondingly for the symbols needed.  */
12484#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12485int fnord () __attribute__((visibility("default")));
12486#endif
12487
12488int fnord () { return 42; }
12489int main ()
12490{
12491  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12492  int status = $lt_dlunknown;
12493
12494  if (self)
12495    {
12496      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12497      else
12498        {
12499	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12500          else puts (dlerror ());
12501	}
12502      /* dlclose (self); */
12503    }
12504  else
12505    puts (dlerror ());
12506
12507  return status;
12508}
12509_LT_EOF
12510  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12511  (eval $ac_link) 2>&5
12512  ac_status=$?
12513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12514  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12515    (./conftest; exit; ) >&5 2>/dev/null
12516    lt_status=$?
12517    case x$lt_status in
12518      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12519      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12520      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12521    esac
12522  else :
12523    # compilation failed
12524    lt_cv_dlopen_self=no
12525  fi
12526fi
12527rm -fr conftest*
12528
12529
12530fi
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12532$as_echo "$lt_cv_dlopen_self" >&6; }
12533
12534    if test "x$lt_cv_dlopen_self" = xyes; then
12535      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12536      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12537$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12538if ${lt_cv_dlopen_self_static+:} false; then :
12539  $as_echo_n "(cached) " >&6
12540else
12541  	  if test "$cross_compiling" = yes; then :
12542  lt_cv_dlopen_self_static=cross
12543else
12544  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12545  lt_status=$lt_dlunknown
12546  cat > conftest.$ac_ext <<_LT_EOF
12547#line $LINENO "configure"
12548#include "confdefs.h"
12549
12550#if HAVE_DLFCN_H
12551#include <dlfcn.h>
12552#endif
12553
12554#include <stdio.h>
12555
12556#ifdef RTLD_GLOBAL
12557#  define LT_DLGLOBAL		RTLD_GLOBAL
12558#else
12559#  ifdef DL_GLOBAL
12560#    define LT_DLGLOBAL		DL_GLOBAL
12561#  else
12562#    define LT_DLGLOBAL		0
12563#  endif
12564#endif
12565
12566/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12567   find out it does not work in some platform. */
12568#ifndef LT_DLLAZY_OR_NOW
12569#  ifdef RTLD_LAZY
12570#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12571#  else
12572#    ifdef DL_LAZY
12573#      define LT_DLLAZY_OR_NOW		DL_LAZY
12574#    else
12575#      ifdef RTLD_NOW
12576#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12577#      else
12578#        ifdef DL_NOW
12579#          define LT_DLLAZY_OR_NOW	DL_NOW
12580#        else
12581#          define LT_DLLAZY_OR_NOW	0
12582#        endif
12583#      endif
12584#    endif
12585#  endif
12586#endif
12587
12588/* When -fvisbility=hidden is used, assume the code has been annotated
12589   correspondingly for the symbols needed.  */
12590#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12591int fnord () __attribute__((visibility("default")));
12592#endif
12593
12594int fnord () { return 42; }
12595int main ()
12596{
12597  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12598  int status = $lt_dlunknown;
12599
12600  if (self)
12601    {
12602      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12603      else
12604        {
12605	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12606          else puts (dlerror ());
12607	}
12608      /* dlclose (self); */
12609    }
12610  else
12611    puts (dlerror ());
12612
12613  return status;
12614}
12615_LT_EOF
12616  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12617  (eval $ac_link) 2>&5
12618  ac_status=$?
12619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12620  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12621    (./conftest; exit; ) >&5 2>/dev/null
12622    lt_status=$?
12623    case x$lt_status in
12624      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12625      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12626      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12627    esac
12628  else :
12629    # compilation failed
12630    lt_cv_dlopen_self_static=no
12631  fi
12632fi
12633rm -fr conftest*
12634
12635
12636fi
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12638$as_echo "$lt_cv_dlopen_self_static" >&6; }
12639    fi
12640
12641    CPPFLAGS="$save_CPPFLAGS"
12642    LDFLAGS="$save_LDFLAGS"
12643    LIBS="$save_LIBS"
12644    ;;
12645  esac
12646
12647  case $lt_cv_dlopen_self in
12648  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12649  *) enable_dlopen_self=unknown ;;
12650  esac
12651
12652  case $lt_cv_dlopen_self_static in
12653  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12654  *) enable_dlopen_self_static=unknown ;;
12655  esac
12656fi
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674striplib=
12675old_striplib=
12676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12677$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12678if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12679  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12680  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12682$as_echo "yes" >&6; }
12683else
12684# FIXME - insert some real tests, host_os isn't really good enough
12685  case $host_os in
12686  darwin*)
12687    if test -n "$STRIP" ; then
12688      striplib="$STRIP -x"
12689      old_striplib="$STRIP -S"
12690      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12691$as_echo "yes" >&6; }
12692    else
12693      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694$as_echo "no" >&6; }
12695    fi
12696    ;;
12697  *)
12698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699$as_echo "no" >&6; }
12700    ;;
12701  esac
12702fi
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715  # Report which library types will actually be built
12716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12717$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12719$as_echo "$can_build_shared" >&6; }
12720
12721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12722$as_echo_n "checking whether to build shared libraries... " >&6; }
12723  test "$can_build_shared" = "no" && enable_shared=no
12724
12725  # On AIX, shared libraries and static libraries use the same namespace, and
12726  # are all built from PIC.
12727  case $host_os in
12728  aix3*)
12729    test "$enable_shared" = yes && enable_static=no
12730    if test -n "$RANLIB"; then
12731      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12732      postinstall_cmds='$RANLIB $lib'
12733    fi
12734    ;;
12735
12736  aix[4-9]*)
12737    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12738      test "$enable_shared" = yes && enable_static=no
12739    fi
12740    ;;
12741  esac
12742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12743$as_echo "$enable_shared" >&6; }
12744
12745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12746$as_echo_n "checking whether to build static libraries... " >&6; }
12747  # Make sure either enable_shared or enable_static is yes.
12748  test "$enable_shared" = yes || enable_static=yes
12749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12750$as_echo "$enable_static" >&6; }
12751
12752
12753
12754
12755fi
12756ac_ext=c
12757ac_cpp='$CPP $CPPFLAGS'
12758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12760ac_compiler_gnu=$ac_cv_c_compiler_gnu
12761
12762CC="$lt_save_CC"
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778        ac_config_commands="$ac_config_commands libtool"
12779
12780
12781
12782
12783# Only expand once:
12784
12785
12786
12787
12788
12789
12790
12791# changing LDFLAGS value should only be done after
12792# lt_cv_prog_compiler_static_works test
12793if test x$SYSTEM_ZLIB = xyes; then
12794  CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
12795  LDFLAGS="$LDFLAGS $LIBZ"
12796fi
12797
12798if test x$SYSTEM_LIBBZ2 = xyes; then
12799  CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_USE_BZIP2"
12800  LDFLAGS="$LDFLAGS $LIBBZ2"
12801fi
12802
12803
12804
12805
12806# configuration file -- stay in 8.3 limit
12807#
12808# since #undef doesn't survive in configuration header files we replace
12809# `/undef' with `#undef' after creating the output file
12810
12811ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
12812
12813
12814# create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
12815# and `builds/unix/unix-cc.mk' that will be used by the build system
12816#
12817ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in"
12818
12819
12820# re-generate the Jamfile to use libtool now
12821#
12822# AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
12823
12824cat >confcache <<\_ACEOF
12825# This file is a shell script that caches the results of configure
12826# tests run on this system so they can be shared between configure
12827# scripts and configure runs, see configure's option --config-cache.
12828# It is not useful on other systems.  If it contains results you don't
12829# want to keep, you may remove or edit it.
12830#
12831# config.status only pays attention to the cache file if you give it
12832# the --recheck option to rerun configure.
12833#
12834# `ac_cv_env_foo' variables (set or unset) will be overridden when
12835# loading this file, other *unset* `ac_cv_foo' will be assigned the
12836# following values.
12837
12838_ACEOF
12839
12840# The following way of writing the cache mishandles newlines in values,
12841# but we know of no workaround that is simple, portable, and efficient.
12842# So, we kill variables containing newlines.
12843# Ultrix sh set writes to stderr and can't be redirected directly,
12844# and sets the high bit in the cache file unless we assign to the vars.
12845(
12846  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12847    eval ac_val=\$$ac_var
12848    case $ac_val in #(
12849    *${as_nl}*)
12850      case $ac_var in #(
12851      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12852$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12853      esac
12854      case $ac_var in #(
12855      _ | IFS | as_nl) ;; #(
12856      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12857      *) { eval $ac_var=; unset $ac_var;} ;;
12858      esac ;;
12859    esac
12860  done
12861
12862  (set) 2>&1 |
12863    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12864    *${as_nl}ac_space=\ *)
12865      # `set' does not quote correctly, so add quotes: double-quote
12866      # substitution turns \\\\ into \\, and sed turns \\ into \.
12867      sed -n \
12868	"s/'/'\\\\''/g;
12869	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12870      ;; #(
12871    *)
12872      # `set' quotes correctly as required by POSIX, so do not add quotes.
12873      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12874      ;;
12875    esac |
12876    sort
12877) |
12878  sed '
12879     /^ac_cv_env_/b end
12880     t clear
12881     :clear
12882     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12883     t end
12884     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12885     :end' >>confcache
12886if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12887  if test -w "$cache_file"; then
12888    if test "x$cache_file" != "x/dev/null"; then
12889      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12890$as_echo "$as_me: updating cache $cache_file" >&6;}
12891      if test ! -f "$cache_file" || test -h "$cache_file"; then
12892	cat confcache >"$cache_file"
12893      else
12894        case $cache_file in #(
12895        */* | ?:*)
12896	  mv -f confcache "$cache_file"$$ &&
12897	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12898        *)
12899	  mv -f confcache "$cache_file" ;;
12900	esac
12901      fi
12902    fi
12903  else
12904    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12905$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12906  fi
12907fi
12908rm -f confcache
12909
12910test "x$prefix" = xNONE && prefix=$ac_default_prefix
12911# Let make expand exec_prefix.
12912test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12913
12914DEFS=-DHAVE_CONFIG_H
12915
12916ac_libobjs=
12917ac_ltlibobjs=
12918U=
12919for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12920  # 1. Remove the extension, and $U if already installed.
12921  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12922  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12923  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12924  #    will be set to the directory where LIBOBJS objects are built.
12925  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12926  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12927done
12928LIBOBJS=$ac_libobjs
12929
12930LTLIBOBJS=$ac_ltlibobjs
12931
12932
12933
12934: "${CONFIG_STATUS=./config.status}"
12935ac_write_fail=0
12936ac_clean_files_save=$ac_clean_files
12937ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12939$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12940as_write_fail=0
12941cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12942#! $SHELL
12943# Generated by $as_me.
12944# Run this file to recreate the current configuration.
12945# Compiler output produced by configure, useful for debugging
12946# configure, is in config.log if it exists.
12947
12948debug=false
12949ac_cs_recheck=false
12950ac_cs_silent=false
12951
12952SHELL=\${CONFIG_SHELL-$SHELL}
12953export SHELL
12954_ASEOF
12955cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12956## -------------------- ##
12957## M4sh Initialization. ##
12958## -------------------- ##
12959
12960# Be more Bourne compatible
12961DUALCASE=1; export DUALCASE # for MKS sh
12962if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12963  emulate sh
12964  NULLCMD=:
12965  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12966  # is contrary to our usage.  Disable this feature.
12967  alias -g '${1+"$@"}'='"$@"'
12968  setopt NO_GLOB_SUBST
12969else
12970  case `(set -o) 2>/dev/null` in #(
12971  *posix*) :
12972    set -o posix ;; #(
12973  *) :
12974     ;;
12975esac
12976fi
12977
12978
12979as_nl='
12980'
12981export as_nl
12982# Printing a long string crashes Solaris 7 /usr/bin/printf.
12983as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12984as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12985as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12986# Prefer a ksh shell builtin over an external printf program on Solaris,
12987# but without wasting forks for bash or zsh.
12988if test -z "$BASH_VERSION$ZSH_VERSION" \
12989    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12990  as_echo='print -r --'
12991  as_echo_n='print -rn --'
12992elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12993  as_echo='printf %s\n'
12994  as_echo_n='printf %s'
12995else
12996  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12997    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12998    as_echo_n='/usr/ucb/echo -n'
12999  else
13000    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13001    as_echo_n_body='eval
13002      arg=$1;
13003      case $arg in #(
13004      *"$as_nl"*)
13005	expr "X$arg" : "X\\(.*\\)$as_nl";
13006	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13007      esac;
13008      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13009    '
13010    export as_echo_n_body
13011    as_echo_n='sh -c $as_echo_n_body as_echo'
13012  fi
13013  export as_echo_body
13014  as_echo='sh -c $as_echo_body as_echo'
13015fi
13016
13017# The user is always right.
13018if test "${PATH_SEPARATOR+set}" != set; then
13019  PATH_SEPARATOR=:
13020  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13021    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13022      PATH_SEPARATOR=';'
13023  }
13024fi
13025
13026
13027# IFS
13028# We need space, tab and new line, in precisely that order.  Quoting is
13029# there to prevent editors from complaining about space-tab.
13030# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13031# splitting by setting IFS to empty value.)
13032IFS=" ""	$as_nl"
13033
13034# Find who we are.  Look in the path if we contain no directory separator.
13035as_myself=
13036case $0 in #((
13037  *[\\/]* ) as_myself=$0 ;;
13038  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13039for as_dir in $PATH
13040do
13041  IFS=$as_save_IFS
13042  test -z "$as_dir" && as_dir=.
13043    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13044  done
13045IFS=$as_save_IFS
13046
13047     ;;
13048esac
13049# We did not find ourselves, most probably we were run as `sh COMMAND'
13050# in which case we are not to be found in the path.
13051if test "x$as_myself" = x; then
13052  as_myself=$0
13053fi
13054if test ! -f "$as_myself"; then
13055  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13056  exit 1
13057fi
13058
13059# Unset variables that we do not need and which cause bugs (e.g. in
13060# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13061# suppresses any "Segmentation fault" message there.  '((' could
13062# trigger a bug in pdksh 5.2.14.
13063for as_var in BASH_ENV ENV MAIL MAILPATH
13064do eval test x\${$as_var+set} = xset \
13065  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13066done
13067PS1='$ '
13068PS2='> '
13069PS4='+ '
13070
13071# NLS nuisances.
13072LC_ALL=C
13073export LC_ALL
13074LANGUAGE=C
13075export LANGUAGE
13076
13077# CDPATH.
13078(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13079
13080
13081# as_fn_error STATUS ERROR [LINENO LOG_FD]
13082# ----------------------------------------
13083# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13084# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13085# script with STATUS, using 1 if that was 0.
13086as_fn_error ()
13087{
13088  as_status=$1; test $as_status -eq 0 && as_status=1
13089  if test "$4"; then
13090    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13091    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13092  fi
13093  $as_echo "$as_me: error: $2" >&2
13094  as_fn_exit $as_status
13095} # as_fn_error
13096
13097
13098# as_fn_set_status STATUS
13099# -----------------------
13100# Set $? to STATUS, without forking.
13101as_fn_set_status ()
13102{
13103  return $1
13104} # as_fn_set_status
13105
13106# as_fn_exit STATUS
13107# -----------------
13108# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13109as_fn_exit ()
13110{
13111  set +e
13112  as_fn_set_status $1
13113  exit $1
13114} # as_fn_exit
13115
13116# as_fn_unset VAR
13117# ---------------
13118# Portably unset VAR.
13119as_fn_unset ()
13120{
13121  { eval $1=; unset $1;}
13122}
13123as_unset=as_fn_unset
13124# as_fn_append VAR VALUE
13125# ----------------------
13126# Append the text in VALUE to the end of the definition contained in VAR. Take
13127# advantage of any shell optimizations that allow amortized linear growth over
13128# repeated appends, instead of the typical quadratic growth present in naive
13129# implementations.
13130if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13131  eval 'as_fn_append ()
13132  {
13133    eval $1+=\$2
13134  }'
13135else
13136  as_fn_append ()
13137  {
13138    eval $1=\$$1\$2
13139  }
13140fi # as_fn_append
13141
13142# as_fn_arith ARG...
13143# ------------------
13144# Perform arithmetic evaluation on the ARGs, and store the result in the
13145# global $as_val. Take advantage of shells that can avoid forks. The arguments
13146# must be portable across $(()) and expr.
13147if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13148  eval 'as_fn_arith ()
13149  {
13150    as_val=$(( $* ))
13151  }'
13152else
13153  as_fn_arith ()
13154  {
13155    as_val=`expr "$@" || test $? -eq 1`
13156  }
13157fi # as_fn_arith
13158
13159
13160if expr a : '\(a\)' >/dev/null 2>&1 &&
13161   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13162  as_expr=expr
13163else
13164  as_expr=false
13165fi
13166
13167if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13168  as_basename=basename
13169else
13170  as_basename=false
13171fi
13172
13173if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13174  as_dirname=dirname
13175else
13176  as_dirname=false
13177fi
13178
13179as_me=`$as_basename -- "$0" ||
13180$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13181	 X"$0" : 'X\(//\)$' \| \
13182	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13183$as_echo X/"$0" |
13184    sed '/^.*\/\([^/][^/]*\)\/*$/{
13185	    s//\1/
13186	    q
13187	  }
13188	  /^X\/\(\/\/\)$/{
13189	    s//\1/
13190	    q
13191	  }
13192	  /^X\/\(\/\).*/{
13193	    s//\1/
13194	    q
13195	  }
13196	  s/.*/./; q'`
13197
13198# Avoid depending upon Character Ranges.
13199as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13200as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13201as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13202as_cr_digits='0123456789'
13203as_cr_alnum=$as_cr_Letters$as_cr_digits
13204
13205ECHO_C= ECHO_N= ECHO_T=
13206case `echo -n x` in #(((((
13207-n*)
13208  case `echo 'xy\c'` in
13209  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13210  xy)  ECHO_C='\c';;
13211  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13212       ECHO_T='	';;
13213  esac;;
13214*)
13215  ECHO_N='-n';;
13216esac
13217
13218rm -f conf$$ conf$$.exe conf$$.file
13219if test -d conf$$.dir; then
13220  rm -f conf$$.dir/conf$$.file
13221else
13222  rm -f conf$$.dir
13223  mkdir conf$$.dir 2>/dev/null
13224fi
13225if (echo >conf$$.file) 2>/dev/null; then
13226  if ln -s conf$$.file conf$$ 2>/dev/null; then
13227    as_ln_s='ln -s'
13228    # ... but there are two gotchas:
13229    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13230    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13231    # In both cases, we have to default to `cp -pR'.
13232    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13233      as_ln_s='cp -pR'
13234  elif ln conf$$.file conf$$ 2>/dev/null; then
13235    as_ln_s=ln
13236  else
13237    as_ln_s='cp -pR'
13238  fi
13239else
13240  as_ln_s='cp -pR'
13241fi
13242rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13243rmdir conf$$.dir 2>/dev/null
13244
13245
13246# as_fn_mkdir_p
13247# -------------
13248# Create "$as_dir" as a directory, including parents if necessary.
13249as_fn_mkdir_p ()
13250{
13251
13252  case $as_dir in #(
13253  -*) as_dir=./$as_dir;;
13254  esac
13255  test -d "$as_dir" || eval $as_mkdir_p || {
13256    as_dirs=
13257    while :; do
13258      case $as_dir in #(
13259      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13260      *) as_qdir=$as_dir;;
13261      esac
13262      as_dirs="'$as_qdir' $as_dirs"
13263      as_dir=`$as_dirname -- "$as_dir" ||
13264$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13265	 X"$as_dir" : 'X\(//\)[^/]' \| \
13266	 X"$as_dir" : 'X\(//\)$' \| \
13267	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13268$as_echo X"$as_dir" |
13269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13270	    s//\1/
13271	    q
13272	  }
13273	  /^X\(\/\/\)[^/].*/{
13274	    s//\1/
13275	    q
13276	  }
13277	  /^X\(\/\/\)$/{
13278	    s//\1/
13279	    q
13280	  }
13281	  /^X\(\/\).*/{
13282	    s//\1/
13283	    q
13284	  }
13285	  s/.*/./; q'`
13286      test -d "$as_dir" && break
13287    done
13288    test -z "$as_dirs" || eval "mkdir $as_dirs"
13289  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13290
13291
13292} # as_fn_mkdir_p
13293if mkdir -p . 2>/dev/null; then
13294  as_mkdir_p='mkdir -p "$as_dir"'
13295else
13296  test -d ./-p && rmdir ./-p
13297  as_mkdir_p=false
13298fi
13299
13300
13301# as_fn_executable_p FILE
13302# -----------------------
13303# Test if FILE is an executable regular file.
13304as_fn_executable_p ()
13305{
13306  test -f "$1" && test -x "$1"
13307} # as_fn_executable_p
13308as_test_x='test -x'
13309as_executable_p=as_fn_executable_p
13310
13311# Sed expression to map a string onto a valid CPP name.
13312as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13313
13314# Sed expression to map a string onto a valid variable name.
13315as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13316
13317
13318exec 6>&1
13319## ----------------------------------- ##
13320## Main body of $CONFIG_STATUS script. ##
13321## ----------------------------------- ##
13322_ASEOF
13323test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13324
13325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13326# Save the log message, to keep $0 and so on meaningful, and to
13327# report actual input values of CONFIG_FILES etc. instead of their
13328# values after options handling.
13329ac_log="
13330This file was extended by FreeType $as_me 2.4.12, which was
13331generated by GNU Autoconf 2.69.  Invocation command line was
13332
13333  CONFIG_FILES    = $CONFIG_FILES
13334  CONFIG_HEADERS  = $CONFIG_HEADERS
13335  CONFIG_LINKS    = $CONFIG_LINKS
13336  CONFIG_COMMANDS = $CONFIG_COMMANDS
13337  $ $0 $@
13338
13339on `(hostname || uname -n) 2>/dev/null | sed 1q`
13340"
13341
13342_ACEOF
13343
13344case $ac_config_files in *"
13345"*) set x $ac_config_files; shift; ac_config_files=$*;;
13346esac
13347
13348case $ac_config_headers in *"
13349"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13350esac
13351
13352
13353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13354# Files that config.status was made for.
13355config_files="$ac_config_files"
13356config_headers="$ac_config_headers"
13357config_commands="$ac_config_commands"
13358
13359_ACEOF
13360
13361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13362ac_cs_usage="\
13363\`$as_me' instantiates files and other configuration actions
13364from templates according to the current configuration.  Unless the files
13365and actions are specified as TAGs, all are instantiated by default.
13366
13367Usage: $0 [OPTION]... [TAG]...
13368
13369  -h, --help       print this help, then exit
13370  -V, --version    print version number and configuration settings, then exit
13371      --config     print configuration, then exit
13372  -q, --quiet, --silent
13373                   do not print progress messages
13374  -d, --debug      don't remove temporary files
13375      --recheck    update $as_me by reconfiguring in the same conditions
13376      --file=FILE[:TEMPLATE]
13377                   instantiate the configuration file FILE
13378      --header=FILE[:TEMPLATE]
13379                   instantiate the configuration header FILE
13380
13381Configuration files:
13382$config_files
13383
13384Configuration headers:
13385$config_headers
13386
13387Configuration commands:
13388$config_commands
13389
13390Report bugs to <freetype@nongnu.org>."
13391
13392_ACEOF
13393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13394ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13395ac_cs_version="\\
13396FreeType config.status 2.4.12
13397configured by $0, generated by GNU Autoconf 2.69,
13398  with options \\"\$ac_cs_config\\"
13399
13400Copyright (C) 2012 Free Software Foundation, Inc.
13401This config.status script is free software; the Free Software Foundation
13402gives unlimited permission to copy, distribute and modify it."
13403
13404ac_pwd='$ac_pwd'
13405srcdir='$srcdir'
13406INSTALL='$INSTALL'
13407AWK='$AWK'
13408test -n "\$AWK" || AWK=awk
13409_ACEOF
13410
13411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13412# The default lists apply if the user does not specify any file.
13413ac_need_defaults=:
13414while test $# != 0
13415do
13416  case $1 in
13417  --*=?*)
13418    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13419    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13420    ac_shift=:
13421    ;;
13422  --*=)
13423    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13424    ac_optarg=
13425    ac_shift=:
13426    ;;
13427  *)
13428    ac_option=$1
13429    ac_optarg=$2
13430    ac_shift=shift
13431    ;;
13432  esac
13433
13434  case $ac_option in
13435  # Handling of the options.
13436  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13437    ac_cs_recheck=: ;;
13438  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13439    $as_echo "$ac_cs_version"; exit ;;
13440  --config | --confi | --conf | --con | --co | --c )
13441    $as_echo "$ac_cs_config"; exit ;;
13442  --debug | --debu | --deb | --de | --d | -d )
13443    debug=: ;;
13444  --file | --fil | --fi | --f )
13445    $ac_shift
13446    case $ac_optarg in
13447    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13448    '') as_fn_error $? "missing file argument" ;;
13449    esac
13450    as_fn_append CONFIG_FILES " '$ac_optarg'"
13451    ac_need_defaults=false;;
13452  --header | --heade | --head | --hea )
13453    $ac_shift
13454    case $ac_optarg in
13455    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13456    esac
13457    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13458    ac_need_defaults=false;;
13459  --he | --h)
13460    # Conflict between --help and --header
13461    as_fn_error $? "ambiguous option: \`$1'
13462Try \`$0 --help' for more information.";;
13463  --help | --hel | -h )
13464    $as_echo "$ac_cs_usage"; exit ;;
13465  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13466  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13467    ac_cs_silent=: ;;
13468
13469  # This is an error.
13470  -*) as_fn_error $? "unrecognized option: \`$1'
13471Try \`$0 --help' for more information." ;;
13472
13473  *) as_fn_append ac_config_targets " $1"
13474     ac_need_defaults=false ;;
13475
13476  esac
13477  shift
13478done
13479
13480ac_configure_extra_args=
13481
13482if $ac_cs_silent; then
13483  exec 6>/dev/null
13484  ac_configure_extra_args="$ac_configure_extra_args --silent"
13485fi
13486
13487_ACEOF
13488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489if \$ac_cs_recheck; then
13490  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13491  shift
13492  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13493  CONFIG_SHELL='$SHELL'
13494  export CONFIG_SHELL
13495  exec "\$@"
13496fi
13497
13498_ACEOF
13499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13500exec 5>>config.log
13501{
13502  echo
13503  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13504## Running $as_me. ##
13505_ASBOX
13506  $as_echo "$ac_log"
13507} >&5
13508
13509_ACEOF
13510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13511#
13512# INIT-COMMANDS
13513#
13514
13515
13516# The HP-UX ksh and POSIX shell print the target directory to stdout
13517# if CDPATH is set.
13518(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13519
13520sed_quote_subst='$sed_quote_subst'
13521double_quote_subst='$double_quote_subst'
13522delay_variable_subst='$delay_variable_subst'
13523macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13524macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13525AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13526DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13527OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13528enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13529enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13530pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13531enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13532SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13533ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13534PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13535host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13536host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13537host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13538build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13539build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13540build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13541SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13542Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13543GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13544EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13545FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13546LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13547NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13548LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13549max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13550ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13551exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13552lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13553lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13554lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13555lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13556lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13557reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13558reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13559deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13560file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13561file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13562want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13563sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13564AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13565AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13566archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13567STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13568RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13569old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13570old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13571old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13572lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13573CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13574CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13575compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13576GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13577lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13578lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13579lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13580lt_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"`'
13581nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13582lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13583objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13584MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13585lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13586lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13587lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13588lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13589lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13590need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13591MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13592DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13593NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13594LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13595OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13596OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13597libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13598shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13599extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13600archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13601enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13602export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13603whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13604compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13605old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13606old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13607archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13608archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13609module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13610module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13611with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13612allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13613no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13614hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13615hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13616hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13617hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13618hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13619hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13620hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13621inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13622link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13623always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13624export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13625exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13626include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13627prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13628postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13629file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13630variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13631need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13632need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13633version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13634runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13635shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13636shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13637libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13638library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13639soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13640install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13641postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13642postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13643finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13644finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13645hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13646sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13647sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13648hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13649enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13650enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13651enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13652old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13653striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13654
13655LTCC='$LTCC'
13656LTCFLAGS='$LTCFLAGS'
13657compiler='$compiler_DEFAULT'
13658
13659# A function that is used when there is no print builtin or printf.
13660func_fallback_echo ()
13661{
13662  eval 'cat <<_LTECHO_EOF
13663\$1
13664_LTECHO_EOF'
13665}
13666
13667# Quote evaled strings.
13668for var in AS \
13669DLLTOOL \
13670OBJDUMP \
13671SHELL \
13672ECHO \
13673PATH_SEPARATOR \
13674SED \
13675GREP \
13676EGREP \
13677FGREP \
13678LD \
13679NM \
13680LN_S \
13681lt_SP2NL \
13682lt_NL2SP \
13683reload_flag \
13684deplibs_check_method \
13685file_magic_cmd \
13686file_magic_glob \
13687want_nocaseglob \
13688sharedlib_from_linklib_cmd \
13689AR \
13690AR_FLAGS \
13691archiver_list_spec \
13692STRIP \
13693RANLIB \
13694CC \
13695CFLAGS \
13696compiler \
13697lt_cv_sys_global_symbol_pipe \
13698lt_cv_sys_global_symbol_to_cdecl \
13699lt_cv_sys_global_symbol_to_c_name_address \
13700lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13701nm_file_list_spec \
13702lt_prog_compiler_no_builtin_flag \
13703lt_prog_compiler_pic \
13704lt_prog_compiler_wl \
13705lt_prog_compiler_static \
13706lt_cv_prog_compiler_c_o \
13707need_locks \
13708MANIFEST_TOOL \
13709DSYMUTIL \
13710NMEDIT \
13711LIPO \
13712OTOOL \
13713OTOOL64 \
13714shrext_cmds \
13715export_dynamic_flag_spec \
13716whole_archive_flag_spec \
13717compiler_needs_object \
13718with_gnu_ld \
13719allow_undefined_flag \
13720no_undefined_flag \
13721hardcode_libdir_flag_spec \
13722hardcode_libdir_separator \
13723exclude_expsyms \
13724include_expsyms \
13725file_list_spec \
13726variables_saved_for_relink \
13727libname_spec \
13728library_names_spec \
13729soname_spec \
13730install_override_mode \
13731finish_eval \
13732old_striplib \
13733striplib; do
13734    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13735    *[\\\\\\\`\\"\\\$]*)
13736      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13737      ;;
13738    *)
13739      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13740      ;;
13741    esac
13742done
13743
13744# Double-quote double-evaled strings.
13745for var in reload_cmds \
13746old_postinstall_cmds \
13747old_postuninstall_cmds \
13748old_archive_cmds \
13749extract_expsyms_cmds \
13750old_archive_from_new_cmds \
13751old_archive_from_expsyms_cmds \
13752archive_cmds \
13753archive_expsym_cmds \
13754module_cmds \
13755module_expsym_cmds \
13756export_symbols_cmds \
13757prelink_cmds \
13758postlink_cmds \
13759postinstall_cmds \
13760postuninstall_cmds \
13761finish_cmds \
13762sys_lib_search_path_spec \
13763sys_lib_dlsearch_path_spec; do
13764    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13765    *[\\\\\\\`\\"\\\$]*)
13766      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13767      ;;
13768    *)
13769      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13770      ;;
13771    esac
13772done
13773
13774ac_aux_dir='$ac_aux_dir'
13775xsi_shell='$xsi_shell'
13776lt_shell_append='$lt_shell_append'
13777
13778# See if we are running on zsh, and set the options which allow our
13779# commands through without removal of \ escapes INIT.
13780if test -n "\${ZSH_VERSION+set}" ; then
13781   setopt NO_GLOB_SUBST
13782fi
13783
13784
13785    PACKAGE='$PACKAGE'
13786    VERSION='$VERSION'
13787    TIMESTAMP='$TIMESTAMP'
13788    RM='$RM'
13789    ofile='$ofile'
13790
13791
13792
13793
13794_ACEOF
13795
13796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13797
13798# Handling of arguments.
13799for ac_config_target in $ac_config_targets
13800do
13801  case $ac_config_target in
13802    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13803    "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
13804    "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
13805    "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
13806
13807  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13808  esac
13809done
13810
13811
13812# If the user did not use the arguments to specify the items to instantiate,
13813# then the envvar interface is used.  Set only those that are not.
13814# We use the long form for the default assignment because of an extremely
13815# bizarre bug on SunOS 4.1.3.
13816if $ac_need_defaults; then
13817  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13818  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13819  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13820fi
13821
13822# Have a temporary directory for convenience.  Make it in the build tree
13823# simply because there is no reason against having it here, and in addition,
13824# creating and moving files from /tmp can sometimes cause problems.
13825# Hook for its removal unless debugging.
13826# Note that there is a small window in which the directory will not be cleaned:
13827# after its creation but before its name has been assigned to `$tmp'.
13828$debug ||
13829{
13830  tmp= ac_tmp=
13831  trap 'exit_status=$?
13832  : "${ac_tmp:=$tmp}"
13833  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13834' 0
13835  trap 'as_fn_exit 1' 1 2 13 15
13836}
13837# Create a (secure) tmp directory for tmp files.
13838
13839{
13840  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13841  test -d "$tmp"
13842}  ||
13843{
13844  tmp=./conf$$-$RANDOM
13845  (umask 077 && mkdir "$tmp")
13846} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13847ac_tmp=$tmp
13848
13849# Set up the scripts for CONFIG_FILES section.
13850# No need to generate them if there are no CONFIG_FILES.
13851# This happens for instance with `./config.status config.h'.
13852if test -n "$CONFIG_FILES"; then
13853
13854
13855ac_cr=`echo X | tr X '\015'`
13856# On cygwin, bash can eat \r inside `` if the user requested igncr.
13857# But we know of no other shell where ac_cr would be empty at this
13858# point, so we can use a bashism as a fallback.
13859if test "x$ac_cr" = x; then
13860  eval ac_cr=\$\'\\r\'
13861fi
13862ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13863if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13864  ac_cs_awk_cr='\\r'
13865else
13866  ac_cs_awk_cr=$ac_cr
13867fi
13868
13869echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13870_ACEOF
13871
13872
13873{
13874  echo "cat >conf$$subs.awk <<_ACEOF" &&
13875  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13876  echo "_ACEOF"
13877} >conf$$subs.sh ||
13878  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13879ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13880ac_delim='%!_!# '
13881for ac_last_try in false false false false false :; do
13882  . ./conf$$subs.sh ||
13883    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13884
13885  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13886  if test $ac_delim_n = $ac_delim_num; then
13887    break
13888  elif $ac_last_try; then
13889    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13890  else
13891    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13892  fi
13893done
13894rm -f conf$$subs.sh
13895
13896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13897cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13898_ACEOF
13899sed -n '
13900h
13901s/^/S["/; s/!.*/"]=/
13902p
13903g
13904s/^[^!]*!//
13905:repl
13906t repl
13907s/'"$ac_delim"'$//
13908t delim
13909:nl
13910h
13911s/\(.\{148\}\)..*/\1/
13912t more1
13913s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13914p
13915n
13916b repl
13917:more1
13918s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13919p
13920g
13921s/.\{148\}//
13922t nl
13923:delim
13924h
13925s/\(.\{148\}\)..*/\1/
13926t more2
13927s/["\\]/\\&/g; s/^/"/; s/$/"/
13928p
13929b
13930:more2
13931s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13932p
13933g
13934s/.\{148\}//
13935t delim
13936' <conf$$subs.awk | sed '
13937/^[^""]/{
13938  N
13939  s/\n//
13940}
13941' >>$CONFIG_STATUS || ac_write_fail=1
13942rm -f conf$$subs.awk
13943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13944_ACAWK
13945cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13946  for (key in S) S_is_set[key] = 1
13947  FS = ""
13948
13949}
13950{
13951  line = $ 0
13952  nfields = split(line, field, "@")
13953  substed = 0
13954  len = length(field[1])
13955  for (i = 2; i < nfields; i++) {
13956    key = field[i]
13957    keylen = length(key)
13958    if (S_is_set[key]) {
13959      value = S[key]
13960      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13961      len += length(value) + length(field[++i])
13962      substed = 1
13963    } else
13964      len += 1 + keylen
13965  }
13966
13967  print line
13968}
13969
13970_ACAWK
13971_ACEOF
13972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13973if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13974  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13975else
13976  cat
13977fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13978  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13979_ACEOF
13980
13981# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13982# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13983# trailing colons and then remove the whole line if VPATH becomes empty
13984# (actually we leave an empty line to preserve line numbers).
13985if test "x$srcdir" = x.; then
13986  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13987h
13988s///
13989s/^/:/
13990s/[	 ]*$/:/
13991s/:\$(srcdir):/:/g
13992s/:\${srcdir}:/:/g
13993s/:@srcdir@:/:/g
13994s/^:*//
13995s/:*$//
13996x
13997s/\(=[	 ]*\).*/\1/
13998G
13999s/\n//
14000s/^[^=]*=[	 ]*$//
14001}'
14002fi
14003
14004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14005fi # test -n "$CONFIG_FILES"
14006
14007# Set up the scripts for CONFIG_HEADERS section.
14008# No need to generate them if there are no CONFIG_HEADERS.
14009# This happens for instance with `./config.status Makefile'.
14010if test -n "$CONFIG_HEADERS"; then
14011cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14012BEGIN {
14013_ACEOF
14014
14015# Transform confdefs.h into an awk script `defines.awk', embedded as
14016# here-document in config.status, that substitutes the proper values into
14017# config.h.in to produce config.h.
14018
14019# Create a delimiter string that does not exist in confdefs.h, to ease
14020# handling of long lines.
14021ac_delim='%!_!# '
14022for ac_last_try in false false :; do
14023  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14024  if test -z "$ac_tt"; then
14025    break
14026  elif $ac_last_try; then
14027    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14028  else
14029    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14030  fi
14031done
14032
14033# For the awk script, D is an array of macro values keyed by name,
14034# likewise P contains macro parameters if any.  Preserve backslash
14035# newline sequences.
14036
14037ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14038sed -n '
14039s/.\{148\}/&'"$ac_delim"'/g
14040t rset
14041:rset
14042s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14043t def
14044d
14045:def
14046s/\\$//
14047t bsnl
14048s/["\\]/\\&/g
14049s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14050D["\1"]=" \3"/p
14051s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14052d
14053:bsnl
14054s/["\\]/\\&/g
14055s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14056D["\1"]=" \3\\\\\\n"\\/p
14057t cont
14058s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14059t cont
14060d
14061:cont
14062n
14063s/.\{148\}/&'"$ac_delim"'/g
14064t clear
14065:clear
14066s/\\$//
14067t bsnlc
14068s/["\\]/\\&/g; s/^/"/; s/$/"/p
14069d
14070:bsnlc
14071s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14072b cont
14073' <confdefs.h | sed '
14074s/'"$ac_delim"'/"\\\
14075"/g' >>$CONFIG_STATUS || ac_write_fail=1
14076
14077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14078  for (key in D) D_is_set[key] = 1
14079  FS = ""
14080}
14081/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14082  line = \$ 0
14083  split(line, arg, " ")
14084  if (arg[1] == "#") {
14085    defundef = arg[2]
14086    mac1 = arg[3]
14087  } else {
14088    defundef = substr(arg[1], 2)
14089    mac1 = arg[2]
14090  }
14091  split(mac1, mac2, "(") #)
14092  macro = mac2[1]
14093  prefix = substr(line, 1, index(line, defundef) - 1)
14094  if (D_is_set[macro]) {
14095    # Preserve the white space surrounding the "#".
14096    print prefix "define", macro P[macro] D[macro]
14097    next
14098  } else {
14099    # Replace #undef with comments.  This is necessary, for example,
14100    # in the case of _POSIX_SOURCE, which is predefined and required
14101    # on some systems where configure will not decide to define it.
14102    if (defundef == "undef") {
14103      print "/*", prefix defundef, macro, "*/"
14104      next
14105    }
14106  }
14107}
14108{ print }
14109_ACAWK
14110_ACEOF
14111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14112  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14113fi # test -n "$CONFIG_HEADERS"
14114
14115
14116eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14117shift
14118for ac_tag
14119do
14120  case $ac_tag in
14121  :[FHLC]) ac_mode=$ac_tag; continue;;
14122  esac
14123  case $ac_mode$ac_tag in
14124  :[FHL]*:*);;
14125  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14126  :[FH]-) ac_tag=-:-;;
14127  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14128  esac
14129  ac_save_IFS=$IFS
14130  IFS=:
14131  set x $ac_tag
14132  IFS=$ac_save_IFS
14133  shift
14134  ac_file=$1
14135  shift
14136
14137  case $ac_mode in
14138  :L) ac_source=$1;;
14139  :[FH])
14140    ac_file_inputs=
14141    for ac_f
14142    do
14143      case $ac_f in
14144      -) ac_f="$ac_tmp/stdin";;
14145      *) # Look for the file first in the build tree, then in the source tree
14146	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14147	 # because $ac_f cannot contain `:'.
14148	 test -f "$ac_f" ||
14149	   case $ac_f in
14150	   [\\/$]*) false;;
14151	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14152	   esac ||
14153	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14154      esac
14155      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14156      as_fn_append ac_file_inputs " '$ac_f'"
14157    done
14158
14159    # Let's still pretend it is `configure' which instantiates (i.e., don't
14160    # use $as_me), people would be surprised to read:
14161    #    /* config.h.  Generated by config.status.  */
14162    configure_input='Generated from '`
14163	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14164	`' by configure.'
14165    if test x"$ac_file" != x-; then
14166      configure_input="$ac_file.  $configure_input"
14167      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14168$as_echo "$as_me: creating $ac_file" >&6;}
14169    fi
14170    # Neutralize special characters interpreted by sed in replacement strings.
14171    case $configure_input in #(
14172    *\&* | *\|* | *\\* )
14173       ac_sed_conf_input=`$as_echo "$configure_input" |
14174       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14175    *) ac_sed_conf_input=$configure_input;;
14176    esac
14177
14178    case $ac_tag in
14179    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14180      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14181    esac
14182    ;;
14183  esac
14184
14185  ac_dir=`$as_dirname -- "$ac_file" ||
14186$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14187	 X"$ac_file" : 'X\(//\)[^/]' \| \
14188	 X"$ac_file" : 'X\(//\)$' \| \
14189	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14190$as_echo X"$ac_file" |
14191    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14192	    s//\1/
14193	    q
14194	  }
14195	  /^X\(\/\/\)[^/].*/{
14196	    s//\1/
14197	    q
14198	  }
14199	  /^X\(\/\/\)$/{
14200	    s//\1/
14201	    q
14202	  }
14203	  /^X\(\/\).*/{
14204	    s//\1/
14205	    q
14206	  }
14207	  s/.*/./; q'`
14208  as_dir="$ac_dir"; as_fn_mkdir_p
14209  ac_builddir=.
14210
14211case "$ac_dir" in
14212.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14213*)
14214  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14215  # A ".." for each directory in $ac_dir_suffix.
14216  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14217  case $ac_top_builddir_sub in
14218  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14219  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14220  esac ;;
14221esac
14222ac_abs_top_builddir=$ac_pwd
14223ac_abs_builddir=$ac_pwd$ac_dir_suffix
14224# for backward compatibility:
14225ac_top_builddir=$ac_top_build_prefix
14226
14227case $srcdir in
14228  .)  # We are building in place.
14229    ac_srcdir=.
14230    ac_top_srcdir=$ac_top_builddir_sub
14231    ac_abs_top_srcdir=$ac_pwd ;;
14232  [\\/]* | ?:[\\/]* )  # Absolute name.
14233    ac_srcdir=$srcdir$ac_dir_suffix;
14234    ac_top_srcdir=$srcdir
14235    ac_abs_top_srcdir=$srcdir ;;
14236  *) # Relative name.
14237    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14238    ac_top_srcdir=$ac_top_build_prefix$srcdir
14239    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14240esac
14241ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14242
14243
14244  case $ac_mode in
14245  :F)
14246  #
14247  # CONFIG_FILE
14248  #
14249
14250  case $INSTALL in
14251  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14252  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14253  esac
14254_ACEOF
14255
14256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14257# If the template does not know about datarootdir, expand it.
14258# FIXME: This hack should be removed a few years after 2.60.
14259ac_datarootdir_hack=; ac_datarootdir_seen=
14260ac_sed_dataroot='
14261/datarootdir/ {
14262  p
14263  q
14264}
14265/@datadir@/p
14266/@docdir@/p
14267/@infodir@/p
14268/@localedir@/p
14269/@mandir@/p'
14270case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14271*datarootdir*) ac_datarootdir_seen=yes;;
14272*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14273  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14274$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14275_ACEOF
14276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14277  ac_datarootdir_hack='
14278  s&@datadir@&$datadir&g
14279  s&@docdir@&$docdir&g
14280  s&@infodir@&$infodir&g
14281  s&@localedir@&$localedir&g
14282  s&@mandir@&$mandir&g
14283  s&\\\${datarootdir}&$datarootdir&g' ;;
14284esac
14285_ACEOF
14286
14287# Neutralize VPATH when `$srcdir' = `.'.
14288# Shell code in configure.ac might set extrasub.
14289# FIXME: do we really want to maintain this feature?
14290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14291ac_sed_extra="$ac_vpsub
14292$extrasub
14293_ACEOF
14294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14295:t
14296/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14297s|@configure_input@|$ac_sed_conf_input|;t t
14298s&@top_builddir@&$ac_top_builddir_sub&;t t
14299s&@top_build_prefix@&$ac_top_build_prefix&;t t
14300s&@srcdir@&$ac_srcdir&;t t
14301s&@abs_srcdir@&$ac_abs_srcdir&;t t
14302s&@top_srcdir@&$ac_top_srcdir&;t t
14303s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14304s&@builddir@&$ac_builddir&;t t
14305s&@abs_builddir@&$ac_abs_builddir&;t t
14306s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14307s&@INSTALL@&$ac_INSTALL&;t t
14308$ac_datarootdir_hack
14309"
14310eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14311  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14312
14313test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14314  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14315  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14316      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14317  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14318which seems to be undefined.  Please make sure it is defined" >&5
14319$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14320which seems to be undefined.  Please make sure it is defined" >&2;}
14321
14322  rm -f "$ac_tmp/stdin"
14323  case $ac_file in
14324  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14325  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14326  esac \
14327  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14328 ;;
14329  :H)
14330  #
14331  # CONFIG_HEADER
14332  #
14333  if test x"$ac_file" != x-; then
14334    {
14335      $as_echo "/* $configure_input  */" \
14336      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14337    } >"$ac_tmp/config.h" \
14338      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14339    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14340      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14341$as_echo "$as_me: $ac_file is unchanged" >&6;}
14342    else
14343      rm -f "$ac_file"
14344      mv "$ac_tmp/config.h" "$ac_file" \
14345	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14346    fi
14347  else
14348    $as_echo "/* $configure_input  */" \
14349      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14350      || as_fn_error $? "could not create -" "$LINENO" 5
14351  fi
14352 ;;
14353
14354  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14355$as_echo "$as_me: executing $ac_file commands" >&6;}
14356 ;;
14357  esac
14358
14359
14360  case $ac_file$ac_mode in
14361    "libtool":C)
14362
14363    # See if we are running on zsh, and set the options which allow our
14364    # commands through without removal of \ escapes.
14365    if test -n "${ZSH_VERSION+set}" ; then
14366      setopt NO_GLOB_SUBST
14367    fi
14368
14369    cfgfile="${ofile}T"
14370    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14371    $RM "$cfgfile"
14372
14373    cat <<_LT_EOF >> "$cfgfile"
14374#! $SHELL
14375
14376# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14377# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14378# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14379# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14380#
14381#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14382#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14383#                 Foundation, Inc.
14384#   Written by Gordon Matzigkeit, 1996
14385#
14386#   This file is part of GNU Libtool.
14387#
14388# GNU Libtool is free software; you can redistribute it and/or
14389# modify it under the terms of the GNU General Public License as
14390# published by the Free Software Foundation; either version 2 of
14391# the License, or (at your option) any later version.
14392#
14393# As a special exception to the GNU General Public License,
14394# if you distribute this file as part of a program or library that
14395# is built using GNU Libtool, you may include this file under the
14396# same distribution terms that you use for the rest of that program.
14397#
14398# GNU Libtool is distributed in the hope that it will be useful,
14399# but WITHOUT ANY WARRANTY; without even the implied warranty of
14400# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14401# GNU General Public License for more details.
14402#
14403# You should have received a copy of the GNU General Public License
14404# along with GNU Libtool; see the file COPYING.  If not, a copy
14405# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14406# obtained by writing to the Free Software Foundation, Inc.,
14407# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14408
14409
14410# The names of the tagged configurations supported by this script.
14411available_tags=""
14412
14413# ### BEGIN LIBTOOL CONFIG
14414
14415# Which release of libtool.m4 was used?
14416macro_version=$macro_version
14417macro_revision=$macro_revision
14418
14419# Assembler program.
14420AS=$lt_AS
14421
14422# DLL creation program.
14423DLLTOOL=$lt_DLLTOOL
14424
14425# Object dumper program.
14426OBJDUMP=$lt_OBJDUMP
14427
14428# Whether or not to build shared libraries.
14429build_libtool_libs=$enable_shared
14430
14431# Whether or not to build static libraries.
14432build_old_libs=$enable_static
14433
14434# What type of objects to build.
14435pic_mode=$pic_mode
14436
14437# Whether or not to optimize for fast installation.
14438fast_install=$enable_fast_install
14439
14440# Shell to use when invoking shell scripts.
14441SHELL=$lt_SHELL
14442
14443# An echo program that protects backslashes.
14444ECHO=$lt_ECHO
14445
14446# The PATH separator for the build system.
14447PATH_SEPARATOR=$lt_PATH_SEPARATOR
14448
14449# The host system.
14450host_alias=$host_alias
14451host=$host
14452host_os=$host_os
14453
14454# The build system.
14455build_alias=$build_alias
14456build=$build
14457build_os=$build_os
14458
14459# A sed program that does not truncate output.
14460SED=$lt_SED
14461
14462# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14463Xsed="\$SED -e 1s/^X//"
14464
14465# A grep program that handles long lines.
14466GREP=$lt_GREP
14467
14468# An ERE matcher.
14469EGREP=$lt_EGREP
14470
14471# A literal string matcher.
14472FGREP=$lt_FGREP
14473
14474# A BSD- or MS-compatible name lister.
14475NM=$lt_NM
14476
14477# Whether we need soft or hard links.
14478LN_S=$lt_LN_S
14479
14480# What is the maximum length of a command?
14481max_cmd_len=$max_cmd_len
14482
14483# Object file suffix (normally "o").
14484objext=$ac_objext
14485
14486# Executable file suffix (normally "").
14487exeext=$exeext
14488
14489# whether the shell understands "unset".
14490lt_unset=$lt_unset
14491
14492# turn spaces into newlines.
14493SP2NL=$lt_lt_SP2NL
14494
14495# turn newlines into spaces.
14496NL2SP=$lt_lt_NL2SP
14497
14498# convert \$build file names to \$host format.
14499to_host_file_cmd=$lt_cv_to_host_file_cmd
14500
14501# convert \$build files to toolchain format.
14502to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14503
14504# Method to check whether dependent libraries are shared objects.
14505deplibs_check_method=$lt_deplibs_check_method
14506
14507# Command to use when deplibs_check_method = "file_magic".
14508file_magic_cmd=$lt_file_magic_cmd
14509
14510# How to find potential files when deplibs_check_method = "file_magic".
14511file_magic_glob=$lt_file_magic_glob
14512
14513# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14514want_nocaseglob=$lt_want_nocaseglob
14515
14516# Command to associate shared and link libraries.
14517sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14518
14519# The archiver.
14520AR=$lt_AR
14521
14522# Flags to create an archive.
14523AR_FLAGS=$lt_AR_FLAGS
14524
14525# How to feed a file listing to the archiver.
14526archiver_list_spec=$lt_archiver_list_spec
14527
14528# A symbol stripping program.
14529STRIP=$lt_STRIP
14530
14531# Commands used to install an old-style archive.
14532RANLIB=$lt_RANLIB
14533old_postinstall_cmds=$lt_old_postinstall_cmds
14534old_postuninstall_cmds=$lt_old_postuninstall_cmds
14535
14536# Whether to use a lock for old archive extraction.
14537lock_old_archive_extraction=$lock_old_archive_extraction
14538
14539# A C compiler.
14540LTCC=$lt_CC
14541
14542# LTCC compiler flags.
14543LTCFLAGS=$lt_CFLAGS
14544
14545# Take the output of nm and produce a listing of raw symbols and C names.
14546global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14547
14548# Transform the output of nm in a proper C declaration.
14549global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14550
14551# Transform the output of nm in a C name address pair.
14552global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14553
14554# Transform the output of nm in a C name address pair when lib prefix is needed.
14555global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14556
14557# Specify filename containing input files for \$NM.
14558nm_file_list_spec=$lt_nm_file_list_spec
14559
14560# The root where to search for dependent libraries,and in which our libraries should be installed.
14561lt_sysroot=$lt_sysroot
14562
14563# The name of the directory that contains temporary libtool files.
14564objdir=$objdir
14565
14566# Used to examine libraries when file_magic_cmd begins with "file".
14567MAGIC_CMD=$MAGIC_CMD
14568
14569# Must we lock files when doing compilation?
14570need_locks=$lt_need_locks
14571
14572# Manifest tool.
14573MANIFEST_TOOL=$lt_MANIFEST_TOOL
14574
14575# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14576DSYMUTIL=$lt_DSYMUTIL
14577
14578# Tool to change global to local symbols on Mac OS X.
14579NMEDIT=$lt_NMEDIT
14580
14581# Tool to manipulate fat objects and archives on Mac OS X.
14582LIPO=$lt_LIPO
14583
14584# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14585OTOOL=$lt_OTOOL
14586
14587# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14588OTOOL64=$lt_OTOOL64
14589
14590# Old archive suffix (normally "a").
14591libext=$libext
14592
14593# Shared library suffix (normally ".so").
14594shrext_cmds=$lt_shrext_cmds
14595
14596# The commands to extract the exported symbol list from a shared archive.
14597extract_expsyms_cmds=$lt_extract_expsyms_cmds
14598
14599# Variables whose values should be saved in libtool wrapper scripts and
14600# restored at link time.
14601variables_saved_for_relink=$lt_variables_saved_for_relink
14602
14603# Do we need the "lib" prefix for modules?
14604need_lib_prefix=$need_lib_prefix
14605
14606# Do we need a version for libraries?
14607need_version=$need_version
14608
14609# Library versioning type.
14610version_type=$version_type
14611
14612# Shared library runtime path variable.
14613runpath_var=$runpath_var
14614
14615# Shared library path variable.
14616shlibpath_var=$shlibpath_var
14617
14618# Is shlibpath searched before the hard-coded library search path?
14619shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14620
14621# Format of library name prefix.
14622libname_spec=$lt_libname_spec
14623
14624# List of archive names.  First name is the real one, the rest are links.
14625# The last name is the one that the linker finds with -lNAME
14626library_names_spec=$lt_library_names_spec
14627
14628# The coded name of the library, if different from the real name.
14629soname_spec=$lt_soname_spec
14630
14631# Permission mode override for installation of shared libraries.
14632install_override_mode=$lt_install_override_mode
14633
14634# Command to use after installation of a shared archive.
14635postinstall_cmds=$lt_postinstall_cmds
14636
14637# Command to use after uninstallation of a shared archive.
14638postuninstall_cmds=$lt_postuninstall_cmds
14639
14640# Commands used to finish a libtool library installation in a directory.
14641finish_cmds=$lt_finish_cmds
14642
14643# As "finish_cmds", except a single script fragment to be evaled but
14644# not shown.
14645finish_eval=$lt_finish_eval
14646
14647# Whether we should hardcode library paths into libraries.
14648hardcode_into_libs=$hardcode_into_libs
14649
14650# Compile-time system search path for libraries.
14651sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14652
14653# Run-time system search path for libraries.
14654sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14655
14656# Whether dlopen is supported.
14657dlopen_support=$enable_dlopen
14658
14659# Whether dlopen of programs is supported.
14660dlopen_self=$enable_dlopen_self
14661
14662# Whether dlopen of statically linked programs is supported.
14663dlopen_self_static=$enable_dlopen_self_static
14664
14665# Commands to strip libraries.
14666old_striplib=$lt_old_striplib
14667striplib=$lt_striplib
14668
14669
14670# The linker used to build libraries.
14671LD=$lt_LD
14672
14673# How to create reloadable object files.
14674reload_flag=$lt_reload_flag
14675reload_cmds=$lt_reload_cmds
14676
14677# Commands used to build an old-style archive.
14678old_archive_cmds=$lt_old_archive_cmds
14679
14680# A language specific compiler.
14681CC=$lt_compiler
14682
14683# Is the compiler the GNU compiler?
14684with_gcc=$GCC
14685
14686# Compiler flag to turn off builtin functions.
14687no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14688
14689# Additional compiler flags for building library objects.
14690pic_flag=$lt_lt_prog_compiler_pic
14691
14692# How to pass a linker flag through the compiler.
14693wl=$lt_lt_prog_compiler_wl
14694
14695# Compiler flag to prevent dynamic linking.
14696link_static_flag=$lt_lt_prog_compiler_static
14697
14698# Does compiler simultaneously support -c and -o options?
14699compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14700
14701# Whether or not to add -lc for building shared libraries.
14702build_libtool_need_lc=$archive_cmds_need_lc
14703
14704# Whether or not to disallow shared libs when runtime libs are static.
14705allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14706
14707# Compiler flag to allow reflexive dlopens.
14708export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14709
14710# Compiler flag to generate shared objects directly from archives.
14711whole_archive_flag_spec=$lt_whole_archive_flag_spec
14712
14713# Whether the compiler copes with passing no objects directly.
14714compiler_needs_object=$lt_compiler_needs_object
14715
14716# Create an old-style archive from a shared archive.
14717old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14718
14719# Create a temporary old-style archive to link instead of a shared archive.
14720old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14721
14722# Commands used to build a shared archive.
14723archive_cmds=$lt_archive_cmds
14724archive_expsym_cmds=$lt_archive_expsym_cmds
14725
14726# Commands used to build a loadable module if different from building
14727# a shared archive.
14728module_cmds=$lt_module_cmds
14729module_expsym_cmds=$lt_module_expsym_cmds
14730
14731# Whether we are building with GNU ld or not.
14732with_gnu_ld=$lt_with_gnu_ld
14733
14734# Flag that allows shared libraries with undefined symbols to be built.
14735allow_undefined_flag=$lt_allow_undefined_flag
14736
14737# Flag that enforces no undefined symbols.
14738no_undefined_flag=$lt_no_undefined_flag
14739
14740# Flag to hardcode \$libdir into a binary during linking.
14741# This must work even if \$libdir does not exist
14742hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14743
14744# Whether we need a single "-rpath" flag with a separated argument.
14745hardcode_libdir_separator=$lt_hardcode_libdir_separator
14746
14747# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14748# DIR into the resulting binary.
14749hardcode_direct=$hardcode_direct
14750
14751# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14752# DIR into the resulting binary and the resulting library dependency is
14753# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14754# library is relocated.
14755hardcode_direct_absolute=$hardcode_direct_absolute
14756
14757# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14758# into the resulting binary.
14759hardcode_minus_L=$hardcode_minus_L
14760
14761# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14762# into the resulting binary.
14763hardcode_shlibpath_var=$hardcode_shlibpath_var
14764
14765# Set to "yes" if building a shared library automatically hardcodes DIR
14766# into the library and all subsequent libraries and executables linked
14767# against it.
14768hardcode_automatic=$hardcode_automatic
14769
14770# Set to yes if linker adds runtime paths of dependent libraries
14771# to runtime path list.
14772inherit_rpath=$inherit_rpath
14773
14774# Whether libtool must link a program against all its dependency libraries.
14775link_all_deplibs=$link_all_deplibs
14776
14777# Set to "yes" if exported symbols are required.
14778always_export_symbols=$always_export_symbols
14779
14780# The commands to list exported symbols.
14781export_symbols_cmds=$lt_export_symbols_cmds
14782
14783# Symbols that should not be listed in the preloaded symbols.
14784exclude_expsyms=$lt_exclude_expsyms
14785
14786# Symbols that must always be exported.
14787include_expsyms=$lt_include_expsyms
14788
14789# Commands necessary for linking programs (against libraries) with templates.
14790prelink_cmds=$lt_prelink_cmds
14791
14792# Commands necessary for finishing linking programs.
14793postlink_cmds=$lt_postlink_cmds
14794
14795# Specify filename containing input files.
14796file_list_spec=$lt_file_list_spec
14797
14798# How to hardcode a shared library path into an executable.
14799hardcode_action=$hardcode_action
14800
14801# ### END LIBTOOL CONFIG
14802
14803_LT_EOF
14804
14805  case $host_os in
14806  aix3*)
14807    cat <<\_LT_EOF >> "$cfgfile"
14808# AIX sometimes has problems with the GCC collect2 program.  For some
14809# reason, if we set the COLLECT_NAMES environment variable, the problems
14810# vanish in a puff of smoke.
14811if test "X${COLLECT_NAMES+set}" != Xset; then
14812  COLLECT_NAMES=
14813  export COLLECT_NAMES
14814fi
14815_LT_EOF
14816    ;;
14817  esac
14818
14819
14820ltmain="$ac_aux_dir/ltmain.sh"
14821
14822
14823  # We use sed instead of cat because bash on DJGPP gets confused if
14824  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14825  # text mode, it properly converts lines to CR/LF.  This bash problem
14826  # is reportedly fixed, but why not run on old versions too?
14827  sed '$q' "$ltmain" >> "$cfgfile" \
14828     || (rm -f "$cfgfile"; exit 1)
14829
14830  if test x"$xsi_shell" = xyes; then
14831  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14832func_dirname ()\
14833{\
14834\    case ${1} in\
14835\      */*) func_dirname_result="${1%/*}${2}" ;;\
14836\      *  ) func_dirname_result="${3}" ;;\
14837\    esac\
14838} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14839  && mv -f "$cfgfile.tmp" "$cfgfile" \
14840    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14841test 0 -eq $? || _lt_function_replace_fail=:
14842
14843
14844  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14845func_basename ()\
14846{\
14847\    func_basename_result="${1##*/}"\
14848} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14849  && mv -f "$cfgfile.tmp" "$cfgfile" \
14850    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14851test 0 -eq $? || _lt_function_replace_fail=:
14852
14853
14854  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14855func_dirname_and_basename ()\
14856{\
14857\    case ${1} in\
14858\      */*) func_dirname_result="${1%/*}${2}" ;;\
14859\      *  ) func_dirname_result="${3}" ;;\
14860\    esac\
14861\    func_basename_result="${1##*/}"\
14862} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14863  && mv -f "$cfgfile.tmp" "$cfgfile" \
14864    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14865test 0 -eq $? || _lt_function_replace_fail=:
14866
14867
14868  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14869func_stripname ()\
14870{\
14871\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14872\    # positional parameters, so assign one to ordinary parameter first.\
14873\    func_stripname_result=${3}\
14874\    func_stripname_result=${func_stripname_result#"${1}"}\
14875\    func_stripname_result=${func_stripname_result%"${2}"}\
14876} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14877  && mv -f "$cfgfile.tmp" "$cfgfile" \
14878    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14879test 0 -eq $? || _lt_function_replace_fail=:
14880
14881
14882  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14883func_split_long_opt ()\
14884{\
14885\    func_split_long_opt_name=${1%%=*}\
14886\    func_split_long_opt_arg=${1#*=}\
14887} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14888  && mv -f "$cfgfile.tmp" "$cfgfile" \
14889    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14890test 0 -eq $? || _lt_function_replace_fail=:
14891
14892
14893  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14894func_split_short_opt ()\
14895{\
14896\    func_split_short_opt_arg=${1#??}\
14897\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14898} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14899  && mv -f "$cfgfile.tmp" "$cfgfile" \
14900    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14901test 0 -eq $? || _lt_function_replace_fail=:
14902
14903
14904  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14905func_lo2o ()\
14906{\
14907\    case ${1} in\
14908\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14909\      *)    func_lo2o_result=${1} ;;\
14910\    esac\
14911} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14912  && mv -f "$cfgfile.tmp" "$cfgfile" \
14913    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14914test 0 -eq $? || _lt_function_replace_fail=:
14915
14916
14917  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14918func_xform ()\
14919{\
14920    func_xform_result=${1%.*}.lo\
14921} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14922  && mv -f "$cfgfile.tmp" "$cfgfile" \
14923    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14924test 0 -eq $? || _lt_function_replace_fail=:
14925
14926
14927  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14928func_arith ()\
14929{\
14930    func_arith_result=$(( $* ))\
14931} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14932  && mv -f "$cfgfile.tmp" "$cfgfile" \
14933    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14934test 0 -eq $? || _lt_function_replace_fail=:
14935
14936
14937  sed -e '/^func_len ()$/,/^} # func_len /c\
14938func_len ()\
14939{\
14940    func_len_result=${#1}\
14941} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14942  && mv -f "$cfgfile.tmp" "$cfgfile" \
14943    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14944test 0 -eq $? || _lt_function_replace_fail=:
14945
14946fi
14947
14948if test x"$lt_shell_append" = xyes; then
14949  sed -e '/^func_append ()$/,/^} # func_append /c\
14950func_append ()\
14951{\
14952    eval "${1}+=\\${2}"\
14953} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14954  && mv -f "$cfgfile.tmp" "$cfgfile" \
14955    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14956test 0 -eq $? || _lt_function_replace_fail=:
14957
14958
14959  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14960func_append_quoted ()\
14961{\
14962\    func_quote_for_eval "${2}"\
14963\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14964} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14965  && mv -f "$cfgfile.tmp" "$cfgfile" \
14966    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14967test 0 -eq $? || _lt_function_replace_fail=:
14968
14969
14970  # Save a `func_append' function call where possible by direct use of '+='
14971  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14972    && mv -f "$cfgfile.tmp" "$cfgfile" \
14973      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14974  test 0 -eq $? || _lt_function_replace_fail=:
14975else
14976  # Save a `func_append' function call even when '+=' is not available
14977  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14978    && mv -f "$cfgfile.tmp" "$cfgfile" \
14979      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14980  test 0 -eq $? || _lt_function_replace_fail=:
14981fi
14982
14983if test x"$_lt_function_replace_fail" = x":"; then
14984  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14985$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14986fi
14987
14988
14989   mv -f "$cfgfile" "$ofile" ||
14990    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14991  chmod +x "$ofile"
14992
14993 ;;
14994    "ftconfig.h":H) mv ftconfig.h ftconfig.tmp
14995   sed 's|/undef|#undef|' < ftconfig.tmp > ftconfig.h
14996   rm ftconfig.tmp ;;
14997
14998  esac
14999done # for ac_tag
15000
15001
15002as_fn_exit 0
15003_ACEOF
15004ac_clean_files=$ac_clean_files_save
15005
15006test $ac_write_fail = 0 ||
15007  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15008
15009
15010# configure is writing to config.log, and then calls config.status.
15011# config.status does its own redirection, appending to config.log.
15012# Unfortunately, on DOS this fails, as config.log is still kept open
15013# by configure, so config.status won't be able to write to it; its
15014# output is simply discarded.  So we exec the FD to /dev/null,
15015# effectively closing config.log, so it can be properly (re)opened and
15016# appended to by config.status.  When coming back to configure, we
15017# need to make the FD available again.
15018if test "$no_create" != yes; then
15019  ac_cs_success=:
15020  ac_config_status_args=
15021  test "$silent" = yes &&
15022    ac_config_status_args="$ac_config_status_args --quiet"
15023  exec 5>/dev/null
15024  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15025  exec 5>>config.log
15026  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15027  # would make configure fail if this is the last instruction.
15028  $ac_cs_success || as_fn_exit 1
15029fi
15030if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15031  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15032$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15033fi
15034
15035
15036# end of configure.raw
15037