configure revision ff63a143
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66 for libXfixes 5.0.
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.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    PATH=/empty FPATH=/empty; export PATH FPATH
182    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184test \$(( 1 + 1 )) = 2 || exit 1"
185  if (eval "$as_required") 2>/dev/null; then :
186  as_have_required=yes
187else
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  test -z "$as_dir" && as_dir=.
199  as_found=:
200  case $as_dir in #(
201	 /*)
202	   for as_base in sh bash ksh sh5; do
203	     # Try only shells that exist, to save several forks.
204	     as_shell=$as_dir/$as_base
205	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  CONFIG_SHELL=$as_shell as_have_required=yes
208		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  break 2
210fi
211fi
212	   done;;
213       esac
214  as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218  CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223      if test "x$CONFIG_SHELL" != x; then :
224  # We cannot yet assume a decent shell, so we have to provide a
225	# neutralization value for shells without unset; and this also
226	# works around shells that cannot unset nonexistent variables.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540SHELL=${CONFIG_SHELL-/bin/sh}
541
542
543test -n "$DJDIR" || exec 7<&0 </dev/null
544exec 6>&1
545
546# Name of the host.
547# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
548# so uname gets run too.
549ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550
551#
552# Initializations.
553#
554ac_default_prefix=/usr/local
555ac_clean_files=
556ac_config_libobj_dir=.
557LIBOBJS=
558cross_compiling=no
559subdirs=
560MFLAGS=
561MAKEFLAGS=
562
563# Identity of this package.
564PACKAGE_NAME='libXfixes'
565PACKAGE_TARNAME='libXfixes'
566PACKAGE_VERSION='5.0'
567PACKAGE_STRING='libXfixes 5.0'
568PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569PACKAGE_URL=''
570
571ac_unique_file="Makefile.am"
572# Factoring default headers for most tests.
573ac_includes_default="\
574#include <stdio.h>
575#ifdef HAVE_SYS_TYPES_H
576# include <sys/types.h>
577#endif
578#ifdef HAVE_SYS_STAT_H
579# include <sys/stat.h>
580#endif
581#ifdef STDC_HEADERS
582# include <stdlib.h>
583# include <stddef.h>
584#else
585# ifdef HAVE_STDLIB_H
586#  include <stdlib.h>
587# endif
588#endif
589#ifdef HAVE_STRING_H
590# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591#  include <memory.h>
592# endif
593# include <string.h>
594#endif
595#ifdef HAVE_STRINGS_H
596# include <strings.h>
597#endif
598#ifdef HAVE_INTTYPES_H
599# include <inttypes.h>
600#endif
601#ifdef HAVE_STDINT_H
602# include <stdint.h>
603#endif
604#ifdef HAVE_UNISTD_H
605# include <unistd.h>
606#endif"
607
608ac_subst_vars='am__EXEEXT_FALSE
609am__EXEEXT_TRUE
610LTLIBOBJS
611LIBOBJS
612FIXESEXT_LIBS
613FIXESEXT_CFLAGS
614FIXESEXT_VERSION
615AM_BACKSLASH
616AM_DEFAULT_VERBOSITY
617MAN_SUBSTS
618XORG_MAN_PAGE
619ADMIN_MAN_DIR
620DRIVER_MAN_DIR
621MISC_MAN_DIR
622FILE_MAN_DIR
623LIB_MAN_DIR
624APP_MAN_DIR
625ADMIN_MAN_SUFFIX
626DRIVER_MAN_SUFFIX
627MISC_MAN_SUFFIX
628FILE_MAN_SUFFIX
629LIB_MAN_SUFFIX
630APP_MAN_SUFFIX
631INSTALL_CMD
632PKG_CONFIG_LIBDIR
633PKG_CONFIG_PATH
634PKG_CONFIG
635CHANGELOG_CMD
636CWARNFLAGS
637CPP
638OTOOL64
639OTOOL
640LIPO
641NMEDIT
642DSYMUTIL
643RANLIB
644AR
645OBJDUMP
646LN_S
647NM
648ac_ct_DUMPBIN
649DUMPBIN
650LD
651FGREP
652EGREP
653GREP
654SED
655am__fastdepCC_FALSE
656am__fastdepCC_TRUE
657CCDEPMODE
658AMDEPBACKSLASH
659AMDEP_FALSE
660AMDEP_TRUE
661am__quote
662am__include
663DEPDIR
664OBJEXT
665EXEEXT
666ac_ct_CC
667CPPFLAGS
668LDFLAGS
669CFLAGS
670CC
671host_os
672host_vendor
673host_cpu
674host
675build_os
676build_vendor
677build_cpu
678build
679LIBTOOL
680MAINT
681MAINTAINER_MODE_FALSE
682MAINTAINER_MODE_TRUE
683am__untar
684am__tar
685AMTAR
686am__leading_dot
687SET_MAKE
688AWK
689mkdir_p
690MKDIR_P
691INSTALL_STRIP_PROGRAM
692STRIP
693install_sh
694MAKEINFO
695AUTOHEADER
696AUTOMAKE
697AUTOCONF
698ACLOCAL
699VERSION
700PACKAGE
701CYGPATH_W
702am__isrc
703INSTALL_DATA
704INSTALL_SCRIPT
705INSTALL_PROGRAM
706target_alias
707host_alias
708build_alias
709LIBS
710ECHO_T
711ECHO_N
712ECHO_C
713DEFS
714mandir
715localedir
716libdir
717psdir
718pdfdir
719dvidir
720htmldir
721infodir
722docdir
723oldincludedir
724includedir
725localstatedir
726sharedstatedir
727sysconfdir
728datadir
729datarootdir
730libexecdir
731sbindir
732bindir
733program_transform_name
734prefix
735exec_prefix
736PACKAGE_URL
737PACKAGE_BUGREPORT
738PACKAGE_STRING
739PACKAGE_VERSION
740PACKAGE_TARNAME
741PACKAGE_NAME
742PATH_SEPARATOR
743SHELL'
744ac_subst_files=''
745ac_user_opts='
746enable_option_checking
747enable_maintainer_mode
748enable_shared
749enable_static
750with_pic
751enable_fast_install
752enable_dependency_tracking
753with_gnu_ld
754enable_libtool_lock
755enable_strict_compilation
756enable_silent_rules
757'
758      ac_precious_vars='build_alias
759host_alias
760target_alias
761CC
762CFLAGS
763LDFLAGS
764LIBS
765CPPFLAGS
766CPP
767PKG_CONFIG
768PKG_CONFIG_PATH
769PKG_CONFIG_LIBDIR
770FIXESEXT_CFLAGS
771FIXESEXT_LIBS'
772
773
774# Initialize some variables set by options.
775ac_init_help=
776ac_init_version=false
777ac_unrecognized_opts=
778ac_unrecognized_sep=
779# The variables have the same names as the options, with
780# dashes changed to underlines.
781cache_file=/dev/null
782exec_prefix=NONE
783no_create=
784no_recursion=
785prefix=NONE
786program_prefix=NONE
787program_suffix=NONE
788program_transform_name=s,x,x,
789silent=
790site=
791srcdir=
792verbose=
793x_includes=NONE
794x_libraries=NONE
795
796# Installation directory options.
797# These are left unexpanded so users can "make install exec_prefix=/foo"
798# and all the variables that are supposed to be based on exec_prefix
799# by default will actually change.
800# Use braces instead of parens because sh, perl, etc. also accept them.
801# (The list follows the same order as the GNU Coding Standards.)
802bindir='${exec_prefix}/bin'
803sbindir='${exec_prefix}/sbin'
804libexecdir='${exec_prefix}/libexec'
805datarootdir='${prefix}/share'
806datadir='${datarootdir}'
807sysconfdir='${prefix}/etc'
808sharedstatedir='${prefix}/com'
809localstatedir='${prefix}/var'
810includedir='${prefix}/include'
811oldincludedir='/usr/include'
812docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813infodir='${datarootdir}/info'
814htmldir='${docdir}'
815dvidir='${docdir}'
816pdfdir='${docdir}'
817psdir='${docdir}'
818libdir='${exec_prefix}/lib'
819localedir='${datarootdir}/locale'
820mandir='${datarootdir}/man'
821
822ac_prev=
823ac_dashdash=
824for ac_option
825do
826  # If the previous option needs an argument, assign it.
827  if test -n "$ac_prev"; then
828    eval $ac_prev=\$ac_option
829    ac_prev=
830    continue
831  fi
832
833  case $ac_option in
834  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835  *)	ac_optarg=yes ;;
836  esac
837
838  # Accept the important Cygnus configure options, so we can diagnose typos.
839
840  case $ac_dashdash$ac_option in
841  --)
842    ac_dashdash=yes ;;
843
844  -bindir | --bindir | --bindi | --bind | --bin | --bi)
845    ac_prev=bindir ;;
846  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847    bindir=$ac_optarg ;;
848
849  -build | --build | --buil | --bui | --bu)
850    ac_prev=build_alias ;;
851  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852    build_alias=$ac_optarg ;;
853
854  -cache-file | --cache-file | --cache-fil | --cache-fi \
855  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856    ac_prev=cache_file ;;
857  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859    cache_file=$ac_optarg ;;
860
861  --config-cache | -C)
862    cache_file=config.cache ;;
863
864  -datadir | --datadir | --datadi | --datad)
865    ac_prev=datadir ;;
866  -datadir=* | --datadir=* | --datadi=* | --datad=*)
867    datadir=$ac_optarg ;;
868
869  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870  | --dataroo | --dataro | --datar)
871    ac_prev=datarootdir ;;
872  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874    datarootdir=$ac_optarg ;;
875
876  -disable-* | --disable-*)
877    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878    # Reject names that are not valid shell variable names.
879    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880      as_fn_error $? "invalid feature name: $ac_useropt"
881    ac_useropt_orig=$ac_useropt
882    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883    case $ac_user_opts in
884      *"
885"enable_$ac_useropt"
886"*) ;;
887      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888	 ac_unrecognized_sep=', ';;
889    esac
890    eval enable_$ac_useropt=no ;;
891
892  -docdir | --docdir | --docdi | --doc | --do)
893    ac_prev=docdir ;;
894  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895    docdir=$ac_optarg ;;
896
897  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898    ac_prev=dvidir ;;
899  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900    dvidir=$ac_optarg ;;
901
902  -enable-* | --enable-*)
903    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904    # Reject names that are not valid shell variable names.
905    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906      as_fn_error $? "invalid feature name: $ac_useropt"
907    ac_useropt_orig=$ac_useropt
908    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909    case $ac_user_opts in
910      *"
911"enable_$ac_useropt"
912"*) ;;
913      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914	 ac_unrecognized_sep=', ';;
915    esac
916    eval enable_$ac_useropt=\$ac_optarg ;;
917
918  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920  | --exec | --exe | --ex)
921    ac_prev=exec_prefix ;;
922  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924  | --exec=* | --exe=* | --ex=*)
925    exec_prefix=$ac_optarg ;;
926
927  -gas | --gas | --ga | --g)
928    # Obsolete; use --with-gas.
929    with_gas=yes ;;
930
931  -help | --help | --hel | --he | -h)
932    ac_init_help=long ;;
933  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934    ac_init_help=recursive ;;
935  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936    ac_init_help=short ;;
937
938  -host | --host | --hos | --ho)
939    ac_prev=host_alias ;;
940  -host=* | --host=* | --hos=* | --ho=*)
941    host_alias=$ac_optarg ;;
942
943  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944    ac_prev=htmldir ;;
945  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946  | --ht=*)
947    htmldir=$ac_optarg ;;
948
949  -includedir | --includedir | --includedi | --included | --include \
950  | --includ | --inclu | --incl | --inc)
951    ac_prev=includedir ;;
952  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953  | --includ=* | --inclu=* | --incl=* | --inc=*)
954    includedir=$ac_optarg ;;
955
956  -infodir | --infodir | --infodi | --infod | --info | --inf)
957    ac_prev=infodir ;;
958  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959    infodir=$ac_optarg ;;
960
961  -libdir | --libdir | --libdi | --libd)
962    ac_prev=libdir ;;
963  -libdir=* | --libdir=* | --libdi=* | --libd=*)
964    libdir=$ac_optarg ;;
965
966  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967  | --libexe | --libex | --libe)
968    ac_prev=libexecdir ;;
969  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970  | --libexe=* | --libex=* | --libe=*)
971    libexecdir=$ac_optarg ;;
972
973  -localedir | --localedir | --localedi | --localed | --locale)
974    ac_prev=localedir ;;
975  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976    localedir=$ac_optarg ;;
977
978  -localstatedir | --localstatedir | --localstatedi | --localstated \
979  | --localstate | --localstat | --localsta | --localst | --locals)
980    ac_prev=localstatedir ;;
981  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983    localstatedir=$ac_optarg ;;
984
985  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986    ac_prev=mandir ;;
987  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988    mandir=$ac_optarg ;;
989
990  -nfp | --nfp | --nf)
991    # Obsolete; use --without-fp.
992    with_fp=no ;;
993
994  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995  | --no-cr | --no-c | -n)
996    no_create=yes ;;
997
998  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000    no_recursion=yes ;;
1001
1002  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004  | --oldin | --oldi | --old | --ol | --o)
1005    ac_prev=oldincludedir ;;
1006  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009    oldincludedir=$ac_optarg ;;
1010
1011  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012    ac_prev=prefix ;;
1013  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014    prefix=$ac_optarg ;;
1015
1016  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017  | --program-pre | --program-pr | --program-p)
1018    ac_prev=program_prefix ;;
1019  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021    program_prefix=$ac_optarg ;;
1022
1023  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024  | --program-suf | --program-su | --program-s)
1025    ac_prev=program_suffix ;;
1026  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028    program_suffix=$ac_optarg ;;
1029
1030  -program-transform-name | --program-transform-name \
1031  | --program-transform-nam | --program-transform-na \
1032  | --program-transform-n | --program-transform- \
1033  | --program-transform | --program-transfor \
1034  | --program-transfo | --program-transf \
1035  | --program-trans | --program-tran \
1036  | --progr-tra | --program-tr | --program-t)
1037    ac_prev=program_transform_name ;;
1038  -program-transform-name=* | --program-transform-name=* \
1039  | --program-transform-nam=* | --program-transform-na=* \
1040  | --program-transform-n=* | --program-transform-=* \
1041  | --program-transform=* | --program-transfor=* \
1042  | --program-transfo=* | --program-transf=* \
1043  | --program-trans=* | --program-tran=* \
1044  | --progr-tra=* | --program-tr=* | --program-t=*)
1045    program_transform_name=$ac_optarg ;;
1046
1047  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048    ac_prev=pdfdir ;;
1049  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050    pdfdir=$ac_optarg ;;
1051
1052  -psdir | --psdir | --psdi | --psd | --ps)
1053    ac_prev=psdir ;;
1054  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055    psdir=$ac_optarg ;;
1056
1057  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058  | -silent | --silent | --silen | --sile | --sil)
1059    silent=yes ;;
1060
1061  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062    ac_prev=sbindir ;;
1063  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064  | --sbi=* | --sb=*)
1065    sbindir=$ac_optarg ;;
1066
1067  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069  | --sharedst | --shareds | --shared | --share | --shar \
1070  | --sha | --sh)
1071    ac_prev=sharedstatedir ;;
1072  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075  | --sha=* | --sh=*)
1076    sharedstatedir=$ac_optarg ;;
1077
1078  -site | --site | --sit)
1079    ac_prev=site ;;
1080  -site=* | --site=* | --sit=*)
1081    site=$ac_optarg ;;
1082
1083  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084    ac_prev=srcdir ;;
1085  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086    srcdir=$ac_optarg ;;
1087
1088  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089  | --syscon | --sysco | --sysc | --sys | --sy)
1090    ac_prev=sysconfdir ;;
1091  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093    sysconfdir=$ac_optarg ;;
1094
1095  -target | --target | --targe | --targ | --tar | --ta | --t)
1096    ac_prev=target_alias ;;
1097  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098    target_alias=$ac_optarg ;;
1099
1100  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101    verbose=yes ;;
1102
1103  -version | --version | --versio | --versi | --vers | -V)
1104    ac_init_version=: ;;
1105
1106  -with-* | --with-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid package name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"with_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval with_$ac_useropt=\$ac_optarg ;;
1121
1122  -without-* | --without-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval with_$ac_useropt=no ;;
1137
1138  --x)
1139    # Obsolete; use --with-x.
1140    with_x=yes ;;
1141
1142  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143  | --x-incl | --x-inc | --x-in | --x-i)
1144    ac_prev=x_includes ;;
1145  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147    x_includes=$ac_optarg ;;
1148
1149  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151    ac_prev=x_libraries ;;
1152  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154    x_libraries=$ac_optarg ;;
1155
1156  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157Try \`$0 --help' for more information"
1158    ;;
1159
1160  *=*)
1161    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162    # Reject names that are not valid shell variable names.
1163    case $ac_envvar in #(
1164      '' | [0-9]* | *[!_$as_cr_alnum]* )
1165      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166    esac
1167    eval $ac_envvar=\$ac_optarg
1168    export $ac_envvar ;;
1169
1170  *)
1171    # FIXME: should be removed in autoconf 3.0.
1172    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176    ;;
1177
1178  esac
1179done
1180
1181if test -n "$ac_prev"; then
1182  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183  as_fn_error $? "missing argument to $ac_option"
1184fi
1185
1186if test -n "$ac_unrecognized_opts"; then
1187  case $enable_option_checking in
1188    no) ;;
1189    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1190    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191  esac
1192fi
1193
1194# Check all directory arguments for consistency.
1195for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196		datadir sysconfdir sharedstatedir localstatedir includedir \
1197		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198		libdir localedir mandir
1199do
1200  eval ac_val=\$$ac_var
1201  # Remove trailing slashes.
1202  case $ac_val in
1203    */ )
1204      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205      eval $ac_var=\$ac_val;;
1206  esac
1207  # Be sure to have absolute directory names.
1208  case $ac_val in
1209    [\\/$]* | ?:[\\/]* )  continue;;
1210    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211  esac
1212  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224  if test "x$build_alias" = x; then
1225    cross_compiling=maybe
1226    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1227    If a cross compiler is detected then cross compile mode will be used" >&2
1228  elif test "x$build_alias" != "x$host_alias"; then
1229    cross_compiling=yes
1230  fi
1231fi
1232
1233ac_tool_prefix=
1234test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236test "$silent" = yes && exec 6>/dev/null
1237
1238
1239ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240ac_ls_di=`ls -di .` &&
1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242  as_fn_error $? "working directory cannot be determined"
1243test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244  as_fn_error $? "pwd does not report name of working directory"
1245
1246
1247# Find the source files, if location was not specified.
1248if test -z "$srcdir"; then
1249  ac_srcdir_defaulted=yes
1250  # Try the directory containing this script, then the parent directory.
1251  ac_confdir=`$as_dirname -- "$as_myself" ||
1252$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253	 X"$as_myself" : 'X\(//\)[^/]' \| \
1254	 X"$as_myself" : 'X\(//\)$' \| \
1255	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256$as_echo X"$as_myself" |
1257    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258	    s//\1/
1259	    q
1260	  }
1261	  /^X\(\/\/\)[^/].*/{
1262	    s//\1/
1263	    q
1264	  }
1265	  /^X\(\/\/\)$/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\).*/{
1270	    s//\1/
1271	    q
1272	  }
1273	  s/.*/./; q'`
1274  srcdir=$ac_confdir
1275  if test ! -r "$srcdir/$ac_unique_file"; then
1276    srcdir=..
1277  fi
1278else
1279  ac_srcdir_defaulted=no
1280fi
1281if test ! -r "$srcdir/$ac_unique_file"; then
1282  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284fi
1285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286ac_abs_confdir=`(
1287	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288	pwd)`
1289# When building in place, set srcdir=.
1290if test "$ac_abs_confdir" = "$ac_pwd"; then
1291  srcdir=.
1292fi
1293# Remove unnecessary trailing slashes from srcdir.
1294# Double slashes in file names in object file debugging info
1295# mess up M-x gdb in Emacs.
1296case $srcdir in
1297*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298esac
1299for ac_var in $ac_precious_vars; do
1300  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301  eval ac_env_${ac_var}_value=\$${ac_var}
1302  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304done
1305
1306#
1307# Report the --help message.
1308#
1309if test "$ac_init_help" = "long"; then
1310  # Omit some internal or obsolete options to make the list less imposing.
1311  # This message is too long to be a string in the A/UX 3.1 sh.
1312  cat <<_ACEOF
1313\`configure' configures libXfixes 5.0 to adapt to many kinds of systems.
1314
1315Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318VAR=VALUE.  See below for descriptions of some of the useful variables.
1319
1320Defaults for the options are specified in brackets.
1321
1322Configuration:
1323  -h, --help              display this help and exit
1324      --help=short        display options specific to this package
1325      --help=recursive    display the short help of all the included packages
1326  -V, --version           display version information and exit
1327  -q, --quiet, --silent   do not print \`checking ...' messages
1328      --cache-file=FILE   cache test results in FILE [disabled]
1329  -C, --config-cache      alias for \`--cache-file=config.cache'
1330  -n, --no-create         do not create output files
1331      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1332
1333Installation directories:
1334  --prefix=PREFIX         install architecture-independent files in PREFIX
1335                          [$ac_default_prefix]
1336  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1337                          [PREFIX]
1338
1339By default, \`make install' will install all the files in
1340\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1341an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342for instance \`--prefix=\$HOME'.
1343
1344For better control, use the options below.
1345
1346Fine tuning of the installation directories:
1347  --bindir=DIR            user executables [EPREFIX/bin]
1348  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1349  --libexecdir=DIR        program executables [EPREFIX/libexec]
1350  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1351  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1352  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1353  --libdir=DIR            object code libraries [EPREFIX/lib]
1354  --includedir=DIR        C header files [PREFIX/include]
1355  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1356  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1357  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1358  --infodir=DIR           info documentation [DATAROOTDIR/info]
1359  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1360  --mandir=DIR            man documentation [DATAROOTDIR/man]
1361  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXfixes]
1362  --htmldir=DIR           html documentation [DOCDIR]
1363  --dvidir=DIR            dvi documentation [DOCDIR]
1364  --pdfdir=DIR            pdf documentation [DOCDIR]
1365  --psdir=DIR             ps documentation [DOCDIR]
1366_ACEOF
1367
1368  cat <<\_ACEOF
1369
1370Program names:
1371  --program-prefix=PREFIX            prepend PREFIX to installed program names
1372  --program-suffix=SUFFIX            append SUFFIX to installed program names
1373  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1374
1375System types:
1376  --build=BUILD     configure for building on BUILD [guessed]
1377  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382  case $ac_init_help in
1383     short | recursive ) echo "Configuration of libXfixes 5.0:";;
1384   esac
1385  cat <<\_ACEOF
1386
1387Optional Features:
1388  --disable-option-checking  ignore unrecognized --enable/--with options
1389  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391  --enable-maintainer-mode  enable make rules and dependencies not useful
1392			  (and sometimes confusing) to the casual installer
1393  --enable-shared[=PKGS]  build shared libraries [default=yes]
1394  --enable-static[=PKGS]  build static libraries [default=yes]
1395  --enable-fast-install[=PKGS]
1396                          optimize for fast installation [default=yes]
1397  --disable-dependency-tracking  speeds up one-time build
1398  --enable-dependency-tracking   do not reject slow dependency extractors
1399  --disable-libtool-lock  avoid locking (might break parallel builds)
1400  --enable-strict-compilation
1401                          Enable all warnings from compiler and make them
1402                          errors (default: disabled)
1403  --enable-silent-rules          less verbose build output (undo: `make V=1')
1404  --disable-silent-rules         verbose build output (undo: `make V=0')
1405
1406Optional Packages:
1407  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1408  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1409  --with-pic              try to use only PIC/non-PIC objects [default=use
1410                          both]
1411  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1412
1413Some influential environment variables:
1414  CC          C compiler command
1415  CFLAGS      C compiler flags
1416  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1417              nonstandard directory <lib dir>
1418  LIBS        libraries to pass to the linker, e.g. -l<library>
1419  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1420              you have headers in a nonstandard directory <include dir>
1421  CPP         C preprocessor
1422  PKG_CONFIG  path to pkg-config utility
1423  PKG_CONFIG_PATH
1424              directories to add to pkg-config's search path
1425  PKG_CONFIG_LIBDIR
1426              path overriding pkg-config's built-in search path
1427  FIXESEXT_CFLAGS
1428              C compiler flags for FIXESEXT, overriding pkg-config
1429  FIXESEXT_LIBS
1430              linker flags for FIXESEXT, overriding pkg-config
1431
1432Use these variables to override the choices made by `configure' or to help
1433it to find libraries and programs with nonstandard names/locations.
1434
1435Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1436_ACEOF
1437ac_status=$?
1438fi
1439
1440if test "$ac_init_help" = "recursive"; then
1441  # If there are subdirs, report their specific --help.
1442  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443    test -d "$ac_dir" ||
1444      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445      continue
1446    ac_builddir=.
1447
1448case "$ac_dir" in
1449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450*)
1451  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452  # A ".." for each directory in $ac_dir_suffix.
1453  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454  case $ac_top_builddir_sub in
1455  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457  esac ;;
1458esac
1459ac_abs_top_builddir=$ac_pwd
1460ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461# for backward compatibility:
1462ac_top_builddir=$ac_top_build_prefix
1463
1464case $srcdir in
1465  .)  # We are building in place.
1466    ac_srcdir=.
1467    ac_top_srcdir=$ac_top_builddir_sub
1468    ac_abs_top_srcdir=$ac_pwd ;;
1469  [\\/]* | ?:[\\/]* )  # Absolute name.
1470    ac_srcdir=$srcdir$ac_dir_suffix;
1471    ac_top_srcdir=$srcdir
1472    ac_abs_top_srcdir=$srcdir ;;
1473  *) # Relative name.
1474    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475    ac_top_srcdir=$ac_top_build_prefix$srcdir
1476    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477esac
1478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480    cd "$ac_dir" || { ac_status=$?; continue; }
1481    # Check for guested configure.
1482    if test -f "$ac_srcdir/configure.gnu"; then
1483      echo &&
1484      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485    elif test -f "$ac_srcdir/configure"; then
1486      echo &&
1487      $SHELL "$ac_srcdir/configure" --help=recursive
1488    else
1489      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490    fi || ac_status=$?
1491    cd "$ac_pwd" || { ac_status=$?; break; }
1492  done
1493fi
1494
1495test -n "$ac_init_help" && exit $ac_status
1496if $ac_init_version; then
1497  cat <<\_ACEOF
1498libXfixes configure 5.0
1499generated by GNU Autoconf 2.66
1500
1501Copyright (C) 2010 Free Software Foundation, Inc.
1502This configure script is free software; the Free Software Foundation
1503gives unlimited permission to copy, distribute and modify it.
1504_ACEOF
1505  exit
1506fi
1507
1508## ------------------------ ##
1509## Autoconf initialization. ##
1510## ------------------------ ##
1511
1512# ac_fn_c_try_compile LINENO
1513# --------------------------
1514# Try to compile conftest.$ac_ext, and return whether this succeeded.
1515ac_fn_c_try_compile ()
1516{
1517  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518  rm -f conftest.$ac_objext
1519  if { { ac_try="$ac_compile"
1520case "(($ac_try" in
1521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522  *) ac_try_echo=$ac_try;;
1523esac
1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525$as_echo "$ac_try_echo"; } >&5
1526  (eval "$ac_compile") 2>conftest.err
1527  ac_status=$?
1528  if test -s conftest.err; then
1529    grep -v '^ *+' conftest.err >conftest.er1
1530    cat conftest.er1 >&5
1531    mv -f conftest.er1 conftest.err
1532  fi
1533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534  test $ac_status = 0; } && {
1535	 test -z "$ac_c_werror_flag" ||
1536	 test ! -s conftest.err
1537       } && test -s conftest.$ac_objext; then :
1538  ac_retval=0
1539else
1540  $as_echo "$as_me: failed program was:" >&5
1541sed 's/^/| /' conftest.$ac_ext >&5
1542
1543	ac_retval=1
1544fi
1545  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1546  as_fn_set_status $ac_retval
1547
1548} # ac_fn_c_try_compile
1549
1550# ac_fn_c_try_link LINENO
1551# -----------------------
1552# Try to link conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_link ()
1554{
1555  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556  rm -f conftest.$ac_objext conftest$ac_exeext
1557  if { { ac_try="$ac_link"
1558case "(($ac_try" in
1559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560  *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564  (eval "$ac_link") 2>conftest.err
1565  ac_status=$?
1566  if test -s conftest.err; then
1567    grep -v '^ *+' conftest.err >conftest.er1
1568    cat conftest.er1 >&5
1569    mv -f conftest.er1 conftest.err
1570  fi
1571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572  test $ac_status = 0; } && {
1573	 test -z "$ac_c_werror_flag" ||
1574	 test ! -s conftest.err
1575       } && test -s conftest$ac_exeext && {
1576	 test "$cross_compiling" = yes ||
1577	 $as_test_x conftest$ac_exeext
1578       }; then :
1579  ac_retval=0
1580else
1581  $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584	ac_retval=1
1585fi
1586  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588  # interfere with the next link command; also delete a directory that is
1589  # left behind by Apple's compiler.  We do this before executing the actions.
1590  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592  as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_link
1595
1596# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597# -------------------------------------------------------
1598# Tests whether HEADER exists and can be compiled using the include files in
1599# INCLUDES, setting the cache variable VAR accordingly.
1600ac_fn_c_check_header_compile ()
1601{
1602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604$as_echo_n "checking for $2... " >&6; }
1605if eval "test \"\${$3+set}\"" = set; then :
1606  $as_echo_n "(cached) " >&6
1607else
1608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h.  */
1610$4
1611#include <$2>
1612_ACEOF
1613if ac_fn_c_try_compile "$LINENO"; then :
1614  eval "$3=yes"
1615else
1616  eval "$3=no"
1617fi
1618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619fi
1620eval ac_res=\$$3
1621	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622$as_echo "$ac_res" >&6; }
1623  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624
1625} # ac_fn_c_check_header_compile
1626
1627# ac_fn_c_try_cpp LINENO
1628# ----------------------
1629# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_cpp ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  if { { ac_try="$ac_cpp conftest.$ac_ext"
1634case "(($ac_try" in
1635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636  *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641  ac_status=$?
1642  if test -s conftest.err; then
1643    grep -v '^ *+' conftest.err >conftest.er1
1644    cat conftest.er1 >&5
1645    mv -f conftest.er1 conftest.err
1646  fi
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; } >/dev/null && {
1649	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650	 test ! -s conftest.err
1651       }; then :
1652  ac_retval=0
1653else
1654  $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657    ac_retval=1
1658fi
1659  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660  as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_cpp
1663
1664# ac_fn_c_try_run LINENO
1665# ----------------------
1666# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667# that executables *can* be run.
1668ac_fn_c_try_run ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  if { { ac_try="$ac_link"
1672case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678  (eval "$ac_link") 2>&5
1679  ac_status=$?
1680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682  { { case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_try") 2>&5
1689  ac_status=$?
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; }; }; then :
1692  ac_retval=0
1693else
1694  $as_echo "$as_me: program exited with status $ac_status" >&5
1695       $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698       ac_retval=$ac_status
1699fi
1700  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702  as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_run
1705
1706# ac_fn_c_check_func LINENO FUNC VAR
1707# ----------------------------------
1708# Tests whether FUNC exists, setting the cache variable VAR accordingly
1709ac_fn_c_check_func ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713$as_echo_n "checking for $2... " >&6; }
1714if eval "test \"\${$3+set}\"" = set; then :
1715  $as_echo_n "(cached) " >&6
1716else
1717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h.  */
1719/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1721#define $2 innocuous_$2
1722
1723/* System header to define __stub macros and hopefully few prototypes,
1724    which can conflict with char $2 (); below.
1725    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726    <limits.h> exists even on freestanding compilers.  */
1727
1728#ifdef __STDC__
1729# include <limits.h>
1730#else
1731# include <assert.h>
1732#endif
1733
1734#undef $2
1735
1736/* Override any GCC internal prototype to avoid an error.
1737   Use char because int might match the return type of a GCC
1738   builtin and then its argument prototype would still apply.  */
1739#ifdef __cplusplus
1740extern "C"
1741#endif
1742char $2 ();
1743/* The GNU C library defines this for functions which it implements
1744    to always fail with ENOSYS.  Some functions are actually named
1745    something starting with __ and the normal name is an alias.  */
1746#if defined __stub_$2 || defined __stub___$2
1747choke me
1748#endif
1749
1750int
1751main ()
1752{
1753return $2 ();
1754  ;
1755  return 0;
1756}
1757_ACEOF
1758if ac_fn_c_try_link "$LINENO"; then :
1759  eval "$3=yes"
1760else
1761  eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext \
1764    conftest$ac_exeext conftest.$ac_ext
1765fi
1766eval ac_res=\$$3
1767	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770
1771} # ac_fn_c_check_func
1772
1773# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1774# ---------------------------------------------
1775# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1776# accordingly.
1777ac_fn_c_check_decl ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  as_decl_name=`echo $2|sed 's/ *(.*//'`
1781  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1783$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1784if eval "test \"\${$3+set}\"" = set; then :
1785  $as_echo_n "(cached) " >&6
1786else
1787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h.  */
1789$4
1790int
1791main ()
1792{
1793#ifndef $as_decl_name
1794#ifdef __cplusplus
1795  (void) $as_decl_use;
1796#else
1797  (void) $as_decl_name;
1798#endif
1799#endif
1800
1801  ;
1802  return 0;
1803}
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806  eval "$3=yes"
1807else
1808  eval "$3=no"
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811fi
1812eval ac_res=\$$3
1813	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814$as_echo "$ac_res" >&6; }
1815  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816
1817} # ac_fn_c_check_decl
1818cat >config.log <<_ACEOF
1819This file contains any messages produced by compilers while
1820running configure, to aid debugging if configure makes a mistake.
1821
1822It was created by libXfixes $as_me 5.0, which was
1823generated by GNU Autoconf 2.66.  Invocation command line was
1824
1825  $ $0 $@
1826
1827_ACEOF
1828exec 5>>config.log
1829{
1830cat <<_ASUNAME
1831## --------- ##
1832## Platform. ##
1833## --------- ##
1834
1835hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839uname -v = `(uname -v) 2>/dev/null || echo unknown`
1840
1841/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1843
1844/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1845/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1846/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1847/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1848/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1849/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1850/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1851
1852_ASUNAME
1853
1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855for as_dir in $PATH
1856do
1857  IFS=$as_save_IFS
1858  test -z "$as_dir" && as_dir=.
1859    $as_echo "PATH: $as_dir"
1860  done
1861IFS=$as_save_IFS
1862
1863} >&5
1864
1865cat >&5 <<_ACEOF
1866
1867
1868## ----------- ##
1869## Core tests. ##
1870## ----------- ##
1871
1872_ACEOF
1873
1874
1875# Keep a trace of the command line.
1876# Strip out --no-create and --no-recursion so they do not pile up.
1877# Strip out --silent because we don't want to record it for future runs.
1878# Also quote any args containing shell meta-characters.
1879# Make two passes to allow for proper duplicate-argument suppression.
1880ac_configure_args=
1881ac_configure_args0=
1882ac_configure_args1=
1883ac_must_keep_next=false
1884for ac_pass in 1 2
1885do
1886  for ac_arg
1887  do
1888    case $ac_arg in
1889    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891    | -silent | --silent | --silen | --sile | --sil)
1892      continue ;;
1893    *\'*)
1894      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1895    esac
1896    case $ac_pass in
1897    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1898    2)
1899      as_fn_append ac_configure_args1 " '$ac_arg'"
1900      if test $ac_must_keep_next = true; then
1901	ac_must_keep_next=false # Got value, back to normal.
1902      else
1903	case $ac_arg in
1904	  *=* | --config-cache | -C | -disable-* | --disable-* \
1905	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907	  | -with-* | --with-* | -without-* | --without-* | --x)
1908	    case "$ac_configure_args0 " in
1909	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1910	    esac
1911	    ;;
1912	  -* ) ac_must_keep_next=true ;;
1913	esac
1914      fi
1915      as_fn_append ac_configure_args " '$ac_arg'"
1916      ;;
1917    esac
1918  done
1919done
1920{ ac_configure_args0=; unset ac_configure_args0;}
1921{ ac_configure_args1=; unset ac_configure_args1;}
1922
1923# When interrupted or exit'd, cleanup temporary files, and complete
1924# config.log.  We remove comments because anyway the quotes in there
1925# would cause problems or look ugly.
1926# WARNING: Use '\'' to represent an apostrophe within the trap.
1927# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928trap 'exit_status=$?
1929  # Save into config.log some information that might help in debugging.
1930  {
1931    echo
1932
1933    $as_echo "## ---------------- ##
1934## Cache variables. ##
1935## ---------------- ##"
1936    echo
1937    # The following way of writing the cache mishandles newlines in values,
1938(
1939  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940    eval ac_val=\$$ac_var
1941    case $ac_val in #(
1942    *${as_nl}*)
1943      case $ac_var in #(
1944      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1946      esac
1947      case $ac_var in #(
1948      _ | IFS | as_nl) ;; #(
1949      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950      *) { eval $ac_var=; unset $ac_var;} ;;
1951      esac ;;
1952    esac
1953  done
1954  (set) 2>&1 |
1955    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956    *${as_nl}ac_space=\ *)
1957      sed -n \
1958	"s/'\''/'\''\\\\'\'''\''/g;
1959	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1960      ;; #(
1961    *)
1962      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1963      ;;
1964    esac |
1965    sort
1966)
1967    echo
1968
1969    $as_echo "## ----------------- ##
1970## Output variables. ##
1971## ----------------- ##"
1972    echo
1973    for ac_var in $ac_subst_vars
1974    do
1975      eval ac_val=\$$ac_var
1976      case $ac_val in
1977      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1978      esac
1979      $as_echo "$ac_var='\''$ac_val'\''"
1980    done | sort
1981    echo
1982
1983    if test -n "$ac_subst_files"; then
1984      $as_echo "## ------------------- ##
1985## File substitutions. ##
1986## ------------------- ##"
1987      echo
1988      for ac_var in $ac_subst_files
1989      do
1990	eval ac_val=\$$ac_var
1991	case $ac_val in
1992	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993	esac
1994	$as_echo "$ac_var='\''$ac_val'\''"
1995      done | sort
1996      echo
1997    fi
1998
1999    if test -s confdefs.h; then
2000      $as_echo "## ----------- ##
2001## confdefs.h. ##
2002## ----------- ##"
2003      echo
2004      cat confdefs.h
2005      echo
2006    fi
2007    test "$ac_signal" != 0 &&
2008      $as_echo "$as_me: caught signal $ac_signal"
2009    $as_echo "$as_me: exit $exit_status"
2010  } >&5
2011  rm -f core *.core core.conftest.* &&
2012    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2013    exit $exit_status
2014' 0
2015for ac_signal in 1 2 13 15; do
2016  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2017done
2018ac_signal=0
2019
2020# confdefs.h avoids OS command line length limits that DEFS can exceed.
2021rm -f -r conftest* confdefs.h
2022
2023$as_echo "/* confdefs.h */" > confdefs.h
2024
2025# Predefined preprocessor variables.
2026
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_NAME "$PACKAGE_NAME"
2029_ACEOF
2030
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2033_ACEOF
2034
2035cat >>confdefs.h <<_ACEOF
2036#define PACKAGE_VERSION "$PACKAGE_VERSION"
2037_ACEOF
2038
2039cat >>confdefs.h <<_ACEOF
2040#define PACKAGE_STRING "$PACKAGE_STRING"
2041_ACEOF
2042
2043cat >>confdefs.h <<_ACEOF
2044#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2045_ACEOF
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_URL "$PACKAGE_URL"
2049_ACEOF
2050
2051
2052# Let the site file select an alternate cache file if it wants to.
2053# Prefer an explicitly selected file to automatically selected ones.
2054ac_site_file1=NONE
2055ac_site_file2=NONE
2056if test -n "$CONFIG_SITE"; then
2057  # We do not want a PATH search for config.site.
2058  case $CONFIG_SITE in #((
2059    -*)  ac_site_file1=./$CONFIG_SITE;;
2060    */*) ac_site_file1=$CONFIG_SITE;;
2061    *)   ac_site_file1=./$CONFIG_SITE;;
2062  esac
2063elif test "x$prefix" != xNONE; then
2064  ac_site_file1=$prefix/share/config.site
2065  ac_site_file2=$prefix/etc/config.site
2066else
2067  ac_site_file1=$ac_default_prefix/share/config.site
2068  ac_site_file2=$ac_default_prefix/etc/config.site
2069fi
2070for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2071do
2072  test "x$ac_site_file" = xNONE && continue
2073  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2074    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076    sed 's/^/| /' "$ac_site_file" >&5
2077    . "$ac_site_file" \
2078      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080as_fn_error $? "failed to load site script $ac_site_file
2081See \`config.log' for more details" "$LINENO" 5; }
2082  fi
2083done
2084
2085if test -r "$cache_file"; then
2086  # Some versions of bash will fail to source /dev/null (special files
2087  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2088  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2089    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2090$as_echo "$as_me: loading cache $cache_file" >&6;}
2091    case $cache_file in
2092      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093      *)                      . "./$cache_file";;
2094    esac
2095  fi
2096else
2097  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2098$as_echo "$as_me: creating cache $cache_file" >&6;}
2099  >$cache_file
2100fi
2101
2102# Check that the precious variables saved in the cache have kept the same
2103# value.
2104ac_cache_corrupted=false
2105for ac_var in $ac_precious_vars; do
2106  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2107  eval ac_new_set=\$ac_env_${ac_var}_set
2108  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2109  eval ac_new_val=\$ac_env_${ac_var}_value
2110  case $ac_old_set,$ac_new_set in
2111    set,)
2112      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2113$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2114      ac_cache_corrupted=: ;;
2115    ,set)
2116      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2117$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2118      ac_cache_corrupted=: ;;
2119    ,);;
2120    *)
2121      if test "x$ac_old_val" != "x$ac_new_val"; then
2122	# differences in whitespace do not lead to failure.
2123	ac_old_val_w=`echo x $ac_old_val`
2124	ac_new_val_w=`echo x $ac_new_val`
2125	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2126	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2127$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2128	  ac_cache_corrupted=:
2129	else
2130	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2131$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2132	  eval $ac_var=\$ac_old_val
2133	fi
2134	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2135$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2136	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2137$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2138      fi;;
2139  esac
2140  # Pass precious variables to config.status.
2141  if test "$ac_new_set" = set; then
2142    case $ac_new_val in
2143    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2144    *) ac_arg=$ac_var=$ac_new_val ;;
2145    esac
2146    case " $ac_configure_args " in
2147      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2148      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2149    esac
2150  fi
2151done
2152if $ac_cache_corrupted; then
2153  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2155  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2156$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2158fi
2159## -------------------- ##
2160## Main body of script. ##
2161## -------------------- ##
2162
2163ac_ext=c
2164ac_cpp='$CPP $CPPFLAGS'
2165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168
2169
2170
2171ac_config_headers="$ac_config_headers config.h"
2172
2173
2174# Initialize Automake
2175am__api_version='1.11'
2176
2177ac_aux_dir=
2178for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2179  if test -f "$ac_dir/install-sh"; then
2180    ac_aux_dir=$ac_dir
2181    ac_install_sh="$ac_aux_dir/install-sh -c"
2182    break
2183  elif test -f "$ac_dir/install.sh"; then
2184    ac_aux_dir=$ac_dir
2185    ac_install_sh="$ac_aux_dir/install.sh -c"
2186    break
2187  elif test -f "$ac_dir/shtool"; then
2188    ac_aux_dir=$ac_dir
2189    ac_install_sh="$ac_aux_dir/shtool install -c"
2190    break
2191  fi
2192done
2193if test -z "$ac_aux_dir"; then
2194  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2195fi
2196
2197# These three variables are undocumented and unsupported,
2198# and are intended to be withdrawn in a future Autoconf release.
2199# They can cause serious problems if a builder's source tree is in a directory
2200# whose full name contains unusual characters.
2201ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2202ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2203ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2204
2205
2206# Find a good install program.  We prefer a C program (faster),
2207# so one script is as good as another.  But avoid the broken or
2208# incompatible versions:
2209# SysV /etc/install, /usr/sbin/install
2210# SunOS /usr/etc/install
2211# IRIX /sbin/install
2212# AIX /bin/install
2213# AmigaOS /C/install, which installs bootblocks on floppy discs
2214# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2215# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2216# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2217# OS/2's system install, which has a completely different semantic
2218# ./install, which can be erroneously created by make from ./install.sh.
2219# Reject install programs that cannot install multiple files.
2220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2221$as_echo_n "checking for a BSD-compatible install... " >&6; }
2222if test -z "$INSTALL"; then
2223if test "${ac_cv_path_install+set}" = set; then :
2224  $as_echo_n "(cached) " >&6
2225else
2226  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227for as_dir in $PATH
2228do
2229  IFS=$as_save_IFS
2230  test -z "$as_dir" && as_dir=.
2231    # Account for people who put trailing slashes in PATH elements.
2232case $as_dir/ in #((
2233  ./ | .// | /[cC]/* | \
2234  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2235  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2236  /usr/ucb/* ) ;;
2237  *)
2238    # OSF1 and SCO ODT 3.0 have their own names for install.
2239    # Don't use installbsd from OSF since it installs stuff as root
2240    # by default.
2241    for ac_prog in ginstall scoinst install; do
2242      for ac_exec_ext in '' $ac_executable_extensions; do
2243	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2244	  if test $ac_prog = install &&
2245	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2246	    # AIX install.  It has an incompatible calling convention.
2247	    :
2248	  elif test $ac_prog = install &&
2249	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2250	    # program-specific install script used by HP pwplus--don't use.
2251	    :
2252	  else
2253	    rm -rf conftest.one conftest.two conftest.dir
2254	    echo one > conftest.one
2255	    echo two > conftest.two
2256	    mkdir conftest.dir
2257	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2258	      test -s conftest.one && test -s conftest.two &&
2259	      test -s conftest.dir/conftest.one &&
2260	      test -s conftest.dir/conftest.two
2261	    then
2262	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2263	      break 3
2264	    fi
2265	  fi
2266	fi
2267      done
2268    done
2269    ;;
2270esac
2271
2272  done
2273IFS=$as_save_IFS
2274
2275rm -rf conftest.one conftest.two conftest.dir
2276
2277fi
2278  if test "${ac_cv_path_install+set}" = set; then
2279    INSTALL=$ac_cv_path_install
2280  else
2281    # As a last resort, use the slow shell script.  Don't cache a
2282    # value for INSTALL within a source directory, because that will
2283    # break other packages using the cache if that directory is
2284    # removed, or if the value is a relative name.
2285    INSTALL=$ac_install_sh
2286  fi
2287fi
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2289$as_echo "$INSTALL" >&6; }
2290
2291# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2292# It thinks the first close brace ends the variable substitution.
2293test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2294
2295test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2296
2297test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2298
2299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2300$as_echo_n "checking whether build environment is sane... " >&6; }
2301# Just in case
2302sleep 1
2303echo timestamp > conftest.file
2304# Reject unsafe characters in $srcdir or the absolute working directory
2305# name.  Accept space and tab only in the latter.
2306am_lf='
2307'
2308case `pwd` in
2309  *[\\\"\#\$\&\'\`$am_lf]*)
2310    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2311esac
2312case $srcdir in
2313  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2314    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2315esac
2316
2317# Do `set' in a subshell so we don't clobber the current shell's
2318# arguments.  Must try -L first in case configure is actually a
2319# symlink; some systems play weird games with the mod time of symlinks
2320# (eg FreeBSD returns the mod time of the symlink's containing
2321# directory).
2322if (
2323   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2324   if test "$*" = "X"; then
2325      # -L didn't work.
2326      set X `ls -t "$srcdir/configure" conftest.file`
2327   fi
2328   rm -f conftest.file
2329   if test "$*" != "X $srcdir/configure conftest.file" \
2330      && test "$*" != "X conftest.file $srcdir/configure"; then
2331
2332      # If neither matched, then we have a broken ls.  This can happen
2333      # if, for instance, CONFIG_SHELL is bash and it inherits a
2334      # broken ls alias from the environment.  This has actually
2335      # happened.  Such a system could not be considered "sane".
2336      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2337alias in your environment" "$LINENO" 5
2338   fi
2339
2340   test "$2" = conftest.file
2341   )
2342then
2343   # Ok.
2344   :
2345else
2346   as_fn_error $? "newly created file is older than distributed files!
2347Check your system clock" "$LINENO" 5
2348fi
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2350$as_echo "yes" >&6; }
2351test "$program_prefix" != NONE &&
2352  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2353# Use a double $ so make ignores it.
2354test "$program_suffix" != NONE &&
2355  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2356# Double any \ or $.
2357# By default was `s,x,x', remove it if useless.
2358ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2359program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2360
2361# expand $ac_aux_dir to an absolute path
2362am_aux_dir=`cd $ac_aux_dir && pwd`
2363
2364if test x"${MISSING+set}" != xset; then
2365  case $am_aux_dir in
2366  *\ * | *\	*)
2367    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2368  *)
2369    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2370  esac
2371fi
2372# Use eval to expand $SHELL
2373if eval "$MISSING --run true"; then
2374  am_missing_run="$MISSING --run "
2375else
2376  am_missing_run=
2377  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2378$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2379fi
2380
2381if test x"${install_sh}" != xset; then
2382  case $am_aux_dir in
2383  *\ * | *\	*)
2384    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2385  *)
2386    install_sh="\${SHELL} $am_aux_dir/install-sh"
2387  esac
2388fi
2389
2390# Installed binaries are usually stripped using `strip' when the user
2391# run `make install-strip'.  However `strip' might not be the right
2392# tool to use in cross-compilation environments, therefore Automake
2393# will honor the `STRIP' environment variable to overrule this program.
2394if test "$cross_compiling" != no; then
2395  if test -n "$ac_tool_prefix"; then
2396  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2397set dummy ${ac_tool_prefix}strip; ac_word=$2
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399$as_echo_n "checking for $ac_word... " >&6; }
2400if test "${ac_cv_prog_STRIP+set}" = set; then :
2401  $as_echo_n "(cached) " >&6
2402else
2403  if test -n "$STRIP"; then
2404  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2405else
2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409  IFS=$as_save_IFS
2410  test -z "$as_dir" && as_dir=.
2411    for ac_exec_ext in '' $ac_executable_extensions; do
2412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2415    break 2
2416  fi
2417done
2418  done
2419IFS=$as_save_IFS
2420
2421fi
2422fi
2423STRIP=$ac_cv_prog_STRIP
2424if test -n "$STRIP"; then
2425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2426$as_echo "$STRIP" >&6; }
2427else
2428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429$as_echo "no" >&6; }
2430fi
2431
2432
2433fi
2434if test -z "$ac_cv_prog_STRIP"; then
2435  ac_ct_STRIP=$STRIP
2436  # Extract the first word of "strip", so it can be a program name with args.
2437set dummy strip; ac_word=$2
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439$as_echo_n "checking for $ac_word... " >&6; }
2440if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2441  $as_echo_n "(cached) " >&6
2442else
2443  if test -n "$ac_ct_STRIP"; then
2444  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2445else
2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447for as_dir in $PATH
2448do
2449  IFS=$as_save_IFS
2450  test -z "$as_dir" && as_dir=.
2451    for ac_exec_ext in '' $ac_executable_extensions; do
2452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453    ac_cv_prog_ac_ct_STRIP="strip"
2454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2455    break 2
2456  fi
2457done
2458  done
2459IFS=$as_save_IFS
2460
2461fi
2462fi
2463ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2464if test -n "$ac_ct_STRIP"; then
2465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2466$as_echo "$ac_ct_STRIP" >&6; }
2467else
2468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469$as_echo "no" >&6; }
2470fi
2471
2472  if test "x$ac_ct_STRIP" = x; then
2473    STRIP=":"
2474  else
2475    case $cross_compiling:$ac_tool_warned in
2476yes:)
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2479ac_tool_warned=yes ;;
2480esac
2481    STRIP=$ac_ct_STRIP
2482  fi
2483else
2484  STRIP="$ac_cv_prog_STRIP"
2485fi
2486
2487fi
2488INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2489
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2491$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2492if test -z "$MKDIR_P"; then
2493  if test "${ac_cv_path_mkdir+set}" = set; then :
2494  $as_echo_n "(cached) " >&6
2495else
2496  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2498do
2499  IFS=$as_save_IFS
2500  test -z "$as_dir" && as_dir=.
2501    for ac_prog in mkdir gmkdir; do
2502	 for ac_exec_ext in '' $ac_executable_extensions; do
2503	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2504	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2505	     'mkdir (GNU coreutils) '* | \
2506	     'mkdir (coreutils) '* | \
2507	     'mkdir (fileutils) '4.1*)
2508	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2509	       break 3;;
2510	   esac
2511	 done
2512       done
2513  done
2514IFS=$as_save_IFS
2515
2516fi
2517
2518  test -d ./--version && rmdir ./--version
2519  if test "${ac_cv_path_mkdir+set}" = set; then
2520    MKDIR_P="$ac_cv_path_mkdir -p"
2521  else
2522    # As a last resort, use the slow shell script.  Don't cache a
2523    # value for MKDIR_P within a source directory, because that will
2524    # break other packages using the cache if that directory is
2525    # removed, or if the value is a relative name.
2526    MKDIR_P="$ac_install_sh -d"
2527  fi
2528fi
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2530$as_echo "$MKDIR_P" >&6; }
2531
2532mkdir_p="$MKDIR_P"
2533case $mkdir_p in
2534  [\\/$]* | ?:[\\/]*) ;;
2535  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2536esac
2537
2538for ac_prog in gawk mawk nawk awk
2539do
2540  # Extract the first word of "$ac_prog", so it can be a program name with args.
2541set dummy $ac_prog; ac_word=$2
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543$as_echo_n "checking for $ac_word... " >&6; }
2544if test "${ac_cv_prog_AWK+set}" = set; then :
2545  $as_echo_n "(cached) " >&6
2546else
2547  if test -n "$AWK"; then
2548  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2549else
2550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551for as_dir in $PATH
2552do
2553  IFS=$as_save_IFS
2554  test -z "$as_dir" && as_dir=.
2555    for ac_exec_ext in '' $ac_executable_extensions; do
2556  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557    ac_cv_prog_AWK="$ac_prog"
2558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559    break 2
2560  fi
2561done
2562  done
2563IFS=$as_save_IFS
2564
2565fi
2566fi
2567AWK=$ac_cv_prog_AWK
2568if test -n "$AWK"; then
2569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2570$as_echo "$AWK" >&6; }
2571else
2572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573$as_echo "no" >&6; }
2574fi
2575
2576
2577  test -n "$AWK" && break
2578done
2579
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2581$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2582set x ${MAKE-make}
2583ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2584if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2585  $as_echo_n "(cached) " >&6
2586else
2587  cat >conftest.make <<\_ACEOF
2588SHELL = /bin/sh
2589all:
2590	@echo '@@@%%%=$(MAKE)=@@@%%%'
2591_ACEOF
2592# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2593case `${MAKE-make} -f conftest.make 2>/dev/null` in
2594  *@@@%%%=?*=@@@%%%*)
2595    eval ac_cv_prog_make_${ac_make}_set=yes;;
2596  *)
2597    eval ac_cv_prog_make_${ac_make}_set=no;;
2598esac
2599rm -f conftest.make
2600fi
2601if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603$as_echo "yes" >&6; }
2604  SET_MAKE=
2605else
2606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607$as_echo "no" >&6; }
2608  SET_MAKE="MAKE=${MAKE-make}"
2609fi
2610
2611rm -rf .tst 2>/dev/null
2612mkdir .tst 2>/dev/null
2613if test -d .tst; then
2614  am__leading_dot=.
2615else
2616  am__leading_dot=_
2617fi
2618rmdir .tst 2>/dev/null
2619
2620if test "`cd $srcdir && pwd`" != "`pwd`"; then
2621  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2622  # is not polluted with repeated "-I."
2623  am__isrc=' -I$(srcdir)'
2624  # test to see if srcdir already configured
2625  if test -f $srcdir/config.status; then
2626    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2627  fi
2628fi
2629
2630# test whether we have cygpath
2631if test -z "$CYGPATH_W"; then
2632  if (cygpath --version) >/dev/null 2>/dev/null; then
2633    CYGPATH_W='cygpath -w'
2634  else
2635    CYGPATH_W=echo
2636  fi
2637fi
2638
2639
2640# Define the identity of the package.
2641 PACKAGE='libXfixes'
2642 VERSION='5.0'
2643
2644
2645cat >>confdefs.h <<_ACEOF
2646#define PACKAGE "$PACKAGE"
2647_ACEOF
2648
2649
2650cat >>confdefs.h <<_ACEOF
2651#define VERSION "$VERSION"
2652_ACEOF
2653
2654# Some tools Automake needs.
2655
2656ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2657
2658
2659AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2660
2661
2662AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2663
2664
2665AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2666
2667
2668MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2669
2670# We need awk for the "check" target.  The system "awk" is bad on
2671# some platforms.
2672# Always define AMTAR for backward compatibility.
2673
2674AMTAR=${AMTAR-"${am_missing_run}tar"}
2675
2676am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2677
2678
2679
2680
2681
2682
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2684$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2685    # Check whether --enable-maintainer-mode was given.
2686if test "${enable_maintainer_mode+set}" = set; then :
2687  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2688else
2689  USE_MAINTAINER_MODE=no
2690fi
2691
2692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2693$as_echo "$USE_MAINTAINER_MODE" >&6; }
2694   if test $USE_MAINTAINER_MODE = yes; then
2695  MAINTAINER_MODE_TRUE=
2696  MAINTAINER_MODE_FALSE='#'
2697else
2698  MAINTAINER_MODE_TRUE='#'
2699  MAINTAINER_MODE_FALSE=
2700fi
2701
2702  MAINT=$MAINTAINER_MODE_TRUE
2703
2704
2705
2706# Initialize libtool
2707case `pwd` in
2708  *\ * | *\	*)
2709    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2710$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2711esac
2712
2713
2714
2715macro_version='2.2.10'
2716macro_revision='1.3175'
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730ltmain="$ac_aux_dir/ltmain.sh"
2731
2732# Make sure we can run config.sub.
2733$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2734  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2735
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2737$as_echo_n "checking build system type... " >&6; }
2738if test "${ac_cv_build+set}" = set; then :
2739  $as_echo_n "(cached) " >&6
2740else
2741  ac_build_alias=$build_alias
2742test "x$ac_build_alias" = x &&
2743  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2744test "x$ac_build_alias" = x &&
2745  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2746ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2747  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2748
2749fi
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2751$as_echo "$ac_cv_build" >&6; }
2752case $ac_cv_build in
2753*-*-*) ;;
2754*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2755esac
2756build=$ac_cv_build
2757ac_save_IFS=$IFS; IFS='-'
2758set x $ac_cv_build
2759shift
2760build_cpu=$1
2761build_vendor=$2
2762shift; shift
2763# Remember, the first character of IFS is used to create $*,
2764# except with old shells:
2765build_os=$*
2766IFS=$ac_save_IFS
2767case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2768
2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2771$as_echo_n "checking host system type... " >&6; }
2772if test "${ac_cv_host+set}" = set; then :
2773  $as_echo_n "(cached) " >&6
2774else
2775  if test "x$host_alias" = x; then
2776  ac_cv_host=$ac_cv_build
2777else
2778  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2779    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2780fi
2781
2782fi
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2784$as_echo "$ac_cv_host" >&6; }
2785case $ac_cv_host in
2786*-*-*) ;;
2787*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2788esac
2789host=$ac_cv_host
2790ac_save_IFS=$IFS; IFS='-'
2791set x $ac_cv_host
2792shift
2793host_cpu=$1
2794host_vendor=$2
2795shift; shift
2796# Remember, the first character of IFS is used to create $*,
2797# except with old shells:
2798host_os=$*
2799IFS=$ac_save_IFS
2800case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2801
2802
2803# Backslashify metacharacters that are still active within
2804# double-quoted strings.
2805sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2806
2807# Same as above, but do not quote variable references.
2808double_quote_subst='s/\(["`\\]\)/\\\1/g'
2809
2810# Sed substitution to delay expansion of an escaped shell variable in a
2811# double_quote_subst'ed string.
2812delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2813
2814# Sed substitution to delay expansion of an escaped single quote.
2815delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2816
2817# Sed substitution to avoid accidental globbing in evaled expressions
2818no_glob_subst='s/\*/\\\*/g'
2819
2820ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2821ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2822ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2823
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2825$as_echo_n "checking how to print strings... " >&6; }
2826# Test print first, because it will be a builtin if present.
2827if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2828   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2829  ECHO='print -r --'
2830elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2831  ECHO='printf %s\n'
2832else
2833  # Use this function as a fallback that always works.
2834  func_fallback_echo ()
2835  {
2836    eval 'cat <<_LTECHO_EOF
2837$1
2838_LTECHO_EOF'
2839  }
2840  ECHO='func_fallback_echo'
2841fi
2842
2843# func_echo_all arg...
2844# Invoke $ECHO with all args, space-separated.
2845func_echo_all ()
2846{
2847    $ECHO ""
2848}
2849
2850case "$ECHO" in
2851  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2852$as_echo "printf" >&6; } ;;
2853  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2854$as_echo "print -r" >&6; } ;;
2855  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2856$as_echo "cat" >&6; } ;;
2857esac
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872DEPDIR="${am__leading_dot}deps"
2873
2874ac_config_commands="$ac_config_commands depfiles"
2875
2876
2877am_make=${MAKE-make}
2878cat > confinc << 'END'
2879am__doit:
2880	@echo this is the am__doit target
2881.PHONY: am__doit
2882END
2883# If we don't find an include directive, just comment out the code.
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2885$as_echo_n "checking for style of include used by $am_make... " >&6; }
2886am__include="#"
2887am__quote=
2888_am_result=none
2889# First try GNU make style include.
2890echo "include confinc" > confmf
2891# Ignore all kinds of additional output from `make'.
2892case `$am_make -s -f confmf 2> /dev/null` in #(
2893*the\ am__doit\ target*)
2894  am__include=include
2895  am__quote=
2896  _am_result=GNU
2897  ;;
2898esac
2899# Now try BSD make style include.
2900if test "$am__include" = "#"; then
2901   echo '.include "confinc"' > confmf
2902   case `$am_make -s -f confmf 2> /dev/null` in #(
2903   *the\ am__doit\ target*)
2904     am__include=.include
2905     am__quote="\""
2906     _am_result=BSD
2907     ;;
2908   esac
2909fi
2910
2911
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2913$as_echo "$_am_result" >&6; }
2914rm -f confinc confmf
2915
2916# Check whether --enable-dependency-tracking was given.
2917if test "${enable_dependency_tracking+set}" = set; then :
2918  enableval=$enable_dependency_tracking;
2919fi
2920
2921if test "x$enable_dependency_tracking" != xno; then
2922  am_depcomp="$ac_aux_dir/depcomp"
2923  AMDEPBACKSLASH='\'
2924fi
2925 if test "x$enable_dependency_tracking" != xno; then
2926  AMDEP_TRUE=
2927  AMDEP_FALSE='#'
2928else
2929  AMDEP_TRUE='#'
2930  AMDEP_FALSE=
2931fi
2932
2933
2934ac_ext=c
2935ac_cpp='$CPP $CPPFLAGS'
2936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939if test -n "$ac_tool_prefix"; then
2940  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941set dummy ${ac_tool_prefix}gcc; ac_word=$2
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943$as_echo_n "checking for $ac_word... " >&6; }
2944if test "${ac_cv_prog_CC+set}" = set; then :
2945  $as_echo_n "(cached) " >&6
2946else
2947  if test -n "$CC"; then
2948  ac_cv_prog_CC="$CC" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962  done
2963IFS=$as_save_IFS
2964
2965fi
2966fi
2967CC=$ac_cv_prog_CC
2968if test -n "$CC"; then
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970$as_echo "$CC" >&6; }
2971else
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974fi
2975
2976
2977fi
2978if test -z "$ac_cv_prog_CC"; then
2979  ac_ct_CC=$CC
2980  # Extract the first word of "gcc", so it can be a program name with args.
2981set dummy gcc; ac_word=$2
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983$as_echo_n "checking for $ac_word... " >&6; }
2984if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2985  $as_echo_n "(cached) " >&6
2986else
2987  if test -n "$ac_ct_CC"; then
2988  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989else
2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991for as_dir in $PATH
2992do
2993  IFS=$as_save_IFS
2994  test -z "$as_dir" && as_dir=.
2995    for ac_exec_ext in '' $ac_executable_extensions; do
2996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997    ac_cv_prog_ac_ct_CC="gcc"
2998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999    break 2
3000  fi
3001done
3002  done
3003IFS=$as_save_IFS
3004
3005fi
3006fi
3007ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008if test -n "$ac_ct_CC"; then
3009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010$as_echo "$ac_ct_CC" >&6; }
3011else
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013$as_echo "no" >&6; }
3014fi
3015
3016  if test "x$ac_ct_CC" = x; then
3017    CC=""
3018  else
3019    case $cross_compiling:$ac_tool_warned in
3020yes:)
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3023ac_tool_warned=yes ;;
3024esac
3025    CC=$ac_ct_CC
3026  fi
3027else
3028  CC="$ac_cv_prog_CC"
3029fi
3030
3031if test -z "$CC"; then
3032          if test -n "$ac_tool_prefix"; then
3033    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3034set dummy ${ac_tool_prefix}cc; ac_word=$2
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036$as_echo_n "checking for $ac_word... " >&6; }
3037if test "${ac_cv_prog_CC+set}" = set; then :
3038  $as_echo_n "(cached) " >&6
3039else
3040  if test -n "$CC"; then
3041  ac_cv_prog_CC="$CC" # Let the user override the test.
3042else
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046  IFS=$as_save_IFS
3047  test -z "$as_dir" && as_dir=.
3048    for ac_exec_ext in '' $ac_executable_extensions; do
3049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050    ac_cv_prog_CC="${ac_tool_prefix}cc"
3051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052    break 2
3053  fi
3054done
3055  done
3056IFS=$as_save_IFS
3057
3058fi
3059fi
3060CC=$ac_cv_prog_CC
3061if test -n "$CC"; then
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063$as_echo "$CC" >&6; }
3064else
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066$as_echo "no" >&6; }
3067fi
3068
3069
3070  fi
3071fi
3072if test -z "$CC"; then
3073  # Extract the first word of "cc", so it can be a program name with args.
3074set dummy cc; ac_word=$2
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076$as_echo_n "checking for $ac_word... " >&6; }
3077if test "${ac_cv_prog_CC+set}" = set; then :
3078  $as_echo_n "(cached) " >&6
3079else
3080  if test -n "$CC"; then
3081  ac_cv_prog_CC="$CC" # Let the user override the test.
3082else
3083  ac_prog_rejected=no
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087  IFS=$as_save_IFS
3088  test -z "$as_dir" && as_dir=.
3089    for ac_exec_ext in '' $ac_executable_extensions; do
3090  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3092       ac_prog_rejected=yes
3093       continue
3094     fi
3095    ac_cv_prog_CC="cc"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099done
3100  done
3101IFS=$as_save_IFS
3102
3103if test $ac_prog_rejected = yes; then
3104  # We found a bogon in the path, so make sure we never use it.
3105  set dummy $ac_cv_prog_CC
3106  shift
3107  if test $# != 0; then
3108    # We chose a different compiler from the bogus one.
3109    # However, it has the same basename, so the bogon will be chosen
3110    # first if we set CC to just the basename; use the full file name.
3111    shift
3112    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3113  fi
3114fi
3115fi
3116fi
3117CC=$ac_cv_prog_CC
3118if test -n "$CC"; then
3119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120$as_echo "$CC" >&6; }
3121else
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123$as_echo "no" >&6; }
3124fi
3125
3126
3127fi
3128if test -z "$CC"; then
3129  if test -n "$ac_tool_prefix"; then
3130  for ac_prog in cl.exe
3131  do
3132    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3133set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135$as_echo_n "checking for $ac_word... " >&6; }
3136if test "${ac_cv_prog_CC+set}" = set; then :
3137  $as_echo_n "(cached) " >&6
3138else
3139  if test -n "$CC"; then
3140  ac_cv_prog_CC="$CC" # Let the user override the test.
3141else
3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143for as_dir in $PATH
3144do
3145  IFS=$as_save_IFS
3146  test -z "$as_dir" && as_dir=.
3147    for ac_exec_ext in '' $ac_executable_extensions; do
3148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151    break 2
3152  fi
3153done
3154  done
3155IFS=$as_save_IFS
3156
3157fi
3158fi
3159CC=$ac_cv_prog_CC
3160if test -n "$CC"; then
3161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162$as_echo "$CC" >&6; }
3163else
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165$as_echo "no" >&6; }
3166fi
3167
3168
3169    test -n "$CC" && break
3170  done
3171fi
3172if test -z "$CC"; then
3173  ac_ct_CC=$CC
3174  for ac_prog in cl.exe
3175do
3176  # Extract the first word of "$ac_prog", so it can be a program name with args.
3177set dummy $ac_prog; ac_word=$2
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179$as_echo_n "checking for $ac_word... " >&6; }
3180if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3181  $as_echo_n "(cached) " >&6
3182else
3183  if test -n "$ac_ct_CC"; then
3184  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3185else
3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH
3188do
3189  IFS=$as_save_IFS
3190  test -z "$as_dir" && as_dir=.
3191    for ac_exec_ext in '' $ac_executable_extensions; do
3192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193    ac_cv_prog_ac_ct_CC="$ac_prog"
3194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195    break 2
3196  fi
3197done
3198  done
3199IFS=$as_save_IFS
3200
3201fi
3202fi
3203ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204if test -n "$ac_ct_CC"; then
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3206$as_echo "$ac_ct_CC" >&6; }
3207else
3208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210fi
3211
3212
3213  test -n "$ac_ct_CC" && break
3214done
3215
3216  if test "x$ac_ct_CC" = x; then
3217    CC=""
3218  else
3219    case $cross_compiling:$ac_tool_warned in
3220yes:)
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223ac_tool_warned=yes ;;
3224esac
3225    CC=$ac_ct_CC
3226  fi
3227fi
3228
3229fi
3230
3231
3232test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234as_fn_error $? "no acceptable C compiler found in \$PATH
3235See \`config.log' for more details" "$LINENO" 5; }
3236
3237# Provide some information about the compiler.
3238$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3239set X $ac_compile
3240ac_compiler=$2
3241for ac_option in --version -v -V -qversion; do
3242  { { ac_try="$ac_compiler $ac_option >&5"
3243case "(($ac_try" in
3244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245  *) ac_try_echo=$ac_try;;
3246esac
3247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248$as_echo "$ac_try_echo"; } >&5
3249  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3250  ac_status=$?
3251  if test -s conftest.err; then
3252    sed '10a\
3253... rest of stderr output deleted ...
3254         10q' conftest.err >conftest.er1
3255    cat conftest.er1 >&5
3256  fi
3257  rm -f conftest.er1 conftest.err
3258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259  test $ac_status = 0; }
3260done
3261
3262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263/* end confdefs.h.  */
3264
3265int
3266main ()
3267{
3268
3269  ;
3270  return 0;
3271}
3272_ACEOF
3273ac_clean_files_save=$ac_clean_files
3274ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3275# Try to create an executable without -o first, disregard a.out.
3276# It will help us diagnose broken compilers, and finding out an intuition
3277# of exeext.
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3279$as_echo_n "checking whether the C compiler works... " >&6; }
3280ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3281
3282# The possible output files:
3283ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3284
3285ac_rmfiles=
3286for ac_file in $ac_files
3287do
3288  case $ac_file in
3289    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3290    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3291  esac
3292done
3293rm -f $ac_rmfiles
3294
3295if { { ac_try="$ac_link_default"
3296case "(($ac_try" in
3297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298  *) ac_try_echo=$ac_try;;
3299esac
3300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301$as_echo "$ac_try_echo"; } >&5
3302  (eval "$ac_link_default") 2>&5
3303  ac_status=$?
3304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305  test $ac_status = 0; }; then :
3306  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3307# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3308# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3309# so that the user can short-circuit this test for compilers unknown to
3310# Autoconf.
3311for ac_file in $ac_files ''
3312do
3313  test -f "$ac_file" || continue
3314  case $ac_file in
3315    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3316	;;
3317    [ab].out )
3318	# We found the default executable, but exeext='' is most
3319	# certainly right.
3320	break;;
3321    *.* )
3322	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3323	then :; else
3324	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3325	fi
3326	# We set ac_cv_exeext here because the later test for it is not
3327	# safe: cross compilers may not add the suffix if given an `-o'
3328	# argument, so we may need to know it at that point already.
3329	# Even if this section looks crufty: it has the advantage of
3330	# actually working.
3331	break;;
3332    * )
3333	break;;
3334  esac
3335done
3336test "$ac_cv_exeext" = no && ac_cv_exeext=
3337
3338else
3339  ac_file=''
3340fi
3341if test -z "$ac_file"; then :
3342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343$as_echo "no" >&6; }
3344$as_echo "$as_me: failed program was:" >&5
3345sed 's/^/| /' conftest.$ac_ext >&5
3346
3347{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349as_fn_error 77 "C compiler cannot create executables
3350See \`config.log' for more details" "$LINENO" 5; }
3351else
3352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353$as_echo "yes" >&6; }
3354fi
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3356$as_echo_n "checking for C compiler default output file name... " >&6; }
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3358$as_echo "$ac_file" >&6; }
3359ac_exeext=$ac_cv_exeext
3360
3361rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3362ac_clean_files=$ac_clean_files_save
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3364$as_echo_n "checking for suffix of executables... " >&6; }
3365if { { ac_try="$ac_link"
3366case "(($ac_try" in
3367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368  *) ac_try_echo=$ac_try;;
3369esac
3370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371$as_echo "$ac_try_echo"; } >&5
3372  (eval "$ac_link") 2>&5
3373  ac_status=$?
3374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375  test $ac_status = 0; }; then :
3376  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3377# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3378# work properly (i.e., refer to `conftest.exe'), while it won't with
3379# `rm'.
3380for ac_file in conftest.exe conftest conftest.*; do
3381  test -f "$ac_file" || continue
3382  case $ac_file in
3383    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3384    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385	  break;;
3386    * ) break;;
3387  esac
3388done
3389else
3390  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3393See \`config.log' for more details" "$LINENO" 5; }
3394fi
3395rm -f conftest conftest$ac_cv_exeext
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3397$as_echo "$ac_cv_exeext" >&6; }
3398
3399rm -f conftest.$ac_ext
3400EXEEXT=$ac_cv_exeext
3401ac_exeext=$EXEEXT
3402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h.  */
3404#include <stdio.h>
3405int
3406main ()
3407{
3408FILE *f = fopen ("conftest.out", "w");
3409 return ferror (f) || fclose (f) != 0;
3410
3411  ;
3412  return 0;
3413}
3414_ACEOF
3415ac_clean_files="$ac_clean_files conftest.out"
3416# Check that the compiler produces executables we can run.  If not, either
3417# the compiler is broken, or we cross compile.
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3419$as_echo_n "checking whether we are cross compiling... " >&6; }
3420if test "$cross_compiling" != yes; then
3421  { { ac_try="$ac_link"
3422case "(($ac_try" in
3423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424  *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427$as_echo "$ac_try_echo"; } >&5
3428  (eval "$ac_link") 2>&5
3429  ac_status=$?
3430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431  test $ac_status = 0; }
3432  if { ac_try='./conftest$ac_cv_exeext'
3433  { { case "(($ac_try" in
3434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435  *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
3439  (eval "$ac_try") 2>&5
3440  ac_status=$?
3441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442  test $ac_status = 0; }; }; then
3443    cross_compiling=no
3444  else
3445    if test "$cross_compiling" = maybe; then
3446	cross_compiling=yes
3447    else
3448	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450as_fn_error $? "cannot run C compiled programs.
3451If you meant to cross compile, use \`--host'.
3452See \`config.log' for more details" "$LINENO" 5; }
3453    fi
3454  fi
3455fi
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3457$as_echo "$cross_compiling" >&6; }
3458
3459rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3460ac_clean_files=$ac_clean_files_save
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3462$as_echo_n "checking for suffix of object files... " >&6; }
3463if test "${ac_cv_objext+set}" = set; then :
3464  $as_echo_n "(cached) " >&6
3465else
3466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h.  */
3468
3469int
3470main ()
3471{
3472
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477rm -f conftest.o conftest.obj
3478if { { ac_try="$ac_compile"
3479case "(($ac_try" in
3480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481  *) ac_try_echo=$ac_try;;
3482esac
3483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484$as_echo "$ac_try_echo"; } >&5
3485  (eval "$ac_compile") 2>&5
3486  ac_status=$?
3487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488  test $ac_status = 0; }; then :
3489  for ac_file in conftest.o conftest.obj conftest.*; do
3490  test -f "$ac_file" || continue;
3491  case $ac_file in
3492    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494       break;;
3495  esac
3496done
3497else
3498  $as_echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503as_fn_error $? "cannot compute suffix of object files: cannot compile
3504See \`config.log' for more details" "$LINENO" 5; }
3505fi
3506rm -f conftest.$ac_cv_objext conftest.$ac_ext
3507fi
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3509$as_echo "$ac_cv_objext" >&6; }
3510OBJEXT=$ac_cv_objext
3511ac_objext=$OBJEXT
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3513$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3514if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3515  $as_echo_n "(cached) " >&6
3516else
3517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h.  */
3519
3520int
3521main ()
3522{
3523#ifndef __GNUC__
3524       choke me
3525#endif
3526
3527  ;
3528  return 0;
3529}
3530_ACEOF
3531if ac_fn_c_try_compile "$LINENO"; then :
3532  ac_compiler_gnu=yes
3533else
3534  ac_compiler_gnu=no
3535fi
3536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537ac_cv_c_compiler_gnu=$ac_compiler_gnu
3538
3539fi
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3541$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3542if test $ac_compiler_gnu = yes; then
3543  GCC=yes
3544else
3545  GCC=
3546fi
3547ac_test_CFLAGS=${CFLAGS+set}
3548ac_save_CFLAGS=$CFLAGS
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3550$as_echo_n "checking whether $CC accepts -g... " >&6; }
3551if test "${ac_cv_prog_cc_g+set}" = set; then :
3552  $as_echo_n "(cached) " >&6
3553else
3554  ac_save_c_werror_flag=$ac_c_werror_flag
3555   ac_c_werror_flag=yes
3556   ac_cv_prog_cc_g=no
3557   CFLAGS="-g"
3558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h.  */
3560
3561int
3562main ()
3563{
3564
3565  ;
3566  return 0;
3567}
3568_ACEOF
3569if ac_fn_c_try_compile "$LINENO"; then :
3570  ac_cv_prog_cc_g=yes
3571else
3572  CFLAGS=""
3573      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575
3576int
3577main ()
3578{
3579
3580  ;
3581  return 0;
3582}
3583_ACEOF
3584if ac_fn_c_try_compile "$LINENO"; then :
3585
3586else
3587  ac_c_werror_flag=$ac_save_c_werror_flag
3588	 CFLAGS="-g"
3589	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h.  */
3591
3592int
3593main ()
3594{
3595
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600if ac_fn_c_try_compile "$LINENO"; then :
3601  ac_cv_prog_cc_g=yes
3602fi
3603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604fi
3605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606fi
3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608   ac_c_werror_flag=$ac_save_c_werror_flag
3609fi
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3611$as_echo "$ac_cv_prog_cc_g" >&6; }
3612if test "$ac_test_CFLAGS" = set; then
3613  CFLAGS=$ac_save_CFLAGS
3614elif test $ac_cv_prog_cc_g = yes; then
3615  if test "$GCC" = yes; then
3616    CFLAGS="-g -O2"
3617  else
3618    CFLAGS="-g"
3619  fi
3620else
3621  if test "$GCC" = yes; then
3622    CFLAGS="-O2"
3623  else
3624    CFLAGS=
3625  fi
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3628$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629if test "${ac_cv_prog_cc_c89+set}" = set; then :
3630  $as_echo_n "(cached) " >&6
3631else
3632  ac_cv_prog_cc_c89=no
3633ac_save_CC=$CC
3634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h.  */
3636#include <stdarg.h>
3637#include <stdio.h>
3638#include <sys/types.h>
3639#include <sys/stat.h>
3640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3641struct buf { int x; };
3642FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643static char *e (p, i)
3644     char **p;
3645     int i;
3646{
3647  return p[i];
3648}
3649static char *f (char * (*g) (char **, int), char **p, ...)
3650{
3651  char *s;
3652  va_list v;
3653  va_start (v,p);
3654  s = g (p, va_arg (v,int));
3655  va_end (v);
3656  return s;
3657}
3658
3659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3660   function prototypes and stuff, but not '\xHH' hex character constants.
3661   These don't provoke an error unfortunately, instead are silently treated
3662   as 'x'.  The following induces an error, until -std is added to get
3663   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3664   array size at least.  It's necessary to write '\x00'==0 to get something
3665   that's true only with -std.  */
3666int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667
3668/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3669   inside strings and character constants.  */
3670#define FOO(x) 'x'
3671int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3672
3673int test (int i, double x);
3674struct s1 {int (*f) (int a);};
3675struct s2 {int (*f) (double a);};
3676int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3677int argc;
3678char **argv;
3679int
3680main ()
3681{
3682return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3688	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689do
3690  CC="$ac_save_CC $ac_arg"
3691  if ac_fn_c_try_compile "$LINENO"; then :
3692  ac_cv_prog_cc_c89=$ac_arg
3693fi
3694rm -f core conftest.err conftest.$ac_objext
3695  test "x$ac_cv_prog_cc_c89" != "xno" && break
3696done
3697rm -f conftest.$ac_ext
3698CC=$ac_save_CC
3699
3700fi
3701# AC_CACHE_VAL
3702case "x$ac_cv_prog_cc_c89" in
3703  x)
3704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3705$as_echo "none needed" >&6; } ;;
3706  xno)
3707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708$as_echo "unsupported" >&6; } ;;
3709  *)
3710    CC="$CC $ac_cv_prog_cc_c89"
3711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3712$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3713esac
3714if test "x$ac_cv_prog_cc_c89" != xno; then :
3715
3716fi
3717
3718ac_ext=c
3719ac_cpp='$CPP $CPPFLAGS'
3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724depcc="$CC"   am_compiler_list=
3725
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3727$as_echo_n "checking dependency style of $depcc... " >&6; }
3728if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3729  $as_echo_n "(cached) " >&6
3730else
3731  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3732  # We make a subdir and do the tests there.  Otherwise we can end up
3733  # making bogus files that we don't know about and never remove.  For
3734  # instance it was reported that on HP-UX the gcc test will end up
3735  # making a dummy file named `D' -- because `-MD' means `put the output
3736  # in D'.
3737  mkdir conftest.dir
3738  # Copy depcomp to subdir because otherwise we won't find it if we're
3739  # using a relative directory.
3740  cp "$am_depcomp" conftest.dir
3741  cd conftest.dir
3742  # We will build objects and dependencies in a subdirectory because
3743  # it helps to detect inapplicable dependency modes.  For instance
3744  # both Tru64's cc and ICC support -MD to output dependencies as a
3745  # side effect of compilation, but ICC will put the dependencies in
3746  # the current directory while Tru64 will put them in the object
3747  # directory.
3748  mkdir sub
3749
3750  am_cv_CC_dependencies_compiler_type=none
3751  if test "$am_compiler_list" = ""; then
3752     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3753  fi
3754  am__universal=false
3755  case " $depcc " in #(
3756     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3757     esac
3758
3759  for depmode in $am_compiler_list; do
3760    # Setup a source with many dependencies, because some compilers
3761    # like to wrap large dependency lists on column 80 (with \), and
3762    # we should not choose a depcomp mode which is confused by this.
3763    #
3764    # We need to recreate these files for each test, as the compiler may
3765    # overwrite some of them when testing with obscure command lines.
3766    # This happens at least with the AIX C compiler.
3767    : > sub/conftest.c
3768    for i in 1 2 3 4 5 6; do
3769      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3770      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3771      # Solaris 8's {/usr,}/bin/sh.
3772      touch sub/conftst$i.h
3773    done
3774    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3775
3776    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3777    # mode.  It turns out that the SunPro C++ compiler does not properly
3778    # handle `-M -o', and we need to detect this.  Also, some Intel
3779    # versions had trouble with output in subdirs
3780    am__obj=sub/conftest.${OBJEXT-o}
3781    am__minus_obj="-o $am__obj"
3782    case $depmode in
3783    gcc)
3784      # This depmode causes a compiler race in universal mode.
3785      test "$am__universal" = false || continue
3786      ;;
3787    nosideeffect)
3788      # after this tag, mechanisms are not by side-effect, so they'll
3789      # only be used when explicitly requested
3790      if test "x$enable_dependency_tracking" = xyes; then
3791	continue
3792      else
3793	break
3794      fi
3795      ;;
3796    msvisualcpp | msvcmsys)
3797      # This compiler won't grok `-c -o', but also, the minuso test has
3798      # not run yet.  These depmodes are late enough in the game, and
3799      # so weak that their functioning should not be impacted.
3800      am__obj=conftest.${OBJEXT-o}
3801      am__minus_obj=
3802      ;;
3803    none) break ;;
3804    esac
3805    if depmode=$depmode \
3806       source=sub/conftest.c object=$am__obj \
3807       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3808       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3809         >/dev/null 2>conftest.err &&
3810       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3811       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3812       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3813       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3814      # icc doesn't choke on unknown options, it will just issue warnings
3815      # or remarks (even with -Werror).  So we grep stderr for any message
3816      # that says an option was ignored or not supported.
3817      # When given -MP, icc 7.0 and 7.1 complain thusly:
3818      #   icc: Command line warning: ignoring option '-M'; no argument required
3819      # The diagnosis changed in icc 8.0:
3820      #   icc: Command line remark: option '-MP' not supported
3821      if (grep 'ignoring option' conftest.err ||
3822          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3823        am_cv_CC_dependencies_compiler_type=$depmode
3824        break
3825      fi
3826    fi
3827  done
3828
3829  cd ..
3830  rm -rf conftest.dir
3831else
3832  am_cv_CC_dependencies_compiler_type=none
3833fi
3834
3835fi
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3837$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3838CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3839
3840 if
3841  test "x$enable_dependency_tracking" != xno \
3842  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3843  am__fastdepCC_TRUE=
3844  am__fastdepCC_FALSE='#'
3845else
3846  am__fastdepCC_TRUE='#'
3847  am__fastdepCC_FALSE=
3848fi
3849
3850
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3852$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3853if test "${ac_cv_path_SED+set}" = set; then :
3854  $as_echo_n "(cached) " >&6
3855else
3856            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3857     for ac_i in 1 2 3 4 5 6 7; do
3858       ac_script="$ac_script$as_nl$ac_script"
3859     done
3860     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3861     { ac_script=; unset ac_script;}
3862     if test -z "$SED"; then
3863  ac_path_SED_found=false
3864  # Loop through the user's path and test for each of PROGNAME-LIST
3865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866for as_dir in $PATH
3867do
3868  IFS=$as_save_IFS
3869  test -z "$as_dir" && as_dir=.
3870    for ac_prog in sed gsed; do
3871    for ac_exec_ext in '' $ac_executable_extensions; do
3872      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3873      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3874# Check for GNU ac_path_SED and select it if it is found.
3875  # Check for GNU $ac_path_SED
3876case `"$ac_path_SED" --version 2>&1` in
3877*GNU*)
3878  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3879*)
3880  ac_count=0
3881  $as_echo_n 0123456789 >"conftest.in"
3882  while :
3883  do
3884    cat "conftest.in" "conftest.in" >"conftest.tmp"
3885    mv "conftest.tmp" "conftest.in"
3886    cp "conftest.in" "conftest.nl"
3887    $as_echo '' >> "conftest.nl"
3888    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3889    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3890    as_fn_arith $ac_count + 1 && ac_count=$as_val
3891    if test $ac_count -gt ${ac_path_SED_max-0}; then
3892      # Best one so far, save it but keep looking for a better one
3893      ac_cv_path_SED="$ac_path_SED"
3894      ac_path_SED_max=$ac_count
3895    fi
3896    # 10*(2^10) chars as input seems more than enough
3897    test $ac_count -gt 10 && break
3898  done
3899  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3900esac
3901
3902      $ac_path_SED_found && break 3
3903    done
3904  done
3905  done
3906IFS=$as_save_IFS
3907  if test -z "$ac_cv_path_SED"; then
3908    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3909  fi
3910else
3911  ac_cv_path_SED=$SED
3912fi
3913
3914fi
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3916$as_echo "$ac_cv_path_SED" >&6; }
3917 SED="$ac_cv_path_SED"
3918  rm -f conftest.sed
3919
3920test -z "$SED" && SED=sed
3921Xsed="$SED -e 1s/^X//"
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3934$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3935if test "${ac_cv_path_GREP+set}" = set; then :
3936  $as_echo_n "(cached) " >&6
3937else
3938  if test -z "$GREP"; then
3939  ac_path_GREP_found=false
3940  # Loop through the user's path and test for each of PROGNAME-LIST
3941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3943do
3944  IFS=$as_save_IFS
3945  test -z "$as_dir" && as_dir=.
3946    for ac_prog in grep ggrep; do
3947    for ac_exec_ext in '' $ac_executable_extensions; do
3948      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3949      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3950# Check for GNU ac_path_GREP and select it if it is found.
3951  # Check for GNU $ac_path_GREP
3952case `"$ac_path_GREP" --version 2>&1` in
3953*GNU*)
3954  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3955*)
3956  ac_count=0
3957  $as_echo_n 0123456789 >"conftest.in"
3958  while :
3959  do
3960    cat "conftest.in" "conftest.in" >"conftest.tmp"
3961    mv "conftest.tmp" "conftest.in"
3962    cp "conftest.in" "conftest.nl"
3963    $as_echo 'GREP' >> "conftest.nl"
3964    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3965    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3966    as_fn_arith $ac_count + 1 && ac_count=$as_val
3967    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3968      # Best one so far, save it but keep looking for a better one
3969      ac_cv_path_GREP="$ac_path_GREP"
3970      ac_path_GREP_max=$ac_count
3971    fi
3972    # 10*(2^10) chars as input seems more than enough
3973    test $ac_count -gt 10 && break
3974  done
3975  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3976esac
3977
3978      $ac_path_GREP_found && break 3
3979    done
3980  done
3981  done
3982IFS=$as_save_IFS
3983  if test -z "$ac_cv_path_GREP"; then
3984    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3985  fi
3986else
3987  ac_cv_path_GREP=$GREP
3988fi
3989
3990fi
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3992$as_echo "$ac_cv_path_GREP" >&6; }
3993 GREP="$ac_cv_path_GREP"
3994
3995
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3997$as_echo_n "checking for egrep... " >&6; }
3998if test "${ac_cv_path_EGREP+set}" = set; then :
3999  $as_echo_n "(cached) " >&6
4000else
4001  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002   then ac_cv_path_EGREP="$GREP -E"
4003   else
4004     if test -z "$EGREP"; then
4005  ac_path_EGREP_found=false
4006  # Loop through the user's path and test for each of PROGNAME-LIST
4007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009do
4010  IFS=$as_save_IFS
4011  test -z "$as_dir" && as_dir=.
4012    for ac_prog in egrep; do
4013    for ac_exec_ext in '' $ac_executable_extensions; do
4014      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4015      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4016# Check for GNU ac_path_EGREP and select it if it is found.
4017  # Check for GNU $ac_path_EGREP
4018case `"$ac_path_EGREP" --version 2>&1` in
4019*GNU*)
4020  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4021*)
4022  ac_count=0
4023  $as_echo_n 0123456789 >"conftest.in"
4024  while :
4025  do
4026    cat "conftest.in" "conftest.in" >"conftest.tmp"
4027    mv "conftest.tmp" "conftest.in"
4028    cp "conftest.in" "conftest.nl"
4029    $as_echo 'EGREP' >> "conftest.nl"
4030    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4031    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4032    as_fn_arith $ac_count + 1 && ac_count=$as_val
4033    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4034      # Best one so far, save it but keep looking for a better one
4035      ac_cv_path_EGREP="$ac_path_EGREP"
4036      ac_path_EGREP_max=$ac_count
4037    fi
4038    # 10*(2^10) chars as input seems more than enough
4039    test $ac_count -gt 10 && break
4040  done
4041  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4042esac
4043
4044      $ac_path_EGREP_found && break 3
4045    done
4046  done
4047  done
4048IFS=$as_save_IFS
4049  if test -z "$ac_cv_path_EGREP"; then
4050    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4051  fi
4052else
4053  ac_cv_path_EGREP=$EGREP
4054fi
4055
4056   fi
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4059$as_echo "$ac_cv_path_EGREP" >&6; }
4060 EGREP="$ac_cv_path_EGREP"
4061
4062
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4064$as_echo_n "checking for fgrep... " >&6; }
4065if test "${ac_cv_path_FGREP+set}" = set; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4069   then ac_cv_path_FGREP="$GREP -F"
4070   else
4071     if test -z "$FGREP"; then
4072  ac_path_FGREP_found=false
4073  # Loop through the user's path and test for each of PROGNAME-LIST
4074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076do
4077  IFS=$as_save_IFS
4078  test -z "$as_dir" && as_dir=.
4079    for ac_prog in fgrep; do
4080    for ac_exec_ext in '' $ac_executable_extensions; do
4081      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4082      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4083# Check for GNU ac_path_FGREP and select it if it is found.
4084  # Check for GNU $ac_path_FGREP
4085case `"$ac_path_FGREP" --version 2>&1` in
4086*GNU*)
4087  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4088*)
4089  ac_count=0
4090  $as_echo_n 0123456789 >"conftest.in"
4091  while :
4092  do
4093    cat "conftest.in" "conftest.in" >"conftest.tmp"
4094    mv "conftest.tmp" "conftest.in"
4095    cp "conftest.in" "conftest.nl"
4096    $as_echo 'FGREP' >> "conftest.nl"
4097    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099    as_fn_arith $ac_count + 1 && ac_count=$as_val
4100    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4101      # Best one so far, save it but keep looking for a better one
4102      ac_cv_path_FGREP="$ac_path_FGREP"
4103      ac_path_FGREP_max=$ac_count
4104    fi
4105    # 10*(2^10) chars as input seems more than enough
4106    test $ac_count -gt 10 && break
4107  done
4108  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109esac
4110
4111      $ac_path_FGREP_found && break 3
4112    done
4113  done
4114  done
4115IFS=$as_save_IFS
4116  if test -z "$ac_cv_path_FGREP"; then
4117    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4118  fi
4119else
4120  ac_cv_path_FGREP=$FGREP
4121fi
4122
4123   fi
4124fi
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4126$as_echo "$ac_cv_path_FGREP" >&6; }
4127 FGREP="$ac_cv_path_FGREP"
4128
4129
4130test -z "$GREP" && GREP=grep
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150# Check whether --with-gnu-ld was given.
4151if test "${with_gnu_ld+set}" = set; then :
4152  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4153else
4154  with_gnu_ld=no
4155fi
4156
4157ac_prog=ld
4158if test "$GCC" = yes; then
4159  # Check if gcc -print-prog-name=ld gives a path.
4160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4161$as_echo_n "checking for ld used by $CC... " >&6; }
4162  case $host in
4163  *-*-mingw*)
4164    # gcc leaves a trailing carriage return which upsets mingw
4165    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4166  *)
4167    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4168  esac
4169  case $ac_prog in
4170    # Accept absolute paths.
4171    [\\/]* | ?:[\\/]*)
4172      re_direlt='/[^/][^/]*/\.\./'
4173      # Canonicalize the pathname of ld
4174      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4175      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4176	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4177      done
4178      test -z "$LD" && LD="$ac_prog"
4179      ;;
4180  "")
4181    # If it fails, then pretend we aren't using GCC.
4182    ac_prog=ld
4183    ;;
4184  *)
4185    # If it is relative, then search for the first ld in PATH.
4186    with_gnu_ld=unknown
4187    ;;
4188  esac
4189elif test "$with_gnu_ld" = yes; then
4190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4191$as_echo_n "checking for GNU ld... " >&6; }
4192else
4193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4194$as_echo_n "checking for non-GNU ld... " >&6; }
4195fi
4196if test "${lt_cv_path_LD+set}" = set; then :
4197  $as_echo_n "(cached) " >&6
4198else
4199  if test -z "$LD"; then
4200  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4201  for ac_dir in $PATH; do
4202    IFS="$lt_save_ifs"
4203    test -z "$ac_dir" && ac_dir=.
4204    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4205      lt_cv_path_LD="$ac_dir/$ac_prog"
4206      # Check to see if the program is GNU ld.  I'd rather use --version,
4207      # but apparently some variants of GNU ld only accept -v.
4208      # Break only if it was the GNU/non-GNU ld that we prefer.
4209      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4210      *GNU* | *'with BFD'*)
4211	test "$with_gnu_ld" != no && break
4212	;;
4213      *)
4214	test "$with_gnu_ld" != yes && break
4215	;;
4216      esac
4217    fi
4218  done
4219  IFS="$lt_save_ifs"
4220else
4221  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4222fi
4223fi
4224
4225LD="$lt_cv_path_LD"
4226if test -n "$LD"; then
4227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4228$as_echo "$LD" >&6; }
4229else
4230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231$as_echo "no" >&6; }
4232fi
4233test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4235$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4236if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4237  $as_echo_n "(cached) " >&6
4238else
4239  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4240case `$LD -v 2>&1 </dev/null` in
4241*GNU* | *'with BFD'*)
4242  lt_cv_prog_gnu_ld=yes
4243  ;;
4244*)
4245  lt_cv_prog_gnu_ld=no
4246  ;;
4247esac
4248fi
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4250$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4251with_gnu_ld=$lt_cv_prog_gnu_ld
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4262$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4263if test "${lt_cv_path_NM+set}" = set; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  if test -n "$NM"; then
4267  # Let the user override the test.
4268  lt_cv_path_NM="$NM"
4269else
4270  lt_nm_to_check="${ac_tool_prefix}nm"
4271  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4272    lt_nm_to_check="$lt_nm_to_check nm"
4273  fi
4274  for lt_tmp_nm in $lt_nm_to_check; do
4275    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4276    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4277      IFS="$lt_save_ifs"
4278      test -z "$ac_dir" && ac_dir=.
4279      tmp_nm="$ac_dir/$lt_tmp_nm"
4280      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4281	# Check to see if the nm accepts a BSD-compat flag.
4282	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4283	#   nm: unknown option "B" ignored
4284	# Tru64's nm complains that /dev/null is an invalid object file
4285	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4286	*/dev/null* | *'Invalid file or object type'*)
4287	  lt_cv_path_NM="$tmp_nm -B"
4288	  break
4289	  ;;
4290	*)
4291	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4292	  */dev/null*)
4293	    lt_cv_path_NM="$tmp_nm -p"
4294	    break
4295	    ;;
4296	  *)
4297	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4298	    continue # so that we can try to find one that supports BSD flags
4299	    ;;
4300	  esac
4301	  ;;
4302	esac
4303      fi
4304    done
4305    IFS="$lt_save_ifs"
4306  done
4307  : ${lt_cv_path_NM=no}
4308fi
4309fi
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4311$as_echo "$lt_cv_path_NM" >&6; }
4312if test "$lt_cv_path_NM" != "no"; then
4313  NM="$lt_cv_path_NM"
4314else
4315  # Didn't find any BSD compatible name lister, look for dumpbin.
4316  if test -n "$DUMPBIN"; then :
4317    # Let the user override the test.
4318  else
4319    if test -n "$ac_tool_prefix"; then
4320  for ac_prog in dumpbin "link -dump"
4321  do
4322    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4323set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325$as_echo_n "checking for $ac_word... " >&6; }
4326if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4327  $as_echo_n "(cached) " >&6
4328else
4329  if test -n "$DUMPBIN"; then
4330  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4331else
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335  IFS=$as_save_IFS
4336  test -z "$as_dir" && as_dir=.
4337    for ac_exec_ext in '' $ac_executable_extensions; do
4338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341    break 2
4342  fi
4343done
4344  done
4345IFS=$as_save_IFS
4346
4347fi
4348fi
4349DUMPBIN=$ac_cv_prog_DUMPBIN
4350if test -n "$DUMPBIN"; then
4351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4352$as_echo "$DUMPBIN" >&6; }
4353else
4354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355$as_echo "no" >&6; }
4356fi
4357
4358
4359    test -n "$DUMPBIN" && break
4360  done
4361fi
4362if test -z "$DUMPBIN"; then
4363  ac_ct_DUMPBIN=$DUMPBIN
4364  for ac_prog in dumpbin "link -dump"
4365do
4366  # Extract the first word of "$ac_prog", so it can be a program name with args.
4367set dummy $ac_prog; ac_word=$2
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369$as_echo_n "checking for $ac_word... " >&6; }
4370if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4371  $as_echo_n "(cached) " >&6
4372else
4373  if test -n "$ac_ct_DUMPBIN"; then
4374  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4375else
4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH
4378do
4379  IFS=$as_save_IFS
4380  test -z "$as_dir" && as_dir=.
4381    for ac_exec_ext in '' $ac_executable_extensions; do
4382  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385    break 2
4386  fi
4387done
4388  done
4389IFS=$as_save_IFS
4390
4391fi
4392fi
4393ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4394if test -n "$ac_ct_DUMPBIN"; then
4395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4396$as_echo "$ac_ct_DUMPBIN" >&6; }
4397else
4398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399$as_echo "no" >&6; }
4400fi
4401
4402
4403  test -n "$ac_ct_DUMPBIN" && break
4404done
4405
4406  if test "x$ac_ct_DUMPBIN" = x; then
4407    DUMPBIN=":"
4408  else
4409    case $cross_compiling:$ac_tool_warned in
4410yes:)
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4413ac_tool_warned=yes ;;
4414esac
4415    DUMPBIN=$ac_ct_DUMPBIN
4416  fi
4417fi
4418
4419    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4420    *COFF*)
4421      DUMPBIN="$DUMPBIN -symbols"
4422      ;;
4423    *)
4424      DUMPBIN=:
4425      ;;
4426    esac
4427  fi
4428
4429  if test "$DUMPBIN" != ":"; then
4430    NM="$DUMPBIN"
4431  fi
4432fi
4433test -z "$NM" && NM=nm
4434
4435
4436
4437
4438
4439
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4441$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4442if test "${lt_cv_nm_interface+set}" = set; then :
4443  $as_echo_n "(cached) " >&6
4444else
4445  lt_cv_nm_interface="BSD nm"
4446  echo "int some_variable = 0;" > conftest.$ac_ext
4447  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4448  (eval "$ac_compile" 2>conftest.err)
4449  cat conftest.err >&5
4450  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4451  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4452  cat conftest.err >&5
4453  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4454  cat conftest.out >&5
4455  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4456    lt_cv_nm_interface="MS dumpbin"
4457  fi
4458  rm -f conftest*
4459fi
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4461$as_echo "$lt_cv_nm_interface" >&6; }
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4464$as_echo_n "checking whether ln -s works... " >&6; }
4465LN_S=$as_ln_s
4466if test "$LN_S" = "ln -s"; then
4467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468$as_echo "yes" >&6; }
4469else
4470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4471$as_echo "no, using $LN_S" >&6; }
4472fi
4473
4474# find the maximum length of command line arguments
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4476$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4477if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480    i=0
4481  teststring="ABCD"
4482
4483  case $build_os in
4484  msdosdjgpp*)
4485    # On DJGPP, this test can blow up pretty badly due to problems in libc
4486    # (any single argument exceeding 2000 bytes causes a buffer overrun
4487    # during glob expansion).  Even if it were fixed, the result of this
4488    # check would be larger than it should be.
4489    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4490    ;;
4491
4492  gnu*)
4493    # Under GNU Hurd, this test is not required because there is
4494    # no limit to the length of command line arguments.
4495    # Libtool will interpret -1 as no limit whatsoever
4496    lt_cv_sys_max_cmd_len=-1;
4497    ;;
4498
4499  cygwin* | mingw* | cegcc*)
4500    # On Win9x/ME, this test blows up -- it succeeds, but takes
4501    # about 5 minutes as the teststring grows exponentially.
4502    # Worse, since 9x/ME are not pre-emptively multitasking,
4503    # you end up with a "frozen" computer, even though with patience
4504    # the test eventually succeeds (with a max line length of 256k).
4505    # Instead, let's just punt: use the minimum linelength reported by
4506    # all of the supported platforms: 8192 (on NT/2K/XP).
4507    lt_cv_sys_max_cmd_len=8192;
4508    ;;
4509
4510  mint*)
4511    # On MiNT this can take a long time and run out of memory.
4512    lt_cv_sys_max_cmd_len=8192;
4513    ;;
4514
4515  amigaos*)
4516    # On AmigaOS with pdksh, this test takes hours, literally.
4517    # So we just punt and use a minimum line length of 8192.
4518    lt_cv_sys_max_cmd_len=8192;
4519    ;;
4520
4521  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4522    # This has been around since 386BSD, at least.  Likely further.
4523    if test -x /sbin/sysctl; then
4524      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4525    elif test -x /usr/sbin/sysctl; then
4526      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4527    else
4528      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4529    fi
4530    # And add a safety zone
4531    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4532    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4533    ;;
4534
4535  interix*)
4536    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4537    lt_cv_sys_max_cmd_len=196608
4538    ;;
4539
4540  osf*)
4541    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4542    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4543    # nice to cause kernel panics so lets avoid the loop below.
4544    # First set a reasonable default.
4545    lt_cv_sys_max_cmd_len=16384
4546    #
4547    if test -x /sbin/sysconfig; then
4548      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4549        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4550      esac
4551    fi
4552    ;;
4553  sco3.2v5*)
4554    lt_cv_sys_max_cmd_len=102400
4555    ;;
4556  sysv5* | sco5v6* | sysv4.2uw2*)
4557    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4558    if test -n "$kargmax"; then
4559      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4560    else
4561      lt_cv_sys_max_cmd_len=32768
4562    fi
4563    ;;
4564  *)
4565    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4566    if test -n "$lt_cv_sys_max_cmd_len"; then
4567      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4568      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4569    else
4570      # Make teststring a little bigger before we do anything with it.
4571      # a 1K string should be a reasonable start.
4572      for i in 1 2 3 4 5 6 7 8 ; do
4573        teststring=$teststring$teststring
4574      done
4575      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4576      # If test is not a shell built-in, we'll probably end up computing a
4577      # maximum length that is only half of the actual maximum length, but
4578      # we can't tell.
4579      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4580	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4581	      test $i != 17 # 1/2 MB should be enough
4582      do
4583        i=`expr $i + 1`
4584        teststring=$teststring$teststring
4585      done
4586      # Only check the string length outside the loop.
4587      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4588      teststring=
4589      # Add a significant safety factor because C++ compilers can tack on
4590      # massive amounts of additional arguments before passing them to the
4591      # linker.  It appears as though 1/2 is a usable value.
4592      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4593    fi
4594    ;;
4595  esac
4596
4597fi
4598
4599if test -n $lt_cv_sys_max_cmd_len ; then
4600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4601$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4602else
4603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4604$as_echo "none" >&6; }
4605fi
4606max_cmd_len=$lt_cv_sys_max_cmd_len
4607
4608
4609
4610
4611
4612
4613: ${CP="cp -f"}
4614: ${MV="mv -f"}
4615: ${RM="rm -f"}
4616
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4618$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4619# Try some XSI features
4620xsi_shell=no
4621( _lt_dummy="a/b/c"
4622  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4623      = c,a/b,, \
4624    && eval 'test $(( 1 + 1 )) -eq 2 \
4625    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4626  && xsi_shell=yes
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4628$as_echo "$xsi_shell" >&6; }
4629
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4632$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4633lt_shell_append=no
4634( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4635    >/dev/null 2>&1 \
4636  && lt_shell_append=yes
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4638$as_echo "$lt_shell_append" >&6; }
4639
4640
4641if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4642  lt_unset=unset
4643else
4644  lt_unset=false
4645fi
4646
4647
4648
4649
4650
4651# test EBCDIC or ASCII
4652case `echo X|tr X '\101'` in
4653 A) # ASCII based system
4654    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4655  lt_SP2NL='tr \040 \012'
4656  lt_NL2SP='tr \015\012 \040\040'
4657  ;;
4658 *) # EBCDIC based system
4659  lt_SP2NL='tr \100 \n'
4660  lt_NL2SP='tr \r\n \100\100'
4661  ;;
4662esac
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4673$as_echo_n "checking for $LD option to reload object files... " >&6; }
4674if test "${lt_cv_ld_reload_flag+set}" = set; then :
4675  $as_echo_n "(cached) " >&6
4676else
4677  lt_cv_ld_reload_flag='-r'
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4680$as_echo "$lt_cv_ld_reload_flag" >&6; }
4681reload_flag=$lt_cv_ld_reload_flag
4682case $reload_flag in
4683"" | " "*) ;;
4684*) reload_flag=" $reload_flag" ;;
4685esac
4686reload_cmds='$LD$reload_flag -o $output$reload_objs'
4687case $host_os in
4688  darwin*)
4689    if test "$GCC" = yes; then
4690      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4691    else
4692      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4693    fi
4694    ;;
4695esac
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705if test -n "$ac_tool_prefix"; then
4706  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4707set dummy ${ac_tool_prefix}objdump; ac_word=$2
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709$as_echo_n "checking for $ac_word... " >&6; }
4710if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713  if test -n "$OBJDUMP"; then
4714  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719  IFS=$as_save_IFS
4720  test -z "$as_dir" && as_dir=.
4721    for ac_exec_ext in '' $ac_executable_extensions; do
4722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725    break 2
4726  fi
4727done
4728  done
4729IFS=$as_save_IFS
4730
4731fi
4732fi
4733OBJDUMP=$ac_cv_prog_OBJDUMP
4734if test -n "$OBJDUMP"; then
4735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4736$as_echo "$OBJDUMP" >&6; }
4737else
4738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739$as_echo "no" >&6; }
4740fi
4741
4742
4743fi
4744if test -z "$ac_cv_prog_OBJDUMP"; then
4745  ac_ct_OBJDUMP=$OBJDUMP
4746  # Extract the first word of "objdump", so it can be a program name with args.
4747set dummy objdump; ac_word=$2
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749$as_echo_n "checking for $ac_word... " >&6; }
4750if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4751  $as_echo_n "(cached) " >&6
4752else
4753  if test -n "$ac_ct_OBJDUMP"; then
4754  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4755else
4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759  IFS=$as_save_IFS
4760  test -z "$as_dir" && as_dir=.
4761    for ac_exec_ext in '' $ac_executable_extensions; do
4762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765    break 2
4766  fi
4767done
4768  done
4769IFS=$as_save_IFS
4770
4771fi
4772fi
4773ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4774if test -n "$ac_ct_OBJDUMP"; then
4775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4776$as_echo "$ac_ct_OBJDUMP" >&6; }
4777else
4778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779$as_echo "no" >&6; }
4780fi
4781
4782  if test "x$ac_ct_OBJDUMP" = x; then
4783    OBJDUMP="false"
4784  else
4785    case $cross_compiling:$ac_tool_warned in
4786yes:)
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4789ac_tool_warned=yes ;;
4790esac
4791    OBJDUMP=$ac_ct_OBJDUMP
4792  fi
4793else
4794  OBJDUMP="$ac_cv_prog_OBJDUMP"
4795fi
4796
4797test -z "$OBJDUMP" && OBJDUMP=objdump
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4808$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4809if test "${lt_cv_deplibs_check_method+set}" = set; then :
4810  $as_echo_n "(cached) " >&6
4811else
4812  lt_cv_file_magic_cmd='$MAGIC_CMD'
4813lt_cv_file_magic_test_file=
4814lt_cv_deplibs_check_method='unknown'
4815# Need to set the preceding variable on all platforms that support
4816# interlibrary dependencies.
4817# 'none' -- dependencies not supported.
4818# `unknown' -- same as none, but documents that we really don't know.
4819# 'pass_all' -- all dependencies passed with no checks.
4820# 'test_compile' -- check by making test program.
4821# 'file_magic [[regex]]' -- check by looking for files in library path
4822# which responds to the $file_magic_cmd with a given extended regex.
4823# If you have `file' or equivalent on your system and you're not sure
4824# whether `pass_all' will *always* work, you probably want this one.
4825
4826case $host_os in
4827aix[4-9]*)
4828  lt_cv_deplibs_check_method=pass_all
4829  ;;
4830
4831beos*)
4832  lt_cv_deplibs_check_method=pass_all
4833  ;;
4834
4835bsdi[45]*)
4836  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4837  lt_cv_file_magic_cmd='/usr/bin/file -L'
4838  lt_cv_file_magic_test_file=/shlib/libc.so
4839  ;;
4840
4841cygwin*)
4842  # func_win32_libid is a shell function defined in ltmain.sh
4843  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4844  lt_cv_file_magic_cmd='func_win32_libid'
4845  ;;
4846
4847mingw* | pw32*)
4848  # Base MSYS/MinGW do not provide the 'file' command needed by
4849  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4850  # unless we find 'file', for example because we are cross-compiling.
4851  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4852  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4853    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4854    lt_cv_file_magic_cmd='func_win32_libid'
4855  else
4856    # Keep this pattern in sync with the one in func_win32_libid.
4857    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4858    lt_cv_file_magic_cmd='$OBJDUMP -f'
4859  fi
4860  ;;
4861
4862cegcc*)
4863  # use the weaker test based on 'objdump'. See mingw*.
4864  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4865  lt_cv_file_magic_cmd='$OBJDUMP -f'
4866  ;;
4867
4868darwin* | rhapsody*)
4869  lt_cv_deplibs_check_method=pass_all
4870  ;;
4871
4872freebsd* | dragonfly*)
4873  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4874    case $host_cpu in
4875    i*86 )
4876      # Not sure whether the presence of OpenBSD here was a mistake.
4877      # Let's accept both of them until this is cleared up.
4878      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4879      lt_cv_file_magic_cmd=/usr/bin/file
4880      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4881      ;;
4882    esac
4883  else
4884    lt_cv_deplibs_check_method=pass_all
4885  fi
4886  ;;
4887
4888gnu*)
4889  lt_cv_deplibs_check_method=pass_all
4890  ;;
4891
4892haiku*)
4893  lt_cv_deplibs_check_method=pass_all
4894  ;;
4895
4896hpux10.20* | hpux11*)
4897  lt_cv_file_magic_cmd=/usr/bin/file
4898  case $host_cpu in
4899  ia64*)
4900    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4901    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4902    ;;
4903  hppa*64*)
4904    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]'
4905    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4906    ;;
4907  *)
4908    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4909    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4910    ;;
4911  esac
4912  ;;
4913
4914interix[3-9]*)
4915  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4916  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4917  ;;
4918
4919irix5* | irix6* | nonstopux*)
4920  case $LD in
4921  *-32|*"-32 ") libmagic=32-bit;;
4922  *-n32|*"-n32 ") libmagic=N32;;
4923  *-64|*"-64 ") libmagic=64-bit;;
4924  *) libmagic=never-match;;
4925  esac
4926  lt_cv_deplibs_check_method=pass_all
4927  ;;
4928
4929# This must be Linux ELF.
4930linux* | k*bsd*-gnu | kopensolaris*-gnu)
4931  lt_cv_deplibs_check_method=pass_all
4932  ;;
4933
4934netbsd*)
4935  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4936    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4937  else
4938    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4939  fi
4940  ;;
4941
4942newos6*)
4943  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4944  lt_cv_file_magic_cmd=/usr/bin/file
4945  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4946  ;;
4947
4948*nto* | *qnx*)
4949  lt_cv_deplibs_check_method=pass_all
4950  ;;
4951
4952openbsd*)
4953  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4954    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4955  else
4956    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4957  fi
4958  ;;
4959
4960osf3* | osf4* | osf5*)
4961  lt_cv_deplibs_check_method=pass_all
4962  ;;
4963
4964rdos*)
4965  lt_cv_deplibs_check_method=pass_all
4966  ;;
4967
4968solaris*)
4969  lt_cv_deplibs_check_method=pass_all
4970  ;;
4971
4972sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4973  lt_cv_deplibs_check_method=pass_all
4974  ;;
4975
4976sysv4 | sysv4.3*)
4977  case $host_vendor in
4978  motorola)
4979    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]'
4980    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4981    ;;
4982  ncr)
4983    lt_cv_deplibs_check_method=pass_all
4984    ;;
4985  sequent)
4986    lt_cv_file_magic_cmd='/bin/file'
4987    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4988    ;;
4989  sni)
4990    lt_cv_file_magic_cmd='/bin/file'
4991    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4992    lt_cv_file_magic_test_file=/lib/libc.so
4993    ;;
4994  siemens)
4995    lt_cv_deplibs_check_method=pass_all
4996    ;;
4997  pc)
4998    lt_cv_deplibs_check_method=pass_all
4999    ;;
5000  esac
5001  ;;
5002
5003tpf*)
5004  lt_cv_deplibs_check_method=pass_all
5005  ;;
5006esac
5007
5008fi
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5010$as_echo "$lt_cv_deplibs_check_method" >&6; }
5011file_magic_cmd=$lt_cv_file_magic_cmd
5012deplibs_check_method=$lt_cv_deplibs_check_method
5013test -z "$deplibs_check_method" && deplibs_check_method=unknown
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026if test -n "$ac_tool_prefix"; then
5027  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5028set dummy ${ac_tool_prefix}ar; ac_word=$2
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030$as_echo_n "checking for $ac_word... " >&6; }
5031if test "${ac_cv_prog_AR+set}" = set; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  if test -n "$AR"; then
5035  ac_cv_prog_AR="$AR" # Let the user override the test.
5036else
5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040  IFS=$as_save_IFS
5041  test -z "$as_dir" && as_dir=.
5042    for ac_exec_ext in '' $ac_executable_extensions; do
5043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044    ac_cv_prog_AR="${ac_tool_prefix}ar"
5045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046    break 2
5047  fi
5048done
5049  done
5050IFS=$as_save_IFS
5051
5052fi
5053fi
5054AR=$ac_cv_prog_AR
5055if test -n "$AR"; then
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5057$as_echo "$AR" >&6; }
5058else
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060$as_echo "no" >&6; }
5061fi
5062
5063
5064fi
5065if test -z "$ac_cv_prog_AR"; then
5066  ac_ct_AR=$AR
5067  # Extract the first word of "ar", so it can be a program name with args.
5068set dummy ar; ac_word=$2
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070$as_echo_n "checking for $ac_word... " >&6; }
5071if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074  if test -n "$ac_ct_AR"; then
5075  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5076else
5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
5079do
5080  IFS=$as_save_IFS
5081  test -z "$as_dir" && as_dir=.
5082    for ac_exec_ext in '' $ac_executable_extensions; do
5083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084    ac_cv_prog_ac_ct_AR="ar"
5085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086    break 2
5087  fi
5088done
5089  done
5090IFS=$as_save_IFS
5091
5092fi
5093fi
5094ac_ct_AR=$ac_cv_prog_ac_ct_AR
5095if test -n "$ac_ct_AR"; then
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5097$as_echo "$ac_ct_AR" >&6; }
5098else
5099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100$as_echo "no" >&6; }
5101fi
5102
5103  if test "x$ac_ct_AR" = x; then
5104    AR="false"
5105  else
5106    case $cross_compiling:$ac_tool_warned in
5107yes:)
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5110ac_tool_warned=yes ;;
5111esac
5112    AR=$ac_ct_AR
5113  fi
5114else
5115  AR="$ac_cv_prog_AR"
5116fi
5117
5118test -z "$AR" && AR=ar
5119test -z "$AR_FLAGS" && AR_FLAGS=cru
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131if test -n "$ac_tool_prefix"; then
5132  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5133set dummy ${ac_tool_prefix}strip; ac_word=$2
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
5136if test "${ac_cv_prog_STRIP+set}" = set; then :
5137  $as_echo_n "(cached) " >&6
5138else
5139  if test -n "$STRIP"; then
5140  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145  IFS=$as_save_IFS
5146  test -z "$as_dir" && as_dir=.
5147    for ac_exec_ext in '' $ac_executable_extensions; do
5148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151    break 2
5152  fi
5153done
5154  done
5155IFS=$as_save_IFS
5156
5157fi
5158fi
5159STRIP=$ac_cv_prog_STRIP
5160if test -n "$STRIP"; then
5161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5162$as_echo "$STRIP" >&6; }
5163else
5164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
5166fi
5167
5168
5169fi
5170if test -z "$ac_cv_prog_STRIP"; then
5171  ac_ct_STRIP=$STRIP
5172  # Extract the first word of "strip", so it can be a program name with args.
5173set dummy strip; ac_word=$2
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
5176if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179  if test -n "$ac_ct_STRIP"; then
5180  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185  IFS=$as_save_IFS
5186  test -z "$as_dir" && as_dir=.
5187    for ac_exec_ext in '' $ac_executable_extensions; do
5188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189    ac_cv_prog_ac_ct_STRIP="strip"
5190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191    break 2
5192  fi
5193done
5194  done
5195IFS=$as_save_IFS
5196
5197fi
5198fi
5199ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5200if test -n "$ac_ct_STRIP"; then
5201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5202$as_echo "$ac_ct_STRIP" >&6; }
5203else
5204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205$as_echo "no" >&6; }
5206fi
5207
5208  if test "x$ac_ct_STRIP" = x; then
5209    STRIP=":"
5210  else
5211    case $cross_compiling:$ac_tool_warned in
5212yes:)
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215ac_tool_warned=yes ;;
5216esac
5217    STRIP=$ac_ct_STRIP
5218  fi
5219else
5220  STRIP="$ac_cv_prog_STRIP"
5221fi
5222
5223test -z "$STRIP" && STRIP=:
5224
5225
5226
5227
5228
5229
5230if test -n "$ac_tool_prefix"; then
5231  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5232set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234$as_echo_n "checking for $ac_word... " >&6; }
5235if test "${ac_cv_prog_RANLIB+set}" = set; then :
5236  $as_echo_n "(cached) " >&6
5237else
5238  if test -n "$RANLIB"; then
5239  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246    for ac_exec_ext in '' $ac_executable_extensions; do
5247  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250    break 2
5251  fi
5252done
5253  done
5254IFS=$as_save_IFS
5255
5256fi
5257fi
5258RANLIB=$ac_cv_prog_RANLIB
5259if test -n "$RANLIB"; then
5260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5261$as_echo "$RANLIB" >&6; }
5262else
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266
5267
5268fi
5269if test -z "$ac_cv_prog_RANLIB"; then
5270  ac_ct_RANLIB=$RANLIB
5271  # Extract the first word of "ranlib", so it can be a program name with args.
5272set dummy ranlib; ac_word=$2
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274$as_echo_n "checking for $ac_word... " >&6; }
5275if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5276  $as_echo_n "(cached) " >&6
5277else
5278  if test -n "$ac_ct_RANLIB"; then
5279  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5280else
5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282for as_dir in $PATH
5283do
5284  IFS=$as_save_IFS
5285  test -z "$as_dir" && as_dir=.
5286    for ac_exec_ext in '' $ac_executable_extensions; do
5287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288    ac_cv_prog_ac_ct_RANLIB="ranlib"
5289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290    break 2
5291  fi
5292done
5293  done
5294IFS=$as_save_IFS
5295
5296fi
5297fi
5298ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5299if test -n "$ac_ct_RANLIB"; then
5300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5301$as_echo "$ac_ct_RANLIB" >&6; }
5302else
5303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304$as_echo "no" >&6; }
5305fi
5306
5307  if test "x$ac_ct_RANLIB" = x; then
5308    RANLIB=":"
5309  else
5310    case $cross_compiling:$ac_tool_warned in
5311yes:)
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314ac_tool_warned=yes ;;
5315esac
5316    RANLIB=$ac_ct_RANLIB
5317  fi
5318else
5319  RANLIB="$ac_cv_prog_RANLIB"
5320fi
5321
5322test -z "$RANLIB" && RANLIB=:
5323
5324
5325
5326
5327
5328
5329# Determine commands to create old-style static archives.
5330old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5331old_postinstall_cmds='chmod 644 $oldlib'
5332old_postuninstall_cmds=
5333
5334if test -n "$RANLIB"; then
5335  case $host_os in
5336  openbsd*)
5337    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5338    ;;
5339  *)
5340    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5341    ;;
5342  esac
5343  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5344fi
5345
5346case $host_os in
5347  darwin*)
5348    lock_old_archive_extraction=yes ;;
5349  *)
5350    lock_old_archive_extraction=no ;;
5351esac
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391# If no C compiler was specified, use CC.
5392LTCC=${LTCC-"$CC"}
5393
5394# If no C compiler flags were specified, use CFLAGS.
5395LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5396
5397# Allow CC to be a program name with arguments.
5398compiler=$CC
5399
5400
5401# Check for command to grab the raw symbol name followed by C symbol from nm.
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5403$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5404if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5405  $as_echo_n "(cached) " >&6
5406else
5407
5408# These are sane defaults that work on at least a few old systems.
5409# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5410
5411# Character class describing NM global symbol codes.
5412symcode='[BCDEGRST]'
5413
5414# Regexp to match symbols that can be accessed directly from C.
5415sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5416
5417# Define system-specific variables.
5418case $host_os in
5419aix*)
5420  symcode='[BCDT]'
5421  ;;
5422cygwin* | mingw* | pw32* | cegcc*)
5423  symcode='[ABCDGISTW]'
5424  ;;
5425hpux*)
5426  if test "$host_cpu" = ia64; then
5427    symcode='[ABCDEGRST]'
5428  fi
5429  ;;
5430irix* | nonstopux*)
5431  symcode='[BCDEGRST]'
5432  ;;
5433osf*)
5434  symcode='[BCDEGQRST]'
5435  ;;
5436solaris*)
5437  symcode='[BDRT]'
5438  ;;
5439sco3.2v5*)
5440  symcode='[DT]'
5441  ;;
5442sysv4.2uw2*)
5443  symcode='[DT]'
5444  ;;
5445sysv5* | sco5v6* | unixware* | OpenUNIX*)
5446  symcode='[ABDT]'
5447  ;;
5448sysv4)
5449  symcode='[DFNSTU]'
5450  ;;
5451esac
5452
5453# If we're using GNU nm, then use its standard symbol codes.
5454case `$NM -V 2>&1` in
5455*GNU* | *'with BFD'*)
5456  symcode='[ABCDGIRSTW]' ;;
5457esac
5458
5459# Transform an extracted symbol line into a proper C declaration.
5460# Some systems (esp. on ia64) link data and code symbols differently,
5461# so use this general approach.
5462lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5463
5464# Transform an extracted symbol line into symbol name and symbol address
5465lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5466lt_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'"
5467
5468# Handle CRLF in mingw tool chain
5469opt_cr=
5470case $build_os in
5471mingw*)
5472  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5473  ;;
5474esac
5475
5476# Try without a prefix underscore, then with it.
5477for ac_symprfx in "" "_"; do
5478
5479  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5480  symxfrm="\\1 $ac_symprfx\\2 \\2"
5481
5482  # Write the raw and C identifiers.
5483  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5484    # Fake it for dumpbin and say T for any non-static function
5485    # and D for any global variable.
5486    # Also find C++ and __fastcall symbols from MSVC++,
5487    # which start with @ or ?.
5488    lt_cv_sys_global_symbol_pipe="$AWK '"\
5489"     {last_section=section; section=\$ 3};"\
5490"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5491"     \$ 0!~/External *\|/{next};"\
5492"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5493"     {if(hide[section]) next};"\
5494"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5495"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5496"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5497"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5498"     ' prfx=^$ac_symprfx"
5499  else
5500    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5501  fi
5502
5503  # Check to see that the pipe works correctly.
5504  pipe_works=no
5505
5506  rm -f conftest*
5507  cat > conftest.$ac_ext <<_LT_EOF
5508#ifdef __cplusplus
5509extern "C" {
5510#endif
5511char nm_test_var;
5512void nm_test_func(void);
5513void nm_test_func(void){}
5514#ifdef __cplusplus
5515}
5516#endif
5517int main(){nm_test_var='a';nm_test_func();return(0);}
5518_LT_EOF
5519
5520  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5521  (eval $ac_compile) 2>&5
5522  ac_status=$?
5523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5524  test $ac_status = 0; }; then
5525    # Now try to grab the symbols.
5526    nlist=conftest.nm
5527    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5528  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5529  ac_status=$?
5530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5531  test $ac_status = 0; } && test -s "$nlist"; then
5532      # Try sorting and uniquifying the output.
5533      if sort "$nlist" | uniq > "$nlist"T; then
5534	mv -f "$nlist"T "$nlist"
5535      else
5536	rm -f "$nlist"T
5537      fi
5538
5539      # Make sure that we snagged all the symbols we need.
5540      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5541	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5542	  cat <<_LT_EOF > conftest.$ac_ext
5543#ifdef __cplusplus
5544extern "C" {
5545#endif
5546
5547_LT_EOF
5548	  # Now generate the symbol file.
5549	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5550
5551	  cat <<_LT_EOF >> conftest.$ac_ext
5552
5553/* The mapping between symbol names and symbols.  */
5554const struct {
5555  const char *name;
5556  void       *address;
5557}
5558lt__PROGRAM__LTX_preloaded_symbols[] =
5559{
5560  { "@PROGRAM@", (void *) 0 },
5561_LT_EOF
5562	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5563	  cat <<\_LT_EOF >> conftest.$ac_ext
5564  {0, (void *) 0}
5565};
5566
5567/* This works around a problem in FreeBSD linker */
5568#ifdef FREEBSD_WORKAROUND
5569static const void *lt_preloaded_setup() {
5570  return lt__PROGRAM__LTX_preloaded_symbols;
5571}
5572#endif
5573
5574#ifdef __cplusplus
5575}
5576#endif
5577_LT_EOF
5578	  # Now try linking the two files.
5579	  mv conftest.$ac_objext conftstm.$ac_objext
5580	  lt_save_LIBS="$LIBS"
5581	  lt_save_CFLAGS="$CFLAGS"
5582	  LIBS="conftstm.$ac_objext"
5583	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5584	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5585  (eval $ac_link) 2>&5
5586  ac_status=$?
5587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5589	    pipe_works=yes
5590	  fi
5591	  LIBS="$lt_save_LIBS"
5592	  CFLAGS="$lt_save_CFLAGS"
5593	else
5594	  echo "cannot find nm_test_func in $nlist" >&5
5595	fi
5596      else
5597	echo "cannot find nm_test_var in $nlist" >&5
5598      fi
5599    else
5600      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5601    fi
5602  else
5603    echo "$progname: failed program was:" >&5
5604    cat conftest.$ac_ext >&5
5605  fi
5606  rm -rf conftest* conftst*
5607
5608  # Do not use the global_symbol_pipe unless it works.
5609  if test "$pipe_works" = yes; then
5610    break
5611  else
5612    lt_cv_sys_global_symbol_pipe=
5613  fi
5614done
5615
5616fi
5617
5618if test -z "$lt_cv_sys_global_symbol_pipe"; then
5619  lt_cv_sys_global_symbol_to_cdecl=
5620fi
5621if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5623$as_echo "failed" >&6; }
5624else
5625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5626$as_echo "ok" >&6; }
5627fi
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651# Check whether --enable-libtool-lock was given.
5652if test "${enable_libtool_lock+set}" = set; then :
5653  enableval=$enable_libtool_lock;
5654fi
5655
5656test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5657
5658# Some flags need to be propagated to the compiler or linker for good
5659# libtool support.
5660case $host in
5661ia64-*-hpux*)
5662  # Find out which ABI we are using.
5663  echo 'int i;' > conftest.$ac_ext
5664  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5665  (eval $ac_compile) 2>&5
5666  ac_status=$?
5667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668  test $ac_status = 0; }; then
5669    case `/usr/bin/file conftest.$ac_objext` in
5670      *ELF-32*)
5671	HPUX_IA64_MODE="32"
5672	;;
5673      *ELF-64*)
5674	HPUX_IA64_MODE="64"
5675	;;
5676    esac
5677  fi
5678  rm -rf conftest*
5679  ;;
5680*-*-irix6*)
5681  # Find out which ABI we are using.
5682  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5683  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5684  (eval $ac_compile) 2>&5
5685  ac_status=$?
5686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687  test $ac_status = 0; }; then
5688    if test "$lt_cv_prog_gnu_ld" = yes; then
5689      case `/usr/bin/file conftest.$ac_objext` in
5690	*32-bit*)
5691	  LD="${LD-ld} -melf32bsmip"
5692	  ;;
5693	*N32*)
5694	  LD="${LD-ld} -melf32bmipn32"
5695	  ;;
5696	*64-bit*)
5697	  LD="${LD-ld} -melf64bmip"
5698	;;
5699      esac
5700    else
5701      case `/usr/bin/file conftest.$ac_objext` in
5702	*32-bit*)
5703	  LD="${LD-ld} -32"
5704	  ;;
5705	*N32*)
5706	  LD="${LD-ld} -n32"
5707	  ;;
5708	*64-bit*)
5709	  LD="${LD-ld} -64"
5710	  ;;
5711      esac
5712    fi
5713  fi
5714  rm -rf conftest*
5715  ;;
5716
5717x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5718s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5719  # Find out which ABI we are using.
5720  echo 'int i;' > conftest.$ac_ext
5721  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5722  (eval $ac_compile) 2>&5
5723  ac_status=$?
5724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725  test $ac_status = 0; }; then
5726    case `/usr/bin/file conftest.o` in
5727      *32-bit*)
5728	case $host in
5729	  x86_64-*kfreebsd*-gnu)
5730	    LD="${LD-ld} -m elf_i386_fbsd"
5731	    ;;
5732	  x86_64-*linux*)
5733	    LD="${LD-ld} -m elf_i386"
5734	    ;;
5735	  ppc64-*linux*|powerpc64-*linux*)
5736	    LD="${LD-ld} -m elf32ppclinux"
5737	    ;;
5738	  s390x-*linux*)
5739	    LD="${LD-ld} -m elf_s390"
5740	    ;;
5741	  sparc64-*linux*)
5742	    LD="${LD-ld} -m elf32_sparc"
5743	    ;;
5744	esac
5745	;;
5746      *64-bit*)
5747	case $host in
5748	  x86_64-*kfreebsd*-gnu)
5749	    LD="${LD-ld} -m elf_x86_64_fbsd"
5750	    ;;
5751	  x86_64-*linux*)
5752	    LD="${LD-ld} -m elf_x86_64"
5753	    ;;
5754	  ppc*-*linux*|powerpc*-*linux*)
5755	    LD="${LD-ld} -m elf64ppc"
5756	    ;;
5757	  s390*-*linux*|s390*-*tpf*)
5758	    LD="${LD-ld} -m elf64_s390"
5759	    ;;
5760	  sparc*-*linux*)
5761	    LD="${LD-ld} -m elf64_sparc"
5762	    ;;
5763	esac
5764	;;
5765    esac
5766  fi
5767  rm -rf conftest*
5768  ;;
5769
5770*-*-sco3.2v5*)
5771  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5772  SAVE_CFLAGS="$CFLAGS"
5773  CFLAGS="$CFLAGS -belf"
5774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5775$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5776if test "${lt_cv_cc_needs_belf+set}" = set; then :
5777  $as_echo_n "(cached) " >&6
5778else
5779  ac_ext=c
5780ac_cpp='$CPP $CPPFLAGS'
5781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784
5785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786/* end confdefs.h.  */
5787
5788int
5789main ()
5790{
5791
5792  ;
5793  return 0;
5794}
5795_ACEOF
5796if ac_fn_c_try_link "$LINENO"; then :
5797  lt_cv_cc_needs_belf=yes
5798else
5799  lt_cv_cc_needs_belf=no
5800fi
5801rm -f core conftest.err conftest.$ac_objext \
5802    conftest$ac_exeext conftest.$ac_ext
5803     ac_ext=c
5804ac_cpp='$CPP $CPPFLAGS'
5805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807ac_compiler_gnu=$ac_cv_c_compiler_gnu
5808
5809fi
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5811$as_echo "$lt_cv_cc_needs_belf" >&6; }
5812  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5813    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5814    CFLAGS="$SAVE_CFLAGS"
5815  fi
5816  ;;
5817sparc*-*solaris*)
5818  # Find out which ABI we are using.
5819  echo 'int i;' > conftest.$ac_ext
5820  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5821  (eval $ac_compile) 2>&5
5822  ac_status=$?
5823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5824  test $ac_status = 0; }; then
5825    case `/usr/bin/file conftest.o` in
5826    *64-bit*)
5827      case $lt_cv_prog_gnu_ld in
5828      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5829      *)
5830	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5831	  LD="${LD-ld} -64"
5832	fi
5833	;;
5834      esac
5835      ;;
5836    esac
5837  fi
5838  rm -rf conftest*
5839  ;;
5840esac
5841
5842need_locks="$enable_libtool_lock"
5843
5844
5845  case $host_os in
5846    rhapsody* | darwin*)
5847    if test -n "$ac_tool_prefix"; then
5848  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5849set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851$as_echo_n "checking for $ac_word... " >&6; }
5852if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5853  $as_echo_n "(cached) " >&6
5854else
5855  if test -n "$DSYMUTIL"; then
5856  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861  IFS=$as_save_IFS
5862  test -z "$as_dir" && as_dir=.
5863    for ac_exec_ext in '' $ac_executable_extensions; do
5864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867    break 2
5868  fi
5869done
5870  done
5871IFS=$as_save_IFS
5872
5873fi
5874fi
5875DSYMUTIL=$ac_cv_prog_DSYMUTIL
5876if test -n "$DSYMUTIL"; then
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5878$as_echo "$DSYMUTIL" >&6; }
5879else
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881$as_echo "no" >&6; }
5882fi
5883
5884
5885fi
5886if test -z "$ac_cv_prog_DSYMUTIL"; then
5887  ac_ct_DSYMUTIL=$DSYMUTIL
5888  # Extract the first word of "dsymutil", so it can be a program name with args.
5889set dummy dsymutil; ac_word=$2
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891$as_echo_n "checking for $ac_word... " >&6; }
5892if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5893  $as_echo_n "(cached) " >&6
5894else
5895  if test -n "$ac_ct_DSYMUTIL"; then
5896  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5897else
5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901  IFS=$as_save_IFS
5902  test -z "$as_dir" && as_dir=.
5903    for ac_exec_ext in '' $ac_executable_extensions; do
5904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907    break 2
5908  fi
5909done
5910  done
5911IFS=$as_save_IFS
5912
5913fi
5914fi
5915ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5916if test -n "$ac_ct_DSYMUTIL"; then
5917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5918$as_echo "$ac_ct_DSYMUTIL" >&6; }
5919else
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921$as_echo "no" >&6; }
5922fi
5923
5924  if test "x$ac_ct_DSYMUTIL" = x; then
5925    DSYMUTIL=":"
5926  else
5927    case $cross_compiling:$ac_tool_warned in
5928yes:)
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5931ac_tool_warned=yes ;;
5932esac
5933    DSYMUTIL=$ac_ct_DSYMUTIL
5934  fi
5935else
5936  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5937fi
5938
5939    if test -n "$ac_tool_prefix"; then
5940  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5941set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943$as_echo_n "checking for $ac_word... " >&6; }
5944if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  if test -n "$NMEDIT"; then
5948  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953  IFS=$as_save_IFS
5954  test -z "$as_dir" && as_dir=.
5955    for ac_exec_ext in '' $ac_executable_extensions; do
5956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959    break 2
5960  fi
5961done
5962  done
5963IFS=$as_save_IFS
5964
5965fi
5966fi
5967NMEDIT=$ac_cv_prog_NMEDIT
5968if test -n "$NMEDIT"; then
5969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5970$as_echo "$NMEDIT" >&6; }
5971else
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973$as_echo "no" >&6; }
5974fi
5975
5976
5977fi
5978if test -z "$ac_cv_prog_NMEDIT"; then
5979  ac_ct_NMEDIT=$NMEDIT
5980  # Extract the first word of "nmedit", so it can be a program name with args.
5981set dummy nmedit; ac_word=$2
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983$as_echo_n "checking for $ac_word... " >&6; }
5984if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  if test -n "$ac_ct_NMEDIT"; then
5988  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5989else
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993  IFS=$as_save_IFS
5994  test -z "$as_dir" && as_dir=.
5995    for ac_exec_ext in '' $ac_executable_extensions; do
5996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999    break 2
6000  fi
6001done
6002  done
6003IFS=$as_save_IFS
6004
6005fi
6006fi
6007ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6008if test -n "$ac_ct_NMEDIT"; then
6009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6010$as_echo "$ac_ct_NMEDIT" >&6; }
6011else
6012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014fi
6015
6016  if test "x$ac_ct_NMEDIT" = x; then
6017    NMEDIT=":"
6018  else
6019    case $cross_compiling:$ac_tool_warned in
6020yes:)
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6023ac_tool_warned=yes ;;
6024esac
6025    NMEDIT=$ac_ct_NMEDIT
6026  fi
6027else
6028  NMEDIT="$ac_cv_prog_NMEDIT"
6029fi
6030
6031    if test -n "$ac_tool_prefix"; then
6032  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6033set dummy ${ac_tool_prefix}lipo; ac_word=$2
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035$as_echo_n "checking for $ac_word... " >&6; }
6036if test "${ac_cv_prog_LIPO+set}" = set; then :
6037  $as_echo_n "(cached) " >&6
6038else
6039  if test -n "$LIPO"; then
6040  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045  IFS=$as_save_IFS
6046  test -z "$as_dir" && as_dir=.
6047    for ac_exec_ext in '' $ac_executable_extensions; do
6048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051    break 2
6052  fi
6053done
6054  done
6055IFS=$as_save_IFS
6056
6057fi
6058fi
6059LIPO=$ac_cv_prog_LIPO
6060if test -n "$LIPO"; then
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6062$as_echo "$LIPO" >&6; }
6063else
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066fi
6067
6068
6069fi
6070if test -z "$ac_cv_prog_LIPO"; then
6071  ac_ct_LIPO=$LIPO
6072  # Extract the first word of "lipo", so it can be a program name with args.
6073set dummy lipo; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
6076if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  if test -n "$ac_ct_LIPO"; then
6080  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085  IFS=$as_save_IFS
6086  test -z "$as_dir" && as_dir=.
6087    for ac_exec_ext in '' $ac_executable_extensions; do
6088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089    ac_cv_prog_ac_ct_LIPO="lipo"
6090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091    break 2
6092  fi
6093done
6094  done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6100if test -n "$ac_ct_LIPO"; then
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6102$as_echo "$ac_ct_LIPO" >&6; }
6103else
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108  if test "x$ac_ct_LIPO" = x; then
6109    LIPO=":"
6110  else
6111    case $cross_compiling:$ac_tool_warned in
6112yes:)
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115ac_tool_warned=yes ;;
6116esac
6117    LIPO=$ac_ct_LIPO
6118  fi
6119else
6120  LIPO="$ac_cv_prog_LIPO"
6121fi
6122
6123    if test -n "$ac_tool_prefix"; then
6124  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6125set dummy ${ac_tool_prefix}otool; ac_word=$2
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
6128if test "${ac_cv_prog_OTOOL+set}" = set; then :
6129  $as_echo_n "(cached) " >&6
6130else
6131  if test -n "$OTOOL"; then
6132  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137  IFS=$as_save_IFS
6138  test -z "$as_dir" && as_dir=.
6139    for ac_exec_ext in '' $ac_executable_extensions; do
6140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143    break 2
6144  fi
6145done
6146  done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151OTOOL=$ac_cv_prog_OTOOL
6152if test -n "$OTOOL"; then
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6154$as_echo "$OTOOL" >&6; }
6155else
6156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157$as_echo "no" >&6; }
6158fi
6159
6160
6161fi
6162if test -z "$ac_cv_prog_OTOOL"; then
6163  ac_ct_OTOOL=$OTOOL
6164  # Extract the first word of "otool", so it can be a program name with args.
6165set dummy otool; ac_word=$2
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167$as_echo_n "checking for $ac_word... " >&6; }
6168if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6169  $as_echo_n "(cached) " >&6
6170else
6171  if test -n "$ac_ct_OTOOL"; then
6172  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6173else
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177  IFS=$as_save_IFS
6178  test -z "$as_dir" && as_dir=.
6179    for ac_exec_ext in '' $ac_executable_extensions; do
6180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181    ac_cv_prog_ac_ct_OTOOL="otool"
6182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183    break 2
6184  fi
6185done
6186  done
6187IFS=$as_save_IFS
6188
6189fi
6190fi
6191ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6192if test -n "$ac_ct_OTOOL"; then
6193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6194$as_echo "$ac_ct_OTOOL" >&6; }
6195else
6196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197$as_echo "no" >&6; }
6198fi
6199
6200  if test "x$ac_ct_OTOOL" = x; then
6201    OTOOL=":"
6202  else
6203    case $cross_compiling:$ac_tool_warned in
6204yes:)
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207ac_tool_warned=yes ;;
6208esac
6209    OTOOL=$ac_ct_OTOOL
6210  fi
6211else
6212  OTOOL="$ac_cv_prog_OTOOL"
6213fi
6214
6215    if test -n "$ac_tool_prefix"; then
6216  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6217set dummy ${ac_tool_prefix}otool64; ac_word=$2
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219$as_echo_n "checking for $ac_word... " >&6; }
6220if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6221  $as_echo_n "(cached) " >&6
6222else
6223  if test -n "$OTOOL64"; then
6224  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231    for ac_exec_ext in '' $ac_executable_extensions; do
6232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238  done
6239IFS=$as_save_IFS
6240
6241fi
6242fi
6243OTOOL64=$ac_cv_prog_OTOOL64
6244if test -n "$OTOOL64"; then
6245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6246$as_echo "$OTOOL64" >&6; }
6247else
6248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249$as_echo "no" >&6; }
6250fi
6251
6252
6253fi
6254if test -z "$ac_cv_prog_OTOOL64"; then
6255  ac_ct_OTOOL64=$OTOOL64
6256  # Extract the first word of "otool64", so it can be a program name with args.
6257set dummy otool64; ac_word=$2
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259$as_echo_n "checking for $ac_word... " >&6; }
6260if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6261  $as_echo_n "(cached) " >&6
6262else
6263  if test -n "$ac_ct_OTOOL64"; then
6264  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6265else
6266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267for as_dir in $PATH
6268do
6269  IFS=$as_save_IFS
6270  test -z "$as_dir" && as_dir=.
6271    for ac_exec_ext in '' $ac_executable_extensions; do
6272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273    ac_cv_prog_ac_ct_OTOOL64="otool64"
6274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275    break 2
6276  fi
6277done
6278  done
6279IFS=$as_save_IFS
6280
6281fi
6282fi
6283ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6284if test -n "$ac_ct_OTOOL64"; then
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6286$as_echo "$ac_ct_OTOOL64" >&6; }
6287else
6288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289$as_echo "no" >&6; }
6290fi
6291
6292  if test "x$ac_ct_OTOOL64" = x; then
6293    OTOOL64=":"
6294  else
6295    case $cross_compiling:$ac_tool_warned in
6296yes:)
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299ac_tool_warned=yes ;;
6300esac
6301    OTOOL64=$ac_ct_OTOOL64
6302  fi
6303else
6304  OTOOL64="$ac_cv_prog_OTOOL64"
6305fi
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6334$as_echo_n "checking for -single_module linker flag... " >&6; }
6335if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  lt_cv_apple_cc_single_mod=no
6339      if test -z "${LT_MULTI_MODULE}"; then
6340	# By default we will add the -single_module flag. You can override
6341	# by either setting the environment variable LT_MULTI_MODULE
6342	# non-empty at configure time, or by adding -multi_module to the
6343	# link flags.
6344	rm -rf libconftest.dylib*
6345	echo "int foo(void){return 1;}" > conftest.c
6346	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6347-dynamiclib -Wl,-single_module conftest.c" >&5
6348	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6349	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6350        _lt_result=$?
6351	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6352	  lt_cv_apple_cc_single_mod=yes
6353	else
6354	  cat conftest.err >&5
6355	fi
6356	rm -rf libconftest.dylib*
6357	rm -f conftest.*
6358      fi
6359fi
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6361$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6362    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6363$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6364if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6365  $as_echo_n "(cached) " >&6
6366else
6367  lt_cv_ld_exported_symbols_list=no
6368      save_LDFLAGS=$LDFLAGS
6369      echo "_main" > conftest.sym
6370      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6371      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373
6374int
6375main ()
6376{
6377
6378  ;
6379  return 0;
6380}
6381_ACEOF
6382if ac_fn_c_try_link "$LINENO"; then :
6383  lt_cv_ld_exported_symbols_list=yes
6384else
6385  lt_cv_ld_exported_symbols_list=no
6386fi
6387rm -f core conftest.err conftest.$ac_objext \
6388    conftest$ac_exeext conftest.$ac_ext
6389	LDFLAGS="$save_LDFLAGS"
6390
6391fi
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6393$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6395$as_echo_n "checking for -force_load linker flag... " >&6; }
6396if test "${lt_cv_ld_force_load+set}" = set; then :
6397  $as_echo_n "(cached) " >&6
6398else
6399  lt_cv_ld_force_load=no
6400      cat > conftest.c << _LT_EOF
6401int forced_loaded() { return 2;}
6402_LT_EOF
6403      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6404      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6405      echo "$AR cru libconftest.a conftest.o" >&5
6406      $AR cru libconftest.a conftest.o 2>&5
6407      echo "$RANLIB libconftest.a" >&5
6408      $RANLIB libconftest.a 2>&5
6409      cat > conftest.c << _LT_EOF
6410int main() { return 0;}
6411_LT_EOF
6412      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6413      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6414      _lt_result=$?
6415      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6416	lt_cv_ld_force_load=yes
6417      else
6418	cat conftest.err >&5
6419      fi
6420        rm -f conftest.err libconftest.a conftest conftest.c
6421        rm -rf conftest.dSYM
6422
6423fi
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6425$as_echo "$lt_cv_ld_force_load" >&6; }
6426    case $host_os in
6427    rhapsody* | darwin1.[012])
6428      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6429    darwin1.*)
6430      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6431    darwin*) # darwin 5.x on
6432      # if running on 10.5 or later, the deployment target defaults
6433      # to the OS version, if on x86, and 10.4, the deployment
6434      # target defaults to 10.4. Don't you love it?
6435      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6436	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6437	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6438	10.[012]*)
6439	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6440	10.*)
6441	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6442      esac
6443    ;;
6444  esac
6445    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6446      _lt_dar_single_mod='$single_module'
6447    fi
6448    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6449      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6450    else
6451      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6452    fi
6453    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6454      _lt_dsymutil='~$DSYMUTIL $lib || :'
6455    else
6456      _lt_dsymutil=
6457    fi
6458    ;;
6459  esac
6460
6461ac_ext=c
6462ac_cpp='$CPP $CPPFLAGS'
6463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465ac_compiler_gnu=$ac_cv_c_compiler_gnu
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6467$as_echo_n "checking how to run the C preprocessor... " >&6; }
6468# On Suns, sometimes $CPP names a directory.
6469if test -n "$CPP" && test -d "$CPP"; then
6470  CPP=
6471fi
6472if test -z "$CPP"; then
6473  if test "${ac_cv_prog_CPP+set}" = set; then :
6474  $as_echo_n "(cached) " >&6
6475else
6476      # Double quotes because CPP needs to be expanded
6477    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6478    do
6479      ac_preproc_ok=false
6480for ac_c_preproc_warn_flag in '' yes
6481do
6482  # Use a header file that comes with gcc, so configuring glibc
6483  # with a fresh cross-compiler works.
6484  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6485  # <limits.h> exists even on freestanding compilers.
6486  # On the NeXT, cc -E runs the code through the compiler's parser,
6487  # not just through cpp. "Syntax error" is here to catch this case.
6488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489/* end confdefs.h.  */
6490#ifdef __STDC__
6491# include <limits.h>
6492#else
6493# include <assert.h>
6494#endif
6495		     Syntax error
6496_ACEOF
6497if ac_fn_c_try_cpp "$LINENO"; then :
6498
6499else
6500  # Broken: fails on valid input.
6501continue
6502fi
6503rm -f conftest.err conftest.$ac_ext
6504
6505  # OK, works on sane cases.  Now check whether nonexistent headers
6506  # can be detected and how.
6507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h.  */
6509#include <ac_nonexistent.h>
6510_ACEOF
6511if ac_fn_c_try_cpp "$LINENO"; then :
6512  # Broken: success on invalid input.
6513continue
6514else
6515  # Passes both tests.
6516ac_preproc_ok=:
6517break
6518fi
6519rm -f conftest.err conftest.$ac_ext
6520
6521done
6522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6523rm -f conftest.err conftest.$ac_ext
6524if $ac_preproc_ok; then :
6525  break
6526fi
6527
6528    done
6529    ac_cv_prog_CPP=$CPP
6530
6531fi
6532  CPP=$ac_cv_prog_CPP
6533else
6534  ac_cv_prog_CPP=$CPP
6535fi
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6537$as_echo "$CPP" >&6; }
6538ac_preproc_ok=false
6539for ac_c_preproc_warn_flag in '' yes
6540do
6541  # Use a header file that comes with gcc, so configuring glibc
6542  # with a fresh cross-compiler works.
6543  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6544  # <limits.h> exists even on freestanding compilers.
6545  # On the NeXT, cc -E runs the code through the compiler's parser,
6546  # not just through cpp. "Syntax error" is here to catch this case.
6547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549#ifdef __STDC__
6550# include <limits.h>
6551#else
6552# include <assert.h>
6553#endif
6554		     Syntax error
6555_ACEOF
6556if ac_fn_c_try_cpp "$LINENO"; then :
6557
6558else
6559  # Broken: fails on valid input.
6560continue
6561fi
6562rm -f conftest.err conftest.$ac_ext
6563
6564  # OK, works on sane cases.  Now check whether nonexistent headers
6565  # can be detected and how.
6566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567/* end confdefs.h.  */
6568#include <ac_nonexistent.h>
6569_ACEOF
6570if ac_fn_c_try_cpp "$LINENO"; then :
6571  # Broken: success on invalid input.
6572continue
6573else
6574  # Passes both tests.
6575ac_preproc_ok=:
6576break
6577fi
6578rm -f conftest.err conftest.$ac_ext
6579
6580done
6581# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6582rm -f conftest.err conftest.$ac_ext
6583if $ac_preproc_ok; then :
6584
6585else
6586  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6588as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6589See \`config.log' for more details" "$LINENO" 5; }
6590fi
6591
6592ac_ext=c
6593ac_cpp='$CPP $CPPFLAGS'
6594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597
6598
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6600$as_echo_n "checking for ANSI C header files... " >&6; }
6601if test "${ac_cv_header_stdc+set}" = set; then :
6602  $as_echo_n "(cached) " >&6
6603else
6604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605/* end confdefs.h.  */
6606#include <stdlib.h>
6607#include <stdarg.h>
6608#include <string.h>
6609#include <float.h>
6610
6611int
6612main ()
6613{
6614
6615  ;
6616  return 0;
6617}
6618_ACEOF
6619if ac_fn_c_try_compile "$LINENO"; then :
6620  ac_cv_header_stdc=yes
6621else
6622  ac_cv_header_stdc=no
6623fi
6624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625
6626if test $ac_cv_header_stdc = yes; then
6627  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h.  */
6630#include <string.h>
6631
6632_ACEOF
6633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634  $EGREP "memchr" >/dev/null 2>&1; then :
6635
6636else
6637  ac_cv_header_stdc=no
6638fi
6639rm -f conftest*
6640
6641fi
6642
6643if test $ac_cv_header_stdc = yes; then
6644  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h.  */
6647#include <stdlib.h>
6648
6649_ACEOF
6650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651  $EGREP "free" >/dev/null 2>&1; then :
6652
6653else
6654  ac_cv_header_stdc=no
6655fi
6656rm -f conftest*
6657
6658fi
6659
6660if test $ac_cv_header_stdc = yes; then
6661  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6662  if test "$cross_compiling" = yes; then :
6663  :
6664else
6665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h.  */
6667#include <ctype.h>
6668#include <stdlib.h>
6669#if ((' ' & 0x0FF) == 0x020)
6670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6672#else
6673# define ISLOWER(c) \
6674		   (('a' <= (c) && (c) <= 'i') \
6675		     || ('j' <= (c) && (c) <= 'r') \
6676		     || ('s' <= (c) && (c) <= 'z'))
6677# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6678#endif
6679
6680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6681int
6682main ()
6683{
6684  int i;
6685  for (i = 0; i < 256; i++)
6686    if (XOR (islower (i), ISLOWER (i))
6687	|| toupper (i) != TOUPPER (i))
6688      return 2;
6689  return 0;
6690}
6691_ACEOF
6692if ac_fn_c_try_run "$LINENO"; then :
6693
6694else
6695  ac_cv_header_stdc=no
6696fi
6697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6698  conftest.$ac_objext conftest.beam conftest.$ac_ext
6699fi
6700
6701fi
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6704$as_echo "$ac_cv_header_stdc" >&6; }
6705if test $ac_cv_header_stdc = yes; then
6706
6707$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6708
6709fi
6710
6711# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6713		  inttypes.h stdint.h unistd.h
6714do :
6715  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6716ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6717"
6718if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6719  cat >>confdefs.h <<_ACEOF
6720#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6721_ACEOF
6722
6723fi
6724
6725done
6726
6727
6728for ac_header in dlfcn.h
6729do :
6730  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6731"
6732if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6733  cat >>confdefs.h <<_ACEOF
6734#define HAVE_DLFCN_H 1
6735_ACEOF
6736
6737fi
6738
6739done
6740
6741
6742
6743
6744
6745# Set options
6746
6747
6748
6749        enable_dlopen=no
6750
6751
6752  enable_win32_dll=no
6753
6754
6755            # Check whether --enable-shared was given.
6756if test "${enable_shared+set}" = set; then :
6757  enableval=$enable_shared; p=${PACKAGE-default}
6758    case $enableval in
6759    yes) enable_shared=yes ;;
6760    no) enable_shared=no ;;
6761    *)
6762      enable_shared=no
6763      # Look at the argument we got.  We use all the common list separators.
6764      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6765      for pkg in $enableval; do
6766	IFS="$lt_save_ifs"
6767	if test "X$pkg" = "X$p"; then
6768	  enable_shared=yes
6769	fi
6770      done
6771      IFS="$lt_save_ifs"
6772      ;;
6773    esac
6774else
6775  enable_shared=yes
6776fi
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786  # Check whether --enable-static was given.
6787if test "${enable_static+set}" = set; then :
6788  enableval=$enable_static; p=${PACKAGE-default}
6789    case $enableval in
6790    yes) enable_static=yes ;;
6791    no) enable_static=no ;;
6792    *)
6793     enable_static=no
6794      # Look at the argument we got.  We use all the common list separators.
6795      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6796      for pkg in $enableval; do
6797	IFS="$lt_save_ifs"
6798	if test "X$pkg" = "X$p"; then
6799	  enable_static=yes
6800	fi
6801      done
6802      IFS="$lt_save_ifs"
6803      ;;
6804    esac
6805else
6806  enable_static=yes
6807fi
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818# Check whether --with-pic was given.
6819if test "${with_pic+set}" = set; then :
6820  withval=$with_pic; pic_mode="$withval"
6821else
6822  pic_mode=default
6823fi
6824
6825
6826test -z "$pic_mode" && pic_mode=default
6827
6828
6829
6830
6831
6832
6833
6834  # Check whether --enable-fast-install was given.
6835if test "${enable_fast_install+set}" = set; then :
6836  enableval=$enable_fast_install; p=${PACKAGE-default}
6837    case $enableval in
6838    yes) enable_fast_install=yes ;;
6839    no) enable_fast_install=no ;;
6840    *)
6841      enable_fast_install=no
6842      # Look at the argument we got.  We use all the common list separators.
6843      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6844      for pkg in $enableval; do
6845	IFS="$lt_save_ifs"
6846	if test "X$pkg" = "X$p"; then
6847	  enable_fast_install=yes
6848	fi
6849      done
6850      IFS="$lt_save_ifs"
6851      ;;
6852    esac
6853else
6854  enable_fast_install=yes
6855fi
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867# This can be used to rebuild libtool when needed
6868LIBTOOL_DEPS="$ltmain"
6869
6870# Always use our own libtool.
6871LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898test -z "$LN_S" && LN_S="ln -s"
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913if test -n "${ZSH_VERSION+set}" ; then
6914   setopt NO_GLOB_SUBST
6915fi
6916
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6918$as_echo_n "checking for objdir... " >&6; }
6919if test "${lt_cv_objdir+set}" = set; then :
6920  $as_echo_n "(cached) " >&6
6921else
6922  rm -f .libs 2>/dev/null
6923mkdir .libs 2>/dev/null
6924if test -d .libs; then
6925  lt_cv_objdir=.libs
6926else
6927  # MS-DOS does not allow filenames that begin with a dot.
6928  lt_cv_objdir=_libs
6929fi
6930rmdir .libs 2>/dev/null
6931fi
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6933$as_echo "$lt_cv_objdir" >&6; }
6934objdir=$lt_cv_objdir
6935
6936
6937
6938
6939
6940cat >>confdefs.h <<_ACEOF
6941#define LT_OBJDIR "$lt_cv_objdir/"
6942_ACEOF
6943
6944
6945
6946
6947case $host_os in
6948aix3*)
6949  # AIX sometimes has problems with the GCC collect2 program.  For some
6950  # reason, if we set the COLLECT_NAMES environment variable, the problems
6951  # vanish in a puff of smoke.
6952  if test "X${COLLECT_NAMES+set}" != Xset; then
6953    COLLECT_NAMES=
6954    export COLLECT_NAMES
6955  fi
6956  ;;
6957esac
6958
6959# Global variables:
6960ofile=libtool
6961can_build_shared=yes
6962
6963# All known linkers require a `.a' archive for static linking (except MSVC,
6964# which needs '.lib').
6965libext=a
6966
6967with_gnu_ld="$lt_cv_prog_gnu_ld"
6968
6969old_CC="$CC"
6970old_CFLAGS="$CFLAGS"
6971
6972# Set sane defaults for various variables
6973test -z "$CC" && CC=cc
6974test -z "$LTCC" && LTCC=$CC
6975test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6976test -z "$LD" && LD=ld
6977test -z "$ac_objext" && ac_objext=o
6978
6979for cc_temp in $compiler""; do
6980  case $cc_temp in
6981    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6982    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6983    \-*) ;;
6984    *) break;;
6985  esac
6986done
6987cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6988
6989
6990# Only perform the check for file, if the check method requires it
6991test -z "$MAGIC_CMD" && MAGIC_CMD=file
6992case $deplibs_check_method in
6993file_magic*)
6994  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6996$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6997if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6998  $as_echo_n "(cached) " >&6
6999else
7000  case $MAGIC_CMD in
7001[\\/*] |  ?:[\\/]*)
7002  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7003  ;;
7004*)
7005  lt_save_MAGIC_CMD="$MAGIC_CMD"
7006  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7007  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7008  for ac_dir in $ac_dummy; do
7009    IFS="$lt_save_ifs"
7010    test -z "$ac_dir" && ac_dir=.
7011    if test -f $ac_dir/${ac_tool_prefix}file; then
7012      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7013      if test -n "$file_magic_test_file"; then
7014	case $deplibs_check_method in
7015	"file_magic "*)
7016	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7017	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7018	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7019	    $EGREP "$file_magic_regex" > /dev/null; then
7020	    :
7021	  else
7022	    cat <<_LT_EOF 1>&2
7023
7024*** Warning: the command libtool uses to detect shared libraries,
7025*** $file_magic_cmd, produces output that libtool cannot recognize.
7026*** The result is that libtool may fail to recognize shared libraries
7027*** as such.  This will affect the creation of libtool libraries that
7028*** depend on shared libraries, but programs linked with such libtool
7029*** libraries will work regardless of this problem.  Nevertheless, you
7030*** may want to report the problem to your system manager and/or to
7031*** bug-libtool@gnu.org
7032
7033_LT_EOF
7034	  fi ;;
7035	esac
7036      fi
7037      break
7038    fi
7039  done
7040  IFS="$lt_save_ifs"
7041  MAGIC_CMD="$lt_save_MAGIC_CMD"
7042  ;;
7043esac
7044fi
7045
7046MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7047if test -n "$MAGIC_CMD"; then
7048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7049$as_echo "$MAGIC_CMD" >&6; }
7050else
7051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052$as_echo "no" >&6; }
7053fi
7054
7055
7056
7057
7058
7059if test -z "$lt_cv_path_MAGIC_CMD"; then
7060  if test -n "$ac_tool_prefix"; then
7061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7062$as_echo_n "checking for file... " >&6; }
7063if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7064  $as_echo_n "(cached) " >&6
7065else
7066  case $MAGIC_CMD in
7067[\\/*] |  ?:[\\/]*)
7068  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7069  ;;
7070*)
7071  lt_save_MAGIC_CMD="$MAGIC_CMD"
7072  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7073  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7074  for ac_dir in $ac_dummy; do
7075    IFS="$lt_save_ifs"
7076    test -z "$ac_dir" && ac_dir=.
7077    if test -f $ac_dir/file; then
7078      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7079      if test -n "$file_magic_test_file"; then
7080	case $deplibs_check_method in
7081	"file_magic "*)
7082	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7083	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7084	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7085	    $EGREP "$file_magic_regex" > /dev/null; then
7086	    :
7087	  else
7088	    cat <<_LT_EOF 1>&2
7089
7090*** Warning: the command libtool uses to detect shared libraries,
7091*** $file_magic_cmd, produces output that libtool cannot recognize.
7092*** The result is that libtool may fail to recognize shared libraries
7093*** as such.  This will affect the creation of libtool libraries that
7094*** depend on shared libraries, but programs linked with such libtool
7095*** libraries will work regardless of this problem.  Nevertheless, you
7096*** may want to report the problem to your system manager and/or to
7097*** bug-libtool@gnu.org
7098
7099_LT_EOF
7100	  fi ;;
7101	esac
7102      fi
7103      break
7104    fi
7105  done
7106  IFS="$lt_save_ifs"
7107  MAGIC_CMD="$lt_save_MAGIC_CMD"
7108  ;;
7109esac
7110fi
7111
7112MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7113if test -n "$MAGIC_CMD"; then
7114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7115$as_echo "$MAGIC_CMD" >&6; }
7116else
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118$as_echo "no" >&6; }
7119fi
7120
7121
7122  else
7123    MAGIC_CMD=:
7124  fi
7125fi
7126
7127  fi
7128  ;;
7129esac
7130
7131# Use C for the default configuration in the libtool script
7132
7133lt_save_CC="$CC"
7134ac_ext=c
7135ac_cpp='$CPP $CPPFLAGS'
7136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7138ac_compiler_gnu=$ac_cv_c_compiler_gnu
7139
7140
7141# Source file extension for C test sources.
7142ac_ext=c
7143
7144# Object file extension for compiled C test sources.
7145objext=o
7146objext=$objext
7147
7148# Code to be used in simple compile tests
7149lt_simple_compile_test_code="int some_variable = 0;"
7150
7151# Code to be used in simple link tests
7152lt_simple_link_test_code='int main(){return(0);}'
7153
7154
7155
7156
7157
7158
7159
7160# If no C compiler was specified, use CC.
7161LTCC=${LTCC-"$CC"}
7162
7163# If no C compiler flags were specified, use CFLAGS.
7164LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7165
7166# Allow CC to be a program name with arguments.
7167compiler=$CC
7168
7169# Save the default compiler, since it gets overwritten when the other
7170# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7171compiler_DEFAULT=$CC
7172
7173# save warnings/boilerplate of simple test code
7174ac_outfile=conftest.$ac_objext
7175echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7176eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7177_lt_compiler_boilerplate=`cat conftest.err`
7178$RM conftest*
7179
7180ac_outfile=conftest.$ac_objext
7181echo "$lt_simple_link_test_code" >conftest.$ac_ext
7182eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7183_lt_linker_boilerplate=`cat conftest.err`
7184$RM -r conftest*
7185
7186
7187if test -n "$compiler"; then
7188
7189lt_prog_compiler_no_builtin_flag=
7190
7191if test "$GCC" = yes; then
7192  case $cc_basename in
7193  nvcc*)
7194    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7195  *)
7196    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7197  esac
7198
7199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7200$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7201if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  lt_cv_prog_compiler_rtti_exceptions=no
7205   ac_outfile=conftest.$ac_objext
7206   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7207   lt_compiler_flag="-fno-rtti -fno-exceptions"
7208   # Insert the option either (1) after the last *FLAGS variable, or
7209   # (2) before a word containing "conftest.", or (3) at the end.
7210   # Note that $ac_compile itself does not contain backslashes and begins
7211   # with a dollar sign (not a hyphen), so the echo should work correctly.
7212   # The option is referenced via a variable to avoid confusing sed.
7213   lt_compile=`echo "$ac_compile" | $SED \
7214   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7215   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7216   -e 's:$: $lt_compiler_flag:'`
7217   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7218   (eval "$lt_compile" 2>conftest.err)
7219   ac_status=$?
7220   cat conftest.err >&5
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   if (exit $ac_status) && test -s "$ac_outfile"; then
7223     # The compiler can only warn and ignore the option if not recognized
7224     # So say no if there are warnings other than the usual output.
7225     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7226     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7227     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7228       lt_cv_prog_compiler_rtti_exceptions=yes
7229     fi
7230   fi
7231   $RM conftest*
7232
7233fi
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7235$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7236
7237if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7238    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7239else
7240    :
7241fi
7242
7243fi
7244
7245
7246
7247
7248
7249
7250  lt_prog_compiler_wl=
7251lt_prog_compiler_pic=
7252lt_prog_compiler_static=
7253
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7255$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7256
7257  if test "$GCC" = yes; then
7258    lt_prog_compiler_wl='-Wl,'
7259    lt_prog_compiler_static='-static'
7260
7261    case $host_os in
7262      aix*)
7263      # All AIX code is PIC.
7264      if test "$host_cpu" = ia64; then
7265	# AIX 5 now supports IA64 processor
7266	lt_prog_compiler_static='-Bstatic'
7267      fi
7268      ;;
7269
7270    amigaos*)
7271      case $host_cpu in
7272      powerpc)
7273            # see comment about AmigaOS4 .so support
7274            lt_prog_compiler_pic='-fPIC'
7275        ;;
7276      m68k)
7277            # FIXME: we need at least 68020 code to build shared libraries, but
7278            # adding the `-m68020' flag to GCC prevents building anything better,
7279            # like `-m68040'.
7280            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7281        ;;
7282      esac
7283      ;;
7284
7285    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7286      # PIC is the default for these OSes.
7287      ;;
7288
7289    mingw* | cygwin* | pw32* | os2* | cegcc*)
7290      # This hack is so that the source file can tell whether it is being
7291      # built for inclusion in a dll (and should export symbols for example).
7292      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7293      # (--disable-auto-import) libraries
7294      lt_prog_compiler_pic='-DDLL_EXPORT'
7295      ;;
7296
7297    darwin* | rhapsody*)
7298      # PIC is the default on this platform
7299      # Common symbols not allowed in MH_DYLIB files
7300      lt_prog_compiler_pic='-fno-common'
7301      ;;
7302
7303    haiku*)
7304      # PIC is the default for Haiku.
7305      # The "-static" flag exists, but is broken.
7306      lt_prog_compiler_static=
7307      ;;
7308
7309    hpux*)
7310      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7311      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7312      # sets the default TLS model and affects inlining.
7313      case $host_cpu in
7314      hppa*64*)
7315	# +Z the default
7316	;;
7317      *)
7318	lt_prog_compiler_pic='-fPIC'
7319	;;
7320      esac
7321      ;;
7322
7323    interix[3-9]*)
7324      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7325      # Instead, we relocate shared libraries at runtime.
7326      ;;
7327
7328    msdosdjgpp*)
7329      # Just because we use GCC doesn't mean we suddenly get shared libraries
7330      # on systems that don't support them.
7331      lt_prog_compiler_can_build_shared=no
7332      enable_shared=no
7333      ;;
7334
7335    *nto* | *qnx*)
7336      # QNX uses GNU C++, but need to define -shared option too, otherwise
7337      # it will coredump.
7338      lt_prog_compiler_pic='-fPIC -shared'
7339      ;;
7340
7341    sysv4*MP*)
7342      if test -d /usr/nec; then
7343	lt_prog_compiler_pic=-Kconform_pic
7344      fi
7345      ;;
7346
7347    *)
7348      lt_prog_compiler_pic='-fPIC'
7349      ;;
7350    esac
7351
7352    case $cc_basename in
7353    nvcc*) # Cuda Compiler Driver 2.2
7354      lt_prog_compiler_wl='-Xlinker '
7355      lt_prog_compiler_pic='-Xcompiler -fPIC'
7356      ;;
7357    esac
7358  else
7359    # PORTME Check for flag to pass linker flags through the system compiler.
7360    case $host_os in
7361    aix*)
7362      lt_prog_compiler_wl='-Wl,'
7363      if test "$host_cpu" = ia64; then
7364	# AIX 5 now supports IA64 processor
7365	lt_prog_compiler_static='-Bstatic'
7366      else
7367	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7368      fi
7369      ;;
7370
7371    mingw* | cygwin* | pw32* | os2* | cegcc*)
7372      # This hack is so that the source file can tell whether it is being
7373      # built for inclusion in a dll (and should export symbols for example).
7374      lt_prog_compiler_pic='-DDLL_EXPORT'
7375      ;;
7376
7377    hpux9* | hpux10* | hpux11*)
7378      lt_prog_compiler_wl='-Wl,'
7379      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7380      # not for PA HP-UX.
7381      case $host_cpu in
7382      hppa*64*|ia64*)
7383	# +Z the default
7384	;;
7385      *)
7386	lt_prog_compiler_pic='+Z'
7387	;;
7388      esac
7389      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7390      lt_prog_compiler_static='${wl}-a ${wl}archive'
7391      ;;
7392
7393    irix5* | irix6* | nonstopux*)
7394      lt_prog_compiler_wl='-Wl,'
7395      # PIC (with -KPIC) is the default.
7396      lt_prog_compiler_static='-non_shared'
7397      ;;
7398
7399    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7400      case $cc_basename in
7401      # old Intel for x86_64 which still supported -KPIC.
7402      ecc*)
7403	lt_prog_compiler_wl='-Wl,'
7404	lt_prog_compiler_pic='-KPIC'
7405	lt_prog_compiler_static='-static'
7406        ;;
7407      # icc used to be incompatible with GCC.
7408      # ICC 10 doesn't accept -KPIC any more.
7409      icc* | ifort*)
7410	lt_prog_compiler_wl='-Wl,'
7411	lt_prog_compiler_pic='-fPIC'
7412	lt_prog_compiler_static='-static'
7413        ;;
7414      # Lahey Fortran 8.1.
7415      lf95*)
7416	lt_prog_compiler_wl='-Wl,'
7417	lt_prog_compiler_pic='--shared'
7418	lt_prog_compiler_static='--static'
7419	;;
7420      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7421        # Portland Group compilers (*not* the Pentium gcc compiler,
7422	# which looks to be a dead project)
7423	lt_prog_compiler_wl='-Wl,'
7424	lt_prog_compiler_pic='-fpic'
7425	lt_prog_compiler_static='-Bstatic'
7426        ;;
7427      ccc*)
7428        lt_prog_compiler_wl='-Wl,'
7429        # All Alpha code is PIC.
7430        lt_prog_compiler_static='-non_shared'
7431        ;;
7432      xl* | bgxl* | bgf* | mpixl*)
7433	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7434	lt_prog_compiler_wl='-Wl,'
7435	lt_prog_compiler_pic='-qpic'
7436	lt_prog_compiler_static='-qstaticlink'
7437	;;
7438      *)
7439	case `$CC -V 2>&1 | sed 5q` in
7440	*Sun\ F* | *Sun*Fortran*)
7441	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7442	  lt_prog_compiler_pic='-KPIC'
7443	  lt_prog_compiler_static='-Bstatic'
7444	  lt_prog_compiler_wl=''
7445	  ;;
7446	*Sun\ C*)
7447	  # Sun C 5.9
7448	  lt_prog_compiler_pic='-KPIC'
7449	  lt_prog_compiler_static='-Bstatic'
7450	  lt_prog_compiler_wl='-Wl,'
7451	  ;;
7452	esac
7453	;;
7454      esac
7455      ;;
7456
7457    newsos6)
7458      lt_prog_compiler_pic='-KPIC'
7459      lt_prog_compiler_static='-Bstatic'
7460      ;;
7461
7462    *nto* | *qnx*)
7463      # QNX uses GNU C++, but need to define -shared option too, otherwise
7464      # it will coredump.
7465      lt_prog_compiler_pic='-fPIC -shared'
7466      ;;
7467
7468    osf3* | osf4* | osf5*)
7469      lt_prog_compiler_wl='-Wl,'
7470      # All OSF/1 code is PIC.
7471      lt_prog_compiler_static='-non_shared'
7472      ;;
7473
7474    rdos*)
7475      lt_prog_compiler_static='-non_shared'
7476      ;;
7477
7478    solaris*)
7479      lt_prog_compiler_pic='-KPIC'
7480      lt_prog_compiler_static='-Bstatic'
7481      case $cc_basename in
7482      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7483	lt_prog_compiler_wl='-Qoption ld ';;
7484      *)
7485	lt_prog_compiler_wl='-Wl,';;
7486      esac
7487      ;;
7488
7489    sunos4*)
7490      lt_prog_compiler_wl='-Qoption ld '
7491      lt_prog_compiler_pic='-PIC'
7492      lt_prog_compiler_static='-Bstatic'
7493      ;;
7494
7495    sysv4 | sysv4.2uw2* | sysv4.3*)
7496      lt_prog_compiler_wl='-Wl,'
7497      lt_prog_compiler_pic='-KPIC'
7498      lt_prog_compiler_static='-Bstatic'
7499      ;;
7500
7501    sysv4*MP*)
7502      if test -d /usr/nec ;then
7503	lt_prog_compiler_pic='-Kconform_pic'
7504	lt_prog_compiler_static='-Bstatic'
7505      fi
7506      ;;
7507
7508    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7509      lt_prog_compiler_wl='-Wl,'
7510      lt_prog_compiler_pic='-KPIC'
7511      lt_prog_compiler_static='-Bstatic'
7512      ;;
7513
7514    unicos*)
7515      lt_prog_compiler_wl='-Wl,'
7516      lt_prog_compiler_can_build_shared=no
7517      ;;
7518
7519    uts4*)
7520      lt_prog_compiler_pic='-pic'
7521      lt_prog_compiler_static='-Bstatic'
7522      ;;
7523
7524    *)
7525      lt_prog_compiler_can_build_shared=no
7526      ;;
7527    esac
7528  fi
7529
7530case $host_os in
7531  # For platforms which do not support PIC, -DPIC is meaningless:
7532  *djgpp*)
7533    lt_prog_compiler_pic=
7534    ;;
7535  *)
7536    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7537    ;;
7538esac
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7540$as_echo "$lt_prog_compiler_pic" >&6; }
7541
7542
7543
7544
7545
7546
7547#
7548# Check to make sure the PIC flag actually works.
7549#
7550if test -n "$lt_prog_compiler_pic"; then
7551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7552$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7553if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  lt_cv_prog_compiler_pic_works=no
7557   ac_outfile=conftest.$ac_objext
7558   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7559   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7560   # Insert the option either (1) after the last *FLAGS variable, or
7561   # (2) before a word containing "conftest.", or (3) at the end.
7562   # Note that $ac_compile itself does not contain backslashes and begins
7563   # with a dollar sign (not a hyphen), so the echo should work correctly.
7564   # The option is referenced via a variable to avoid confusing sed.
7565   lt_compile=`echo "$ac_compile" | $SED \
7566   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7567   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7568   -e 's:$: $lt_compiler_flag:'`
7569   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7570   (eval "$lt_compile" 2>conftest.err)
7571   ac_status=$?
7572   cat conftest.err >&5
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   if (exit $ac_status) && test -s "$ac_outfile"; then
7575     # The compiler can only warn and ignore the option if not recognized
7576     # So say no if there are warnings other than the usual output.
7577     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7578     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7579     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7580       lt_cv_prog_compiler_pic_works=yes
7581     fi
7582   fi
7583   $RM conftest*
7584
7585fi
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7587$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7588
7589if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7590    case $lt_prog_compiler_pic in
7591     "" | " "*) ;;
7592     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7593     esac
7594else
7595    lt_prog_compiler_pic=
7596     lt_prog_compiler_can_build_shared=no
7597fi
7598
7599fi
7600
7601
7602
7603
7604
7605
7606#
7607# Check to make sure the static flag actually works.
7608#
7609wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7611$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7612if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7613  $as_echo_n "(cached) " >&6
7614else
7615  lt_cv_prog_compiler_static_works=no
7616   save_LDFLAGS="$LDFLAGS"
7617   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7618   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7619   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7620     # The linker can only warn and ignore the option if not recognized
7621     # So say no if there are warnings
7622     if test -s conftest.err; then
7623       # Append any errors to the config.log.
7624       cat conftest.err 1>&5
7625       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7626       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7627       if diff conftest.exp conftest.er2 >/dev/null; then
7628         lt_cv_prog_compiler_static_works=yes
7629       fi
7630     else
7631       lt_cv_prog_compiler_static_works=yes
7632     fi
7633   fi
7634   $RM -r conftest*
7635   LDFLAGS="$save_LDFLAGS"
7636
7637fi
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7639$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7640
7641if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7642    :
7643else
7644    lt_prog_compiler_static=
7645fi
7646
7647
7648
7649
7650
7651
7652
7653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7654$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7655if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7656  $as_echo_n "(cached) " >&6
7657else
7658  lt_cv_prog_compiler_c_o=no
7659   $RM -r conftest 2>/dev/null
7660   mkdir conftest
7661   cd conftest
7662   mkdir out
7663   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7664
7665   lt_compiler_flag="-o out/conftest2.$ac_objext"
7666   # Insert the option either (1) after the last *FLAGS variable, or
7667   # (2) before a word containing "conftest.", or (3) at the end.
7668   # Note that $ac_compile itself does not contain backslashes and begins
7669   # with a dollar sign (not a hyphen), so the echo should work correctly.
7670   lt_compile=`echo "$ac_compile" | $SED \
7671   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7672   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7673   -e 's:$: $lt_compiler_flag:'`
7674   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7675   (eval "$lt_compile" 2>out/conftest.err)
7676   ac_status=$?
7677   cat out/conftest.err >&5
7678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7680   then
7681     # The compiler can only warn and ignore the option if not recognized
7682     # So say no if there are warnings
7683     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7684     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7685     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7686       lt_cv_prog_compiler_c_o=yes
7687     fi
7688   fi
7689   chmod u+w . 2>&5
7690   $RM conftest*
7691   # SGI C++ compiler will create directory out/ii_files/ for
7692   # template instantiation
7693   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7694   $RM out/* && rmdir out
7695   cd ..
7696   $RM -r conftest
7697   $RM conftest*
7698
7699fi
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7701$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7702
7703
7704
7705
7706
7707
7708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7709$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7710if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7711  $as_echo_n "(cached) " >&6
7712else
7713  lt_cv_prog_compiler_c_o=no
7714   $RM -r conftest 2>/dev/null
7715   mkdir conftest
7716   cd conftest
7717   mkdir out
7718   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7719
7720   lt_compiler_flag="-o out/conftest2.$ac_objext"
7721   # Insert the option either (1) after the last *FLAGS variable, or
7722   # (2) before a word containing "conftest.", or (3) at the end.
7723   # Note that $ac_compile itself does not contain backslashes and begins
7724   # with a dollar sign (not a hyphen), so the echo should work correctly.
7725   lt_compile=`echo "$ac_compile" | $SED \
7726   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7727   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7728   -e 's:$: $lt_compiler_flag:'`
7729   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7730   (eval "$lt_compile" 2>out/conftest.err)
7731   ac_status=$?
7732   cat out/conftest.err >&5
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7735   then
7736     # The compiler can only warn and ignore the option if not recognized
7737     # So say no if there are warnings
7738     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7739     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7740     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7741       lt_cv_prog_compiler_c_o=yes
7742     fi
7743   fi
7744   chmod u+w . 2>&5
7745   $RM conftest*
7746   # SGI C++ compiler will create directory out/ii_files/ for
7747   # template instantiation
7748   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7749   $RM out/* && rmdir out
7750   cd ..
7751   $RM -r conftest
7752   $RM conftest*
7753
7754fi
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7756$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7757
7758
7759
7760
7761hard_links="nottested"
7762if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7763  # do not overwrite the value of need_locks provided by the user
7764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7765$as_echo_n "checking if we can lock with hard links... " >&6; }
7766  hard_links=yes
7767  $RM conftest*
7768  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7769  touch conftest.a
7770  ln conftest.a conftest.b 2>&5 || hard_links=no
7771  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7773$as_echo "$hard_links" >&6; }
7774  if test "$hard_links" = no; then
7775    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7776$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7777    need_locks=warn
7778  fi
7779else
7780  need_locks=no
7781fi
7782
7783
7784
7785
7786
7787
7788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7789$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7790
7791  runpath_var=
7792  allow_undefined_flag=
7793  always_export_symbols=no
7794  archive_cmds=
7795  archive_expsym_cmds=
7796  compiler_needs_object=no
7797  enable_shared_with_static_runtimes=no
7798  export_dynamic_flag_spec=
7799  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7800  hardcode_automatic=no
7801  hardcode_direct=no
7802  hardcode_direct_absolute=no
7803  hardcode_libdir_flag_spec=
7804  hardcode_libdir_flag_spec_ld=
7805  hardcode_libdir_separator=
7806  hardcode_minus_L=no
7807  hardcode_shlibpath_var=unsupported
7808  inherit_rpath=no
7809  link_all_deplibs=unknown
7810  module_cmds=
7811  module_expsym_cmds=
7812  old_archive_from_new_cmds=
7813  old_archive_from_expsyms_cmds=
7814  thread_safe_flag_spec=
7815  whole_archive_flag_spec=
7816  # include_expsyms should be a list of space-separated symbols to be *always*
7817  # included in the symbol list
7818  include_expsyms=
7819  # exclude_expsyms can be an extended regexp of symbols to exclude
7820  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7821  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7822  # as well as any symbol that contains `d'.
7823  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7824  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7825  # platforms (ab)use it in PIC code, but their linkers get confused if
7826  # the symbol is explicitly referenced.  Since portable code cannot
7827  # rely on this symbol name, it's probably fine to never include it in
7828  # preloaded symbol tables.
7829  # Exclude shared library initialization/finalization symbols.
7830  extract_expsyms_cmds=
7831
7832  case $host_os in
7833  cygwin* | mingw* | pw32* | cegcc*)
7834    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7835    # When not using gcc, we currently assume that we are using
7836    # Microsoft Visual C++.
7837    if test "$GCC" != yes; then
7838      with_gnu_ld=no
7839    fi
7840    ;;
7841  interix*)
7842    # we just hope/assume this is gcc and not c89 (= MSVC++)
7843    with_gnu_ld=yes
7844    ;;
7845  openbsd*)
7846    with_gnu_ld=no
7847    ;;
7848  esac
7849
7850  ld_shlibs=yes
7851
7852  # On some targets, GNU ld is compatible enough with the native linker
7853  # that we're better off using the native interface for both.
7854  lt_use_gnu_ld_interface=no
7855  if test "$with_gnu_ld" = yes; then
7856    case $host_os in
7857      aix*)
7858	# The AIX port of GNU ld has always aspired to compatibility
7859	# with the native linker.  However, as the warning in the GNU ld
7860	# block says, versions before 2.19.5* couldn't really create working
7861	# shared libraries, regardless of the interface used.
7862	case `$LD -v 2>&1` in
7863	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7864	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7865	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7866	  *)
7867	    lt_use_gnu_ld_interface=yes
7868	    ;;
7869	esac
7870	;;
7871      *)
7872	lt_use_gnu_ld_interface=yes
7873	;;
7874    esac
7875  fi
7876
7877  if test "$lt_use_gnu_ld_interface" = yes; then
7878    # If archive_cmds runs LD, not CC, wlarc should be empty
7879    wlarc='${wl}'
7880
7881    # Set some defaults for GNU ld with shared library support. These
7882    # are reset later if shared libraries are not supported. Putting them
7883    # here allows them to be overridden if necessary.
7884    runpath_var=LD_RUN_PATH
7885    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7886    export_dynamic_flag_spec='${wl}--export-dynamic'
7887    # ancient GNU ld didn't support --whole-archive et. al.
7888    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7889      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7890    else
7891      whole_archive_flag_spec=
7892    fi
7893    supports_anon_versioning=no
7894    case `$LD -v 2>&1` in
7895      *GNU\ gold*) supports_anon_versioning=yes ;;
7896      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7897      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7898      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7899      *\ 2.11.*) ;; # other 2.11 versions
7900      *) supports_anon_versioning=yes ;;
7901    esac
7902
7903    # See if GNU ld supports shared libraries.
7904    case $host_os in
7905    aix[3-9]*)
7906      # On AIX/PPC, the GNU linker is very broken
7907      if test "$host_cpu" != ia64; then
7908	ld_shlibs=no
7909	cat <<_LT_EOF 1>&2
7910
7911*** Warning: the GNU linker, at least up to release 2.19, is reported
7912*** to be unable to reliably create shared libraries on AIX.
7913*** Therefore, libtool is disabling shared libraries support.  If you
7914*** really care for shared libraries, you may want to install binutils
7915*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7916*** You will then need to restart the configuration process.
7917
7918_LT_EOF
7919      fi
7920      ;;
7921
7922    amigaos*)
7923      case $host_cpu in
7924      powerpc)
7925            # see comment about AmigaOS4 .so support
7926            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7927            archive_expsym_cmds=''
7928        ;;
7929      m68k)
7930            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)'
7931            hardcode_libdir_flag_spec='-L$libdir'
7932            hardcode_minus_L=yes
7933        ;;
7934      esac
7935      ;;
7936
7937    beos*)
7938      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7939	allow_undefined_flag=unsupported
7940	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7941	# support --undefined.  This deserves some investigation.  FIXME
7942	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7943      else
7944	ld_shlibs=no
7945      fi
7946      ;;
7947
7948    cygwin* | mingw* | pw32* | cegcc*)
7949      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7950      # as there is no search path for DLLs.
7951      hardcode_libdir_flag_spec='-L$libdir'
7952      export_dynamic_flag_spec='${wl}--export-all-symbols'
7953      allow_undefined_flag=unsupported
7954      always_export_symbols=no
7955      enable_shared_with_static_runtimes=yes
7956      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7957
7958      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7959        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7960	# If the export-symbols file already is a .def file (1st line
7961	# is EXPORTS), use it as is; otherwise, prepend...
7962	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7963	  cp $export_symbols $output_objdir/$soname.def;
7964	else
7965	  echo EXPORTS > $output_objdir/$soname.def;
7966	  cat $export_symbols >> $output_objdir/$soname.def;
7967	fi~
7968	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7969      else
7970	ld_shlibs=no
7971      fi
7972      ;;
7973
7974    haiku*)
7975      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7976      link_all_deplibs=yes
7977      ;;
7978
7979    interix[3-9]*)
7980      hardcode_direct=no
7981      hardcode_shlibpath_var=no
7982      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7983      export_dynamic_flag_spec='${wl}-E'
7984      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7985      # Instead, shared libraries are loaded at an image base (0x10000000 by
7986      # default) and relocated if they conflict, which is a slow very memory
7987      # consuming and fragmenting process.  To avoid this, we pick a random,
7988      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7989      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7990      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7991      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'
7992      ;;
7993
7994    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7995      tmp_diet=no
7996      if test "$host_os" = linux-dietlibc; then
7997	case $cc_basename in
7998	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7999	esac
8000      fi
8001      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8002	 && test "$tmp_diet" = no
8003      then
8004	tmp_addflag=
8005	tmp_sharedflag='-shared'
8006	case $cc_basename,$host_cpu in
8007        pgcc*)				# Portland Group C compiler
8008	  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'
8009	  tmp_addflag=' $pic_flag'
8010	  ;;
8011	pgf77* | pgf90* | pgf95* | pgfortran*)
8012					# Portland Group f77 and f90 compilers
8013	  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'
8014	  tmp_addflag=' $pic_flag -Mnomain' ;;
8015	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8016	  tmp_addflag=' -i_dynamic' ;;
8017	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8018	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8019	ifc* | ifort*)			# Intel Fortran compiler
8020	  tmp_addflag=' -nofor_main' ;;
8021	lf95*)				# Lahey Fortran 8.1
8022	  whole_archive_flag_spec=
8023	  tmp_sharedflag='--shared' ;;
8024	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8025	  tmp_sharedflag='-qmkshrobj'
8026	  tmp_addflag= ;;
8027	nvcc*)	# Cuda Compiler Driver 2.2
8028	  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'
8029	  compiler_needs_object=yes
8030	  ;;
8031	esac
8032	case `$CC -V 2>&1 | sed 5q` in
8033	*Sun\ C*)			# Sun C 5.9
8034	  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'
8035	  compiler_needs_object=yes
8036	  tmp_sharedflag='-G' ;;
8037	*Sun\ F*)			# Sun Fortran 8.3
8038	  tmp_sharedflag='-G' ;;
8039	esac
8040	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8041
8042        if test "x$supports_anon_versioning" = xyes; then
8043          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8044	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8045	    echo "local: *; };" >> $output_objdir/$libname.ver~
8046	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8047        fi
8048
8049	case $cc_basename in
8050	xlf* | bgf* | bgxlf* | mpixlf*)
8051	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8052	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8053	  hardcode_libdir_flag_spec=
8054	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8055	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8056	  if test "x$supports_anon_versioning" = xyes; then
8057	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8058	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8059	      echo "local: *; };" >> $output_objdir/$libname.ver~
8060	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8061	  fi
8062	  ;;
8063	esac
8064      else
8065        ld_shlibs=no
8066      fi
8067      ;;
8068
8069    netbsd*)
8070      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8071	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8072	wlarc=
8073      else
8074	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8075	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8076      fi
8077      ;;
8078
8079    solaris*)
8080      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8081	ld_shlibs=no
8082	cat <<_LT_EOF 1>&2
8083
8084*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8085*** create shared libraries on Solaris systems.  Therefore, libtool
8086*** is disabling shared libraries support.  We urge you to upgrade GNU
8087*** binutils to release 2.9.1 or newer.  Another option is to modify
8088*** your PATH or compiler configuration so that the native linker is
8089*** used, and then restart.
8090
8091_LT_EOF
8092      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8093	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8094	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8095      else
8096	ld_shlibs=no
8097      fi
8098      ;;
8099
8100    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8101      case `$LD -v 2>&1` in
8102        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8103	ld_shlibs=no
8104	cat <<_LT_EOF 1>&2
8105
8106*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8107*** reliably create shared libraries on SCO systems.  Therefore, libtool
8108*** is disabling shared libraries support.  We urge you to upgrade GNU
8109*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8110*** your PATH or compiler configuration so that the native linker is
8111*** used, and then restart.
8112
8113_LT_EOF
8114	;;
8115	*)
8116	  # For security reasons, it is highly recommended that you always
8117	  # use absolute paths for naming shared libraries, and exclude the
8118	  # DT_RUNPATH tag from executables and libraries.  But doing so
8119	  # requires that you compile everything twice, which is a pain.
8120	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8121	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8122	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8123	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8124	  else
8125	    ld_shlibs=no
8126	  fi
8127	;;
8128      esac
8129      ;;
8130
8131    sunos4*)
8132      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8133      wlarc=
8134      hardcode_direct=yes
8135      hardcode_shlibpath_var=no
8136      ;;
8137
8138    *)
8139      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8140	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8141	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8142      else
8143	ld_shlibs=no
8144      fi
8145      ;;
8146    esac
8147
8148    if test "$ld_shlibs" = no; then
8149      runpath_var=
8150      hardcode_libdir_flag_spec=
8151      export_dynamic_flag_spec=
8152      whole_archive_flag_spec=
8153    fi
8154  else
8155    # PORTME fill in a description of your system's linker (not GNU ld)
8156    case $host_os in
8157    aix3*)
8158      allow_undefined_flag=unsupported
8159      always_export_symbols=yes
8160      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'
8161      # Note: this linker hardcodes the directories in LIBPATH if there
8162      # are no directories specified by -L.
8163      hardcode_minus_L=yes
8164      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8165	# Neither direct hardcoding nor static linking is supported with a
8166	# broken collect2.
8167	hardcode_direct=unsupported
8168      fi
8169      ;;
8170
8171    aix[4-9]*)
8172      if test "$host_cpu" = ia64; then
8173	# On IA64, the linker does run time linking by default, so we don't
8174	# have to do anything special.
8175	aix_use_runtimelinking=no
8176	exp_sym_flag='-Bexport'
8177	no_entry_flag=""
8178      else
8179	# If we're using GNU nm, then we don't want the "-C" option.
8180	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8181	# Also, AIX nm treats weak defined symbols like other global
8182	# defined symbols, whereas GNU nm marks them as "W".
8183	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8184	  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'
8185	else
8186	  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'
8187	fi
8188	aix_use_runtimelinking=no
8189
8190	# Test if we are trying to use run time linking or normal
8191	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8192	# need to do runtime linking.
8193	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8194	  for ld_flag in $LDFLAGS; do
8195	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8196	    aix_use_runtimelinking=yes
8197	    break
8198	  fi
8199	  done
8200	  ;;
8201	esac
8202
8203	exp_sym_flag='-bexport'
8204	no_entry_flag='-bnoentry'
8205      fi
8206
8207      # When large executables or shared objects are built, AIX ld can
8208      # have problems creating the table of contents.  If linking a library
8209      # or program results in "error TOC overflow" add -mminimal-toc to
8210      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8211      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8212
8213      archive_cmds=''
8214      hardcode_direct=yes
8215      hardcode_direct_absolute=yes
8216      hardcode_libdir_separator=':'
8217      link_all_deplibs=yes
8218      file_list_spec='${wl}-f,'
8219
8220      if test "$GCC" = yes; then
8221	case $host_os in aix4.[012]|aix4.[012].*)
8222	# We only want to do this on AIX 4.2 and lower, the check
8223	# below for broken collect2 doesn't work under 4.3+
8224	  collect2name=`${CC} -print-prog-name=collect2`
8225	  if test -f "$collect2name" &&
8226	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8227	  then
8228	  # We have reworked collect2
8229	  :
8230	  else
8231	  # We have old collect2
8232	  hardcode_direct=unsupported
8233	  # It fails to find uninstalled libraries when the uninstalled
8234	  # path is not listed in the libpath.  Setting hardcode_minus_L
8235	  # to unsupported forces relinking
8236	  hardcode_minus_L=yes
8237	  hardcode_libdir_flag_spec='-L$libdir'
8238	  hardcode_libdir_separator=
8239	  fi
8240	  ;;
8241	esac
8242	shared_flag='-shared'
8243	if test "$aix_use_runtimelinking" = yes; then
8244	  shared_flag="$shared_flag "'${wl}-G'
8245	fi
8246      else
8247	# not using gcc
8248	if test "$host_cpu" = ia64; then
8249	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8250	# chokes on -Wl,-G. The following line is correct:
8251	  shared_flag='-G'
8252	else
8253	  if test "$aix_use_runtimelinking" = yes; then
8254	    shared_flag='${wl}-G'
8255	  else
8256	    shared_flag='${wl}-bM:SRE'
8257	  fi
8258	fi
8259      fi
8260
8261      export_dynamic_flag_spec='${wl}-bexpall'
8262      # It seems that -bexpall does not export symbols beginning with
8263      # underscore (_), so it is better to generate a list of symbols to export.
8264      always_export_symbols=yes
8265      if test "$aix_use_runtimelinking" = yes; then
8266	# Warning - without using the other runtime loading flags (-brtl),
8267	# -berok will link without error, but may produce a broken library.
8268	allow_undefined_flag='-berok'
8269        # Determine the default libpath from the value encoded in an
8270        # empty executable.
8271        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273
8274int
8275main ()
8276{
8277
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_link "$LINENO"; then :
8283
8284lt_aix_libpath_sed='
8285    /Import File Strings/,/^$/ {
8286	/^0/ {
8287	    s/^0  *\(.*\)$/\1/
8288	    p
8289	}
8290    }'
8291aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8292# Check for a 64-bit object if we didn't find anything.
8293if test -z "$aix_libpath"; then
8294  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8295fi
8296fi
8297rm -f core conftest.err conftest.$ac_objext \
8298    conftest$ac_exeext conftest.$ac_ext
8299if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8300
8301        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8302        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"
8303      else
8304	if test "$host_cpu" = ia64; then
8305	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8306	  allow_undefined_flag="-z nodefs"
8307	  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"
8308	else
8309	 # Determine the default libpath from the value encoded in an
8310	 # empty executable.
8311	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312/* end confdefs.h.  */
8313
8314int
8315main ()
8316{
8317
8318  ;
8319  return 0;
8320}
8321_ACEOF
8322if ac_fn_c_try_link "$LINENO"; then :
8323
8324lt_aix_libpath_sed='
8325    /Import File Strings/,/^$/ {
8326	/^0/ {
8327	    s/^0  *\(.*\)$/\1/
8328	    p
8329	}
8330    }'
8331aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8332# Check for a 64-bit object if we didn't find anything.
8333if test -z "$aix_libpath"; then
8334  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8335fi
8336fi
8337rm -f core conftest.err conftest.$ac_objext \
8338    conftest$ac_exeext conftest.$ac_ext
8339if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8340
8341	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8342	  # Warning - without using the other run time loading flags,
8343	  # -berok will link without error, but may produce a broken library.
8344	  no_undefined_flag=' ${wl}-bernotok'
8345	  allow_undefined_flag=' ${wl}-berok'
8346	  if test "$with_gnu_ld" = yes; then
8347	    # We only use this code for GNU lds that support --whole-archive.
8348	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8349	  else
8350	    # Exported symbols can be pulled into shared objects from archives
8351	    whole_archive_flag_spec='$convenience'
8352	  fi
8353	  archive_cmds_need_lc=yes
8354	  # This is similar to how AIX traditionally builds its shared libraries.
8355	  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'
8356	fi
8357      fi
8358      ;;
8359
8360    amigaos*)
8361      case $host_cpu in
8362      powerpc)
8363            # see comment about AmigaOS4 .so support
8364            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365            archive_expsym_cmds=''
8366        ;;
8367      m68k)
8368            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)'
8369            hardcode_libdir_flag_spec='-L$libdir'
8370            hardcode_minus_L=yes
8371        ;;
8372      esac
8373      ;;
8374
8375    bsdi[45]*)
8376      export_dynamic_flag_spec=-rdynamic
8377      ;;
8378
8379    cygwin* | mingw* | pw32* | cegcc*)
8380      # When not using gcc, we currently assume that we are using
8381      # Microsoft Visual C++.
8382      # hardcode_libdir_flag_spec is actually meaningless, as there is
8383      # no search path for DLLs.
8384      hardcode_libdir_flag_spec=' '
8385      allow_undefined_flag=unsupported
8386      # Tell ltmain to make .lib files, not .a files.
8387      libext=lib
8388      # Tell ltmain to make .dll files, not .so files.
8389      shrext_cmds=".dll"
8390      # FIXME: Setting linknames here is a bad hack.
8391      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8392      # The linker will automatically build a .lib file if we build a DLL.
8393      old_archive_from_new_cmds='true'
8394      # FIXME: Should let the user specify the lib program.
8395      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8396      fix_srcfile_path='`cygpath -w "$srcfile"`'
8397      enable_shared_with_static_runtimes=yes
8398      ;;
8399
8400    darwin* | rhapsody*)
8401
8402
8403  archive_cmds_need_lc=no
8404  hardcode_direct=no
8405  hardcode_automatic=yes
8406  hardcode_shlibpath_var=unsupported
8407  if test "$lt_cv_ld_force_load" = "yes"; then
8408    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\"`'
8409  else
8410    whole_archive_flag_spec=''
8411  fi
8412  link_all_deplibs=yes
8413  allow_undefined_flag="$_lt_dar_allow_undefined"
8414  case $cc_basename in
8415     ifort*) _lt_dar_can_shared=yes ;;
8416     *) _lt_dar_can_shared=$GCC ;;
8417  esac
8418  if test "$_lt_dar_can_shared" = "yes"; then
8419    output_verbose_link_cmd=func_echo_all
8420    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8421    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8422    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}"
8423    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}"
8424
8425  else
8426  ld_shlibs=no
8427  fi
8428
8429      ;;
8430
8431    dgux*)
8432      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433      hardcode_libdir_flag_spec='-L$libdir'
8434      hardcode_shlibpath_var=no
8435      ;;
8436
8437    freebsd1*)
8438      ld_shlibs=no
8439      ;;
8440
8441    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8442    # support.  Future versions do this automatically, but an explicit c++rt0.o
8443    # does not break anything, and helps significantly (at the cost of a little
8444    # extra space).
8445    freebsd2.2*)
8446      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8447      hardcode_libdir_flag_spec='-R$libdir'
8448      hardcode_direct=yes
8449      hardcode_shlibpath_var=no
8450      ;;
8451
8452    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8453    freebsd2*)
8454      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8455      hardcode_direct=yes
8456      hardcode_minus_L=yes
8457      hardcode_shlibpath_var=no
8458      ;;
8459
8460    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8461    freebsd* | dragonfly*)
8462      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8463      hardcode_libdir_flag_spec='-R$libdir'
8464      hardcode_direct=yes
8465      hardcode_shlibpath_var=no
8466      ;;
8467
8468    hpux9*)
8469      if test "$GCC" = yes; then
8470	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'
8471      else
8472	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'
8473      fi
8474      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8475      hardcode_libdir_separator=:
8476      hardcode_direct=yes
8477
8478      # hardcode_minus_L: Not really in the search PATH,
8479      # but as the default location of the library.
8480      hardcode_minus_L=yes
8481      export_dynamic_flag_spec='${wl}-E'
8482      ;;
8483
8484    hpux10*)
8485      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8486	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8487      else
8488	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8489      fi
8490      if test "$with_gnu_ld" = no; then
8491	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8492	hardcode_libdir_flag_spec_ld='+b $libdir'
8493	hardcode_libdir_separator=:
8494	hardcode_direct=yes
8495	hardcode_direct_absolute=yes
8496	export_dynamic_flag_spec='${wl}-E'
8497	# hardcode_minus_L: Not really in the search PATH,
8498	# but as the default location of the library.
8499	hardcode_minus_L=yes
8500      fi
8501      ;;
8502
8503    hpux11*)
8504      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8505	case $host_cpu in
8506	hppa*64*)
8507	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8508	  ;;
8509	ia64*)
8510	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8511	  ;;
8512	*)
8513	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8514	  ;;
8515	esac
8516      else
8517	case $host_cpu in
8518	hppa*64*)
8519	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520	  ;;
8521	ia64*)
8522	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8523	  ;;
8524	*)
8525
8526	  # Older versions of the 11.00 compiler do not understand -b yet
8527	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8528	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8529$as_echo_n "checking if $CC understands -b... " >&6; }
8530if test "${lt_cv_prog_compiler__b+set}" = set; then :
8531  $as_echo_n "(cached) " >&6
8532else
8533  lt_cv_prog_compiler__b=no
8534   save_LDFLAGS="$LDFLAGS"
8535   LDFLAGS="$LDFLAGS -b"
8536   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8537   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8538     # The linker can only warn and ignore the option if not recognized
8539     # So say no if there are warnings
8540     if test -s conftest.err; then
8541       # Append any errors to the config.log.
8542       cat conftest.err 1>&5
8543       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8544       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8545       if diff conftest.exp conftest.er2 >/dev/null; then
8546         lt_cv_prog_compiler__b=yes
8547       fi
8548     else
8549       lt_cv_prog_compiler__b=yes
8550     fi
8551   fi
8552   $RM -r conftest*
8553   LDFLAGS="$save_LDFLAGS"
8554
8555fi
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8557$as_echo "$lt_cv_prog_compiler__b" >&6; }
8558
8559if test x"$lt_cv_prog_compiler__b" = xyes; then
8560    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8561else
8562    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8563fi
8564
8565	  ;;
8566	esac
8567      fi
8568      if test "$with_gnu_ld" = no; then
8569	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8570	hardcode_libdir_separator=:
8571
8572	case $host_cpu in
8573	hppa*64*|ia64*)
8574	  hardcode_direct=no
8575	  hardcode_shlibpath_var=no
8576	  ;;
8577	*)
8578	  hardcode_direct=yes
8579	  hardcode_direct_absolute=yes
8580	  export_dynamic_flag_spec='${wl}-E'
8581
8582	  # hardcode_minus_L: Not really in the search PATH,
8583	  # but as the default location of the library.
8584	  hardcode_minus_L=yes
8585	  ;;
8586	esac
8587      fi
8588      ;;
8589
8590    irix5* | irix6* | nonstopux*)
8591      if test "$GCC" = yes; then
8592	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'
8593	# Try to use the -exported_symbol ld option, if it does not
8594	# work, assume that -exports_file does not work either and
8595	# implicitly export all symbols.
8596        save_LDFLAGS="$LDFLAGS"
8597        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8598        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599/* end confdefs.h.  */
8600int foo(void) {}
8601_ACEOF
8602if ac_fn_c_try_link "$LINENO"; then :
8603  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'
8604
8605fi
8606rm -f core conftest.err conftest.$ac_objext \
8607    conftest$ac_exeext conftest.$ac_ext
8608        LDFLAGS="$save_LDFLAGS"
8609      else
8610	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'
8611	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'
8612      fi
8613      archive_cmds_need_lc='no'
8614      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8615      hardcode_libdir_separator=:
8616      inherit_rpath=yes
8617      link_all_deplibs=yes
8618      ;;
8619
8620    netbsd*)
8621      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8622	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8623      else
8624	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8625      fi
8626      hardcode_libdir_flag_spec='-R$libdir'
8627      hardcode_direct=yes
8628      hardcode_shlibpath_var=no
8629      ;;
8630
8631    newsos6)
8632      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633      hardcode_direct=yes
8634      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635      hardcode_libdir_separator=:
8636      hardcode_shlibpath_var=no
8637      ;;
8638
8639    *nto* | *qnx*)
8640      ;;
8641
8642    openbsd*)
8643      if test -f /usr/libexec/ld.so; then
8644	hardcode_direct=yes
8645	hardcode_shlibpath_var=no
8646	hardcode_direct_absolute=yes
8647	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8648	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8649	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8650	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8651	  export_dynamic_flag_spec='${wl}-E'
8652	else
8653	  case $host_os in
8654	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8655	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8656	     hardcode_libdir_flag_spec='-R$libdir'
8657	     ;;
8658	   *)
8659	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8660	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8661	     ;;
8662	  esac
8663	fi
8664      else
8665	ld_shlibs=no
8666      fi
8667      ;;
8668
8669    os2*)
8670      hardcode_libdir_flag_spec='-L$libdir'
8671      hardcode_minus_L=yes
8672      allow_undefined_flag=unsupported
8673      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'
8674      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8675      ;;
8676
8677    osf3*)
8678      if test "$GCC" = yes; then
8679	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8680	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'
8681      else
8682	allow_undefined_flag=' -expect_unresolved \*'
8683	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'
8684      fi
8685      archive_cmds_need_lc='no'
8686      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8687      hardcode_libdir_separator=:
8688      ;;
8689
8690    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8691      if test "$GCC" = yes; then
8692	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8693	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'
8694	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8695      else
8696	allow_undefined_flag=' -expect_unresolved \*'
8697	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'
8698	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~
8699	$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'
8700
8701	# Both c and cxx compiler support -rpath directly
8702	hardcode_libdir_flag_spec='-rpath $libdir'
8703      fi
8704      archive_cmds_need_lc='no'
8705      hardcode_libdir_separator=:
8706      ;;
8707
8708    solaris*)
8709      no_undefined_flag=' -z defs'
8710      if test "$GCC" = yes; then
8711	wlarc='${wl}'
8712	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8713	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8714	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8715      else
8716	case `$CC -V 2>&1` in
8717	*"Compilers 5.0"*)
8718	  wlarc=''
8719	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8721	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8722	  ;;
8723	*)
8724	  wlarc='${wl}'
8725	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8726	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8727	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8728	  ;;
8729	esac
8730      fi
8731      hardcode_libdir_flag_spec='-R$libdir'
8732      hardcode_shlibpath_var=no
8733      case $host_os in
8734      solaris2.[0-5] | solaris2.[0-5].*) ;;
8735      *)
8736	# The compiler driver will combine and reorder linker options,
8737	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8738	# but is careful enough not to reorder.
8739	# Supported since Solaris 2.6 (maybe 2.5.1?)
8740	if test "$GCC" = yes; then
8741	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8742	else
8743	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8744	fi
8745	;;
8746      esac
8747      link_all_deplibs=yes
8748      ;;
8749
8750    sunos4*)
8751      if test "x$host_vendor" = xsequent; then
8752	# Use $CC to link under sequent, because it throws in some extra .o
8753	# files that make .init and .fini sections work.
8754	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8755      else
8756	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8757      fi
8758      hardcode_libdir_flag_spec='-L$libdir'
8759      hardcode_direct=yes
8760      hardcode_minus_L=yes
8761      hardcode_shlibpath_var=no
8762      ;;
8763
8764    sysv4)
8765      case $host_vendor in
8766	sni)
8767	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8768	  hardcode_direct=yes # is this really true???
8769	;;
8770	siemens)
8771	  ## LD is ld it makes a PLAMLIB
8772	  ## CC just makes a GrossModule.
8773	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8774	  reload_cmds='$CC -r -o $output$reload_objs'
8775	  hardcode_direct=no
8776        ;;
8777	motorola)
8778	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8780	;;
8781      esac
8782      runpath_var='LD_RUN_PATH'
8783      hardcode_shlibpath_var=no
8784      ;;
8785
8786    sysv4.3*)
8787      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788      hardcode_shlibpath_var=no
8789      export_dynamic_flag_spec='-Bexport'
8790      ;;
8791
8792    sysv4*MP*)
8793      if test -d /usr/nec; then
8794	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795	hardcode_shlibpath_var=no
8796	runpath_var=LD_RUN_PATH
8797	hardcode_runpath_var=yes
8798	ld_shlibs=yes
8799      fi
8800      ;;
8801
8802    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8803      no_undefined_flag='${wl}-z,text'
8804      archive_cmds_need_lc=no
8805      hardcode_shlibpath_var=no
8806      runpath_var='LD_RUN_PATH'
8807
8808      if test "$GCC" = yes; then
8809	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8810	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8811      else
8812	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8813	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814      fi
8815      ;;
8816
8817    sysv5* | sco3.2v5* | sco5v6*)
8818      # Note: We can NOT use -z defs as we might desire, because we do not
8819      # link with -lc, and that would cause any symbols used from libc to
8820      # always be unresolved, which means just about no library would
8821      # ever link correctly.  If we're not using GNU ld we use -z text
8822      # though, which does catch some bad symbols but isn't as heavy-handed
8823      # as -z defs.
8824      no_undefined_flag='${wl}-z,text'
8825      allow_undefined_flag='${wl}-z,nodefs'
8826      archive_cmds_need_lc=no
8827      hardcode_shlibpath_var=no
8828      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8829      hardcode_libdir_separator=':'
8830      link_all_deplibs=yes
8831      export_dynamic_flag_spec='${wl}-Bexport'
8832      runpath_var='LD_RUN_PATH'
8833
8834      if test "$GCC" = yes; then
8835	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8836	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8837      else
8838	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8839	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8840      fi
8841      ;;
8842
8843    uts4*)
8844      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845      hardcode_libdir_flag_spec='-L$libdir'
8846      hardcode_shlibpath_var=no
8847      ;;
8848
8849    *)
8850      ld_shlibs=no
8851      ;;
8852    esac
8853
8854    if test x$host_vendor = xsni; then
8855      case $host in
8856      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8857	export_dynamic_flag_spec='${wl}-Blargedynsym'
8858	;;
8859      esac
8860    fi
8861  fi
8862
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8864$as_echo "$ld_shlibs" >&6; }
8865test "$ld_shlibs" = no && can_build_shared=no
8866
8867with_gnu_ld=$with_gnu_ld
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883#
8884# Do we need to explicitly link libc?
8885#
8886case "x$archive_cmds_need_lc" in
8887x|xyes)
8888  # Assume -lc should be added
8889  archive_cmds_need_lc=yes
8890
8891  if test "$enable_shared" = yes && test "$GCC" = yes; then
8892    case $archive_cmds in
8893    *'~'*)
8894      # FIXME: we may have to deal with multi-command sequences.
8895      ;;
8896    '$CC '*)
8897      # Test whether the compiler implicitly links with -lc since on some
8898      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8899      # to ld, don't add -lc before -lgcc.
8900      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8901$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8902if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8903  $as_echo_n "(cached) " >&6
8904else
8905  $RM conftest*
8906	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8907
8908	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8909  (eval $ac_compile) 2>&5
8910  ac_status=$?
8911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8912  test $ac_status = 0; } 2>conftest.err; then
8913	  soname=conftest
8914	  lib=conftest
8915	  libobjs=conftest.$ac_objext
8916	  deplibs=
8917	  wl=$lt_prog_compiler_wl
8918	  pic_flag=$lt_prog_compiler_pic
8919	  compiler_flags=-v
8920	  linker_flags=-v
8921	  verstring=
8922	  output_objdir=.
8923	  libname=conftest
8924	  lt_save_allow_undefined_flag=$allow_undefined_flag
8925	  allow_undefined_flag=
8926	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8927  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8928  ac_status=$?
8929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8930  test $ac_status = 0; }
8931	  then
8932	    lt_cv_archive_cmds_need_lc=no
8933	  else
8934	    lt_cv_archive_cmds_need_lc=yes
8935	  fi
8936	  allow_undefined_flag=$lt_save_allow_undefined_flag
8937	else
8938	  cat conftest.err 1>&5
8939	fi
8940	$RM conftest*
8941
8942fi
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8944$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8945      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8946      ;;
8947    esac
8948  fi
8949  ;;
8950esac
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9109$as_echo_n "checking dynamic linker characteristics... " >&6; }
9110
9111if test "$GCC" = yes; then
9112  case $host_os in
9113    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9114    *) lt_awk_arg="/^libraries:/" ;;
9115  esac
9116  case $host_os in
9117    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9118    *) lt_sed_strip_eq="s,=/,/,g" ;;
9119  esac
9120  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9121  case $lt_search_path_spec in
9122  *\;*)
9123    # if the path contains ";" then we assume it to be the separator
9124    # otherwise default to the standard path separator (i.e. ":") - it is
9125    # assumed that no part of a normal pathname contains ";" but that should
9126    # okay in the real world where ";" in dirpaths is itself problematic.
9127    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9128    ;;
9129  *)
9130    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9131    ;;
9132  esac
9133  # Ok, now we have the path, separated by spaces, we can step through it
9134  # and add multilib dir if necessary.
9135  lt_tmp_lt_search_path_spec=
9136  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9137  for lt_sys_path in $lt_search_path_spec; do
9138    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9139      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9140    else
9141      test -d "$lt_sys_path" && \
9142	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9143    fi
9144  done
9145  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9146BEGIN {RS=" "; FS="/|\n";} {
9147  lt_foo="";
9148  lt_count=0;
9149  for (lt_i = NF; lt_i > 0; lt_i--) {
9150    if ($lt_i != "" && $lt_i != ".") {
9151      if ($lt_i == "..") {
9152        lt_count++;
9153      } else {
9154        if (lt_count == 0) {
9155          lt_foo="/" $lt_i lt_foo;
9156        } else {
9157          lt_count--;
9158        }
9159      }
9160    }
9161  }
9162  if (lt_foo != "") { lt_freq[lt_foo]++; }
9163  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9164}'`
9165  # AWK program above erroneously prepends '/' to C:/dos/paths
9166  # for these hosts.
9167  case $host_os in
9168    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9169      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9170  esac
9171  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9172else
9173  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9174fi
9175library_names_spec=
9176libname_spec='lib$name'
9177soname_spec=
9178shrext_cmds=".so"
9179postinstall_cmds=
9180postuninstall_cmds=
9181finish_cmds=
9182finish_eval=
9183shlibpath_var=
9184shlibpath_overrides_runpath=unknown
9185version_type=none
9186dynamic_linker="$host_os ld.so"
9187sys_lib_dlsearch_path_spec="/lib /usr/lib"
9188need_lib_prefix=unknown
9189hardcode_into_libs=no
9190
9191# when you set need_version to no, make sure it does not cause -set_version
9192# flags to be left without arguments
9193need_version=unknown
9194
9195case $host_os in
9196aix3*)
9197  version_type=linux
9198  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9199  shlibpath_var=LIBPATH
9200
9201  # AIX 3 has no versioning support, so we append a major version to the name.
9202  soname_spec='${libname}${release}${shared_ext}$major'
9203  ;;
9204
9205aix[4-9]*)
9206  version_type=linux
9207  need_lib_prefix=no
9208  need_version=no
9209  hardcode_into_libs=yes
9210  if test "$host_cpu" = ia64; then
9211    # AIX 5 supports IA64
9212    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9213    shlibpath_var=LD_LIBRARY_PATH
9214  else
9215    # With GCC up to 2.95.x, collect2 would create an import file
9216    # for dependence libraries.  The import file would start with
9217    # the line `#! .'.  This would cause the generated library to
9218    # depend on `.', always an invalid library.  This was fixed in
9219    # development snapshots of GCC prior to 3.0.
9220    case $host_os in
9221      aix4 | aix4.[01] | aix4.[01].*)
9222      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9223	   echo ' yes '
9224	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9225	:
9226      else
9227	can_build_shared=no
9228      fi
9229      ;;
9230    esac
9231    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9232    # soname into executable. Probably we can add versioning support to
9233    # collect2, so additional links can be useful in future.
9234    if test "$aix_use_runtimelinking" = yes; then
9235      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9236      # instead of lib<name>.a to let people know that these are not
9237      # typical AIX shared libraries.
9238      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9239    else
9240      # We preserve .a as extension for shared libraries through AIX4.2
9241      # and later when we are not doing run time linking.
9242      library_names_spec='${libname}${release}.a $libname.a'
9243      soname_spec='${libname}${release}${shared_ext}$major'
9244    fi
9245    shlibpath_var=LIBPATH
9246  fi
9247  ;;
9248
9249amigaos*)
9250  case $host_cpu in
9251  powerpc)
9252    # Since July 2007 AmigaOS4 officially supports .so libraries.
9253    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9254    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255    ;;
9256  m68k)
9257    library_names_spec='$libname.ixlibrary $libname.a'
9258    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9259    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'
9260    ;;
9261  esac
9262  ;;
9263
9264beos*)
9265  library_names_spec='${libname}${shared_ext}'
9266  dynamic_linker="$host_os ld.so"
9267  shlibpath_var=LIBRARY_PATH
9268  ;;
9269
9270bsdi[45]*)
9271  version_type=linux
9272  need_version=no
9273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274  soname_spec='${libname}${release}${shared_ext}$major'
9275  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9276  shlibpath_var=LD_LIBRARY_PATH
9277  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9278  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9279  # the default ld.so.conf also contains /usr/contrib/lib and
9280  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9281  # libtool to hard-code these into programs
9282  ;;
9283
9284cygwin* | mingw* | pw32* | cegcc*)
9285  version_type=windows
9286  shrext_cmds=".dll"
9287  need_version=no
9288  need_lib_prefix=no
9289
9290  case $GCC,$host_os in
9291  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9292    library_names_spec='$libname.dll.a'
9293    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9294    postinstall_cmds='base_file=`basename \${file}`~
9295      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9296      dldir=$destdir/`dirname \$dlpath`~
9297      test -d \$dldir || mkdir -p \$dldir~
9298      $install_prog $dir/$dlname \$dldir/$dlname~
9299      chmod a+x \$dldir/$dlname~
9300      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9301        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9302      fi'
9303    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9304      dlpath=$dir/\$dldll~
9305       $RM \$dlpath'
9306    shlibpath_overrides_runpath=yes
9307
9308    case $host_os in
9309    cygwin*)
9310      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9311      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9312
9313      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9314      ;;
9315    mingw* | cegcc*)
9316      # MinGW DLLs use traditional 'lib' prefix
9317      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9318      ;;
9319    pw32*)
9320      # pw32 DLLs use 'pw' prefix rather than 'lib'
9321      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9322      ;;
9323    esac
9324    ;;
9325
9326  *)
9327    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9328    ;;
9329  esac
9330  dynamic_linker='Win32 ld.exe'
9331  # FIXME: first we should search . and the directory the executable is in
9332  shlibpath_var=PATH
9333  ;;
9334
9335darwin* | rhapsody*)
9336  dynamic_linker="$host_os dyld"
9337  version_type=darwin
9338  need_lib_prefix=no
9339  need_version=no
9340  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9341  soname_spec='${libname}${release}${major}$shared_ext'
9342  shlibpath_overrides_runpath=yes
9343  shlibpath_var=DYLD_LIBRARY_PATH
9344  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9345
9346  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9347  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9348  ;;
9349
9350dgux*)
9351  version_type=linux
9352  need_lib_prefix=no
9353  need_version=no
9354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9355  soname_spec='${libname}${release}${shared_ext}$major'
9356  shlibpath_var=LD_LIBRARY_PATH
9357  ;;
9358
9359freebsd1*)
9360  dynamic_linker=no
9361  ;;
9362
9363freebsd* | dragonfly*)
9364  # DragonFly does not have aout.  When/if they implement a new
9365  # versioning mechanism, adjust this.
9366  if test -x /usr/bin/objformat; then
9367    objformat=`/usr/bin/objformat`
9368  else
9369    case $host_os in
9370    freebsd[123]*) objformat=aout ;;
9371    *) objformat=elf ;;
9372    esac
9373  fi
9374  version_type=freebsd-$objformat
9375  case $version_type in
9376    freebsd-elf*)
9377      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9378      need_version=no
9379      need_lib_prefix=no
9380      ;;
9381    freebsd-*)
9382      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9383      need_version=yes
9384      ;;
9385  esac
9386  shlibpath_var=LD_LIBRARY_PATH
9387  case $host_os in
9388  freebsd2*)
9389    shlibpath_overrides_runpath=yes
9390    ;;
9391  freebsd3.[01]* | freebsdelf3.[01]*)
9392    shlibpath_overrides_runpath=yes
9393    hardcode_into_libs=yes
9394    ;;
9395  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9396  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9397    shlibpath_overrides_runpath=no
9398    hardcode_into_libs=yes
9399    ;;
9400  *) # from 4.6 on, and DragonFly
9401    shlibpath_overrides_runpath=yes
9402    hardcode_into_libs=yes
9403    ;;
9404  esac
9405  ;;
9406
9407gnu*)
9408  version_type=linux
9409  need_lib_prefix=no
9410  need_version=no
9411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9412  soname_spec='${libname}${release}${shared_ext}$major'
9413  shlibpath_var=LD_LIBRARY_PATH
9414  hardcode_into_libs=yes
9415  ;;
9416
9417haiku*)
9418  version_type=linux
9419  need_lib_prefix=no
9420  need_version=no
9421  dynamic_linker="$host_os runtime_loader"
9422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9423  soname_spec='${libname}${release}${shared_ext}$major'
9424  shlibpath_var=LIBRARY_PATH
9425  shlibpath_overrides_runpath=yes
9426  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9427  hardcode_into_libs=yes
9428  ;;
9429
9430hpux9* | hpux10* | hpux11*)
9431  # Give a soname corresponding to the major version so that dld.sl refuses to
9432  # link against other versions.
9433  version_type=sunos
9434  need_lib_prefix=no
9435  need_version=no
9436  case $host_cpu in
9437  ia64*)
9438    shrext_cmds='.so'
9439    hardcode_into_libs=yes
9440    dynamic_linker="$host_os dld.so"
9441    shlibpath_var=LD_LIBRARY_PATH
9442    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9443    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9444    soname_spec='${libname}${release}${shared_ext}$major'
9445    if test "X$HPUX_IA64_MODE" = X32; then
9446      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9447    else
9448      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9449    fi
9450    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9451    ;;
9452  hppa*64*)
9453    shrext_cmds='.sl'
9454    hardcode_into_libs=yes
9455    dynamic_linker="$host_os dld.sl"
9456    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9457    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9458    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459    soname_spec='${libname}${release}${shared_ext}$major'
9460    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9461    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9462    ;;
9463  *)
9464    shrext_cmds='.sl'
9465    dynamic_linker="$host_os dld.sl"
9466    shlibpath_var=SHLIB_PATH
9467    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9468    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469    soname_spec='${libname}${release}${shared_ext}$major'
9470    ;;
9471  esac
9472  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9473  postinstall_cmds='chmod 555 $lib'
9474  # or fails outright, so override atomically:
9475  install_override_mode=555
9476  ;;
9477
9478interix[3-9]*)
9479  version_type=linux
9480  need_lib_prefix=no
9481  need_version=no
9482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9483  soname_spec='${libname}${release}${shared_ext}$major'
9484  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9485  shlibpath_var=LD_LIBRARY_PATH
9486  shlibpath_overrides_runpath=no
9487  hardcode_into_libs=yes
9488  ;;
9489
9490irix5* | irix6* | nonstopux*)
9491  case $host_os in
9492    nonstopux*) version_type=nonstopux ;;
9493    *)
9494	if test "$lt_cv_prog_gnu_ld" = yes; then
9495		version_type=linux
9496	else
9497		version_type=irix
9498	fi ;;
9499  esac
9500  need_lib_prefix=no
9501  need_version=no
9502  soname_spec='${libname}${release}${shared_ext}$major'
9503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9504  case $host_os in
9505  irix5* | nonstopux*)
9506    libsuff= shlibsuff=
9507    ;;
9508  *)
9509    case $LD in # libtool.m4 will add one of these switches to LD
9510    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9511      libsuff= shlibsuff= libmagic=32-bit;;
9512    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9513      libsuff=32 shlibsuff=N32 libmagic=N32;;
9514    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9515      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9516    *) libsuff= shlibsuff= libmagic=never-match;;
9517    esac
9518    ;;
9519  esac
9520  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9521  shlibpath_overrides_runpath=no
9522  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9523  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9524  hardcode_into_libs=yes
9525  ;;
9526
9527# No shared lib support for Linux oldld, aout, or coff.
9528linux*oldld* | linux*aout* | linux*coff*)
9529  dynamic_linker=no
9530  ;;
9531
9532# This must be Linux ELF.
9533linux* | k*bsd*-gnu | kopensolaris*-gnu)
9534  version_type=linux
9535  need_lib_prefix=no
9536  need_version=no
9537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9538  soname_spec='${libname}${release}${shared_ext}$major'
9539  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9540  shlibpath_var=LD_LIBRARY_PATH
9541  shlibpath_overrides_runpath=no
9542
9543  # Some binutils ld are patched to set DT_RUNPATH
9544  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9545  $as_echo_n "(cached) " >&6
9546else
9547  lt_cv_shlibpath_overrides_runpath=no
9548    save_LDFLAGS=$LDFLAGS
9549    save_libdir=$libdir
9550    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9551	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9552    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553/* end confdefs.h.  */
9554
9555int
9556main ()
9557{
9558
9559  ;
9560  return 0;
9561}
9562_ACEOF
9563if ac_fn_c_try_link "$LINENO"; then :
9564  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9565  lt_cv_shlibpath_overrides_runpath=yes
9566fi
9567fi
9568rm -f core conftest.err conftest.$ac_objext \
9569    conftest$ac_exeext conftest.$ac_ext
9570    LDFLAGS=$save_LDFLAGS
9571    libdir=$save_libdir
9572
9573fi
9574
9575  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9576
9577  # This implies no fast_install, which is unacceptable.
9578  # Some rework will be needed to allow for fast_install
9579  # before this can be enabled.
9580  hardcode_into_libs=yes
9581
9582  # Add ABI-specific directories to the system library path.
9583  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9584
9585  # Append ld.so.conf contents to the search path
9586  if test -f /etc/ld.so.conf; then
9587    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' ' '`
9588    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9589
9590  fi
9591
9592  # We used to test for /lib/ld.so.1 and disable shared libraries on
9593  # powerpc, because MkLinux only supported shared libraries with the
9594  # GNU dynamic linker.  Since this was broken with cross compilers,
9595  # most powerpc-linux boxes support dynamic linking these days and
9596  # people can always --disable-shared, the test was removed, and we
9597  # assume the GNU/Linux dynamic linker is in use.
9598  dynamic_linker='GNU/Linux ld.so'
9599  ;;
9600
9601netbsd*)
9602  version_type=sunos
9603  need_lib_prefix=no
9604  need_version=no
9605  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9606    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9608    dynamic_linker='NetBSD (a.out) ld.so'
9609  else
9610    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9611    soname_spec='${libname}${release}${shared_ext}$major'
9612    dynamic_linker='NetBSD ld.elf_so'
9613  fi
9614  shlibpath_var=LD_LIBRARY_PATH
9615  shlibpath_overrides_runpath=yes
9616  hardcode_into_libs=yes
9617  ;;
9618
9619newsos6)
9620  version_type=linux
9621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622  shlibpath_var=LD_LIBRARY_PATH
9623  shlibpath_overrides_runpath=yes
9624  ;;
9625
9626*nto* | *qnx*)
9627  version_type=qnx
9628  need_lib_prefix=no
9629  need_version=no
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631  soname_spec='${libname}${release}${shared_ext}$major'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  shlibpath_overrides_runpath=no
9634  hardcode_into_libs=yes
9635  dynamic_linker='ldqnx.so'
9636  ;;
9637
9638openbsd*)
9639  version_type=sunos
9640  sys_lib_dlsearch_path_spec="/usr/lib"
9641  need_lib_prefix=no
9642  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9643  case $host_os in
9644    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9645    *)				need_version=no  ;;
9646  esac
9647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9648  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9649  shlibpath_var=LD_LIBRARY_PATH
9650  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9651    case $host_os in
9652      openbsd2.[89] | openbsd2.[89].*)
9653	shlibpath_overrides_runpath=no
9654	;;
9655      *)
9656	shlibpath_overrides_runpath=yes
9657	;;
9658      esac
9659  else
9660    shlibpath_overrides_runpath=yes
9661  fi
9662  ;;
9663
9664os2*)
9665  libname_spec='$name'
9666  shrext_cmds=".dll"
9667  need_lib_prefix=no
9668  library_names_spec='$libname${shared_ext} $libname.a'
9669  dynamic_linker='OS/2 ld.exe'
9670  shlibpath_var=LIBPATH
9671  ;;
9672
9673osf3* | osf4* | osf5*)
9674  version_type=osf
9675  need_lib_prefix=no
9676  need_version=no
9677  soname_spec='${libname}${release}${shared_ext}$major'
9678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679  shlibpath_var=LD_LIBRARY_PATH
9680  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9681  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9682  ;;
9683
9684rdos*)
9685  dynamic_linker=no
9686  ;;
9687
9688solaris*)
9689  version_type=linux
9690  need_lib_prefix=no
9691  need_version=no
9692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693  soname_spec='${libname}${release}${shared_ext}$major'
9694  shlibpath_var=LD_LIBRARY_PATH
9695  shlibpath_overrides_runpath=yes
9696  hardcode_into_libs=yes
9697  # ldd complains unless libraries are executable
9698  postinstall_cmds='chmod +x $lib'
9699  ;;
9700
9701sunos4*)
9702  version_type=sunos
9703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9704  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9705  shlibpath_var=LD_LIBRARY_PATH
9706  shlibpath_overrides_runpath=yes
9707  if test "$with_gnu_ld" = yes; then
9708    need_lib_prefix=no
9709  fi
9710  need_version=yes
9711  ;;
9712
9713sysv4 | sysv4.3*)
9714  version_type=linux
9715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716  soname_spec='${libname}${release}${shared_ext}$major'
9717  shlibpath_var=LD_LIBRARY_PATH
9718  case $host_vendor in
9719    sni)
9720      shlibpath_overrides_runpath=no
9721      need_lib_prefix=no
9722      runpath_var=LD_RUN_PATH
9723      ;;
9724    siemens)
9725      need_lib_prefix=no
9726      ;;
9727    motorola)
9728      need_lib_prefix=no
9729      need_version=no
9730      shlibpath_overrides_runpath=no
9731      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9732      ;;
9733  esac
9734  ;;
9735
9736sysv4*MP*)
9737  if test -d /usr/nec ;then
9738    version_type=linux
9739    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9740    soname_spec='$libname${shared_ext}.$major'
9741    shlibpath_var=LD_LIBRARY_PATH
9742  fi
9743  ;;
9744
9745sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9746  version_type=freebsd-elf
9747  need_lib_prefix=no
9748  need_version=no
9749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9750  soname_spec='${libname}${release}${shared_ext}$major'
9751  shlibpath_var=LD_LIBRARY_PATH
9752  shlibpath_overrides_runpath=yes
9753  hardcode_into_libs=yes
9754  if test "$with_gnu_ld" = yes; then
9755    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9756  else
9757    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9758    case $host_os in
9759      sco3.2v5*)
9760        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9761	;;
9762    esac
9763  fi
9764  sys_lib_dlsearch_path_spec='/usr/lib'
9765  ;;
9766
9767tpf*)
9768  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9769  version_type=linux
9770  need_lib_prefix=no
9771  need_version=no
9772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773  shlibpath_var=LD_LIBRARY_PATH
9774  shlibpath_overrides_runpath=no
9775  hardcode_into_libs=yes
9776  ;;
9777
9778uts4*)
9779  version_type=linux
9780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781  soname_spec='${libname}${release}${shared_ext}$major'
9782  shlibpath_var=LD_LIBRARY_PATH
9783  ;;
9784
9785*)
9786  dynamic_linker=no
9787  ;;
9788esac
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9790$as_echo "$dynamic_linker" >&6; }
9791test "$dynamic_linker" = no && can_build_shared=no
9792
9793variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9794if test "$GCC" = yes; then
9795  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9796fi
9797
9798if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9799  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9800fi
9801if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9802  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9803fi
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9897$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9898hardcode_action=
9899if test -n "$hardcode_libdir_flag_spec" ||
9900   test -n "$runpath_var" ||
9901   test "X$hardcode_automatic" = "Xyes" ; then
9902
9903  # We can hardcode non-existent directories.
9904  if test "$hardcode_direct" != no &&
9905     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9906     # have to relink, otherwise we might link with an installed library
9907     # when we should be linking with a yet-to-be-installed one
9908     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9909     test "$hardcode_minus_L" != no; then
9910    # Linking always hardcodes the temporary library directory.
9911    hardcode_action=relink
9912  else
9913    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9914    hardcode_action=immediate
9915  fi
9916else
9917  # We cannot hardcode anything, or else we can only hardcode existing
9918  # directories.
9919  hardcode_action=unsupported
9920fi
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9922$as_echo "$hardcode_action" >&6; }
9923
9924if test "$hardcode_action" = relink ||
9925   test "$inherit_rpath" = yes; then
9926  # Fast installation is not supported
9927  enable_fast_install=no
9928elif test "$shlibpath_overrides_runpath" = yes ||
9929     test "$enable_shared" = no; then
9930  # Fast installation is not necessary
9931  enable_fast_install=needless
9932fi
9933
9934
9935
9936
9937
9938
9939  if test "x$enable_dlopen" != xyes; then
9940  enable_dlopen=unknown
9941  enable_dlopen_self=unknown
9942  enable_dlopen_self_static=unknown
9943else
9944  lt_cv_dlopen=no
9945  lt_cv_dlopen_libs=
9946
9947  case $host_os in
9948  beos*)
9949    lt_cv_dlopen="load_add_on"
9950    lt_cv_dlopen_libs=
9951    lt_cv_dlopen_self=yes
9952    ;;
9953
9954  mingw* | pw32* | cegcc*)
9955    lt_cv_dlopen="LoadLibrary"
9956    lt_cv_dlopen_libs=
9957    ;;
9958
9959  cygwin*)
9960    lt_cv_dlopen="dlopen"
9961    lt_cv_dlopen_libs=
9962    ;;
9963
9964  darwin*)
9965  # if libdl is installed we need to link against it
9966    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9967$as_echo_n "checking for dlopen in -ldl... " >&6; }
9968if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9969  $as_echo_n "(cached) " >&6
9970else
9971  ac_check_lib_save_LIBS=$LIBS
9972LIBS="-ldl  $LIBS"
9973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974/* end confdefs.h.  */
9975
9976/* Override any GCC internal prototype to avoid an error.
9977   Use char because int might match the return type of a GCC
9978   builtin and then its argument prototype would still apply.  */
9979#ifdef __cplusplus
9980extern "C"
9981#endif
9982char dlopen ();
9983int
9984main ()
9985{
9986return dlopen ();
9987  ;
9988  return 0;
9989}
9990_ACEOF
9991if ac_fn_c_try_link "$LINENO"; then :
9992  ac_cv_lib_dl_dlopen=yes
9993else
9994  ac_cv_lib_dl_dlopen=no
9995fi
9996rm -f core conftest.err conftest.$ac_objext \
9997    conftest$ac_exeext conftest.$ac_ext
9998LIBS=$ac_check_lib_save_LIBS
9999fi
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10001$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10002if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10003  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10004else
10005
10006    lt_cv_dlopen="dyld"
10007    lt_cv_dlopen_libs=
10008    lt_cv_dlopen_self=yes
10009
10010fi
10011
10012    ;;
10013
10014  *)
10015    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10016if test "x$ac_cv_func_shl_load" = x""yes; then :
10017  lt_cv_dlopen="shl_load"
10018else
10019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10020$as_echo_n "checking for shl_load in -ldld... " >&6; }
10021if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10022  $as_echo_n "(cached) " >&6
10023else
10024  ac_check_lib_save_LIBS=$LIBS
10025LIBS="-ldld  $LIBS"
10026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027/* end confdefs.h.  */
10028
10029/* Override any GCC internal prototype to avoid an error.
10030   Use char because int might match the return type of a GCC
10031   builtin and then its argument prototype would still apply.  */
10032#ifdef __cplusplus
10033extern "C"
10034#endif
10035char shl_load ();
10036int
10037main ()
10038{
10039return shl_load ();
10040  ;
10041  return 0;
10042}
10043_ACEOF
10044if ac_fn_c_try_link "$LINENO"; then :
10045  ac_cv_lib_dld_shl_load=yes
10046else
10047  ac_cv_lib_dld_shl_load=no
10048fi
10049rm -f core conftest.err conftest.$ac_objext \
10050    conftest$ac_exeext conftest.$ac_ext
10051LIBS=$ac_check_lib_save_LIBS
10052fi
10053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10054$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10055if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10056  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10057else
10058  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10059if test "x$ac_cv_func_dlopen" = x""yes; then :
10060  lt_cv_dlopen="dlopen"
10061else
10062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10063$as_echo_n "checking for dlopen in -ldl... " >&6; }
10064if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  ac_check_lib_save_LIBS=$LIBS
10068LIBS="-ldl  $LIBS"
10069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070/* end confdefs.h.  */
10071
10072/* Override any GCC internal prototype to avoid an error.
10073   Use char because int might match the return type of a GCC
10074   builtin and then its argument prototype would still apply.  */
10075#ifdef __cplusplus
10076extern "C"
10077#endif
10078char dlopen ();
10079int
10080main ()
10081{
10082return dlopen ();
10083  ;
10084  return 0;
10085}
10086_ACEOF
10087if ac_fn_c_try_link "$LINENO"; then :
10088  ac_cv_lib_dl_dlopen=yes
10089else
10090  ac_cv_lib_dl_dlopen=no
10091fi
10092rm -f core conftest.err conftest.$ac_objext \
10093    conftest$ac_exeext conftest.$ac_ext
10094LIBS=$ac_check_lib_save_LIBS
10095fi
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10097$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10098if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10099  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10100else
10101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10102$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10103if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10104  $as_echo_n "(cached) " >&6
10105else
10106  ac_check_lib_save_LIBS=$LIBS
10107LIBS="-lsvld  $LIBS"
10108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110
10111/* Override any GCC internal prototype to avoid an error.
10112   Use char because int might match the return type of a GCC
10113   builtin and then its argument prototype would still apply.  */
10114#ifdef __cplusplus
10115extern "C"
10116#endif
10117char dlopen ();
10118int
10119main ()
10120{
10121return dlopen ();
10122  ;
10123  return 0;
10124}
10125_ACEOF
10126if ac_fn_c_try_link "$LINENO"; then :
10127  ac_cv_lib_svld_dlopen=yes
10128else
10129  ac_cv_lib_svld_dlopen=no
10130fi
10131rm -f core conftest.err conftest.$ac_objext \
10132    conftest$ac_exeext conftest.$ac_ext
10133LIBS=$ac_check_lib_save_LIBS
10134fi
10135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10136$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10137if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10138  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10139else
10140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10141$as_echo_n "checking for dld_link in -ldld... " >&6; }
10142if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10143  $as_echo_n "(cached) " >&6
10144else
10145  ac_check_lib_save_LIBS=$LIBS
10146LIBS="-ldld  $LIBS"
10147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148/* end confdefs.h.  */
10149
10150/* Override any GCC internal prototype to avoid an error.
10151   Use char because int might match the return type of a GCC
10152   builtin and then its argument prototype would still apply.  */
10153#ifdef __cplusplus
10154extern "C"
10155#endif
10156char dld_link ();
10157int
10158main ()
10159{
10160return dld_link ();
10161  ;
10162  return 0;
10163}
10164_ACEOF
10165if ac_fn_c_try_link "$LINENO"; then :
10166  ac_cv_lib_dld_dld_link=yes
10167else
10168  ac_cv_lib_dld_dld_link=no
10169fi
10170rm -f core conftest.err conftest.$ac_objext \
10171    conftest$ac_exeext conftest.$ac_ext
10172LIBS=$ac_check_lib_save_LIBS
10173fi
10174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10175$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10176if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10177  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10178fi
10179
10180
10181fi
10182
10183
10184fi
10185
10186
10187fi
10188
10189
10190fi
10191
10192
10193fi
10194
10195    ;;
10196  esac
10197
10198  if test "x$lt_cv_dlopen" != xno; then
10199    enable_dlopen=yes
10200  else
10201    enable_dlopen=no
10202  fi
10203
10204  case $lt_cv_dlopen in
10205  dlopen)
10206    save_CPPFLAGS="$CPPFLAGS"
10207    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10208
10209    save_LDFLAGS="$LDFLAGS"
10210    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10211
10212    save_LIBS="$LIBS"
10213    LIBS="$lt_cv_dlopen_libs $LIBS"
10214
10215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10216$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10217if test "${lt_cv_dlopen_self+set}" = set; then :
10218  $as_echo_n "(cached) " >&6
10219else
10220  	  if test "$cross_compiling" = yes; then :
10221  lt_cv_dlopen_self=cross
10222else
10223  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10224  lt_status=$lt_dlunknown
10225  cat > conftest.$ac_ext <<_LT_EOF
10226#line $LINENO "configure"
10227#include "confdefs.h"
10228
10229#if HAVE_DLFCN_H
10230#include <dlfcn.h>
10231#endif
10232
10233#include <stdio.h>
10234
10235#ifdef RTLD_GLOBAL
10236#  define LT_DLGLOBAL		RTLD_GLOBAL
10237#else
10238#  ifdef DL_GLOBAL
10239#    define LT_DLGLOBAL		DL_GLOBAL
10240#  else
10241#    define LT_DLGLOBAL		0
10242#  endif
10243#endif
10244
10245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10246   find out it does not work in some platform. */
10247#ifndef LT_DLLAZY_OR_NOW
10248#  ifdef RTLD_LAZY
10249#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10250#  else
10251#    ifdef DL_LAZY
10252#      define LT_DLLAZY_OR_NOW		DL_LAZY
10253#    else
10254#      ifdef RTLD_NOW
10255#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10256#      else
10257#        ifdef DL_NOW
10258#          define LT_DLLAZY_OR_NOW	DL_NOW
10259#        else
10260#          define LT_DLLAZY_OR_NOW	0
10261#        endif
10262#      endif
10263#    endif
10264#  endif
10265#endif
10266
10267/* When -fvisbility=hidden is used, assume the code has been annotated
10268   correspondingly for the symbols needed.  */
10269#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10270void fnord () __attribute__((visibility("default")));
10271#endif
10272
10273void fnord () { int i=42; }
10274int main ()
10275{
10276  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10277  int status = $lt_dlunknown;
10278
10279  if (self)
10280    {
10281      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10282      else
10283        {
10284	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10285          else puts (dlerror ());
10286	}
10287      /* dlclose (self); */
10288    }
10289  else
10290    puts (dlerror ());
10291
10292  return status;
10293}
10294_LT_EOF
10295  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10296  (eval $ac_link) 2>&5
10297  ac_status=$?
10298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10299  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10300    (./conftest; exit; ) >&5 2>/dev/null
10301    lt_status=$?
10302    case x$lt_status in
10303      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10304      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10305      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10306    esac
10307  else :
10308    # compilation failed
10309    lt_cv_dlopen_self=no
10310  fi
10311fi
10312rm -fr conftest*
10313
10314
10315fi
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10317$as_echo "$lt_cv_dlopen_self" >&6; }
10318
10319    if test "x$lt_cv_dlopen_self" = xyes; then
10320      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10321      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10322$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10323if test "${lt_cv_dlopen_self_static+set}" = set; then :
10324  $as_echo_n "(cached) " >&6
10325else
10326  	  if test "$cross_compiling" = yes; then :
10327  lt_cv_dlopen_self_static=cross
10328else
10329  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10330  lt_status=$lt_dlunknown
10331  cat > conftest.$ac_ext <<_LT_EOF
10332#line $LINENO "configure"
10333#include "confdefs.h"
10334
10335#if HAVE_DLFCN_H
10336#include <dlfcn.h>
10337#endif
10338
10339#include <stdio.h>
10340
10341#ifdef RTLD_GLOBAL
10342#  define LT_DLGLOBAL		RTLD_GLOBAL
10343#else
10344#  ifdef DL_GLOBAL
10345#    define LT_DLGLOBAL		DL_GLOBAL
10346#  else
10347#    define LT_DLGLOBAL		0
10348#  endif
10349#endif
10350
10351/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10352   find out it does not work in some platform. */
10353#ifndef LT_DLLAZY_OR_NOW
10354#  ifdef RTLD_LAZY
10355#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10356#  else
10357#    ifdef DL_LAZY
10358#      define LT_DLLAZY_OR_NOW		DL_LAZY
10359#    else
10360#      ifdef RTLD_NOW
10361#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10362#      else
10363#        ifdef DL_NOW
10364#          define LT_DLLAZY_OR_NOW	DL_NOW
10365#        else
10366#          define LT_DLLAZY_OR_NOW	0
10367#        endif
10368#      endif
10369#    endif
10370#  endif
10371#endif
10372
10373/* When -fvisbility=hidden is used, assume the code has been annotated
10374   correspondingly for the symbols needed.  */
10375#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10376void fnord () __attribute__((visibility("default")));
10377#endif
10378
10379void fnord () { int i=42; }
10380int main ()
10381{
10382  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10383  int status = $lt_dlunknown;
10384
10385  if (self)
10386    {
10387      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10388      else
10389        {
10390	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10391          else puts (dlerror ());
10392	}
10393      /* dlclose (self); */
10394    }
10395  else
10396    puts (dlerror ());
10397
10398  return status;
10399}
10400_LT_EOF
10401  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10402  (eval $ac_link) 2>&5
10403  ac_status=$?
10404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10405  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10406    (./conftest; exit; ) >&5 2>/dev/null
10407    lt_status=$?
10408    case x$lt_status in
10409      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10410      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10411      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10412    esac
10413  else :
10414    # compilation failed
10415    lt_cv_dlopen_self_static=no
10416  fi
10417fi
10418rm -fr conftest*
10419
10420
10421fi
10422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10423$as_echo "$lt_cv_dlopen_self_static" >&6; }
10424    fi
10425
10426    CPPFLAGS="$save_CPPFLAGS"
10427    LDFLAGS="$save_LDFLAGS"
10428    LIBS="$save_LIBS"
10429    ;;
10430  esac
10431
10432  case $lt_cv_dlopen_self in
10433  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10434  *) enable_dlopen_self=unknown ;;
10435  esac
10436
10437  case $lt_cv_dlopen_self_static in
10438  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10439  *) enable_dlopen_self_static=unknown ;;
10440  esac
10441fi
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459striplib=
10460old_striplib=
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10462$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10463if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10464  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10465  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10467$as_echo "yes" >&6; }
10468else
10469# FIXME - insert some real tests, host_os isn't really good enough
10470  case $host_os in
10471  darwin*)
10472    if test -n "$STRIP" ; then
10473      striplib="$STRIP -x"
10474      old_striplib="$STRIP -S"
10475      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10476$as_echo "yes" >&6; }
10477    else
10478      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479$as_echo "no" >&6; }
10480    fi
10481    ;;
10482  *)
10483    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484$as_echo "no" >&6; }
10485    ;;
10486  esac
10487fi
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500  # Report which library types will actually be built
10501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10502$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10504$as_echo "$can_build_shared" >&6; }
10505
10506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10507$as_echo_n "checking whether to build shared libraries... " >&6; }
10508  test "$can_build_shared" = "no" && enable_shared=no
10509
10510  # On AIX, shared libraries and static libraries use the same namespace, and
10511  # are all built from PIC.
10512  case $host_os in
10513  aix3*)
10514    test "$enable_shared" = yes && enable_static=no
10515    if test -n "$RANLIB"; then
10516      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10517      postinstall_cmds='$RANLIB $lib'
10518    fi
10519    ;;
10520
10521  aix[4-9]*)
10522    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10523      test "$enable_shared" = yes && enable_static=no
10524    fi
10525    ;;
10526  esac
10527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10528$as_echo "$enable_shared" >&6; }
10529
10530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10531$as_echo_n "checking whether to build static libraries... " >&6; }
10532  # Make sure either enable_shared or enable_static is yes.
10533  test "$enable_shared" = yes || enable_static=yes
10534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10535$as_echo "$enable_static" >&6; }
10536
10537
10538
10539
10540fi
10541ac_ext=c
10542ac_cpp='$CPP $CPPFLAGS'
10543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545ac_compiler_gnu=$ac_cv_c_compiler_gnu
10546
10547CC="$lt_save_CC"
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561        ac_config_commands="$ac_config_commands libtool"
10562
10563
10564
10565
10566# Only expand once:
10567
10568
10569
10570# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10583$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10584if test "${ac_cv_prog_cc_c99+set}" = set; then :
10585  $as_echo_n "(cached) " >&6
10586else
10587  ac_cv_prog_cc_c99=no
10588ac_save_CC=$CC
10589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590/* end confdefs.h.  */
10591#include <stdarg.h>
10592#include <stdbool.h>
10593#include <stdlib.h>
10594#include <wchar.h>
10595#include <stdio.h>
10596
10597// Check varargs macros.  These examples are taken from C99 6.10.3.5.
10598#define debug(...) fprintf (stderr, __VA_ARGS__)
10599#define showlist(...) puts (#__VA_ARGS__)
10600#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10601static void
10602test_varargs_macros (void)
10603{
10604  int x = 1234;
10605  int y = 5678;
10606  debug ("Flag");
10607  debug ("X = %d\n", x);
10608  showlist (The first, second, and third items.);
10609  report (x>y, "x is %d but y is %d", x, y);
10610}
10611
10612// Check long long types.
10613#define BIG64 18446744073709551615ull
10614#define BIG32 4294967295ul
10615#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10616#if !BIG_OK
10617  your preprocessor is broken;
10618#endif
10619#if BIG_OK
10620#else
10621  your preprocessor is broken;
10622#endif
10623static long long int bignum = -9223372036854775807LL;
10624static unsigned long long int ubignum = BIG64;
10625
10626struct incomplete_array
10627{
10628  int datasize;
10629  double data[];
10630};
10631
10632struct named_init {
10633  int number;
10634  const wchar_t *name;
10635  double average;
10636};
10637
10638typedef const char *ccp;
10639
10640static inline int
10641test_restrict (ccp restrict text)
10642{
10643  // See if C++-style comments work.
10644  // Iterate through items via the restricted pointer.
10645  // Also check for declarations in for loops.
10646  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10647    continue;
10648  return 0;
10649}
10650
10651// Check varargs and va_copy.
10652static void
10653test_varargs (const char *format, ...)
10654{
10655  va_list args;
10656  va_start (args, format);
10657  va_list args_copy;
10658  va_copy (args_copy, args);
10659
10660  const char *str;
10661  int number;
10662  float fnumber;
10663
10664  while (*format)
10665    {
10666      switch (*format++)
10667	{
10668	case 's': // string
10669	  str = va_arg (args_copy, const char *);
10670	  break;
10671	case 'd': // int
10672	  number = va_arg (args_copy, int);
10673	  break;
10674	case 'f': // float
10675	  fnumber = va_arg (args_copy, double);
10676	  break;
10677	default:
10678	  break;
10679	}
10680    }
10681  va_end (args_copy);
10682  va_end (args);
10683}
10684
10685int
10686main ()
10687{
10688
10689  // Check bool.
10690  _Bool success = false;
10691
10692  // Check restrict.
10693  if (test_restrict ("String literal") == 0)
10694    success = true;
10695  char *restrict newvar = "Another string";
10696
10697  // Check varargs.
10698  test_varargs ("s, d' f .", "string", 65, 34.234);
10699  test_varargs_macros ();
10700
10701  // Check flexible array members.
10702  struct incomplete_array *ia =
10703    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10704  ia->datasize = 10;
10705  for (int i = 0; i < ia->datasize; ++i)
10706    ia->data[i] = i * 1.234;
10707
10708  // Check named initializers.
10709  struct named_init ni = {
10710    .number = 34,
10711    .name = L"Test wide string",
10712    .average = 543.34343,
10713  };
10714
10715  ni.number = 58;
10716
10717  int dynamic_array[ni.number];
10718  dynamic_array[ni.number - 1] = 543;
10719
10720  // work around unused variable warnings
10721  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10722	  || dynamic_array[ni.number - 1] != 543);
10723
10724  ;
10725  return 0;
10726}
10727_ACEOF
10728for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10729do
10730  CC="$ac_save_CC $ac_arg"
10731  if ac_fn_c_try_compile "$LINENO"; then :
10732  ac_cv_prog_cc_c99=$ac_arg
10733fi
10734rm -f core conftest.err conftest.$ac_objext
10735  test "x$ac_cv_prog_cc_c99" != "xno" && break
10736done
10737rm -f conftest.$ac_ext
10738CC=$ac_save_CC
10739
10740fi
10741# AC_CACHE_VAL
10742case "x$ac_cv_prog_cc_c99" in
10743  x)
10744    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10745$as_echo "none needed" >&6; } ;;
10746  xno)
10747    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10748$as_echo "unsupported" >&6; } ;;
10749  *)
10750    CC="$CC $ac_cv_prog_cc_c99"
10751    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10752$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10753esac
10754if test "x$ac_cv_prog_cc_c99" != xno; then :
10755
10756fi
10757
10758
10759
10760
10761
10762
10763
10764
10765if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10766	if test -n "$ac_tool_prefix"; then
10767  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10768set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10770$as_echo_n "checking for $ac_word... " >&6; }
10771if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10772  $as_echo_n "(cached) " >&6
10773else
10774  case $PKG_CONFIG in
10775  [\\/]* | ?:[\\/]*)
10776  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10777  ;;
10778  *)
10779  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780for as_dir in $PATH
10781do
10782  IFS=$as_save_IFS
10783  test -z "$as_dir" && as_dir=.
10784    for ac_exec_ext in '' $ac_executable_extensions; do
10785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10786    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10788    break 2
10789  fi
10790done
10791  done
10792IFS=$as_save_IFS
10793
10794  ;;
10795esac
10796fi
10797PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10798if test -n "$PKG_CONFIG"; then
10799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10800$as_echo "$PKG_CONFIG" >&6; }
10801else
10802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803$as_echo "no" >&6; }
10804fi
10805
10806
10807fi
10808if test -z "$ac_cv_path_PKG_CONFIG"; then
10809  ac_pt_PKG_CONFIG=$PKG_CONFIG
10810  # Extract the first word of "pkg-config", so it can be a program name with args.
10811set dummy pkg-config; ac_word=$2
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10813$as_echo_n "checking for $ac_word... " >&6; }
10814if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10815  $as_echo_n "(cached) " >&6
10816else
10817  case $ac_pt_PKG_CONFIG in
10818  [\\/]* | ?:[\\/]*)
10819  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10820  ;;
10821  *)
10822  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823for as_dir in $PATH
10824do
10825  IFS=$as_save_IFS
10826  test -z "$as_dir" && as_dir=.
10827    for ac_exec_ext in '' $ac_executable_extensions; do
10828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10829    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831    break 2
10832  fi
10833done
10834  done
10835IFS=$as_save_IFS
10836
10837  ;;
10838esac
10839fi
10840ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10841if test -n "$ac_pt_PKG_CONFIG"; then
10842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10843$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10844else
10845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846$as_echo "no" >&6; }
10847fi
10848
10849  if test "x$ac_pt_PKG_CONFIG" = x; then
10850    PKG_CONFIG=""
10851  else
10852    case $cross_compiling:$ac_tool_warned in
10853yes:)
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10856ac_tool_warned=yes ;;
10857esac
10858    PKG_CONFIG=$ac_pt_PKG_CONFIG
10859  fi
10860else
10861  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10862fi
10863
10864fi
10865if test -n "$PKG_CONFIG"; then
10866	_pkg_min_version=0.9.0
10867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10868$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10869	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10870		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10871$as_echo "yes" >&6; }
10872	else
10873		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874$as_echo "no" >&6; }
10875		PKG_CONFIG=""
10876	fi
10877fi
10878
10879
10880
10881
10882if  test "x$GCC" = xyes ; then
10883    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10884-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10885-Wbad-function-cast -Wformat=2"
10886    case `$CC -dumpversion` in
10887    3.4.* | 4.*)
10888	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
10889	;;
10890    esac
10891else
10892    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10893if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10894  SUNCC="yes"
10895else
10896  SUNCC="no"
10897fi
10898
10899    if test "x$SUNCC" = "xyes"; then
10900	CWARNFLAGS="-v"
10901    fi
10902fi
10903
10904
10905
10906# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10907
10908
10909
10910# Check whether --enable-strict-compilation was given.
10911if test "${enable_strict_compilation+set}" = set; then :
10912  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10913else
10914  STRICT_COMPILE=no
10915fi
10916
10917if test "x$STRICT_COMPILE" = "xyes"; then
10918	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10919if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10920  SUNCC="yes"
10921else
10922  SUNCC="no"
10923fi
10924
10925	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10926if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
10927  INTELCC="yes"
10928else
10929  INTELCC="no"
10930fi
10931
10932	if test "x$GCC" = xyes ; then
10933		STRICT_CFLAGS="-pedantic -Werror"
10934	elif test "x$SUNCC" = "xyes"; then
10935		STRICT_CFLAGS="-errwarn"
10936    elif test "x$INTELCC" = "xyes"; then
10937		STRICT_CFLAGS="-Werror"
10938	fi
10939fi
10940CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10941
10942
10943
10944
10945cat >>confdefs.h <<_ACEOF
10946#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10947_ACEOF
10948
10949	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10950	if test "x$PVM" = "x"; then
10951		PVM="0"
10952	fi
10953
10954cat >>confdefs.h <<_ACEOF
10955#define PACKAGE_VERSION_MINOR $PVM
10956_ACEOF
10957
10958	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10959	if test "x$PVP" = "x"; then
10960		PVP="0"
10961	fi
10962
10963cat >>confdefs.h <<_ACEOF
10964#define PACKAGE_VERSION_PATCHLEVEL $PVP
10965_ACEOF
10966
10967
10968
10969CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10970mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10971|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10972echo 'git directory not found: installing possibly empty changelog.' >&2)"
10973
10974
10975
10976
10977macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10978INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10979mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10980|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10981echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10982
10983
10984
10985
10986
10987
10988if test x$APP_MAN_SUFFIX = x    ; then
10989    APP_MAN_SUFFIX=1
10990fi
10991if test x$APP_MAN_DIR = x    ; then
10992    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10993fi
10994
10995if test x$LIB_MAN_SUFFIX = x    ; then
10996    LIB_MAN_SUFFIX=3
10997fi
10998if test x$LIB_MAN_DIR = x    ; then
10999    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11000fi
11001
11002if test x$FILE_MAN_SUFFIX = x    ; then
11003    case $host_os in
11004	solaris*)	FILE_MAN_SUFFIX=4  ;;
11005	*)		FILE_MAN_SUFFIX=5  ;;
11006    esac
11007fi
11008if test x$FILE_MAN_DIR = x    ; then
11009    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11010fi
11011
11012if test x$MISC_MAN_SUFFIX = x    ; then
11013    case $host_os in
11014	solaris*)	MISC_MAN_SUFFIX=5  ;;
11015	*)		MISC_MAN_SUFFIX=7  ;;
11016    esac
11017fi
11018if test x$MISC_MAN_DIR = x    ; then
11019    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11020fi
11021
11022if test x$DRIVER_MAN_SUFFIX = x    ; then
11023    case $host_os in
11024	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11025	*)		DRIVER_MAN_SUFFIX=4  ;;
11026    esac
11027fi
11028if test x$DRIVER_MAN_DIR = x    ; then
11029    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11030fi
11031
11032if test x$ADMIN_MAN_SUFFIX = x    ; then
11033    case $host_os in
11034	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11035	*)		ADMIN_MAN_SUFFIX=8  ;;
11036    esac
11037fi
11038if test x$ADMIN_MAN_DIR = x    ; then
11039    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11040fi
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056XORG_MAN_PAGE="X Version 11"
11057
11058MAN_SUBSTS="\
11059	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11060	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11061	-e 's|__xservername__|Xorg|g' \
11062	-e 's|__xconfigfile__|xorg.conf|g' \
11063	-e 's|__projectroot__|\$(prefix)|g' \
11064	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11065	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11066	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11067	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11068	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11069	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11070
11071
11072
11073# Check whether --enable-silent-rules was given.
11074if test "${enable_silent_rules+set}" = set; then :
11075  enableval=$enable_silent_rules;
11076fi
11077
11078case $enable_silent_rules in
11079yes) AM_DEFAULT_VERBOSITY=0;;
11080no)  AM_DEFAULT_VERBOSITY=1;;
11081*)   AM_DEFAULT_VERBOSITY=0;;
11082esac
11083AM_BACKSLASH='\'
11084
11085
11086
11087# Check fixesext configuration, strip extra digits from package version to
11088# find the required protocol version
11089FIXESEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
11090
11091
11092# Obtain compiler/linker options for depedencies
11093
11094pkg_failed=no
11095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIXESEXT" >&5
11096$as_echo_n "checking for FIXESEXT... " >&6; }
11097
11098if test -n "$FIXESEXT_CFLAGS"; then
11099    pkg_cv_FIXESEXT_CFLAGS="$FIXESEXT_CFLAGS"
11100 elif test -n "$PKG_CONFIG"; then
11101    if test -n "$PKG_CONFIG" && \
11102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto x11\""; } >&5
11103  ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11") 2>&5
11104  ac_status=$?
11105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11106  test $ac_status = 0; }; then
11107  pkg_cv_FIXESEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>/dev/null`
11108else
11109  pkg_failed=yes
11110fi
11111 else
11112    pkg_failed=untried
11113fi
11114if test -n "$FIXESEXT_LIBS"; then
11115    pkg_cv_FIXESEXT_LIBS="$FIXESEXT_LIBS"
11116 elif test -n "$PKG_CONFIG"; then
11117    if test -n "$PKG_CONFIG" && \
11118    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto x11\""; } >&5
11119  ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11") 2>&5
11120  ac_status=$?
11121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11122  test $ac_status = 0; }; then
11123  pkg_cv_FIXESEXT_LIBS=`$PKG_CONFIG --libs "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>/dev/null`
11124else
11125  pkg_failed=yes
11126fi
11127 else
11128    pkg_failed=untried
11129fi
11130
11131
11132
11133if test $pkg_failed = yes; then
11134   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135$as_echo "no" >&6; }
11136
11137if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11138        _pkg_short_errors_supported=yes
11139else
11140        _pkg_short_errors_supported=no
11141fi
11142        if test $_pkg_short_errors_supported = yes; then
11143	        FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>&1`
11144        else
11145	        FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>&1`
11146        fi
11147	# Put the nasty error message in config.log where it belongs
11148	echo "$FIXESEXT_PKG_ERRORS" >&5
11149
11150	as_fn_error $? "Package requirements (xproto fixesproto >= $FIXESEXT_VERSION xextproto x11) were not met:
11151
11152$FIXESEXT_PKG_ERRORS
11153
11154Consider adjusting the PKG_CONFIG_PATH environment variable if you
11155installed software in a non-standard prefix.
11156
11157Alternatively, you may set the environment variables FIXESEXT_CFLAGS
11158and FIXESEXT_LIBS to avoid the need to call pkg-config.
11159See the pkg-config man page for more details." "$LINENO" 5
11160
11161elif test $pkg_failed = untried; then
11162     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
11164	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11166as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11167is in your PATH or set the PKG_CONFIG environment variable to the full
11168path to pkg-config.
11169
11170Alternatively, you may set the environment variables FIXESEXT_CFLAGS
11171and FIXESEXT_LIBS to avoid the need to call pkg-config.
11172See the pkg-config man page for more details.
11173
11174To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11175See \`config.log' for more details" "$LINENO" 5; }
11176
11177else
11178	FIXESEXT_CFLAGS=$pkg_cv_FIXESEXT_CFLAGS
11179	FIXESEXT_LIBS=$pkg_cv_FIXESEXT_LIBS
11180        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11181$as_echo "yes" >&6; }
11182
11183fi
11184
11185ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xfixes.pc"
11186
11187cat >confcache <<\_ACEOF
11188# This file is a shell script that caches the results of configure
11189# tests run on this system so they can be shared between configure
11190# scripts and configure runs, see configure's option --config-cache.
11191# It is not useful on other systems.  If it contains results you don't
11192# want to keep, you may remove or edit it.
11193#
11194# config.status only pays attention to the cache file if you give it
11195# the --recheck option to rerun configure.
11196#
11197# `ac_cv_env_foo' variables (set or unset) will be overridden when
11198# loading this file, other *unset* `ac_cv_foo' will be assigned the
11199# following values.
11200
11201_ACEOF
11202
11203# The following way of writing the cache mishandles newlines in values,
11204# but we know of no workaround that is simple, portable, and efficient.
11205# So, we kill variables containing newlines.
11206# Ultrix sh set writes to stderr and can't be redirected directly,
11207# and sets the high bit in the cache file unless we assign to the vars.
11208(
11209  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11210    eval ac_val=\$$ac_var
11211    case $ac_val in #(
11212    *${as_nl}*)
11213      case $ac_var in #(
11214      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11215$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11216      esac
11217      case $ac_var in #(
11218      _ | IFS | as_nl) ;; #(
11219      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11220      *) { eval $ac_var=; unset $ac_var;} ;;
11221      esac ;;
11222    esac
11223  done
11224
11225  (set) 2>&1 |
11226    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11227    *${as_nl}ac_space=\ *)
11228      # `set' does not quote correctly, so add quotes: double-quote
11229      # substitution turns \\\\ into \\, and sed turns \\ into \.
11230      sed -n \
11231	"s/'/'\\\\''/g;
11232	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11233      ;; #(
11234    *)
11235      # `set' quotes correctly as required by POSIX, so do not add quotes.
11236      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11237      ;;
11238    esac |
11239    sort
11240) |
11241  sed '
11242     /^ac_cv_env_/b end
11243     t clear
11244     :clear
11245     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11246     t end
11247     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11248     :end' >>confcache
11249if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11250  if test -w "$cache_file"; then
11251    test "x$cache_file" != "x/dev/null" &&
11252      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11253$as_echo "$as_me: updating cache $cache_file" >&6;}
11254    cat confcache >$cache_file
11255  else
11256    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11257$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11258  fi
11259fi
11260rm -f confcache
11261
11262test "x$prefix" = xNONE && prefix=$ac_default_prefix
11263# Let make expand exec_prefix.
11264test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11265
11266DEFS=-DHAVE_CONFIG_H
11267
11268ac_libobjs=
11269ac_ltlibobjs=
11270U=
11271for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11272  # 1. Remove the extension, and $U if already installed.
11273  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11274  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11275  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11276  #    will be set to the directory where LIBOBJS objects are built.
11277  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11278  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11279done
11280LIBOBJS=$ac_libobjs
11281
11282LTLIBOBJS=$ac_ltlibobjs
11283
11284
11285 if test -n "$EXEEXT"; then
11286  am__EXEEXT_TRUE=
11287  am__EXEEXT_FALSE='#'
11288else
11289  am__EXEEXT_TRUE='#'
11290  am__EXEEXT_FALSE=
11291fi
11292
11293if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11294  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11295Usually this means the macro was only invoked conditionally." "$LINENO" 5
11296fi
11297if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11298  as_fn_error $? "conditional \"AMDEP\" was never defined.
11299Usually this means the macro was only invoked conditionally." "$LINENO" 5
11300fi
11301if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11302  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11303Usually this means the macro was only invoked conditionally." "$LINENO" 5
11304fi
11305
11306: ${CONFIG_STATUS=./config.status}
11307ac_write_fail=0
11308ac_clean_files_save=$ac_clean_files
11309ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11311$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11312as_write_fail=0
11313cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11314#! $SHELL
11315# Generated by $as_me.
11316# Run this file to recreate the current configuration.
11317# Compiler output produced by configure, useful for debugging
11318# configure, is in config.log if it exists.
11319
11320debug=false
11321ac_cs_recheck=false
11322ac_cs_silent=false
11323
11324SHELL=\${CONFIG_SHELL-$SHELL}
11325export SHELL
11326_ASEOF
11327cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11328## -------------------- ##
11329## M4sh Initialization. ##
11330## -------------------- ##
11331
11332# Be more Bourne compatible
11333DUALCASE=1; export DUALCASE # for MKS sh
11334if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11335  emulate sh
11336  NULLCMD=:
11337  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11338  # is contrary to our usage.  Disable this feature.
11339  alias -g '${1+"$@"}'='"$@"'
11340  setopt NO_GLOB_SUBST
11341else
11342  case `(set -o) 2>/dev/null` in #(
11343  *posix*) :
11344    set -o posix ;; #(
11345  *) :
11346     ;;
11347esac
11348fi
11349
11350
11351as_nl='
11352'
11353export as_nl
11354# Printing a long string crashes Solaris 7 /usr/bin/printf.
11355as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11356as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11357as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11358# Prefer a ksh shell builtin over an external printf program on Solaris,
11359# but without wasting forks for bash or zsh.
11360if test -z "$BASH_VERSION$ZSH_VERSION" \
11361    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11362  as_echo='print -r --'
11363  as_echo_n='print -rn --'
11364elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11365  as_echo='printf %s\n'
11366  as_echo_n='printf %s'
11367else
11368  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11369    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11370    as_echo_n='/usr/ucb/echo -n'
11371  else
11372    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11373    as_echo_n_body='eval
11374      arg=$1;
11375      case $arg in #(
11376      *"$as_nl"*)
11377	expr "X$arg" : "X\\(.*\\)$as_nl";
11378	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11379      esac;
11380      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11381    '
11382    export as_echo_n_body
11383    as_echo_n='sh -c $as_echo_n_body as_echo'
11384  fi
11385  export as_echo_body
11386  as_echo='sh -c $as_echo_body as_echo'
11387fi
11388
11389# The user is always right.
11390if test "${PATH_SEPARATOR+set}" != set; then
11391  PATH_SEPARATOR=:
11392  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11393    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11394      PATH_SEPARATOR=';'
11395  }
11396fi
11397
11398
11399# IFS
11400# We need space, tab and new line, in precisely that order.  Quoting is
11401# there to prevent editors from complaining about space-tab.
11402# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11403# splitting by setting IFS to empty value.)
11404IFS=" ""	$as_nl"
11405
11406# Find who we are.  Look in the path if we contain no directory separator.
11407case $0 in #((
11408  *[\\/]* ) as_myself=$0 ;;
11409  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410for as_dir in $PATH
11411do
11412  IFS=$as_save_IFS
11413  test -z "$as_dir" && as_dir=.
11414    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11415  done
11416IFS=$as_save_IFS
11417
11418     ;;
11419esac
11420# We did not find ourselves, most probably we were run as `sh COMMAND'
11421# in which case we are not to be found in the path.
11422if test "x$as_myself" = x; then
11423  as_myself=$0
11424fi
11425if test ! -f "$as_myself"; then
11426  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11427  exit 1
11428fi
11429
11430# Unset variables that we do not need and which cause bugs (e.g. in
11431# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11432# suppresses any "Segmentation fault" message there.  '((' could
11433# trigger a bug in pdksh 5.2.14.
11434for as_var in BASH_ENV ENV MAIL MAILPATH
11435do eval test x\${$as_var+set} = xset \
11436  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11437done
11438PS1='$ '
11439PS2='> '
11440PS4='+ '
11441
11442# NLS nuisances.
11443LC_ALL=C
11444export LC_ALL
11445LANGUAGE=C
11446export LANGUAGE
11447
11448# CDPATH.
11449(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11450
11451
11452# as_fn_error STATUS ERROR [LINENO LOG_FD]
11453# ----------------------------------------
11454# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11455# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11456# script with STATUS, using 1 if that was 0.
11457as_fn_error ()
11458{
11459  as_status=$1; test $as_status -eq 0 && as_status=1
11460  if test "$4"; then
11461    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11462    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11463  fi
11464  $as_echo "$as_me: error: $2" >&2
11465  as_fn_exit $as_status
11466} # as_fn_error
11467
11468
11469# as_fn_set_status STATUS
11470# -----------------------
11471# Set $? to STATUS, without forking.
11472as_fn_set_status ()
11473{
11474  return $1
11475} # as_fn_set_status
11476
11477# as_fn_exit STATUS
11478# -----------------
11479# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11480as_fn_exit ()
11481{
11482  set +e
11483  as_fn_set_status $1
11484  exit $1
11485} # as_fn_exit
11486
11487# as_fn_unset VAR
11488# ---------------
11489# Portably unset VAR.
11490as_fn_unset ()
11491{
11492  { eval $1=; unset $1;}
11493}
11494as_unset=as_fn_unset
11495# as_fn_append VAR VALUE
11496# ----------------------
11497# Append the text in VALUE to the end of the definition contained in VAR. Take
11498# advantage of any shell optimizations that allow amortized linear growth over
11499# repeated appends, instead of the typical quadratic growth present in naive
11500# implementations.
11501if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11502  eval 'as_fn_append ()
11503  {
11504    eval $1+=\$2
11505  }'
11506else
11507  as_fn_append ()
11508  {
11509    eval $1=\$$1\$2
11510  }
11511fi # as_fn_append
11512
11513# as_fn_arith ARG...
11514# ------------------
11515# Perform arithmetic evaluation on the ARGs, and store the result in the
11516# global $as_val. Take advantage of shells that can avoid forks. The arguments
11517# must be portable across $(()) and expr.
11518if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11519  eval 'as_fn_arith ()
11520  {
11521    as_val=$(( $* ))
11522  }'
11523else
11524  as_fn_arith ()
11525  {
11526    as_val=`expr "$@" || test $? -eq 1`
11527  }
11528fi # as_fn_arith
11529
11530
11531if expr a : '\(a\)' >/dev/null 2>&1 &&
11532   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11533  as_expr=expr
11534else
11535  as_expr=false
11536fi
11537
11538if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11539  as_basename=basename
11540else
11541  as_basename=false
11542fi
11543
11544if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11545  as_dirname=dirname
11546else
11547  as_dirname=false
11548fi
11549
11550as_me=`$as_basename -- "$0" ||
11551$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11552	 X"$0" : 'X\(//\)$' \| \
11553	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11554$as_echo X/"$0" |
11555    sed '/^.*\/\([^/][^/]*\)\/*$/{
11556	    s//\1/
11557	    q
11558	  }
11559	  /^X\/\(\/\/\)$/{
11560	    s//\1/
11561	    q
11562	  }
11563	  /^X\/\(\/\).*/{
11564	    s//\1/
11565	    q
11566	  }
11567	  s/.*/./; q'`
11568
11569# Avoid depending upon Character Ranges.
11570as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11571as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11572as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11573as_cr_digits='0123456789'
11574as_cr_alnum=$as_cr_Letters$as_cr_digits
11575
11576ECHO_C= ECHO_N= ECHO_T=
11577case `echo -n x` in #(((((
11578-n*)
11579  case `echo 'xy\c'` in
11580  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11581  xy)  ECHO_C='\c';;
11582  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11583       ECHO_T='	';;
11584  esac;;
11585*)
11586  ECHO_N='-n';;
11587esac
11588
11589rm -f conf$$ conf$$.exe conf$$.file
11590if test -d conf$$.dir; then
11591  rm -f conf$$.dir/conf$$.file
11592else
11593  rm -f conf$$.dir
11594  mkdir conf$$.dir 2>/dev/null
11595fi
11596if (echo >conf$$.file) 2>/dev/null; then
11597  if ln -s conf$$.file conf$$ 2>/dev/null; then
11598    as_ln_s='ln -s'
11599    # ... but there are two gotchas:
11600    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11601    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11602    # In both cases, we have to default to `cp -p'.
11603    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11604      as_ln_s='cp -p'
11605  elif ln conf$$.file conf$$ 2>/dev/null; then
11606    as_ln_s=ln
11607  else
11608    as_ln_s='cp -p'
11609  fi
11610else
11611  as_ln_s='cp -p'
11612fi
11613rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11614rmdir conf$$.dir 2>/dev/null
11615
11616
11617# as_fn_mkdir_p
11618# -------------
11619# Create "$as_dir" as a directory, including parents if necessary.
11620as_fn_mkdir_p ()
11621{
11622
11623  case $as_dir in #(
11624  -*) as_dir=./$as_dir;;
11625  esac
11626  test -d "$as_dir" || eval $as_mkdir_p || {
11627    as_dirs=
11628    while :; do
11629      case $as_dir in #(
11630      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11631      *) as_qdir=$as_dir;;
11632      esac
11633      as_dirs="'$as_qdir' $as_dirs"
11634      as_dir=`$as_dirname -- "$as_dir" ||
11635$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11636	 X"$as_dir" : 'X\(//\)[^/]' \| \
11637	 X"$as_dir" : 'X\(//\)$' \| \
11638	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11639$as_echo X"$as_dir" |
11640    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11641	    s//\1/
11642	    q
11643	  }
11644	  /^X\(\/\/\)[^/].*/{
11645	    s//\1/
11646	    q
11647	  }
11648	  /^X\(\/\/\)$/{
11649	    s//\1/
11650	    q
11651	  }
11652	  /^X\(\/\).*/{
11653	    s//\1/
11654	    q
11655	  }
11656	  s/.*/./; q'`
11657      test -d "$as_dir" && break
11658    done
11659    test -z "$as_dirs" || eval "mkdir $as_dirs"
11660  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11661
11662
11663} # as_fn_mkdir_p
11664if mkdir -p . 2>/dev/null; then
11665  as_mkdir_p='mkdir -p "$as_dir"'
11666else
11667  test -d ./-p && rmdir ./-p
11668  as_mkdir_p=false
11669fi
11670
11671if test -x / >/dev/null 2>&1; then
11672  as_test_x='test -x'
11673else
11674  if ls -dL / >/dev/null 2>&1; then
11675    as_ls_L_option=L
11676  else
11677    as_ls_L_option=
11678  fi
11679  as_test_x='
11680    eval sh -c '\''
11681      if test -d "$1"; then
11682	test -d "$1/.";
11683      else
11684	case $1 in #(
11685	-*)set "./$1";;
11686	esac;
11687	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11688	???[sx]*):;;*)false;;esac;fi
11689    '\'' sh
11690  '
11691fi
11692as_executable_p=$as_test_x
11693
11694# Sed expression to map a string onto a valid CPP name.
11695as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11696
11697# Sed expression to map a string onto a valid variable name.
11698as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11699
11700
11701exec 6>&1
11702## ----------------------------------- ##
11703## Main body of $CONFIG_STATUS script. ##
11704## ----------------------------------- ##
11705_ASEOF
11706test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11707
11708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11709# Save the log message, to keep $0 and so on meaningful, and to
11710# report actual input values of CONFIG_FILES etc. instead of their
11711# values after options handling.
11712ac_log="
11713This file was extended by libXfixes $as_me 5.0, which was
11714generated by GNU Autoconf 2.66.  Invocation command line was
11715
11716  CONFIG_FILES    = $CONFIG_FILES
11717  CONFIG_HEADERS  = $CONFIG_HEADERS
11718  CONFIG_LINKS    = $CONFIG_LINKS
11719  CONFIG_COMMANDS = $CONFIG_COMMANDS
11720  $ $0 $@
11721
11722on `(hostname || uname -n) 2>/dev/null | sed 1q`
11723"
11724
11725_ACEOF
11726
11727case $ac_config_files in *"
11728"*) set x $ac_config_files; shift; ac_config_files=$*;;
11729esac
11730
11731case $ac_config_headers in *"
11732"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11733esac
11734
11735
11736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11737# Files that config.status was made for.
11738config_files="$ac_config_files"
11739config_headers="$ac_config_headers"
11740config_commands="$ac_config_commands"
11741
11742_ACEOF
11743
11744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11745ac_cs_usage="\
11746\`$as_me' instantiates files and other configuration actions
11747from templates according to the current configuration.  Unless the files
11748and actions are specified as TAGs, all are instantiated by default.
11749
11750Usage: $0 [OPTION]... [TAG]...
11751
11752  -h, --help       print this help, then exit
11753  -V, --version    print version number and configuration settings, then exit
11754      --config     print configuration, then exit
11755  -q, --quiet, --silent
11756                   do not print progress messages
11757  -d, --debug      don't remove temporary files
11758      --recheck    update $as_me by reconfiguring in the same conditions
11759      --file=FILE[:TEMPLATE]
11760                   instantiate the configuration file FILE
11761      --header=FILE[:TEMPLATE]
11762                   instantiate the configuration header FILE
11763
11764Configuration files:
11765$config_files
11766
11767Configuration headers:
11768$config_headers
11769
11770Configuration commands:
11771$config_commands
11772
11773Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11774
11775_ACEOF
11776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11777ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11778ac_cs_version="\\
11779libXfixes config.status 5.0
11780configured by $0, generated by GNU Autoconf 2.66,
11781  with options \\"\$ac_cs_config\\"
11782
11783Copyright (C) 2010 Free Software Foundation, Inc.
11784This config.status script is free software; the Free Software Foundation
11785gives unlimited permission to copy, distribute and modify it."
11786
11787ac_pwd='$ac_pwd'
11788srcdir='$srcdir'
11789INSTALL='$INSTALL'
11790MKDIR_P='$MKDIR_P'
11791AWK='$AWK'
11792test -n "\$AWK" || AWK=awk
11793_ACEOF
11794
11795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11796# The default lists apply if the user does not specify any file.
11797ac_need_defaults=:
11798while test $# != 0
11799do
11800  case $1 in
11801  --*=*)
11802    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11803    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11804    ac_shift=:
11805    ;;
11806  *)
11807    ac_option=$1
11808    ac_optarg=$2
11809    ac_shift=shift
11810    ;;
11811  esac
11812
11813  case $ac_option in
11814  # Handling of the options.
11815  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11816    ac_cs_recheck=: ;;
11817  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11818    $as_echo "$ac_cs_version"; exit ;;
11819  --config | --confi | --conf | --con | --co | --c )
11820    $as_echo "$ac_cs_config"; exit ;;
11821  --debug | --debu | --deb | --de | --d | -d )
11822    debug=: ;;
11823  --file | --fil | --fi | --f )
11824    $ac_shift
11825    case $ac_optarg in
11826    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11827    esac
11828    as_fn_append CONFIG_FILES " '$ac_optarg'"
11829    ac_need_defaults=false;;
11830  --header | --heade | --head | --hea )
11831    $ac_shift
11832    case $ac_optarg in
11833    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11834    esac
11835    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11836    ac_need_defaults=false;;
11837  --he | --h)
11838    # Conflict between --help and --header
11839    as_fn_error $? "ambiguous option: \`$1'
11840Try \`$0 --help' for more information.";;
11841  --help | --hel | -h )
11842    $as_echo "$ac_cs_usage"; exit ;;
11843  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11844  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11845    ac_cs_silent=: ;;
11846
11847  # This is an error.
11848  -*) as_fn_error $? "unrecognized option: \`$1'
11849Try \`$0 --help' for more information." ;;
11850
11851  *) as_fn_append ac_config_targets " $1"
11852     ac_need_defaults=false ;;
11853
11854  esac
11855  shift
11856done
11857
11858ac_configure_extra_args=
11859
11860if $ac_cs_silent; then
11861  exec 6>/dev/null
11862  ac_configure_extra_args="$ac_configure_extra_args --silent"
11863fi
11864
11865_ACEOF
11866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11867if \$ac_cs_recheck; then
11868  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11869  shift
11870  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11871  CONFIG_SHELL='$SHELL'
11872  export CONFIG_SHELL
11873  exec "\$@"
11874fi
11875
11876_ACEOF
11877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11878exec 5>>config.log
11879{
11880  echo
11881  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11882## Running $as_me. ##
11883_ASBOX
11884  $as_echo "$ac_log"
11885} >&5
11886
11887_ACEOF
11888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11889#
11890# INIT-COMMANDS
11891#
11892AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11893
11894
11895# The HP-UX ksh and POSIX shell print the target directory to stdout
11896# if CDPATH is set.
11897(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11898
11899sed_quote_subst='$sed_quote_subst'
11900double_quote_subst='$double_quote_subst'
11901delay_variable_subst='$delay_variable_subst'
11902macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11903macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11904enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11905enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11906pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11907enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11908SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11909ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11910host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11911host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11912host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11913build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11914build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11915build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11916SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11917Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11918GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11919EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11920FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11921LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11922NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11923LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11924max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11925ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11926exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11927lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11928lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11929lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11930reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11931reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11932OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11933deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11934file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11935AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11936AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11937STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11938RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11939old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11940old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11941old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11942lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11943CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11944CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11945compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11946GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11947lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11948lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11949lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11950lt_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"`'
11951objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11952MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11953lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11954lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11955lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11956lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11957lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11958need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11959DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11960NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11961LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11962OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11963OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11964libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11965shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11966extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11967archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11968enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11969export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11970whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11971compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11972old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11973old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11974archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11975archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11976module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11977module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11978with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11979allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11980no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11981hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11982hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11983hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11984hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11985hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11986hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11987hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11988hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11989inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11990link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11991fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11992always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11993export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11994exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11995include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11996prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11997file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11998variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11999need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12000need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12001version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12002runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12003shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12004shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12005libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12006library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12007soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12008install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12009postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12010postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12011finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12012finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12013hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12014sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12015sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12016hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12017enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12018enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12019enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12020old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12021striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12022
12023LTCC='$LTCC'
12024LTCFLAGS='$LTCFLAGS'
12025compiler='$compiler_DEFAULT'
12026
12027# A function that is used when there is no print builtin or printf.
12028func_fallback_echo ()
12029{
12030  eval 'cat <<_LTECHO_EOF
12031\$1
12032_LTECHO_EOF'
12033}
12034
12035# Quote evaled strings.
12036for var in SHELL \
12037ECHO \
12038SED \
12039GREP \
12040EGREP \
12041FGREP \
12042LD \
12043NM \
12044LN_S \
12045lt_SP2NL \
12046lt_NL2SP \
12047reload_flag \
12048OBJDUMP \
12049deplibs_check_method \
12050file_magic_cmd \
12051AR \
12052AR_FLAGS \
12053STRIP \
12054RANLIB \
12055CC \
12056CFLAGS \
12057compiler \
12058lt_cv_sys_global_symbol_pipe \
12059lt_cv_sys_global_symbol_to_cdecl \
12060lt_cv_sys_global_symbol_to_c_name_address \
12061lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12062lt_prog_compiler_no_builtin_flag \
12063lt_prog_compiler_wl \
12064lt_prog_compiler_pic \
12065lt_prog_compiler_static \
12066lt_cv_prog_compiler_c_o \
12067need_locks \
12068DSYMUTIL \
12069NMEDIT \
12070LIPO \
12071OTOOL \
12072OTOOL64 \
12073shrext_cmds \
12074export_dynamic_flag_spec \
12075whole_archive_flag_spec \
12076compiler_needs_object \
12077with_gnu_ld \
12078allow_undefined_flag \
12079no_undefined_flag \
12080hardcode_libdir_flag_spec \
12081hardcode_libdir_flag_spec_ld \
12082hardcode_libdir_separator \
12083fix_srcfile_path \
12084exclude_expsyms \
12085include_expsyms \
12086file_list_spec \
12087variables_saved_for_relink \
12088libname_spec \
12089library_names_spec \
12090soname_spec \
12091install_override_mode \
12092finish_eval \
12093old_striplib \
12094striplib; do
12095    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12096    *[\\\\\\\`\\"\\\$]*)
12097      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12098      ;;
12099    *)
12100      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12101      ;;
12102    esac
12103done
12104
12105# Double-quote double-evaled strings.
12106for var in reload_cmds \
12107old_postinstall_cmds \
12108old_postuninstall_cmds \
12109old_archive_cmds \
12110extract_expsyms_cmds \
12111old_archive_from_new_cmds \
12112old_archive_from_expsyms_cmds \
12113archive_cmds \
12114archive_expsym_cmds \
12115module_cmds \
12116module_expsym_cmds \
12117export_symbols_cmds \
12118prelink_cmds \
12119postinstall_cmds \
12120postuninstall_cmds \
12121finish_cmds \
12122sys_lib_search_path_spec \
12123sys_lib_dlsearch_path_spec; do
12124    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12125    *[\\\\\\\`\\"\\\$]*)
12126      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12127      ;;
12128    *)
12129      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12130      ;;
12131    esac
12132done
12133
12134ac_aux_dir='$ac_aux_dir'
12135xsi_shell='$xsi_shell'
12136lt_shell_append='$lt_shell_append'
12137
12138# See if we are running on zsh, and set the options which allow our
12139# commands through without removal of \ escapes INIT.
12140if test -n "\${ZSH_VERSION+set}" ; then
12141   setopt NO_GLOB_SUBST
12142fi
12143
12144
12145    PACKAGE='$PACKAGE'
12146    VERSION='$VERSION'
12147    TIMESTAMP='$TIMESTAMP'
12148    RM='$RM'
12149    ofile='$ofile'
12150
12151
12152
12153
12154_ACEOF
12155
12156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12157
12158# Handling of arguments.
12159for ac_config_target in $ac_config_targets
12160do
12161  case $ac_config_target in
12162    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12163    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12164    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12165    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12166    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12167    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12168    "xfixes.pc") CONFIG_FILES="$CONFIG_FILES xfixes.pc" ;;
12169
12170  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12171  esac
12172done
12173
12174
12175# If the user did not use the arguments to specify the items to instantiate,
12176# then the envvar interface is used.  Set only those that are not.
12177# We use the long form for the default assignment because of an extremely
12178# bizarre bug on SunOS 4.1.3.
12179if $ac_need_defaults; then
12180  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12181  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12182  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12183fi
12184
12185# Have a temporary directory for convenience.  Make it in the build tree
12186# simply because there is no reason against having it here, and in addition,
12187# creating and moving files from /tmp can sometimes cause problems.
12188# Hook for its removal unless debugging.
12189# Note that there is a small window in which the directory will not be cleaned:
12190# after its creation but before its name has been assigned to `$tmp'.
12191$debug ||
12192{
12193  tmp=
12194  trap 'exit_status=$?
12195  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12196' 0
12197  trap 'as_fn_exit 1' 1 2 13 15
12198}
12199# Create a (secure) tmp directory for tmp files.
12200
12201{
12202  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12203  test -n "$tmp" && test -d "$tmp"
12204}  ||
12205{
12206  tmp=./conf$$-$RANDOM
12207  (umask 077 && mkdir "$tmp")
12208} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12209
12210# Set up the scripts for CONFIG_FILES section.
12211# No need to generate them if there are no CONFIG_FILES.
12212# This happens for instance with `./config.status config.h'.
12213if test -n "$CONFIG_FILES"; then
12214
12215
12216ac_cr=`echo X | tr X '\015'`
12217# On cygwin, bash can eat \r inside `` if the user requested igncr.
12218# But we know of no other shell where ac_cr would be empty at this
12219# point, so we can use a bashism as a fallback.
12220if test "x$ac_cr" = x; then
12221  eval ac_cr=\$\'\\r\'
12222fi
12223ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12224if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12225  ac_cs_awk_cr='\\r'
12226else
12227  ac_cs_awk_cr=$ac_cr
12228fi
12229
12230echo 'BEGIN {' >"$tmp/subs1.awk" &&
12231_ACEOF
12232
12233
12234{
12235  echo "cat >conf$$subs.awk <<_ACEOF" &&
12236  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12237  echo "_ACEOF"
12238} >conf$$subs.sh ||
12239  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12240ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12241ac_delim='%!_!# '
12242for ac_last_try in false false false false false :; do
12243  . ./conf$$subs.sh ||
12244    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12245
12246  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12247  if test $ac_delim_n = $ac_delim_num; then
12248    break
12249  elif $ac_last_try; then
12250    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12251  else
12252    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12253  fi
12254done
12255rm -f conf$$subs.sh
12256
12257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12258cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12259_ACEOF
12260sed -n '
12261h
12262s/^/S["/; s/!.*/"]=/
12263p
12264g
12265s/^[^!]*!//
12266:repl
12267t repl
12268s/'"$ac_delim"'$//
12269t delim
12270:nl
12271h
12272s/\(.\{148\}\)..*/\1/
12273t more1
12274s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12275p
12276n
12277b repl
12278:more1
12279s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12280p
12281g
12282s/.\{148\}//
12283t nl
12284:delim
12285h
12286s/\(.\{148\}\)..*/\1/
12287t more2
12288s/["\\]/\\&/g; s/^/"/; s/$/"/
12289p
12290b
12291:more2
12292s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12293p
12294g
12295s/.\{148\}//
12296t delim
12297' <conf$$subs.awk | sed '
12298/^[^""]/{
12299  N
12300  s/\n//
12301}
12302' >>$CONFIG_STATUS || ac_write_fail=1
12303rm -f conf$$subs.awk
12304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12305_ACAWK
12306cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12307  for (key in S) S_is_set[key] = 1
12308  FS = ""
12309
12310}
12311{
12312  line = $ 0
12313  nfields = split(line, field, "@")
12314  substed = 0
12315  len = length(field[1])
12316  for (i = 2; i < nfields; i++) {
12317    key = field[i]
12318    keylen = length(key)
12319    if (S_is_set[key]) {
12320      value = S[key]
12321      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12322      len += length(value) + length(field[++i])
12323      substed = 1
12324    } else
12325      len += 1 + keylen
12326  }
12327
12328  print line
12329}
12330
12331_ACAWK
12332_ACEOF
12333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12334if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12335  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12336else
12337  cat
12338fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12339  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12340_ACEOF
12341
12342# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12343# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12344# trailing colons and then remove the whole line if VPATH becomes empty
12345# (actually we leave an empty line to preserve line numbers).
12346if test "x$srcdir" = x.; then
12347  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12348h
12349s///
12350s/^/:/
12351s/[	 ]*$/:/
12352s/:\$(srcdir):/:/g
12353s/:\${srcdir}:/:/g
12354s/:@srcdir@:/:/g
12355s/^:*//
12356s/:*$//
12357x
12358s/\(=[	 ]*\).*/\1/
12359G
12360s/\n//
12361s/^[^=]*=[	 ]*$//
12362}'
12363fi
12364
12365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12366fi # test -n "$CONFIG_FILES"
12367
12368# Set up the scripts for CONFIG_HEADERS section.
12369# No need to generate them if there are no CONFIG_HEADERS.
12370# This happens for instance with `./config.status Makefile'.
12371if test -n "$CONFIG_HEADERS"; then
12372cat >"$tmp/defines.awk" <<\_ACAWK ||
12373BEGIN {
12374_ACEOF
12375
12376# Transform confdefs.h into an awk script `defines.awk', embedded as
12377# here-document in config.status, that substitutes the proper values into
12378# config.h.in to produce config.h.
12379
12380# Create a delimiter string that does not exist in confdefs.h, to ease
12381# handling of long lines.
12382ac_delim='%!_!# '
12383for ac_last_try in false false :; do
12384  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12385  if test -z "$ac_t"; then
12386    break
12387  elif $ac_last_try; then
12388    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12389  else
12390    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12391  fi
12392done
12393
12394# For the awk script, D is an array of macro values keyed by name,
12395# likewise P contains macro parameters if any.  Preserve backslash
12396# newline sequences.
12397
12398ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12399sed -n '
12400s/.\{148\}/&'"$ac_delim"'/g
12401t rset
12402:rset
12403s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12404t def
12405d
12406:def
12407s/\\$//
12408t bsnl
12409s/["\\]/\\&/g
12410s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12411D["\1"]=" \3"/p
12412s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12413d
12414:bsnl
12415s/["\\]/\\&/g
12416s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12417D["\1"]=" \3\\\\\\n"\\/p
12418t cont
12419s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12420t cont
12421d
12422:cont
12423n
12424s/.\{148\}/&'"$ac_delim"'/g
12425t clear
12426:clear
12427s/\\$//
12428t bsnlc
12429s/["\\]/\\&/g; s/^/"/; s/$/"/p
12430d
12431:bsnlc
12432s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12433b cont
12434' <confdefs.h | sed '
12435s/'"$ac_delim"'/"\\\
12436"/g' >>$CONFIG_STATUS || ac_write_fail=1
12437
12438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12439  for (key in D) D_is_set[key] = 1
12440  FS = ""
12441}
12442/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12443  line = \$ 0
12444  split(line, arg, " ")
12445  if (arg[1] == "#") {
12446    defundef = arg[2]
12447    mac1 = arg[3]
12448  } else {
12449    defundef = substr(arg[1], 2)
12450    mac1 = arg[2]
12451  }
12452  split(mac1, mac2, "(") #)
12453  macro = mac2[1]
12454  prefix = substr(line, 1, index(line, defundef) - 1)
12455  if (D_is_set[macro]) {
12456    # Preserve the white space surrounding the "#".
12457    print prefix "define", macro P[macro] D[macro]
12458    next
12459  } else {
12460    # Replace #undef with comments.  This is necessary, for example,
12461    # in the case of _POSIX_SOURCE, which is predefined and required
12462    # on some systems where configure will not decide to define it.
12463    if (defundef == "undef") {
12464      print "/*", prefix defundef, macro, "*/"
12465      next
12466    }
12467  }
12468}
12469{ print }
12470_ACAWK
12471_ACEOF
12472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12473  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12474fi # test -n "$CONFIG_HEADERS"
12475
12476
12477eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12478shift
12479for ac_tag
12480do
12481  case $ac_tag in
12482  :[FHLC]) ac_mode=$ac_tag; continue;;
12483  esac
12484  case $ac_mode$ac_tag in
12485  :[FHL]*:*);;
12486  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12487  :[FH]-) ac_tag=-:-;;
12488  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12489  esac
12490  ac_save_IFS=$IFS
12491  IFS=:
12492  set x $ac_tag
12493  IFS=$ac_save_IFS
12494  shift
12495  ac_file=$1
12496  shift
12497
12498  case $ac_mode in
12499  :L) ac_source=$1;;
12500  :[FH])
12501    ac_file_inputs=
12502    for ac_f
12503    do
12504      case $ac_f in
12505      -) ac_f="$tmp/stdin";;
12506      *) # Look for the file first in the build tree, then in the source tree
12507	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12508	 # because $ac_f cannot contain `:'.
12509	 test -f "$ac_f" ||
12510	   case $ac_f in
12511	   [\\/$]*) false;;
12512	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12513	   esac ||
12514	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12515      esac
12516      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12517      as_fn_append ac_file_inputs " '$ac_f'"
12518    done
12519
12520    # Let's still pretend it is `configure' which instantiates (i.e., don't
12521    # use $as_me), people would be surprised to read:
12522    #    /* config.h.  Generated by config.status.  */
12523    configure_input='Generated from '`
12524	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12525	`' by configure.'
12526    if test x"$ac_file" != x-; then
12527      configure_input="$ac_file.  $configure_input"
12528      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12529$as_echo "$as_me: creating $ac_file" >&6;}
12530    fi
12531    # Neutralize special characters interpreted by sed in replacement strings.
12532    case $configure_input in #(
12533    *\&* | *\|* | *\\* )
12534       ac_sed_conf_input=`$as_echo "$configure_input" |
12535       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12536    *) ac_sed_conf_input=$configure_input;;
12537    esac
12538
12539    case $ac_tag in
12540    *:-:* | *:-) cat >"$tmp/stdin" \
12541      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12542    esac
12543    ;;
12544  esac
12545
12546  ac_dir=`$as_dirname -- "$ac_file" ||
12547$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12548	 X"$ac_file" : 'X\(//\)[^/]' \| \
12549	 X"$ac_file" : 'X\(//\)$' \| \
12550	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12551$as_echo X"$ac_file" |
12552    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12553	    s//\1/
12554	    q
12555	  }
12556	  /^X\(\/\/\)[^/].*/{
12557	    s//\1/
12558	    q
12559	  }
12560	  /^X\(\/\/\)$/{
12561	    s//\1/
12562	    q
12563	  }
12564	  /^X\(\/\).*/{
12565	    s//\1/
12566	    q
12567	  }
12568	  s/.*/./; q'`
12569  as_dir="$ac_dir"; as_fn_mkdir_p
12570  ac_builddir=.
12571
12572case "$ac_dir" in
12573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12574*)
12575  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12576  # A ".." for each directory in $ac_dir_suffix.
12577  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12578  case $ac_top_builddir_sub in
12579  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12580  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12581  esac ;;
12582esac
12583ac_abs_top_builddir=$ac_pwd
12584ac_abs_builddir=$ac_pwd$ac_dir_suffix
12585# for backward compatibility:
12586ac_top_builddir=$ac_top_build_prefix
12587
12588case $srcdir in
12589  .)  # We are building in place.
12590    ac_srcdir=.
12591    ac_top_srcdir=$ac_top_builddir_sub
12592    ac_abs_top_srcdir=$ac_pwd ;;
12593  [\\/]* | ?:[\\/]* )  # Absolute name.
12594    ac_srcdir=$srcdir$ac_dir_suffix;
12595    ac_top_srcdir=$srcdir
12596    ac_abs_top_srcdir=$srcdir ;;
12597  *) # Relative name.
12598    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12599    ac_top_srcdir=$ac_top_build_prefix$srcdir
12600    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12601esac
12602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12603
12604
12605  case $ac_mode in
12606  :F)
12607  #
12608  # CONFIG_FILE
12609  #
12610
12611  case $INSTALL in
12612  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12613  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12614  esac
12615  ac_MKDIR_P=$MKDIR_P
12616  case $MKDIR_P in
12617  [\\/$]* | ?:[\\/]* ) ;;
12618  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12619  esac
12620_ACEOF
12621
12622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12623# If the template does not know about datarootdir, expand it.
12624# FIXME: This hack should be removed a few years after 2.60.
12625ac_datarootdir_hack=; ac_datarootdir_seen=
12626ac_sed_dataroot='
12627/datarootdir/ {
12628  p
12629  q
12630}
12631/@datadir@/p
12632/@docdir@/p
12633/@infodir@/p
12634/@localedir@/p
12635/@mandir@/p'
12636case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12637*datarootdir*) ac_datarootdir_seen=yes;;
12638*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12639  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12640$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12641_ACEOF
12642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12643  ac_datarootdir_hack='
12644  s&@datadir@&$datadir&g
12645  s&@docdir@&$docdir&g
12646  s&@infodir@&$infodir&g
12647  s&@localedir@&$localedir&g
12648  s&@mandir@&$mandir&g
12649  s&\\\${datarootdir}&$datarootdir&g' ;;
12650esac
12651_ACEOF
12652
12653# Neutralize VPATH when `$srcdir' = `.'.
12654# Shell code in configure.ac might set extrasub.
12655# FIXME: do we really want to maintain this feature?
12656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12657ac_sed_extra="$ac_vpsub
12658$extrasub
12659_ACEOF
12660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12661:t
12662/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12663s|@configure_input@|$ac_sed_conf_input|;t t
12664s&@top_builddir@&$ac_top_builddir_sub&;t t
12665s&@top_build_prefix@&$ac_top_build_prefix&;t t
12666s&@srcdir@&$ac_srcdir&;t t
12667s&@abs_srcdir@&$ac_abs_srcdir&;t t
12668s&@top_srcdir@&$ac_top_srcdir&;t t
12669s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12670s&@builddir@&$ac_builddir&;t t
12671s&@abs_builddir@&$ac_abs_builddir&;t t
12672s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12673s&@INSTALL@&$ac_INSTALL&;t t
12674s&@MKDIR_P@&$ac_MKDIR_P&;t t
12675$ac_datarootdir_hack
12676"
12677eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12678  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12679
12680test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12681  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12682  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12683  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12684which seems to be undefined.  Please make sure it is defined" >&5
12685$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12686which seems to be undefined.  Please make sure it is defined" >&2;}
12687
12688  rm -f "$tmp/stdin"
12689  case $ac_file in
12690  -) cat "$tmp/out" && rm -f "$tmp/out";;
12691  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12692  esac \
12693  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12694 ;;
12695  :H)
12696  #
12697  # CONFIG_HEADER
12698  #
12699  if test x"$ac_file" != x-; then
12700    {
12701      $as_echo "/* $configure_input  */" \
12702      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12703    } >"$tmp/config.h" \
12704      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12705    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12706      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12707$as_echo "$as_me: $ac_file is unchanged" >&6;}
12708    else
12709      rm -f "$ac_file"
12710      mv "$tmp/config.h" "$ac_file" \
12711	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12712    fi
12713  else
12714    $as_echo "/* $configure_input  */" \
12715      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12716      || as_fn_error $? "could not create -" "$LINENO" 5
12717  fi
12718# Compute "$ac_file"'s index in $config_headers.
12719_am_arg="$ac_file"
12720_am_stamp_count=1
12721for _am_header in $config_headers :; do
12722  case $_am_header in
12723    $_am_arg | $_am_arg:* )
12724      break ;;
12725    * )
12726      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12727  esac
12728done
12729echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12730$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12731	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12732	 X"$_am_arg" : 'X\(//\)$' \| \
12733	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12734$as_echo X"$_am_arg" |
12735    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12736	    s//\1/
12737	    q
12738	  }
12739	  /^X\(\/\/\)[^/].*/{
12740	    s//\1/
12741	    q
12742	  }
12743	  /^X\(\/\/\)$/{
12744	    s//\1/
12745	    q
12746	  }
12747	  /^X\(\/\).*/{
12748	    s//\1/
12749	    q
12750	  }
12751	  s/.*/./; q'`/stamp-h$_am_stamp_count
12752 ;;
12753
12754  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12755$as_echo "$as_me: executing $ac_file commands" >&6;}
12756 ;;
12757  esac
12758
12759
12760  case $ac_file$ac_mode in
12761    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12762  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12763  # are listed without --file.  Let's play safe and only enable the eval
12764  # if we detect the quoting.
12765  case $CONFIG_FILES in
12766  *\'*) eval set x "$CONFIG_FILES" ;;
12767  *)   set x $CONFIG_FILES ;;
12768  esac
12769  shift
12770  for mf
12771  do
12772    # Strip MF so we end up with the name of the file.
12773    mf=`echo "$mf" | sed -e 's/:.*$//'`
12774    # Check whether this is an Automake generated Makefile or not.
12775    # We used to match only the files named `Makefile.in', but
12776    # some people rename them; so instead we look at the file content.
12777    # Grep'ing the first line is not enough: some people post-process
12778    # each Makefile.in and add a new line on top of each file to say so.
12779    # Grep'ing the whole file is not good either: AIX grep has a line
12780    # limit of 2048, but all sed's we know have understand at least 4000.
12781    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12782      dirpart=`$as_dirname -- "$mf" ||
12783$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12784	 X"$mf" : 'X\(//\)[^/]' \| \
12785	 X"$mf" : 'X\(//\)$' \| \
12786	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12787$as_echo X"$mf" |
12788    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12789	    s//\1/
12790	    q
12791	  }
12792	  /^X\(\/\/\)[^/].*/{
12793	    s//\1/
12794	    q
12795	  }
12796	  /^X\(\/\/\)$/{
12797	    s//\1/
12798	    q
12799	  }
12800	  /^X\(\/\).*/{
12801	    s//\1/
12802	    q
12803	  }
12804	  s/.*/./; q'`
12805    else
12806      continue
12807    fi
12808    # Extract the definition of DEPDIR, am__include, and am__quote
12809    # from the Makefile without running `make'.
12810    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12811    test -z "$DEPDIR" && continue
12812    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12813    test -z "am__include" && continue
12814    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12815    # When using ansi2knr, U may be empty or an underscore; expand it
12816    U=`sed -n 's/^U = //p' < "$mf"`
12817    # Find all dependency output files, they are included files with
12818    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12819    # simplest approach to changing $(DEPDIR) to its actual value in the
12820    # expansion.
12821    for file in `sed -n "
12822      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12823	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12824      # Make sure the directory exists.
12825      test -f "$dirpart/$file" && continue
12826      fdir=`$as_dirname -- "$file" ||
12827$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12828	 X"$file" : 'X\(//\)[^/]' \| \
12829	 X"$file" : 'X\(//\)$' \| \
12830	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12831$as_echo X"$file" |
12832    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12833	    s//\1/
12834	    q
12835	  }
12836	  /^X\(\/\/\)[^/].*/{
12837	    s//\1/
12838	    q
12839	  }
12840	  /^X\(\/\/\)$/{
12841	    s//\1/
12842	    q
12843	  }
12844	  /^X\(\/\).*/{
12845	    s//\1/
12846	    q
12847	  }
12848	  s/.*/./; q'`
12849      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12850      # echo "creating $dirpart/$file"
12851      echo '# dummy' > "$dirpart/$file"
12852    done
12853  done
12854}
12855 ;;
12856    "libtool":C)
12857
12858    # See if we are running on zsh, and set the options which allow our
12859    # commands through without removal of \ escapes.
12860    if test -n "${ZSH_VERSION+set}" ; then
12861      setopt NO_GLOB_SUBST
12862    fi
12863
12864    cfgfile="${ofile}T"
12865    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12866    $RM "$cfgfile"
12867
12868    cat <<_LT_EOF >> "$cfgfile"
12869#! $SHELL
12870
12871# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12872# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12873# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12874# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12875#
12876#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12877#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12878#                 Inc.
12879#   Written by Gordon Matzigkeit, 1996
12880#
12881#   This file is part of GNU Libtool.
12882#
12883# GNU Libtool is free software; you can redistribute it and/or
12884# modify it under the terms of the GNU General Public License as
12885# published by the Free Software Foundation; either version 2 of
12886# the License, or (at your option) any later version.
12887#
12888# As a special exception to the GNU General Public License,
12889# if you distribute this file as part of a program or library that
12890# is built using GNU Libtool, you may include this file under the
12891# same distribution terms that you use for the rest of that program.
12892#
12893# GNU Libtool is distributed in the hope that it will be useful,
12894# but WITHOUT ANY WARRANTY; without even the implied warranty of
12895# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12896# GNU General Public License for more details.
12897#
12898# You should have received a copy of the GNU General Public License
12899# along with GNU Libtool; see the file COPYING.  If not, a copy
12900# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12901# obtained by writing to the Free Software Foundation, Inc.,
12902# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12903
12904
12905# The names of the tagged configurations supported by this script.
12906available_tags=""
12907
12908# ### BEGIN LIBTOOL CONFIG
12909
12910# Which release of libtool.m4 was used?
12911macro_version=$macro_version
12912macro_revision=$macro_revision
12913
12914# Whether or not to build shared libraries.
12915build_libtool_libs=$enable_shared
12916
12917# Whether or not to build static libraries.
12918build_old_libs=$enable_static
12919
12920# What type of objects to build.
12921pic_mode=$pic_mode
12922
12923# Whether or not to optimize for fast installation.
12924fast_install=$enable_fast_install
12925
12926# Shell to use when invoking shell scripts.
12927SHELL=$lt_SHELL
12928
12929# An echo program that protects backslashes.
12930ECHO=$lt_ECHO
12931
12932# The host system.
12933host_alias=$host_alias
12934host=$host
12935host_os=$host_os
12936
12937# The build system.
12938build_alias=$build_alias
12939build=$build
12940build_os=$build_os
12941
12942# A sed program that does not truncate output.
12943SED=$lt_SED
12944
12945# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12946Xsed="\$SED -e 1s/^X//"
12947
12948# A grep program that handles long lines.
12949GREP=$lt_GREP
12950
12951# An ERE matcher.
12952EGREP=$lt_EGREP
12953
12954# A literal string matcher.
12955FGREP=$lt_FGREP
12956
12957# A BSD- or MS-compatible name lister.
12958NM=$lt_NM
12959
12960# Whether we need soft or hard links.
12961LN_S=$lt_LN_S
12962
12963# What is the maximum length of a command?
12964max_cmd_len=$max_cmd_len
12965
12966# Object file suffix (normally "o").
12967objext=$ac_objext
12968
12969# Executable file suffix (normally "").
12970exeext=$exeext
12971
12972# whether the shell understands "unset".
12973lt_unset=$lt_unset
12974
12975# turn spaces into newlines.
12976SP2NL=$lt_lt_SP2NL
12977
12978# turn newlines into spaces.
12979NL2SP=$lt_lt_NL2SP
12980
12981# An object symbol dumper.
12982OBJDUMP=$lt_OBJDUMP
12983
12984# Method to check whether dependent libraries are shared objects.
12985deplibs_check_method=$lt_deplibs_check_method
12986
12987# Command to use when deplibs_check_method == "file_magic".
12988file_magic_cmd=$lt_file_magic_cmd
12989
12990# The archiver.
12991AR=$lt_AR
12992AR_FLAGS=$lt_AR_FLAGS
12993
12994# A symbol stripping program.
12995STRIP=$lt_STRIP
12996
12997# Commands used to install an old-style archive.
12998RANLIB=$lt_RANLIB
12999old_postinstall_cmds=$lt_old_postinstall_cmds
13000old_postuninstall_cmds=$lt_old_postuninstall_cmds
13001
13002# Whether to use a lock for old archive extraction.
13003lock_old_archive_extraction=$lock_old_archive_extraction
13004
13005# A C compiler.
13006LTCC=$lt_CC
13007
13008# LTCC compiler flags.
13009LTCFLAGS=$lt_CFLAGS
13010
13011# Take the output of nm and produce a listing of raw symbols and C names.
13012global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13013
13014# Transform the output of nm in a proper C declaration.
13015global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13016
13017# Transform the output of nm in a C name address pair.
13018global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13019
13020# Transform the output of nm in a C name address pair when lib prefix is needed.
13021global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13022
13023# The name of the directory that contains temporary libtool files.
13024objdir=$objdir
13025
13026# Used to examine libraries when file_magic_cmd begins with "file".
13027MAGIC_CMD=$MAGIC_CMD
13028
13029# Must we lock files when doing compilation?
13030need_locks=$lt_need_locks
13031
13032# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13033DSYMUTIL=$lt_DSYMUTIL
13034
13035# Tool to change global to local symbols on Mac OS X.
13036NMEDIT=$lt_NMEDIT
13037
13038# Tool to manipulate fat objects and archives on Mac OS X.
13039LIPO=$lt_LIPO
13040
13041# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13042OTOOL=$lt_OTOOL
13043
13044# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13045OTOOL64=$lt_OTOOL64
13046
13047# Old archive suffix (normally "a").
13048libext=$libext
13049
13050# Shared library suffix (normally ".so").
13051shrext_cmds=$lt_shrext_cmds
13052
13053# The commands to extract the exported symbol list from a shared archive.
13054extract_expsyms_cmds=$lt_extract_expsyms_cmds
13055
13056# Variables whose values should be saved in libtool wrapper scripts and
13057# restored at link time.
13058variables_saved_for_relink=$lt_variables_saved_for_relink
13059
13060# Do we need the "lib" prefix for modules?
13061need_lib_prefix=$need_lib_prefix
13062
13063# Do we need a version for libraries?
13064need_version=$need_version
13065
13066# Library versioning type.
13067version_type=$version_type
13068
13069# Shared library runtime path variable.
13070runpath_var=$runpath_var
13071
13072# Shared library path variable.
13073shlibpath_var=$shlibpath_var
13074
13075# Is shlibpath searched before the hard-coded library search path?
13076shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13077
13078# Format of library name prefix.
13079libname_spec=$lt_libname_spec
13080
13081# List of archive names.  First name is the real one, the rest are links.
13082# The last name is the one that the linker finds with -lNAME
13083library_names_spec=$lt_library_names_spec
13084
13085# The coded name of the library, if different from the real name.
13086soname_spec=$lt_soname_spec
13087
13088# Permission mode override for installation of shared libraries.
13089install_override_mode=$lt_install_override_mode
13090
13091# Command to use after installation of a shared archive.
13092postinstall_cmds=$lt_postinstall_cmds
13093
13094# Command to use after uninstallation of a shared archive.
13095postuninstall_cmds=$lt_postuninstall_cmds
13096
13097# Commands used to finish a libtool library installation in a directory.
13098finish_cmds=$lt_finish_cmds
13099
13100# As "finish_cmds", except a single script fragment to be evaled but
13101# not shown.
13102finish_eval=$lt_finish_eval
13103
13104# Whether we should hardcode library paths into libraries.
13105hardcode_into_libs=$hardcode_into_libs
13106
13107# Compile-time system search path for libraries.
13108sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13109
13110# Run-time system search path for libraries.
13111sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13112
13113# Whether dlopen is supported.
13114dlopen_support=$enable_dlopen
13115
13116# Whether dlopen of programs is supported.
13117dlopen_self=$enable_dlopen_self
13118
13119# Whether dlopen of statically linked programs is supported.
13120dlopen_self_static=$enable_dlopen_self_static
13121
13122# Commands to strip libraries.
13123old_striplib=$lt_old_striplib
13124striplib=$lt_striplib
13125
13126
13127# The linker used to build libraries.
13128LD=$lt_LD
13129
13130# How to create reloadable object files.
13131reload_flag=$lt_reload_flag
13132reload_cmds=$lt_reload_cmds
13133
13134# Commands used to build an old-style archive.
13135old_archive_cmds=$lt_old_archive_cmds
13136
13137# A language specific compiler.
13138CC=$lt_compiler
13139
13140# Is the compiler the GNU compiler?
13141with_gcc=$GCC
13142
13143# Compiler flag to turn off builtin functions.
13144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13145
13146# How to pass a linker flag through the compiler.
13147wl=$lt_lt_prog_compiler_wl
13148
13149# Additional compiler flags for building library objects.
13150pic_flag=$lt_lt_prog_compiler_pic
13151
13152# Compiler flag to prevent dynamic linking.
13153link_static_flag=$lt_lt_prog_compiler_static
13154
13155# Does compiler simultaneously support -c and -o options?
13156compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13157
13158# Whether or not to add -lc for building shared libraries.
13159build_libtool_need_lc=$archive_cmds_need_lc
13160
13161# Whether or not to disallow shared libs when runtime libs are static.
13162allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13163
13164# Compiler flag to allow reflexive dlopens.
13165export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13166
13167# Compiler flag to generate shared objects directly from archives.
13168whole_archive_flag_spec=$lt_whole_archive_flag_spec
13169
13170# Whether the compiler copes with passing no objects directly.
13171compiler_needs_object=$lt_compiler_needs_object
13172
13173# Create an old-style archive from a shared archive.
13174old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13175
13176# Create a temporary old-style archive to link instead of a shared archive.
13177old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13178
13179# Commands used to build a shared archive.
13180archive_cmds=$lt_archive_cmds
13181archive_expsym_cmds=$lt_archive_expsym_cmds
13182
13183# Commands used to build a loadable module if different from building
13184# a shared archive.
13185module_cmds=$lt_module_cmds
13186module_expsym_cmds=$lt_module_expsym_cmds
13187
13188# Whether we are building with GNU ld or not.
13189with_gnu_ld=$lt_with_gnu_ld
13190
13191# Flag that allows shared libraries with undefined symbols to be built.
13192allow_undefined_flag=$lt_allow_undefined_flag
13193
13194# Flag that enforces no undefined symbols.
13195no_undefined_flag=$lt_no_undefined_flag
13196
13197# Flag to hardcode \$libdir into a binary during linking.
13198# This must work even if \$libdir does not exist
13199hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13200
13201# If ld is used when linking, flag to hardcode \$libdir into a binary
13202# during linking.  This must work even if \$libdir does not exist.
13203hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13204
13205# Whether we need a single "-rpath" flag with a separated argument.
13206hardcode_libdir_separator=$lt_hardcode_libdir_separator
13207
13208# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13209# DIR into the resulting binary.
13210hardcode_direct=$hardcode_direct
13211
13212# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13213# DIR into the resulting binary and the resulting library dependency is
13214# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13215# library is relocated.
13216hardcode_direct_absolute=$hardcode_direct_absolute
13217
13218# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13219# into the resulting binary.
13220hardcode_minus_L=$hardcode_minus_L
13221
13222# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13223# into the resulting binary.
13224hardcode_shlibpath_var=$hardcode_shlibpath_var
13225
13226# Set to "yes" if building a shared library automatically hardcodes DIR
13227# into the library and all subsequent libraries and executables linked
13228# against it.
13229hardcode_automatic=$hardcode_automatic
13230
13231# Set to yes if linker adds runtime paths of dependent libraries
13232# to runtime path list.
13233inherit_rpath=$inherit_rpath
13234
13235# Whether libtool must link a program against all its dependency libraries.
13236link_all_deplibs=$link_all_deplibs
13237
13238# Fix the shell variable \$srcfile for the compiler.
13239fix_srcfile_path=$lt_fix_srcfile_path
13240
13241# Set to "yes" if exported symbols are required.
13242always_export_symbols=$always_export_symbols
13243
13244# The commands to list exported symbols.
13245export_symbols_cmds=$lt_export_symbols_cmds
13246
13247# Symbols that should not be listed in the preloaded symbols.
13248exclude_expsyms=$lt_exclude_expsyms
13249
13250# Symbols that must always be exported.
13251include_expsyms=$lt_include_expsyms
13252
13253# Commands necessary for linking programs (against libraries) with templates.
13254prelink_cmds=$lt_prelink_cmds
13255
13256# Specify filename containing input files.
13257file_list_spec=$lt_file_list_spec
13258
13259# How to hardcode a shared library path into an executable.
13260hardcode_action=$hardcode_action
13261
13262# ### END LIBTOOL CONFIG
13263
13264_LT_EOF
13265
13266  case $host_os in
13267  aix3*)
13268    cat <<\_LT_EOF >> "$cfgfile"
13269# AIX sometimes has problems with the GCC collect2 program.  For some
13270# reason, if we set the COLLECT_NAMES environment variable, the problems
13271# vanish in a puff of smoke.
13272if test "X${COLLECT_NAMES+set}" != Xset; then
13273  COLLECT_NAMES=
13274  export COLLECT_NAMES
13275fi
13276_LT_EOF
13277    ;;
13278  esac
13279
13280
13281ltmain="$ac_aux_dir/ltmain.sh"
13282
13283
13284  # We use sed instead of cat because bash on DJGPP gets confused if
13285  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13286  # text mode, it properly converts lines to CR/LF.  This bash problem
13287  # is reportedly fixed, but why not run on old versions too?
13288  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13289    || (rm -f "$cfgfile"; exit 1)
13290
13291  case $xsi_shell in
13292  yes)
13293    cat << \_LT_EOF >> "$cfgfile"
13294
13295# func_dirname file append nondir_replacement
13296# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13297# otherwise set result to NONDIR_REPLACEMENT.
13298func_dirname ()
13299{
13300  case ${1} in
13301    */*) func_dirname_result="${1%/*}${2}" ;;
13302    *  ) func_dirname_result="${3}" ;;
13303  esac
13304}
13305
13306# func_basename file
13307func_basename ()
13308{
13309  func_basename_result="${1##*/}"
13310}
13311
13312# func_dirname_and_basename file append nondir_replacement
13313# perform func_basename and func_dirname in a single function
13314# call:
13315#   dirname:  Compute the dirname of FILE.  If nonempty,
13316#             add APPEND to the result, otherwise set result
13317#             to NONDIR_REPLACEMENT.
13318#             value returned in "$func_dirname_result"
13319#   basename: Compute filename of FILE.
13320#             value retuned in "$func_basename_result"
13321# Implementation must be kept synchronized with func_dirname
13322# and func_basename. For efficiency, we do not delegate to
13323# those functions but instead duplicate the functionality here.
13324func_dirname_and_basename ()
13325{
13326  case ${1} in
13327    */*) func_dirname_result="${1%/*}${2}" ;;
13328    *  ) func_dirname_result="${3}" ;;
13329  esac
13330  func_basename_result="${1##*/}"
13331}
13332
13333# func_stripname prefix suffix name
13334# strip PREFIX and SUFFIX off of NAME.
13335# PREFIX and SUFFIX must not contain globbing or regex special
13336# characters, hashes, percent signs, but SUFFIX may contain a leading
13337# dot (in which case that matches only a dot).
13338func_stripname ()
13339{
13340  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13341  # positional parameters, so assign one to ordinary parameter first.
13342  func_stripname_result=${3}
13343  func_stripname_result=${func_stripname_result#"${1}"}
13344  func_stripname_result=${func_stripname_result%"${2}"}
13345}
13346
13347# func_opt_split
13348func_opt_split ()
13349{
13350  func_opt_split_opt=${1%%=*}
13351  func_opt_split_arg=${1#*=}
13352}
13353
13354# func_lo2o object
13355func_lo2o ()
13356{
13357  case ${1} in
13358    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13359    *)    func_lo2o_result=${1} ;;
13360  esac
13361}
13362
13363# func_xform libobj-or-source
13364func_xform ()
13365{
13366  func_xform_result=${1%.*}.lo
13367}
13368
13369# func_arith arithmetic-term...
13370func_arith ()
13371{
13372  func_arith_result=$(( $* ))
13373}
13374
13375# func_len string
13376# STRING may not start with a hyphen.
13377func_len ()
13378{
13379  func_len_result=${#1}
13380}
13381
13382_LT_EOF
13383    ;;
13384  *) # Bourne compatible functions.
13385    cat << \_LT_EOF >> "$cfgfile"
13386
13387# func_dirname file append nondir_replacement
13388# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13389# otherwise set result to NONDIR_REPLACEMENT.
13390func_dirname ()
13391{
13392  # Extract subdirectory from the argument.
13393  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13394  if test "X$func_dirname_result" = "X${1}"; then
13395    func_dirname_result="${3}"
13396  else
13397    func_dirname_result="$func_dirname_result${2}"
13398  fi
13399}
13400
13401# func_basename file
13402func_basename ()
13403{
13404  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13405}
13406
13407
13408# func_stripname prefix suffix name
13409# strip PREFIX and SUFFIX off of NAME.
13410# PREFIX and SUFFIX must not contain globbing or regex special
13411# characters, hashes, percent signs, but SUFFIX may contain a leading
13412# dot (in which case that matches only a dot).
13413# func_strip_suffix prefix name
13414func_stripname ()
13415{
13416  case ${2} in
13417    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13418    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13419  esac
13420}
13421
13422# sed scripts:
13423my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13424my_sed_long_arg='1s/^-[^=]*=//'
13425
13426# func_opt_split
13427func_opt_split ()
13428{
13429  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13430  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13431}
13432
13433# func_lo2o object
13434func_lo2o ()
13435{
13436  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13437}
13438
13439# func_xform libobj-or-source
13440func_xform ()
13441{
13442  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13443}
13444
13445# func_arith arithmetic-term...
13446func_arith ()
13447{
13448  func_arith_result=`expr "$@"`
13449}
13450
13451# func_len string
13452# STRING may not start with a hyphen.
13453func_len ()
13454{
13455  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13456}
13457
13458_LT_EOF
13459esac
13460
13461case $lt_shell_append in
13462  yes)
13463    cat << \_LT_EOF >> "$cfgfile"
13464
13465# func_append var value
13466# Append VALUE to the end of shell variable VAR.
13467func_append ()
13468{
13469  eval "$1+=\$2"
13470}
13471_LT_EOF
13472    ;;
13473  *)
13474    cat << \_LT_EOF >> "$cfgfile"
13475
13476# func_append var value
13477# Append VALUE to the end of shell variable VAR.
13478func_append ()
13479{
13480  eval "$1=\$$1\$2"
13481}
13482
13483_LT_EOF
13484    ;;
13485  esac
13486
13487
13488  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13489    || (rm -f "$cfgfile"; exit 1)
13490
13491  mv -f "$cfgfile" "$ofile" ||
13492    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13493  chmod +x "$ofile"
13494
13495 ;;
13496
13497  esac
13498done # for ac_tag
13499
13500
13501as_fn_exit 0
13502_ACEOF
13503ac_clean_files=$ac_clean_files_save
13504
13505test $ac_write_fail = 0 ||
13506  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13507
13508
13509# configure is writing to config.log, and then calls config.status.
13510# config.status does its own redirection, appending to config.log.
13511# Unfortunately, on DOS this fails, as config.log is still kept open
13512# by configure, so config.status won't be able to write to it; its
13513# output is simply discarded.  So we exec the FD to /dev/null,
13514# effectively closing config.log, so it can be properly (re)opened and
13515# appended to by config.status.  When coming back to configure, we
13516# need to make the FD available again.
13517if test "$no_create" != yes; then
13518  ac_cs_success=:
13519  ac_config_status_args=
13520  test "$silent" = yes &&
13521    ac_config_status_args="$ac_config_status_args --quiet"
13522  exec 5>/dev/null
13523  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13524  exec 5>>config.log
13525  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13526  # would make configure fail if this is the last instruction.
13527  $ac_cs_success || as_fn_exit 1
13528fi
13529if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13530  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13531$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13532fi
13533
13534