configure revision 249c3046
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXt 1.0.9.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='libXt'
573PACKAGE_TARNAME='libXt'
574PACKAGE_VERSION='1.0.9'
575PACKAGE_STRING='libXt 1.0.9'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618LIBOBJS
619XTMALLOC_ZERO_CFLAGS
620XMALLOC_ZERO_CFLAGS
621MALLOC_ZERO_CFLAGS
622STRINGSABIOPTIONS
623appdefaultdir
624XFILESEARCHPATHDEFAULT
625XT_LIBS
626XT_CFLAGS
627LDFLAGS_FOR_BUILD
628CFLAGS_FOR_BUILD
629CC_FOR_BUILD
630OTOOL64
631OTOOL
632LIPO
633NMEDIT
634DSYMUTIL
635RANLIB
636AR
637OBJDUMP
638LN_S
639NM
640ac_ct_DUMPBIN
641DUMPBIN
642LD
643FGREP
644LIBTOOL
645AM_BACKSLASH
646AM_DEFAULT_VERBOSITY
647MAN_SUBSTS
648XORG_MAN_PAGE
649ADMIN_MAN_DIR
650DRIVER_MAN_DIR
651MISC_MAN_DIR
652FILE_MAN_DIR
653LIB_MAN_DIR
654APP_MAN_DIR
655ADMIN_MAN_SUFFIX
656DRIVER_MAN_SUFFIX
657MISC_MAN_SUFFIX
658FILE_MAN_SUFFIX
659LIB_MAN_SUFFIX
660APP_MAN_SUFFIX
661SED
662host_os
663host_vendor
664host_cpu
665host
666build_os
667build_vendor
668build_cpu
669build
670INSTALL_CMD
671PKG_CONFIG
672CHANGELOG_CMD
673CWARNFLAGS
674EGREP
675GREP
676CPP
677am__fastdepCC_FALSE
678am__fastdepCC_TRUE
679CCDEPMODE
680AMDEPBACKSLASH
681AMDEP_FALSE
682AMDEP_TRUE
683am__quote
684am__include
685DEPDIR
686OBJEXT
687EXEEXT
688ac_ct_CC
689CPPFLAGS
690LDFLAGS
691CFLAGS
692CC
693MAINT
694MAINTAINER_MODE_FALSE
695MAINTAINER_MODE_TRUE
696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
749PACKAGE_URL
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
757ac_subst_files=''
758ac_user_opts='
759enable_option_checking
760enable_maintainer_mode
761enable_dependency_tracking
762enable_strict_compilation
763enable_silent_rules
764enable_shared
765enable_static
766with_pic
767enable_fast_install
768with_gnu_ld
769enable_libtool_lock
770enable_xkb
771with_xfile_search_path
772with_appdefaultdir
773enable_malloc0returnsnull
774'
775      ac_precious_vars='build_alias
776host_alias
777target_alias
778CC
779CFLAGS
780LDFLAGS
781LIBS
782CPPFLAGS
783CPP
784PKG_CONFIG
785XT_CFLAGS
786XT_LIBS'
787
788
789# Initialize some variables set by options.
790ac_init_help=
791ac_init_version=false
792ac_unrecognized_opts=
793ac_unrecognized_sep=
794# The variables have the same names as the options, with
795# dashes changed to underlines.
796cache_file=/dev/null
797exec_prefix=NONE
798no_create=
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
807verbose=
808x_includes=NONE
809x_libraries=NONE
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
816# (The list follows the same order as the GNU Coding Standards.)
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841  # If the previous option needs an argument, assign it.
842  if test -n "$ac_prev"; then
843    eval $ac_prev=\$ac_option
844    ac_prev=
845    continue
846  fi
847
848  case $ac_option in
849  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850  *=)   ac_optarg= ;;
851  *)    ac_optarg=yes ;;
852  esac
853
854  # Accept the important Cygnus configure options, so we can diagnose typos.
855
856  case $ac_dashdash$ac_option in
857  --)
858    ac_dashdash=yes ;;
859
860  -bindir | --bindir | --bindi | --bind | --bin | --bi)
861    ac_prev=bindir ;;
862  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863    bindir=$ac_optarg ;;
864
865  -build | --build | --buil | --bui | --bu)
866    ac_prev=build_alias ;;
867  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868    build_alias=$ac_optarg ;;
869
870  -cache-file | --cache-file | --cache-fil | --cache-fi \
871  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872    ac_prev=cache_file ;;
873  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875    cache_file=$ac_optarg ;;
876
877  --config-cache | -C)
878    cache_file=config.cache ;;
879
880  -datadir | --datadir | --datadi | --datad)
881    ac_prev=datadir ;;
882  -datadir=* | --datadir=* | --datadi=* | --datad=*)
883    datadir=$ac_optarg ;;
884
885  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886  | --dataroo | --dataro | --datar)
887    ac_prev=datarootdir ;;
888  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890    datarootdir=$ac_optarg ;;
891
892  -disable-* | --disable-*)
893    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894    # Reject names that are not valid shell variable names.
895    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896      as_fn_error $? "invalid feature name: $ac_useropt"
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=no ;;
907
908  -docdir | --docdir | --docdi | --doc | --do)
909    ac_prev=docdir ;;
910  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911    docdir=$ac_optarg ;;
912
913  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914    ac_prev=dvidir ;;
915  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916    dvidir=$ac_optarg ;;
917
918  -enable-* | --enable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=\$ac_optarg ;;
933
934  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936  | --exec | --exe | --ex)
937    ac_prev=exec_prefix ;;
938  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940  | --exec=* | --exe=* | --ex=*)
941    exec_prefix=$ac_optarg ;;
942
943  -gas | --gas | --ga | --g)
944    # Obsolete; use --with-gas.
945    with_gas=yes ;;
946
947  -help | --help | --hel | --he | -h)
948    ac_init_help=long ;;
949  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950    ac_init_help=recursive ;;
951  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952    ac_init_help=short ;;
953
954  -host | --host | --hos | --ho)
955    ac_prev=host_alias ;;
956  -host=* | --host=* | --hos=* | --ho=*)
957    host_alias=$ac_optarg ;;
958
959  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960    ac_prev=htmldir ;;
961  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962  | --ht=*)
963    htmldir=$ac_optarg ;;
964
965  -includedir | --includedir | --includedi | --included | --include \
966  | --includ | --inclu | --incl | --inc)
967    ac_prev=includedir ;;
968  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969  | --includ=* | --inclu=* | --incl=* | --inc=*)
970    includedir=$ac_optarg ;;
971
972  -infodir | --infodir | --infodi | --infod | --info | --inf)
973    ac_prev=infodir ;;
974  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975    infodir=$ac_optarg ;;
976
977  -libdir | --libdir | --libdi | --libd)
978    ac_prev=libdir ;;
979  -libdir=* | --libdir=* | --libdi=* | --libd=*)
980    libdir=$ac_optarg ;;
981
982  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983  | --libexe | --libex | --libe)
984    ac_prev=libexecdir ;;
985  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986  | --libexe=* | --libex=* | --libe=*)
987    libexecdir=$ac_optarg ;;
988
989  -localedir | --localedir | --localedi | --localed | --locale)
990    ac_prev=localedir ;;
991  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992    localedir=$ac_optarg ;;
993
994  -localstatedir | --localstatedir | --localstatedi | --localstated \
995  | --localstate | --localstat | --localsta | --localst | --locals)
996    ac_prev=localstatedir ;;
997  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999    localstatedir=$ac_optarg ;;
1000
1001  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002    ac_prev=mandir ;;
1003  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004    mandir=$ac_optarg ;;
1005
1006  -nfp | --nfp | --nf)
1007    # Obsolete; use --without-fp.
1008    with_fp=no ;;
1009
1010  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011  | --no-cr | --no-c | -n)
1012    no_create=yes ;;
1013
1014  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016    no_recursion=yes ;;
1017
1018  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020  | --oldin | --oldi | --old | --ol | --o)
1021    ac_prev=oldincludedir ;;
1022  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025    oldincludedir=$ac_optarg ;;
1026
1027  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028    ac_prev=prefix ;;
1029  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030    prefix=$ac_optarg ;;
1031
1032  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033  | --program-pre | --program-pr | --program-p)
1034    ac_prev=program_prefix ;;
1035  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037    program_prefix=$ac_optarg ;;
1038
1039  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040  | --program-suf | --program-su | --program-s)
1041    ac_prev=program_suffix ;;
1042  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044    program_suffix=$ac_optarg ;;
1045
1046  -program-transform-name | --program-transform-name \
1047  | --program-transform-nam | --program-transform-na \
1048  | --program-transform-n | --program-transform- \
1049  | --program-transform | --program-transfor \
1050  | --program-transfo | --program-transf \
1051  | --program-trans | --program-tran \
1052  | --progr-tra | --program-tr | --program-t)
1053    ac_prev=program_transform_name ;;
1054  -program-transform-name=* | --program-transform-name=* \
1055  | --program-transform-nam=* | --program-transform-na=* \
1056  | --program-transform-n=* | --program-transform-=* \
1057  | --program-transform=* | --program-transfor=* \
1058  | --program-transfo=* | --program-transf=* \
1059  | --program-trans=* | --program-tran=* \
1060  | --progr-tra=* | --program-tr=* | --program-t=*)
1061    program_transform_name=$ac_optarg ;;
1062
1063  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064    ac_prev=pdfdir ;;
1065  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066    pdfdir=$ac_optarg ;;
1067
1068  -psdir | --psdir | --psdi | --psd | --ps)
1069    ac_prev=psdir ;;
1070  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071    psdir=$ac_optarg ;;
1072
1073  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074  | -silent | --silent | --silen | --sile | --sil)
1075    silent=yes ;;
1076
1077  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078    ac_prev=sbindir ;;
1079  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080  | --sbi=* | --sb=*)
1081    sbindir=$ac_optarg ;;
1082
1083  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085  | --sharedst | --shareds | --shared | --share | --shar \
1086  | --sha | --sh)
1087    ac_prev=sharedstatedir ;;
1088  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091  | --sha=* | --sh=*)
1092    sharedstatedir=$ac_optarg ;;
1093
1094  -site | --site | --sit)
1095    ac_prev=site ;;
1096  -site=* | --site=* | --sit=*)
1097    site=$ac_optarg ;;
1098
1099  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100    ac_prev=srcdir ;;
1101  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102    srcdir=$ac_optarg ;;
1103
1104  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105  | --syscon | --sysco | --sysc | --sys | --sy)
1106    ac_prev=sysconfdir ;;
1107  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109    sysconfdir=$ac_optarg ;;
1110
1111  -target | --target | --targe | --targ | --tar | --ta | --t)
1112    ac_prev=target_alias ;;
1113  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114    target_alias=$ac_optarg ;;
1115
1116  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117    verbose=yes ;;
1118
1119  -version | --version | --versio | --versi | --vers | -V)
1120    ac_init_version=: ;;
1121
1122  -with-* | --with-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124    # Reject names that are not valid shell variable names.
1125    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126      as_fn_error $? "invalid package name: $ac_useropt"
1127    ac_useropt_orig=$ac_useropt
1128    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129    case $ac_user_opts in
1130      *"
1131"with_$ac_useropt"
1132"*) ;;
1133      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval with_$ac_useropt=\$ac_optarg ;;
1137
1138  -without-* | --without-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=no ;;
1153
1154  --x)
1155    # Obsolete; use --with-x.
1156    with_x=yes ;;
1157
1158  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159  | --x-incl | --x-inc | --x-in | --x-i)
1160    ac_prev=x_includes ;;
1161  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163    x_includes=$ac_optarg ;;
1164
1165  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167    ac_prev=x_libraries ;;
1168  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170    x_libraries=$ac_optarg ;;
1171
1172  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information"
1174    ;;
1175
1176  *=*)
1177    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178    # Reject names that are not valid shell variable names.
1179    case $ac_envvar in #(
1180      '' | [0-9]* | *[!_$as_cr_alnum]* )
1181      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182    esac
1183    eval $ac_envvar=\$ac_optarg
1184    export $ac_envvar ;;
1185
1186  *)
1187    # FIXME: should be removed in autoconf 3.0.
1188    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192    ;;
1193
1194  esac
1195done
1196
1197if test -n "$ac_prev"; then
1198  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199  as_fn_error $? "missing argument to $ac_option"
1200fi
1201
1202if test -n "$ac_unrecognized_opts"; then
1203  case $enable_option_checking in
1204    no) ;;
1205    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207  esac
1208fi
1209
1210# Check all directory arguments for consistency.
1211for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212		datadir sysconfdir sharedstatedir localstatedir includedir \
1213		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214		libdir localedir mandir
1215do
1216  eval ac_val=\$$ac_var
1217  # Remove trailing slashes.
1218  case $ac_val in
1219    */ )
1220      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221      eval $ac_var=\$ac_val;;
1222  esac
1223  # Be sure to have absolute directory names.
1224  case $ac_val in
1225    [\\/$]* | ?:[\\/]* )  continue;;
1226    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227  esac
1228  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229done
1230
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240  if test "x$build_alias" = x; then
1241    cross_compiling=maybe
1242    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1243    If a cross compiler is detected then cross compile mode will be used" >&2
1244  elif test "x$build_alias" != "x$host_alias"; then
1245    cross_compiling=yes
1246  fi
1247fi
1248
1249ac_tool_prefix=
1250test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252test "$silent" = yes && exec 6>/dev/null
1253
1254
1255ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256ac_ls_di=`ls -di .` &&
1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258  as_fn_error $? "working directory cannot be determined"
1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260  as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265  ac_srcdir_defaulted=yes
1266  # Try the directory containing this script, then the parent directory.
1267  ac_confdir=`$as_dirname -- "$as_myself" ||
1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269	 X"$as_myself" : 'X\(//\)[^/]' \| \
1270	 X"$as_myself" : 'X\(//\)$' \| \
1271	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272$as_echo X"$as_myself" |
1273    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274	    s//\1/
1275	    q
1276	  }
1277	  /^X\(\/\/\)[^/].*/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\/\)$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\).*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  s/.*/./; q'`
1290  srcdir=$ac_confdir
1291  if test ! -r "$srcdir/$ac_unique_file"; then
1292    srcdir=..
1293  fi
1294else
1295  ac_srcdir_defaulted=no
1296fi
1297if test ! -r "$srcdir/$ac_unique_file"; then
1298  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300fi
1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302ac_abs_confdir=`(
1303	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304	pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307  srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317  eval ac_env_${ac_var}_value=\$${ac_var}
1318  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
1321
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326  # Omit some internal or obsolete options to make the list less imposing.
1327  # This message is too long to be a string in the A/UX 3.1 sh.
1328  cat <<_ACEOF
1329\`configure' configures libXt 1.0.9 to adapt to many kinds of systems.
1330
1331Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336Defaults for the options are specified in brackets.
1337
1338Configuration:
1339  -h, --help              display this help and exit
1340      --help=short        display options specific to this package
1341      --help=recursive    display the short help of all the included packages
1342  -V, --version           display version information and exit
1343  -q, --quiet, --silent   do not print \`checking ...' messages
1344      --cache-file=FILE   cache test results in FILE [disabled]
1345  -C, --config-cache      alias for \`--cache-file=config.cache'
1346  -n, --no-create         do not create output files
1347      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349Installation directories:
1350  --prefix=PREFIX         install architecture-independent files in PREFIX
1351                          [$ac_default_prefix]
1352  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353                          [PREFIX]
1354
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
1359
1360For better control, use the options below.
1361
1362Fine tuning of the installation directories:
1363  --bindir=DIR            user executables [EPREFIX/bin]
1364  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1365  --libexecdir=DIR        program executables [EPREFIX/libexec]
1366  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1367  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1368  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1369  --libdir=DIR            object code libraries [EPREFIX/lib]
1370  --includedir=DIR        C header files [PREFIX/include]
1371  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1372  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1373  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1374  --infodir=DIR           info documentation [DATAROOTDIR/info]
1375  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1376  --mandir=DIR            man documentation [DATAROOTDIR/man]
1377  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXt]
1378  --htmldir=DIR           html documentation [DOCDIR]
1379  --dvidir=DIR            dvi documentation [DOCDIR]
1380  --pdfdir=DIR            pdf documentation [DOCDIR]
1381  --psdir=DIR             ps documentation [DOCDIR]
1382_ACEOF
1383
1384  cat <<\_ACEOF
1385
1386Program names:
1387  --program-prefix=PREFIX            prepend PREFIX to installed program names
1388  --program-suffix=SUFFIX            append SUFFIX to installed program names
1389  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1390
1391System types:
1392  --build=BUILD     configure for building on BUILD [guessed]
1393  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394_ACEOF
1395fi
1396
1397if test -n "$ac_init_help"; then
1398  case $ac_init_help in
1399     short | recursive ) echo "Configuration of libXt 1.0.9:";;
1400   esac
1401  cat <<\_ACEOF
1402
1403Optional Features:
1404  --disable-option-checking  ignore unrecognized --enable/--with options
1405  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407  --enable-maintainer-mode  enable make rules and dependencies not useful
1408			  (and sometimes confusing) to the casual installer
1409  --disable-dependency-tracking  speeds up one-time build
1410  --enable-dependency-tracking   do not reject slow dependency extractors
1411  --enable-strict-compilation
1412                          Enable all warnings from compiler and make them
1413                          errors (default: disabled)
1414  --enable-silent-rules          less verbose build output (undo: `make V=1')
1415  --disable-silent-rules         verbose build output (undo: `make V=0')
1416  --enable-shared[=PKGS]  build shared libraries [default=yes]
1417  --enable-static[=PKGS]  build static libraries [default=yes]
1418  --enable-fast-install[=PKGS]
1419                          optimize for fast installation [default=yes]
1420  --disable-libtool-lock  avoid locking (might break parallel builds)
1421  --disable-xkb           Disable XKB support
1422  --enable-malloc0returnsnull
1423                          malloc(0) returns NULL (default: auto)
1424
1425Optional Packages:
1426  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1427  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1428  --with-pic              try to use only PIC/non-PIC objects [default=use
1429                          both]
1430  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1431  --with-xfile-search-path=<path>
1432                          Set path to search for app-defaults and other files
1433  --with-appdefaultdir=<path>
1434                          Set app-default directory (default:
1435                          ${datadir}/X11/app-defaults)
1436
1437Some influential environment variables:
1438  CC          C compiler command
1439  CFLAGS      C compiler flags
1440  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441              nonstandard directory <lib dir>
1442  LIBS        libraries to pass to the linker, e.g. -l<library>
1443  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444              you have headers in a nonstandard directory <include dir>
1445  CPP         C preprocessor
1446  PKG_CONFIG  path to pkg-config utility
1447  XT_CFLAGS   C compiler flags for XT, overriding pkg-config
1448  XT_LIBS     linker flags for XT, overriding pkg-config
1449
1450Use these variables to override the choices made by `configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
1453Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1454_ACEOF
1455ac_status=$?
1456fi
1457
1458if test "$ac_init_help" = "recursive"; then
1459  # If there are subdirs, report their specific --help.
1460  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461    test -d "$ac_dir" ||
1462      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463      continue
1464    ac_builddir=.
1465
1466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
1469  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470  # A ".." for each directory in $ac_dir_suffix.
1471  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472  case $ac_top_builddir_sub in
1473  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475  esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
1481
1482case $srcdir in
1483  .)  # We are building in place.
1484    ac_srcdir=.
1485    ac_top_srcdir=$ac_top_builddir_sub
1486    ac_abs_top_srcdir=$ac_pwd ;;
1487  [\\/]* | ?:[\\/]* )  # Absolute name.
1488    ac_srcdir=$srcdir$ac_dir_suffix;
1489    ac_top_srcdir=$srcdir
1490    ac_abs_top_srcdir=$srcdir ;;
1491  *) # Relative name.
1492    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493    ac_top_srcdir=$ac_top_build_prefix$srcdir
1494    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495esac
1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498    cd "$ac_dir" || { ac_status=$?; continue; }
1499    # Check for guested configure.
1500    if test -f "$ac_srcdir/configure.gnu"; then
1501      echo &&
1502      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503    elif test -f "$ac_srcdir/configure"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure" --help=recursive
1506    else
1507      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508    fi || ac_status=$?
1509    cd "$ac_pwd" || { ac_status=$?; break; }
1510  done
1511fi
1512
1513test -n "$ac_init_help" && exit $ac_status
1514if $ac_init_version; then
1515  cat <<\_ACEOF
1516libXt configure 1.0.9
1517generated by GNU Autoconf 2.68
1518
1519Copyright (C) 2010 Free Software Foundation, Inc.
1520This configure script is free software; the Free Software Foundation
1521gives unlimited permission to copy, distribute and modify it.
1522_ACEOF
1523  exit
1524fi
1525
1526## ------------------------ ##
1527## Autoconf initialization. ##
1528## ------------------------ ##
1529
1530# ac_fn_c_try_compile LINENO
1531# --------------------------
1532# Try to compile conftest.$ac_ext, and return whether this succeeded.
1533ac_fn_c_try_compile ()
1534{
1535  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536  rm -f conftest.$ac_objext
1537  if { { ac_try="$ac_compile"
1538case "(($ac_try" in
1539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540  *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544  (eval "$ac_compile") 2>conftest.err
1545  ac_status=$?
1546  if test -s conftest.err; then
1547    grep -v '^ *+' conftest.err >conftest.er1
1548    cat conftest.er1 >&5
1549    mv -f conftest.er1 conftest.err
1550  fi
1551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552  test $ac_status = 0; } && {
1553	 test -z "$ac_c_werror_flag" ||
1554	 test ! -s conftest.err
1555       } && test -s conftest.$ac_objext; then :
1556  ac_retval=0
1557else
1558  $as_echo "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
1560
1561	ac_retval=1
1562fi
1563  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564  as_fn_set_status $ac_retval
1565
1566} # ac_fn_c_try_compile
1567
1568# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1569# ---------------------------------------------
1570# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1571# accordingly.
1572ac_fn_c_check_decl ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  as_decl_name=`echo $2|sed 's/ *(.*//'`
1576  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1578$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1579if eval \${$3+:} false; then :
1580  $as_echo_n "(cached) " >&6
1581else
1582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583/* end confdefs.h.  */
1584$4
1585int
1586main ()
1587{
1588#ifndef $as_decl_name
1589#ifdef __cplusplus
1590  (void) $as_decl_use;
1591#else
1592  (void) $as_decl_name;
1593#endif
1594#endif
1595
1596  ;
1597  return 0;
1598}
1599_ACEOF
1600if ac_fn_c_try_compile "$LINENO"; then :
1601  eval "$3=yes"
1602else
1603  eval "$3=no"
1604fi
1605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606fi
1607eval ac_res=\$$3
1608	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609$as_echo "$ac_res" >&6; }
1610  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611
1612} # ac_fn_c_check_decl
1613
1614# ac_fn_c_try_cpp LINENO
1615# ----------------------
1616# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617ac_fn_c_try_cpp ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  if { { ac_try="$ac_cpp conftest.$ac_ext"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628  ac_status=$?
1629  if test -s conftest.err; then
1630    grep -v '^ *+' conftest.err >conftest.er1
1631    cat conftest.er1 >&5
1632    mv -f conftest.er1 conftest.err
1633  fi
1634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } > conftest.i && {
1636	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637	 test ! -s conftest.err
1638       }; then :
1639  ac_retval=0
1640else
1641  $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644    ac_retval=1
1645fi
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_cpp
1650
1651# ac_fn_c_try_run LINENO
1652# ----------------------
1653# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654# that executables *can* be run.
1655ac_fn_c_try_run ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  if { { ac_try="$ac_link"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665  (eval "$ac_link") 2>&5
1666  ac_status=$?
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669  { { case "(($ac_try" in
1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671  *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675  (eval "$ac_try") 2>&5
1676  ac_status=$?
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; }; }; then :
1679  ac_retval=0
1680else
1681  $as_echo "$as_me: program exited with status $ac_status" >&5
1682       $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685       ac_retval=$ac_status
1686fi
1687  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689  as_fn_set_status $ac_retval
1690
1691} # ac_fn_c_try_run
1692
1693# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694# -------------------------------------------------------
1695# Tests whether HEADER exists and can be compiled using the include files in
1696# INCLUDES, setting the cache variable VAR accordingly.
1697ac_fn_c_check_header_compile ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; }
1702if eval \${$3+:} false; then :
1703  $as_echo_n "(cached) " >&6
1704else
1705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h.  */
1707$4
1708#include <$2>
1709_ACEOF
1710if ac_fn_c_try_compile "$LINENO"; then :
1711  eval "$3=yes"
1712else
1713  eval "$3=no"
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716fi
1717eval ac_res=\$$3
1718	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719$as_echo "$ac_res" >&6; }
1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
1722} # ac_fn_c_check_header_compile
1723
1724# ac_fn_c_try_link LINENO
1725# -----------------------
1726# Try to link conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_link ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  rm -f conftest.$ac_objext conftest$ac_exeext
1731  if { { ac_try="$ac_link"
1732case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_link") 2>conftest.err
1739  ac_status=$?
1740  if test -s conftest.err; then
1741    grep -v '^ *+' conftest.err >conftest.er1
1742    cat conftest.er1 >&5
1743    mv -f conftest.er1 conftest.err
1744  fi
1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746  test $ac_status = 0; } && {
1747	 test -z "$ac_c_werror_flag" ||
1748	 test ! -s conftest.err
1749       } && test -s conftest$ac_exeext && {
1750	 test "$cross_compiling" = yes ||
1751	 $as_test_x conftest$ac_exeext
1752       }; then :
1753  ac_retval=0
1754else
1755  $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758	ac_retval=1
1759fi
1760  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762  # interfere with the next link command; also delete a directory that is
1763  # left behind by Apple's compiler.  We do this before executing the actions.
1764  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766  as_fn_set_status $ac_retval
1767
1768} # ac_fn_c_try_link
1769
1770# ac_fn_c_check_func LINENO FUNC VAR
1771# ----------------------------------
1772# Tests whether FUNC exists, setting the cache variable VAR accordingly
1773ac_fn_c_check_func ()
1774{
1775  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777$as_echo_n "checking for $2... " >&6; }
1778if eval \${$3+:} false; then :
1779  $as_echo_n "(cached) " >&6
1780else
1781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h.  */
1783/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1785#define $2 innocuous_$2
1786
1787/* System header to define __stub macros and hopefully few prototypes,
1788    which can conflict with char $2 (); below.
1789    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790    <limits.h> exists even on freestanding compilers.  */
1791
1792#ifdef __STDC__
1793# include <limits.h>
1794#else
1795# include <assert.h>
1796#endif
1797
1798#undef $2
1799
1800/* Override any GCC internal prototype to avoid an error.
1801   Use char because int might match the return type of a GCC
1802   builtin and then its argument prototype would still apply.  */
1803#ifdef __cplusplus
1804extern "C"
1805#endif
1806char $2 ();
1807/* The GNU C library defines this for functions which it implements
1808    to always fail with ENOSYS.  Some functions are actually named
1809    something starting with __ and the normal name is an alias.  */
1810#if defined __stub_$2 || defined __stub___$2
1811choke me
1812#endif
1813
1814int
1815main ()
1816{
1817return $2 ();
1818  ;
1819  return 0;
1820}
1821_ACEOF
1822if ac_fn_c_try_link "$LINENO"; then :
1823  eval "$3=yes"
1824else
1825  eval "$3=no"
1826fi
1827rm -f core conftest.err conftest.$ac_objext \
1828    conftest$ac_exeext conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835} # ac_fn_c_check_func
1836
1837# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1838# -------------------------------------------------------
1839# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1840# the include files in INCLUDES and setting the cache variable VAR
1841# accordingly.
1842ac_fn_c_check_header_mongrel ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  if eval \${$3+:} false; then :
1846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847$as_echo_n "checking for $2... " >&6; }
1848if eval \${$3+:} false; then :
1849  $as_echo_n "(cached) " >&6
1850fi
1851eval ac_res=\$$3
1852	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853$as_echo "$ac_res" >&6; }
1854else
1855  # Is the header compilable?
1856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1857$as_echo_n "checking $2 usability... " >&6; }
1858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h.  */
1860$4
1861#include <$2>
1862_ACEOF
1863if ac_fn_c_try_compile "$LINENO"; then :
1864  ac_header_compiler=yes
1865else
1866  ac_header_compiler=no
1867fi
1868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1870$as_echo "$ac_header_compiler" >&6; }
1871
1872# Is the header present?
1873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1874$as_echo_n "checking $2 presence... " >&6; }
1875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877#include <$2>
1878_ACEOF
1879if ac_fn_c_try_cpp "$LINENO"; then :
1880  ac_header_preproc=yes
1881else
1882  ac_header_preproc=no
1883fi
1884rm -f conftest.err conftest.i conftest.$ac_ext
1885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1886$as_echo "$ac_header_preproc" >&6; }
1887
1888# So?  What about this header?
1889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1890  yes:no: )
1891    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1892$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1893    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1895    ;;
1896  no:yes:* )
1897    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1898$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1899    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1900$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1901    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1902$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1904$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907( $as_echo "## ---------------------------------------------------------------------- ##
1908## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1909## ---------------------------------------------------------------------- ##"
1910     ) | sed "s/^/$as_me: WARNING:     /" >&2
1911    ;;
1912esac
1913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval \${$3+:} false; then :
1916  $as_echo_n "(cached) " >&6
1917else
1918  eval "$3=\$ac_header_compiler"
1919fi
1920eval ac_res=\$$3
1921	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922$as_echo "$ac_res" >&6; }
1923fi
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_header_mongrel
1927cat >config.log <<_ACEOF
1928This file contains any messages produced by compilers while
1929running configure, to aid debugging if configure makes a mistake.
1930
1931It was created by libXt $as_me 1.0.9, which was
1932generated by GNU Autoconf 2.68.  Invocation command line was
1933
1934  $ $0 $@
1935
1936_ACEOF
1937exec 5>>config.log
1938{
1939cat <<_ASUNAME
1940## --------- ##
1941## Platform. ##
1942## --------- ##
1943
1944hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948uname -v = `(uname -v) 2>/dev/null || echo unknown`
1949
1950/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1952
1953/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1954/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1955/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1956/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1957/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1958/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1959/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1960
1961_ASUNAME
1962
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966  IFS=$as_save_IFS
1967  test -z "$as_dir" && as_dir=.
1968    $as_echo "PATH: $as_dir"
1969  done
1970IFS=$as_save_IFS
1971
1972} >&5
1973
1974cat >&5 <<_ACEOF
1975
1976
1977## ----------- ##
1978## Core tests. ##
1979## ----------- ##
1980
1981_ACEOF
1982
1983
1984# Keep a trace of the command line.
1985# Strip out --no-create and --no-recursion so they do not pile up.
1986# Strip out --silent because we don't want to record it for future runs.
1987# Also quote any args containing shell meta-characters.
1988# Make two passes to allow for proper duplicate-argument suppression.
1989ac_configure_args=
1990ac_configure_args0=
1991ac_configure_args1=
1992ac_must_keep_next=false
1993for ac_pass in 1 2
1994do
1995  for ac_arg
1996  do
1997    case $ac_arg in
1998    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1999    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2000    | -silent | --silent | --silen | --sile | --sil)
2001      continue ;;
2002    *\'*)
2003      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004    esac
2005    case $ac_pass in
2006    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2007    2)
2008      as_fn_append ac_configure_args1 " '$ac_arg'"
2009      if test $ac_must_keep_next = true; then
2010	ac_must_keep_next=false # Got value, back to normal.
2011      else
2012	case $ac_arg in
2013	  *=* | --config-cache | -C | -disable-* | --disable-* \
2014	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2015	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2016	  | -with-* | --with-* | -without-* | --without-* | --x)
2017	    case "$ac_configure_args0 " in
2018	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019	    esac
2020	    ;;
2021	  -* ) ac_must_keep_next=true ;;
2022	esac
2023      fi
2024      as_fn_append ac_configure_args " '$ac_arg'"
2025      ;;
2026    esac
2027  done
2028done
2029{ ac_configure_args0=; unset ac_configure_args0;}
2030{ ac_configure_args1=; unset ac_configure_args1;}
2031
2032# When interrupted or exit'd, cleanup temporary files, and complete
2033# config.log.  We remove comments because anyway the quotes in there
2034# would cause problems or look ugly.
2035# WARNING: Use '\'' to represent an apostrophe within the trap.
2036# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2037trap 'exit_status=$?
2038  # Save into config.log some information that might help in debugging.
2039  {
2040    echo
2041
2042    $as_echo "## ---------------- ##
2043## Cache variables. ##
2044## ---------------- ##"
2045    echo
2046    # The following way of writing the cache mishandles newlines in values,
2047(
2048  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049    eval ac_val=\$$ac_var
2050    case $ac_val in #(
2051    *${as_nl}*)
2052      case $ac_var in #(
2053      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055      esac
2056      case $ac_var in #(
2057      _ | IFS | as_nl) ;; #(
2058      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059      *) { eval $ac_var=; unset $ac_var;} ;;
2060      esac ;;
2061    esac
2062  done
2063  (set) 2>&1 |
2064    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065    *${as_nl}ac_space=\ *)
2066      sed -n \
2067	"s/'\''/'\''\\\\'\'''\''/g;
2068	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069      ;; #(
2070    *)
2071      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2072      ;;
2073    esac |
2074    sort
2075)
2076    echo
2077
2078    $as_echo "## ----------------- ##
2079## Output variables. ##
2080## ----------------- ##"
2081    echo
2082    for ac_var in $ac_subst_vars
2083    do
2084      eval ac_val=\$$ac_var
2085      case $ac_val in
2086      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087      esac
2088      $as_echo "$ac_var='\''$ac_val'\''"
2089    done | sort
2090    echo
2091
2092    if test -n "$ac_subst_files"; then
2093      $as_echo "## ------------------- ##
2094## File substitutions. ##
2095## ------------------- ##"
2096      echo
2097      for ac_var in $ac_subst_files
2098      do
2099	eval ac_val=\$$ac_var
2100	case $ac_val in
2101	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102	esac
2103	$as_echo "$ac_var='\''$ac_val'\''"
2104      done | sort
2105      echo
2106    fi
2107
2108    if test -s confdefs.h; then
2109      $as_echo "## ----------- ##
2110## confdefs.h. ##
2111## ----------- ##"
2112      echo
2113      cat confdefs.h
2114      echo
2115    fi
2116    test "$ac_signal" != 0 &&
2117      $as_echo "$as_me: caught signal $ac_signal"
2118    $as_echo "$as_me: exit $exit_status"
2119  } >&5
2120  rm -f core *.core core.conftest.* &&
2121    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122    exit $exit_status
2123' 0
2124for ac_signal in 1 2 13 15; do
2125  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126done
2127ac_signal=0
2128
2129# confdefs.h avoids OS command line length limits that DEFS can exceed.
2130rm -f -r conftest* confdefs.h
2131
2132$as_echo "/* confdefs.h */" > confdefs.h
2133
2134# Predefined preprocessor variables.
2135
2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_NAME "$PACKAGE_NAME"
2138_ACEOF
2139
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142_ACEOF
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_VERSION "$PACKAGE_VERSION"
2146_ACEOF
2147
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_STRING "$PACKAGE_STRING"
2150_ACEOF
2151
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154_ACEOF
2155
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_URL "$PACKAGE_URL"
2158_ACEOF
2159
2160
2161# Let the site file select an alternate cache file if it wants to.
2162# Prefer an explicitly selected file to automatically selected ones.
2163ac_site_file1=NONE
2164ac_site_file2=NONE
2165if test -n "$CONFIG_SITE"; then
2166  # We do not want a PATH search for config.site.
2167  case $CONFIG_SITE in #((
2168    -*)  ac_site_file1=./$CONFIG_SITE;;
2169    */*) ac_site_file1=$CONFIG_SITE;;
2170    *)   ac_site_file1=./$CONFIG_SITE;;
2171  esac
2172elif test "x$prefix" != xNONE; then
2173  ac_site_file1=$prefix/share/config.site
2174  ac_site_file2=$prefix/etc/config.site
2175else
2176  ac_site_file1=$ac_default_prefix/share/config.site
2177  ac_site_file2=$ac_default_prefix/etc/config.site
2178fi
2179for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2180do
2181  test "x$ac_site_file" = xNONE && continue
2182  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2183    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2184$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2185    sed 's/^/| /' "$ac_site_file" >&5
2186    . "$ac_site_file" \
2187      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2189as_fn_error $? "failed to load site script $ac_site_file
2190See \`config.log' for more details" "$LINENO" 5; }
2191  fi
2192done
2193
2194if test -r "$cache_file"; then
2195  # Some versions of bash will fail to source /dev/null (special files
2196  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2197  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2198    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2199$as_echo "$as_me: loading cache $cache_file" >&6;}
2200    case $cache_file in
2201      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2202      *)                      . "./$cache_file";;
2203    esac
2204  fi
2205else
2206  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2207$as_echo "$as_me: creating cache $cache_file" >&6;}
2208  >$cache_file
2209fi
2210
2211# Check that the precious variables saved in the cache have kept the same
2212# value.
2213ac_cache_corrupted=false
2214for ac_var in $ac_precious_vars; do
2215  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2216  eval ac_new_set=\$ac_env_${ac_var}_set
2217  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2218  eval ac_new_val=\$ac_env_${ac_var}_value
2219  case $ac_old_set,$ac_new_set in
2220    set,)
2221      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2222$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2223      ac_cache_corrupted=: ;;
2224    ,set)
2225      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2226$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2227      ac_cache_corrupted=: ;;
2228    ,);;
2229    *)
2230      if test "x$ac_old_val" != "x$ac_new_val"; then
2231	# differences in whitespace do not lead to failure.
2232	ac_old_val_w=`echo x $ac_old_val`
2233	ac_new_val_w=`echo x $ac_new_val`
2234	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2235	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2236$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2237	  ac_cache_corrupted=:
2238	else
2239	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2240$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2241	  eval $ac_var=\$ac_old_val
2242	fi
2243	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2244$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2245	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2246$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2247      fi;;
2248  esac
2249  # Pass precious variables to config.status.
2250  if test "$ac_new_set" = set; then
2251    case $ac_new_val in
2252    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2253    *) ac_arg=$ac_var=$ac_new_val ;;
2254    esac
2255    case " $ac_configure_args " in
2256      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2257      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2258    esac
2259  fi
2260done
2261if $ac_cache_corrupted; then
2262  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2265$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2266  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2267fi
2268## -------------------- ##
2269## Main body of script. ##
2270## -------------------- ##
2271
2272ac_ext=c
2273ac_cpp='$CPP $CPPFLAGS'
2274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277
2278
2279
2280am__api_version='1.11'
2281
2282ac_aux_dir=
2283for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2284  if test -f "$ac_dir/install-sh"; then
2285    ac_aux_dir=$ac_dir
2286    ac_install_sh="$ac_aux_dir/install-sh -c"
2287    break
2288  elif test -f "$ac_dir/install.sh"; then
2289    ac_aux_dir=$ac_dir
2290    ac_install_sh="$ac_aux_dir/install.sh -c"
2291    break
2292  elif test -f "$ac_dir/shtool"; then
2293    ac_aux_dir=$ac_dir
2294    ac_install_sh="$ac_aux_dir/shtool install -c"
2295    break
2296  fi
2297done
2298if test -z "$ac_aux_dir"; then
2299  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2300fi
2301
2302# These three variables are undocumented and unsupported,
2303# and are intended to be withdrawn in a future Autoconf release.
2304# They can cause serious problems if a builder's source tree is in a directory
2305# whose full name contains unusual characters.
2306ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2307ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2308ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2309
2310
2311# Find a good install program.  We prefer a C program (faster),
2312# so one script is as good as another.  But avoid the broken or
2313# incompatible versions:
2314# SysV /etc/install, /usr/sbin/install
2315# SunOS /usr/etc/install
2316# IRIX /sbin/install
2317# AIX /bin/install
2318# AmigaOS /C/install, which installs bootblocks on floppy discs
2319# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2320# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2321# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2322# OS/2's system install, which has a completely different semantic
2323# ./install, which can be erroneously created by make from ./install.sh.
2324# Reject install programs that cannot install multiple files.
2325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2326$as_echo_n "checking for a BSD-compatible install... " >&6; }
2327if test -z "$INSTALL"; then
2328if ${ac_cv_path_install+:} false; then :
2329  $as_echo_n "(cached) " >&6
2330else
2331  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332for as_dir in $PATH
2333do
2334  IFS=$as_save_IFS
2335  test -z "$as_dir" && as_dir=.
2336    # Account for people who put trailing slashes in PATH elements.
2337case $as_dir/ in #((
2338  ./ | .// | /[cC]/* | \
2339  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2340  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2341  /usr/ucb/* ) ;;
2342  *)
2343    # OSF1 and SCO ODT 3.0 have their own names for install.
2344    # Don't use installbsd from OSF since it installs stuff as root
2345    # by default.
2346    for ac_prog in ginstall scoinst install; do
2347      for ac_exec_ext in '' $ac_executable_extensions; do
2348	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2349	  if test $ac_prog = install &&
2350	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2351	    # AIX install.  It has an incompatible calling convention.
2352	    :
2353	  elif test $ac_prog = install &&
2354	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2355	    # program-specific install script used by HP pwplus--don't use.
2356	    :
2357	  else
2358	    rm -rf conftest.one conftest.two conftest.dir
2359	    echo one > conftest.one
2360	    echo two > conftest.two
2361	    mkdir conftest.dir
2362	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2363	      test -s conftest.one && test -s conftest.two &&
2364	      test -s conftest.dir/conftest.one &&
2365	      test -s conftest.dir/conftest.two
2366	    then
2367	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2368	      break 3
2369	    fi
2370	  fi
2371	fi
2372      done
2373    done
2374    ;;
2375esac
2376
2377  done
2378IFS=$as_save_IFS
2379
2380rm -rf conftest.one conftest.two conftest.dir
2381
2382fi
2383  if test "${ac_cv_path_install+set}" = set; then
2384    INSTALL=$ac_cv_path_install
2385  else
2386    # As a last resort, use the slow shell script.  Don't cache a
2387    # value for INSTALL within a source directory, because that will
2388    # break other packages using the cache if that directory is
2389    # removed, or if the value is a relative name.
2390    INSTALL=$ac_install_sh
2391  fi
2392fi
2393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2394$as_echo "$INSTALL" >&6; }
2395
2396# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2397# It thinks the first close brace ends the variable substitution.
2398test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2399
2400test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2401
2402test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2403
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2405$as_echo_n "checking whether build environment is sane... " >&6; }
2406# Just in case
2407sleep 1
2408echo timestamp > conftest.file
2409# Reject unsafe characters in $srcdir or the absolute working directory
2410# name.  Accept space and tab only in the latter.
2411am_lf='
2412'
2413case `pwd` in
2414  *[\\\"\#\$\&\'\`$am_lf]*)
2415    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2416esac
2417case $srcdir in
2418  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2419    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2420esac
2421
2422# Do `set' in a subshell so we don't clobber the current shell's
2423# arguments.  Must try -L first in case configure is actually a
2424# symlink; some systems play weird games with the mod time of symlinks
2425# (eg FreeBSD returns the mod time of the symlink's containing
2426# directory).
2427if (
2428   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2429   if test "$*" = "X"; then
2430      # -L didn't work.
2431      set X `ls -t "$srcdir/configure" conftest.file`
2432   fi
2433   rm -f conftest.file
2434   if test "$*" != "X $srcdir/configure conftest.file" \
2435      && test "$*" != "X conftest.file $srcdir/configure"; then
2436
2437      # If neither matched, then we have a broken ls.  This can happen
2438      # if, for instance, CONFIG_SHELL is bash and it inherits a
2439      # broken ls alias from the environment.  This has actually
2440      # happened.  Such a system could not be considered "sane".
2441      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2442alias in your environment" "$LINENO" 5
2443   fi
2444
2445   test "$2" = conftest.file
2446   )
2447then
2448   # Ok.
2449   :
2450else
2451   as_fn_error $? "newly created file is older than distributed files!
2452Check your system clock" "$LINENO" 5
2453fi
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2455$as_echo "yes" >&6; }
2456test "$program_prefix" != NONE &&
2457  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2458# Use a double $ so make ignores it.
2459test "$program_suffix" != NONE &&
2460  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2461# Double any \ or $.
2462# By default was `s,x,x', remove it if useless.
2463ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2464program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2465
2466# expand $ac_aux_dir to an absolute path
2467am_aux_dir=`cd $ac_aux_dir && pwd`
2468
2469if test x"${MISSING+set}" != xset; then
2470  case $am_aux_dir in
2471  *\ * | *\	*)
2472    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2473  *)
2474    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2475  esac
2476fi
2477# Use eval to expand $SHELL
2478if eval "$MISSING --run true"; then
2479  am_missing_run="$MISSING --run "
2480else
2481  am_missing_run=
2482  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2483$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2484fi
2485
2486if test x"${install_sh}" != xset; then
2487  case $am_aux_dir in
2488  *\ * | *\	*)
2489    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2490  *)
2491    install_sh="\${SHELL} $am_aux_dir/install-sh"
2492  esac
2493fi
2494
2495# Installed binaries are usually stripped using `strip' when the user
2496# run `make install-strip'.  However `strip' might not be the right
2497# tool to use in cross-compilation environments, therefore Automake
2498# will honor the `STRIP' environment variable to overrule this program.
2499if test "$cross_compiling" != no; then
2500  if test -n "$ac_tool_prefix"; then
2501  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2502set dummy ${ac_tool_prefix}strip; ac_word=$2
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504$as_echo_n "checking for $ac_word... " >&6; }
2505if ${ac_cv_prog_STRIP+:} false; then :
2506  $as_echo_n "(cached) " >&6
2507else
2508  if test -n "$STRIP"; then
2509  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514  IFS=$as_save_IFS
2515  test -z "$as_dir" && as_dir=.
2516    for ac_exec_ext in '' $ac_executable_extensions; do
2517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520    break 2
2521  fi
2522done
2523  done
2524IFS=$as_save_IFS
2525
2526fi
2527fi
2528STRIP=$ac_cv_prog_STRIP
2529if test -n "$STRIP"; then
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2531$as_echo "$STRIP" >&6; }
2532else
2533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534$as_echo "no" >&6; }
2535fi
2536
2537
2538fi
2539if test -z "$ac_cv_prog_STRIP"; then
2540  ac_ct_STRIP=$STRIP
2541  # Extract the first word of "strip", so it can be a program name with args.
2542set dummy strip; ac_word=$2
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544$as_echo_n "checking for $ac_word... " >&6; }
2545if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2546  $as_echo_n "(cached) " >&6
2547else
2548  if test -n "$ac_ct_STRIP"; then
2549  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2550else
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554  IFS=$as_save_IFS
2555  test -z "$as_dir" && as_dir=.
2556    for ac_exec_ext in '' $ac_executable_extensions; do
2557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558    ac_cv_prog_ac_ct_STRIP="strip"
2559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560    break 2
2561  fi
2562done
2563  done
2564IFS=$as_save_IFS
2565
2566fi
2567fi
2568ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2569if test -n "$ac_ct_STRIP"; then
2570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2571$as_echo "$ac_ct_STRIP" >&6; }
2572else
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574$as_echo "no" >&6; }
2575fi
2576
2577  if test "x$ac_ct_STRIP" = x; then
2578    STRIP=":"
2579  else
2580    case $cross_compiling:$ac_tool_warned in
2581yes:)
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2584ac_tool_warned=yes ;;
2585esac
2586    STRIP=$ac_ct_STRIP
2587  fi
2588else
2589  STRIP="$ac_cv_prog_STRIP"
2590fi
2591
2592fi
2593INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2594
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2596$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2597if test -z "$MKDIR_P"; then
2598  if ${ac_cv_path_mkdir+:} false; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2603do
2604  IFS=$as_save_IFS
2605  test -z "$as_dir" && as_dir=.
2606    for ac_prog in mkdir gmkdir; do
2607	 for ac_exec_ext in '' $ac_executable_extensions; do
2608	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2609	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2610	     'mkdir (GNU coreutils) '* | \
2611	     'mkdir (coreutils) '* | \
2612	     'mkdir (fileutils) '4.1*)
2613	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2614	       break 3;;
2615	   esac
2616	 done
2617       done
2618  done
2619IFS=$as_save_IFS
2620
2621fi
2622
2623  test -d ./--version && rmdir ./--version
2624  if test "${ac_cv_path_mkdir+set}" = set; then
2625    MKDIR_P="$ac_cv_path_mkdir -p"
2626  else
2627    # As a last resort, use the slow shell script.  Don't cache a
2628    # value for MKDIR_P within a source directory, because that will
2629    # break other packages using the cache if that directory is
2630    # removed, or if the value is a relative name.
2631    MKDIR_P="$ac_install_sh -d"
2632  fi
2633fi
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2635$as_echo "$MKDIR_P" >&6; }
2636
2637mkdir_p="$MKDIR_P"
2638case $mkdir_p in
2639  [\\/$]* | ?:[\\/]*) ;;
2640  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2641esac
2642
2643for ac_prog in gawk mawk nawk awk
2644do
2645  # Extract the first word of "$ac_prog", so it can be a program name with args.
2646set dummy $ac_prog; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if ${ac_cv_prog_AWK+:} false; then :
2650  $as_echo_n "(cached) " >&6
2651else
2652  if test -n "$AWK"; then
2653  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658  IFS=$as_save_IFS
2659  test -z "$as_dir" && as_dir=.
2660    for ac_exec_ext in '' $ac_executable_extensions; do
2661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662    ac_cv_prog_AWK="$ac_prog"
2663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667  done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672AWK=$ac_cv_prog_AWK
2673if test -n "$AWK"; then
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675$as_echo "$AWK" >&6; }
2676else
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682  test -n "$AWK" && break
2683done
2684
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2686$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2687set x ${MAKE-make}
2688ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2689if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  cat >conftest.make <<\_ACEOF
2693SHELL = /bin/sh
2694all:
2695	@echo '@@@%%%=$(MAKE)=@@@%%%'
2696_ACEOF
2697# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2698case `${MAKE-make} -f conftest.make 2>/dev/null` in
2699  *@@@%%%=?*=@@@%%%*)
2700    eval ac_cv_prog_make_${ac_make}_set=yes;;
2701  *)
2702    eval ac_cv_prog_make_${ac_make}_set=no;;
2703esac
2704rm -f conftest.make
2705fi
2706if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708$as_echo "yes" >&6; }
2709  SET_MAKE=
2710else
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712$as_echo "no" >&6; }
2713  SET_MAKE="MAKE=${MAKE-make}"
2714fi
2715
2716rm -rf .tst 2>/dev/null
2717mkdir .tst 2>/dev/null
2718if test -d .tst; then
2719  am__leading_dot=.
2720else
2721  am__leading_dot=_
2722fi
2723rmdir .tst 2>/dev/null
2724
2725if test "`cd $srcdir && pwd`" != "`pwd`"; then
2726  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2727  # is not polluted with repeated "-I."
2728  am__isrc=' -I$(srcdir)'
2729  # test to see if srcdir already configured
2730  if test -f $srcdir/config.status; then
2731    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2732  fi
2733fi
2734
2735# test whether we have cygpath
2736if test -z "$CYGPATH_W"; then
2737  if (cygpath --version) >/dev/null 2>/dev/null; then
2738    CYGPATH_W='cygpath -w'
2739  else
2740    CYGPATH_W=echo
2741  fi
2742fi
2743
2744
2745# Define the identity of the package.
2746 PACKAGE='libXt'
2747 VERSION='1.0.9'
2748
2749
2750cat >>confdefs.h <<_ACEOF
2751#define PACKAGE "$PACKAGE"
2752_ACEOF
2753
2754
2755cat >>confdefs.h <<_ACEOF
2756#define VERSION "$VERSION"
2757_ACEOF
2758
2759# Some tools Automake needs.
2760
2761ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2762
2763
2764AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2765
2766
2767AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2768
2769
2770AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2771
2772
2773MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2774
2775# We need awk for the "check" target.  The system "awk" is bad on
2776# some platforms.
2777# Always define AMTAR for backward compatibility.
2778
2779AMTAR=${AMTAR-"${am_missing_run}tar"}
2780
2781am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2782
2783
2784
2785
2786
2787
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2789$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2790    # Check whether --enable-maintainer-mode was given.
2791if test "${enable_maintainer_mode+set}" = set; then :
2792  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2793else
2794  USE_MAINTAINER_MODE=no
2795fi
2796
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2798$as_echo "$USE_MAINTAINER_MODE" >&6; }
2799   if test $USE_MAINTAINER_MODE = yes; then
2800  MAINTAINER_MODE_TRUE=
2801  MAINTAINER_MODE_FALSE='#'
2802else
2803  MAINTAINER_MODE_TRUE='#'
2804  MAINTAINER_MODE_FALSE=
2805fi
2806
2807  MAINT=$MAINTAINER_MODE_TRUE
2808
2809
2810
2811# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823DEPDIR="${am__leading_dot}deps"
2824
2825ac_config_commands="$ac_config_commands depfiles"
2826
2827
2828am_make=${MAKE-make}
2829cat > confinc << 'END'
2830am__doit:
2831	@echo this is the am__doit target
2832.PHONY: am__doit
2833END
2834# If we don't find an include directive, just comment out the code.
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2836$as_echo_n "checking for style of include used by $am_make... " >&6; }
2837am__include="#"
2838am__quote=
2839_am_result=none
2840# First try GNU make style include.
2841echo "include confinc" > confmf
2842# Ignore all kinds of additional output from `make'.
2843case `$am_make -s -f confmf 2> /dev/null` in #(
2844*the\ am__doit\ target*)
2845  am__include=include
2846  am__quote=
2847  _am_result=GNU
2848  ;;
2849esac
2850# Now try BSD make style include.
2851if test "$am__include" = "#"; then
2852   echo '.include "confinc"' > confmf
2853   case `$am_make -s -f confmf 2> /dev/null` in #(
2854   *the\ am__doit\ target*)
2855     am__include=.include
2856     am__quote="\""
2857     _am_result=BSD
2858     ;;
2859   esac
2860fi
2861
2862
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2864$as_echo "$_am_result" >&6; }
2865rm -f confinc confmf
2866
2867# Check whether --enable-dependency-tracking was given.
2868if test "${enable_dependency_tracking+set}" = set; then :
2869  enableval=$enable_dependency_tracking;
2870fi
2871
2872if test "x$enable_dependency_tracking" != xno; then
2873  am_depcomp="$ac_aux_dir/depcomp"
2874  AMDEPBACKSLASH='\'
2875fi
2876 if test "x$enable_dependency_tracking" != xno; then
2877  AMDEP_TRUE=
2878  AMDEP_FALSE='#'
2879else
2880  AMDEP_TRUE='#'
2881  AMDEP_FALSE=
2882fi
2883
2884
2885ac_ext=c
2886ac_cpp='$CPP $CPPFLAGS'
2887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890if test -n "$ac_tool_prefix"; then
2891  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892set dummy ${ac_tool_prefix}gcc; ac_word=$2
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if ${ac_cv_prog_CC+:} false; then :
2896  $as_echo_n "(cached) " >&6
2897else
2898  if test -n "$CC"; then
2899  ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904  IFS=$as_save_IFS
2905  test -z "$as_dir" && as_dir=.
2906    for ac_exec_ext in '' $ac_executable_extensions; do
2907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918CC=$ac_cv_prog_CC
2919if test -n "$CC"; then
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921$as_echo "$CC" >&6; }
2922else
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924$as_echo "no" >&6; }
2925fi
2926
2927
2928fi
2929if test -z "$ac_cv_prog_CC"; then
2930  ac_ct_CC=$CC
2931  # Extract the first word of "gcc", so it can be a program name with args.
2932set dummy gcc; ac_word=$2
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934$as_echo_n "checking for $ac_word... " >&6; }
2935if ${ac_cv_prog_ac_ct_CC+:} false; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  if test -n "$ac_ct_CC"; then
2939  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944  IFS=$as_save_IFS
2945  test -z "$as_dir" && as_dir=.
2946    for ac_exec_ext in '' $ac_executable_extensions; do
2947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948    ac_cv_prog_ac_ct_CC="gcc"
2949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950    break 2
2951  fi
2952done
2953  done
2954IFS=$as_save_IFS
2955
2956fi
2957fi
2958ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959if test -n "$ac_ct_CC"; then
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2961$as_echo "$ac_ct_CC" >&6; }
2962else
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964$as_echo "no" >&6; }
2965fi
2966
2967  if test "x$ac_ct_CC" = x; then
2968    CC=""
2969  else
2970    case $cross_compiling:$ac_tool_warned in
2971yes:)
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2974ac_tool_warned=yes ;;
2975esac
2976    CC=$ac_ct_CC
2977  fi
2978else
2979  CC="$ac_cv_prog_CC"
2980fi
2981
2982if test -z "$CC"; then
2983          if test -n "$ac_tool_prefix"; then
2984    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2985set dummy ${ac_tool_prefix}cc; ac_word=$2
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if ${ac_cv_prog_CC+:} false; then :
2989  $as_echo_n "(cached) " >&6
2990else
2991  if test -n "$CC"; then
2992  ac_cv_prog_CC="$CC" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997  IFS=$as_save_IFS
2998  test -z "$as_dir" && as_dir=.
2999    for ac_exec_ext in '' $ac_executable_extensions; do
3000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001    ac_cv_prog_CC="${ac_tool_prefix}cc"
3002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003    break 2
3004  fi
3005done
3006  done
3007IFS=$as_save_IFS
3008
3009fi
3010fi
3011CC=$ac_cv_prog_CC
3012if test -n "$CC"; then
3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014$as_echo "$CC" >&6; }
3015else
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017$as_echo "no" >&6; }
3018fi
3019
3020
3021  fi
3022fi
3023if test -z "$CC"; then
3024  # Extract the first word of "cc", so it can be a program name with args.
3025set dummy cc; ac_word=$2
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027$as_echo_n "checking for $ac_word... " >&6; }
3028if ${ac_cv_prog_CC+:} false; then :
3029  $as_echo_n "(cached) " >&6
3030else
3031  if test -n "$CC"; then
3032  ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
3034  ac_prog_rejected=no
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038  IFS=$as_save_IFS
3039  test -z "$as_dir" && as_dir=.
3040    for ac_exec_ext in '' $ac_executable_extensions; do
3041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043       ac_prog_rejected=yes
3044       continue
3045     fi
3046    ac_cv_prog_CC="cc"
3047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048    break 2
3049  fi
3050done
3051  done
3052IFS=$as_save_IFS
3053
3054if test $ac_prog_rejected = yes; then
3055  # We found a bogon in the path, so make sure we never use it.
3056  set dummy $ac_cv_prog_CC
3057  shift
3058  if test $# != 0; then
3059    # We chose a different compiler from the bogus one.
3060    # However, it has the same basename, so the bogon will be chosen
3061    # first if we set CC to just the basename; use the full file name.
3062    shift
3063    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3064  fi
3065fi
3066fi
3067fi
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
3070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071$as_echo "$CC" >&6; }
3072else
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075fi
3076
3077
3078fi
3079if test -z "$CC"; then
3080  if test -n "$ac_tool_prefix"; then
3081  for ac_prog in cl.exe
3082  do
3083    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086$as_echo_n "checking for $ac_word... " >&6; }
3087if ${ac_cv_prog_CC+:} false; then :
3088  $as_echo_n "(cached) " >&6
3089else
3090  if test -n "$CC"; then
3091  ac_cv_prog_CC="$CC" # Let the user override the test.
3092else
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096  IFS=$as_save_IFS
3097  test -z "$as_dir" && as_dir=.
3098    for ac_exec_ext in '' $ac_executable_extensions; do
3099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102    break 2
3103  fi
3104done
3105  done
3106IFS=$as_save_IFS
3107
3108fi
3109fi
3110CC=$ac_cv_prog_CC
3111if test -n "$CC"; then
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113$as_echo "$CC" >&6; }
3114else
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116$as_echo "no" >&6; }
3117fi
3118
3119
3120    test -n "$CC" && break
3121  done
3122fi
3123if test -z "$CC"; then
3124  ac_ct_CC=$CC
3125  for ac_prog in cl.exe
3126do
3127  # Extract the first word of "$ac_prog", so it can be a program name with args.
3128set dummy $ac_prog; ac_word=$2
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130$as_echo_n "checking for $ac_word... " >&6; }
3131if ${ac_cv_prog_ac_ct_CC+:} false; then :
3132  $as_echo_n "(cached) " >&6
3133else
3134  if test -n "$ac_ct_CC"; then
3135  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140  IFS=$as_save_IFS
3141  test -z "$as_dir" && as_dir=.
3142    for ac_exec_ext in '' $ac_executable_extensions; do
3143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144    ac_cv_prog_ac_ct_CC="$ac_prog"
3145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146    break 2
3147  fi
3148done
3149  done
3150IFS=$as_save_IFS
3151
3152fi
3153fi
3154ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155if test -n "$ac_ct_CC"; then
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157$as_echo "$ac_ct_CC" >&6; }
3158else
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
3161fi
3162
3163
3164  test -n "$ac_ct_CC" && break
3165done
3166
3167  if test "x$ac_ct_CC" = x; then
3168    CC=""
3169  else
3170    case $cross_compiling:$ac_tool_warned in
3171yes:)
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174ac_tool_warned=yes ;;
3175esac
3176    CC=$ac_ct_CC
3177  fi
3178fi
3179
3180fi
3181
3182
3183test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185as_fn_error $? "no acceptable C compiler found in \$PATH
3186See \`config.log' for more details" "$LINENO" 5; }
3187
3188# Provide some information about the compiler.
3189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3190set X $ac_compile
3191ac_compiler=$2
3192for ac_option in --version -v -V -qversion; do
3193  { { ac_try="$ac_compiler $ac_option >&5"
3194case "(($ac_try" in
3195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196  *) ac_try_echo=$ac_try;;
3197esac
3198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199$as_echo "$ac_try_echo"; } >&5
3200  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3201  ac_status=$?
3202  if test -s conftest.err; then
3203    sed '10a\
3204... rest of stderr output deleted ...
3205         10q' conftest.err >conftest.er1
3206    cat conftest.er1 >&5
3207  fi
3208  rm -f conftest.er1 conftest.err
3209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210  test $ac_status = 0; }
3211done
3212
3213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219
3220  ;
3221  return 0;
3222}
3223_ACEOF
3224ac_clean_files_save=$ac_clean_files
3225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3226# Try to create an executable without -o first, disregard a.out.
3227# It will help us diagnose broken compilers, and finding out an intuition
3228# of exeext.
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230$as_echo_n "checking whether the C compiler works... " >&6; }
3231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233# The possible output files:
3234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
3236ac_rmfiles=
3237for ac_file in $ac_files
3238do
3239  case $ac_file in
3240    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3241    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242  esac
3243done
3244rm -f $ac_rmfiles
3245
3246if { { ac_try="$ac_link_default"
3247case "(($ac_try" in
3248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249  *) ac_try_echo=$ac_try;;
3250esac
3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
3253  (eval "$ac_link_default") 2>&5
3254  ac_status=$?
3255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256  test $ac_status = 0; }; then :
3257  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3260# so that the user can short-circuit this test for compilers unknown to
3261# Autoconf.
3262for ac_file in $ac_files ''
3263do
3264  test -f "$ac_file" || continue
3265  case $ac_file in
3266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3267	;;
3268    [ab].out )
3269	# We found the default executable, but exeext='' is most
3270	# certainly right.
3271	break;;
3272    *.* )
3273	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274	then :; else
3275	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276	fi
3277	# We set ac_cv_exeext here because the later test for it is not
3278	# safe: cross compilers may not add the suffix if given an `-o'
3279	# argument, so we may need to know it at that point already.
3280	# Even if this section looks crufty: it has the advantage of
3281	# actually working.
3282	break;;
3283    * )
3284	break;;
3285  esac
3286done
3287test "$ac_cv_exeext" = no && ac_cv_exeext=
3288
3289else
3290  ac_file=''
3291fi
3292if test -z "$ac_file"; then :
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295$as_echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300as_fn_error 77 "C compiler cannot create executables
3301See \`config.log' for more details" "$LINENO" 5; }
3302else
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304$as_echo "yes" >&6; }
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307$as_echo_n "checking for C compiler default output file name... " >&6; }
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309$as_echo "$ac_file" >&6; }
3310ac_exeext=$ac_cv_exeext
3311
3312rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3313ac_clean_files=$ac_clean_files_save
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3315$as_echo_n "checking for suffix of executables... " >&6; }
3316if { { ac_try="$ac_link"
3317case "(($ac_try" in
3318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319  *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323  (eval "$ac_link") 2>&5
3324  ac_status=$?
3325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326  test $ac_status = 0; }; then :
3327  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3329# work properly (i.e., refer to `conftest.exe'), while it won't with
3330# `rm'.
3331for ac_file in conftest.exe conftest conftest.*; do
3332  test -f "$ac_file" || continue
3333  case $ac_file in
3334    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336	  break;;
3337    * ) break;;
3338  esac
3339done
3340else
3341  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3344See \`config.log' for more details" "$LINENO" 5; }
3345fi
3346rm -f conftest conftest$ac_cv_exeext
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3348$as_echo "$ac_cv_exeext" >&6; }
3349
3350rm -f conftest.$ac_ext
3351EXEEXT=$ac_cv_exeext
3352ac_exeext=$EXEEXT
3353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h.  */
3355#include <stdio.h>
3356int
3357main ()
3358{
3359FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3361
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366ac_clean_files="$ac_clean_files conftest.out"
3367# Check that the compiler produces executables we can run.  If not, either
3368# the compiler is broken, or we cross compile.
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370$as_echo_n "checking whether we are cross compiling... " >&6; }
3371if test "$cross_compiling" != yes; then
3372  { { ac_try="$ac_link"
3373case "(($ac_try" in
3374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375  *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379  (eval "$ac_link") 2>&5
3380  ac_status=$?
3381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382  test $ac_status = 0; }
3383  if { ac_try='./conftest$ac_cv_exeext'
3384  { { case "(($ac_try" in
3385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386  *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390  (eval "$ac_try") 2>&5
3391  ac_status=$?
3392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393  test $ac_status = 0; }; }; then
3394    cross_compiling=no
3395  else
3396    if test "$cross_compiling" = maybe; then
3397	cross_compiling=yes
3398    else
3399	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401as_fn_error $? "cannot run C compiled programs.
3402If you meant to cross compile, use \`--host'.
3403See \`config.log' for more details" "$LINENO" 5; }
3404    fi
3405  fi
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408$as_echo "$cross_compiling" >&6; }
3409
3410rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411ac_clean_files=$ac_clean_files_save
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3413$as_echo_n "checking for suffix of object files... " >&6; }
3414if ${ac_cv_objext+:} false; then :
3415  $as_echo_n "(cached) " >&6
3416else
3417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419
3420int
3421main ()
3422{
3423
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428rm -f conftest.o conftest.obj
3429if { { ac_try="$ac_compile"
3430case "(($ac_try" in
3431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432  *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
3436  (eval "$ac_compile") 2>&5
3437  ac_status=$?
3438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439  test $ac_status = 0; }; then :
3440  for ac_file in conftest.o conftest.obj conftest.*; do
3441  test -f "$ac_file" || continue;
3442  case $ac_file in
3443    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3444    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445       break;;
3446  esac
3447done
3448else
3449  $as_echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454as_fn_error $? "cannot compute suffix of object files: cannot compile
3455See \`config.log' for more details" "$LINENO" 5; }
3456fi
3457rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458fi
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3460$as_echo "$ac_cv_objext" >&6; }
3461OBJEXT=$ac_cv_objext
3462ac_objext=$OBJEXT
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3464$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3465if ${ac_cv_c_compiler_gnu+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470
3471int
3472main ()
3473{
3474#ifndef __GNUC__
3475       choke me
3476#endif
3477
3478  ;
3479  return 0;
3480}
3481_ACEOF
3482if ac_fn_c_try_compile "$LINENO"; then :
3483  ac_compiler_gnu=yes
3484else
3485  ac_compiler_gnu=no
3486fi
3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488ac_cv_c_compiler_gnu=$ac_compiler_gnu
3489
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3492$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493if test $ac_compiler_gnu = yes; then
3494  GCC=yes
3495else
3496  GCC=
3497fi
3498ac_test_CFLAGS=${CFLAGS+set}
3499ac_save_CFLAGS=$CFLAGS
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3501$as_echo_n "checking whether $CC accepts -g... " >&6; }
3502if ${ac_cv_prog_cc_g+:} false; then :
3503  $as_echo_n "(cached) " >&6
3504else
3505  ac_save_c_werror_flag=$ac_c_werror_flag
3506   ac_c_werror_flag=yes
3507   ac_cv_prog_cc_g=no
3508   CFLAGS="-g"
3509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h.  */
3511
3512int
3513main ()
3514{
3515
3516  ;
3517  return 0;
3518}
3519_ACEOF
3520if ac_fn_c_try_compile "$LINENO"; then :
3521  ac_cv_prog_cc_g=yes
3522else
3523  CFLAGS=""
3524      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526
3527int
3528main ()
3529{
3530
3531  ;
3532  return 0;
3533}
3534_ACEOF
3535if ac_fn_c_try_compile "$LINENO"; then :
3536
3537else
3538  ac_c_werror_flag=$ac_save_c_werror_flag
3539	 CFLAGS="-g"
3540	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542
3543int
3544main ()
3545{
3546
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551if ac_fn_c_try_compile "$LINENO"; then :
3552  ac_cv_prog_cc_g=yes
3553fi
3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555fi
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557fi
3558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559   ac_c_werror_flag=$ac_save_c_werror_flag
3560fi
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3562$as_echo "$ac_cv_prog_cc_g" >&6; }
3563if test "$ac_test_CFLAGS" = set; then
3564  CFLAGS=$ac_save_CFLAGS
3565elif test $ac_cv_prog_cc_g = yes; then
3566  if test "$GCC" = yes; then
3567    CFLAGS="-g -O2"
3568  else
3569    CFLAGS="-g"
3570  fi
3571else
3572  if test "$GCC" = yes; then
3573    CFLAGS="-O2"
3574  else
3575    CFLAGS=
3576  fi
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3579$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3580if ${ac_cv_prog_cc_c89+:} false; then :
3581  $as_echo_n "(cached) " >&6
3582else
3583  ac_cv_prog_cc_c89=no
3584ac_save_CC=$CC
3585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h.  */
3587#include <stdarg.h>
3588#include <stdio.h>
3589#include <sys/types.h>
3590#include <sys/stat.h>
3591/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3592struct buf { int x; };
3593FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594static char *e (p, i)
3595     char **p;
3596     int i;
3597{
3598  return p[i];
3599}
3600static char *f (char * (*g) (char **, int), char **p, ...)
3601{
3602  char *s;
3603  va_list v;
3604  va_start (v,p);
3605  s = g (p, va_arg (v,int));
3606  va_end (v);
3607  return s;
3608}
3609
3610/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3611   function prototypes and stuff, but not '\xHH' hex character constants.
3612   These don't provoke an error unfortunately, instead are silently treated
3613   as 'x'.  The following induces an error, until -std is added to get
3614   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3615   array size at least.  It's necessary to write '\x00'==0 to get something
3616   that's true only with -std.  */
3617int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3618
3619/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3620   inside strings and character constants.  */
3621#define FOO(x) 'x'
3622int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3623
3624int test (int i, double x);
3625struct s1 {int (*f) (int a);};
3626struct s2 {int (*f) (double a);};
3627int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628int argc;
3629char **argv;
3630int
3631main ()
3632{
3633return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3634  ;
3635  return 0;
3636}
3637_ACEOF
3638for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3639	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3640do
3641  CC="$ac_save_CC $ac_arg"
3642  if ac_fn_c_try_compile "$LINENO"; then :
3643  ac_cv_prog_cc_c89=$ac_arg
3644fi
3645rm -f core conftest.err conftest.$ac_objext
3646  test "x$ac_cv_prog_cc_c89" != "xno" && break
3647done
3648rm -f conftest.$ac_ext
3649CC=$ac_save_CC
3650
3651fi
3652# AC_CACHE_VAL
3653case "x$ac_cv_prog_cc_c89" in
3654  x)
3655    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3656$as_echo "none needed" >&6; } ;;
3657  xno)
3658    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3659$as_echo "unsupported" >&6; } ;;
3660  *)
3661    CC="$CC $ac_cv_prog_cc_c89"
3662    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3663$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3664esac
3665if test "x$ac_cv_prog_cc_c89" != xno; then :
3666
3667fi
3668
3669ac_ext=c
3670ac_cpp='$CPP $CPPFLAGS'
3671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
3675depcc="$CC"   am_compiler_list=
3676
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3678$as_echo_n "checking dependency style of $depcc... " >&6; }
3679if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3680  $as_echo_n "(cached) " >&6
3681else
3682  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3683  # We make a subdir and do the tests there.  Otherwise we can end up
3684  # making bogus files that we don't know about and never remove.  For
3685  # instance it was reported that on HP-UX the gcc test will end up
3686  # making a dummy file named `D' -- because `-MD' means `put the output
3687  # in D'.
3688  mkdir conftest.dir
3689  # Copy depcomp to subdir because otherwise we won't find it if we're
3690  # using a relative directory.
3691  cp "$am_depcomp" conftest.dir
3692  cd conftest.dir
3693  # We will build objects and dependencies in a subdirectory because
3694  # it helps to detect inapplicable dependency modes.  For instance
3695  # both Tru64's cc and ICC support -MD to output dependencies as a
3696  # side effect of compilation, but ICC will put the dependencies in
3697  # the current directory while Tru64 will put them in the object
3698  # directory.
3699  mkdir sub
3700
3701  am_cv_CC_dependencies_compiler_type=none
3702  if test "$am_compiler_list" = ""; then
3703     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3704  fi
3705  am__universal=false
3706  case " $depcc " in #(
3707     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3708     esac
3709
3710  for depmode in $am_compiler_list; do
3711    # Setup a source with many dependencies, because some compilers
3712    # like to wrap large dependency lists on column 80 (with \), and
3713    # we should not choose a depcomp mode which is confused by this.
3714    #
3715    # We need to recreate these files for each test, as the compiler may
3716    # overwrite some of them when testing with obscure command lines.
3717    # This happens at least with the AIX C compiler.
3718    : > sub/conftest.c
3719    for i in 1 2 3 4 5 6; do
3720      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3721      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3722      # Solaris 8's {/usr,}/bin/sh.
3723      touch sub/conftst$i.h
3724    done
3725    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3726
3727    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3728    # mode.  It turns out that the SunPro C++ compiler does not properly
3729    # handle `-M -o', and we need to detect this.  Also, some Intel
3730    # versions had trouble with output in subdirs
3731    am__obj=sub/conftest.${OBJEXT-o}
3732    am__minus_obj="-o $am__obj"
3733    case $depmode in
3734    gcc)
3735      # This depmode causes a compiler race in universal mode.
3736      test "$am__universal" = false || continue
3737      ;;
3738    nosideeffect)
3739      # after this tag, mechanisms are not by side-effect, so they'll
3740      # only be used when explicitly requested
3741      if test "x$enable_dependency_tracking" = xyes; then
3742	continue
3743      else
3744	break
3745      fi
3746      ;;
3747    msvisualcpp | msvcmsys)
3748      # This compiler won't grok `-c -o', but also, the minuso test has
3749      # not run yet.  These depmodes are late enough in the game, and
3750      # so weak that their functioning should not be impacted.
3751      am__obj=conftest.${OBJEXT-o}
3752      am__minus_obj=
3753      ;;
3754    none) break ;;
3755    esac
3756    if depmode=$depmode \
3757       source=sub/conftest.c object=$am__obj \
3758       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3759       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3760         >/dev/null 2>conftest.err &&
3761       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3762       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3763       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3764       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3765      # icc doesn't choke on unknown options, it will just issue warnings
3766      # or remarks (even with -Werror).  So we grep stderr for any message
3767      # that says an option was ignored or not supported.
3768      # When given -MP, icc 7.0 and 7.1 complain thusly:
3769      #   icc: Command line warning: ignoring option '-M'; no argument required
3770      # The diagnosis changed in icc 8.0:
3771      #   icc: Command line remark: option '-MP' not supported
3772      if (grep 'ignoring option' conftest.err ||
3773          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3774        am_cv_CC_dependencies_compiler_type=$depmode
3775        break
3776      fi
3777    fi
3778  done
3779
3780  cd ..
3781  rm -rf conftest.dir
3782else
3783  am_cv_CC_dependencies_compiler_type=none
3784fi
3785
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3788$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3789CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3790
3791 if
3792  test "x$enable_dependency_tracking" != xno \
3793  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3794  am__fastdepCC_TRUE=
3795  am__fastdepCC_FALSE='#'
3796else
3797  am__fastdepCC_TRUE='#'
3798  am__fastdepCC_FALSE=
3799fi
3800
3801
3802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3803$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3804if ${ac_cv_prog_cc_c99+:} false; then :
3805  $as_echo_n "(cached) " >&6
3806else
3807  ac_cv_prog_cc_c99=no
3808ac_save_CC=$CC
3809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810/* end confdefs.h.  */
3811#include <stdarg.h>
3812#include <stdbool.h>
3813#include <stdlib.h>
3814#include <wchar.h>
3815#include <stdio.h>
3816
3817// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3818#define debug(...) fprintf (stderr, __VA_ARGS__)
3819#define showlist(...) puts (#__VA_ARGS__)
3820#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3821static void
3822test_varargs_macros (void)
3823{
3824  int x = 1234;
3825  int y = 5678;
3826  debug ("Flag");
3827  debug ("X = %d\n", x);
3828  showlist (The first, second, and third items.);
3829  report (x>y, "x is %d but y is %d", x, y);
3830}
3831
3832// Check long long types.
3833#define BIG64 18446744073709551615ull
3834#define BIG32 4294967295ul
3835#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3836#if !BIG_OK
3837  your preprocessor is broken;
3838#endif
3839#if BIG_OK
3840#else
3841  your preprocessor is broken;
3842#endif
3843static long long int bignum = -9223372036854775807LL;
3844static unsigned long long int ubignum = BIG64;
3845
3846struct incomplete_array
3847{
3848  int datasize;
3849  double data[];
3850};
3851
3852struct named_init {
3853  int number;
3854  const wchar_t *name;
3855  double average;
3856};
3857
3858typedef const char *ccp;
3859
3860static inline int
3861test_restrict (ccp restrict text)
3862{
3863  // See if C++-style comments work.
3864  // Iterate through items via the restricted pointer.
3865  // Also check for declarations in for loops.
3866  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3867    continue;
3868  return 0;
3869}
3870
3871// Check varargs and va_copy.
3872static void
3873test_varargs (const char *format, ...)
3874{
3875  va_list args;
3876  va_start (args, format);
3877  va_list args_copy;
3878  va_copy (args_copy, args);
3879
3880  const char *str;
3881  int number;
3882  float fnumber;
3883
3884  while (*format)
3885    {
3886      switch (*format++)
3887	{
3888	case 's': // string
3889	  str = va_arg (args_copy, const char *);
3890	  break;
3891	case 'd': // int
3892	  number = va_arg (args_copy, int);
3893	  break;
3894	case 'f': // float
3895	  fnumber = va_arg (args_copy, double);
3896	  break;
3897	default:
3898	  break;
3899	}
3900    }
3901  va_end (args_copy);
3902  va_end (args);
3903}
3904
3905int
3906main ()
3907{
3908
3909  // Check bool.
3910  _Bool success = false;
3911
3912  // Check restrict.
3913  if (test_restrict ("String literal") == 0)
3914    success = true;
3915  char *restrict newvar = "Another string";
3916
3917  // Check varargs.
3918  test_varargs ("s, d' f .", "string", 65, 34.234);
3919  test_varargs_macros ();
3920
3921  // Check flexible array members.
3922  struct incomplete_array *ia =
3923    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3924  ia->datasize = 10;
3925  for (int i = 0; i < ia->datasize; ++i)
3926    ia->data[i] = i * 1.234;
3927
3928  // Check named initializers.
3929  struct named_init ni = {
3930    .number = 34,
3931    .name = L"Test wide string",
3932    .average = 543.34343,
3933  };
3934
3935  ni.number = 58;
3936
3937  int dynamic_array[ni.number];
3938  dynamic_array[ni.number - 1] = 543;
3939
3940  // work around unused variable warnings
3941  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3942	  || dynamic_array[ni.number - 1] != 543);
3943
3944  ;
3945  return 0;
3946}
3947_ACEOF
3948for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3949do
3950  CC="$ac_save_CC $ac_arg"
3951  if ac_fn_c_try_compile "$LINENO"; then :
3952  ac_cv_prog_cc_c99=$ac_arg
3953fi
3954rm -f core conftest.err conftest.$ac_objext
3955  test "x$ac_cv_prog_cc_c99" != "xno" && break
3956done
3957rm -f conftest.$ac_ext
3958CC=$ac_save_CC
3959
3960fi
3961# AC_CACHE_VAL
3962case "x$ac_cv_prog_cc_c99" in
3963  x)
3964    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3965$as_echo "none needed" >&6; } ;;
3966  xno)
3967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3968$as_echo "unsupported" >&6; } ;;
3969  *)
3970    CC="$CC $ac_cv_prog_cc_c99"
3971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3972$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3973esac
3974if test "x$ac_cv_prog_cc_c99" != xno; then :
3975
3976fi
3977
3978
3979
3980ac_ext=c
3981ac_cpp='$CPP $CPPFLAGS'
3982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3986$as_echo_n "checking how to run the C preprocessor... " >&6; }
3987# On Suns, sometimes $CPP names a directory.
3988if test -n "$CPP" && test -d "$CPP"; then
3989  CPP=
3990fi
3991if test -z "$CPP"; then
3992  if ${ac_cv_prog_CPP+:} false; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995      # Double quotes because CPP needs to be expanded
3996    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3997    do
3998      ac_preproc_ok=false
3999for ac_c_preproc_warn_flag in '' yes
4000do
4001  # Use a header file that comes with gcc, so configuring glibc
4002  # with a fresh cross-compiler works.
4003  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4004  # <limits.h> exists even on freestanding compilers.
4005  # On the NeXT, cc -E runs the code through the compiler's parser,
4006  # not just through cpp. "Syntax error" is here to catch this case.
4007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008/* end confdefs.h.  */
4009#ifdef __STDC__
4010# include <limits.h>
4011#else
4012# include <assert.h>
4013#endif
4014		     Syntax error
4015_ACEOF
4016if ac_fn_c_try_cpp "$LINENO"; then :
4017
4018else
4019  # Broken: fails on valid input.
4020continue
4021fi
4022rm -f conftest.err conftest.i conftest.$ac_ext
4023
4024  # OK, works on sane cases.  Now check whether nonexistent headers
4025  # can be detected and how.
4026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028#include <ac_nonexistent.h>
4029_ACEOF
4030if ac_fn_c_try_cpp "$LINENO"; then :
4031  # Broken: success on invalid input.
4032continue
4033else
4034  # Passes both tests.
4035ac_preproc_ok=:
4036break
4037fi
4038rm -f conftest.err conftest.i conftest.$ac_ext
4039
4040done
4041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4042rm -f conftest.i conftest.err conftest.$ac_ext
4043if $ac_preproc_ok; then :
4044  break
4045fi
4046
4047    done
4048    ac_cv_prog_CPP=$CPP
4049
4050fi
4051  CPP=$ac_cv_prog_CPP
4052else
4053  ac_cv_prog_CPP=$CPP
4054fi
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4056$as_echo "$CPP" >&6; }
4057ac_preproc_ok=false
4058for ac_c_preproc_warn_flag in '' yes
4059do
4060  # Use a header file that comes with gcc, so configuring glibc
4061  # with a fresh cross-compiler works.
4062  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4063  # <limits.h> exists even on freestanding compilers.
4064  # On the NeXT, cc -E runs the code through the compiler's parser,
4065  # not just through cpp. "Syntax error" is here to catch this case.
4066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067/* end confdefs.h.  */
4068#ifdef __STDC__
4069# include <limits.h>
4070#else
4071# include <assert.h>
4072#endif
4073		     Syntax error
4074_ACEOF
4075if ac_fn_c_try_cpp "$LINENO"; then :
4076
4077else
4078  # Broken: fails on valid input.
4079continue
4080fi
4081rm -f conftest.err conftest.i conftest.$ac_ext
4082
4083  # OK, works on sane cases.  Now check whether nonexistent headers
4084  # can be detected and how.
4085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h.  */
4087#include <ac_nonexistent.h>
4088_ACEOF
4089if ac_fn_c_try_cpp "$LINENO"; then :
4090  # Broken: success on invalid input.
4091continue
4092else
4093  # Passes both tests.
4094ac_preproc_ok=:
4095break
4096fi
4097rm -f conftest.err conftest.i conftest.$ac_ext
4098
4099done
4100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4101rm -f conftest.i conftest.err conftest.$ac_ext
4102if $ac_preproc_ok; then :
4103
4104else
4105  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4108See \`config.log' for more details" "$LINENO" 5; }
4109fi
4110
4111ac_ext=c
4112ac_cpp='$CPP $CPPFLAGS'
4113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116
4117
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4119$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4120if ${ac_cv_path_GREP+:} false; then :
4121  $as_echo_n "(cached) " >&6
4122else
4123  if test -z "$GREP"; then
4124  ac_path_GREP_found=false
4125  # Loop through the user's path and test for each of PROGNAME-LIST
4126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4128do
4129  IFS=$as_save_IFS
4130  test -z "$as_dir" && as_dir=.
4131    for ac_prog in grep ggrep; do
4132    for ac_exec_ext in '' $ac_executable_extensions; do
4133      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4134      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4135# Check for GNU ac_path_GREP and select it if it is found.
4136  # Check for GNU $ac_path_GREP
4137case `"$ac_path_GREP" --version 2>&1` in
4138*GNU*)
4139  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4140*)
4141  ac_count=0
4142  $as_echo_n 0123456789 >"conftest.in"
4143  while :
4144  do
4145    cat "conftest.in" "conftest.in" >"conftest.tmp"
4146    mv "conftest.tmp" "conftest.in"
4147    cp "conftest.in" "conftest.nl"
4148    $as_echo 'GREP' >> "conftest.nl"
4149    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4150    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4151    as_fn_arith $ac_count + 1 && ac_count=$as_val
4152    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4153      # Best one so far, save it but keep looking for a better one
4154      ac_cv_path_GREP="$ac_path_GREP"
4155      ac_path_GREP_max=$ac_count
4156    fi
4157    # 10*(2^10) chars as input seems more than enough
4158    test $ac_count -gt 10 && break
4159  done
4160  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161esac
4162
4163      $ac_path_GREP_found && break 3
4164    done
4165  done
4166  done
4167IFS=$as_save_IFS
4168  if test -z "$ac_cv_path_GREP"; then
4169    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4170  fi
4171else
4172  ac_cv_path_GREP=$GREP
4173fi
4174
4175fi
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4177$as_echo "$ac_cv_path_GREP" >&6; }
4178 GREP="$ac_cv_path_GREP"
4179
4180
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4182$as_echo_n "checking for egrep... " >&6; }
4183if ${ac_cv_path_EGREP+:} false; then :
4184  $as_echo_n "(cached) " >&6
4185else
4186  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4187   then ac_cv_path_EGREP="$GREP -E"
4188   else
4189     if test -z "$EGREP"; then
4190  ac_path_EGREP_found=false
4191  # Loop through the user's path and test for each of PROGNAME-LIST
4192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194do
4195  IFS=$as_save_IFS
4196  test -z "$as_dir" && as_dir=.
4197    for ac_prog in egrep; do
4198    for ac_exec_ext in '' $ac_executable_extensions; do
4199      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4200      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4201# Check for GNU ac_path_EGREP and select it if it is found.
4202  # Check for GNU $ac_path_EGREP
4203case `"$ac_path_EGREP" --version 2>&1` in
4204*GNU*)
4205  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4206*)
4207  ac_count=0
4208  $as_echo_n 0123456789 >"conftest.in"
4209  while :
4210  do
4211    cat "conftest.in" "conftest.in" >"conftest.tmp"
4212    mv "conftest.tmp" "conftest.in"
4213    cp "conftest.in" "conftest.nl"
4214    $as_echo 'EGREP' >> "conftest.nl"
4215    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4217    as_fn_arith $ac_count + 1 && ac_count=$as_val
4218    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4219      # Best one so far, save it but keep looking for a better one
4220      ac_cv_path_EGREP="$ac_path_EGREP"
4221      ac_path_EGREP_max=$ac_count
4222    fi
4223    # 10*(2^10) chars as input seems more than enough
4224    test $ac_count -gt 10 && break
4225  done
4226  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227esac
4228
4229      $ac_path_EGREP_found && break 3
4230    done
4231  done
4232  done
4233IFS=$as_save_IFS
4234  if test -z "$ac_cv_path_EGREP"; then
4235    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4236  fi
4237else
4238  ac_cv_path_EGREP=$EGREP
4239fi
4240
4241   fi
4242fi
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4244$as_echo "$ac_cv_path_EGREP" >&6; }
4245 EGREP="$ac_cv_path_EGREP"
4246
4247
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4249$as_echo_n "checking for ANSI C header files... " >&6; }
4250if ${ac_cv_header_stdc+:} false; then :
4251  $as_echo_n "(cached) " >&6
4252else
4253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254/* end confdefs.h.  */
4255#include <stdlib.h>
4256#include <stdarg.h>
4257#include <string.h>
4258#include <float.h>
4259
4260int
4261main ()
4262{
4263
4264  ;
4265  return 0;
4266}
4267_ACEOF
4268if ac_fn_c_try_compile "$LINENO"; then :
4269  ac_cv_header_stdc=yes
4270else
4271  ac_cv_header_stdc=no
4272fi
4273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274
4275if test $ac_cv_header_stdc = yes; then
4276  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279#include <string.h>
4280
4281_ACEOF
4282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4283  $EGREP "memchr" >/dev/null 2>&1; then :
4284
4285else
4286  ac_cv_header_stdc=no
4287fi
4288rm -f conftest*
4289
4290fi
4291
4292if test $ac_cv_header_stdc = yes; then
4293  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295/* end confdefs.h.  */
4296#include <stdlib.h>
4297
4298_ACEOF
4299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300  $EGREP "free" >/dev/null 2>&1; then :
4301
4302else
4303  ac_cv_header_stdc=no
4304fi
4305rm -f conftest*
4306
4307fi
4308
4309if test $ac_cv_header_stdc = yes; then
4310  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4311  if test "$cross_compiling" = yes; then :
4312  :
4313else
4314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315/* end confdefs.h.  */
4316#include <ctype.h>
4317#include <stdlib.h>
4318#if ((' ' & 0x0FF) == 0x020)
4319# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4320# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4321#else
4322# define ISLOWER(c) \
4323		   (('a' <= (c) && (c) <= 'i') \
4324		     || ('j' <= (c) && (c) <= 'r') \
4325		     || ('s' <= (c) && (c) <= 'z'))
4326# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4327#endif
4328
4329#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4330int
4331main ()
4332{
4333  int i;
4334  for (i = 0; i < 256; i++)
4335    if (XOR (islower (i), ISLOWER (i))
4336	|| toupper (i) != TOUPPER (i))
4337      return 2;
4338  return 0;
4339}
4340_ACEOF
4341if ac_fn_c_try_run "$LINENO"; then :
4342
4343else
4344  ac_cv_header_stdc=no
4345fi
4346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4347  conftest.$ac_objext conftest.beam conftest.$ac_ext
4348fi
4349
4350fi
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4353$as_echo "$ac_cv_header_stdc" >&6; }
4354if test $ac_cv_header_stdc = yes; then
4355
4356$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4357
4358fi
4359
4360# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4361for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4362		  inttypes.h stdint.h unistd.h
4363do :
4364  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4366"
4367if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4368  cat >>confdefs.h <<_ACEOF
4369#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4370_ACEOF
4371
4372fi
4373
4374done
4375
4376
4377
4378
4379if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4380	if test -n "$ac_tool_prefix"; then
4381  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4382set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384$as_echo_n "checking for $ac_word... " >&6; }
4385if ${ac_cv_path_PKG_CONFIG+:} false; then :
4386  $as_echo_n "(cached) " >&6
4387else
4388  case $PKG_CONFIG in
4389  [\\/]* | ?:[\\/]*)
4390  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4391  ;;
4392  *)
4393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396  IFS=$as_save_IFS
4397  test -z "$as_dir" && as_dir=.
4398    for ac_exec_ext in '' $ac_executable_extensions; do
4399  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402    break 2
4403  fi
4404done
4405  done
4406IFS=$as_save_IFS
4407
4408  ;;
4409esac
4410fi
4411PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4412if test -n "$PKG_CONFIG"; then
4413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4414$as_echo "$PKG_CONFIG" >&6; }
4415else
4416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417$as_echo "no" >&6; }
4418fi
4419
4420
4421fi
4422if test -z "$ac_cv_path_PKG_CONFIG"; then
4423  ac_pt_PKG_CONFIG=$PKG_CONFIG
4424  # Extract the first word of "pkg-config", so it can be a program name with args.
4425set dummy pkg-config; ac_word=$2
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427$as_echo_n "checking for $ac_word... " >&6; }
4428if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4429  $as_echo_n "(cached) " >&6
4430else
4431  case $ac_pt_PKG_CONFIG in
4432  [\\/]* | ?:[\\/]*)
4433  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4434  ;;
4435  *)
4436  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437for as_dir in $PATH
4438do
4439  IFS=$as_save_IFS
4440  test -z "$as_dir" && as_dir=.
4441    for ac_exec_ext in '' $ac_executable_extensions; do
4442  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445    break 2
4446  fi
4447done
4448  done
4449IFS=$as_save_IFS
4450
4451  ;;
4452esac
4453fi
4454ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4455if test -n "$ac_pt_PKG_CONFIG"; then
4456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4457$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4458else
4459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460$as_echo "no" >&6; }
4461fi
4462
4463  if test "x$ac_pt_PKG_CONFIG" = x; then
4464    PKG_CONFIG=""
4465  else
4466    case $cross_compiling:$ac_tool_warned in
4467yes:)
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4470ac_tool_warned=yes ;;
4471esac
4472    PKG_CONFIG=$ac_pt_PKG_CONFIG
4473  fi
4474else
4475  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4476fi
4477
4478fi
4479if test -n "$PKG_CONFIG"; then
4480	_pkg_min_version=0.9.0
4481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4482$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4483	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4484		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4485$as_echo "yes" >&6; }
4486	else
4487		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488$as_echo "no" >&6; }
4489		PKG_CONFIG=""
4490	fi
4491
4492fi
4493# Make sure we can run config.sub.
4494$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4495  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4496
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4498$as_echo_n "checking build system type... " >&6; }
4499if ${ac_cv_build+:} false; then :
4500  $as_echo_n "(cached) " >&6
4501else
4502  ac_build_alias=$build_alias
4503test "x$ac_build_alias" = x &&
4504  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4505test "x$ac_build_alias" = x &&
4506  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4507ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4508  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4509
4510fi
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4512$as_echo "$ac_cv_build" >&6; }
4513case $ac_cv_build in
4514*-*-*) ;;
4515*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4516esac
4517build=$ac_cv_build
4518ac_save_IFS=$IFS; IFS='-'
4519set x $ac_cv_build
4520shift
4521build_cpu=$1
4522build_vendor=$2
4523shift; shift
4524# Remember, the first character of IFS is used to create $*,
4525# except with old shells:
4526build_os=$*
4527IFS=$ac_save_IFS
4528case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4529
4530
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4532$as_echo_n "checking host system type... " >&6; }
4533if ${ac_cv_host+:} false; then :
4534  $as_echo_n "(cached) " >&6
4535else
4536  if test "x$host_alias" = x; then
4537  ac_cv_host=$ac_cv_build
4538else
4539  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4540    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4541fi
4542
4543fi
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4545$as_echo "$ac_cv_host" >&6; }
4546case $ac_cv_host in
4547*-*-*) ;;
4548*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4549esac
4550host=$ac_cv_host
4551ac_save_IFS=$IFS; IFS='-'
4552set x $ac_cv_host
4553shift
4554host_cpu=$1
4555host_vendor=$2
4556shift; shift
4557# Remember, the first character of IFS is used to create $*,
4558# except with old shells:
4559host_os=$*
4560IFS=$ac_save_IFS
4561case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4562
4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4565$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4566if ${ac_cv_path_SED+:} false; then :
4567  $as_echo_n "(cached) " >&6
4568else
4569            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4570     for ac_i in 1 2 3 4 5 6 7; do
4571       ac_script="$ac_script$as_nl$ac_script"
4572     done
4573     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4574     { ac_script=; unset ac_script;}
4575     if test -z "$SED"; then
4576  ac_path_SED_found=false
4577  # Loop through the user's path and test for each of PROGNAME-LIST
4578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581  IFS=$as_save_IFS
4582  test -z "$as_dir" && as_dir=.
4583    for ac_prog in sed gsed; do
4584    for ac_exec_ext in '' $ac_executable_extensions; do
4585      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4586      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4587# Check for GNU ac_path_SED and select it if it is found.
4588  # Check for GNU $ac_path_SED
4589case `"$ac_path_SED" --version 2>&1` in
4590*GNU*)
4591  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4592*)
4593  ac_count=0
4594  $as_echo_n 0123456789 >"conftest.in"
4595  while :
4596  do
4597    cat "conftest.in" "conftest.in" >"conftest.tmp"
4598    mv "conftest.tmp" "conftest.in"
4599    cp "conftest.in" "conftest.nl"
4600    $as_echo '' >> "conftest.nl"
4601    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603    as_fn_arith $ac_count + 1 && ac_count=$as_val
4604    if test $ac_count -gt ${ac_path_SED_max-0}; then
4605      # Best one so far, save it but keep looking for a better one
4606      ac_cv_path_SED="$ac_path_SED"
4607      ac_path_SED_max=$ac_count
4608    fi
4609    # 10*(2^10) chars as input seems more than enough
4610    test $ac_count -gt 10 && break
4611  done
4612  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613esac
4614
4615      $ac_path_SED_found && break 3
4616    done
4617  done
4618  done
4619IFS=$as_save_IFS
4620  if test -z "$ac_cv_path_SED"; then
4621    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4622  fi
4623else
4624  ac_cv_path_SED=$SED
4625fi
4626
4627fi
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4629$as_echo "$ac_cv_path_SED" >&6; }
4630 SED="$ac_cv_path_SED"
4631  rm -f conftest.sed
4632
4633
4634
4635
4636
4637if  test "x$GCC" = xyes ; then
4638    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4639-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4640-Wbad-function-cast -Wformat=2"
4641    case `$CC -dumpversion` in
4642    3.4.* | 4.*)
4643	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4644	;;
4645    esac
4646else
4647    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4648if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4649  SUNCC="yes"
4650else
4651  SUNCC="no"
4652fi
4653
4654    if test "x$SUNCC" = "xyes"; then
4655	CWARNFLAGS="-v"
4656    fi
4657fi
4658
4659
4660
4661# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4662
4663
4664
4665# Check whether --enable-strict-compilation was given.
4666if test "${enable_strict_compilation+set}" = set; then :
4667  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4668else
4669  STRICT_COMPILE=no
4670fi
4671
4672if test "x$STRICT_COMPILE" = "xyes"; then
4673	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4674if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4675  SUNCC="yes"
4676else
4677  SUNCC="no"
4678fi
4679
4680	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4681if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4682  INTELCC="yes"
4683else
4684  INTELCC="no"
4685fi
4686
4687	if test "x$GCC" = xyes ; then
4688		STRICT_CFLAGS="-pedantic -Werror"
4689	elif test "x$SUNCC" = "xyes"; then
4690		STRICT_CFLAGS="-errwarn"
4691    elif test "x$INTELCC" = "xyes"; then
4692		STRICT_CFLAGS="-Werror"
4693	fi
4694fi
4695CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4696
4697
4698
4699
4700cat >>confdefs.h <<_ACEOF
4701#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4702_ACEOF
4703
4704	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4705	if test "x$PVM" = "x"; then
4706		PVM="0"
4707	fi
4708
4709cat >>confdefs.h <<_ACEOF
4710#define PACKAGE_VERSION_MINOR $PVM
4711_ACEOF
4712
4713	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4714	if test "x$PVP" = "x"; then
4715		PVP="0"
4716	fi
4717
4718cat >>confdefs.h <<_ACEOF
4719#define PACKAGE_VERSION_PATCHLEVEL $PVP
4720_ACEOF
4721
4722
4723
4724CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4725mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4726|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4727echo 'git directory not found: installing possibly empty changelog.' >&2)"
4728
4729
4730
4731
4732macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4733INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4734mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4735|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4736echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4737
4738
4739
4740
4741
4742
4743if test x$APP_MAN_SUFFIX = x    ; then
4744    APP_MAN_SUFFIX=1
4745fi
4746if test x$APP_MAN_DIR = x    ; then
4747    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4748fi
4749
4750if test x$LIB_MAN_SUFFIX = x    ; then
4751    LIB_MAN_SUFFIX=3
4752fi
4753if test x$LIB_MAN_DIR = x    ; then
4754    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4755fi
4756
4757if test x$FILE_MAN_SUFFIX = x    ; then
4758    case $host_os in
4759	solaris*)	FILE_MAN_SUFFIX=4  ;;
4760	*)		FILE_MAN_SUFFIX=5  ;;
4761    esac
4762fi
4763if test x$FILE_MAN_DIR = x    ; then
4764    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4765fi
4766
4767if test x$MISC_MAN_SUFFIX = x    ; then
4768    case $host_os in
4769	solaris*)	MISC_MAN_SUFFIX=5  ;;
4770	*)		MISC_MAN_SUFFIX=7  ;;
4771    esac
4772fi
4773if test x$MISC_MAN_DIR = x    ; then
4774    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4775fi
4776
4777if test x$DRIVER_MAN_SUFFIX = x    ; then
4778    case $host_os in
4779	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4780	*)		DRIVER_MAN_SUFFIX=4  ;;
4781    esac
4782fi
4783if test x$DRIVER_MAN_DIR = x    ; then
4784    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4785fi
4786
4787if test x$ADMIN_MAN_SUFFIX = x    ; then
4788    case $host_os in
4789	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4790	*)		ADMIN_MAN_SUFFIX=8  ;;
4791    esac
4792fi
4793if test x$ADMIN_MAN_DIR = x    ; then
4794    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4795fi
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811XORG_MAN_PAGE="X Version 11"
4812
4813MAN_SUBSTS="\
4814	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4815	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4816	-e 's|__xservername__|Xorg|g' \
4817	-e 's|__xconfigfile__|xorg.conf|g' \
4818	-e 's|__projectroot__|\$(prefix)|g' \
4819	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4820	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4821	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4822	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4823	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4824	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4825	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4826
4827
4828
4829# Check whether --enable-silent-rules was given.
4830if test "${enable_silent_rules+set}" = set; then :
4831  enableval=$enable_silent_rules;
4832fi
4833
4834case $enable_silent_rules in
4835yes) AM_DEFAULT_VERBOSITY=0;;
4836no)  AM_DEFAULT_VERBOSITY=1;;
4837*)   AM_DEFAULT_VERBOSITY=0;;
4838esac
4839AM_BACKSLASH='\'
4840
4841
4842ac_config_headers="$ac_config_headers config.h"
4843
4844
4845# Check for progs
4846ac_ext=c
4847ac_cpp='$CPP $CPPFLAGS'
4848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851if test -n "$ac_tool_prefix"; then
4852  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4853set dummy ${ac_tool_prefix}gcc; ac_word=$2
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4856if ${ac_cv_prog_CC+:} false; then :
4857  $as_echo_n "(cached) " >&6
4858else
4859  if test -n "$CC"; then
4860  ac_cv_prog_CC="$CC" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865  IFS=$as_save_IFS
4866  test -z "$as_dir" && as_dir=.
4867    for ac_exec_ext in '' $ac_executable_extensions; do
4868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871    break 2
4872  fi
4873done
4874  done
4875IFS=$as_save_IFS
4876
4877fi
4878fi
4879CC=$ac_cv_prog_CC
4880if test -n "$CC"; then
4881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4882$as_echo "$CC" >&6; }
4883else
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885$as_echo "no" >&6; }
4886fi
4887
4888
4889fi
4890if test -z "$ac_cv_prog_CC"; then
4891  ac_ct_CC=$CC
4892  # Extract the first word of "gcc", so it can be a program name with args.
4893set dummy gcc; ac_word=$2
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895$as_echo_n "checking for $ac_word... " >&6; }
4896if ${ac_cv_prog_ac_ct_CC+:} false; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  if test -n "$ac_ct_CC"; then
4900  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905  IFS=$as_save_IFS
4906  test -z "$as_dir" && as_dir=.
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909    ac_cv_prog_ac_ct_CC="gcc"
4910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911    break 2
4912  fi
4913done
4914  done
4915IFS=$as_save_IFS
4916
4917fi
4918fi
4919ac_ct_CC=$ac_cv_prog_ac_ct_CC
4920if test -n "$ac_ct_CC"; then
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4922$as_echo "$ac_ct_CC" >&6; }
4923else
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927
4928  if test "x$ac_ct_CC" = x; then
4929    CC=""
4930  else
4931    case $cross_compiling:$ac_tool_warned in
4932yes:)
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935ac_tool_warned=yes ;;
4936esac
4937    CC=$ac_ct_CC
4938  fi
4939else
4940  CC="$ac_cv_prog_CC"
4941fi
4942
4943if test -z "$CC"; then
4944          if test -n "$ac_tool_prefix"; then
4945    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4946set dummy ${ac_tool_prefix}cc; ac_word=$2
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948$as_echo_n "checking for $ac_word... " >&6; }
4949if ${ac_cv_prog_CC+:} false; then :
4950  $as_echo_n "(cached) " >&6
4951else
4952  if test -n "$CC"; then
4953  ac_cv_prog_CC="$CC" # Let the user override the test.
4954else
4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958  IFS=$as_save_IFS
4959  test -z "$as_dir" && as_dir=.
4960    for ac_exec_ext in '' $ac_executable_extensions; do
4961  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962    ac_cv_prog_CC="${ac_tool_prefix}cc"
4963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964    break 2
4965  fi
4966done
4967  done
4968IFS=$as_save_IFS
4969
4970fi
4971fi
4972CC=$ac_cv_prog_CC
4973if test -n "$CC"; then
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4975$as_echo "$CC" >&6; }
4976else
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978$as_echo "no" >&6; }
4979fi
4980
4981
4982  fi
4983fi
4984if test -z "$CC"; then
4985  # Extract the first word of "cc", so it can be a program name with args.
4986set dummy cc; ac_word=$2
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988$as_echo_n "checking for $ac_word... " >&6; }
4989if ${ac_cv_prog_CC+:} false; then :
4990  $as_echo_n "(cached) " >&6
4991else
4992  if test -n "$CC"; then
4993  ac_cv_prog_CC="$CC" # Let the user override the test.
4994else
4995  ac_prog_rejected=no
4996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997for as_dir in $PATH
4998do
4999  IFS=$as_save_IFS
5000  test -z "$as_dir" && as_dir=.
5001    for ac_exec_ext in '' $ac_executable_extensions; do
5002  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5004       ac_prog_rejected=yes
5005       continue
5006     fi
5007    ac_cv_prog_CC="cc"
5008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009    break 2
5010  fi
5011done
5012  done
5013IFS=$as_save_IFS
5014
5015if test $ac_prog_rejected = yes; then
5016  # We found a bogon in the path, so make sure we never use it.
5017  set dummy $ac_cv_prog_CC
5018  shift
5019  if test $# != 0; then
5020    # We chose a different compiler from the bogus one.
5021    # However, it has the same basename, so the bogon will be chosen
5022    # first if we set CC to just the basename; use the full file name.
5023    shift
5024    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5025  fi
5026fi
5027fi
5028fi
5029CC=$ac_cv_prog_CC
5030if test -n "$CC"; then
5031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5032$as_echo "$CC" >&6; }
5033else
5034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
5036fi
5037
5038
5039fi
5040if test -z "$CC"; then
5041  if test -n "$ac_tool_prefix"; then
5042  for ac_prog in cl.exe
5043  do
5044    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5045set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047$as_echo_n "checking for $ac_word... " >&6; }
5048if ${ac_cv_prog_CC+:} false; then :
5049  $as_echo_n "(cached) " >&6
5050else
5051  if test -n "$CC"; then
5052  ac_cv_prog_CC="$CC" # Let the user override the test.
5053else
5054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055for as_dir in $PATH
5056do
5057  IFS=$as_save_IFS
5058  test -z "$as_dir" && as_dir=.
5059    for ac_exec_ext in '' $ac_executable_extensions; do
5060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063    break 2
5064  fi
5065done
5066  done
5067IFS=$as_save_IFS
5068
5069fi
5070fi
5071CC=$ac_cv_prog_CC
5072if test -n "$CC"; then
5073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5074$as_echo "$CC" >&6; }
5075else
5076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077$as_echo "no" >&6; }
5078fi
5079
5080
5081    test -n "$CC" && break
5082  done
5083fi
5084if test -z "$CC"; then
5085  ac_ct_CC=$CC
5086  for ac_prog in cl.exe
5087do
5088  # Extract the first word of "$ac_prog", so it can be a program name with args.
5089set dummy $ac_prog; ac_word=$2
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091$as_echo_n "checking for $ac_word... " >&6; }
5092if ${ac_cv_prog_ac_ct_CC+:} false; then :
5093  $as_echo_n "(cached) " >&6
5094else
5095  if test -n "$ac_ct_CC"; then
5096  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5097else
5098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099for as_dir in $PATH
5100do
5101  IFS=$as_save_IFS
5102  test -z "$as_dir" && as_dir=.
5103    for ac_exec_ext in '' $ac_executable_extensions; do
5104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105    ac_cv_prog_ac_ct_CC="$ac_prog"
5106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107    break 2
5108  fi
5109done
5110  done
5111IFS=$as_save_IFS
5112
5113fi
5114fi
5115ac_ct_CC=$ac_cv_prog_ac_ct_CC
5116if test -n "$ac_ct_CC"; then
5117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5118$as_echo "$ac_ct_CC" >&6; }
5119else
5120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121$as_echo "no" >&6; }
5122fi
5123
5124
5125  test -n "$ac_ct_CC" && break
5126done
5127
5128  if test "x$ac_ct_CC" = x; then
5129    CC=""
5130  else
5131    case $cross_compiling:$ac_tool_warned in
5132yes:)
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5135ac_tool_warned=yes ;;
5136esac
5137    CC=$ac_ct_CC
5138  fi
5139fi
5140
5141fi
5142
5143
5144test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5146as_fn_error $? "no acceptable C compiler found in \$PATH
5147See \`config.log' for more details" "$LINENO" 5; }
5148
5149# Provide some information about the compiler.
5150$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5151set X $ac_compile
5152ac_compiler=$2
5153for ac_option in --version -v -V -qversion; do
5154  { { ac_try="$ac_compiler $ac_option >&5"
5155case "(($ac_try" in
5156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157  *) ac_try_echo=$ac_try;;
5158esac
5159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5160$as_echo "$ac_try_echo"; } >&5
5161  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5162  ac_status=$?
5163  if test -s conftest.err; then
5164    sed '10a\
5165... rest of stderr output deleted ...
5166         10q' conftest.err >conftest.er1
5167    cat conftest.er1 >&5
5168  fi
5169  rm -f conftest.er1 conftest.err
5170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171  test $ac_status = 0; }
5172done
5173
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5175$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5176if ${ac_cv_c_compiler_gnu+:} false; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180/* end confdefs.h.  */
5181
5182int
5183main ()
5184{
5185#ifndef __GNUC__
5186       choke me
5187#endif
5188
5189  ;
5190  return 0;
5191}
5192_ACEOF
5193if ac_fn_c_try_compile "$LINENO"; then :
5194  ac_compiler_gnu=yes
5195else
5196  ac_compiler_gnu=no
5197fi
5198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199ac_cv_c_compiler_gnu=$ac_compiler_gnu
5200
5201fi
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5203$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5204if test $ac_compiler_gnu = yes; then
5205  GCC=yes
5206else
5207  GCC=
5208fi
5209ac_test_CFLAGS=${CFLAGS+set}
5210ac_save_CFLAGS=$CFLAGS
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5212$as_echo_n "checking whether $CC accepts -g... " >&6; }
5213if ${ac_cv_prog_cc_g+:} false; then :
5214  $as_echo_n "(cached) " >&6
5215else
5216  ac_save_c_werror_flag=$ac_c_werror_flag
5217   ac_c_werror_flag=yes
5218   ac_cv_prog_cc_g=no
5219   CFLAGS="-g"
5220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h.  */
5222
5223int
5224main ()
5225{
5226
5227  ;
5228  return 0;
5229}
5230_ACEOF
5231if ac_fn_c_try_compile "$LINENO"; then :
5232  ac_cv_prog_cc_g=yes
5233else
5234  CFLAGS=""
5235      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236/* end confdefs.h.  */
5237
5238int
5239main ()
5240{
5241
5242  ;
5243  return 0;
5244}
5245_ACEOF
5246if ac_fn_c_try_compile "$LINENO"; then :
5247
5248else
5249  ac_c_werror_flag=$ac_save_c_werror_flag
5250	 CFLAGS="-g"
5251	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252/* end confdefs.h.  */
5253
5254int
5255main ()
5256{
5257
5258  ;
5259  return 0;
5260}
5261_ACEOF
5262if ac_fn_c_try_compile "$LINENO"; then :
5263  ac_cv_prog_cc_g=yes
5264fi
5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266fi
5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268fi
5269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270   ac_c_werror_flag=$ac_save_c_werror_flag
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5273$as_echo "$ac_cv_prog_cc_g" >&6; }
5274if test "$ac_test_CFLAGS" = set; then
5275  CFLAGS=$ac_save_CFLAGS
5276elif test $ac_cv_prog_cc_g = yes; then
5277  if test "$GCC" = yes; then
5278    CFLAGS="-g -O2"
5279  else
5280    CFLAGS="-g"
5281  fi
5282else
5283  if test "$GCC" = yes; then
5284    CFLAGS="-O2"
5285  else
5286    CFLAGS=
5287  fi
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5290$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5291if ${ac_cv_prog_cc_c89+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  ac_cv_prog_cc_c89=no
5295ac_save_CC=$CC
5296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298#include <stdarg.h>
5299#include <stdio.h>
5300#include <sys/types.h>
5301#include <sys/stat.h>
5302/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5303struct buf { int x; };
5304FILE * (*rcsopen) (struct buf *, struct stat *, int);
5305static char *e (p, i)
5306     char **p;
5307     int i;
5308{
5309  return p[i];
5310}
5311static char *f (char * (*g) (char **, int), char **p, ...)
5312{
5313  char *s;
5314  va_list v;
5315  va_start (v,p);
5316  s = g (p, va_arg (v,int));
5317  va_end (v);
5318  return s;
5319}
5320
5321/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5322   function prototypes and stuff, but not '\xHH' hex character constants.
5323   These don't provoke an error unfortunately, instead are silently treated
5324   as 'x'.  The following induces an error, until -std is added to get
5325   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5326   array size at least.  It's necessary to write '\x00'==0 to get something
5327   that's true only with -std.  */
5328int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5329
5330/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5331   inside strings and character constants.  */
5332#define FOO(x) 'x'
5333int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5334
5335int test (int i, double x);
5336struct s1 {int (*f) (int a);};
5337struct s2 {int (*f) (double a);};
5338int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5339int argc;
5340char **argv;
5341int
5342main ()
5343{
5344return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5345  ;
5346  return 0;
5347}
5348_ACEOF
5349for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5350	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5351do
5352  CC="$ac_save_CC $ac_arg"
5353  if ac_fn_c_try_compile "$LINENO"; then :
5354  ac_cv_prog_cc_c89=$ac_arg
5355fi
5356rm -f core conftest.err conftest.$ac_objext
5357  test "x$ac_cv_prog_cc_c89" != "xno" && break
5358done
5359rm -f conftest.$ac_ext
5360CC=$ac_save_CC
5361
5362fi
5363# AC_CACHE_VAL
5364case "x$ac_cv_prog_cc_c89" in
5365  x)
5366    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5367$as_echo "none needed" >&6; } ;;
5368  xno)
5369    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5370$as_echo "unsupported" >&6; } ;;
5371  *)
5372    CC="$CC $ac_cv_prog_cc_c89"
5373    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5374$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5375esac
5376if test "x$ac_cv_prog_cc_c89" != xno; then :
5377
5378fi
5379
5380ac_ext=c
5381ac_cpp='$CPP $CPPFLAGS'
5382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385
5386depcc="$CC"   am_compiler_list=
5387
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5389$as_echo_n "checking dependency style of $depcc... " >&6; }
5390if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5391  $as_echo_n "(cached) " >&6
5392else
5393  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5394  # We make a subdir and do the tests there.  Otherwise we can end up
5395  # making bogus files that we don't know about and never remove.  For
5396  # instance it was reported that on HP-UX the gcc test will end up
5397  # making a dummy file named `D' -- because `-MD' means `put the output
5398  # in D'.
5399  mkdir conftest.dir
5400  # Copy depcomp to subdir because otherwise we won't find it if we're
5401  # using a relative directory.
5402  cp "$am_depcomp" conftest.dir
5403  cd conftest.dir
5404  # We will build objects and dependencies in a subdirectory because
5405  # it helps to detect inapplicable dependency modes.  For instance
5406  # both Tru64's cc and ICC support -MD to output dependencies as a
5407  # side effect of compilation, but ICC will put the dependencies in
5408  # the current directory while Tru64 will put them in the object
5409  # directory.
5410  mkdir sub
5411
5412  am_cv_CC_dependencies_compiler_type=none
5413  if test "$am_compiler_list" = ""; then
5414     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5415  fi
5416  am__universal=false
5417  case " $depcc " in #(
5418     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5419     esac
5420
5421  for depmode in $am_compiler_list; do
5422    # Setup a source with many dependencies, because some compilers
5423    # like to wrap large dependency lists on column 80 (with \), and
5424    # we should not choose a depcomp mode which is confused by this.
5425    #
5426    # We need to recreate these files for each test, as the compiler may
5427    # overwrite some of them when testing with obscure command lines.
5428    # This happens at least with the AIX C compiler.
5429    : > sub/conftest.c
5430    for i in 1 2 3 4 5 6; do
5431      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5432      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5433      # Solaris 8's {/usr,}/bin/sh.
5434      touch sub/conftst$i.h
5435    done
5436    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5437
5438    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5439    # mode.  It turns out that the SunPro C++ compiler does not properly
5440    # handle `-M -o', and we need to detect this.  Also, some Intel
5441    # versions had trouble with output in subdirs
5442    am__obj=sub/conftest.${OBJEXT-o}
5443    am__minus_obj="-o $am__obj"
5444    case $depmode in
5445    gcc)
5446      # This depmode causes a compiler race in universal mode.
5447      test "$am__universal" = false || continue
5448      ;;
5449    nosideeffect)
5450      # after this tag, mechanisms are not by side-effect, so they'll
5451      # only be used when explicitly requested
5452      if test "x$enable_dependency_tracking" = xyes; then
5453	continue
5454      else
5455	break
5456      fi
5457      ;;
5458    msvisualcpp | msvcmsys)
5459      # This compiler won't grok `-c -o', but also, the minuso test has
5460      # not run yet.  These depmodes are late enough in the game, and
5461      # so weak that their functioning should not be impacted.
5462      am__obj=conftest.${OBJEXT-o}
5463      am__minus_obj=
5464      ;;
5465    none) break ;;
5466    esac
5467    if depmode=$depmode \
5468       source=sub/conftest.c object=$am__obj \
5469       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5470       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5471         >/dev/null 2>conftest.err &&
5472       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5473       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5474       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5475       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5476      # icc doesn't choke on unknown options, it will just issue warnings
5477      # or remarks (even with -Werror).  So we grep stderr for any message
5478      # that says an option was ignored or not supported.
5479      # When given -MP, icc 7.0 and 7.1 complain thusly:
5480      #   icc: Command line warning: ignoring option '-M'; no argument required
5481      # The diagnosis changed in icc 8.0:
5482      #   icc: Command line remark: option '-MP' not supported
5483      if (grep 'ignoring option' conftest.err ||
5484          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5485        am_cv_CC_dependencies_compiler_type=$depmode
5486        break
5487      fi
5488    fi
5489  done
5490
5491  cd ..
5492  rm -rf conftest.dir
5493else
5494  am_cv_CC_dependencies_compiler_type=none
5495fi
5496
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5499$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5500CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5501
5502 if
5503  test "x$enable_dependency_tracking" != xno \
5504  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5505  am__fastdepCC_TRUE=
5506  am__fastdepCC_FALSE='#'
5507else
5508  am__fastdepCC_TRUE='#'
5509  am__fastdepCC_FALSE=
5510fi
5511
5512
5513case `pwd` in
5514  *\ * | *\	*)
5515    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5516$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5517esac
5518
5519
5520
5521macro_version='2.2.10'
5522macro_revision='1.3175'
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536ltmain="$ac_aux_dir/ltmain.sh"
5537
5538# Backslashify metacharacters that are still active within
5539# double-quoted strings.
5540sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5541
5542# Same as above, but do not quote variable references.
5543double_quote_subst='s/\(["`\\]\)/\\\1/g'
5544
5545# Sed substitution to delay expansion of an escaped shell variable in a
5546# double_quote_subst'ed string.
5547delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5548
5549# Sed substitution to delay expansion of an escaped single quote.
5550delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5551
5552# Sed substitution to avoid accidental globbing in evaled expressions
5553no_glob_subst='s/\*/\\\*/g'
5554
5555ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5556ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5557ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5558
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5560$as_echo_n "checking how to print strings... " >&6; }
5561# Test print first, because it will be a builtin if present.
5562if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5563   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5564  ECHO='print -r --'
5565elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5566  ECHO='printf %s\n'
5567else
5568  # Use this function as a fallback that always works.
5569  func_fallback_echo ()
5570  {
5571    eval 'cat <<_LTECHO_EOF
5572$1
5573_LTECHO_EOF'
5574  }
5575  ECHO='func_fallback_echo'
5576fi
5577
5578# func_echo_all arg...
5579# Invoke $ECHO with all args, space-separated.
5580func_echo_all ()
5581{
5582    $ECHO ""
5583}
5584
5585case "$ECHO" in
5586  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5587$as_echo "printf" >&6; } ;;
5588  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5589$as_echo "print -r" >&6; } ;;
5590  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5591$as_echo "cat" >&6; } ;;
5592esac
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5608$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5609if ${ac_cv_path_SED+:} false; then :
5610  $as_echo_n "(cached) " >&6
5611else
5612            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5613     for ac_i in 1 2 3 4 5 6 7; do
5614       ac_script="$ac_script$as_nl$ac_script"
5615     done
5616     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5617     { ac_script=; unset ac_script;}
5618     if test -z "$SED"; then
5619  ac_path_SED_found=false
5620  # Loop through the user's path and test for each of PROGNAME-LIST
5621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH
5623do
5624  IFS=$as_save_IFS
5625  test -z "$as_dir" && as_dir=.
5626    for ac_prog in sed gsed; do
5627    for ac_exec_ext in '' $ac_executable_extensions; do
5628      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5629      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5630# Check for GNU ac_path_SED and select it if it is found.
5631  # Check for GNU $ac_path_SED
5632case `"$ac_path_SED" --version 2>&1` in
5633*GNU*)
5634  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5635*)
5636  ac_count=0
5637  $as_echo_n 0123456789 >"conftest.in"
5638  while :
5639  do
5640    cat "conftest.in" "conftest.in" >"conftest.tmp"
5641    mv "conftest.tmp" "conftest.in"
5642    cp "conftest.in" "conftest.nl"
5643    $as_echo '' >> "conftest.nl"
5644    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5645    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5646    as_fn_arith $ac_count + 1 && ac_count=$as_val
5647    if test $ac_count -gt ${ac_path_SED_max-0}; then
5648      # Best one so far, save it but keep looking for a better one
5649      ac_cv_path_SED="$ac_path_SED"
5650      ac_path_SED_max=$ac_count
5651    fi
5652    # 10*(2^10) chars as input seems more than enough
5653    test $ac_count -gt 10 && break
5654  done
5655  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5656esac
5657
5658      $ac_path_SED_found && break 3
5659    done
5660  done
5661  done
5662IFS=$as_save_IFS
5663  if test -z "$ac_cv_path_SED"; then
5664    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5665  fi
5666else
5667  ac_cv_path_SED=$SED
5668fi
5669
5670fi
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5672$as_echo "$ac_cv_path_SED" >&6; }
5673 SED="$ac_cv_path_SED"
5674  rm -f conftest.sed
5675
5676test -z "$SED" && SED=sed
5677Xsed="$SED -e 1s/^X//"
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5690$as_echo_n "checking for fgrep... " >&6; }
5691if ${ac_cv_path_FGREP+:} false; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5695   then ac_cv_path_FGREP="$GREP -F"
5696   else
5697     if test -z "$FGREP"; then
5698  ac_path_FGREP_found=false
5699  # Loop through the user's path and test for each of PROGNAME-LIST
5700  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5702do
5703  IFS=$as_save_IFS
5704  test -z "$as_dir" && as_dir=.
5705    for ac_prog in fgrep; do
5706    for ac_exec_ext in '' $ac_executable_extensions; do
5707      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5708      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5709# Check for GNU ac_path_FGREP and select it if it is found.
5710  # Check for GNU $ac_path_FGREP
5711case `"$ac_path_FGREP" --version 2>&1` in
5712*GNU*)
5713  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5714*)
5715  ac_count=0
5716  $as_echo_n 0123456789 >"conftest.in"
5717  while :
5718  do
5719    cat "conftest.in" "conftest.in" >"conftest.tmp"
5720    mv "conftest.tmp" "conftest.in"
5721    cp "conftest.in" "conftest.nl"
5722    $as_echo 'FGREP' >> "conftest.nl"
5723    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5724    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5725    as_fn_arith $ac_count + 1 && ac_count=$as_val
5726    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5727      # Best one so far, save it but keep looking for a better one
5728      ac_cv_path_FGREP="$ac_path_FGREP"
5729      ac_path_FGREP_max=$ac_count
5730    fi
5731    # 10*(2^10) chars as input seems more than enough
5732    test $ac_count -gt 10 && break
5733  done
5734  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5735esac
5736
5737      $ac_path_FGREP_found && break 3
5738    done
5739  done
5740  done
5741IFS=$as_save_IFS
5742  if test -z "$ac_cv_path_FGREP"; then
5743    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5744  fi
5745else
5746  ac_cv_path_FGREP=$FGREP
5747fi
5748
5749   fi
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5752$as_echo "$ac_cv_path_FGREP" >&6; }
5753 FGREP="$ac_cv_path_FGREP"
5754
5755
5756test -z "$GREP" && GREP=grep
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776# Check whether --with-gnu-ld was given.
5777if test "${with_gnu_ld+set}" = set; then :
5778  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5779else
5780  with_gnu_ld=no
5781fi
5782
5783ac_prog=ld
5784if test "$GCC" = yes; then
5785  # Check if gcc -print-prog-name=ld gives a path.
5786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5787$as_echo_n "checking for ld used by $CC... " >&6; }
5788  case $host in
5789  *-*-mingw*)
5790    # gcc leaves a trailing carriage return which upsets mingw
5791    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5792  *)
5793    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5794  esac
5795  case $ac_prog in
5796    # Accept absolute paths.
5797    [\\/]* | ?:[\\/]*)
5798      re_direlt='/[^/][^/]*/\.\./'
5799      # Canonicalize the pathname of ld
5800      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5801      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5802	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5803      done
5804      test -z "$LD" && LD="$ac_prog"
5805      ;;
5806  "")
5807    # If it fails, then pretend we aren't using GCC.
5808    ac_prog=ld
5809    ;;
5810  *)
5811    # If it is relative, then search for the first ld in PATH.
5812    with_gnu_ld=unknown
5813    ;;
5814  esac
5815elif test "$with_gnu_ld" = yes; then
5816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5817$as_echo_n "checking for GNU ld... " >&6; }
5818else
5819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5820$as_echo_n "checking for non-GNU ld... " >&6; }
5821fi
5822if ${lt_cv_path_LD+:} false; then :
5823  $as_echo_n "(cached) " >&6
5824else
5825  if test -z "$LD"; then
5826  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5827  for ac_dir in $PATH; do
5828    IFS="$lt_save_ifs"
5829    test -z "$ac_dir" && ac_dir=.
5830    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5831      lt_cv_path_LD="$ac_dir/$ac_prog"
5832      # Check to see if the program is GNU ld.  I'd rather use --version,
5833      # but apparently some variants of GNU ld only accept -v.
5834      # Break only if it was the GNU/non-GNU ld that we prefer.
5835      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5836      *GNU* | *'with BFD'*)
5837	test "$with_gnu_ld" != no && break
5838	;;
5839      *)
5840	test "$with_gnu_ld" != yes && break
5841	;;
5842      esac
5843    fi
5844  done
5845  IFS="$lt_save_ifs"
5846else
5847  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5848fi
5849fi
5850
5851LD="$lt_cv_path_LD"
5852if test -n "$LD"; then
5853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5854$as_echo "$LD" >&6; }
5855else
5856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
5858fi
5859test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5861$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5862if ${lt_cv_prog_gnu_ld+:} false; then :
5863  $as_echo_n "(cached) " >&6
5864else
5865  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5866case `$LD -v 2>&1 </dev/null` in
5867*GNU* | *'with BFD'*)
5868  lt_cv_prog_gnu_ld=yes
5869  ;;
5870*)
5871  lt_cv_prog_gnu_ld=no
5872  ;;
5873esac
5874fi
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5876$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5877with_gnu_ld=$lt_cv_prog_gnu_ld
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5888$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5889if ${lt_cv_path_NM+:} false; then :
5890  $as_echo_n "(cached) " >&6
5891else
5892  if test -n "$NM"; then
5893  # Let the user override the test.
5894  lt_cv_path_NM="$NM"
5895else
5896  lt_nm_to_check="${ac_tool_prefix}nm"
5897  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5898    lt_nm_to_check="$lt_nm_to_check nm"
5899  fi
5900  for lt_tmp_nm in $lt_nm_to_check; do
5901    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5902    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5903      IFS="$lt_save_ifs"
5904      test -z "$ac_dir" && ac_dir=.
5905      tmp_nm="$ac_dir/$lt_tmp_nm"
5906      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5907	# Check to see if the nm accepts a BSD-compat flag.
5908	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5909	#   nm: unknown option "B" ignored
5910	# Tru64's nm complains that /dev/null is an invalid object file
5911	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5912	*/dev/null* | *'Invalid file or object type'*)
5913	  lt_cv_path_NM="$tmp_nm -B"
5914	  break
5915	  ;;
5916	*)
5917	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5918	  */dev/null*)
5919	    lt_cv_path_NM="$tmp_nm -p"
5920	    break
5921	    ;;
5922	  *)
5923	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5924	    continue # so that we can try to find one that supports BSD flags
5925	    ;;
5926	  esac
5927	  ;;
5928	esac
5929      fi
5930    done
5931    IFS="$lt_save_ifs"
5932  done
5933  : ${lt_cv_path_NM=no}
5934fi
5935fi
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5937$as_echo "$lt_cv_path_NM" >&6; }
5938if test "$lt_cv_path_NM" != "no"; then
5939  NM="$lt_cv_path_NM"
5940else
5941  # Didn't find any BSD compatible name lister, look for dumpbin.
5942  if test -n "$DUMPBIN"; then :
5943    # Let the user override the test.
5944  else
5945    if test -n "$ac_tool_prefix"; then
5946  for ac_prog in dumpbin "link -dump"
5947  do
5948    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5949set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951$as_echo_n "checking for $ac_word... " >&6; }
5952if ${ac_cv_prog_DUMPBIN+:} false; then :
5953  $as_echo_n "(cached) " >&6
5954else
5955  if test -n "$DUMPBIN"; then
5956  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5957else
5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961  IFS=$as_save_IFS
5962  test -z "$as_dir" && as_dir=.
5963    for ac_exec_ext in '' $ac_executable_extensions; do
5964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967    break 2
5968  fi
5969done
5970  done
5971IFS=$as_save_IFS
5972
5973fi
5974fi
5975DUMPBIN=$ac_cv_prog_DUMPBIN
5976if test -n "$DUMPBIN"; then
5977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5978$as_echo "$DUMPBIN" >&6; }
5979else
5980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981$as_echo "no" >&6; }
5982fi
5983
5984
5985    test -n "$DUMPBIN" && break
5986  done
5987fi
5988if test -z "$DUMPBIN"; then
5989  ac_ct_DUMPBIN=$DUMPBIN
5990  for ac_prog in dumpbin "link -dump"
5991do
5992  # Extract the first word of "$ac_prog", so it can be a program name with args.
5993set dummy $ac_prog; ac_word=$2
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995$as_echo_n "checking for $ac_word... " >&6; }
5996if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5997  $as_echo_n "(cached) " >&6
5998else
5999  if test -n "$ac_ct_DUMPBIN"; then
6000  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6001else
6002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003for as_dir in $PATH
6004do
6005  IFS=$as_save_IFS
6006  test -z "$as_dir" && as_dir=.
6007    for ac_exec_ext in '' $ac_executable_extensions; do
6008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011    break 2
6012  fi
6013done
6014  done
6015IFS=$as_save_IFS
6016
6017fi
6018fi
6019ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6020if test -n "$ac_ct_DUMPBIN"; then
6021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6022$as_echo "$ac_ct_DUMPBIN" >&6; }
6023else
6024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025$as_echo "no" >&6; }
6026fi
6027
6028
6029  test -n "$ac_ct_DUMPBIN" && break
6030done
6031
6032  if test "x$ac_ct_DUMPBIN" = x; then
6033    DUMPBIN=":"
6034  else
6035    case $cross_compiling:$ac_tool_warned in
6036yes:)
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039ac_tool_warned=yes ;;
6040esac
6041    DUMPBIN=$ac_ct_DUMPBIN
6042  fi
6043fi
6044
6045    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6046    *COFF*)
6047      DUMPBIN="$DUMPBIN -symbols"
6048      ;;
6049    *)
6050      DUMPBIN=:
6051      ;;
6052    esac
6053  fi
6054
6055  if test "$DUMPBIN" != ":"; then
6056    NM="$DUMPBIN"
6057  fi
6058fi
6059test -z "$NM" && NM=nm
6060
6061
6062
6063
6064
6065
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6067$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6068if ${lt_cv_nm_interface+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  lt_cv_nm_interface="BSD nm"
6072  echo "int some_variable = 0;" > conftest.$ac_ext
6073  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6074  (eval "$ac_compile" 2>conftest.err)
6075  cat conftest.err >&5
6076  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6077  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6078  cat conftest.err >&5
6079  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6080  cat conftest.out >&5
6081  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6082    lt_cv_nm_interface="MS dumpbin"
6083  fi
6084  rm -f conftest*
6085fi
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6087$as_echo "$lt_cv_nm_interface" >&6; }
6088
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6090$as_echo_n "checking whether ln -s works... " >&6; }
6091LN_S=$as_ln_s
6092if test "$LN_S" = "ln -s"; then
6093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6094$as_echo "yes" >&6; }
6095else
6096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6097$as_echo "no, using $LN_S" >&6; }
6098fi
6099
6100# find the maximum length of command line arguments
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6102$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6103if ${lt_cv_sys_max_cmd_len+:} false; then :
6104  $as_echo_n "(cached) " >&6
6105else
6106    i=0
6107  teststring="ABCD"
6108
6109  case $build_os in
6110  msdosdjgpp*)
6111    # On DJGPP, this test can blow up pretty badly due to problems in libc
6112    # (any single argument exceeding 2000 bytes causes a buffer overrun
6113    # during glob expansion).  Even if it were fixed, the result of this
6114    # check would be larger than it should be.
6115    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6116    ;;
6117
6118  gnu*)
6119    # Under GNU Hurd, this test is not required because there is
6120    # no limit to the length of command line arguments.
6121    # Libtool will interpret -1 as no limit whatsoever
6122    lt_cv_sys_max_cmd_len=-1;
6123    ;;
6124
6125  cygwin* | mingw* | cegcc*)
6126    # On Win9x/ME, this test blows up -- it succeeds, but takes
6127    # about 5 minutes as the teststring grows exponentially.
6128    # Worse, since 9x/ME are not pre-emptively multitasking,
6129    # you end up with a "frozen" computer, even though with patience
6130    # the test eventually succeeds (with a max line length of 256k).
6131    # Instead, let's just punt: use the minimum linelength reported by
6132    # all of the supported platforms: 8192 (on NT/2K/XP).
6133    lt_cv_sys_max_cmd_len=8192;
6134    ;;
6135
6136  mint*)
6137    # On MiNT this can take a long time and run out of memory.
6138    lt_cv_sys_max_cmd_len=8192;
6139    ;;
6140
6141  amigaos*)
6142    # On AmigaOS with pdksh, this test takes hours, literally.
6143    # So we just punt and use a minimum line length of 8192.
6144    lt_cv_sys_max_cmd_len=8192;
6145    ;;
6146
6147  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6148    # This has been around since 386BSD, at least.  Likely further.
6149    if test -x /sbin/sysctl; then
6150      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6151    elif test -x /usr/sbin/sysctl; then
6152      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6153    else
6154      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6155    fi
6156    # And add a safety zone
6157    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6158    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6159    ;;
6160
6161  interix*)
6162    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6163    lt_cv_sys_max_cmd_len=196608
6164    ;;
6165
6166  osf*)
6167    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6168    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6169    # nice to cause kernel panics so lets avoid the loop below.
6170    # First set a reasonable default.
6171    lt_cv_sys_max_cmd_len=16384
6172    #
6173    if test -x /sbin/sysconfig; then
6174      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6175        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6176      esac
6177    fi
6178    ;;
6179  sco3.2v5*)
6180    lt_cv_sys_max_cmd_len=102400
6181    ;;
6182  sysv5* | sco5v6* | sysv4.2uw2*)
6183    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6184    if test -n "$kargmax"; then
6185      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6186    else
6187      lt_cv_sys_max_cmd_len=32768
6188    fi
6189    ;;
6190  *)
6191    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6192    if test -n "$lt_cv_sys_max_cmd_len"; then
6193      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6194      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6195    else
6196      # Make teststring a little bigger before we do anything with it.
6197      # a 1K string should be a reasonable start.
6198      for i in 1 2 3 4 5 6 7 8 ; do
6199        teststring=$teststring$teststring
6200      done
6201      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6202      # If test is not a shell built-in, we'll probably end up computing a
6203      # maximum length that is only half of the actual maximum length, but
6204      # we can't tell.
6205      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6206	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6207	      test $i != 17 # 1/2 MB should be enough
6208      do
6209        i=`expr $i + 1`
6210        teststring=$teststring$teststring
6211      done
6212      # Only check the string length outside the loop.
6213      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6214      teststring=
6215      # Add a significant safety factor because C++ compilers can tack on
6216      # massive amounts of additional arguments before passing them to the
6217      # linker.  It appears as though 1/2 is a usable value.
6218      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6219    fi
6220    ;;
6221  esac
6222
6223fi
6224
6225if test -n $lt_cv_sys_max_cmd_len ; then
6226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6227$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6228else
6229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6230$as_echo "none" >&6; }
6231fi
6232max_cmd_len=$lt_cv_sys_max_cmd_len
6233
6234
6235
6236
6237
6238
6239: ${CP="cp -f"}
6240: ${MV="mv -f"}
6241: ${RM="rm -f"}
6242
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6244$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6245# Try some XSI features
6246xsi_shell=no
6247( _lt_dummy="a/b/c"
6248  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6249      = c,a/b,, \
6250    && eval 'test $(( 1 + 1 )) -eq 2 \
6251    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6252  && xsi_shell=yes
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6254$as_echo "$xsi_shell" >&6; }
6255
6256
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6258$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6259lt_shell_append=no
6260( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6261    >/dev/null 2>&1 \
6262  && lt_shell_append=yes
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6264$as_echo "$lt_shell_append" >&6; }
6265
6266
6267if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6268  lt_unset=unset
6269else
6270  lt_unset=false
6271fi
6272
6273
6274
6275
6276
6277# test EBCDIC or ASCII
6278case `echo X|tr X '\101'` in
6279 A) # ASCII based system
6280    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6281  lt_SP2NL='tr \040 \012'
6282  lt_NL2SP='tr \015\012 \040\040'
6283  ;;
6284 *) # EBCDIC based system
6285  lt_SP2NL='tr \100 \n'
6286  lt_NL2SP='tr \r\n \100\100'
6287  ;;
6288esac
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6299$as_echo_n "checking for $LD option to reload object files... " >&6; }
6300if ${lt_cv_ld_reload_flag+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303  lt_cv_ld_reload_flag='-r'
6304fi
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6306$as_echo "$lt_cv_ld_reload_flag" >&6; }
6307reload_flag=$lt_cv_ld_reload_flag
6308case $reload_flag in
6309"" | " "*) ;;
6310*) reload_flag=" $reload_flag" ;;
6311esac
6312reload_cmds='$LD$reload_flag -o $output$reload_objs'
6313case $host_os in
6314  darwin*)
6315    if test "$GCC" = yes; then
6316      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6317    else
6318      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6319    fi
6320    ;;
6321esac
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331if test -n "$ac_tool_prefix"; then
6332  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6333set dummy ${ac_tool_prefix}objdump; ac_word=$2
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335$as_echo_n "checking for $ac_word... " >&6; }
6336if ${ac_cv_prog_OBJDUMP+:} false; then :
6337  $as_echo_n "(cached) " >&6
6338else
6339  if test -n "$OBJDUMP"; then
6340  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345  IFS=$as_save_IFS
6346  test -z "$as_dir" && as_dir=.
6347    for ac_exec_ext in '' $ac_executable_extensions; do
6348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351    break 2
6352  fi
6353done
6354  done
6355IFS=$as_save_IFS
6356
6357fi
6358fi
6359OBJDUMP=$ac_cv_prog_OBJDUMP
6360if test -n "$OBJDUMP"; then
6361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6362$as_echo "$OBJDUMP" >&6; }
6363else
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
6366fi
6367
6368
6369fi
6370if test -z "$ac_cv_prog_OBJDUMP"; then
6371  ac_ct_OBJDUMP=$OBJDUMP
6372  # Extract the first word of "objdump", so it can be a program name with args.
6373set dummy objdump; ac_word=$2
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375$as_echo_n "checking for $ac_word... " >&6; }
6376if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6377  $as_echo_n "(cached) " >&6
6378else
6379  if test -n "$ac_ct_OBJDUMP"; then
6380  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6381else
6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385  IFS=$as_save_IFS
6386  test -z "$as_dir" && as_dir=.
6387    for ac_exec_ext in '' $ac_executable_extensions; do
6388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391    break 2
6392  fi
6393done
6394  done
6395IFS=$as_save_IFS
6396
6397fi
6398fi
6399ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6400if test -n "$ac_ct_OBJDUMP"; then
6401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6402$as_echo "$ac_ct_OBJDUMP" >&6; }
6403else
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405$as_echo "no" >&6; }
6406fi
6407
6408  if test "x$ac_ct_OBJDUMP" = x; then
6409    OBJDUMP="false"
6410  else
6411    case $cross_compiling:$ac_tool_warned in
6412yes:)
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415ac_tool_warned=yes ;;
6416esac
6417    OBJDUMP=$ac_ct_OBJDUMP
6418  fi
6419else
6420  OBJDUMP="$ac_cv_prog_OBJDUMP"
6421fi
6422
6423test -z "$OBJDUMP" && OBJDUMP=objdump
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6434$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6435if ${lt_cv_deplibs_check_method+:} false; then :
6436  $as_echo_n "(cached) " >&6
6437else
6438  lt_cv_file_magic_cmd='$MAGIC_CMD'
6439lt_cv_file_magic_test_file=
6440lt_cv_deplibs_check_method='unknown'
6441# Need to set the preceding variable on all platforms that support
6442# interlibrary dependencies.
6443# 'none' -- dependencies not supported.
6444# `unknown' -- same as none, but documents that we really don't know.
6445# 'pass_all' -- all dependencies passed with no checks.
6446# 'test_compile' -- check by making test program.
6447# 'file_magic [[regex]]' -- check by looking for files in library path
6448# which responds to the $file_magic_cmd with a given extended regex.
6449# If you have `file' or equivalent on your system and you're not sure
6450# whether `pass_all' will *always* work, you probably want this one.
6451
6452case $host_os in
6453aix[4-9]*)
6454  lt_cv_deplibs_check_method=pass_all
6455  ;;
6456
6457beos*)
6458  lt_cv_deplibs_check_method=pass_all
6459  ;;
6460
6461bsdi[45]*)
6462  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6463  lt_cv_file_magic_cmd='/usr/bin/file -L'
6464  lt_cv_file_magic_test_file=/shlib/libc.so
6465  ;;
6466
6467cygwin*)
6468  # func_win32_libid is a shell function defined in ltmain.sh
6469  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6470  lt_cv_file_magic_cmd='func_win32_libid'
6471  ;;
6472
6473mingw* | pw32*)
6474  # Base MSYS/MinGW do not provide the 'file' command needed by
6475  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6476  # unless we find 'file', for example because we are cross-compiling.
6477  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6478  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6479    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6480    lt_cv_file_magic_cmd='func_win32_libid'
6481  else
6482    # Keep this pattern in sync with the one in func_win32_libid.
6483    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6484    lt_cv_file_magic_cmd='$OBJDUMP -f'
6485  fi
6486  ;;
6487
6488cegcc*)
6489  # use the weaker test based on 'objdump'. See mingw*.
6490  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6491  lt_cv_file_magic_cmd='$OBJDUMP -f'
6492  ;;
6493
6494darwin* | rhapsody*)
6495  lt_cv_deplibs_check_method=pass_all
6496  ;;
6497
6498freebsd* | dragonfly*)
6499  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6500    case $host_cpu in
6501    i*86 )
6502      # Not sure whether the presence of OpenBSD here was a mistake.
6503      # Let's accept both of them until this is cleared up.
6504      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6505      lt_cv_file_magic_cmd=/usr/bin/file
6506      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6507      ;;
6508    esac
6509  else
6510    lt_cv_deplibs_check_method=pass_all
6511  fi
6512  ;;
6513
6514gnu*)
6515  lt_cv_deplibs_check_method=pass_all
6516  ;;
6517
6518haiku*)
6519  lt_cv_deplibs_check_method=pass_all
6520  ;;
6521
6522hpux10.20* | hpux11*)
6523  lt_cv_file_magic_cmd=/usr/bin/file
6524  case $host_cpu in
6525  ia64*)
6526    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6527    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6528    ;;
6529  hppa*64*)
6530    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]'
6531    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6532    ;;
6533  *)
6534    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6535    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6536    ;;
6537  esac
6538  ;;
6539
6540interix[3-9]*)
6541  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6542  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6543  ;;
6544
6545irix5* | irix6* | nonstopux*)
6546  case $LD in
6547  *-32|*"-32 ") libmagic=32-bit;;
6548  *-n32|*"-n32 ") libmagic=N32;;
6549  *-64|*"-64 ") libmagic=64-bit;;
6550  *) libmagic=never-match;;
6551  esac
6552  lt_cv_deplibs_check_method=pass_all
6553  ;;
6554
6555# This must be Linux ELF.
6556linux* | k*bsd*-gnu | kopensolaris*-gnu)
6557  lt_cv_deplibs_check_method=pass_all
6558  ;;
6559
6560netbsd*)
6561  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6562    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6563  else
6564    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6565  fi
6566  ;;
6567
6568newos6*)
6569  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6570  lt_cv_file_magic_cmd=/usr/bin/file
6571  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6572  ;;
6573
6574*nto* | *qnx*)
6575  lt_cv_deplibs_check_method=pass_all
6576  ;;
6577
6578openbsd*)
6579  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6580    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6581  else
6582    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6583  fi
6584  ;;
6585
6586osf3* | osf4* | osf5*)
6587  lt_cv_deplibs_check_method=pass_all
6588  ;;
6589
6590rdos*)
6591  lt_cv_deplibs_check_method=pass_all
6592  ;;
6593
6594solaris*)
6595  lt_cv_deplibs_check_method=pass_all
6596  ;;
6597
6598sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6599  lt_cv_deplibs_check_method=pass_all
6600  ;;
6601
6602sysv4 | sysv4.3*)
6603  case $host_vendor in
6604  motorola)
6605    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]'
6606    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6607    ;;
6608  ncr)
6609    lt_cv_deplibs_check_method=pass_all
6610    ;;
6611  sequent)
6612    lt_cv_file_magic_cmd='/bin/file'
6613    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6614    ;;
6615  sni)
6616    lt_cv_file_magic_cmd='/bin/file'
6617    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6618    lt_cv_file_magic_test_file=/lib/libc.so
6619    ;;
6620  siemens)
6621    lt_cv_deplibs_check_method=pass_all
6622    ;;
6623  pc)
6624    lt_cv_deplibs_check_method=pass_all
6625    ;;
6626  esac
6627  ;;
6628
6629tpf*)
6630  lt_cv_deplibs_check_method=pass_all
6631  ;;
6632esac
6633
6634fi
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6636$as_echo "$lt_cv_deplibs_check_method" >&6; }
6637file_magic_cmd=$lt_cv_file_magic_cmd
6638deplibs_check_method=$lt_cv_deplibs_check_method
6639test -z "$deplibs_check_method" && deplibs_check_method=unknown
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652if test -n "$ac_tool_prefix"; then
6653  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6654set dummy ${ac_tool_prefix}ar; ac_word=$2
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656$as_echo_n "checking for $ac_word... " >&6; }
6657if ${ac_cv_prog_AR+:} false; then :
6658  $as_echo_n "(cached) " >&6
6659else
6660  if test -n "$AR"; then
6661  ac_cv_prog_AR="$AR" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666  IFS=$as_save_IFS
6667  test -z "$as_dir" && as_dir=.
6668    for ac_exec_ext in '' $ac_executable_extensions; do
6669  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670    ac_cv_prog_AR="${ac_tool_prefix}ar"
6671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672    break 2
6673  fi
6674done
6675  done
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680AR=$ac_cv_prog_AR
6681if test -n "$AR"; then
6682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6683$as_echo "$AR" >&6; }
6684else
6685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686$as_echo "no" >&6; }
6687fi
6688
6689
6690fi
6691if test -z "$ac_cv_prog_AR"; then
6692  ac_ct_AR=$AR
6693  # Extract the first word of "ar", so it can be a program name with args.
6694set dummy ar; ac_word=$2
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696$as_echo_n "checking for $ac_word... " >&6; }
6697if ${ac_cv_prog_ac_ct_AR+:} false; then :
6698  $as_echo_n "(cached) " >&6
6699else
6700  if test -n "$ac_ct_AR"; then
6701  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706  IFS=$as_save_IFS
6707  test -z "$as_dir" && as_dir=.
6708    for ac_exec_ext in '' $ac_executable_extensions; do
6709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710    ac_cv_prog_ac_ct_AR="ar"
6711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712    break 2
6713  fi
6714done
6715  done
6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720ac_ct_AR=$ac_cv_prog_ac_ct_AR
6721if test -n "$ac_ct_AR"; then
6722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6723$as_echo "$ac_ct_AR" >&6; }
6724else
6725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726$as_echo "no" >&6; }
6727fi
6728
6729  if test "x$ac_ct_AR" = x; then
6730    AR="false"
6731  else
6732    case $cross_compiling:$ac_tool_warned in
6733yes:)
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736ac_tool_warned=yes ;;
6737esac
6738    AR=$ac_ct_AR
6739  fi
6740else
6741  AR="$ac_cv_prog_AR"
6742fi
6743
6744test -z "$AR" && AR=ar
6745test -z "$AR_FLAGS" && AR_FLAGS=cru
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757if test -n "$ac_tool_prefix"; then
6758  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6759set dummy ${ac_tool_prefix}strip; ac_word=$2
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761$as_echo_n "checking for $ac_word... " >&6; }
6762if ${ac_cv_prog_STRIP+:} false; then :
6763  $as_echo_n "(cached) " >&6
6764else
6765  if test -n "$STRIP"; then
6766  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6767else
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771  IFS=$as_save_IFS
6772  test -z "$as_dir" && as_dir=.
6773    for ac_exec_ext in '' $ac_executable_extensions; do
6774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777    break 2
6778  fi
6779done
6780  done
6781IFS=$as_save_IFS
6782
6783fi
6784fi
6785STRIP=$ac_cv_prog_STRIP
6786if test -n "$STRIP"; then
6787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6788$as_echo "$STRIP" >&6; }
6789else
6790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791$as_echo "no" >&6; }
6792fi
6793
6794
6795fi
6796if test -z "$ac_cv_prog_STRIP"; then
6797  ac_ct_STRIP=$STRIP
6798  # Extract the first word of "strip", so it can be a program name with args.
6799set dummy strip; ac_word=$2
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801$as_echo_n "checking for $ac_word... " >&6; }
6802if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  if test -n "$ac_ct_STRIP"; then
6806  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811  IFS=$as_save_IFS
6812  test -z "$as_dir" && as_dir=.
6813    for ac_exec_ext in '' $ac_executable_extensions; do
6814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815    ac_cv_prog_ac_ct_STRIP="strip"
6816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817    break 2
6818  fi
6819done
6820  done
6821IFS=$as_save_IFS
6822
6823fi
6824fi
6825ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6826if test -n "$ac_ct_STRIP"; then
6827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6828$as_echo "$ac_ct_STRIP" >&6; }
6829else
6830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831$as_echo "no" >&6; }
6832fi
6833
6834  if test "x$ac_ct_STRIP" = x; then
6835    STRIP=":"
6836  else
6837    case $cross_compiling:$ac_tool_warned in
6838yes:)
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841ac_tool_warned=yes ;;
6842esac
6843    STRIP=$ac_ct_STRIP
6844  fi
6845else
6846  STRIP="$ac_cv_prog_STRIP"
6847fi
6848
6849test -z "$STRIP" && STRIP=:
6850
6851
6852
6853
6854
6855
6856if test -n "$ac_tool_prefix"; then
6857  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6858set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860$as_echo_n "checking for $ac_word... " >&6; }
6861if ${ac_cv_prog_RANLIB+:} false; then :
6862  $as_echo_n "(cached) " >&6
6863else
6864  if test -n "$RANLIB"; then
6865  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870  IFS=$as_save_IFS
6871  test -z "$as_dir" && as_dir=.
6872    for ac_exec_ext in '' $ac_executable_extensions; do
6873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876    break 2
6877  fi
6878done
6879  done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884RANLIB=$ac_cv_prog_RANLIB
6885if test -n "$RANLIB"; then
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6887$as_echo "$RANLIB" >&6; }
6888else
6889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892
6893
6894fi
6895if test -z "$ac_cv_prog_RANLIB"; then
6896  ac_ct_RANLIB=$RANLIB
6897  # Extract the first word of "ranlib", so it can be a program name with args.
6898set dummy ranlib; ac_word=$2
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900$as_echo_n "checking for $ac_word... " >&6; }
6901if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6902  $as_echo_n "(cached) " >&6
6903else
6904  if test -n "$ac_ct_RANLIB"; then
6905  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910  IFS=$as_save_IFS
6911  test -z "$as_dir" && as_dir=.
6912    for ac_exec_ext in '' $ac_executable_extensions; do
6913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914    ac_cv_prog_ac_ct_RANLIB="ranlib"
6915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916    break 2
6917  fi
6918done
6919  done
6920IFS=$as_save_IFS
6921
6922fi
6923fi
6924ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6925if test -n "$ac_ct_RANLIB"; then
6926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6927$as_echo "$ac_ct_RANLIB" >&6; }
6928else
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930$as_echo "no" >&6; }
6931fi
6932
6933  if test "x$ac_ct_RANLIB" = x; then
6934    RANLIB=":"
6935  else
6936    case $cross_compiling:$ac_tool_warned in
6937yes:)
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940ac_tool_warned=yes ;;
6941esac
6942    RANLIB=$ac_ct_RANLIB
6943  fi
6944else
6945  RANLIB="$ac_cv_prog_RANLIB"
6946fi
6947
6948test -z "$RANLIB" && RANLIB=:
6949
6950
6951
6952
6953
6954
6955# Determine commands to create old-style static archives.
6956old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6957old_postinstall_cmds='chmod 644 $oldlib'
6958old_postuninstall_cmds=
6959
6960if test -n "$RANLIB"; then
6961  case $host_os in
6962  openbsd*)
6963    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6964    ;;
6965  *)
6966    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6967    ;;
6968  esac
6969  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6970fi
6971
6972case $host_os in
6973  darwin*)
6974    lock_old_archive_extraction=yes ;;
6975  *)
6976    lock_old_archive_extraction=no ;;
6977esac
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017# If no C compiler was specified, use CC.
7018LTCC=${LTCC-"$CC"}
7019
7020# If no C compiler flags were specified, use CFLAGS.
7021LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7022
7023# Allow CC to be a program name with arguments.
7024compiler=$CC
7025
7026
7027# Check for command to grab the raw symbol name followed by C symbol from nm.
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7029$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7030if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033
7034# These are sane defaults that work on at least a few old systems.
7035# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7036
7037# Character class describing NM global symbol codes.
7038symcode='[BCDEGRST]'
7039
7040# Regexp to match symbols that can be accessed directly from C.
7041sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7042
7043# Define system-specific variables.
7044case $host_os in
7045aix*)
7046  symcode='[BCDT]'
7047  ;;
7048cygwin* | mingw* | pw32* | cegcc*)
7049  symcode='[ABCDGISTW]'
7050  ;;
7051hpux*)
7052  if test "$host_cpu" = ia64; then
7053    symcode='[ABCDEGRST]'
7054  fi
7055  ;;
7056irix* | nonstopux*)
7057  symcode='[BCDEGRST]'
7058  ;;
7059osf*)
7060  symcode='[BCDEGQRST]'
7061  ;;
7062solaris*)
7063  symcode='[BDRT]'
7064  ;;
7065sco3.2v5*)
7066  symcode='[DT]'
7067  ;;
7068sysv4.2uw2*)
7069  symcode='[DT]'
7070  ;;
7071sysv5* | sco5v6* | unixware* | OpenUNIX*)
7072  symcode='[ABDT]'
7073  ;;
7074sysv4)
7075  symcode='[DFNSTU]'
7076  ;;
7077esac
7078
7079# If we're using GNU nm, then use its standard symbol codes.
7080case `$NM -V 2>&1` in
7081*GNU* | *'with BFD'*)
7082  symcode='[ABCDGIRSTW]' ;;
7083esac
7084
7085# Transform an extracted symbol line into a proper C declaration.
7086# Some systems (esp. on ia64) link data and code symbols differently,
7087# so use this general approach.
7088lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7089
7090# Transform an extracted symbol line into symbol name and symbol address
7091lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7092lt_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'"
7093
7094# Handle CRLF in mingw tool chain
7095opt_cr=
7096case $build_os in
7097mingw*)
7098  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7099  ;;
7100esac
7101
7102# Try without a prefix underscore, then with it.
7103for ac_symprfx in "" "_"; do
7104
7105  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7106  symxfrm="\\1 $ac_symprfx\\2 \\2"
7107
7108  # Write the raw and C identifiers.
7109  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7110    # Fake it for dumpbin and say T for any non-static function
7111    # and D for any global variable.
7112    # Also find C++ and __fastcall symbols from MSVC++,
7113    # which start with @ or ?.
7114    lt_cv_sys_global_symbol_pipe="$AWK '"\
7115"     {last_section=section; section=\$ 3};"\
7116"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7117"     \$ 0!~/External *\|/{next};"\
7118"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7119"     {if(hide[section]) next};"\
7120"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7121"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7122"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7123"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7124"     ' prfx=^$ac_symprfx"
7125  else
7126    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7127  fi
7128
7129  # Check to see that the pipe works correctly.
7130  pipe_works=no
7131
7132  rm -f conftest*
7133  cat > conftest.$ac_ext <<_LT_EOF
7134#ifdef __cplusplus
7135extern "C" {
7136#endif
7137char nm_test_var;
7138void nm_test_func(void);
7139void nm_test_func(void){}
7140#ifdef __cplusplus
7141}
7142#endif
7143int main(){nm_test_var='a';nm_test_func();return(0);}
7144_LT_EOF
7145
7146  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7147  (eval $ac_compile) 2>&5
7148  ac_status=$?
7149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150  test $ac_status = 0; }; then
7151    # Now try to grab the symbols.
7152    nlist=conftest.nm
7153    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7154  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7155  ac_status=$?
7156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157  test $ac_status = 0; } && test -s "$nlist"; then
7158      # Try sorting and uniquifying the output.
7159      if sort "$nlist" | uniq > "$nlist"T; then
7160	mv -f "$nlist"T "$nlist"
7161      else
7162	rm -f "$nlist"T
7163      fi
7164
7165      # Make sure that we snagged all the symbols we need.
7166      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7167	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7168	  cat <<_LT_EOF > conftest.$ac_ext
7169#ifdef __cplusplus
7170extern "C" {
7171#endif
7172
7173_LT_EOF
7174	  # Now generate the symbol file.
7175	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7176
7177	  cat <<_LT_EOF >> conftest.$ac_ext
7178
7179/* The mapping between symbol names and symbols.  */
7180const struct {
7181  const char *name;
7182  void       *address;
7183}
7184lt__PROGRAM__LTX_preloaded_symbols[] =
7185{
7186  { "@PROGRAM@", (void *) 0 },
7187_LT_EOF
7188	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7189	  cat <<\_LT_EOF >> conftest.$ac_ext
7190  {0, (void *) 0}
7191};
7192
7193/* This works around a problem in FreeBSD linker */
7194#ifdef FREEBSD_WORKAROUND
7195static const void *lt_preloaded_setup() {
7196  return lt__PROGRAM__LTX_preloaded_symbols;
7197}
7198#endif
7199
7200#ifdef __cplusplus
7201}
7202#endif
7203_LT_EOF
7204	  # Now try linking the two files.
7205	  mv conftest.$ac_objext conftstm.$ac_objext
7206	  lt_save_LIBS="$LIBS"
7207	  lt_save_CFLAGS="$CFLAGS"
7208	  LIBS="conftstm.$ac_objext"
7209	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7210	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7211  (eval $ac_link) 2>&5
7212  ac_status=$?
7213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7214  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7215	    pipe_works=yes
7216	  fi
7217	  LIBS="$lt_save_LIBS"
7218	  CFLAGS="$lt_save_CFLAGS"
7219	else
7220	  echo "cannot find nm_test_func in $nlist" >&5
7221	fi
7222      else
7223	echo "cannot find nm_test_var in $nlist" >&5
7224      fi
7225    else
7226      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7227    fi
7228  else
7229    echo "$progname: failed program was:" >&5
7230    cat conftest.$ac_ext >&5
7231  fi
7232  rm -rf conftest* conftst*
7233
7234  # Do not use the global_symbol_pipe unless it works.
7235  if test "$pipe_works" = yes; then
7236    break
7237  else
7238    lt_cv_sys_global_symbol_pipe=
7239  fi
7240done
7241
7242fi
7243
7244if test -z "$lt_cv_sys_global_symbol_pipe"; then
7245  lt_cv_sys_global_symbol_to_cdecl=
7246fi
7247if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7249$as_echo "failed" >&6; }
7250else
7251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7252$as_echo "ok" >&6; }
7253fi
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276# Check whether --enable-libtool-lock was given.
7277if test "${enable_libtool_lock+set}" = set; then :
7278  enableval=$enable_libtool_lock;
7279fi
7280
7281test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7282
7283# Some flags need to be propagated to the compiler or linker for good
7284# libtool support.
7285case $host in
7286ia64-*-hpux*)
7287  # Find out which ABI we are using.
7288  echo 'int i;' > conftest.$ac_ext
7289  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7290  (eval $ac_compile) 2>&5
7291  ac_status=$?
7292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293  test $ac_status = 0; }; then
7294    case `/usr/bin/file conftest.$ac_objext` in
7295      *ELF-32*)
7296	HPUX_IA64_MODE="32"
7297	;;
7298      *ELF-64*)
7299	HPUX_IA64_MODE="64"
7300	;;
7301    esac
7302  fi
7303  rm -rf conftest*
7304  ;;
7305*-*-irix6*)
7306  # Find out which ABI we are using.
7307  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7308  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7309  (eval $ac_compile) 2>&5
7310  ac_status=$?
7311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312  test $ac_status = 0; }; then
7313    if test "$lt_cv_prog_gnu_ld" = yes; then
7314      case `/usr/bin/file conftest.$ac_objext` in
7315	*32-bit*)
7316	  LD="${LD-ld} -melf32bsmip"
7317	  ;;
7318	*N32*)
7319	  LD="${LD-ld} -melf32bmipn32"
7320	  ;;
7321	*64-bit*)
7322	  LD="${LD-ld} -melf64bmip"
7323	;;
7324      esac
7325    else
7326      case `/usr/bin/file conftest.$ac_objext` in
7327	*32-bit*)
7328	  LD="${LD-ld} -32"
7329	  ;;
7330	*N32*)
7331	  LD="${LD-ld} -n32"
7332	  ;;
7333	*64-bit*)
7334	  LD="${LD-ld} -64"
7335	  ;;
7336      esac
7337    fi
7338  fi
7339  rm -rf conftest*
7340  ;;
7341
7342x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7343s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7344  # Find out which ABI we are using.
7345  echo 'int i;' > conftest.$ac_ext
7346  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7347  (eval $ac_compile) 2>&5
7348  ac_status=$?
7349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350  test $ac_status = 0; }; then
7351    case `/usr/bin/file conftest.o` in
7352      *32-bit*)
7353	case $host in
7354	  x86_64-*kfreebsd*-gnu)
7355	    LD="${LD-ld} -m elf_i386_fbsd"
7356	    ;;
7357	  x86_64-*linux*)
7358	    LD="${LD-ld} -m elf_i386"
7359	    ;;
7360	  ppc64-*linux*|powerpc64-*linux*)
7361	    LD="${LD-ld} -m elf32ppclinux"
7362	    ;;
7363	  s390x-*linux*)
7364	    LD="${LD-ld} -m elf_s390"
7365	    ;;
7366	  sparc64-*linux*)
7367	    LD="${LD-ld} -m elf32_sparc"
7368	    ;;
7369	esac
7370	;;
7371      *64-bit*)
7372	case $host in
7373	  x86_64-*kfreebsd*-gnu)
7374	    LD="${LD-ld} -m elf_x86_64_fbsd"
7375	    ;;
7376	  x86_64-*linux*)
7377	    LD="${LD-ld} -m elf_x86_64"
7378	    ;;
7379	  ppc*-*linux*|powerpc*-*linux*)
7380	    LD="${LD-ld} -m elf64ppc"
7381	    ;;
7382	  s390*-*linux*|s390*-*tpf*)
7383	    LD="${LD-ld} -m elf64_s390"
7384	    ;;
7385	  sparc*-*linux*)
7386	    LD="${LD-ld} -m elf64_sparc"
7387	    ;;
7388	esac
7389	;;
7390    esac
7391  fi
7392  rm -rf conftest*
7393  ;;
7394
7395*-*-sco3.2v5*)
7396  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7397  SAVE_CFLAGS="$CFLAGS"
7398  CFLAGS="$CFLAGS -belf"
7399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7400$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7401if ${lt_cv_cc_needs_belf+:} false; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404  ac_ext=c
7405ac_cpp='$CPP $CPPFLAGS'
7406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408ac_compiler_gnu=$ac_cv_c_compiler_gnu
7409
7410     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411/* end confdefs.h.  */
7412
7413int
7414main ()
7415{
7416
7417  ;
7418  return 0;
7419}
7420_ACEOF
7421if ac_fn_c_try_link "$LINENO"; then :
7422  lt_cv_cc_needs_belf=yes
7423else
7424  lt_cv_cc_needs_belf=no
7425fi
7426rm -f core conftest.err conftest.$ac_objext \
7427    conftest$ac_exeext conftest.$ac_ext
7428     ac_ext=c
7429ac_cpp='$CPP $CPPFLAGS'
7430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7432ac_compiler_gnu=$ac_cv_c_compiler_gnu
7433
7434fi
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7436$as_echo "$lt_cv_cc_needs_belf" >&6; }
7437  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7438    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7439    CFLAGS="$SAVE_CFLAGS"
7440  fi
7441  ;;
7442sparc*-*solaris*)
7443  # Find out which ABI we are using.
7444  echo 'int i;' > conftest.$ac_ext
7445  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446  (eval $ac_compile) 2>&5
7447  ac_status=$?
7448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449  test $ac_status = 0; }; then
7450    case `/usr/bin/file conftest.o` in
7451    *64-bit*)
7452      case $lt_cv_prog_gnu_ld in
7453      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7454      *)
7455	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7456	  LD="${LD-ld} -64"
7457	fi
7458	;;
7459      esac
7460      ;;
7461    esac
7462  fi
7463  rm -rf conftest*
7464  ;;
7465esac
7466
7467need_locks="$enable_libtool_lock"
7468
7469
7470  case $host_os in
7471    rhapsody* | darwin*)
7472    if test -n "$ac_tool_prefix"; then
7473  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7474set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476$as_echo_n "checking for $ac_word... " >&6; }
7477if ${ac_cv_prog_DSYMUTIL+:} false; then :
7478  $as_echo_n "(cached) " >&6
7479else
7480  if test -n "$DSYMUTIL"; then
7481  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7482else
7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486  IFS=$as_save_IFS
7487  test -z "$as_dir" && as_dir=.
7488    for ac_exec_ext in '' $ac_executable_extensions; do
7489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492    break 2
7493  fi
7494done
7495  done
7496IFS=$as_save_IFS
7497
7498fi
7499fi
7500DSYMUTIL=$ac_cv_prog_DSYMUTIL
7501if test -n "$DSYMUTIL"; then
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7503$as_echo "$DSYMUTIL" >&6; }
7504else
7505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506$as_echo "no" >&6; }
7507fi
7508
7509
7510fi
7511if test -z "$ac_cv_prog_DSYMUTIL"; then
7512  ac_ct_DSYMUTIL=$DSYMUTIL
7513  # Extract the first word of "dsymutil", so it can be a program name with args.
7514set dummy dsymutil; ac_word=$2
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516$as_echo_n "checking for $ac_word... " >&6; }
7517if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7518  $as_echo_n "(cached) " >&6
7519else
7520  if test -n "$ac_ct_DSYMUTIL"; then
7521  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7522else
7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526  IFS=$as_save_IFS
7527  test -z "$as_dir" && as_dir=.
7528    for ac_exec_ext in '' $ac_executable_extensions; do
7529  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532    break 2
7533  fi
7534done
7535  done
7536IFS=$as_save_IFS
7537
7538fi
7539fi
7540ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7541if test -n "$ac_ct_DSYMUTIL"; then
7542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7543$as_echo "$ac_ct_DSYMUTIL" >&6; }
7544else
7545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546$as_echo "no" >&6; }
7547fi
7548
7549  if test "x$ac_ct_DSYMUTIL" = x; then
7550    DSYMUTIL=":"
7551  else
7552    case $cross_compiling:$ac_tool_warned in
7553yes:)
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7556ac_tool_warned=yes ;;
7557esac
7558    DSYMUTIL=$ac_ct_DSYMUTIL
7559  fi
7560else
7561  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7562fi
7563
7564    if test -n "$ac_tool_prefix"; then
7565  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7566set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568$as_echo_n "checking for $ac_word... " >&6; }
7569if ${ac_cv_prog_NMEDIT+:} false; then :
7570  $as_echo_n "(cached) " >&6
7571else
7572  if test -n "$NMEDIT"; then
7573  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578  IFS=$as_save_IFS
7579  test -z "$as_dir" && as_dir=.
7580    for ac_exec_ext in '' $ac_executable_extensions; do
7581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584    break 2
7585  fi
7586done
7587  done
7588IFS=$as_save_IFS
7589
7590fi
7591fi
7592NMEDIT=$ac_cv_prog_NMEDIT
7593if test -n "$NMEDIT"; then
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7595$as_echo "$NMEDIT" >&6; }
7596else
7597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599fi
7600
7601
7602fi
7603if test -z "$ac_cv_prog_NMEDIT"; then
7604  ac_ct_NMEDIT=$NMEDIT
7605  # Extract the first word of "nmedit", so it can be a program name with args.
7606set dummy nmedit; ac_word=$2
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608$as_echo_n "checking for $ac_word... " >&6; }
7609if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7610  $as_echo_n "(cached) " >&6
7611else
7612  if test -n "$ac_ct_NMEDIT"; then
7613  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7614else
7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618  IFS=$as_save_IFS
7619  test -z "$as_dir" && as_dir=.
7620    for ac_exec_ext in '' $ac_executable_extensions; do
7621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624    break 2
7625  fi
7626done
7627  done
7628IFS=$as_save_IFS
7629
7630fi
7631fi
7632ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7633if test -n "$ac_ct_NMEDIT"; then
7634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7635$as_echo "$ac_ct_NMEDIT" >&6; }
7636else
7637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638$as_echo "no" >&6; }
7639fi
7640
7641  if test "x$ac_ct_NMEDIT" = x; then
7642    NMEDIT=":"
7643  else
7644    case $cross_compiling:$ac_tool_warned in
7645yes:)
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7648ac_tool_warned=yes ;;
7649esac
7650    NMEDIT=$ac_ct_NMEDIT
7651  fi
7652else
7653  NMEDIT="$ac_cv_prog_NMEDIT"
7654fi
7655
7656    if test -n "$ac_tool_prefix"; then
7657  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7658set dummy ${ac_tool_prefix}lipo; ac_word=$2
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660$as_echo_n "checking for $ac_word... " >&6; }
7661if ${ac_cv_prog_LIPO+:} false; then :
7662  $as_echo_n "(cached) " >&6
7663else
7664  if test -n "$LIPO"; then
7665  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670  IFS=$as_save_IFS
7671  test -z "$as_dir" && as_dir=.
7672    for ac_exec_ext in '' $ac_executable_extensions; do
7673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676    break 2
7677  fi
7678done
7679  done
7680IFS=$as_save_IFS
7681
7682fi
7683fi
7684LIPO=$ac_cv_prog_LIPO
7685if test -n "$LIPO"; then
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7687$as_echo "$LIPO" >&6; }
7688else
7689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
7691fi
7692
7693
7694fi
7695if test -z "$ac_cv_prog_LIPO"; then
7696  ac_ct_LIPO=$LIPO
7697  # Extract the first word of "lipo", so it can be a program name with args.
7698set dummy lipo; ac_word=$2
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700$as_echo_n "checking for $ac_word... " >&6; }
7701if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7702  $as_echo_n "(cached) " >&6
7703else
7704  if test -n "$ac_ct_LIPO"; then
7705  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710  IFS=$as_save_IFS
7711  test -z "$as_dir" && as_dir=.
7712    for ac_exec_ext in '' $ac_executable_extensions; do
7713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714    ac_cv_prog_ac_ct_LIPO="lipo"
7715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716    break 2
7717  fi
7718done
7719  done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7725if test -n "$ac_ct_LIPO"; then
7726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7727$as_echo "$ac_ct_LIPO" >&6; }
7728else
7729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733  if test "x$ac_ct_LIPO" = x; then
7734    LIPO=":"
7735  else
7736    case $cross_compiling:$ac_tool_warned in
7737yes:)
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740ac_tool_warned=yes ;;
7741esac
7742    LIPO=$ac_ct_LIPO
7743  fi
7744else
7745  LIPO="$ac_cv_prog_LIPO"
7746fi
7747
7748    if test -n "$ac_tool_prefix"; then
7749  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7750set dummy ${ac_tool_prefix}otool; ac_word=$2
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752$as_echo_n "checking for $ac_word... " >&6; }
7753if ${ac_cv_prog_OTOOL+:} false; then :
7754  $as_echo_n "(cached) " >&6
7755else
7756  if test -n "$OTOOL"; then
7757  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762  IFS=$as_save_IFS
7763  test -z "$as_dir" && as_dir=.
7764    for ac_exec_ext in '' $ac_executable_extensions; do
7765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768    break 2
7769  fi
7770done
7771  done
7772IFS=$as_save_IFS
7773
7774fi
7775fi
7776OTOOL=$ac_cv_prog_OTOOL
7777if test -n "$OTOOL"; then
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7779$as_echo "$OTOOL" >&6; }
7780else
7781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782$as_echo "no" >&6; }
7783fi
7784
7785
7786fi
7787if test -z "$ac_cv_prog_OTOOL"; then
7788  ac_ct_OTOOL=$OTOOL
7789  # Extract the first word of "otool", so it can be a program name with args.
7790set dummy otool; ac_word=$2
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792$as_echo_n "checking for $ac_word... " >&6; }
7793if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7794  $as_echo_n "(cached) " >&6
7795else
7796  if test -n "$ac_ct_OTOOL"; then
7797  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7798else
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802  IFS=$as_save_IFS
7803  test -z "$as_dir" && as_dir=.
7804    for ac_exec_ext in '' $ac_executable_extensions; do
7805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7806    ac_cv_prog_ac_ct_OTOOL="otool"
7807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808    break 2
7809  fi
7810done
7811  done
7812IFS=$as_save_IFS
7813
7814fi
7815fi
7816ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7817if test -n "$ac_ct_OTOOL"; then
7818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7819$as_echo "$ac_ct_OTOOL" >&6; }
7820else
7821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
7823fi
7824
7825  if test "x$ac_ct_OTOOL" = x; then
7826    OTOOL=":"
7827  else
7828    case $cross_compiling:$ac_tool_warned in
7829yes:)
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832ac_tool_warned=yes ;;
7833esac
7834    OTOOL=$ac_ct_OTOOL
7835  fi
7836else
7837  OTOOL="$ac_cv_prog_OTOOL"
7838fi
7839
7840    if test -n "$ac_tool_prefix"; then
7841  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7842set dummy ${ac_tool_prefix}otool64; ac_word=$2
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
7845if ${ac_cv_prog_OTOOL64+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  if test -n "$OTOOL64"; then
7849  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7850else
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854  IFS=$as_save_IFS
7855  test -z "$as_dir" && as_dir=.
7856    for ac_exec_ext in '' $ac_executable_extensions; do
7857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860    break 2
7861  fi
7862done
7863  done
7864IFS=$as_save_IFS
7865
7866fi
7867fi
7868OTOOL64=$ac_cv_prog_OTOOL64
7869if test -n "$OTOOL64"; then
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7871$as_echo "$OTOOL64" >&6; }
7872else
7873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875fi
7876
7877
7878fi
7879if test -z "$ac_cv_prog_OTOOL64"; then
7880  ac_ct_OTOOL64=$OTOOL64
7881  # Extract the first word of "otool64", so it can be a program name with args.
7882set dummy otool64; ac_word=$2
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884$as_echo_n "checking for $ac_word... " >&6; }
7885if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  if test -n "$ac_ct_OTOOL64"; then
7889  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894  IFS=$as_save_IFS
7895  test -z "$as_dir" && as_dir=.
7896    for ac_exec_ext in '' $ac_executable_extensions; do
7897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898    ac_cv_prog_ac_ct_OTOOL64="otool64"
7899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900    break 2
7901  fi
7902done
7903  done
7904IFS=$as_save_IFS
7905
7906fi
7907fi
7908ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7909if test -n "$ac_ct_OTOOL64"; then
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7911$as_echo "$ac_ct_OTOOL64" >&6; }
7912else
7913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915fi
7916
7917  if test "x$ac_ct_OTOOL64" = x; then
7918    OTOOL64=":"
7919  else
7920    case $cross_compiling:$ac_tool_warned in
7921yes:)
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924ac_tool_warned=yes ;;
7925esac
7926    OTOOL64=$ac_ct_OTOOL64
7927  fi
7928else
7929  OTOOL64="$ac_cv_prog_OTOOL64"
7930fi
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7959$as_echo_n "checking for -single_module linker flag... " >&6; }
7960if ${lt_cv_apple_cc_single_mod+:} false; then :
7961  $as_echo_n "(cached) " >&6
7962else
7963  lt_cv_apple_cc_single_mod=no
7964      if test -z "${LT_MULTI_MODULE}"; then
7965	# By default we will add the -single_module flag. You can override
7966	# by either setting the environment variable LT_MULTI_MODULE
7967	# non-empty at configure time, or by adding -multi_module to the
7968	# link flags.
7969	rm -rf libconftest.dylib*
7970	echo "int foo(void){return 1;}" > conftest.c
7971	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7972-dynamiclib -Wl,-single_module conftest.c" >&5
7973	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7974	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7975        _lt_result=$?
7976	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7977	  lt_cv_apple_cc_single_mod=yes
7978	else
7979	  cat conftest.err >&5
7980	fi
7981	rm -rf libconftest.dylib*
7982	rm -f conftest.*
7983      fi
7984fi
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7986$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7988$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7989if ${lt_cv_ld_exported_symbols_list+:} false; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  lt_cv_ld_exported_symbols_list=no
7993      save_LDFLAGS=$LDFLAGS
7994      echo "_main" > conftest.sym
7995      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7996      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997/* end confdefs.h.  */
7998
7999int
8000main ()
8001{
8002
8003  ;
8004  return 0;
8005}
8006_ACEOF
8007if ac_fn_c_try_link "$LINENO"; then :
8008  lt_cv_ld_exported_symbols_list=yes
8009else
8010  lt_cv_ld_exported_symbols_list=no
8011fi
8012rm -f core conftest.err conftest.$ac_objext \
8013    conftest$ac_exeext conftest.$ac_ext
8014	LDFLAGS="$save_LDFLAGS"
8015
8016fi
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8018$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8020$as_echo_n "checking for -force_load linker flag... " >&6; }
8021if ${lt_cv_ld_force_load+:} false; then :
8022  $as_echo_n "(cached) " >&6
8023else
8024  lt_cv_ld_force_load=no
8025      cat > conftest.c << _LT_EOF
8026int forced_loaded() { return 2;}
8027_LT_EOF
8028      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8029      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8030      echo "$AR cru libconftest.a conftest.o" >&5
8031      $AR cru libconftest.a conftest.o 2>&5
8032      echo "$RANLIB libconftest.a" >&5
8033      $RANLIB libconftest.a 2>&5
8034      cat > conftest.c << _LT_EOF
8035int main() { return 0;}
8036_LT_EOF
8037      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8038      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8039      _lt_result=$?
8040      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8041	lt_cv_ld_force_load=yes
8042      else
8043	cat conftest.err >&5
8044      fi
8045        rm -f conftest.err libconftest.a conftest conftest.c
8046        rm -rf conftest.dSYM
8047
8048fi
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8050$as_echo "$lt_cv_ld_force_load" >&6; }
8051    case $host_os in
8052    rhapsody* | darwin1.[012])
8053      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8054    darwin1.*)
8055      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8056    darwin*) # darwin 5.x on
8057      # if running on 10.5 or later, the deployment target defaults
8058      # to the OS version, if on x86, and 10.4, the deployment
8059      # target defaults to 10.4. Don't you love it?
8060      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8061	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8062	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8063	10.[012]*)
8064	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8065	10.*)
8066	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8067      esac
8068    ;;
8069  esac
8070    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8071      _lt_dar_single_mod='$single_module'
8072    fi
8073    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8074      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8075    else
8076      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8077    fi
8078    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8079      _lt_dsymutil='~$DSYMUTIL $lib || :'
8080    else
8081      _lt_dsymutil=
8082    fi
8083    ;;
8084  esac
8085
8086for ac_header in dlfcn.h
8087do :
8088  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8089"
8090if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8091  cat >>confdefs.h <<_ACEOF
8092#define HAVE_DLFCN_H 1
8093_ACEOF
8094
8095fi
8096
8097done
8098
8099
8100
8101
8102
8103# Set options
8104
8105
8106
8107        enable_dlopen=no
8108
8109
8110  enable_win32_dll=no
8111
8112
8113            # Check whether --enable-shared was given.
8114if test "${enable_shared+set}" = set; then :
8115  enableval=$enable_shared; p=${PACKAGE-default}
8116    case $enableval in
8117    yes) enable_shared=yes ;;
8118    no) enable_shared=no ;;
8119    *)
8120      enable_shared=no
8121      # Look at the argument we got.  We use all the common list separators.
8122      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8123      for pkg in $enableval; do
8124	IFS="$lt_save_ifs"
8125	if test "X$pkg" = "X$p"; then
8126	  enable_shared=yes
8127	fi
8128      done
8129      IFS="$lt_save_ifs"
8130      ;;
8131    esac
8132else
8133  enable_shared=yes
8134fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144  # Check whether --enable-static was given.
8145if test "${enable_static+set}" = set; then :
8146  enableval=$enable_static; p=${PACKAGE-default}
8147    case $enableval in
8148    yes) enable_static=yes ;;
8149    no) enable_static=no ;;
8150    *)
8151     enable_static=no
8152      # Look at the argument we got.  We use all the common list separators.
8153      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8154      for pkg in $enableval; do
8155	IFS="$lt_save_ifs"
8156	if test "X$pkg" = "X$p"; then
8157	  enable_static=yes
8158	fi
8159      done
8160      IFS="$lt_save_ifs"
8161      ;;
8162    esac
8163else
8164  enable_static=yes
8165fi
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176# Check whether --with-pic was given.
8177if test "${with_pic+set}" = set; then :
8178  withval=$with_pic; pic_mode="$withval"
8179else
8180  pic_mode=default
8181fi
8182
8183
8184test -z "$pic_mode" && pic_mode=default
8185
8186
8187
8188
8189
8190
8191
8192  # Check whether --enable-fast-install was given.
8193if test "${enable_fast_install+set}" = set; then :
8194  enableval=$enable_fast_install; p=${PACKAGE-default}
8195    case $enableval in
8196    yes) enable_fast_install=yes ;;
8197    no) enable_fast_install=no ;;
8198    *)
8199      enable_fast_install=no
8200      # Look at the argument we got.  We use all the common list separators.
8201      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8202      for pkg in $enableval; do
8203	IFS="$lt_save_ifs"
8204	if test "X$pkg" = "X$p"; then
8205	  enable_fast_install=yes
8206	fi
8207      done
8208      IFS="$lt_save_ifs"
8209      ;;
8210    esac
8211else
8212  enable_fast_install=yes
8213fi
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225# This can be used to rebuild libtool when needed
8226LIBTOOL_DEPS="$ltmain"
8227
8228# Always use our own libtool.
8229LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256test -z "$LN_S" && LN_S="ln -s"
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271if test -n "${ZSH_VERSION+set}" ; then
8272   setopt NO_GLOB_SUBST
8273fi
8274
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8276$as_echo_n "checking for objdir... " >&6; }
8277if ${lt_cv_objdir+:} false; then :
8278  $as_echo_n "(cached) " >&6
8279else
8280  rm -f .libs 2>/dev/null
8281mkdir .libs 2>/dev/null
8282if test -d .libs; then
8283  lt_cv_objdir=.libs
8284else
8285  # MS-DOS does not allow filenames that begin with a dot.
8286  lt_cv_objdir=_libs
8287fi
8288rmdir .libs 2>/dev/null
8289fi
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8291$as_echo "$lt_cv_objdir" >&6; }
8292objdir=$lt_cv_objdir
8293
8294
8295
8296
8297
8298cat >>confdefs.h <<_ACEOF
8299#define LT_OBJDIR "$lt_cv_objdir/"
8300_ACEOF
8301
8302
8303
8304
8305case $host_os in
8306aix3*)
8307  # AIX sometimes has problems with the GCC collect2 program.  For some
8308  # reason, if we set the COLLECT_NAMES environment variable, the problems
8309  # vanish in a puff of smoke.
8310  if test "X${COLLECT_NAMES+set}" != Xset; then
8311    COLLECT_NAMES=
8312    export COLLECT_NAMES
8313  fi
8314  ;;
8315esac
8316
8317# Global variables:
8318ofile=libtool
8319can_build_shared=yes
8320
8321# All known linkers require a `.a' archive for static linking (except MSVC,
8322# which needs '.lib').
8323libext=a
8324
8325with_gnu_ld="$lt_cv_prog_gnu_ld"
8326
8327old_CC="$CC"
8328old_CFLAGS="$CFLAGS"
8329
8330# Set sane defaults for various variables
8331test -z "$CC" && CC=cc
8332test -z "$LTCC" && LTCC=$CC
8333test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8334test -z "$LD" && LD=ld
8335test -z "$ac_objext" && ac_objext=o
8336
8337for cc_temp in $compiler""; do
8338  case $cc_temp in
8339    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8340    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8341    \-*) ;;
8342    *) break;;
8343  esac
8344done
8345cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8346
8347
8348# Only perform the check for file, if the check method requires it
8349test -z "$MAGIC_CMD" && MAGIC_CMD=file
8350case $deplibs_check_method in
8351file_magic*)
8352  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8354$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8355if ${lt_cv_path_MAGIC_CMD+:} false; then :
8356  $as_echo_n "(cached) " >&6
8357else
8358  case $MAGIC_CMD in
8359[\\/*] |  ?:[\\/]*)
8360  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8361  ;;
8362*)
8363  lt_save_MAGIC_CMD="$MAGIC_CMD"
8364  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8365  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8366  for ac_dir in $ac_dummy; do
8367    IFS="$lt_save_ifs"
8368    test -z "$ac_dir" && ac_dir=.
8369    if test -f $ac_dir/${ac_tool_prefix}file; then
8370      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8371      if test -n "$file_magic_test_file"; then
8372	case $deplibs_check_method in
8373	"file_magic "*)
8374	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8375	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8376	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8377	    $EGREP "$file_magic_regex" > /dev/null; then
8378	    :
8379	  else
8380	    cat <<_LT_EOF 1>&2
8381
8382*** Warning: the command libtool uses to detect shared libraries,
8383*** $file_magic_cmd, produces output that libtool cannot recognize.
8384*** The result is that libtool may fail to recognize shared libraries
8385*** as such.  This will affect the creation of libtool libraries that
8386*** depend on shared libraries, but programs linked with such libtool
8387*** libraries will work regardless of this problem.  Nevertheless, you
8388*** may want to report the problem to your system manager and/or to
8389*** bug-libtool@gnu.org
8390
8391_LT_EOF
8392	  fi ;;
8393	esac
8394      fi
8395      break
8396    fi
8397  done
8398  IFS="$lt_save_ifs"
8399  MAGIC_CMD="$lt_save_MAGIC_CMD"
8400  ;;
8401esac
8402fi
8403
8404MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8405if test -n "$MAGIC_CMD"; then
8406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8407$as_echo "$MAGIC_CMD" >&6; }
8408else
8409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410$as_echo "no" >&6; }
8411fi
8412
8413
8414
8415
8416
8417if test -z "$lt_cv_path_MAGIC_CMD"; then
8418  if test -n "$ac_tool_prefix"; then
8419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8420$as_echo_n "checking for file... " >&6; }
8421if ${lt_cv_path_MAGIC_CMD+:} false; then :
8422  $as_echo_n "(cached) " >&6
8423else
8424  case $MAGIC_CMD in
8425[\\/*] |  ?:[\\/]*)
8426  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8427  ;;
8428*)
8429  lt_save_MAGIC_CMD="$MAGIC_CMD"
8430  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8431  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8432  for ac_dir in $ac_dummy; do
8433    IFS="$lt_save_ifs"
8434    test -z "$ac_dir" && ac_dir=.
8435    if test -f $ac_dir/file; then
8436      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8437      if test -n "$file_magic_test_file"; then
8438	case $deplibs_check_method in
8439	"file_magic "*)
8440	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8441	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8442	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8443	    $EGREP "$file_magic_regex" > /dev/null; then
8444	    :
8445	  else
8446	    cat <<_LT_EOF 1>&2
8447
8448*** Warning: the command libtool uses to detect shared libraries,
8449*** $file_magic_cmd, produces output that libtool cannot recognize.
8450*** The result is that libtool may fail to recognize shared libraries
8451*** as such.  This will affect the creation of libtool libraries that
8452*** depend on shared libraries, but programs linked with such libtool
8453*** libraries will work regardless of this problem.  Nevertheless, you
8454*** may want to report the problem to your system manager and/or to
8455*** bug-libtool@gnu.org
8456
8457_LT_EOF
8458	  fi ;;
8459	esac
8460      fi
8461      break
8462    fi
8463  done
8464  IFS="$lt_save_ifs"
8465  MAGIC_CMD="$lt_save_MAGIC_CMD"
8466  ;;
8467esac
8468fi
8469
8470MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8471if test -n "$MAGIC_CMD"; then
8472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8473$as_echo "$MAGIC_CMD" >&6; }
8474else
8475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476$as_echo "no" >&6; }
8477fi
8478
8479
8480  else
8481    MAGIC_CMD=:
8482  fi
8483fi
8484
8485  fi
8486  ;;
8487esac
8488
8489# Use C for the default configuration in the libtool script
8490
8491lt_save_CC="$CC"
8492ac_ext=c
8493ac_cpp='$CPP $CPPFLAGS'
8494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8496ac_compiler_gnu=$ac_cv_c_compiler_gnu
8497
8498
8499# Source file extension for C test sources.
8500ac_ext=c
8501
8502# Object file extension for compiled C test sources.
8503objext=o
8504objext=$objext
8505
8506# Code to be used in simple compile tests
8507lt_simple_compile_test_code="int some_variable = 0;"
8508
8509# Code to be used in simple link tests
8510lt_simple_link_test_code='int main(){return(0);}'
8511
8512
8513
8514
8515
8516
8517
8518# If no C compiler was specified, use CC.
8519LTCC=${LTCC-"$CC"}
8520
8521# If no C compiler flags were specified, use CFLAGS.
8522LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8523
8524# Allow CC to be a program name with arguments.
8525compiler=$CC
8526
8527# Save the default compiler, since it gets overwritten when the other
8528# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8529compiler_DEFAULT=$CC
8530
8531# save warnings/boilerplate of simple test code
8532ac_outfile=conftest.$ac_objext
8533echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8534eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8535_lt_compiler_boilerplate=`cat conftest.err`
8536$RM conftest*
8537
8538ac_outfile=conftest.$ac_objext
8539echo "$lt_simple_link_test_code" >conftest.$ac_ext
8540eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8541_lt_linker_boilerplate=`cat conftest.err`
8542$RM -r conftest*
8543
8544
8545if test -n "$compiler"; then
8546
8547lt_prog_compiler_no_builtin_flag=
8548
8549if test "$GCC" = yes; then
8550  case $cc_basename in
8551  nvcc*)
8552    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8553  *)
8554    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8555  esac
8556
8557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8558$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8559if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8560  $as_echo_n "(cached) " >&6
8561else
8562  lt_cv_prog_compiler_rtti_exceptions=no
8563   ac_outfile=conftest.$ac_objext
8564   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8565   lt_compiler_flag="-fno-rtti -fno-exceptions"
8566   # Insert the option either (1) after the last *FLAGS variable, or
8567   # (2) before a word containing "conftest.", or (3) at the end.
8568   # Note that $ac_compile itself does not contain backslashes and begins
8569   # with a dollar sign (not a hyphen), so the echo should work correctly.
8570   # The option is referenced via a variable to avoid confusing sed.
8571   lt_compile=`echo "$ac_compile" | $SED \
8572   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8573   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8574   -e 's:$: $lt_compiler_flag:'`
8575   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8576   (eval "$lt_compile" 2>conftest.err)
8577   ac_status=$?
8578   cat conftest.err >&5
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   if (exit $ac_status) && test -s "$ac_outfile"; then
8581     # The compiler can only warn and ignore the option if not recognized
8582     # So say no if there are warnings other than the usual output.
8583     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8584     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8585     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8586       lt_cv_prog_compiler_rtti_exceptions=yes
8587     fi
8588   fi
8589   $RM conftest*
8590
8591fi
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8593$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8594
8595if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8596    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8597else
8598    :
8599fi
8600
8601fi
8602
8603
8604
8605
8606
8607
8608  lt_prog_compiler_wl=
8609lt_prog_compiler_pic=
8610lt_prog_compiler_static=
8611
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8613$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8614
8615  if test "$GCC" = yes; then
8616    lt_prog_compiler_wl='-Wl,'
8617    lt_prog_compiler_static='-static'
8618
8619    case $host_os in
8620      aix*)
8621      # All AIX code is PIC.
8622      if test "$host_cpu" = ia64; then
8623	# AIX 5 now supports IA64 processor
8624	lt_prog_compiler_static='-Bstatic'
8625      fi
8626      ;;
8627
8628    amigaos*)
8629      case $host_cpu in
8630      powerpc)
8631            # see comment about AmigaOS4 .so support
8632            lt_prog_compiler_pic='-fPIC'
8633        ;;
8634      m68k)
8635            # FIXME: we need at least 68020 code to build shared libraries, but
8636            # adding the `-m68020' flag to GCC prevents building anything better,
8637            # like `-m68040'.
8638            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8639        ;;
8640      esac
8641      ;;
8642
8643    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8644      # PIC is the default for these OSes.
8645      ;;
8646
8647    mingw* | cygwin* | pw32* | os2* | cegcc*)
8648      # This hack is so that the source file can tell whether it is being
8649      # built for inclusion in a dll (and should export symbols for example).
8650      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8651      # (--disable-auto-import) libraries
8652      lt_prog_compiler_pic='-DDLL_EXPORT'
8653      ;;
8654
8655    darwin* | rhapsody*)
8656      # PIC is the default on this platform
8657      # Common symbols not allowed in MH_DYLIB files
8658      lt_prog_compiler_pic='-fno-common'
8659      ;;
8660
8661    haiku*)
8662      # PIC is the default for Haiku.
8663      # The "-static" flag exists, but is broken.
8664      lt_prog_compiler_static=
8665      ;;
8666
8667    hpux*)
8668      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8669      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8670      # sets the default TLS model and affects inlining.
8671      case $host_cpu in
8672      hppa*64*)
8673	# +Z the default
8674	;;
8675      *)
8676	lt_prog_compiler_pic='-fPIC'
8677	;;
8678      esac
8679      ;;
8680
8681    interix[3-9]*)
8682      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8683      # Instead, we relocate shared libraries at runtime.
8684      ;;
8685
8686    msdosdjgpp*)
8687      # Just because we use GCC doesn't mean we suddenly get shared libraries
8688      # on systems that don't support them.
8689      lt_prog_compiler_can_build_shared=no
8690      enable_shared=no
8691      ;;
8692
8693    *nto* | *qnx*)
8694      # QNX uses GNU C++, but need to define -shared option too, otherwise
8695      # it will coredump.
8696      lt_prog_compiler_pic='-fPIC -shared'
8697      ;;
8698
8699    sysv4*MP*)
8700      if test -d /usr/nec; then
8701	lt_prog_compiler_pic=-Kconform_pic
8702      fi
8703      ;;
8704
8705    *)
8706      lt_prog_compiler_pic='-fPIC'
8707      ;;
8708    esac
8709
8710    case $cc_basename in
8711    nvcc*) # Cuda Compiler Driver 2.2
8712      lt_prog_compiler_wl='-Xlinker '
8713      lt_prog_compiler_pic='-Xcompiler -fPIC'
8714      ;;
8715    esac
8716  else
8717    # PORTME Check for flag to pass linker flags through the system compiler.
8718    case $host_os in
8719    aix*)
8720      lt_prog_compiler_wl='-Wl,'
8721      if test "$host_cpu" = ia64; then
8722	# AIX 5 now supports IA64 processor
8723	lt_prog_compiler_static='-Bstatic'
8724      else
8725	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8726      fi
8727      ;;
8728
8729    mingw* | cygwin* | pw32* | os2* | cegcc*)
8730      # This hack is so that the source file can tell whether it is being
8731      # built for inclusion in a dll (and should export symbols for example).
8732      lt_prog_compiler_pic='-DDLL_EXPORT'
8733      ;;
8734
8735    hpux9* | hpux10* | hpux11*)
8736      lt_prog_compiler_wl='-Wl,'
8737      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8738      # not for PA HP-UX.
8739      case $host_cpu in
8740      hppa*64*|ia64*)
8741	# +Z the default
8742	;;
8743      *)
8744	lt_prog_compiler_pic='+Z'
8745	;;
8746      esac
8747      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8748      lt_prog_compiler_static='${wl}-a ${wl}archive'
8749      ;;
8750
8751    irix5* | irix6* | nonstopux*)
8752      lt_prog_compiler_wl='-Wl,'
8753      # PIC (with -KPIC) is the default.
8754      lt_prog_compiler_static='-non_shared'
8755      ;;
8756
8757    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8758      case $cc_basename in
8759      # old Intel for x86_64 which still supported -KPIC.
8760      ecc*)
8761	lt_prog_compiler_wl='-Wl,'
8762	lt_prog_compiler_pic='-KPIC'
8763	lt_prog_compiler_static='-static'
8764        ;;
8765      # icc used to be incompatible with GCC.
8766      # ICC 10 doesn't accept -KPIC any more.
8767      icc* | ifort*)
8768	lt_prog_compiler_wl='-Wl,'
8769	lt_prog_compiler_pic='-fPIC'
8770	lt_prog_compiler_static='-static'
8771        ;;
8772      # Lahey Fortran 8.1.
8773      lf95*)
8774	lt_prog_compiler_wl='-Wl,'
8775	lt_prog_compiler_pic='--shared'
8776	lt_prog_compiler_static='--static'
8777	;;
8778      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8779        # Portland Group compilers (*not* the Pentium gcc compiler,
8780	# which looks to be a dead project)
8781	lt_prog_compiler_wl='-Wl,'
8782	lt_prog_compiler_pic='-fpic'
8783	lt_prog_compiler_static='-Bstatic'
8784        ;;
8785      ccc*)
8786        lt_prog_compiler_wl='-Wl,'
8787        # All Alpha code is PIC.
8788        lt_prog_compiler_static='-non_shared'
8789        ;;
8790      xl* | bgxl* | bgf* | mpixl*)
8791	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8792	lt_prog_compiler_wl='-Wl,'
8793	lt_prog_compiler_pic='-qpic'
8794	lt_prog_compiler_static='-qstaticlink'
8795	;;
8796      *)
8797	case `$CC -V 2>&1 | sed 5q` in
8798	*Sun\ F* | *Sun*Fortran*)
8799	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8800	  lt_prog_compiler_pic='-KPIC'
8801	  lt_prog_compiler_static='-Bstatic'
8802	  lt_prog_compiler_wl=''
8803	  ;;
8804	*Sun\ C*)
8805	  # Sun C 5.9
8806	  lt_prog_compiler_pic='-KPIC'
8807	  lt_prog_compiler_static='-Bstatic'
8808	  lt_prog_compiler_wl='-Wl,'
8809	  ;;
8810	esac
8811	;;
8812      esac
8813      ;;
8814
8815    newsos6)
8816      lt_prog_compiler_pic='-KPIC'
8817      lt_prog_compiler_static='-Bstatic'
8818      ;;
8819
8820    *nto* | *qnx*)
8821      # QNX uses GNU C++, but need to define -shared option too, otherwise
8822      # it will coredump.
8823      lt_prog_compiler_pic='-fPIC -shared'
8824      ;;
8825
8826    osf3* | osf4* | osf5*)
8827      lt_prog_compiler_wl='-Wl,'
8828      # All OSF/1 code is PIC.
8829      lt_prog_compiler_static='-non_shared'
8830      ;;
8831
8832    rdos*)
8833      lt_prog_compiler_static='-non_shared'
8834      ;;
8835
8836    solaris*)
8837      lt_prog_compiler_pic='-KPIC'
8838      lt_prog_compiler_static='-Bstatic'
8839      case $cc_basename in
8840      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8841	lt_prog_compiler_wl='-Qoption ld ';;
8842      *)
8843	lt_prog_compiler_wl='-Wl,';;
8844      esac
8845      ;;
8846
8847    sunos4*)
8848      lt_prog_compiler_wl='-Qoption ld '
8849      lt_prog_compiler_pic='-PIC'
8850      lt_prog_compiler_static='-Bstatic'
8851      ;;
8852
8853    sysv4 | sysv4.2uw2* | sysv4.3*)
8854      lt_prog_compiler_wl='-Wl,'
8855      lt_prog_compiler_pic='-KPIC'
8856      lt_prog_compiler_static='-Bstatic'
8857      ;;
8858
8859    sysv4*MP*)
8860      if test -d /usr/nec ;then
8861	lt_prog_compiler_pic='-Kconform_pic'
8862	lt_prog_compiler_static='-Bstatic'
8863      fi
8864      ;;
8865
8866    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8867      lt_prog_compiler_wl='-Wl,'
8868      lt_prog_compiler_pic='-KPIC'
8869      lt_prog_compiler_static='-Bstatic'
8870      ;;
8871
8872    unicos*)
8873      lt_prog_compiler_wl='-Wl,'
8874      lt_prog_compiler_can_build_shared=no
8875      ;;
8876
8877    uts4*)
8878      lt_prog_compiler_pic='-pic'
8879      lt_prog_compiler_static='-Bstatic'
8880      ;;
8881
8882    *)
8883      lt_prog_compiler_can_build_shared=no
8884      ;;
8885    esac
8886  fi
8887
8888case $host_os in
8889  # For platforms which do not support PIC, -DPIC is meaningless:
8890  *djgpp*)
8891    lt_prog_compiler_pic=
8892    ;;
8893  *)
8894    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8895    ;;
8896esac
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8898$as_echo "$lt_prog_compiler_pic" >&6; }
8899
8900
8901
8902
8903
8904
8905#
8906# Check to make sure the PIC flag actually works.
8907#
8908if test -n "$lt_prog_compiler_pic"; then
8909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8910$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8911if ${lt_cv_prog_compiler_pic_works+:} false; then :
8912  $as_echo_n "(cached) " >&6
8913else
8914  lt_cv_prog_compiler_pic_works=no
8915   ac_outfile=conftest.$ac_objext
8916   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8917   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8918   # Insert the option either (1) after the last *FLAGS variable, or
8919   # (2) before a word containing "conftest.", or (3) at the end.
8920   # Note that $ac_compile itself does not contain backslashes and begins
8921   # with a dollar sign (not a hyphen), so the echo should work correctly.
8922   # The option is referenced via a variable to avoid confusing sed.
8923   lt_compile=`echo "$ac_compile" | $SED \
8924   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8925   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8926   -e 's:$: $lt_compiler_flag:'`
8927   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8928   (eval "$lt_compile" 2>conftest.err)
8929   ac_status=$?
8930   cat conftest.err >&5
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   if (exit $ac_status) && test -s "$ac_outfile"; then
8933     # The compiler can only warn and ignore the option if not recognized
8934     # So say no if there are warnings other than the usual output.
8935     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8936     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8937     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8938       lt_cv_prog_compiler_pic_works=yes
8939     fi
8940   fi
8941   $RM conftest*
8942
8943fi
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8945$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8946
8947if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8948    case $lt_prog_compiler_pic in
8949     "" | " "*) ;;
8950     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8951     esac
8952else
8953    lt_prog_compiler_pic=
8954     lt_prog_compiler_can_build_shared=no
8955fi
8956
8957fi
8958
8959
8960
8961
8962
8963
8964#
8965# Check to make sure the static flag actually works.
8966#
8967wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8969$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8970if ${lt_cv_prog_compiler_static_works+:} false; then :
8971  $as_echo_n "(cached) " >&6
8972else
8973  lt_cv_prog_compiler_static_works=no
8974   save_LDFLAGS="$LDFLAGS"
8975   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8976   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8977   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8978     # The linker can only warn and ignore the option if not recognized
8979     # So say no if there are warnings
8980     if test -s conftest.err; then
8981       # Append any errors to the config.log.
8982       cat conftest.err 1>&5
8983       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8984       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8985       if diff conftest.exp conftest.er2 >/dev/null; then
8986         lt_cv_prog_compiler_static_works=yes
8987       fi
8988     else
8989       lt_cv_prog_compiler_static_works=yes
8990     fi
8991   fi
8992   $RM -r conftest*
8993   LDFLAGS="$save_LDFLAGS"
8994
8995fi
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8997$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8998
8999if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9000    :
9001else
9002    lt_prog_compiler_static=
9003fi
9004
9005
9006
9007
9008
9009
9010
9011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9012$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9013if ${lt_cv_prog_compiler_c_o+:} false; then :
9014  $as_echo_n "(cached) " >&6
9015else
9016  lt_cv_prog_compiler_c_o=no
9017   $RM -r conftest 2>/dev/null
9018   mkdir conftest
9019   cd conftest
9020   mkdir out
9021   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9022
9023   lt_compiler_flag="-o out/conftest2.$ac_objext"
9024   # Insert the option either (1) after the last *FLAGS variable, or
9025   # (2) before a word containing "conftest.", or (3) at the end.
9026   # Note that $ac_compile itself does not contain backslashes and begins
9027   # with a dollar sign (not a hyphen), so the echo should work correctly.
9028   lt_compile=`echo "$ac_compile" | $SED \
9029   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9030   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9031   -e 's:$: $lt_compiler_flag:'`
9032   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9033   (eval "$lt_compile" 2>out/conftest.err)
9034   ac_status=$?
9035   cat out/conftest.err >&5
9036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9038   then
9039     # The compiler can only warn and ignore the option if not recognized
9040     # So say no if there are warnings
9041     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9042     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9043     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9044       lt_cv_prog_compiler_c_o=yes
9045     fi
9046   fi
9047   chmod u+w . 2>&5
9048   $RM conftest*
9049   # SGI C++ compiler will create directory out/ii_files/ for
9050   # template instantiation
9051   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9052   $RM out/* && rmdir out
9053   cd ..
9054   $RM -r conftest
9055   $RM conftest*
9056
9057fi
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9059$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9060
9061
9062
9063
9064
9065
9066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9067$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9068if ${lt_cv_prog_compiler_c_o+:} false; then :
9069  $as_echo_n "(cached) " >&6
9070else
9071  lt_cv_prog_compiler_c_o=no
9072   $RM -r conftest 2>/dev/null
9073   mkdir conftest
9074   cd conftest
9075   mkdir out
9076   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9077
9078   lt_compiler_flag="-o out/conftest2.$ac_objext"
9079   # Insert the option either (1) after the last *FLAGS variable, or
9080   # (2) before a word containing "conftest.", or (3) at the end.
9081   # Note that $ac_compile itself does not contain backslashes and begins
9082   # with a dollar sign (not a hyphen), so the echo should work correctly.
9083   lt_compile=`echo "$ac_compile" | $SED \
9084   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9085   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9086   -e 's:$: $lt_compiler_flag:'`
9087   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9088   (eval "$lt_compile" 2>out/conftest.err)
9089   ac_status=$?
9090   cat out/conftest.err >&5
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9093   then
9094     # The compiler can only warn and ignore the option if not recognized
9095     # So say no if there are warnings
9096     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9097     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9098     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9099       lt_cv_prog_compiler_c_o=yes
9100     fi
9101   fi
9102   chmod u+w . 2>&5
9103   $RM conftest*
9104   # SGI C++ compiler will create directory out/ii_files/ for
9105   # template instantiation
9106   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9107   $RM out/* && rmdir out
9108   cd ..
9109   $RM -r conftest
9110   $RM conftest*
9111
9112fi
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9114$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9115
9116
9117
9118
9119hard_links="nottested"
9120if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9121  # do not overwrite the value of need_locks provided by the user
9122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9123$as_echo_n "checking if we can lock with hard links... " >&6; }
9124  hard_links=yes
9125  $RM conftest*
9126  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9127  touch conftest.a
9128  ln conftest.a conftest.b 2>&5 || hard_links=no
9129  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9131$as_echo "$hard_links" >&6; }
9132  if test "$hard_links" = no; then
9133    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9134$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9135    need_locks=warn
9136  fi
9137else
9138  need_locks=no
9139fi
9140
9141
9142
9143
9144
9145
9146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9147$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9148
9149  runpath_var=
9150  allow_undefined_flag=
9151  always_export_symbols=no
9152  archive_cmds=
9153  archive_expsym_cmds=
9154  compiler_needs_object=no
9155  enable_shared_with_static_runtimes=no
9156  export_dynamic_flag_spec=
9157  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9158  hardcode_automatic=no
9159  hardcode_direct=no
9160  hardcode_direct_absolute=no
9161  hardcode_libdir_flag_spec=
9162  hardcode_libdir_flag_spec_ld=
9163  hardcode_libdir_separator=
9164  hardcode_minus_L=no
9165  hardcode_shlibpath_var=unsupported
9166  inherit_rpath=no
9167  link_all_deplibs=unknown
9168  module_cmds=
9169  module_expsym_cmds=
9170  old_archive_from_new_cmds=
9171  old_archive_from_expsyms_cmds=
9172  thread_safe_flag_spec=
9173  whole_archive_flag_spec=
9174  # include_expsyms should be a list of space-separated symbols to be *always*
9175  # included in the symbol list
9176  include_expsyms=
9177  # exclude_expsyms can be an extended regexp of symbols to exclude
9178  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9179  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9180  # as well as any symbol that contains `d'.
9181  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9182  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9183  # platforms (ab)use it in PIC code, but their linkers get confused if
9184  # the symbol is explicitly referenced.  Since portable code cannot
9185  # rely on this symbol name, it's probably fine to never include it in
9186  # preloaded symbol tables.
9187  # Exclude shared library initialization/finalization symbols.
9188  extract_expsyms_cmds=
9189
9190  case $host_os in
9191  cygwin* | mingw* | pw32* | cegcc*)
9192    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9193    # When not using gcc, we currently assume that we are using
9194    # Microsoft Visual C++.
9195    if test "$GCC" != yes; then
9196      with_gnu_ld=no
9197    fi
9198    ;;
9199  interix*)
9200    # we just hope/assume this is gcc and not c89 (= MSVC++)
9201    with_gnu_ld=yes
9202    ;;
9203  openbsd*)
9204    with_gnu_ld=no
9205    ;;
9206  esac
9207
9208  ld_shlibs=yes
9209
9210  # On some targets, GNU ld is compatible enough with the native linker
9211  # that we're better off using the native interface for both.
9212  lt_use_gnu_ld_interface=no
9213  if test "$with_gnu_ld" = yes; then
9214    case $host_os in
9215      aix*)
9216	# The AIX port of GNU ld has always aspired to compatibility
9217	# with the native linker.  However, as the warning in the GNU ld
9218	# block says, versions before 2.19.5* couldn't really create working
9219	# shared libraries, regardless of the interface used.
9220	case `$LD -v 2>&1` in
9221	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9222	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9223	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9224	  *)
9225	    lt_use_gnu_ld_interface=yes
9226	    ;;
9227	esac
9228	;;
9229      *)
9230	lt_use_gnu_ld_interface=yes
9231	;;
9232    esac
9233  fi
9234
9235  if test "$lt_use_gnu_ld_interface" = yes; then
9236    # If archive_cmds runs LD, not CC, wlarc should be empty
9237    wlarc='${wl}'
9238
9239    # Set some defaults for GNU ld with shared library support. These
9240    # are reset later if shared libraries are not supported. Putting them
9241    # here allows them to be overridden if necessary.
9242    runpath_var=LD_RUN_PATH
9243    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244    export_dynamic_flag_spec='${wl}--export-dynamic'
9245    # ancient GNU ld didn't support --whole-archive et. al.
9246    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9247      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9248    else
9249      whole_archive_flag_spec=
9250    fi
9251    supports_anon_versioning=no
9252    case `$LD -v 2>&1` in
9253      *GNU\ gold*) supports_anon_versioning=yes ;;
9254      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9255      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9256      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9257      *\ 2.11.*) ;; # other 2.11 versions
9258      *) supports_anon_versioning=yes ;;
9259    esac
9260
9261    # See if GNU ld supports shared libraries.
9262    case $host_os in
9263    aix[3-9]*)
9264      # On AIX/PPC, the GNU linker is very broken
9265      if test "$host_cpu" != ia64; then
9266	ld_shlibs=no
9267	cat <<_LT_EOF 1>&2
9268
9269*** Warning: the GNU linker, at least up to release 2.19, is reported
9270*** to be unable to reliably create shared libraries on AIX.
9271*** Therefore, libtool is disabling shared libraries support.  If you
9272*** really care for shared libraries, you may want to install binutils
9273*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9274*** You will then need to restart the configuration process.
9275
9276_LT_EOF
9277      fi
9278      ;;
9279
9280    amigaos*)
9281      case $host_cpu in
9282      powerpc)
9283            # see comment about AmigaOS4 .so support
9284            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9285            archive_expsym_cmds=''
9286        ;;
9287      m68k)
9288            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)'
9289            hardcode_libdir_flag_spec='-L$libdir'
9290            hardcode_minus_L=yes
9291        ;;
9292      esac
9293      ;;
9294
9295    beos*)
9296      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9297	allow_undefined_flag=unsupported
9298	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9299	# support --undefined.  This deserves some investigation.  FIXME
9300	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301      else
9302	ld_shlibs=no
9303      fi
9304      ;;
9305
9306    cygwin* | mingw* | pw32* | cegcc*)
9307      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9308      # as there is no search path for DLLs.
9309      hardcode_libdir_flag_spec='-L$libdir'
9310      export_dynamic_flag_spec='${wl}--export-all-symbols'
9311      allow_undefined_flag=unsupported
9312      always_export_symbols=no
9313      enable_shared_with_static_runtimes=yes
9314      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9315
9316      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9317        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9318	# If the export-symbols file already is a .def file (1st line
9319	# is EXPORTS), use it as is; otherwise, prepend...
9320	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9321	  cp $export_symbols $output_objdir/$soname.def;
9322	else
9323	  echo EXPORTS > $output_objdir/$soname.def;
9324	  cat $export_symbols >> $output_objdir/$soname.def;
9325	fi~
9326	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9327      else
9328	ld_shlibs=no
9329      fi
9330      ;;
9331
9332    haiku*)
9333      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334      link_all_deplibs=yes
9335      ;;
9336
9337    interix[3-9]*)
9338      hardcode_direct=no
9339      hardcode_shlibpath_var=no
9340      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9341      export_dynamic_flag_spec='${wl}-E'
9342      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9343      # Instead, shared libraries are loaded at an image base (0x10000000 by
9344      # default) and relocated if they conflict, which is a slow very memory
9345      # consuming and fragmenting process.  To avoid this, we pick a random,
9346      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9347      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9348      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9349      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'
9350      ;;
9351
9352    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9353      tmp_diet=no
9354      if test "$host_os" = linux-dietlibc; then
9355	case $cc_basename in
9356	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9357	esac
9358      fi
9359      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9360	 && test "$tmp_diet" = no
9361      then
9362	tmp_addflag=
9363	tmp_sharedflag='-shared'
9364	case $cc_basename,$host_cpu in
9365        pgcc*)				# Portland Group C compiler
9366	  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'
9367	  tmp_addflag=' $pic_flag'
9368	  ;;
9369	pgf77* | pgf90* | pgf95* | pgfortran*)
9370					# Portland Group f77 and f90 compilers
9371	  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'
9372	  tmp_addflag=' $pic_flag -Mnomain' ;;
9373	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9374	  tmp_addflag=' -i_dynamic' ;;
9375	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9376	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9377	ifc* | ifort*)			# Intel Fortran compiler
9378	  tmp_addflag=' -nofor_main' ;;
9379	lf95*)				# Lahey Fortran 8.1
9380	  whole_archive_flag_spec=
9381	  tmp_sharedflag='--shared' ;;
9382	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9383	  tmp_sharedflag='-qmkshrobj'
9384	  tmp_addflag= ;;
9385	nvcc*)	# Cuda Compiler Driver 2.2
9386	  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'
9387	  compiler_needs_object=yes
9388	  ;;
9389	esac
9390	case `$CC -V 2>&1 | sed 5q` in
9391	*Sun\ C*)			# Sun C 5.9
9392	  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'
9393	  compiler_needs_object=yes
9394	  tmp_sharedflag='-G' ;;
9395	*Sun\ F*)			# Sun Fortran 8.3
9396	  tmp_sharedflag='-G' ;;
9397	esac
9398	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399
9400        if test "x$supports_anon_versioning" = xyes; then
9401          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9402	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9403	    echo "local: *; };" >> $output_objdir/$libname.ver~
9404	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9405        fi
9406
9407	case $cc_basename in
9408	xlf* | bgf* | bgxlf* | mpixlf*)
9409	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9410	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9411	  hardcode_libdir_flag_spec=
9412	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9413	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9414	  if test "x$supports_anon_versioning" = xyes; then
9415	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9416	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9417	      echo "local: *; };" >> $output_objdir/$libname.ver~
9418	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9419	  fi
9420	  ;;
9421	esac
9422      else
9423        ld_shlibs=no
9424      fi
9425      ;;
9426
9427    netbsd*)
9428      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9429	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9430	wlarc=
9431      else
9432	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9434      fi
9435      ;;
9436
9437    solaris*)
9438      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9439	ld_shlibs=no
9440	cat <<_LT_EOF 1>&2
9441
9442*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9443*** create shared libraries on Solaris systems.  Therefore, libtool
9444*** is disabling shared libraries support.  We urge you to upgrade GNU
9445*** binutils to release 2.9.1 or newer.  Another option is to modify
9446*** your PATH or compiler configuration so that the native linker is
9447*** used, and then restart.
9448
9449_LT_EOF
9450      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9451	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9453      else
9454	ld_shlibs=no
9455      fi
9456      ;;
9457
9458    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9459      case `$LD -v 2>&1` in
9460        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9461	ld_shlibs=no
9462	cat <<_LT_EOF 1>&2
9463
9464*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9465*** reliably create shared libraries on SCO systems.  Therefore, libtool
9466*** is disabling shared libraries support.  We urge you to upgrade GNU
9467*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9468*** your PATH or compiler configuration so that the native linker is
9469*** used, and then restart.
9470
9471_LT_EOF
9472	;;
9473	*)
9474	  # For security reasons, it is highly recommended that you always
9475	  # use absolute paths for naming shared libraries, and exclude the
9476	  # DT_RUNPATH tag from executables and libraries.  But doing so
9477	  # requires that you compile everything twice, which is a pain.
9478	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9480	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9482	  else
9483	    ld_shlibs=no
9484	  fi
9485	;;
9486      esac
9487      ;;
9488
9489    sunos4*)
9490      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9491      wlarc=
9492      hardcode_direct=yes
9493      hardcode_shlibpath_var=no
9494      ;;
9495
9496    *)
9497      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9498	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9500      else
9501	ld_shlibs=no
9502      fi
9503      ;;
9504    esac
9505
9506    if test "$ld_shlibs" = no; then
9507      runpath_var=
9508      hardcode_libdir_flag_spec=
9509      export_dynamic_flag_spec=
9510      whole_archive_flag_spec=
9511    fi
9512  else
9513    # PORTME fill in a description of your system's linker (not GNU ld)
9514    case $host_os in
9515    aix3*)
9516      allow_undefined_flag=unsupported
9517      always_export_symbols=yes
9518      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'
9519      # Note: this linker hardcodes the directories in LIBPATH if there
9520      # are no directories specified by -L.
9521      hardcode_minus_L=yes
9522      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9523	# Neither direct hardcoding nor static linking is supported with a
9524	# broken collect2.
9525	hardcode_direct=unsupported
9526      fi
9527      ;;
9528
9529    aix[4-9]*)
9530      if test "$host_cpu" = ia64; then
9531	# On IA64, the linker does run time linking by default, so we don't
9532	# have to do anything special.
9533	aix_use_runtimelinking=no
9534	exp_sym_flag='-Bexport'
9535	no_entry_flag=""
9536      else
9537	# If we're using GNU nm, then we don't want the "-C" option.
9538	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9539	# Also, AIX nm treats weak defined symbols like other global
9540	# defined symbols, whereas GNU nm marks them as "W".
9541	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9542	  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'
9543	else
9544	  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'
9545	fi
9546	aix_use_runtimelinking=no
9547
9548	# Test if we are trying to use run time linking or normal
9549	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9550	# need to do runtime linking.
9551	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9552	  for ld_flag in $LDFLAGS; do
9553	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9554	    aix_use_runtimelinking=yes
9555	    break
9556	  fi
9557	  done
9558	  ;;
9559	esac
9560
9561	exp_sym_flag='-bexport'
9562	no_entry_flag='-bnoentry'
9563      fi
9564
9565      # When large executables or shared objects are built, AIX ld can
9566      # have problems creating the table of contents.  If linking a library
9567      # or program results in "error TOC overflow" add -mminimal-toc to
9568      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9569      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9570
9571      archive_cmds=''
9572      hardcode_direct=yes
9573      hardcode_direct_absolute=yes
9574      hardcode_libdir_separator=':'
9575      link_all_deplibs=yes
9576      file_list_spec='${wl}-f,'
9577
9578      if test "$GCC" = yes; then
9579	case $host_os in aix4.[012]|aix4.[012].*)
9580	# We only want to do this on AIX 4.2 and lower, the check
9581	# below for broken collect2 doesn't work under 4.3+
9582	  collect2name=`${CC} -print-prog-name=collect2`
9583	  if test -f "$collect2name" &&
9584	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9585	  then
9586	  # We have reworked collect2
9587	  :
9588	  else
9589	  # We have old collect2
9590	  hardcode_direct=unsupported
9591	  # It fails to find uninstalled libraries when the uninstalled
9592	  # path is not listed in the libpath.  Setting hardcode_minus_L
9593	  # to unsupported forces relinking
9594	  hardcode_minus_L=yes
9595	  hardcode_libdir_flag_spec='-L$libdir'
9596	  hardcode_libdir_separator=
9597	  fi
9598	  ;;
9599	esac
9600	shared_flag='-shared'
9601	if test "$aix_use_runtimelinking" = yes; then
9602	  shared_flag="$shared_flag "'${wl}-G'
9603	fi
9604      else
9605	# not using gcc
9606	if test "$host_cpu" = ia64; then
9607	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9608	# chokes on -Wl,-G. The following line is correct:
9609	  shared_flag='-G'
9610	else
9611	  if test "$aix_use_runtimelinking" = yes; then
9612	    shared_flag='${wl}-G'
9613	  else
9614	    shared_flag='${wl}-bM:SRE'
9615	  fi
9616	fi
9617      fi
9618
9619      export_dynamic_flag_spec='${wl}-bexpall'
9620      # It seems that -bexpall does not export symbols beginning with
9621      # underscore (_), so it is better to generate a list of symbols to export.
9622      always_export_symbols=yes
9623      if test "$aix_use_runtimelinking" = yes; then
9624	# Warning - without using the other runtime loading flags (-brtl),
9625	# -berok will link without error, but may produce a broken library.
9626	allow_undefined_flag='-berok'
9627        # Determine the default libpath from the value encoded in an
9628        # empty executable.
9629        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630/* end confdefs.h.  */
9631
9632int
9633main ()
9634{
9635
9636  ;
9637  return 0;
9638}
9639_ACEOF
9640if ac_fn_c_try_link "$LINENO"; then :
9641
9642lt_aix_libpath_sed='
9643    /Import File Strings/,/^$/ {
9644	/^0/ {
9645	    s/^0  *\(.*\)$/\1/
9646	    p
9647	}
9648    }'
9649aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9650# Check for a 64-bit object if we didn't find anything.
9651if test -z "$aix_libpath"; then
9652  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9653fi
9654fi
9655rm -f core conftest.err conftest.$ac_objext \
9656    conftest$ac_exeext conftest.$ac_ext
9657if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9658
9659        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9660        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"
9661      else
9662	if test "$host_cpu" = ia64; then
9663	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9664	  allow_undefined_flag="-z nodefs"
9665	  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"
9666	else
9667	 # Determine the default libpath from the value encoded in an
9668	 # empty executable.
9669	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670/* end confdefs.h.  */
9671
9672int
9673main ()
9674{
9675
9676  ;
9677  return 0;
9678}
9679_ACEOF
9680if ac_fn_c_try_link "$LINENO"; then :
9681
9682lt_aix_libpath_sed='
9683    /Import File Strings/,/^$/ {
9684	/^0/ {
9685	    s/^0  *\(.*\)$/\1/
9686	    p
9687	}
9688    }'
9689aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9690# Check for a 64-bit object if we didn't find anything.
9691if test -z "$aix_libpath"; then
9692  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9693fi
9694fi
9695rm -f core conftest.err conftest.$ac_objext \
9696    conftest$ac_exeext conftest.$ac_ext
9697if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9698
9699	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9700	  # Warning - without using the other run time loading flags,
9701	  # -berok will link without error, but may produce a broken library.
9702	  no_undefined_flag=' ${wl}-bernotok'
9703	  allow_undefined_flag=' ${wl}-berok'
9704	  if test "$with_gnu_ld" = yes; then
9705	    # We only use this code for GNU lds that support --whole-archive.
9706	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9707	  else
9708	    # Exported symbols can be pulled into shared objects from archives
9709	    whole_archive_flag_spec='$convenience'
9710	  fi
9711	  archive_cmds_need_lc=yes
9712	  # This is similar to how AIX traditionally builds its shared libraries.
9713	  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'
9714	fi
9715      fi
9716      ;;
9717
9718    amigaos*)
9719      case $host_cpu in
9720      powerpc)
9721            # see comment about AmigaOS4 .so support
9722            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723            archive_expsym_cmds=''
9724        ;;
9725      m68k)
9726            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)'
9727            hardcode_libdir_flag_spec='-L$libdir'
9728            hardcode_minus_L=yes
9729        ;;
9730      esac
9731      ;;
9732
9733    bsdi[45]*)
9734      export_dynamic_flag_spec=-rdynamic
9735      ;;
9736
9737    cygwin* | mingw* | pw32* | cegcc*)
9738      # When not using gcc, we currently assume that we are using
9739      # Microsoft Visual C++.
9740      # hardcode_libdir_flag_spec is actually meaningless, as there is
9741      # no search path for DLLs.
9742      hardcode_libdir_flag_spec=' '
9743      allow_undefined_flag=unsupported
9744      # Tell ltmain to make .lib files, not .a files.
9745      libext=lib
9746      # Tell ltmain to make .dll files, not .so files.
9747      shrext_cmds=".dll"
9748      # FIXME: Setting linknames here is a bad hack.
9749      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9750      # The linker will automatically build a .lib file if we build a DLL.
9751      old_archive_from_new_cmds='true'
9752      # FIXME: Should let the user specify the lib program.
9753      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9754      fix_srcfile_path='`cygpath -w "$srcfile"`'
9755      enable_shared_with_static_runtimes=yes
9756      ;;
9757
9758    darwin* | rhapsody*)
9759
9760
9761  archive_cmds_need_lc=no
9762  hardcode_direct=no
9763  hardcode_automatic=yes
9764  hardcode_shlibpath_var=unsupported
9765  if test "$lt_cv_ld_force_load" = "yes"; then
9766    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\"`'
9767  else
9768    whole_archive_flag_spec=''
9769  fi
9770  link_all_deplibs=yes
9771  allow_undefined_flag="$_lt_dar_allow_undefined"
9772  case $cc_basename in
9773     ifort*) _lt_dar_can_shared=yes ;;
9774     *) _lt_dar_can_shared=$GCC ;;
9775  esac
9776  if test "$_lt_dar_can_shared" = "yes"; then
9777    output_verbose_link_cmd=func_echo_all
9778    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9779    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9780    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}"
9781    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}"
9782
9783  else
9784  ld_shlibs=no
9785  fi
9786
9787      ;;
9788
9789    dgux*)
9790      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791      hardcode_libdir_flag_spec='-L$libdir'
9792      hardcode_shlibpath_var=no
9793      ;;
9794
9795    freebsd1*)
9796      ld_shlibs=no
9797      ;;
9798
9799    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9800    # support.  Future versions do this automatically, but an explicit c++rt0.o
9801    # does not break anything, and helps significantly (at the cost of a little
9802    # extra space).
9803    freebsd2.2*)
9804      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9805      hardcode_libdir_flag_spec='-R$libdir'
9806      hardcode_direct=yes
9807      hardcode_shlibpath_var=no
9808      ;;
9809
9810    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9811    freebsd2*)
9812      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9813      hardcode_direct=yes
9814      hardcode_minus_L=yes
9815      hardcode_shlibpath_var=no
9816      ;;
9817
9818    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9819    freebsd* | dragonfly*)
9820      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9821      hardcode_libdir_flag_spec='-R$libdir'
9822      hardcode_direct=yes
9823      hardcode_shlibpath_var=no
9824      ;;
9825
9826    hpux9*)
9827      if test "$GCC" = yes; then
9828	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9829      else
9830	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'
9831      fi
9832      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9833      hardcode_libdir_separator=:
9834      hardcode_direct=yes
9835
9836      # hardcode_minus_L: Not really in the search PATH,
9837      # but as the default location of the library.
9838      hardcode_minus_L=yes
9839      export_dynamic_flag_spec='${wl}-E'
9840      ;;
9841
9842    hpux10*)
9843      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9844	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9845      else
9846	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9847      fi
9848      if test "$with_gnu_ld" = no; then
9849	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9850	hardcode_libdir_flag_spec_ld='+b $libdir'
9851	hardcode_libdir_separator=:
9852	hardcode_direct=yes
9853	hardcode_direct_absolute=yes
9854	export_dynamic_flag_spec='${wl}-E'
9855	# hardcode_minus_L: Not really in the search PATH,
9856	# but as the default location of the library.
9857	hardcode_minus_L=yes
9858      fi
9859      ;;
9860
9861    hpux11*)
9862      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9863	case $host_cpu in
9864	hppa*64*)
9865	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9866	  ;;
9867	ia64*)
9868	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9869	  ;;
9870	*)
9871	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9872	  ;;
9873	esac
9874      else
9875	case $host_cpu in
9876	hppa*64*)
9877	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9878	  ;;
9879	ia64*)
9880	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9881	  ;;
9882	*)
9883
9884	  # Older versions of the 11.00 compiler do not understand -b yet
9885	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9886	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9887$as_echo_n "checking if $CC understands -b... " >&6; }
9888if ${lt_cv_prog_compiler__b+:} false; then :
9889  $as_echo_n "(cached) " >&6
9890else
9891  lt_cv_prog_compiler__b=no
9892   save_LDFLAGS="$LDFLAGS"
9893   LDFLAGS="$LDFLAGS -b"
9894   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9895   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9896     # The linker can only warn and ignore the option if not recognized
9897     # So say no if there are warnings
9898     if test -s conftest.err; then
9899       # Append any errors to the config.log.
9900       cat conftest.err 1>&5
9901       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9902       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9903       if diff conftest.exp conftest.er2 >/dev/null; then
9904         lt_cv_prog_compiler__b=yes
9905       fi
9906     else
9907       lt_cv_prog_compiler__b=yes
9908     fi
9909   fi
9910   $RM -r conftest*
9911   LDFLAGS="$save_LDFLAGS"
9912
9913fi
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9915$as_echo "$lt_cv_prog_compiler__b" >&6; }
9916
9917if test x"$lt_cv_prog_compiler__b" = xyes; then
9918    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9919else
9920    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9921fi
9922
9923	  ;;
9924	esac
9925      fi
9926      if test "$with_gnu_ld" = no; then
9927	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9928	hardcode_libdir_separator=:
9929
9930	case $host_cpu in
9931	hppa*64*|ia64*)
9932	  hardcode_direct=no
9933	  hardcode_shlibpath_var=no
9934	  ;;
9935	*)
9936	  hardcode_direct=yes
9937	  hardcode_direct_absolute=yes
9938	  export_dynamic_flag_spec='${wl}-E'
9939
9940	  # hardcode_minus_L: Not really in the search PATH,
9941	  # but as the default location of the library.
9942	  hardcode_minus_L=yes
9943	  ;;
9944	esac
9945      fi
9946      ;;
9947
9948    irix5* | irix6* | nonstopux*)
9949      if test "$GCC" = yes; then
9950	archive_cmds='$CC -shared $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'
9951	# Try to use the -exported_symbol ld option, if it does not
9952	# work, assume that -exports_file does not work either and
9953	# implicitly export all symbols.
9954        save_LDFLAGS="$LDFLAGS"
9955        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9956        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957/* end confdefs.h.  */
9958int foo(void) {}
9959_ACEOF
9960if ac_fn_c_try_link "$LINENO"; then :
9961  archive_expsym_cmds='$CC -shared $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'
9962
9963fi
9964rm -f core conftest.err conftest.$ac_objext \
9965    conftest$ac_exeext conftest.$ac_ext
9966        LDFLAGS="$save_LDFLAGS"
9967      else
9968	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'
9969	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'
9970      fi
9971      archive_cmds_need_lc='no'
9972      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973      hardcode_libdir_separator=:
9974      inherit_rpath=yes
9975      link_all_deplibs=yes
9976      ;;
9977
9978    netbsd*)
9979      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9980	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9981      else
9982	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9983      fi
9984      hardcode_libdir_flag_spec='-R$libdir'
9985      hardcode_direct=yes
9986      hardcode_shlibpath_var=no
9987      ;;
9988
9989    newsos6)
9990      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991      hardcode_direct=yes
9992      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9993      hardcode_libdir_separator=:
9994      hardcode_shlibpath_var=no
9995      ;;
9996
9997    *nto* | *qnx*)
9998      ;;
9999
10000    openbsd*)
10001      if test -f /usr/libexec/ld.so; then
10002	hardcode_direct=yes
10003	hardcode_shlibpath_var=no
10004	hardcode_direct_absolute=yes
10005	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10006	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10007	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10008	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10009	  export_dynamic_flag_spec='${wl}-E'
10010	else
10011	  case $host_os in
10012	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10013	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10014	     hardcode_libdir_flag_spec='-R$libdir'
10015	     ;;
10016	   *)
10017	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10018	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10019	     ;;
10020	  esac
10021	fi
10022      else
10023	ld_shlibs=no
10024      fi
10025      ;;
10026
10027    os2*)
10028      hardcode_libdir_flag_spec='-L$libdir'
10029      hardcode_minus_L=yes
10030      allow_undefined_flag=unsupported
10031      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'
10032      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10033      ;;
10034
10035    osf3*)
10036      if test "$GCC" = yes; then
10037	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10038	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'
10039      else
10040	allow_undefined_flag=' -expect_unresolved \*'
10041	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'
10042      fi
10043      archive_cmds_need_lc='no'
10044      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10045      hardcode_libdir_separator=:
10046      ;;
10047
10048    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10049      if test "$GCC" = yes; then
10050	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10051	archive_cmds='$CC -shared${allow_undefined_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'
10052	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10053      else
10054	allow_undefined_flag=' -expect_unresolved \*'
10055	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'
10056	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~
10057	$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'
10058
10059	# Both c and cxx compiler support -rpath directly
10060	hardcode_libdir_flag_spec='-rpath $libdir'
10061      fi
10062      archive_cmds_need_lc='no'
10063      hardcode_libdir_separator=:
10064      ;;
10065
10066    solaris*)
10067      no_undefined_flag=' -z defs'
10068      if test "$GCC" = yes; then
10069	wlarc='${wl}'
10070	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10071	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10072	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10073      else
10074	case `$CC -V 2>&1` in
10075	*"Compilers 5.0"*)
10076	  wlarc=''
10077	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10078	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10079	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10080	  ;;
10081	*)
10082	  wlarc='${wl}'
10083	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10084	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10085	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10086	  ;;
10087	esac
10088      fi
10089      hardcode_libdir_flag_spec='-R$libdir'
10090      hardcode_shlibpath_var=no
10091      case $host_os in
10092      solaris2.[0-5] | solaris2.[0-5].*) ;;
10093      *)
10094	# The compiler driver will combine and reorder linker options,
10095	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10096	# but is careful enough not to reorder.
10097	# Supported since Solaris 2.6 (maybe 2.5.1?)
10098	if test "$GCC" = yes; then
10099	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10100	else
10101	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10102	fi
10103	;;
10104      esac
10105      link_all_deplibs=yes
10106      ;;
10107
10108    sunos4*)
10109      if test "x$host_vendor" = xsequent; then
10110	# Use $CC to link under sequent, because it throws in some extra .o
10111	# files that make .init and .fini sections work.
10112	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10113      else
10114	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10115      fi
10116      hardcode_libdir_flag_spec='-L$libdir'
10117      hardcode_direct=yes
10118      hardcode_minus_L=yes
10119      hardcode_shlibpath_var=no
10120      ;;
10121
10122    sysv4)
10123      case $host_vendor in
10124	sni)
10125	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10126	  hardcode_direct=yes # is this really true???
10127	;;
10128	siemens)
10129	  ## LD is ld it makes a PLAMLIB
10130	  ## CC just makes a GrossModule.
10131	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10132	  reload_cmds='$CC -r -o $output$reload_objs'
10133	  hardcode_direct=no
10134        ;;
10135	motorola)
10136	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10138	;;
10139      esac
10140      runpath_var='LD_RUN_PATH'
10141      hardcode_shlibpath_var=no
10142      ;;
10143
10144    sysv4.3*)
10145      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146      hardcode_shlibpath_var=no
10147      export_dynamic_flag_spec='-Bexport'
10148      ;;
10149
10150    sysv4*MP*)
10151      if test -d /usr/nec; then
10152	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10153	hardcode_shlibpath_var=no
10154	runpath_var=LD_RUN_PATH
10155	hardcode_runpath_var=yes
10156	ld_shlibs=yes
10157      fi
10158      ;;
10159
10160    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10161      no_undefined_flag='${wl}-z,text'
10162      archive_cmds_need_lc=no
10163      hardcode_shlibpath_var=no
10164      runpath_var='LD_RUN_PATH'
10165
10166      if test "$GCC" = yes; then
10167	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169      else
10170	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10172      fi
10173      ;;
10174
10175    sysv5* | sco3.2v5* | sco5v6*)
10176      # Note: We can NOT use -z defs as we might desire, because we do not
10177      # link with -lc, and that would cause any symbols used from libc to
10178      # always be unresolved, which means just about no library would
10179      # ever link correctly.  If we're not using GNU ld we use -z text
10180      # though, which does catch some bad symbols but isn't as heavy-handed
10181      # as -z defs.
10182      no_undefined_flag='${wl}-z,text'
10183      allow_undefined_flag='${wl}-z,nodefs'
10184      archive_cmds_need_lc=no
10185      hardcode_shlibpath_var=no
10186      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10187      hardcode_libdir_separator=':'
10188      link_all_deplibs=yes
10189      export_dynamic_flag_spec='${wl}-Bexport'
10190      runpath_var='LD_RUN_PATH'
10191
10192      if test "$GCC" = yes; then
10193	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195      else
10196	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10197	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10198      fi
10199      ;;
10200
10201    uts4*)
10202      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203      hardcode_libdir_flag_spec='-L$libdir'
10204      hardcode_shlibpath_var=no
10205      ;;
10206
10207    *)
10208      ld_shlibs=no
10209      ;;
10210    esac
10211
10212    if test x$host_vendor = xsni; then
10213      case $host in
10214      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10215	export_dynamic_flag_spec='${wl}-Blargedynsym'
10216	;;
10217      esac
10218    fi
10219  fi
10220
10221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10222$as_echo "$ld_shlibs" >&6; }
10223test "$ld_shlibs" = no && can_build_shared=no
10224
10225with_gnu_ld=$with_gnu_ld
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241#
10242# Do we need to explicitly link libc?
10243#
10244case "x$archive_cmds_need_lc" in
10245x|xyes)
10246  # Assume -lc should be added
10247  archive_cmds_need_lc=yes
10248
10249  if test "$enable_shared" = yes && test "$GCC" = yes; then
10250    case $archive_cmds in
10251    *'~'*)
10252      # FIXME: we may have to deal with multi-command sequences.
10253      ;;
10254    '$CC '*)
10255      # Test whether the compiler implicitly links with -lc since on some
10256      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10257      # to ld, don't add -lc before -lgcc.
10258      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10259$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10260if ${lt_cv_archive_cmds_need_lc+:} false; then :
10261  $as_echo_n "(cached) " >&6
10262else
10263  $RM conftest*
10264	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10265
10266	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10267  (eval $ac_compile) 2>&5
10268  ac_status=$?
10269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10270  test $ac_status = 0; } 2>conftest.err; then
10271	  soname=conftest
10272	  lib=conftest
10273	  libobjs=conftest.$ac_objext
10274	  deplibs=
10275	  wl=$lt_prog_compiler_wl
10276	  pic_flag=$lt_prog_compiler_pic
10277	  compiler_flags=-v
10278	  linker_flags=-v
10279	  verstring=
10280	  output_objdir=.
10281	  libname=conftest
10282	  lt_save_allow_undefined_flag=$allow_undefined_flag
10283	  allow_undefined_flag=
10284	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10285  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10286  ac_status=$?
10287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10288  test $ac_status = 0; }
10289	  then
10290	    lt_cv_archive_cmds_need_lc=no
10291	  else
10292	    lt_cv_archive_cmds_need_lc=yes
10293	  fi
10294	  allow_undefined_flag=$lt_save_allow_undefined_flag
10295	else
10296	  cat conftest.err 1>&5
10297	fi
10298	$RM conftest*
10299
10300fi
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10302$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10303      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10304      ;;
10305    esac
10306  fi
10307  ;;
10308esac
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10467$as_echo_n "checking dynamic linker characteristics... " >&6; }
10468
10469if test "$GCC" = yes; then
10470  case $host_os in
10471    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10472    *) lt_awk_arg="/^libraries:/" ;;
10473  esac
10474  case $host_os in
10475    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10476    *) lt_sed_strip_eq="s,=/,/,g" ;;
10477  esac
10478  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10479  case $lt_search_path_spec in
10480  *\;*)
10481    # if the path contains ";" then we assume it to be the separator
10482    # otherwise default to the standard path separator (i.e. ":") - it is
10483    # assumed that no part of a normal pathname contains ";" but that should
10484    # okay in the real world where ";" in dirpaths is itself problematic.
10485    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10486    ;;
10487  *)
10488    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10489    ;;
10490  esac
10491  # Ok, now we have the path, separated by spaces, we can step through it
10492  # and add multilib dir if necessary.
10493  lt_tmp_lt_search_path_spec=
10494  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10495  for lt_sys_path in $lt_search_path_spec; do
10496    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10497      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10498    else
10499      test -d "$lt_sys_path" && \
10500	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10501    fi
10502  done
10503  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10504BEGIN {RS=" "; FS="/|\n";} {
10505  lt_foo="";
10506  lt_count=0;
10507  for (lt_i = NF; lt_i > 0; lt_i--) {
10508    if ($lt_i != "" && $lt_i != ".") {
10509      if ($lt_i == "..") {
10510        lt_count++;
10511      } else {
10512        if (lt_count == 0) {
10513          lt_foo="/" $lt_i lt_foo;
10514        } else {
10515          lt_count--;
10516        }
10517      }
10518    }
10519  }
10520  if (lt_foo != "") { lt_freq[lt_foo]++; }
10521  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10522}'`
10523  # AWK program above erroneously prepends '/' to C:/dos/paths
10524  # for these hosts.
10525  case $host_os in
10526    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10527      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10528  esac
10529  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10530else
10531  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10532fi
10533library_names_spec=
10534libname_spec='lib$name'
10535soname_spec=
10536shrext_cmds=".so"
10537postinstall_cmds=
10538postuninstall_cmds=
10539finish_cmds=
10540finish_eval=
10541shlibpath_var=
10542shlibpath_overrides_runpath=unknown
10543version_type=none
10544dynamic_linker="$host_os ld.so"
10545sys_lib_dlsearch_path_spec="/lib /usr/lib"
10546need_lib_prefix=unknown
10547hardcode_into_libs=no
10548
10549# when you set need_version to no, make sure it does not cause -set_version
10550# flags to be left without arguments
10551need_version=unknown
10552
10553case $host_os in
10554aix3*)
10555  version_type=linux
10556  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10557  shlibpath_var=LIBPATH
10558
10559  # AIX 3 has no versioning support, so we append a major version to the name.
10560  soname_spec='${libname}${release}${shared_ext}$major'
10561  ;;
10562
10563aix[4-9]*)
10564  version_type=linux
10565  need_lib_prefix=no
10566  need_version=no
10567  hardcode_into_libs=yes
10568  if test "$host_cpu" = ia64; then
10569    # AIX 5 supports IA64
10570    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10571    shlibpath_var=LD_LIBRARY_PATH
10572  else
10573    # With GCC up to 2.95.x, collect2 would create an import file
10574    # for dependence libraries.  The import file would start with
10575    # the line `#! .'.  This would cause the generated library to
10576    # depend on `.', always an invalid library.  This was fixed in
10577    # development snapshots of GCC prior to 3.0.
10578    case $host_os in
10579      aix4 | aix4.[01] | aix4.[01].*)
10580      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10581	   echo ' yes '
10582	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10583	:
10584      else
10585	can_build_shared=no
10586      fi
10587      ;;
10588    esac
10589    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10590    # soname into executable. Probably we can add versioning support to
10591    # collect2, so additional links can be useful in future.
10592    if test "$aix_use_runtimelinking" = yes; then
10593      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10594      # instead of lib<name>.a to let people know that these are not
10595      # typical AIX shared libraries.
10596      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597    else
10598      # We preserve .a as extension for shared libraries through AIX4.2
10599      # and later when we are not doing run time linking.
10600      library_names_spec='${libname}${release}.a $libname.a'
10601      soname_spec='${libname}${release}${shared_ext}$major'
10602    fi
10603    shlibpath_var=LIBPATH
10604  fi
10605  ;;
10606
10607amigaos*)
10608  case $host_cpu in
10609  powerpc)
10610    # Since July 2007 AmigaOS4 officially supports .so libraries.
10611    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10612    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613    ;;
10614  m68k)
10615    library_names_spec='$libname.ixlibrary $libname.a'
10616    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10617    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'
10618    ;;
10619  esac
10620  ;;
10621
10622beos*)
10623  library_names_spec='${libname}${shared_ext}'
10624  dynamic_linker="$host_os ld.so"
10625  shlibpath_var=LIBRARY_PATH
10626  ;;
10627
10628bsdi[45]*)
10629  version_type=linux
10630  need_version=no
10631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632  soname_spec='${libname}${release}${shared_ext}$major'
10633  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10634  shlibpath_var=LD_LIBRARY_PATH
10635  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10636  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10637  # the default ld.so.conf also contains /usr/contrib/lib and
10638  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10639  # libtool to hard-code these into programs
10640  ;;
10641
10642cygwin* | mingw* | pw32* | cegcc*)
10643  version_type=windows
10644  shrext_cmds=".dll"
10645  need_version=no
10646  need_lib_prefix=no
10647
10648  case $GCC,$host_os in
10649  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10650    library_names_spec='$libname.dll.a'
10651    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10652    postinstall_cmds='base_file=`basename \${file}`~
10653      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10654      dldir=$destdir/`dirname \$dlpath`~
10655      test -d \$dldir || mkdir -p \$dldir~
10656      $install_prog $dir/$dlname \$dldir/$dlname~
10657      chmod a+x \$dldir/$dlname~
10658      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10659        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10660      fi'
10661    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10662      dlpath=$dir/\$dldll~
10663       $RM \$dlpath'
10664    shlibpath_overrides_runpath=yes
10665
10666    case $host_os in
10667    cygwin*)
10668      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10669      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10670
10671      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10672      ;;
10673    mingw* | cegcc*)
10674      # MinGW DLLs use traditional 'lib' prefix
10675      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10676      ;;
10677    pw32*)
10678      # pw32 DLLs use 'pw' prefix rather than 'lib'
10679      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10680      ;;
10681    esac
10682    ;;
10683
10684  *)
10685    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10686    ;;
10687  esac
10688  dynamic_linker='Win32 ld.exe'
10689  # FIXME: first we should search . and the directory the executable is in
10690  shlibpath_var=PATH
10691  ;;
10692
10693darwin* | rhapsody*)
10694  dynamic_linker="$host_os dyld"
10695  version_type=darwin
10696  need_lib_prefix=no
10697  need_version=no
10698  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10699  soname_spec='${libname}${release}${major}$shared_ext'
10700  shlibpath_overrides_runpath=yes
10701  shlibpath_var=DYLD_LIBRARY_PATH
10702  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10703
10704  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10705  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10706  ;;
10707
10708dgux*)
10709  version_type=linux
10710  need_lib_prefix=no
10711  need_version=no
10712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10713  soname_spec='${libname}${release}${shared_ext}$major'
10714  shlibpath_var=LD_LIBRARY_PATH
10715  ;;
10716
10717freebsd1*)
10718  dynamic_linker=no
10719  ;;
10720
10721freebsd* | dragonfly*)
10722  # DragonFly does not have aout.  When/if they implement a new
10723  # versioning mechanism, adjust this.
10724  if test -x /usr/bin/objformat; then
10725    objformat=`/usr/bin/objformat`
10726  else
10727    case $host_os in
10728    freebsd[123]*) objformat=aout ;;
10729    *) objformat=elf ;;
10730    esac
10731  fi
10732  version_type=freebsd-$objformat
10733  case $version_type in
10734    freebsd-elf*)
10735      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10736      need_version=no
10737      need_lib_prefix=no
10738      ;;
10739    freebsd-*)
10740      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10741      need_version=yes
10742      ;;
10743  esac
10744  shlibpath_var=LD_LIBRARY_PATH
10745  case $host_os in
10746  freebsd2*)
10747    shlibpath_overrides_runpath=yes
10748    ;;
10749  freebsd3.[01]* | freebsdelf3.[01]*)
10750    shlibpath_overrides_runpath=yes
10751    hardcode_into_libs=yes
10752    ;;
10753  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10754  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10755    shlibpath_overrides_runpath=no
10756    hardcode_into_libs=yes
10757    ;;
10758  *) # from 4.6 on, and DragonFly
10759    shlibpath_overrides_runpath=yes
10760    hardcode_into_libs=yes
10761    ;;
10762  esac
10763  ;;
10764
10765gnu*)
10766  version_type=linux
10767  need_lib_prefix=no
10768  need_version=no
10769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10770  soname_spec='${libname}${release}${shared_ext}$major'
10771  shlibpath_var=LD_LIBRARY_PATH
10772  hardcode_into_libs=yes
10773  ;;
10774
10775haiku*)
10776  version_type=linux
10777  need_lib_prefix=no
10778  need_version=no
10779  dynamic_linker="$host_os runtime_loader"
10780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10781  soname_spec='${libname}${release}${shared_ext}$major'
10782  shlibpath_var=LIBRARY_PATH
10783  shlibpath_overrides_runpath=yes
10784  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10785  hardcode_into_libs=yes
10786  ;;
10787
10788hpux9* | hpux10* | hpux11*)
10789  # Give a soname corresponding to the major version so that dld.sl refuses to
10790  # link against other versions.
10791  version_type=sunos
10792  need_lib_prefix=no
10793  need_version=no
10794  case $host_cpu in
10795  ia64*)
10796    shrext_cmds='.so'
10797    hardcode_into_libs=yes
10798    dynamic_linker="$host_os dld.so"
10799    shlibpath_var=LD_LIBRARY_PATH
10800    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10801    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802    soname_spec='${libname}${release}${shared_ext}$major'
10803    if test "X$HPUX_IA64_MODE" = X32; then
10804      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10805    else
10806      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10807    fi
10808    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10809    ;;
10810  hppa*64*)
10811    shrext_cmds='.sl'
10812    hardcode_into_libs=yes
10813    dynamic_linker="$host_os dld.sl"
10814    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10815    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10816    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817    soname_spec='${libname}${release}${shared_ext}$major'
10818    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10819    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10820    ;;
10821  *)
10822    shrext_cmds='.sl'
10823    dynamic_linker="$host_os dld.sl"
10824    shlibpath_var=SHLIB_PATH
10825    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10826    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827    soname_spec='${libname}${release}${shared_ext}$major'
10828    ;;
10829  esac
10830  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10831  postinstall_cmds='chmod 555 $lib'
10832  # or fails outright, so override atomically:
10833  install_override_mode=555
10834  ;;
10835
10836interix[3-9]*)
10837  version_type=linux
10838  need_lib_prefix=no
10839  need_version=no
10840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10841  soname_spec='${libname}${release}${shared_ext}$major'
10842  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10843  shlibpath_var=LD_LIBRARY_PATH
10844  shlibpath_overrides_runpath=no
10845  hardcode_into_libs=yes
10846  ;;
10847
10848irix5* | irix6* | nonstopux*)
10849  case $host_os in
10850    nonstopux*) version_type=nonstopux ;;
10851    *)
10852	if test "$lt_cv_prog_gnu_ld" = yes; then
10853		version_type=linux
10854	else
10855		version_type=irix
10856	fi ;;
10857  esac
10858  need_lib_prefix=no
10859  need_version=no
10860  soname_spec='${libname}${release}${shared_ext}$major'
10861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10862  case $host_os in
10863  irix5* | nonstopux*)
10864    libsuff= shlibsuff=
10865    ;;
10866  *)
10867    case $LD in # libtool.m4 will add one of these switches to LD
10868    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10869      libsuff= shlibsuff= libmagic=32-bit;;
10870    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10871      libsuff=32 shlibsuff=N32 libmagic=N32;;
10872    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10873      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10874    *) libsuff= shlibsuff= libmagic=never-match;;
10875    esac
10876    ;;
10877  esac
10878  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10879  shlibpath_overrides_runpath=no
10880  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10881  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10882  hardcode_into_libs=yes
10883  ;;
10884
10885# No shared lib support for Linux oldld, aout, or coff.
10886linux*oldld* | linux*aout* | linux*coff*)
10887  dynamic_linker=no
10888  ;;
10889
10890# This must be Linux ELF.
10891linux* | k*bsd*-gnu | kopensolaris*-gnu)
10892  version_type=linux
10893  need_lib_prefix=no
10894  need_version=no
10895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896  soname_spec='${libname}${release}${shared_ext}$major'
10897  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10898  shlibpath_var=LD_LIBRARY_PATH
10899  shlibpath_overrides_runpath=no
10900
10901  # Some binutils ld are patched to set DT_RUNPATH
10902  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10903  $as_echo_n "(cached) " >&6
10904else
10905  lt_cv_shlibpath_overrides_runpath=no
10906    save_LDFLAGS=$LDFLAGS
10907    save_libdir=$libdir
10908    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10909	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10910    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911/* end confdefs.h.  */
10912
10913int
10914main ()
10915{
10916
10917  ;
10918  return 0;
10919}
10920_ACEOF
10921if ac_fn_c_try_link "$LINENO"; then :
10922  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10923  lt_cv_shlibpath_overrides_runpath=yes
10924fi
10925fi
10926rm -f core conftest.err conftest.$ac_objext \
10927    conftest$ac_exeext conftest.$ac_ext
10928    LDFLAGS=$save_LDFLAGS
10929    libdir=$save_libdir
10930
10931fi
10932
10933  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10934
10935  # This implies no fast_install, which is unacceptable.
10936  # Some rework will be needed to allow for fast_install
10937  # before this can be enabled.
10938  hardcode_into_libs=yes
10939
10940  # Append ld.so.conf contents to the search path
10941  if test -f /etc/ld.so.conf; then
10942    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' ' '`
10943    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10944  fi
10945
10946  # We used to test for /lib/ld.so.1 and disable shared libraries on
10947  # powerpc, because MkLinux only supported shared libraries with the
10948  # GNU dynamic linker.  Since this was broken with cross compilers,
10949  # most powerpc-linux boxes support dynamic linking these days and
10950  # people can always --disable-shared, the test was removed, and we
10951  # assume the GNU/Linux dynamic linker is in use.
10952  dynamic_linker='GNU/Linux ld.so'
10953  ;;
10954
10955netbsd*)
10956  version_type=sunos
10957  need_lib_prefix=no
10958  need_version=no
10959  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10960    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10961    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10962    dynamic_linker='NetBSD (a.out) ld.so'
10963  else
10964    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10965    soname_spec='${libname}${release}${shared_ext}$major'
10966    dynamic_linker='NetBSD ld.elf_so'
10967  fi
10968  shlibpath_var=LD_LIBRARY_PATH
10969  shlibpath_overrides_runpath=yes
10970  hardcode_into_libs=yes
10971  ;;
10972
10973newsos6)
10974  version_type=linux
10975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976  shlibpath_var=LD_LIBRARY_PATH
10977  shlibpath_overrides_runpath=yes
10978  ;;
10979
10980*nto* | *qnx*)
10981  version_type=qnx
10982  need_lib_prefix=no
10983  need_version=no
10984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985  soname_spec='${libname}${release}${shared_ext}$major'
10986  shlibpath_var=LD_LIBRARY_PATH
10987  shlibpath_overrides_runpath=no
10988  hardcode_into_libs=yes
10989  dynamic_linker='ldqnx.so'
10990  ;;
10991
10992openbsd*)
10993  version_type=sunos
10994  sys_lib_dlsearch_path_spec="/usr/lib"
10995  need_lib_prefix=no
10996  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10997  case $host_os in
10998    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10999    *)				need_version=no  ;;
11000  esac
11001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11002  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11003  shlibpath_var=LD_LIBRARY_PATH
11004  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11005    case $host_os in
11006      openbsd2.[89] | openbsd2.[89].*)
11007	shlibpath_overrides_runpath=no
11008	;;
11009      *)
11010	shlibpath_overrides_runpath=yes
11011	;;
11012      esac
11013  else
11014    shlibpath_overrides_runpath=yes
11015  fi
11016  ;;
11017
11018os2*)
11019  libname_spec='$name'
11020  shrext_cmds=".dll"
11021  need_lib_prefix=no
11022  library_names_spec='$libname${shared_ext} $libname.a'
11023  dynamic_linker='OS/2 ld.exe'
11024  shlibpath_var=LIBPATH
11025  ;;
11026
11027osf3* | osf4* | osf5*)
11028  version_type=osf
11029  need_lib_prefix=no
11030  need_version=no
11031  soname_spec='${libname}${release}${shared_ext}$major'
11032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033  shlibpath_var=LD_LIBRARY_PATH
11034  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11035  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11036  ;;
11037
11038rdos*)
11039  dynamic_linker=no
11040  ;;
11041
11042solaris*)
11043  version_type=linux
11044  need_lib_prefix=no
11045  need_version=no
11046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047  soname_spec='${libname}${release}${shared_ext}$major'
11048  shlibpath_var=LD_LIBRARY_PATH
11049  shlibpath_overrides_runpath=yes
11050  hardcode_into_libs=yes
11051  # ldd complains unless libraries are executable
11052  postinstall_cmds='chmod +x $lib'
11053  ;;
11054
11055sunos4*)
11056  version_type=sunos
11057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11058  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11059  shlibpath_var=LD_LIBRARY_PATH
11060  shlibpath_overrides_runpath=yes
11061  if test "$with_gnu_ld" = yes; then
11062    need_lib_prefix=no
11063  fi
11064  need_version=yes
11065  ;;
11066
11067sysv4 | sysv4.3*)
11068  version_type=linux
11069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070  soname_spec='${libname}${release}${shared_ext}$major'
11071  shlibpath_var=LD_LIBRARY_PATH
11072  case $host_vendor in
11073    sni)
11074      shlibpath_overrides_runpath=no
11075      need_lib_prefix=no
11076      runpath_var=LD_RUN_PATH
11077      ;;
11078    siemens)
11079      need_lib_prefix=no
11080      ;;
11081    motorola)
11082      need_lib_prefix=no
11083      need_version=no
11084      shlibpath_overrides_runpath=no
11085      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11086      ;;
11087  esac
11088  ;;
11089
11090sysv4*MP*)
11091  if test -d /usr/nec ;then
11092    version_type=linux
11093    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11094    soname_spec='$libname${shared_ext}.$major'
11095    shlibpath_var=LD_LIBRARY_PATH
11096  fi
11097  ;;
11098
11099sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11100  version_type=freebsd-elf
11101  need_lib_prefix=no
11102  need_version=no
11103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11104  soname_spec='${libname}${release}${shared_ext}$major'
11105  shlibpath_var=LD_LIBRARY_PATH
11106  shlibpath_overrides_runpath=yes
11107  hardcode_into_libs=yes
11108  if test "$with_gnu_ld" = yes; then
11109    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11110  else
11111    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11112    case $host_os in
11113      sco3.2v5*)
11114        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11115	;;
11116    esac
11117  fi
11118  sys_lib_dlsearch_path_spec='/usr/lib'
11119  ;;
11120
11121tpf*)
11122  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11123  version_type=linux
11124  need_lib_prefix=no
11125  need_version=no
11126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127  shlibpath_var=LD_LIBRARY_PATH
11128  shlibpath_overrides_runpath=no
11129  hardcode_into_libs=yes
11130  ;;
11131
11132uts4*)
11133  version_type=linux
11134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135  soname_spec='${libname}${release}${shared_ext}$major'
11136  shlibpath_var=LD_LIBRARY_PATH
11137  ;;
11138
11139*)
11140  dynamic_linker=no
11141  ;;
11142esac
11143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11144$as_echo "$dynamic_linker" >&6; }
11145test "$dynamic_linker" = no && can_build_shared=no
11146
11147variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11148if test "$GCC" = yes; then
11149  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11150fi
11151
11152if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11153  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11154fi
11155if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11156  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11157fi
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11251$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11252hardcode_action=
11253if test -n "$hardcode_libdir_flag_spec" ||
11254   test -n "$runpath_var" ||
11255   test "X$hardcode_automatic" = "Xyes" ; then
11256
11257  # We can hardcode non-existent directories.
11258  if test "$hardcode_direct" != no &&
11259     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11260     # have to relink, otherwise we might link with an installed library
11261     # when we should be linking with a yet-to-be-installed one
11262     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11263     test "$hardcode_minus_L" != no; then
11264    # Linking always hardcodes the temporary library directory.
11265    hardcode_action=relink
11266  else
11267    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11268    hardcode_action=immediate
11269  fi
11270else
11271  # We cannot hardcode anything, or else we can only hardcode existing
11272  # directories.
11273  hardcode_action=unsupported
11274fi
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11276$as_echo "$hardcode_action" >&6; }
11277
11278if test "$hardcode_action" = relink ||
11279   test "$inherit_rpath" = yes; then
11280  # Fast installation is not supported
11281  enable_fast_install=no
11282elif test "$shlibpath_overrides_runpath" = yes ||
11283     test "$enable_shared" = no; then
11284  # Fast installation is not necessary
11285  enable_fast_install=needless
11286fi
11287
11288
11289
11290
11291
11292
11293  if test "x$enable_dlopen" != xyes; then
11294  enable_dlopen=unknown
11295  enable_dlopen_self=unknown
11296  enable_dlopen_self_static=unknown
11297else
11298  lt_cv_dlopen=no
11299  lt_cv_dlopen_libs=
11300
11301  case $host_os in
11302  beos*)
11303    lt_cv_dlopen="load_add_on"
11304    lt_cv_dlopen_libs=
11305    lt_cv_dlopen_self=yes
11306    ;;
11307
11308  mingw* | pw32* | cegcc*)
11309    lt_cv_dlopen="LoadLibrary"
11310    lt_cv_dlopen_libs=
11311    ;;
11312
11313  cygwin*)
11314    lt_cv_dlopen="dlopen"
11315    lt_cv_dlopen_libs=
11316    ;;
11317
11318  darwin*)
11319  # if libdl is installed we need to link against it
11320    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11321$as_echo_n "checking for dlopen in -ldl... " >&6; }
11322if ${ac_cv_lib_dl_dlopen+:} false; then :
11323  $as_echo_n "(cached) " >&6
11324else
11325  ac_check_lib_save_LIBS=$LIBS
11326LIBS="-ldl  $LIBS"
11327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328/* end confdefs.h.  */
11329
11330/* Override any GCC internal prototype to avoid an error.
11331   Use char because int might match the return type of a GCC
11332   builtin and then its argument prototype would still apply.  */
11333#ifdef __cplusplus
11334extern "C"
11335#endif
11336char dlopen ();
11337int
11338main ()
11339{
11340return dlopen ();
11341  ;
11342  return 0;
11343}
11344_ACEOF
11345if ac_fn_c_try_link "$LINENO"; then :
11346  ac_cv_lib_dl_dlopen=yes
11347else
11348  ac_cv_lib_dl_dlopen=no
11349fi
11350rm -f core conftest.err conftest.$ac_objext \
11351    conftest$ac_exeext conftest.$ac_ext
11352LIBS=$ac_check_lib_save_LIBS
11353fi
11354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11355$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11356if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11357  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11358else
11359
11360    lt_cv_dlopen="dyld"
11361    lt_cv_dlopen_libs=
11362    lt_cv_dlopen_self=yes
11363
11364fi
11365
11366    ;;
11367
11368  *)
11369    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11370if test "x$ac_cv_func_shl_load" = xyes; then :
11371  lt_cv_dlopen="shl_load"
11372else
11373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11374$as_echo_n "checking for shl_load in -ldld... " >&6; }
11375if ${ac_cv_lib_dld_shl_load+:} false; then :
11376  $as_echo_n "(cached) " >&6
11377else
11378  ac_check_lib_save_LIBS=$LIBS
11379LIBS="-ldld  $LIBS"
11380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381/* end confdefs.h.  */
11382
11383/* Override any GCC internal prototype to avoid an error.
11384   Use char because int might match the return type of a GCC
11385   builtin and then its argument prototype would still apply.  */
11386#ifdef __cplusplus
11387extern "C"
11388#endif
11389char shl_load ();
11390int
11391main ()
11392{
11393return shl_load ();
11394  ;
11395  return 0;
11396}
11397_ACEOF
11398if ac_fn_c_try_link "$LINENO"; then :
11399  ac_cv_lib_dld_shl_load=yes
11400else
11401  ac_cv_lib_dld_shl_load=no
11402fi
11403rm -f core conftest.err conftest.$ac_objext \
11404    conftest$ac_exeext conftest.$ac_ext
11405LIBS=$ac_check_lib_save_LIBS
11406fi
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11408$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11409if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11410  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11411else
11412  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11413if test "x$ac_cv_func_dlopen" = xyes; then :
11414  lt_cv_dlopen="dlopen"
11415else
11416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11417$as_echo_n "checking for dlopen in -ldl... " >&6; }
11418if ${ac_cv_lib_dl_dlopen+:} false; then :
11419  $as_echo_n "(cached) " >&6
11420else
11421  ac_check_lib_save_LIBS=$LIBS
11422LIBS="-ldl  $LIBS"
11423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424/* end confdefs.h.  */
11425
11426/* Override any GCC internal prototype to avoid an error.
11427   Use char because int might match the return type of a GCC
11428   builtin and then its argument prototype would still apply.  */
11429#ifdef __cplusplus
11430extern "C"
11431#endif
11432char dlopen ();
11433int
11434main ()
11435{
11436return dlopen ();
11437  ;
11438  return 0;
11439}
11440_ACEOF
11441if ac_fn_c_try_link "$LINENO"; then :
11442  ac_cv_lib_dl_dlopen=yes
11443else
11444  ac_cv_lib_dl_dlopen=no
11445fi
11446rm -f core conftest.err conftest.$ac_objext \
11447    conftest$ac_exeext conftest.$ac_ext
11448LIBS=$ac_check_lib_save_LIBS
11449fi
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11451$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11452if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11453  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11454else
11455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11456$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11457if ${ac_cv_lib_svld_dlopen+:} false; then :
11458  $as_echo_n "(cached) " >&6
11459else
11460  ac_check_lib_save_LIBS=$LIBS
11461LIBS="-lsvld  $LIBS"
11462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463/* end confdefs.h.  */
11464
11465/* Override any GCC internal prototype to avoid an error.
11466   Use char because int might match the return type of a GCC
11467   builtin and then its argument prototype would still apply.  */
11468#ifdef __cplusplus
11469extern "C"
11470#endif
11471char dlopen ();
11472int
11473main ()
11474{
11475return dlopen ();
11476  ;
11477  return 0;
11478}
11479_ACEOF
11480if ac_fn_c_try_link "$LINENO"; then :
11481  ac_cv_lib_svld_dlopen=yes
11482else
11483  ac_cv_lib_svld_dlopen=no
11484fi
11485rm -f core conftest.err conftest.$ac_objext \
11486    conftest$ac_exeext conftest.$ac_ext
11487LIBS=$ac_check_lib_save_LIBS
11488fi
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11490$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11491if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11492  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11493else
11494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11495$as_echo_n "checking for dld_link in -ldld... " >&6; }
11496if ${ac_cv_lib_dld_dld_link+:} false; then :
11497  $as_echo_n "(cached) " >&6
11498else
11499  ac_check_lib_save_LIBS=$LIBS
11500LIBS="-ldld  $LIBS"
11501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502/* end confdefs.h.  */
11503
11504/* Override any GCC internal prototype to avoid an error.
11505   Use char because int might match the return type of a GCC
11506   builtin and then its argument prototype would still apply.  */
11507#ifdef __cplusplus
11508extern "C"
11509#endif
11510char dld_link ();
11511int
11512main ()
11513{
11514return dld_link ();
11515  ;
11516  return 0;
11517}
11518_ACEOF
11519if ac_fn_c_try_link "$LINENO"; then :
11520  ac_cv_lib_dld_dld_link=yes
11521else
11522  ac_cv_lib_dld_dld_link=no
11523fi
11524rm -f core conftest.err conftest.$ac_objext \
11525    conftest$ac_exeext conftest.$ac_ext
11526LIBS=$ac_check_lib_save_LIBS
11527fi
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11529$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11530if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11531  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11532fi
11533
11534
11535fi
11536
11537
11538fi
11539
11540
11541fi
11542
11543
11544fi
11545
11546
11547fi
11548
11549    ;;
11550  esac
11551
11552  if test "x$lt_cv_dlopen" != xno; then
11553    enable_dlopen=yes
11554  else
11555    enable_dlopen=no
11556  fi
11557
11558  case $lt_cv_dlopen in
11559  dlopen)
11560    save_CPPFLAGS="$CPPFLAGS"
11561    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11562
11563    save_LDFLAGS="$LDFLAGS"
11564    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11565
11566    save_LIBS="$LIBS"
11567    LIBS="$lt_cv_dlopen_libs $LIBS"
11568
11569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11570$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11571if ${lt_cv_dlopen_self+:} false; then :
11572  $as_echo_n "(cached) " >&6
11573else
11574  	  if test "$cross_compiling" = yes; then :
11575  lt_cv_dlopen_self=cross
11576else
11577  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11578  lt_status=$lt_dlunknown
11579  cat > conftest.$ac_ext <<_LT_EOF
11580#line $LINENO "configure"
11581#include "confdefs.h"
11582
11583#if HAVE_DLFCN_H
11584#include <dlfcn.h>
11585#endif
11586
11587#include <stdio.h>
11588
11589#ifdef RTLD_GLOBAL
11590#  define LT_DLGLOBAL		RTLD_GLOBAL
11591#else
11592#  ifdef DL_GLOBAL
11593#    define LT_DLGLOBAL		DL_GLOBAL
11594#  else
11595#    define LT_DLGLOBAL		0
11596#  endif
11597#endif
11598
11599/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11600   find out it does not work in some platform. */
11601#ifndef LT_DLLAZY_OR_NOW
11602#  ifdef RTLD_LAZY
11603#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11604#  else
11605#    ifdef DL_LAZY
11606#      define LT_DLLAZY_OR_NOW		DL_LAZY
11607#    else
11608#      ifdef RTLD_NOW
11609#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11610#      else
11611#        ifdef DL_NOW
11612#          define LT_DLLAZY_OR_NOW	DL_NOW
11613#        else
11614#          define LT_DLLAZY_OR_NOW	0
11615#        endif
11616#      endif
11617#    endif
11618#  endif
11619#endif
11620
11621/* When -fvisbility=hidden is used, assume the code has been annotated
11622   correspondingly for the symbols needed.  */
11623#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11624void fnord () __attribute__((visibility("default")));
11625#endif
11626
11627void fnord () { int i=42; }
11628int main ()
11629{
11630  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11631  int status = $lt_dlunknown;
11632
11633  if (self)
11634    {
11635      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11636      else
11637        {
11638	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11639          else puts (dlerror ());
11640	}
11641      /* dlclose (self); */
11642    }
11643  else
11644    puts (dlerror ());
11645
11646  return status;
11647}
11648_LT_EOF
11649  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11650  (eval $ac_link) 2>&5
11651  ac_status=$?
11652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11653  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11654    (./conftest; exit; ) >&5 2>/dev/null
11655    lt_status=$?
11656    case x$lt_status in
11657      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11658      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11659      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11660    esac
11661  else :
11662    # compilation failed
11663    lt_cv_dlopen_self=no
11664  fi
11665fi
11666rm -fr conftest*
11667
11668
11669fi
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11671$as_echo "$lt_cv_dlopen_self" >&6; }
11672
11673    if test "x$lt_cv_dlopen_self" = xyes; then
11674      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11675      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11676$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11677if ${lt_cv_dlopen_self_static+:} false; then :
11678  $as_echo_n "(cached) " >&6
11679else
11680  	  if test "$cross_compiling" = yes; then :
11681  lt_cv_dlopen_self_static=cross
11682else
11683  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11684  lt_status=$lt_dlunknown
11685  cat > conftest.$ac_ext <<_LT_EOF
11686#line $LINENO "configure"
11687#include "confdefs.h"
11688
11689#if HAVE_DLFCN_H
11690#include <dlfcn.h>
11691#endif
11692
11693#include <stdio.h>
11694
11695#ifdef RTLD_GLOBAL
11696#  define LT_DLGLOBAL		RTLD_GLOBAL
11697#else
11698#  ifdef DL_GLOBAL
11699#    define LT_DLGLOBAL		DL_GLOBAL
11700#  else
11701#    define LT_DLGLOBAL		0
11702#  endif
11703#endif
11704
11705/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11706   find out it does not work in some platform. */
11707#ifndef LT_DLLAZY_OR_NOW
11708#  ifdef RTLD_LAZY
11709#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11710#  else
11711#    ifdef DL_LAZY
11712#      define LT_DLLAZY_OR_NOW		DL_LAZY
11713#    else
11714#      ifdef RTLD_NOW
11715#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11716#      else
11717#        ifdef DL_NOW
11718#          define LT_DLLAZY_OR_NOW	DL_NOW
11719#        else
11720#          define LT_DLLAZY_OR_NOW	0
11721#        endif
11722#      endif
11723#    endif
11724#  endif
11725#endif
11726
11727/* When -fvisbility=hidden is used, assume the code has been annotated
11728   correspondingly for the symbols needed.  */
11729#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11730void fnord () __attribute__((visibility("default")));
11731#endif
11732
11733void fnord () { int i=42; }
11734int main ()
11735{
11736  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11737  int status = $lt_dlunknown;
11738
11739  if (self)
11740    {
11741      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11742      else
11743        {
11744	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11745          else puts (dlerror ());
11746	}
11747      /* dlclose (self); */
11748    }
11749  else
11750    puts (dlerror ());
11751
11752  return status;
11753}
11754_LT_EOF
11755  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11756  (eval $ac_link) 2>&5
11757  ac_status=$?
11758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11759  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11760    (./conftest; exit; ) >&5 2>/dev/null
11761    lt_status=$?
11762    case x$lt_status in
11763      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11764      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11765      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11766    esac
11767  else :
11768    # compilation failed
11769    lt_cv_dlopen_self_static=no
11770  fi
11771fi
11772rm -fr conftest*
11773
11774
11775fi
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11777$as_echo "$lt_cv_dlopen_self_static" >&6; }
11778    fi
11779
11780    CPPFLAGS="$save_CPPFLAGS"
11781    LDFLAGS="$save_LDFLAGS"
11782    LIBS="$save_LIBS"
11783    ;;
11784  esac
11785
11786  case $lt_cv_dlopen_self in
11787  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11788  *) enable_dlopen_self=unknown ;;
11789  esac
11790
11791  case $lt_cv_dlopen_self_static in
11792  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11793  *) enable_dlopen_self_static=unknown ;;
11794  esac
11795fi
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813striplib=
11814old_striplib=
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11816$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11817if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11818  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11819  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11821$as_echo "yes" >&6; }
11822else
11823# FIXME - insert some real tests, host_os isn't really good enough
11824  case $host_os in
11825  darwin*)
11826    if test -n "$STRIP" ; then
11827      striplib="$STRIP -x"
11828      old_striplib="$STRIP -S"
11829      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11830$as_echo "yes" >&6; }
11831    else
11832      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833$as_echo "no" >&6; }
11834    fi
11835    ;;
11836  *)
11837    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838$as_echo "no" >&6; }
11839    ;;
11840  esac
11841fi
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854  # Report which library types will actually be built
11855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11856$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11858$as_echo "$can_build_shared" >&6; }
11859
11860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11861$as_echo_n "checking whether to build shared libraries... " >&6; }
11862  test "$can_build_shared" = "no" && enable_shared=no
11863
11864  # On AIX, shared libraries and static libraries use the same namespace, and
11865  # are all built from PIC.
11866  case $host_os in
11867  aix3*)
11868    test "$enable_shared" = yes && enable_static=no
11869    if test -n "$RANLIB"; then
11870      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11871      postinstall_cmds='$RANLIB $lib'
11872    fi
11873    ;;
11874
11875  aix[4-9]*)
11876    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11877      test "$enable_shared" = yes && enable_static=no
11878    fi
11879    ;;
11880  esac
11881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11882$as_echo "$enable_shared" >&6; }
11883
11884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11885$as_echo_n "checking whether to build static libraries... " >&6; }
11886  # Make sure either enable_shared or enable_static is yes.
11887  test "$enable_shared" = yes || enable_static=yes
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11889$as_echo "$enable_static" >&6; }
11890
11891
11892
11893
11894fi
11895ac_ext=c
11896ac_cpp='$CPP $CPPFLAGS'
11897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11899ac_compiler_gnu=$ac_cv_c_compiler_gnu
11900
11901CC="$lt_save_CC"
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915        ac_config_commands="$ac_config_commands libtool"
11916
11917
11918
11919
11920# Only expand once:
11921
11922
11923if test "x$CC" != xcc; then
11924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11925$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11926else
11927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11928$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11929fi
11930set dummy $CC; ac_cc=`$as_echo "$2" |
11931		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11932if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11933  $as_echo_n "(cached) " >&6
11934else
11935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936/* end confdefs.h.  */
11937
11938int
11939main ()
11940{
11941
11942  ;
11943  return 0;
11944}
11945_ACEOF
11946# Make sure it works both with $CC and with simple cc.
11947# We do the test twice because some compilers refuse to overwrite an
11948# existing .o file with -o, though they will create one.
11949ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11950rm -f conftest2.*
11951if { { case "(($ac_try" in
11952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953  *) ac_try_echo=$ac_try;;
11954esac
11955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11956$as_echo "$ac_try_echo"; } >&5
11957  (eval "$ac_try") 2>&5
11958  ac_status=$?
11959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11960  test $ac_status = 0; } &&
11961   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963  *) ac_try_echo=$ac_try;;
11964esac
11965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11966$as_echo "$ac_try_echo"; } >&5
11967  (eval "$ac_try") 2>&5
11968  ac_status=$?
11969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11970  test $ac_status = 0; };
11971then
11972  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11973  if test "x$CC" != xcc; then
11974    # Test first that cc exists at all.
11975    if { ac_try='cc -c conftest.$ac_ext >&5'
11976  { { case "(($ac_try" in
11977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978  *) ac_try_echo=$ac_try;;
11979esac
11980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11981$as_echo "$ac_try_echo"; } >&5
11982  (eval "$ac_try") 2>&5
11983  ac_status=$?
11984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11985  test $ac_status = 0; }; }; then
11986      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11987      rm -f conftest2.*
11988      if { { case "(($ac_try" in
11989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990  *) ac_try_echo=$ac_try;;
11991esac
11992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11993$as_echo "$ac_try_echo"; } >&5
11994  (eval "$ac_try") 2>&5
11995  ac_status=$?
11996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11997  test $ac_status = 0; } &&
11998	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000  *) ac_try_echo=$ac_try;;
12001esac
12002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12003$as_echo "$ac_try_echo"; } >&5
12004  (eval "$ac_try") 2>&5
12005  ac_status=$?
12006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12007  test $ac_status = 0; };
12008      then
12009	# cc works too.
12010	:
12011      else
12012	# cc exists but doesn't like -o.
12013	eval ac_cv_prog_cc_${ac_cc}_c_o=no
12014      fi
12015    fi
12016  fi
12017else
12018  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12019fi
12020rm -f core conftest*
12021
12022fi
12023if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025$as_echo "yes" >&6; }
12026else
12027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028$as_echo "no" >&6; }
12029
12030$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12031
12032fi
12033
12034# FIXME: we rely on the cache variable name because
12035# there is no other way.
12036set dummy $CC
12037am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12038eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12039if test "$am_t" != yes; then
12040   # Losing compiler, so override with the script.
12041   # FIXME: It is wrong to rewrite CC.
12042   # But if we don't then we get into trouble of one sort or another.
12043   # A longer-term fix would be to have automake use am__CC in this case,
12044   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12045   CC="$am_aux_dir/compile $CC"
12046fi
12047
12048
12049
12050if test x"$CC_FOR_BUILD" = x; then
12051	if test x"$cross_compiling" = xyes; then
12052		for ac_prog in gcc cc
12053do
12054  # Extract the first word of "$ac_prog", so it can be a program name with args.
12055set dummy $ac_prog; ac_word=$2
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057$as_echo_n "checking for $ac_word... " >&6; }
12058if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
12059  $as_echo_n "(cached) " >&6
12060else
12061  if test -n "$CC_FOR_BUILD"; then
12062  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
12063else
12064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065for as_dir in $PATH
12066do
12067  IFS=$as_save_IFS
12068  test -z "$as_dir" && as_dir=.
12069    for ac_exec_ext in '' $ac_executable_extensions; do
12070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12071    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
12072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073    break 2
12074  fi
12075done
12076  done
12077IFS=$as_save_IFS
12078
12079fi
12080fi
12081CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
12082if test -n "$CC_FOR_BUILD"; then
12083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
12084$as_echo "$CC_FOR_BUILD" >&6; }
12085else
12086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087$as_echo "no" >&6; }
12088fi
12089
12090
12091  test -n "$CC_FOR_BUILD" && break
12092done
12093
12094	else
12095	        CC_FOR_BUILD="$CC"
12096	fi
12097fi
12098
12099CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
12100
12101LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
12102
12103
12104
12105pkg_failed=no
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5
12107$as_echo_n "checking for XT... " >&6; }
12108
12109if test -n "$XT_CFLAGS"; then
12110    pkg_cv_XT_CFLAGS="$XT_CFLAGS"
12111 elif test -n "$PKG_CONFIG"; then
12112    if test -n "$PKG_CONFIG" && \
12113    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5
12114  ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
12115  ac_status=$?
12116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12117  test $ac_status = 0; }; then
12118  pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm ice x11 xproto kbproto" 2>/dev/null`
12119else
12120  pkg_failed=yes
12121fi
12122 else
12123    pkg_failed=untried
12124fi
12125if test -n "$XT_LIBS"; then
12126    pkg_cv_XT_LIBS="$XT_LIBS"
12127 elif test -n "$PKG_CONFIG"; then
12128    if test -n "$PKG_CONFIG" && \
12129    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5
12130  ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
12131  ac_status=$?
12132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12133  test $ac_status = 0; }; then
12134  pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm ice x11 xproto kbproto" 2>/dev/null`
12135else
12136  pkg_failed=yes
12137fi
12138 else
12139    pkg_failed=untried
12140fi
12141
12142
12143
12144if test $pkg_failed = yes; then
12145
12146if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12147        _pkg_short_errors_supported=yes
12148else
12149        _pkg_short_errors_supported=no
12150fi
12151        if test $_pkg_short_errors_supported = yes; then
12152	        XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm ice x11 xproto kbproto" 2>&1`
12153        else
12154	        XT_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm ice x11 xproto kbproto" 2>&1`
12155        fi
12156	# Put the nasty error message in config.log where it belongs
12157	echo "$XT_PKG_ERRORS" >&5
12158
12159	as_fn_error $? "Package requirements (sm ice x11 xproto kbproto) were not met:
12160
12161$XT_PKG_ERRORS
12162
12163Consider adjusting the PKG_CONFIG_PATH environment variable if you
12164installed software in a non-standard prefix.
12165
12166Alternatively, you may set the environment variables XT_CFLAGS
12167and XT_LIBS to avoid the need to call pkg-config.
12168See the pkg-config man page for more details.
12169" "$LINENO" 5
12170elif test $pkg_failed = untried; then
12171	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12173as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12174is in your PATH or set the PKG_CONFIG environment variable to the full
12175path to pkg-config.
12176
12177Alternatively, you may set the environment variables XT_CFLAGS
12178and XT_LIBS to avoid the need to call pkg-config.
12179See the pkg-config man page for more details.
12180
12181To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12182See \`config.log' for more details" "$LINENO" 5; }
12183else
12184	XT_CFLAGS=$pkg_cv_XT_CFLAGS
12185	XT_LIBS=$pkg_cv_XT_LIBS
12186        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12187$as_echo "yes" >&6; }
12188	:
12189fi
12190
12191# Needed for including Xalloca.h
12192ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
12193if test "x$ac_cv_header_alloca_h" = xyes; then :
12194
12195$as_echo "#define INCLUDE_ALLOCA_H 1" >>confdefs.h
12196
12197fi
12198
12199
12200
12201# Map function checks to old Imake #defines
12202case $host_os in
12203	# darwin has poll() but can't be used to poll character devices (atleast through SnowLeopard)
12204	darwin*) ;;
12205	*)
12206		ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
12207if test "x$ac_cv_func_poll" = xyes; then :
12208
12209$as_echo "#define USE_POLL 1" >>confdefs.h
12210
12211fi
12212
12213	;;
12214esac
12215ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
12216if test "x$ac_cv_func_snprintf" = xyes; then :
12217
12218$as_echo "#define USE_SNPRINTF 1" >>confdefs.h
12219
12220fi
12221
12222
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12224$as_echo_n "checking for main in -lws2_32... " >&6; }
12225if ${ac_cv_lib_ws2_32_main+:} false; then :
12226  $as_echo_n "(cached) " >&6
12227else
12228  ac_check_lib_save_LIBS=$LIBS
12229LIBS="-lws2_32  $LIBS"
12230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231/* end confdefs.h.  */
12232
12233
12234int
12235main ()
12236{
12237return main ();
12238  ;
12239  return 0;
12240}
12241_ACEOF
12242if ac_fn_c_try_link "$LINENO"; then :
12243  ac_cv_lib_ws2_32_main=yes
12244else
12245  ac_cv_lib_ws2_32_main=no
12246fi
12247rm -f core conftest.err conftest.$ac_objext \
12248    conftest$ac_exeext conftest.$ac_ext
12249LIBS=$ac_check_lib_save_LIBS
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12252$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
12253if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
12254  cat >>confdefs.h <<_ACEOF
12255#define HAVE_LIBWS2_32 1
12256_ACEOF
12257
12258  LIBS="-lws2_32 $LIBS"
12259
12260fi
12261ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
12262
12263
12264# Options
12265# Check whether --enable-xkb was given.
12266if test "${enable_xkb+set}" = set; then :
12267  enableval=$enable_xkb; XKB="$enableval"
12268else
12269  XKB="yes"
12270fi
12271
12272if test "x$XKB" = "xyes" ; then
12273
12274$as_echo "#define XKB 1" >>confdefs.h
12275
12276fi
12277
12278# Replaces XFileSearchPathDefault from Imake configs
12279XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S'
12280
12281
12282# Check whether --with-xfile-search-path was given.
12283if test "${with_xfile_search_path+set}" = set; then :
12284  withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval"
12285fi
12286
12287
12288
12289
12290# Check whether --with-appdefaultdir was given.
12291if test "${with_appdefaultdir+set}" = set; then :
12292  withval=$with_appdefaultdir; appdefaultdir="$withval"
12293else
12294  appdefaultdir=${datadir}/X11/app-defaults
12295fi
12296
12297
12298  prefix_NONE=
12299  exec_prefix_NONE=
12300  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
12301  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
12302  eval ax_define_dir="\"$appdefaultdir\""
12303  eval ax_define_dir="\"$ax_define_dir\""
12304  appdefaultdir="$ax_define_dir"
12305
12306
12307cat >>confdefs.h <<_ACEOF
12308#define appdefaultdir "$ax_define_dir"
12309_ACEOF
12310
12311  test "$prefix_NONE" && prefix=NONE
12312  test "$exec_prefix_NONE" && exec_prefix=NONE
12313
12314
12315# Replacement for Imake ToolkitStringsABIOptions, controls string tables
12316# generated by util/string.list in StringDefs.h & Shell.h
12317case $host_os in
12318	solaris*)
12319		# Solaris uses -intelabi even on SPARC
12320  		STRINGSABIOPTIONS="-intelabi -solarisabinames"
12321		;;
12322	sco* | svr4*)
12323		case $host_cpu in
12324		    i*86) STRINGSABIOPTIONS="-intelabi" ;;
12325		       *) STRINGSABIOPTIONS="" ;;
12326		esac
12327		;;
12328esac
12329
12330
12331case $host_os in
12332    darwin*)
12333        OS_CFLAGS="-Wl,-flat_namespace"
12334	;;
12335    *)
12336        OS_CFLAGS=
12337        ;;
12338esac
12339
12340XT_CFLAGS="$XT_CFLAGS $OS_CFLAGS"
12341
12342
12343# Check whether --enable-malloc0returnsnull was given.
12344if test "${enable_malloc0returnsnull+set}" = set; then :
12345  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
12346else
12347  MALLOC_ZERO_RETURNS_NULL=auto
12348fi
12349
12350
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
12352$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
12353if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
12354	if test "$cross_compiling" = yes; then :
12355  MALLOC_ZERO_RETURNS_NULL=yes
12356else
12357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358/* end confdefs.h.  */
12359
12360char *malloc();
12361char *realloc();
12362char *calloc();
12363main() {
12364    char *m0, *r0, *c0, *p;
12365    m0 = malloc(0);
12366    p = malloc(10);
12367    r0 = realloc(p,0);
12368    c0 = calloc(0);
12369    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
12370}
12371_ACEOF
12372if ac_fn_c_try_run "$LINENO"; then :
12373  MALLOC_ZERO_RETURNS_NULL=yes
12374else
12375  MALLOC_ZERO_RETURNS_NULL=no
12376fi
12377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12378  conftest.$ac_objext conftest.beam conftest.$ac_ext
12379fi
12380
12381fi
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
12383$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
12384
12385if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12386	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12387	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12388	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12389else
12390	MALLOC_ZERO_CFLAGS=""
12391	XMALLOC_ZERO_CFLAGS=""
12392	XTMALLOC_ZERO_CFLAGS=""
12393fi
12394
12395
12396
12397
12398
12399
12400ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile specs/Makefile xt.pc"
12401
12402cat >confcache <<\_ACEOF
12403# This file is a shell script that caches the results of configure
12404# tests run on this system so they can be shared between configure
12405# scripts and configure runs, see configure's option --config-cache.
12406# It is not useful on other systems.  If it contains results you don't
12407# want to keep, you may remove or edit it.
12408#
12409# config.status only pays attention to the cache file if you give it
12410# the --recheck option to rerun configure.
12411#
12412# `ac_cv_env_foo' variables (set or unset) will be overridden when
12413# loading this file, other *unset* `ac_cv_foo' will be assigned the
12414# following values.
12415
12416_ACEOF
12417
12418# The following way of writing the cache mishandles newlines in values,
12419# but we know of no workaround that is simple, portable, and efficient.
12420# So, we kill variables containing newlines.
12421# Ultrix sh set writes to stderr and can't be redirected directly,
12422# and sets the high bit in the cache file unless we assign to the vars.
12423(
12424  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12425    eval ac_val=\$$ac_var
12426    case $ac_val in #(
12427    *${as_nl}*)
12428      case $ac_var in #(
12429      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12431      esac
12432      case $ac_var in #(
12433      _ | IFS | as_nl) ;; #(
12434      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12435      *) { eval $ac_var=; unset $ac_var;} ;;
12436      esac ;;
12437    esac
12438  done
12439
12440  (set) 2>&1 |
12441    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12442    *${as_nl}ac_space=\ *)
12443      # `set' does not quote correctly, so add quotes: double-quote
12444      # substitution turns \\\\ into \\, and sed turns \\ into \.
12445      sed -n \
12446	"s/'/'\\\\''/g;
12447	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12448      ;; #(
12449    *)
12450      # `set' quotes correctly as required by POSIX, so do not add quotes.
12451      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12452      ;;
12453    esac |
12454    sort
12455) |
12456  sed '
12457     /^ac_cv_env_/b end
12458     t clear
12459     :clear
12460     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12461     t end
12462     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12463     :end' >>confcache
12464if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12465  if test -w "$cache_file"; then
12466    if test "x$cache_file" != "x/dev/null"; then
12467      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12468$as_echo "$as_me: updating cache $cache_file" >&6;}
12469      if test ! -f "$cache_file" || test -h "$cache_file"; then
12470	cat confcache >"$cache_file"
12471      else
12472        case $cache_file in #(
12473        */* | ?:*)
12474	  mv -f confcache "$cache_file"$$ &&
12475	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12476        *)
12477	  mv -f confcache "$cache_file" ;;
12478	esac
12479      fi
12480    fi
12481  else
12482    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12483$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12484  fi
12485fi
12486rm -f confcache
12487
12488test "x$prefix" = xNONE && prefix=$ac_default_prefix
12489# Let make expand exec_prefix.
12490test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12491
12492DEFS=-DHAVE_CONFIG_H
12493
12494ac_libobjs=
12495ac_ltlibobjs=
12496U=
12497for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12498  # 1. Remove the extension, and $U if already installed.
12499  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12500  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12501  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12502  #    will be set to the directory where LIBOBJS objects are built.
12503  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12504  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12505done
12506LIBOBJS=$ac_libobjs
12507
12508LTLIBOBJS=$ac_ltlibobjs
12509
12510
12511 if test -n "$EXEEXT"; then
12512  am__EXEEXT_TRUE=
12513  am__EXEEXT_FALSE='#'
12514else
12515  am__EXEEXT_TRUE='#'
12516  am__EXEEXT_FALSE=
12517fi
12518
12519if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12520  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12521Usually this means the macro was only invoked conditionally." "$LINENO" 5
12522fi
12523if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12524  as_fn_error $? "conditional \"AMDEP\" was never defined.
12525Usually this means the macro was only invoked conditionally." "$LINENO" 5
12526fi
12527if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12528  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12529Usually this means the macro was only invoked conditionally." "$LINENO" 5
12530fi
12531if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12532  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12533Usually this means the macro was only invoked conditionally." "$LINENO" 5
12534fi
12535
12536: "${CONFIG_STATUS=./config.status}"
12537ac_write_fail=0
12538ac_clean_files_save=$ac_clean_files
12539ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12541$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12542as_write_fail=0
12543cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12544#! $SHELL
12545# Generated by $as_me.
12546# Run this file to recreate the current configuration.
12547# Compiler output produced by configure, useful for debugging
12548# configure, is in config.log if it exists.
12549
12550debug=false
12551ac_cs_recheck=false
12552ac_cs_silent=false
12553
12554SHELL=\${CONFIG_SHELL-$SHELL}
12555export SHELL
12556_ASEOF
12557cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12558## -------------------- ##
12559## M4sh Initialization. ##
12560## -------------------- ##
12561
12562# Be more Bourne compatible
12563DUALCASE=1; export DUALCASE # for MKS sh
12564if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12565  emulate sh
12566  NULLCMD=:
12567  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12568  # is contrary to our usage.  Disable this feature.
12569  alias -g '${1+"$@"}'='"$@"'
12570  setopt NO_GLOB_SUBST
12571else
12572  case `(set -o) 2>/dev/null` in #(
12573  *posix*) :
12574    set -o posix ;; #(
12575  *) :
12576     ;;
12577esac
12578fi
12579
12580
12581as_nl='
12582'
12583export as_nl
12584# Printing a long string crashes Solaris 7 /usr/bin/printf.
12585as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12586as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12587as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12588# Prefer a ksh shell builtin over an external printf program on Solaris,
12589# but without wasting forks for bash or zsh.
12590if test -z "$BASH_VERSION$ZSH_VERSION" \
12591    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12592  as_echo='print -r --'
12593  as_echo_n='print -rn --'
12594elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12595  as_echo='printf %s\n'
12596  as_echo_n='printf %s'
12597else
12598  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12599    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12600    as_echo_n='/usr/ucb/echo -n'
12601  else
12602    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12603    as_echo_n_body='eval
12604      arg=$1;
12605      case $arg in #(
12606      *"$as_nl"*)
12607	expr "X$arg" : "X\\(.*\\)$as_nl";
12608	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12609      esac;
12610      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12611    '
12612    export as_echo_n_body
12613    as_echo_n='sh -c $as_echo_n_body as_echo'
12614  fi
12615  export as_echo_body
12616  as_echo='sh -c $as_echo_body as_echo'
12617fi
12618
12619# The user is always right.
12620if test "${PATH_SEPARATOR+set}" != set; then
12621  PATH_SEPARATOR=:
12622  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12623    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12624      PATH_SEPARATOR=';'
12625  }
12626fi
12627
12628
12629# IFS
12630# We need space, tab and new line, in precisely that order.  Quoting is
12631# there to prevent editors from complaining about space-tab.
12632# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12633# splitting by setting IFS to empty value.)
12634IFS=" ""	$as_nl"
12635
12636# Find who we are.  Look in the path if we contain no directory separator.
12637as_myself=
12638case $0 in #((
12639  *[\\/]* ) as_myself=$0 ;;
12640  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641for as_dir in $PATH
12642do
12643  IFS=$as_save_IFS
12644  test -z "$as_dir" && as_dir=.
12645    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12646  done
12647IFS=$as_save_IFS
12648
12649     ;;
12650esac
12651# We did not find ourselves, most probably we were run as `sh COMMAND'
12652# in which case we are not to be found in the path.
12653if test "x$as_myself" = x; then
12654  as_myself=$0
12655fi
12656if test ! -f "$as_myself"; then
12657  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12658  exit 1
12659fi
12660
12661# Unset variables that we do not need and which cause bugs (e.g. in
12662# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12663# suppresses any "Segmentation fault" message there.  '((' could
12664# trigger a bug in pdksh 5.2.14.
12665for as_var in BASH_ENV ENV MAIL MAILPATH
12666do eval test x\${$as_var+set} = xset \
12667  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12668done
12669PS1='$ '
12670PS2='> '
12671PS4='+ '
12672
12673# NLS nuisances.
12674LC_ALL=C
12675export LC_ALL
12676LANGUAGE=C
12677export LANGUAGE
12678
12679# CDPATH.
12680(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12681
12682
12683# as_fn_error STATUS ERROR [LINENO LOG_FD]
12684# ----------------------------------------
12685# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12686# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12687# script with STATUS, using 1 if that was 0.
12688as_fn_error ()
12689{
12690  as_status=$1; test $as_status -eq 0 && as_status=1
12691  if test "$4"; then
12692    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12693    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12694  fi
12695  $as_echo "$as_me: error: $2" >&2
12696  as_fn_exit $as_status
12697} # as_fn_error
12698
12699
12700# as_fn_set_status STATUS
12701# -----------------------
12702# Set $? to STATUS, without forking.
12703as_fn_set_status ()
12704{
12705  return $1
12706} # as_fn_set_status
12707
12708# as_fn_exit STATUS
12709# -----------------
12710# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12711as_fn_exit ()
12712{
12713  set +e
12714  as_fn_set_status $1
12715  exit $1
12716} # as_fn_exit
12717
12718# as_fn_unset VAR
12719# ---------------
12720# Portably unset VAR.
12721as_fn_unset ()
12722{
12723  { eval $1=; unset $1;}
12724}
12725as_unset=as_fn_unset
12726# as_fn_append VAR VALUE
12727# ----------------------
12728# Append the text in VALUE to the end of the definition contained in VAR. Take
12729# advantage of any shell optimizations that allow amortized linear growth over
12730# repeated appends, instead of the typical quadratic growth present in naive
12731# implementations.
12732if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12733  eval 'as_fn_append ()
12734  {
12735    eval $1+=\$2
12736  }'
12737else
12738  as_fn_append ()
12739  {
12740    eval $1=\$$1\$2
12741  }
12742fi # as_fn_append
12743
12744# as_fn_arith ARG...
12745# ------------------
12746# Perform arithmetic evaluation on the ARGs, and store the result in the
12747# global $as_val. Take advantage of shells that can avoid forks. The arguments
12748# must be portable across $(()) and expr.
12749if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12750  eval 'as_fn_arith ()
12751  {
12752    as_val=$(( $* ))
12753  }'
12754else
12755  as_fn_arith ()
12756  {
12757    as_val=`expr "$@" || test $? -eq 1`
12758  }
12759fi # as_fn_arith
12760
12761
12762if expr a : '\(a\)' >/dev/null 2>&1 &&
12763   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12764  as_expr=expr
12765else
12766  as_expr=false
12767fi
12768
12769if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12770  as_basename=basename
12771else
12772  as_basename=false
12773fi
12774
12775if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12776  as_dirname=dirname
12777else
12778  as_dirname=false
12779fi
12780
12781as_me=`$as_basename -- "$0" ||
12782$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12783	 X"$0" : 'X\(//\)$' \| \
12784	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12785$as_echo X/"$0" |
12786    sed '/^.*\/\([^/][^/]*\)\/*$/{
12787	    s//\1/
12788	    q
12789	  }
12790	  /^X\/\(\/\/\)$/{
12791	    s//\1/
12792	    q
12793	  }
12794	  /^X\/\(\/\).*/{
12795	    s//\1/
12796	    q
12797	  }
12798	  s/.*/./; q'`
12799
12800# Avoid depending upon Character Ranges.
12801as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12802as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12803as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12804as_cr_digits='0123456789'
12805as_cr_alnum=$as_cr_Letters$as_cr_digits
12806
12807ECHO_C= ECHO_N= ECHO_T=
12808case `echo -n x` in #(((((
12809-n*)
12810  case `echo 'xy\c'` in
12811  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12812  xy)  ECHO_C='\c';;
12813  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12814       ECHO_T='	';;
12815  esac;;
12816*)
12817  ECHO_N='-n';;
12818esac
12819
12820rm -f conf$$ conf$$.exe conf$$.file
12821if test -d conf$$.dir; then
12822  rm -f conf$$.dir/conf$$.file
12823else
12824  rm -f conf$$.dir
12825  mkdir conf$$.dir 2>/dev/null
12826fi
12827if (echo >conf$$.file) 2>/dev/null; then
12828  if ln -s conf$$.file conf$$ 2>/dev/null; then
12829    as_ln_s='ln -s'
12830    # ... but there are two gotchas:
12831    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12832    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12833    # In both cases, we have to default to `cp -p'.
12834    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12835      as_ln_s='cp -p'
12836  elif ln conf$$.file conf$$ 2>/dev/null; then
12837    as_ln_s=ln
12838  else
12839    as_ln_s='cp -p'
12840  fi
12841else
12842  as_ln_s='cp -p'
12843fi
12844rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12845rmdir conf$$.dir 2>/dev/null
12846
12847
12848# as_fn_mkdir_p
12849# -------------
12850# Create "$as_dir" as a directory, including parents if necessary.
12851as_fn_mkdir_p ()
12852{
12853
12854  case $as_dir in #(
12855  -*) as_dir=./$as_dir;;
12856  esac
12857  test -d "$as_dir" || eval $as_mkdir_p || {
12858    as_dirs=
12859    while :; do
12860      case $as_dir in #(
12861      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12862      *) as_qdir=$as_dir;;
12863      esac
12864      as_dirs="'$as_qdir' $as_dirs"
12865      as_dir=`$as_dirname -- "$as_dir" ||
12866$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12867	 X"$as_dir" : 'X\(//\)[^/]' \| \
12868	 X"$as_dir" : 'X\(//\)$' \| \
12869	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12870$as_echo X"$as_dir" |
12871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12872	    s//\1/
12873	    q
12874	  }
12875	  /^X\(\/\/\)[^/].*/{
12876	    s//\1/
12877	    q
12878	  }
12879	  /^X\(\/\/\)$/{
12880	    s//\1/
12881	    q
12882	  }
12883	  /^X\(\/\).*/{
12884	    s//\1/
12885	    q
12886	  }
12887	  s/.*/./; q'`
12888      test -d "$as_dir" && break
12889    done
12890    test -z "$as_dirs" || eval "mkdir $as_dirs"
12891  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12892
12893
12894} # as_fn_mkdir_p
12895if mkdir -p . 2>/dev/null; then
12896  as_mkdir_p='mkdir -p "$as_dir"'
12897else
12898  test -d ./-p && rmdir ./-p
12899  as_mkdir_p=false
12900fi
12901
12902if test -x / >/dev/null 2>&1; then
12903  as_test_x='test -x'
12904else
12905  if ls -dL / >/dev/null 2>&1; then
12906    as_ls_L_option=L
12907  else
12908    as_ls_L_option=
12909  fi
12910  as_test_x='
12911    eval sh -c '\''
12912      if test -d "$1"; then
12913	test -d "$1/.";
12914      else
12915	case $1 in #(
12916	-*)set "./$1";;
12917	esac;
12918	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12919	???[sx]*):;;*)false;;esac;fi
12920    '\'' sh
12921  '
12922fi
12923as_executable_p=$as_test_x
12924
12925# Sed expression to map a string onto a valid CPP name.
12926as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12927
12928# Sed expression to map a string onto a valid variable name.
12929as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12930
12931
12932exec 6>&1
12933## ----------------------------------- ##
12934## Main body of $CONFIG_STATUS script. ##
12935## ----------------------------------- ##
12936_ASEOF
12937test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12938
12939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12940# Save the log message, to keep $0 and so on meaningful, and to
12941# report actual input values of CONFIG_FILES etc. instead of their
12942# values after options handling.
12943ac_log="
12944This file was extended by libXt $as_me 1.0.9, which was
12945generated by GNU Autoconf 2.68.  Invocation command line was
12946
12947  CONFIG_FILES    = $CONFIG_FILES
12948  CONFIG_HEADERS  = $CONFIG_HEADERS
12949  CONFIG_LINKS    = $CONFIG_LINKS
12950  CONFIG_COMMANDS = $CONFIG_COMMANDS
12951  $ $0 $@
12952
12953on `(hostname || uname -n) 2>/dev/null | sed 1q`
12954"
12955
12956_ACEOF
12957
12958case $ac_config_files in *"
12959"*) set x $ac_config_files; shift; ac_config_files=$*;;
12960esac
12961
12962case $ac_config_headers in *"
12963"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12964esac
12965
12966
12967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12968# Files that config.status was made for.
12969config_files="$ac_config_files"
12970config_headers="$ac_config_headers"
12971config_commands="$ac_config_commands"
12972
12973_ACEOF
12974
12975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12976ac_cs_usage="\
12977\`$as_me' instantiates files and other configuration actions
12978from templates according to the current configuration.  Unless the files
12979and actions are specified as TAGs, all are instantiated by default.
12980
12981Usage: $0 [OPTION]... [TAG]...
12982
12983  -h, --help       print this help, then exit
12984  -V, --version    print version number and configuration settings, then exit
12985      --config     print configuration, then exit
12986  -q, --quiet, --silent
12987                   do not print progress messages
12988  -d, --debug      don't remove temporary files
12989      --recheck    update $as_me by reconfiguring in the same conditions
12990      --file=FILE[:TEMPLATE]
12991                   instantiate the configuration file FILE
12992      --header=FILE[:TEMPLATE]
12993                   instantiate the configuration header FILE
12994
12995Configuration files:
12996$config_files
12997
12998Configuration headers:
12999$config_headers
13000
13001Configuration commands:
13002$config_commands
13003
13004Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13005
13006_ACEOF
13007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13008ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13009ac_cs_version="\\
13010libXt config.status 1.0.9
13011configured by $0, generated by GNU Autoconf 2.68,
13012  with options \\"\$ac_cs_config\\"
13013
13014Copyright (C) 2010 Free Software Foundation, Inc.
13015This config.status script is free software; the Free Software Foundation
13016gives unlimited permission to copy, distribute and modify it."
13017
13018ac_pwd='$ac_pwd'
13019srcdir='$srcdir'
13020INSTALL='$INSTALL'
13021MKDIR_P='$MKDIR_P'
13022AWK='$AWK'
13023test -n "\$AWK" || AWK=awk
13024_ACEOF
13025
13026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13027# The default lists apply if the user does not specify any file.
13028ac_need_defaults=:
13029while test $# != 0
13030do
13031  case $1 in
13032  --*=?*)
13033    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13034    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13035    ac_shift=:
13036    ;;
13037  --*=)
13038    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13039    ac_optarg=
13040    ac_shift=:
13041    ;;
13042  *)
13043    ac_option=$1
13044    ac_optarg=$2
13045    ac_shift=shift
13046    ;;
13047  esac
13048
13049  case $ac_option in
13050  # Handling of the options.
13051  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13052    ac_cs_recheck=: ;;
13053  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13054    $as_echo "$ac_cs_version"; exit ;;
13055  --config | --confi | --conf | --con | --co | --c )
13056    $as_echo "$ac_cs_config"; exit ;;
13057  --debug | --debu | --deb | --de | --d | -d )
13058    debug=: ;;
13059  --file | --fil | --fi | --f )
13060    $ac_shift
13061    case $ac_optarg in
13062    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13063    '') as_fn_error $? "missing file argument" ;;
13064    esac
13065    as_fn_append CONFIG_FILES " '$ac_optarg'"
13066    ac_need_defaults=false;;
13067  --header | --heade | --head | --hea )
13068    $ac_shift
13069    case $ac_optarg in
13070    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13071    esac
13072    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13073    ac_need_defaults=false;;
13074  --he | --h)
13075    # Conflict between --help and --header
13076    as_fn_error $? "ambiguous option: \`$1'
13077Try \`$0 --help' for more information.";;
13078  --help | --hel | -h )
13079    $as_echo "$ac_cs_usage"; exit ;;
13080  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13081  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13082    ac_cs_silent=: ;;
13083
13084  # This is an error.
13085  -*) as_fn_error $? "unrecognized option: \`$1'
13086Try \`$0 --help' for more information." ;;
13087
13088  *) as_fn_append ac_config_targets " $1"
13089     ac_need_defaults=false ;;
13090
13091  esac
13092  shift
13093done
13094
13095ac_configure_extra_args=
13096
13097if $ac_cs_silent; then
13098  exec 6>/dev/null
13099  ac_configure_extra_args="$ac_configure_extra_args --silent"
13100fi
13101
13102_ACEOF
13103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13104if \$ac_cs_recheck; then
13105  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13106  shift
13107  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13108  CONFIG_SHELL='$SHELL'
13109  export CONFIG_SHELL
13110  exec "\$@"
13111fi
13112
13113_ACEOF
13114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13115exec 5>>config.log
13116{
13117  echo
13118  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13119## Running $as_me. ##
13120_ASBOX
13121  $as_echo "$ac_log"
13122} >&5
13123
13124_ACEOF
13125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13126#
13127# INIT-COMMANDS
13128#
13129AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13130
13131
13132# The HP-UX ksh and POSIX shell print the target directory to stdout
13133# if CDPATH is set.
13134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13135
13136sed_quote_subst='$sed_quote_subst'
13137double_quote_subst='$double_quote_subst'
13138delay_variable_subst='$delay_variable_subst'
13139macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13140macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13141enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13142enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13143pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13144enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13145SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13146ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13147host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13148host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13149host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13150build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13151build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13152build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13153SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13154Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13155GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13156EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13157FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13158LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13159NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13160LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13161max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13162ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13163exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13164lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13165lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13166lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13167reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13168reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13169OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13170deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13171file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13172AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13173AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13174STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13175RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13176old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13177old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13178old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13179lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13180CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13181CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13182compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13183GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13184lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13185lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13186lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13187lt_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"`'
13188objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13189MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13190lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13191lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13192lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13193lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13194lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13195need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13196DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13197NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13198LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13199OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13200OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13201libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13202shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13203extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13204archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13205enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13206export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13207whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13208compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13209old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13210old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13211archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13212archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13213module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13214module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13215with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13216allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13217no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13218hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13219hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13220hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13221hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13222hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13223hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13224hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13225hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13226inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13227link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13228fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13229always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13230export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13231exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13232include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13233prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13234file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13235variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13236need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13237need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13238version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13239runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13240shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13241shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13242libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13243library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13244soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13245install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13246postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13247postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13248finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13249finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13250hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13251sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13252sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13253hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13254enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13255enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13256enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13257old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13258striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13259
13260LTCC='$LTCC'
13261LTCFLAGS='$LTCFLAGS'
13262compiler='$compiler_DEFAULT'
13263
13264# A function that is used when there is no print builtin or printf.
13265func_fallback_echo ()
13266{
13267  eval 'cat <<_LTECHO_EOF
13268\$1
13269_LTECHO_EOF'
13270}
13271
13272# Quote evaled strings.
13273for var in SHELL \
13274ECHO \
13275SED \
13276GREP \
13277EGREP \
13278FGREP \
13279LD \
13280NM \
13281LN_S \
13282lt_SP2NL \
13283lt_NL2SP \
13284reload_flag \
13285OBJDUMP \
13286deplibs_check_method \
13287file_magic_cmd \
13288AR \
13289AR_FLAGS \
13290STRIP \
13291RANLIB \
13292CC \
13293CFLAGS \
13294compiler \
13295lt_cv_sys_global_symbol_pipe \
13296lt_cv_sys_global_symbol_to_cdecl \
13297lt_cv_sys_global_symbol_to_c_name_address \
13298lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13299lt_prog_compiler_no_builtin_flag \
13300lt_prog_compiler_wl \
13301lt_prog_compiler_pic \
13302lt_prog_compiler_static \
13303lt_cv_prog_compiler_c_o \
13304need_locks \
13305DSYMUTIL \
13306NMEDIT \
13307LIPO \
13308OTOOL \
13309OTOOL64 \
13310shrext_cmds \
13311export_dynamic_flag_spec \
13312whole_archive_flag_spec \
13313compiler_needs_object \
13314with_gnu_ld \
13315allow_undefined_flag \
13316no_undefined_flag \
13317hardcode_libdir_flag_spec \
13318hardcode_libdir_flag_spec_ld \
13319hardcode_libdir_separator \
13320fix_srcfile_path \
13321exclude_expsyms \
13322include_expsyms \
13323file_list_spec \
13324variables_saved_for_relink \
13325libname_spec \
13326library_names_spec \
13327soname_spec \
13328install_override_mode \
13329finish_eval \
13330old_striplib \
13331striplib; do
13332    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13333    *[\\\\\\\`\\"\\\$]*)
13334      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13335      ;;
13336    *)
13337      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13338      ;;
13339    esac
13340done
13341
13342# Double-quote double-evaled strings.
13343for var in reload_cmds \
13344old_postinstall_cmds \
13345old_postuninstall_cmds \
13346old_archive_cmds \
13347extract_expsyms_cmds \
13348old_archive_from_new_cmds \
13349old_archive_from_expsyms_cmds \
13350archive_cmds \
13351archive_expsym_cmds \
13352module_cmds \
13353module_expsym_cmds \
13354export_symbols_cmds \
13355prelink_cmds \
13356postinstall_cmds \
13357postuninstall_cmds \
13358finish_cmds \
13359sys_lib_search_path_spec \
13360sys_lib_dlsearch_path_spec; do
13361    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13362    *[\\\\\\\`\\"\\\$]*)
13363      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13364      ;;
13365    *)
13366      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13367      ;;
13368    esac
13369done
13370
13371ac_aux_dir='$ac_aux_dir'
13372xsi_shell='$xsi_shell'
13373lt_shell_append='$lt_shell_append'
13374
13375# See if we are running on zsh, and set the options which allow our
13376# commands through without removal of \ escapes INIT.
13377if test -n "\${ZSH_VERSION+set}" ; then
13378   setopt NO_GLOB_SUBST
13379fi
13380
13381
13382    PACKAGE='$PACKAGE'
13383    VERSION='$VERSION'
13384    TIMESTAMP='$TIMESTAMP'
13385    RM='$RM'
13386    ofile='$ofile'
13387
13388
13389
13390
13391_ACEOF
13392
13393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13394
13395# Handling of arguments.
13396for ac_config_target in $ac_config_targets
13397do
13398  case $ac_config_target in
13399    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13400    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13401    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13402    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13403    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13404    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
13405    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13406    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13407    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
13408    "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;;
13409
13410  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13411  esac
13412done
13413
13414
13415# If the user did not use the arguments to specify the items to instantiate,
13416# then the envvar interface is used.  Set only those that are not.
13417# We use the long form for the default assignment because of an extremely
13418# bizarre bug on SunOS 4.1.3.
13419if $ac_need_defaults; then
13420  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13421  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13422  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13423fi
13424
13425# Have a temporary directory for convenience.  Make it in the build tree
13426# simply because there is no reason against having it here, and in addition,
13427# creating and moving files from /tmp can sometimes cause problems.
13428# Hook for its removal unless debugging.
13429# Note that there is a small window in which the directory will not be cleaned:
13430# after its creation but before its name has been assigned to `$tmp'.
13431$debug ||
13432{
13433  tmp= ac_tmp=
13434  trap 'exit_status=$?
13435  : "${ac_tmp:=$tmp}"
13436  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13437' 0
13438  trap 'as_fn_exit 1' 1 2 13 15
13439}
13440# Create a (secure) tmp directory for tmp files.
13441
13442{
13443  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13444  test -d "$tmp"
13445}  ||
13446{
13447  tmp=./conf$$-$RANDOM
13448  (umask 077 && mkdir "$tmp")
13449} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13450ac_tmp=$tmp
13451
13452# Set up the scripts for CONFIG_FILES section.
13453# No need to generate them if there are no CONFIG_FILES.
13454# This happens for instance with `./config.status config.h'.
13455if test -n "$CONFIG_FILES"; then
13456
13457
13458ac_cr=`echo X | tr X '\015'`
13459# On cygwin, bash can eat \r inside `` if the user requested igncr.
13460# But we know of no other shell where ac_cr would be empty at this
13461# point, so we can use a bashism as a fallback.
13462if test "x$ac_cr" = x; then
13463  eval ac_cr=\$\'\\r\'
13464fi
13465ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13466if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13467  ac_cs_awk_cr='\\r'
13468else
13469  ac_cs_awk_cr=$ac_cr
13470fi
13471
13472echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13473_ACEOF
13474
13475
13476{
13477  echo "cat >conf$$subs.awk <<_ACEOF" &&
13478  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13479  echo "_ACEOF"
13480} >conf$$subs.sh ||
13481  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13482ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13483ac_delim='%!_!# '
13484for ac_last_try in false false false false false :; do
13485  . ./conf$$subs.sh ||
13486    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13487
13488  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13489  if test $ac_delim_n = $ac_delim_num; then
13490    break
13491  elif $ac_last_try; then
13492    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13493  else
13494    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13495  fi
13496done
13497rm -f conf$$subs.sh
13498
13499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13500cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13501_ACEOF
13502sed -n '
13503h
13504s/^/S["/; s/!.*/"]=/
13505p
13506g
13507s/^[^!]*!//
13508:repl
13509t repl
13510s/'"$ac_delim"'$//
13511t delim
13512:nl
13513h
13514s/\(.\{148\}\)..*/\1/
13515t more1
13516s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13517p
13518n
13519b repl
13520:more1
13521s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13522p
13523g
13524s/.\{148\}//
13525t nl
13526:delim
13527h
13528s/\(.\{148\}\)..*/\1/
13529t more2
13530s/["\\]/\\&/g; s/^/"/; s/$/"/
13531p
13532b
13533:more2
13534s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13535p
13536g
13537s/.\{148\}//
13538t delim
13539' <conf$$subs.awk | sed '
13540/^[^""]/{
13541  N
13542  s/\n//
13543}
13544' >>$CONFIG_STATUS || ac_write_fail=1
13545rm -f conf$$subs.awk
13546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13547_ACAWK
13548cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13549  for (key in S) S_is_set[key] = 1
13550  FS = ""
13551
13552}
13553{
13554  line = $ 0
13555  nfields = split(line, field, "@")
13556  substed = 0
13557  len = length(field[1])
13558  for (i = 2; i < nfields; i++) {
13559    key = field[i]
13560    keylen = length(key)
13561    if (S_is_set[key]) {
13562      value = S[key]
13563      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13564      len += length(value) + length(field[++i])
13565      substed = 1
13566    } else
13567      len += 1 + keylen
13568  }
13569
13570  print line
13571}
13572
13573_ACAWK
13574_ACEOF
13575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13576if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13577  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13578else
13579  cat
13580fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13581  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13582_ACEOF
13583
13584# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13585# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13586# trailing colons and then remove the whole line if VPATH becomes empty
13587# (actually we leave an empty line to preserve line numbers).
13588if test "x$srcdir" = x.; then
13589  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13590h
13591s///
13592s/^/:/
13593s/[	 ]*$/:/
13594s/:\$(srcdir):/:/g
13595s/:\${srcdir}:/:/g
13596s/:@srcdir@:/:/g
13597s/^:*//
13598s/:*$//
13599x
13600s/\(=[	 ]*\).*/\1/
13601G
13602s/\n//
13603s/^[^=]*=[	 ]*$//
13604}'
13605fi
13606
13607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13608fi # test -n "$CONFIG_FILES"
13609
13610# Set up the scripts for CONFIG_HEADERS section.
13611# No need to generate them if there are no CONFIG_HEADERS.
13612# This happens for instance with `./config.status Makefile'.
13613if test -n "$CONFIG_HEADERS"; then
13614cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13615BEGIN {
13616_ACEOF
13617
13618# Transform confdefs.h into an awk script `defines.awk', embedded as
13619# here-document in config.status, that substitutes the proper values into
13620# config.h.in to produce config.h.
13621
13622# Create a delimiter string that does not exist in confdefs.h, to ease
13623# handling of long lines.
13624ac_delim='%!_!# '
13625for ac_last_try in false false :; do
13626  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13627  if test -z "$ac_tt"; then
13628    break
13629  elif $ac_last_try; then
13630    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13631  else
13632    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13633  fi
13634done
13635
13636# For the awk script, D is an array of macro values keyed by name,
13637# likewise P contains macro parameters if any.  Preserve backslash
13638# newline sequences.
13639
13640ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13641sed -n '
13642s/.\{148\}/&'"$ac_delim"'/g
13643t rset
13644:rset
13645s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13646t def
13647d
13648:def
13649s/\\$//
13650t bsnl
13651s/["\\]/\\&/g
13652s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13653D["\1"]=" \3"/p
13654s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13655d
13656:bsnl
13657s/["\\]/\\&/g
13658s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13659D["\1"]=" \3\\\\\\n"\\/p
13660t cont
13661s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13662t cont
13663d
13664:cont
13665n
13666s/.\{148\}/&'"$ac_delim"'/g
13667t clear
13668:clear
13669s/\\$//
13670t bsnlc
13671s/["\\]/\\&/g; s/^/"/; s/$/"/p
13672d
13673:bsnlc
13674s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13675b cont
13676' <confdefs.h | sed '
13677s/'"$ac_delim"'/"\\\
13678"/g' >>$CONFIG_STATUS || ac_write_fail=1
13679
13680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13681  for (key in D) D_is_set[key] = 1
13682  FS = ""
13683}
13684/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13685  line = \$ 0
13686  split(line, arg, " ")
13687  if (arg[1] == "#") {
13688    defundef = arg[2]
13689    mac1 = arg[3]
13690  } else {
13691    defundef = substr(arg[1], 2)
13692    mac1 = arg[2]
13693  }
13694  split(mac1, mac2, "(") #)
13695  macro = mac2[1]
13696  prefix = substr(line, 1, index(line, defundef) - 1)
13697  if (D_is_set[macro]) {
13698    # Preserve the white space surrounding the "#".
13699    print prefix "define", macro P[macro] D[macro]
13700    next
13701  } else {
13702    # Replace #undef with comments.  This is necessary, for example,
13703    # in the case of _POSIX_SOURCE, which is predefined and required
13704    # on some systems where configure will not decide to define it.
13705    if (defundef == "undef") {
13706      print "/*", prefix defundef, macro, "*/"
13707      next
13708    }
13709  }
13710}
13711{ print }
13712_ACAWK
13713_ACEOF
13714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13716fi # test -n "$CONFIG_HEADERS"
13717
13718
13719eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13720shift
13721for ac_tag
13722do
13723  case $ac_tag in
13724  :[FHLC]) ac_mode=$ac_tag; continue;;
13725  esac
13726  case $ac_mode$ac_tag in
13727  :[FHL]*:*);;
13728  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13729  :[FH]-) ac_tag=-:-;;
13730  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13731  esac
13732  ac_save_IFS=$IFS
13733  IFS=:
13734  set x $ac_tag
13735  IFS=$ac_save_IFS
13736  shift
13737  ac_file=$1
13738  shift
13739
13740  case $ac_mode in
13741  :L) ac_source=$1;;
13742  :[FH])
13743    ac_file_inputs=
13744    for ac_f
13745    do
13746      case $ac_f in
13747      -) ac_f="$ac_tmp/stdin";;
13748      *) # Look for the file first in the build tree, then in the source tree
13749	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13750	 # because $ac_f cannot contain `:'.
13751	 test -f "$ac_f" ||
13752	   case $ac_f in
13753	   [\\/$]*) false;;
13754	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13755	   esac ||
13756	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13757      esac
13758      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13759      as_fn_append ac_file_inputs " '$ac_f'"
13760    done
13761
13762    # Let's still pretend it is `configure' which instantiates (i.e., don't
13763    # use $as_me), people would be surprised to read:
13764    #    /* config.h.  Generated by config.status.  */
13765    configure_input='Generated from '`
13766	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13767	`' by configure.'
13768    if test x"$ac_file" != x-; then
13769      configure_input="$ac_file.  $configure_input"
13770      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13771$as_echo "$as_me: creating $ac_file" >&6;}
13772    fi
13773    # Neutralize special characters interpreted by sed in replacement strings.
13774    case $configure_input in #(
13775    *\&* | *\|* | *\\* )
13776       ac_sed_conf_input=`$as_echo "$configure_input" |
13777       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13778    *) ac_sed_conf_input=$configure_input;;
13779    esac
13780
13781    case $ac_tag in
13782    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13783      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13784    esac
13785    ;;
13786  esac
13787
13788  ac_dir=`$as_dirname -- "$ac_file" ||
13789$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13790	 X"$ac_file" : 'X\(//\)[^/]' \| \
13791	 X"$ac_file" : 'X\(//\)$' \| \
13792	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13793$as_echo X"$ac_file" |
13794    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13795	    s//\1/
13796	    q
13797	  }
13798	  /^X\(\/\/\)[^/].*/{
13799	    s//\1/
13800	    q
13801	  }
13802	  /^X\(\/\/\)$/{
13803	    s//\1/
13804	    q
13805	  }
13806	  /^X\(\/\).*/{
13807	    s//\1/
13808	    q
13809	  }
13810	  s/.*/./; q'`
13811  as_dir="$ac_dir"; as_fn_mkdir_p
13812  ac_builddir=.
13813
13814case "$ac_dir" in
13815.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13816*)
13817  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13818  # A ".." for each directory in $ac_dir_suffix.
13819  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13820  case $ac_top_builddir_sub in
13821  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13822  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13823  esac ;;
13824esac
13825ac_abs_top_builddir=$ac_pwd
13826ac_abs_builddir=$ac_pwd$ac_dir_suffix
13827# for backward compatibility:
13828ac_top_builddir=$ac_top_build_prefix
13829
13830case $srcdir in
13831  .)  # We are building in place.
13832    ac_srcdir=.
13833    ac_top_srcdir=$ac_top_builddir_sub
13834    ac_abs_top_srcdir=$ac_pwd ;;
13835  [\\/]* | ?:[\\/]* )  # Absolute name.
13836    ac_srcdir=$srcdir$ac_dir_suffix;
13837    ac_top_srcdir=$srcdir
13838    ac_abs_top_srcdir=$srcdir ;;
13839  *) # Relative name.
13840    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13841    ac_top_srcdir=$ac_top_build_prefix$srcdir
13842    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13843esac
13844ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13845
13846
13847  case $ac_mode in
13848  :F)
13849  #
13850  # CONFIG_FILE
13851  #
13852
13853  case $INSTALL in
13854  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13855  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13856  esac
13857  ac_MKDIR_P=$MKDIR_P
13858  case $MKDIR_P in
13859  [\\/$]* | ?:[\\/]* ) ;;
13860  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13861  esac
13862_ACEOF
13863
13864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13865# If the template does not know about datarootdir, expand it.
13866# FIXME: This hack should be removed a few years after 2.60.
13867ac_datarootdir_hack=; ac_datarootdir_seen=
13868ac_sed_dataroot='
13869/datarootdir/ {
13870  p
13871  q
13872}
13873/@datadir@/p
13874/@docdir@/p
13875/@infodir@/p
13876/@localedir@/p
13877/@mandir@/p'
13878case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13879*datarootdir*) ac_datarootdir_seen=yes;;
13880*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13881  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13882$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13883_ACEOF
13884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13885  ac_datarootdir_hack='
13886  s&@datadir@&$datadir&g
13887  s&@docdir@&$docdir&g
13888  s&@infodir@&$infodir&g
13889  s&@localedir@&$localedir&g
13890  s&@mandir@&$mandir&g
13891  s&\\\${datarootdir}&$datarootdir&g' ;;
13892esac
13893_ACEOF
13894
13895# Neutralize VPATH when `$srcdir' = `.'.
13896# Shell code in configure.ac might set extrasub.
13897# FIXME: do we really want to maintain this feature?
13898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13899ac_sed_extra="$ac_vpsub
13900$extrasub
13901_ACEOF
13902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13903:t
13904/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13905s|@configure_input@|$ac_sed_conf_input|;t t
13906s&@top_builddir@&$ac_top_builddir_sub&;t t
13907s&@top_build_prefix@&$ac_top_build_prefix&;t t
13908s&@srcdir@&$ac_srcdir&;t t
13909s&@abs_srcdir@&$ac_abs_srcdir&;t t
13910s&@top_srcdir@&$ac_top_srcdir&;t t
13911s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13912s&@builddir@&$ac_builddir&;t t
13913s&@abs_builddir@&$ac_abs_builddir&;t t
13914s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13915s&@INSTALL@&$ac_INSTALL&;t t
13916s&@MKDIR_P@&$ac_MKDIR_P&;t t
13917$ac_datarootdir_hack
13918"
13919eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13920  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13921
13922test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13923  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13924  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13925      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13926  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13927which seems to be undefined.  Please make sure it is defined" >&5
13928$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13929which seems to be undefined.  Please make sure it is defined" >&2;}
13930
13931  rm -f "$ac_tmp/stdin"
13932  case $ac_file in
13933  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13934  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13935  esac \
13936  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13937 ;;
13938  :H)
13939  #
13940  # CONFIG_HEADER
13941  #
13942  if test x"$ac_file" != x-; then
13943    {
13944      $as_echo "/* $configure_input  */" \
13945      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13946    } >"$ac_tmp/config.h" \
13947      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13948    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13949      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13950$as_echo "$as_me: $ac_file is unchanged" >&6;}
13951    else
13952      rm -f "$ac_file"
13953      mv "$ac_tmp/config.h" "$ac_file" \
13954	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13955    fi
13956  else
13957    $as_echo "/* $configure_input  */" \
13958      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13959      || as_fn_error $? "could not create -" "$LINENO" 5
13960  fi
13961# Compute "$ac_file"'s index in $config_headers.
13962_am_arg="$ac_file"
13963_am_stamp_count=1
13964for _am_header in $config_headers :; do
13965  case $_am_header in
13966    $_am_arg | $_am_arg:* )
13967      break ;;
13968    * )
13969      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13970  esac
13971done
13972echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13973$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13974	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13975	 X"$_am_arg" : 'X\(//\)$' \| \
13976	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13977$as_echo X"$_am_arg" |
13978    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13979	    s//\1/
13980	    q
13981	  }
13982	  /^X\(\/\/\)[^/].*/{
13983	    s//\1/
13984	    q
13985	  }
13986	  /^X\(\/\/\)$/{
13987	    s//\1/
13988	    q
13989	  }
13990	  /^X\(\/\).*/{
13991	    s//\1/
13992	    q
13993	  }
13994	  s/.*/./; q'`/stamp-h$_am_stamp_count
13995 ;;
13996
13997  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13998$as_echo "$as_me: executing $ac_file commands" >&6;}
13999 ;;
14000  esac
14001
14002
14003  case $ac_file$ac_mode in
14004    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14005  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14006  # are listed without --file.  Let's play safe and only enable the eval
14007  # if we detect the quoting.
14008  case $CONFIG_FILES in
14009  *\'*) eval set x "$CONFIG_FILES" ;;
14010  *)   set x $CONFIG_FILES ;;
14011  esac
14012  shift
14013  for mf
14014  do
14015    # Strip MF so we end up with the name of the file.
14016    mf=`echo "$mf" | sed -e 's/:.*$//'`
14017    # Check whether this is an Automake generated Makefile or not.
14018    # We used to match only the files named `Makefile.in', but
14019    # some people rename them; so instead we look at the file content.
14020    # Grep'ing the first line is not enough: some people post-process
14021    # each Makefile.in and add a new line on top of each file to say so.
14022    # Grep'ing the whole file is not good either: AIX grep has a line
14023    # limit of 2048, but all sed's we know have understand at least 4000.
14024    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14025      dirpart=`$as_dirname -- "$mf" ||
14026$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14027	 X"$mf" : 'X\(//\)[^/]' \| \
14028	 X"$mf" : 'X\(//\)$' \| \
14029	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14030$as_echo X"$mf" |
14031    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14032	    s//\1/
14033	    q
14034	  }
14035	  /^X\(\/\/\)[^/].*/{
14036	    s//\1/
14037	    q
14038	  }
14039	  /^X\(\/\/\)$/{
14040	    s//\1/
14041	    q
14042	  }
14043	  /^X\(\/\).*/{
14044	    s//\1/
14045	    q
14046	  }
14047	  s/.*/./; q'`
14048    else
14049      continue
14050    fi
14051    # Extract the definition of DEPDIR, am__include, and am__quote
14052    # from the Makefile without running `make'.
14053    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14054    test -z "$DEPDIR" && continue
14055    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14056    test -z "am__include" && continue
14057    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14058    # When using ansi2knr, U may be empty or an underscore; expand it
14059    U=`sed -n 's/^U = //p' < "$mf"`
14060    # Find all dependency output files, they are included files with
14061    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14062    # simplest approach to changing $(DEPDIR) to its actual value in the
14063    # expansion.
14064    for file in `sed -n "
14065      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14066	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14067      # Make sure the directory exists.
14068      test -f "$dirpart/$file" && continue
14069      fdir=`$as_dirname -- "$file" ||
14070$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14071	 X"$file" : 'X\(//\)[^/]' \| \
14072	 X"$file" : 'X\(//\)$' \| \
14073	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14074$as_echo X"$file" |
14075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14076	    s//\1/
14077	    q
14078	  }
14079	  /^X\(\/\/\)[^/].*/{
14080	    s//\1/
14081	    q
14082	  }
14083	  /^X\(\/\/\)$/{
14084	    s//\1/
14085	    q
14086	  }
14087	  /^X\(\/\).*/{
14088	    s//\1/
14089	    q
14090	  }
14091	  s/.*/./; q'`
14092      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14093      # echo "creating $dirpart/$file"
14094      echo '# dummy' > "$dirpart/$file"
14095    done
14096  done
14097}
14098 ;;
14099    "libtool":C)
14100
14101    # See if we are running on zsh, and set the options which allow our
14102    # commands through without removal of \ escapes.
14103    if test -n "${ZSH_VERSION+set}" ; then
14104      setopt NO_GLOB_SUBST
14105    fi
14106
14107    cfgfile="${ofile}T"
14108    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14109    $RM "$cfgfile"
14110
14111    cat <<_LT_EOF >> "$cfgfile"
14112#! $SHELL
14113
14114# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14115# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14116# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14117# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14118#
14119#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14120#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14121#                 Inc.
14122#   Written by Gordon Matzigkeit, 1996
14123#
14124#   This file is part of GNU Libtool.
14125#
14126# GNU Libtool is free software; you can redistribute it and/or
14127# modify it under the terms of the GNU General Public License as
14128# published by the Free Software Foundation; either version 2 of
14129# the License, or (at your option) any later version.
14130#
14131# As a special exception to the GNU General Public License,
14132# if you distribute this file as part of a program or library that
14133# is built using GNU Libtool, you may include this file under the
14134# same distribution terms that you use for the rest of that program.
14135#
14136# GNU Libtool is distributed in the hope that it will be useful,
14137# but WITHOUT ANY WARRANTY; without even the implied warranty of
14138# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14139# GNU General Public License for more details.
14140#
14141# You should have received a copy of the GNU General Public License
14142# along with GNU Libtool; see the file COPYING.  If not, a copy
14143# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14144# obtained by writing to the Free Software Foundation, Inc.,
14145# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14146
14147
14148# The names of the tagged configurations supported by this script.
14149available_tags=""
14150
14151# ### BEGIN LIBTOOL CONFIG
14152
14153# Which release of libtool.m4 was used?
14154macro_version=$macro_version
14155macro_revision=$macro_revision
14156
14157# Whether or not to build shared libraries.
14158build_libtool_libs=$enable_shared
14159
14160# Whether or not to build static libraries.
14161build_old_libs=$enable_static
14162
14163# What type of objects to build.
14164pic_mode=$pic_mode
14165
14166# Whether or not to optimize for fast installation.
14167fast_install=$enable_fast_install
14168
14169# Shell to use when invoking shell scripts.
14170SHELL=$lt_SHELL
14171
14172# An echo program that protects backslashes.
14173ECHO=$lt_ECHO
14174
14175# The host system.
14176host_alias=$host_alias
14177host=$host
14178host_os=$host_os
14179
14180# The build system.
14181build_alias=$build_alias
14182build=$build
14183build_os=$build_os
14184
14185# A sed program that does not truncate output.
14186SED=$lt_SED
14187
14188# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14189Xsed="\$SED -e 1s/^X//"
14190
14191# A grep program that handles long lines.
14192GREP=$lt_GREP
14193
14194# An ERE matcher.
14195EGREP=$lt_EGREP
14196
14197# A literal string matcher.
14198FGREP=$lt_FGREP
14199
14200# A BSD- or MS-compatible name lister.
14201NM=$lt_NM
14202
14203# Whether we need soft or hard links.
14204LN_S=$lt_LN_S
14205
14206# What is the maximum length of a command?
14207max_cmd_len=$max_cmd_len
14208
14209# Object file suffix (normally "o").
14210objext=$ac_objext
14211
14212# Executable file suffix (normally "").
14213exeext=$exeext
14214
14215# whether the shell understands "unset".
14216lt_unset=$lt_unset
14217
14218# turn spaces into newlines.
14219SP2NL=$lt_lt_SP2NL
14220
14221# turn newlines into spaces.
14222NL2SP=$lt_lt_NL2SP
14223
14224# An object symbol dumper.
14225OBJDUMP=$lt_OBJDUMP
14226
14227# Method to check whether dependent libraries are shared objects.
14228deplibs_check_method=$lt_deplibs_check_method
14229
14230# Command to use when deplibs_check_method == "file_magic".
14231file_magic_cmd=$lt_file_magic_cmd
14232
14233# The archiver.
14234AR=$lt_AR
14235AR_FLAGS=$lt_AR_FLAGS
14236
14237# A symbol stripping program.
14238STRIP=$lt_STRIP
14239
14240# Commands used to install an old-style archive.
14241RANLIB=$lt_RANLIB
14242old_postinstall_cmds=$lt_old_postinstall_cmds
14243old_postuninstall_cmds=$lt_old_postuninstall_cmds
14244
14245# Whether to use a lock for old archive extraction.
14246lock_old_archive_extraction=$lock_old_archive_extraction
14247
14248# A C compiler.
14249LTCC=$lt_CC
14250
14251# LTCC compiler flags.
14252LTCFLAGS=$lt_CFLAGS
14253
14254# Take the output of nm and produce a listing of raw symbols and C names.
14255global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14256
14257# Transform the output of nm in a proper C declaration.
14258global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14259
14260# Transform the output of nm in a C name address pair.
14261global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14262
14263# Transform the output of nm in a C name address pair when lib prefix is needed.
14264global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14265
14266# The name of the directory that contains temporary libtool files.
14267objdir=$objdir
14268
14269# Used to examine libraries when file_magic_cmd begins with "file".
14270MAGIC_CMD=$MAGIC_CMD
14271
14272# Must we lock files when doing compilation?
14273need_locks=$lt_need_locks
14274
14275# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14276DSYMUTIL=$lt_DSYMUTIL
14277
14278# Tool to change global to local symbols on Mac OS X.
14279NMEDIT=$lt_NMEDIT
14280
14281# Tool to manipulate fat objects and archives on Mac OS X.
14282LIPO=$lt_LIPO
14283
14284# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14285OTOOL=$lt_OTOOL
14286
14287# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14288OTOOL64=$lt_OTOOL64
14289
14290# Old archive suffix (normally "a").
14291libext=$libext
14292
14293# Shared library suffix (normally ".so").
14294shrext_cmds=$lt_shrext_cmds
14295
14296# The commands to extract the exported symbol list from a shared archive.
14297extract_expsyms_cmds=$lt_extract_expsyms_cmds
14298
14299# Variables whose values should be saved in libtool wrapper scripts and
14300# restored at link time.
14301variables_saved_for_relink=$lt_variables_saved_for_relink
14302
14303# Do we need the "lib" prefix for modules?
14304need_lib_prefix=$need_lib_prefix
14305
14306# Do we need a version for libraries?
14307need_version=$need_version
14308
14309# Library versioning type.
14310version_type=$version_type
14311
14312# Shared library runtime path variable.
14313runpath_var=$runpath_var
14314
14315# Shared library path variable.
14316shlibpath_var=$shlibpath_var
14317
14318# Is shlibpath searched before the hard-coded library search path?
14319shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14320
14321# Format of library name prefix.
14322libname_spec=$lt_libname_spec
14323
14324# List of archive names.  First name is the real one, the rest are links.
14325# The last name is the one that the linker finds with -lNAME
14326library_names_spec=$lt_library_names_spec
14327
14328# The coded name of the library, if different from the real name.
14329soname_spec=$lt_soname_spec
14330
14331# Permission mode override for installation of shared libraries.
14332install_override_mode=$lt_install_override_mode
14333
14334# Command to use after installation of a shared archive.
14335postinstall_cmds=$lt_postinstall_cmds
14336
14337# Command to use after uninstallation of a shared archive.
14338postuninstall_cmds=$lt_postuninstall_cmds
14339
14340# Commands used to finish a libtool library installation in a directory.
14341finish_cmds=$lt_finish_cmds
14342
14343# As "finish_cmds", except a single script fragment to be evaled but
14344# not shown.
14345finish_eval=$lt_finish_eval
14346
14347# Whether we should hardcode library paths into libraries.
14348hardcode_into_libs=$hardcode_into_libs
14349
14350# Compile-time system search path for libraries.
14351sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14352
14353# Run-time system search path for libraries.
14354sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14355
14356# Whether dlopen is supported.
14357dlopen_support=$enable_dlopen
14358
14359# Whether dlopen of programs is supported.
14360dlopen_self=$enable_dlopen_self
14361
14362# Whether dlopen of statically linked programs is supported.
14363dlopen_self_static=$enable_dlopen_self_static
14364
14365# Commands to strip libraries.
14366old_striplib=$lt_old_striplib
14367striplib=$lt_striplib
14368
14369
14370# The linker used to build libraries.
14371LD=$lt_LD
14372
14373# How to create reloadable object files.
14374reload_flag=$lt_reload_flag
14375reload_cmds=$lt_reload_cmds
14376
14377# Commands used to build an old-style archive.
14378old_archive_cmds=$lt_old_archive_cmds
14379
14380# A language specific compiler.
14381CC=$lt_compiler
14382
14383# Is the compiler the GNU compiler?
14384with_gcc=$GCC
14385
14386# Compiler flag to turn off builtin functions.
14387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14388
14389# How to pass a linker flag through the compiler.
14390wl=$lt_lt_prog_compiler_wl
14391
14392# Additional compiler flags for building library objects.
14393pic_flag=$lt_lt_prog_compiler_pic
14394
14395# Compiler flag to prevent dynamic linking.
14396link_static_flag=$lt_lt_prog_compiler_static
14397
14398# Does compiler simultaneously support -c and -o options?
14399compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14400
14401# Whether or not to add -lc for building shared libraries.
14402build_libtool_need_lc=$archive_cmds_need_lc
14403
14404# Whether or not to disallow shared libs when runtime libs are static.
14405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14406
14407# Compiler flag to allow reflexive dlopens.
14408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14409
14410# Compiler flag to generate shared objects directly from archives.
14411whole_archive_flag_spec=$lt_whole_archive_flag_spec
14412
14413# Whether the compiler copes with passing no objects directly.
14414compiler_needs_object=$lt_compiler_needs_object
14415
14416# Create an old-style archive from a shared archive.
14417old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14418
14419# Create a temporary old-style archive to link instead of a shared archive.
14420old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14421
14422# Commands used to build a shared archive.
14423archive_cmds=$lt_archive_cmds
14424archive_expsym_cmds=$lt_archive_expsym_cmds
14425
14426# Commands used to build a loadable module if different from building
14427# a shared archive.
14428module_cmds=$lt_module_cmds
14429module_expsym_cmds=$lt_module_expsym_cmds
14430
14431# Whether we are building with GNU ld or not.
14432with_gnu_ld=$lt_with_gnu_ld
14433
14434# Flag that allows shared libraries with undefined symbols to be built.
14435allow_undefined_flag=$lt_allow_undefined_flag
14436
14437# Flag that enforces no undefined symbols.
14438no_undefined_flag=$lt_no_undefined_flag
14439
14440# Flag to hardcode \$libdir into a binary during linking.
14441# This must work even if \$libdir does not exist
14442hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14443
14444# If ld is used when linking, flag to hardcode \$libdir into a binary
14445# during linking.  This must work even if \$libdir does not exist.
14446hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14447
14448# Whether we need a single "-rpath" flag with a separated argument.
14449hardcode_libdir_separator=$lt_hardcode_libdir_separator
14450
14451# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14452# DIR into the resulting binary.
14453hardcode_direct=$hardcode_direct
14454
14455# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14456# DIR into the resulting binary and the resulting library dependency is
14457# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14458# library is relocated.
14459hardcode_direct_absolute=$hardcode_direct_absolute
14460
14461# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14462# into the resulting binary.
14463hardcode_minus_L=$hardcode_minus_L
14464
14465# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14466# into the resulting binary.
14467hardcode_shlibpath_var=$hardcode_shlibpath_var
14468
14469# Set to "yes" if building a shared library automatically hardcodes DIR
14470# into the library and all subsequent libraries and executables linked
14471# against it.
14472hardcode_automatic=$hardcode_automatic
14473
14474# Set to yes if linker adds runtime paths of dependent libraries
14475# to runtime path list.
14476inherit_rpath=$inherit_rpath
14477
14478# Whether libtool must link a program against all its dependency libraries.
14479link_all_deplibs=$link_all_deplibs
14480
14481# Fix the shell variable \$srcfile for the compiler.
14482fix_srcfile_path=$lt_fix_srcfile_path
14483
14484# Set to "yes" if exported symbols are required.
14485always_export_symbols=$always_export_symbols
14486
14487# The commands to list exported symbols.
14488export_symbols_cmds=$lt_export_symbols_cmds
14489
14490# Symbols that should not be listed in the preloaded symbols.
14491exclude_expsyms=$lt_exclude_expsyms
14492
14493# Symbols that must always be exported.
14494include_expsyms=$lt_include_expsyms
14495
14496# Commands necessary for linking programs (against libraries) with templates.
14497prelink_cmds=$lt_prelink_cmds
14498
14499# Specify filename containing input files.
14500file_list_spec=$lt_file_list_spec
14501
14502# How to hardcode a shared library path into an executable.
14503hardcode_action=$hardcode_action
14504
14505# ### END LIBTOOL CONFIG
14506
14507_LT_EOF
14508
14509  case $host_os in
14510  aix3*)
14511    cat <<\_LT_EOF >> "$cfgfile"
14512# AIX sometimes has problems with the GCC collect2 program.  For some
14513# reason, if we set the COLLECT_NAMES environment variable, the problems
14514# vanish in a puff of smoke.
14515if test "X${COLLECT_NAMES+set}" != Xset; then
14516  COLLECT_NAMES=
14517  export COLLECT_NAMES
14518fi
14519_LT_EOF
14520    ;;
14521  esac
14522
14523
14524ltmain="$ac_aux_dir/ltmain.sh"
14525
14526
14527  # We use sed instead of cat because bash on DJGPP gets confused if
14528  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14529  # text mode, it properly converts lines to CR/LF.  This bash problem
14530  # is reportedly fixed, but why not run on old versions too?
14531  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14532    || (rm -f "$cfgfile"; exit 1)
14533
14534  case $xsi_shell in
14535  yes)
14536    cat << \_LT_EOF >> "$cfgfile"
14537
14538# func_dirname file append nondir_replacement
14539# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14540# otherwise set result to NONDIR_REPLACEMENT.
14541func_dirname ()
14542{
14543  case ${1} in
14544    */*) func_dirname_result="${1%/*}${2}" ;;
14545    *  ) func_dirname_result="${3}" ;;
14546  esac
14547}
14548
14549# func_basename file
14550func_basename ()
14551{
14552  func_basename_result="${1##*/}"
14553}
14554
14555# func_dirname_and_basename file append nondir_replacement
14556# perform func_basename and func_dirname in a single function
14557# call:
14558#   dirname:  Compute the dirname of FILE.  If nonempty,
14559#             add APPEND to the result, otherwise set result
14560#             to NONDIR_REPLACEMENT.
14561#             value returned in "$func_dirname_result"
14562#   basename: Compute filename of FILE.
14563#             value retuned in "$func_basename_result"
14564# Implementation must be kept synchronized with func_dirname
14565# and func_basename. For efficiency, we do not delegate to
14566# those functions but instead duplicate the functionality here.
14567func_dirname_and_basename ()
14568{
14569  case ${1} in
14570    */*) func_dirname_result="${1%/*}${2}" ;;
14571    *  ) func_dirname_result="${3}" ;;
14572  esac
14573  func_basename_result="${1##*/}"
14574}
14575
14576# func_stripname prefix suffix name
14577# strip PREFIX and SUFFIX off of NAME.
14578# PREFIX and SUFFIX must not contain globbing or regex special
14579# characters, hashes, percent signs, but SUFFIX may contain a leading
14580# dot (in which case that matches only a dot).
14581func_stripname ()
14582{
14583  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14584  # positional parameters, so assign one to ordinary parameter first.
14585  func_stripname_result=${3}
14586  func_stripname_result=${func_stripname_result#"${1}"}
14587  func_stripname_result=${func_stripname_result%"${2}"}
14588}
14589
14590# func_opt_split
14591func_opt_split ()
14592{
14593  func_opt_split_opt=${1%%=*}
14594  func_opt_split_arg=${1#*=}
14595}
14596
14597# func_lo2o object
14598func_lo2o ()
14599{
14600  case ${1} in
14601    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14602    *)    func_lo2o_result=${1} ;;
14603  esac
14604}
14605
14606# func_xform libobj-or-source
14607func_xform ()
14608{
14609  func_xform_result=${1%.*}.lo
14610}
14611
14612# func_arith arithmetic-term...
14613func_arith ()
14614{
14615  func_arith_result=$(( $* ))
14616}
14617
14618# func_len string
14619# STRING may not start with a hyphen.
14620func_len ()
14621{
14622  func_len_result=${#1}
14623}
14624
14625_LT_EOF
14626    ;;
14627  *) # Bourne compatible functions.
14628    cat << \_LT_EOF >> "$cfgfile"
14629
14630# func_dirname file append nondir_replacement
14631# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14632# otherwise set result to NONDIR_REPLACEMENT.
14633func_dirname ()
14634{
14635  # Extract subdirectory from the argument.
14636  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14637  if test "X$func_dirname_result" = "X${1}"; then
14638    func_dirname_result="${3}"
14639  else
14640    func_dirname_result="$func_dirname_result${2}"
14641  fi
14642}
14643
14644# func_basename file
14645func_basename ()
14646{
14647  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14648}
14649
14650
14651# func_stripname prefix suffix name
14652# strip PREFIX and SUFFIX off of NAME.
14653# PREFIX and SUFFIX must not contain globbing or regex special
14654# characters, hashes, percent signs, but SUFFIX may contain a leading
14655# dot (in which case that matches only a dot).
14656# func_strip_suffix prefix name
14657func_stripname ()
14658{
14659  case ${2} in
14660    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14661    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14662  esac
14663}
14664
14665# sed scripts:
14666my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14667my_sed_long_arg='1s/^-[^=]*=//'
14668
14669# func_opt_split
14670func_opt_split ()
14671{
14672  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14673  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14674}
14675
14676# func_lo2o object
14677func_lo2o ()
14678{
14679  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14680}
14681
14682# func_xform libobj-or-source
14683func_xform ()
14684{
14685  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14686}
14687
14688# func_arith arithmetic-term...
14689func_arith ()
14690{
14691  func_arith_result=`expr "$@"`
14692}
14693
14694# func_len string
14695# STRING may not start with a hyphen.
14696func_len ()
14697{
14698  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14699}
14700
14701_LT_EOF
14702esac
14703
14704case $lt_shell_append in
14705  yes)
14706    cat << \_LT_EOF >> "$cfgfile"
14707
14708# func_append var value
14709# Append VALUE to the end of shell variable VAR.
14710func_append ()
14711{
14712  eval "$1+=\$2"
14713}
14714_LT_EOF
14715    ;;
14716  *)
14717    cat << \_LT_EOF >> "$cfgfile"
14718
14719# func_append var value
14720# Append VALUE to the end of shell variable VAR.
14721func_append ()
14722{
14723  eval "$1=\$$1\$2"
14724}
14725
14726_LT_EOF
14727    ;;
14728  esac
14729
14730
14731  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14732    || (rm -f "$cfgfile"; exit 1)
14733
14734  mv -f "$cfgfile" "$ofile" ||
14735    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14736  chmod +x "$ofile"
14737
14738 ;;
14739
14740  esac
14741done # for ac_tag
14742
14743
14744as_fn_exit 0
14745_ACEOF
14746ac_clean_files=$ac_clean_files_save
14747
14748test $ac_write_fail = 0 ||
14749  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14750
14751
14752# configure is writing to config.log, and then calls config.status.
14753# config.status does its own redirection, appending to config.log.
14754# Unfortunately, on DOS this fails, as config.log is still kept open
14755# by configure, so config.status won't be able to write to it; its
14756# output is simply discarded.  So we exec the FD to /dev/null,
14757# effectively closing config.log, so it can be properly (re)opened and
14758# appended to by config.status.  When coming back to configure, we
14759# need to make the FD available again.
14760if test "$no_create" != yes; then
14761  ac_cs_success=:
14762  ac_config_status_args=
14763  test "$silent" = yes &&
14764    ac_config_status_args="$ac_config_status_args --quiet"
14765  exec 5>/dev/null
14766  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14767  exec 5>>config.log
14768  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14769  # would make configure fail if this is the last instruction.
14770  $ac_cs_success || as_fn_exit 1
14771fi
14772if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14773  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14774$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14775fi
14776
14777