configure revision bd23fbfa
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXrandr 1.3.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='libXrandr'
573PACKAGE_TARNAME='libXrandr'
574PACKAGE_VERSION='1.3.2'
575PACKAGE_STRING='libXrandr 1.3.2'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620RANDR_LIBS
621RANDR_CFLAGS
622RANDR_VERSION
623XTMALLOC_ZERO_CFLAGS
624XMALLOC_ZERO_CFLAGS
625MALLOC_ZERO_CFLAGS
626AM_BACKSLASH
627AM_DEFAULT_VERBOSITY
628MAN_SUBSTS
629XORG_MAN_PAGE
630ADMIN_MAN_DIR
631DRIVER_MAN_DIR
632MISC_MAN_DIR
633FILE_MAN_DIR
634LIB_MAN_DIR
635APP_MAN_DIR
636ADMIN_MAN_SUFFIX
637DRIVER_MAN_SUFFIX
638MISC_MAN_SUFFIX
639FILE_MAN_SUFFIX
640LIB_MAN_SUFFIX
641APP_MAN_SUFFIX
642INSTALL_CMD
643PKG_CONFIG
644CHANGELOG_CMD
645STRICT_CFLAGS
646CWARNFLAGS
647CPP
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
653MANIFEST_TOOL
654RANLIB
655ac_ct_AR
656AR
657DLLTOOL
658OBJDUMP
659LN_S
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665EGREP
666GREP
667SED
668am__fastdepCC_FALSE
669am__fastdepCC_TRUE
670CCDEPMODE
671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
674am__quote
675am__include
676DEPDIR
677OBJEXT
678EXEEXT
679ac_ct_CC
680CPPFLAGS
681LDFLAGS
682CFLAGS
683CC
684host_os
685host_vendor
686host_cpu
687host
688build_os
689build_vendor
690build_cpu
691build
692LIBTOOL
693MAINT
694MAINTAINER_MODE_FALSE
695MAINTAINER_MODE_TRUE
696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
749PACKAGE_URL
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
757ac_subst_files=''
758ac_user_opts='
759enable_option_checking
760enable_maintainer_mode
761enable_shared
762enable_static
763with_pic
764enable_fast_install
765enable_dependency_tracking
766with_gnu_ld
767with_sysroot
768enable_libtool_lock
769enable_strict_compilation
770enable_silent_rules
771enable_malloc0returnsnull
772'
773      ac_precious_vars='build_alias
774host_alias
775target_alias
776CC
777CFLAGS
778LDFLAGS
779LIBS
780CPPFLAGS
781CPP
782PKG_CONFIG
783RANDR_CFLAGS
784RANDR_LIBS'
785
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
790ac_unrecognized_opts=
791ac_unrecognized_sep=
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
814# (The list follows the same order as the GNU Coding Standards.)
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
823includedir='${prefix}/include'
824oldincludedir='/usr/include'
825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
834
835ac_prev=
836ac_dashdash=
837for ac_option
838do
839  # If the previous option needs an argument, assign it.
840  if test -n "$ac_prev"; then
841    eval $ac_prev=\$ac_option
842    ac_prev=
843    continue
844  fi
845
846  case $ac_option in
847  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848  *=)   ac_optarg= ;;
849  *)    ac_optarg=yes ;;
850  esac
851
852  # Accept the important Cygnus configure options, so we can diagnose typos.
853
854  case $ac_dashdash$ac_option in
855  --)
856    ac_dashdash=yes ;;
857
858  -bindir | --bindir | --bindi | --bind | --bin | --bi)
859    ac_prev=bindir ;;
860  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861    bindir=$ac_optarg ;;
862
863  -build | --build | --buil | --bui | --bu)
864    ac_prev=build_alias ;;
865  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866    build_alias=$ac_optarg ;;
867
868  -cache-file | --cache-file | --cache-fil | --cache-fi \
869  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870    ac_prev=cache_file ;;
871  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873    cache_file=$ac_optarg ;;
874
875  --config-cache | -C)
876    cache_file=config.cache ;;
877
878  -datadir | --datadir | --datadi | --datad)
879    ac_prev=datadir ;;
880  -datadir=* | --datadir=* | --datadi=* | --datad=*)
881    datadir=$ac_optarg ;;
882
883  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884  | --dataroo | --dataro | --datar)
885    ac_prev=datarootdir ;;
886  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888    datarootdir=$ac_optarg ;;
889
890  -disable-* | --disable-*)
891    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892    # Reject names that are not valid shell variable names.
893    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894      as_fn_error $? "invalid feature name: $ac_useropt"
895    ac_useropt_orig=$ac_useropt
896    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897    case $ac_user_opts in
898      *"
899"enable_$ac_useropt"
900"*) ;;
901      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902	 ac_unrecognized_sep=', ';;
903    esac
904    eval enable_$ac_useropt=no ;;
905
906  -docdir | --docdir | --docdi | --doc | --do)
907    ac_prev=docdir ;;
908  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909    docdir=$ac_optarg ;;
910
911  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912    ac_prev=dvidir ;;
913  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914    dvidir=$ac_optarg ;;
915
916  -enable-* | --enable-*)
917    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918    # Reject names that are not valid shell variable names.
919    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920      as_fn_error $? "invalid feature name: $ac_useropt"
921    ac_useropt_orig=$ac_useropt
922    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923    case $ac_user_opts in
924      *"
925"enable_$ac_useropt"
926"*) ;;
927      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928	 ac_unrecognized_sep=', ';;
929    esac
930    eval enable_$ac_useropt=\$ac_optarg ;;
931
932  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934  | --exec | --exe | --ex)
935    ac_prev=exec_prefix ;;
936  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938  | --exec=* | --exe=* | --ex=*)
939    exec_prefix=$ac_optarg ;;
940
941  -gas | --gas | --ga | --g)
942    # Obsolete; use --with-gas.
943    with_gas=yes ;;
944
945  -help | --help | --hel | --he | -h)
946    ac_init_help=long ;;
947  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948    ac_init_help=recursive ;;
949  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950    ac_init_help=short ;;
951
952  -host | --host | --hos | --ho)
953    ac_prev=host_alias ;;
954  -host=* | --host=* | --hos=* | --ho=*)
955    host_alias=$ac_optarg ;;
956
957  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958    ac_prev=htmldir ;;
959  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960  | --ht=*)
961    htmldir=$ac_optarg ;;
962
963  -includedir | --includedir | --includedi | --included | --include \
964  | --includ | --inclu | --incl | --inc)
965    ac_prev=includedir ;;
966  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967  | --includ=* | --inclu=* | --incl=* | --inc=*)
968    includedir=$ac_optarg ;;
969
970  -infodir | --infodir | --infodi | --infod | --info | --inf)
971    ac_prev=infodir ;;
972  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973    infodir=$ac_optarg ;;
974
975  -libdir | --libdir | --libdi | --libd)
976    ac_prev=libdir ;;
977  -libdir=* | --libdir=* | --libdi=* | --libd=*)
978    libdir=$ac_optarg ;;
979
980  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981  | --libexe | --libex | --libe)
982    ac_prev=libexecdir ;;
983  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984  | --libexe=* | --libex=* | --libe=*)
985    libexecdir=$ac_optarg ;;
986
987  -localedir | --localedir | --localedi | --localed | --locale)
988    ac_prev=localedir ;;
989  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990    localedir=$ac_optarg ;;
991
992  -localstatedir | --localstatedir | --localstatedi | --localstated \
993  | --localstate | --localstat | --localsta | --localst | --locals)
994    ac_prev=localstatedir ;;
995  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997    localstatedir=$ac_optarg ;;
998
999  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000    ac_prev=mandir ;;
1001  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002    mandir=$ac_optarg ;;
1003
1004  -nfp | --nfp | --nf)
1005    # Obsolete; use --without-fp.
1006    with_fp=no ;;
1007
1008  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009  | --no-cr | --no-c | -n)
1010    no_create=yes ;;
1011
1012  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014    no_recursion=yes ;;
1015
1016  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018  | --oldin | --oldi | --old | --ol | --o)
1019    ac_prev=oldincludedir ;;
1020  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023    oldincludedir=$ac_optarg ;;
1024
1025  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026    ac_prev=prefix ;;
1027  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028    prefix=$ac_optarg ;;
1029
1030  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031  | --program-pre | --program-pr | --program-p)
1032    ac_prev=program_prefix ;;
1033  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035    program_prefix=$ac_optarg ;;
1036
1037  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038  | --program-suf | --program-su | --program-s)
1039    ac_prev=program_suffix ;;
1040  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042    program_suffix=$ac_optarg ;;
1043
1044  -program-transform-name | --program-transform-name \
1045  | --program-transform-nam | --program-transform-na \
1046  | --program-transform-n | --program-transform- \
1047  | --program-transform | --program-transfor \
1048  | --program-transfo | --program-transf \
1049  | --program-trans | --program-tran \
1050  | --progr-tra | --program-tr | --program-t)
1051    ac_prev=program_transform_name ;;
1052  -program-transform-name=* | --program-transform-name=* \
1053  | --program-transform-nam=* | --program-transform-na=* \
1054  | --program-transform-n=* | --program-transform-=* \
1055  | --program-transform=* | --program-transfor=* \
1056  | --program-transfo=* | --program-transf=* \
1057  | --program-trans=* | --program-tran=* \
1058  | --progr-tra=* | --program-tr=* | --program-t=*)
1059    program_transform_name=$ac_optarg ;;
1060
1061  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062    ac_prev=pdfdir ;;
1063  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064    pdfdir=$ac_optarg ;;
1065
1066  -psdir | --psdir | --psdi | --psd | --ps)
1067    ac_prev=psdir ;;
1068  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069    psdir=$ac_optarg ;;
1070
1071  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072  | -silent | --silent | --silen | --sile | --sil)
1073    silent=yes ;;
1074
1075  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076    ac_prev=sbindir ;;
1077  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078  | --sbi=* | --sb=*)
1079    sbindir=$ac_optarg ;;
1080
1081  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083  | --sharedst | --shareds | --shared | --share | --shar \
1084  | --sha | --sh)
1085    ac_prev=sharedstatedir ;;
1086  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089  | --sha=* | --sh=*)
1090    sharedstatedir=$ac_optarg ;;
1091
1092  -site | --site | --sit)
1093    ac_prev=site ;;
1094  -site=* | --site=* | --sit=*)
1095    site=$ac_optarg ;;
1096
1097  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098    ac_prev=srcdir ;;
1099  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100    srcdir=$ac_optarg ;;
1101
1102  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103  | --syscon | --sysco | --sysc | --sys | --sy)
1104    ac_prev=sysconfdir ;;
1105  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107    sysconfdir=$ac_optarg ;;
1108
1109  -target | --target | --targe | --targ | --tar | --ta | --t)
1110    ac_prev=target_alias ;;
1111  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112    target_alias=$ac_optarg ;;
1113
1114  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115    verbose=yes ;;
1116
1117  -version | --version | --versio | --versi | --vers | -V)
1118    ac_init_version=: ;;
1119
1120  -with-* | --with-*)
1121    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122    # Reject names that are not valid shell variable names.
1123    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124      as_fn_error $? "invalid package name: $ac_useropt"
1125    ac_useropt_orig=$ac_useropt
1126    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127    case $ac_user_opts in
1128      *"
1129"with_$ac_useropt"
1130"*) ;;
1131      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132	 ac_unrecognized_sep=', ';;
1133    esac
1134    eval with_$ac_useropt=\$ac_optarg ;;
1135
1136  -without-* | --without-*)
1137    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140      as_fn_error $? "invalid package name: $ac_useropt"
1141    ac_useropt_orig=$ac_useropt
1142    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143    case $ac_user_opts in
1144      *"
1145"with_$ac_useropt"
1146"*) ;;
1147      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148	 ac_unrecognized_sep=', ';;
1149    esac
1150    eval with_$ac_useropt=no ;;
1151
1152  --x)
1153    # Obsolete; use --with-x.
1154    with_x=yes ;;
1155
1156  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157  | --x-incl | --x-inc | --x-in | --x-i)
1158    ac_prev=x_includes ;;
1159  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161    x_includes=$ac_optarg ;;
1162
1163  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165    ac_prev=x_libraries ;;
1166  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168    x_libraries=$ac_optarg ;;
1169
1170  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171Try \`$0 --help' for more information"
1172    ;;
1173
1174  *=*)
1175    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176    # Reject names that are not valid shell variable names.
1177    case $ac_envvar in #(
1178      '' | [0-9]* | *[!_$as_cr_alnum]* )
1179      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180    esac
1181    eval $ac_envvar=\$ac_optarg
1182    export $ac_envvar ;;
1183
1184  *)
1185    # FIXME: should be removed in autoconf 3.0.
1186    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190    ;;
1191
1192  esac
1193done
1194
1195if test -n "$ac_prev"; then
1196  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197  as_fn_error $? "missing argument to $ac_option"
1198fi
1199
1200if test -n "$ac_unrecognized_opts"; then
1201  case $enable_option_checking in
1202    no) ;;
1203    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205  esac
1206fi
1207
1208# Check all directory arguments for consistency.
1209for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210		datadir sysconfdir sharedstatedir localstatedir includedir \
1211		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212		libdir localedir mandir
1213do
1214  eval ac_val=\$$ac_var
1215  # Remove trailing slashes.
1216  case $ac_val in
1217    */ )
1218      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219      eval $ac_var=\$ac_val;;
1220  esac
1221  # Be sure to have absolute directory names.
1222  case $ac_val in
1223    [\\/$]* | ?:[\\/]* )  continue;;
1224    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225  esac
1226  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227done
1228
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238  if test "x$build_alias" = x; then
1239    cross_compiling=maybe
1240    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1241    If a cross compiler is detected then cross compile mode will be used" >&2
1242  elif test "x$build_alias" != "x$host_alias"; then
1243    cross_compiling=yes
1244  fi
1245fi
1246
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
1251
1252
1253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256  as_fn_error $? "working directory cannot be determined"
1257test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258  as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263  ac_srcdir_defaulted=yes
1264  # Try the directory containing this script, then the parent directory.
1265  ac_confdir=`$as_dirname -- "$as_myself" ||
1266$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267	 X"$as_myself" : 'X\(//\)[^/]' \| \
1268	 X"$as_myself" : 'X\(//\)$' \| \
1269	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270$as_echo X"$as_myself" |
1271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\/\)[^/].*/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\).*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  s/.*/./; q'`
1288  srcdir=$ac_confdir
1289  if test ! -r "$srcdir/$ac_unique_file"; then
1290    srcdir=..
1291  fi
1292else
1293  ac_srcdir_defaulted=no
1294fi
1295if test ! -r "$srcdir/$ac_unique_file"; then
1296  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298fi
1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300ac_abs_confdir=`(
1301	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302	pwd)`
1303# When building in place, set srcdir=.
1304if test "$ac_abs_confdir" = "$ac_pwd"; then
1305  srcdir=.
1306fi
1307# Remove unnecessary trailing slashes from srcdir.
1308# Double slashes in file names in object file debugging info
1309# mess up M-x gdb in Emacs.
1310case $srcdir in
1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312esac
1313for ac_var in $ac_precious_vars; do
1314  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315  eval ac_env_${ac_var}_value=\$${ac_var}
1316  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318done
1319
1320#
1321# Report the --help message.
1322#
1323if test "$ac_init_help" = "long"; then
1324  # Omit some internal or obsolete options to make the list less imposing.
1325  # This message is too long to be a string in the A/UX 3.1 sh.
1326  cat <<_ACEOF
1327\`configure' configures libXrandr 1.3.2 to adapt to many kinds of systems.
1328
1329Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334Defaults for the options are specified in brackets.
1335
1336Configuration:
1337  -h, --help              display this help and exit
1338      --help=short        display options specific to this package
1339      --help=recursive    display the short help of all the included packages
1340  -V, --version           display version information and exit
1341  -q, --quiet, --silent   do not print \`checking ...' messages
1342      --cache-file=FILE   cache test results in FILE [disabled]
1343  -C, --config-cache      alias for \`--cache-file=config.cache'
1344  -n, --no-create         do not create output files
1345      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347Installation directories:
1348  --prefix=PREFIX         install architecture-independent files in PREFIX
1349                          [$ac_default_prefix]
1350  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                          [PREFIX]
1352
1353By default, \`make install' will install all the files in
1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356for instance \`--prefix=\$HOME'.
1357
1358For better control, use the options below.
1359
1360Fine tuning of the installation directories:
1361  --bindir=DIR            user executables [EPREFIX/bin]
1362  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1363  --libexecdir=DIR        program executables [EPREFIX/libexec]
1364  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1365  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1366  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1367  --libdir=DIR            object code libraries [EPREFIX/lib]
1368  --includedir=DIR        C header files [PREFIX/include]
1369  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1370  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1371  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1372  --infodir=DIR           info documentation [DATAROOTDIR/info]
1373  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1374  --mandir=DIR            man documentation [DATAROOTDIR/man]
1375  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXrandr]
1376  --htmldir=DIR           html documentation [DOCDIR]
1377  --dvidir=DIR            dvi documentation [DOCDIR]
1378  --pdfdir=DIR            pdf documentation [DOCDIR]
1379  --psdir=DIR             ps documentation [DOCDIR]
1380_ACEOF
1381
1382  cat <<\_ACEOF
1383
1384Program names:
1385  --program-prefix=PREFIX            prepend PREFIX to installed program names
1386  --program-suffix=SUFFIX            append SUFFIX to installed program names
1387  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1388
1389System types:
1390  --build=BUILD     configure for building on BUILD [guessed]
1391  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396  case $ac_init_help in
1397     short | recursive ) echo "Configuration of libXrandr 1.3.2:";;
1398   esac
1399  cat <<\_ACEOF
1400
1401Optional Features:
1402  --disable-option-checking  ignore unrecognized --enable/--with options
1403  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405  --enable-maintainer-mode  enable make rules and dependencies not useful
1406			  (and sometimes confusing) to the casual installer
1407  --enable-shared[=PKGS]  build shared libraries [default=yes]
1408  --enable-static[=PKGS]  build static libraries [default=yes]
1409  --enable-fast-install[=PKGS]
1410                          optimize for fast installation [default=yes]
1411  --disable-dependency-tracking  speeds up one-time build
1412  --enable-dependency-tracking   do not reject slow dependency extractors
1413  --disable-libtool-lock  avoid locking (might break parallel builds)
1414  --enable-strict-compilation
1415                          Enable all warnings from compiler and make them
1416                          errors (default: disabled)
1417  --enable-silent-rules          less verbose build output (undo: `make V=1')
1418  --disable-silent-rules         verbose build output (undo: `make V=0')
1419  --enable-malloc0returnsnull
1420                          malloc(0) returns NULL (default: auto)
1421
1422Optional Packages:
1423  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1424  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1425  --with-pic              try to use only PIC/non-PIC objects [default=use
1426                          both]
1427  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1428  --with-sysroot=DIR Search for dependent libraries within DIR
1429                        (or the compiler's sysroot if not specified).
1430
1431Some influential environment variables:
1432  CC          C compiler command
1433  CFLAGS      C compiler flags
1434  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1435              nonstandard directory <lib dir>
1436  LIBS        libraries to pass to the linker, e.g. -l<library>
1437  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438              you have headers in a nonstandard directory <include dir>
1439  CPP         C preprocessor
1440  PKG_CONFIG  path to pkg-config utility
1441  RANDR_CFLAGS
1442              C compiler flags for RANDR, overriding pkg-config
1443  RANDR_LIBS  linker flags for RANDR, overriding pkg-config
1444
1445Use these variables to override the choices made by `configure' or to help
1446it to find libraries and programs with nonstandard names/locations.
1447
1448Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1449_ACEOF
1450ac_status=$?
1451fi
1452
1453if test "$ac_init_help" = "recursive"; then
1454  # If there are subdirs, report their specific --help.
1455  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456    test -d "$ac_dir" ||
1457      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458      continue
1459    ac_builddir=.
1460
1461case "$ac_dir" in
1462.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463*)
1464  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465  # A ".." for each directory in $ac_dir_suffix.
1466  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467  case $ac_top_builddir_sub in
1468  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470  esac ;;
1471esac
1472ac_abs_top_builddir=$ac_pwd
1473ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474# for backward compatibility:
1475ac_top_builddir=$ac_top_build_prefix
1476
1477case $srcdir in
1478  .)  # We are building in place.
1479    ac_srcdir=.
1480    ac_top_srcdir=$ac_top_builddir_sub
1481    ac_abs_top_srcdir=$ac_pwd ;;
1482  [\\/]* | ?:[\\/]* )  # Absolute name.
1483    ac_srcdir=$srcdir$ac_dir_suffix;
1484    ac_top_srcdir=$srcdir
1485    ac_abs_top_srcdir=$srcdir ;;
1486  *) # Relative name.
1487    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488    ac_top_srcdir=$ac_top_build_prefix$srcdir
1489    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490esac
1491ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493    cd "$ac_dir" || { ac_status=$?; continue; }
1494    # Check for guested configure.
1495    if test -f "$ac_srcdir/configure.gnu"; then
1496      echo &&
1497      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498    elif test -f "$ac_srcdir/configure"; then
1499      echo &&
1500      $SHELL "$ac_srcdir/configure" --help=recursive
1501    else
1502      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503    fi || ac_status=$?
1504    cd "$ac_pwd" || { ac_status=$?; break; }
1505  done
1506fi
1507
1508test -n "$ac_init_help" && exit $ac_status
1509if $ac_init_version; then
1510  cat <<\_ACEOF
1511libXrandr configure 1.3.2
1512generated by GNU Autoconf 2.68
1513
1514Copyright (C) 2010 Free Software Foundation, Inc.
1515This configure script is free software; the Free Software Foundation
1516gives unlimited permission to copy, distribute and modify it.
1517_ACEOF
1518  exit
1519fi
1520
1521## ------------------------ ##
1522## Autoconf initialization. ##
1523## ------------------------ ##
1524
1525# ac_fn_c_try_compile LINENO
1526# --------------------------
1527# Try to compile conftest.$ac_ext, and return whether this succeeded.
1528ac_fn_c_try_compile ()
1529{
1530  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531  rm -f conftest.$ac_objext
1532  if { { ac_try="$ac_compile"
1533case "(($ac_try" in
1534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535  *) ac_try_echo=$ac_try;;
1536esac
1537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538$as_echo "$ac_try_echo"; } >&5
1539  (eval "$ac_compile") 2>conftest.err
1540  ac_status=$?
1541  if test -s conftest.err; then
1542    grep -v '^ *+' conftest.err >conftest.er1
1543    cat conftest.er1 >&5
1544    mv -f conftest.er1 conftest.err
1545  fi
1546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547  test $ac_status = 0; } && {
1548	 test -z "$ac_c_werror_flag" ||
1549	 test ! -s conftest.err
1550       } && test -s conftest.$ac_objext; then :
1551  ac_retval=0
1552else
1553  $as_echo "$as_me: failed program was:" >&5
1554sed 's/^/| /' conftest.$ac_ext >&5
1555
1556	ac_retval=1
1557fi
1558  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559  as_fn_set_status $ac_retval
1560
1561} # ac_fn_c_try_compile
1562
1563# ac_fn_c_try_link LINENO
1564# -----------------------
1565# Try to link conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_link ()
1567{
1568  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569  rm -f conftest.$ac_objext conftest$ac_exeext
1570  if { { ac_try="$ac_link"
1571case "(($ac_try" in
1572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573  *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577  (eval "$ac_link") 2>conftest.err
1578  ac_status=$?
1579  if test -s conftest.err; then
1580    grep -v '^ *+' conftest.err >conftest.er1
1581    cat conftest.er1 >&5
1582    mv -f conftest.er1 conftest.err
1583  fi
1584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585  test $ac_status = 0; } && {
1586	 test -z "$ac_c_werror_flag" ||
1587	 test ! -s conftest.err
1588       } && test -s conftest$ac_exeext && {
1589	 test "$cross_compiling" = yes ||
1590	 $as_test_x conftest$ac_exeext
1591       }; then :
1592  ac_retval=0
1593else
1594  $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597	ac_retval=1
1598fi
1599  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601  # interfere with the next link command; also delete a directory that is
1602  # left behind by Apple's compiler.  We do this before executing the actions.
1603  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605  as_fn_set_status $ac_retval
1606
1607} # ac_fn_c_try_link
1608
1609# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610# -------------------------------------------------------
1611# Tests whether HEADER exists and can be compiled using the include files in
1612# INCLUDES, setting the cache variable VAR accordingly.
1613ac_fn_c_check_header_compile ()
1614{
1615  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617$as_echo_n "checking for $2... " >&6; }
1618if eval \${$3+:} false; then :
1619  $as_echo_n "(cached) " >&6
1620else
1621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h.  */
1623$4
1624#include <$2>
1625_ACEOF
1626if ac_fn_c_try_compile "$LINENO"; then :
1627  eval "$3=yes"
1628else
1629  eval "$3=no"
1630fi
1631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632fi
1633eval ac_res=\$$3
1634	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635$as_echo "$ac_res" >&6; }
1636  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638} # ac_fn_c_check_header_compile
1639
1640# ac_fn_c_try_cpp LINENO
1641# ----------------------
1642# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643ac_fn_c_try_cpp ()
1644{
1645  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646  if { { ac_try="$ac_cpp conftest.$ac_ext"
1647case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5
1653  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654  ac_status=$?
1655  if test -s conftest.err; then
1656    grep -v '^ *+' conftest.err >conftest.er1
1657    cat conftest.er1 >&5
1658    mv -f conftest.er1 conftest.err
1659  fi
1660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } > conftest.i && {
1662	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663	 test ! -s conftest.err
1664       }; then :
1665  ac_retval=0
1666else
1667  $as_echo "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5
1669
1670    ac_retval=1
1671fi
1672  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673  as_fn_set_status $ac_retval
1674
1675} # ac_fn_c_try_cpp
1676
1677# ac_fn_c_try_run LINENO
1678# ----------------------
1679# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680# that executables *can* be run.
1681ac_fn_c_try_run ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  if { { ac_try="$ac_link"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691  (eval "$ac_link") 2>&5
1692  ac_status=$?
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695  { { case "(($ac_try" in
1696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697  *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701  (eval "$ac_try") 2>&5
1702  ac_status=$?
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; }; }; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: program exited with status $ac_status" >&5
1708       $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711       ac_retval=$ac_status
1712fi
1713  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715  as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_run
1718
1719# ac_fn_c_check_func LINENO FUNC VAR
1720# ----------------------------------
1721# Tests whether FUNC exists, setting the cache variable VAR accordingly
1722ac_fn_c_check_func ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726$as_echo_n "checking for $2... " >&6; }
1727if eval \${$3+:} false; then :
1728  $as_echo_n "(cached) " >&6
1729else
1730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h.  */
1732/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1734#define $2 innocuous_$2
1735
1736/* System header to define __stub macros and hopefully few prototypes,
1737    which can conflict with char $2 (); below.
1738    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739    <limits.h> exists even on freestanding compilers.  */
1740
1741#ifdef __STDC__
1742# include <limits.h>
1743#else
1744# include <assert.h>
1745#endif
1746
1747#undef $2
1748
1749/* Override any GCC internal prototype to avoid an error.
1750   Use char because int might match the return type of a GCC
1751   builtin and then its argument prototype would still apply.  */
1752#ifdef __cplusplus
1753extern "C"
1754#endif
1755char $2 ();
1756/* The GNU C library defines this for functions which it implements
1757    to always fail with ENOSYS.  Some functions are actually named
1758    something starting with __ and the normal name is an alias.  */
1759#if defined __stub_$2 || defined __stub___$2
1760choke me
1761#endif
1762
1763int
1764main ()
1765{
1766return $2 ();
1767  ;
1768  return 0;
1769}
1770_ACEOF
1771if ac_fn_c_try_link "$LINENO"; then :
1772  eval "$3=yes"
1773else
1774  eval "$3=no"
1775fi
1776rm -f core conftest.err conftest.$ac_objext \
1777    conftest$ac_exeext conftest.$ac_ext
1778fi
1779eval ac_res=\$$3
1780	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784} # ac_fn_c_check_func
1785
1786# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1787# ---------------------------------------------
1788# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1789# accordingly.
1790ac_fn_c_check_decl ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  as_decl_name=`echo $2|sed 's/ *(.*//'`
1794  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1796$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1797if eval \${$3+:} false; then :
1798  $as_echo_n "(cached) " >&6
1799else
1800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h.  */
1802$4
1803int
1804main ()
1805{
1806#ifndef $as_decl_name
1807#ifdef __cplusplus
1808  (void) $as_decl_use;
1809#else
1810  (void) $as_decl_name;
1811#endif
1812#endif
1813
1814  ;
1815  return 0;
1816}
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"; then :
1819  eval "$3=yes"
1820else
1821  eval "$3=no"
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824fi
1825eval ac_res=\$$3
1826	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830} # ac_fn_c_check_decl
1831cat >config.log <<_ACEOF
1832This file contains any messages produced by compilers while
1833running configure, to aid debugging if configure makes a mistake.
1834
1835It was created by libXrandr $as_me 1.3.2, which was
1836generated by GNU Autoconf 2.68.  Invocation command line was
1837
1838  $ $0 $@
1839
1840_ACEOF
1841exec 5>>config.log
1842{
1843cat <<_ASUNAME
1844## --------- ##
1845## Platform. ##
1846## --------- ##
1847
1848hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1849uname -m = `(uname -m) 2>/dev/null || echo unknown`
1850uname -r = `(uname -r) 2>/dev/null || echo unknown`
1851uname -s = `(uname -s) 2>/dev/null || echo unknown`
1852uname -v = `(uname -v) 2>/dev/null || echo unknown`
1853
1854/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1855/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1856
1857/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1858/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1859/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1860/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1861/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1862/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1863/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1864
1865_ASUNAME
1866
1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868for as_dir in $PATH
1869do
1870  IFS=$as_save_IFS
1871  test -z "$as_dir" && as_dir=.
1872    $as_echo "PATH: $as_dir"
1873  done
1874IFS=$as_save_IFS
1875
1876} >&5
1877
1878cat >&5 <<_ACEOF
1879
1880
1881## ----------- ##
1882## Core tests. ##
1883## ----------- ##
1884
1885_ACEOF
1886
1887
1888# Keep a trace of the command line.
1889# Strip out --no-create and --no-recursion so they do not pile up.
1890# Strip out --silent because we don't want to record it for future runs.
1891# Also quote any args containing shell meta-characters.
1892# Make two passes to allow for proper duplicate-argument suppression.
1893ac_configure_args=
1894ac_configure_args0=
1895ac_configure_args1=
1896ac_must_keep_next=false
1897for ac_pass in 1 2
1898do
1899  for ac_arg
1900  do
1901    case $ac_arg in
1902    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1903    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1904    | -silent | --silent | --silen | --sile | --sil)
1905      continue ;;
1906    *\'*)
1907      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1908    esac
1909    case $ac_pass in
1910    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1911    2)
1912      as_fn_append ac_configure_args1 " '$ac_arg'"
1913      if test $ac_must_keep_next = true; then
1914	ac_must_keep_next=false # Got value, back to normal.
1915      else
1916	case $ac_arg in
1917	  *=* | --config-cache | -C | -disable-* | --disable-* \
1918	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1919	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1920	  | -with-* | --with-* | -without-* | --without-* | --x)
1921	    case "$ac_configure_args0 " in
1922	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1923	    esac
1924	    ;;
1925	  -* ) ac_must_keep_next=true ;;
1926	esac
1927      fi
1928      as_fn_append ac_configure_args " '$ac_arg'"
1929      ;;
1930    esac
1931  done
1932done
1933{ ac_configure_args0=; unset ac_configure_args0;}
1934{ ac_configure_args1=; unset ac_configure_args1;}
1935
1936# When interrupted or exit'd, cleanup temporary files, and complete
1937# config.log.  We remove comments because anyway the quotes in there
1938# would cause problems or look ugly.
1939# WARNING: Use '\'' to represent an apostrophe within the trap.
1940# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1941trap 'exit_status=$?
1942  # Save into config.log some information that might help in debugging.
1943  {
1944    echo
1945
1946    $as_echo "## ---------------- ##
1947## Cache variables. ##
1948## ---------------- ##"
1949    echo
1950    # The following way of writing the cache mishandles newlines in values,
1951(
1952  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1953    eval ac_val=\$$ac_var
1954    case $ac_val in #(
1955    *${as_nl}*)
1956      case $ac_var in #(
1957      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1958$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1959      esac
1960      case $ac_var in #(
1961      _ | IFS | as_nl) ;; #(
1962      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1963      *) { eval $ac_var=; unset $ac_var;} ;;
1964      esac ;;
1965    esac
1966  done
1967  (set) 2>&1 |
1968    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1969    *${as_nl}ac_space=\ *)
1970      sed -n \
1971	"s/'\''/'\''\\\\'\'''\''/g;
1972	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1973      ;; #(
1974    *)
1975      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1976      ;;
1977    esac |
1978    sort
1979)
1980    echo
1981
1982    $as_echo "## ----------------- ##
1983## Output variables. ##
1984## ----------------- ##"
1985    echo
1986    for ac_var in $ac_subst_vars
1987    do
1988      eval ac_val=\$$ac_var
1989      case $ac_val in
1990      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991      esac
1992      $as_echo "$ac_var='\''$ac_val'\''"
1993    done | sort
1994    echo
1995
1996    if test -n "$ac_subst_files"; then
1997      $as_echo "## ------------------- ##
1998## File substitutions. ##
1999## ------------------- ##"
2000      echo
2001      for ac_var in $ac_subst_files
2002      do
2003	eval ac_val=\$$ac_var
2004	case $ac_val in
2005	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006	esac
2007	$as_echo "$ac_var='\''$ac_val'\''"
2008      done | sort
2009      echo
2010    fi
2011
2012    if test -s confdefs.h; then
2013      $as_echo "## ----------- ##
2014## confdefs.h. ##
2015## ----------- ##"
2016      echo
2017      cat confdefs.h
2018      echo
2019    fi
2020    test "$ac_signal" != 0 &&
2021      $as_echo "$as_me: caught signal $ac_signal"
2022    $as_echo "$as_me: exit $exit_status"
2023  } >&5
2024  rm -f core *.core core.conftest.* &&
2025    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2026    exit $exit_status
2027' 0
2028for ac_signal in 1 2 13 15; do
2029  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2030done
2031ac_signal=0
2032
2033# confdefs.h avoids OS command line length limits that DEFS can exceed.
2034rm -f -r conftest* confdefs.h
2035
2036$as_echo "/* confdefs.h */" > confdefs.h
2037
2038# Predefined preprocessor variables.
2039
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_NAME "$PACKAGE_NAME"
2042_ACEOF
2043
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046_ACEOF
2047
2048cat >>confdefs.h <<_ACEOF
2049#define PACKAGE_VERSION "$PACKAGE_VERSION"
2050_ACEOF
2051
2052cat >>confdefs.h <<_ACEOF
2053#define PACKAGE_STRING "$PACKAGE_STRING"
2054_ACEOF
2055
2056cat >>confdefs.h <<_ACEOF
2057#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058_ACEOF
2059
2060cat >>confdefs.h <<_ACEOF
2061#define PACKAGE_URL "$PACKAGE_URL"
2062_ACEOF
2063
2064
2065# Let the site file select an alternate cache file if it wants to.
2066# Prefer an explicitly selected file to automatically selected ones.
2067ac_site_file1=NONE
2068ac_site_file2=NONE
2069if test -n "$CONFIG_SITE"; then
2070  # We do not want a PATH search for config.site.
2071  case $CONFIG_SITE in #((
2072    -*)  ac_site_file1=./$CONFIG_SITE;;
2073    */*) ac_site_file1=$CONFIG_SITE;;
2074    *)   ac_site_file1=./$CONFIG_SITE;;
2075  esac
2076elif test "x$prefix" != xNONE; then
2077  ac_site_file1=$prefix/share/config.site
2078  ac_site_file2=$prefix/etc/config.site
2079else
2080  ac_site_file1=$ac_default_prefix/share/config.site
2081  ac_site_file2=$ac_default_prefix/etc/config.site
2082fi
2083for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2084do
2085  test "x$ac_site_file" = xNONE && continue
2086  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2087    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2088$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2089    sed 's/^/| /' "$ac_site_file" >&5
2090    . "$ac_site_file" \
2091      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2093as_fn_error $? "failed to load site script $ac_site_file
2094See \`config.log' for more details" "$LINENO" 5; }
2095  fi
2096done
2097
2098if test -r "$cache_file"; then
2099  # Some versions of bash will fail to source /dev/null (special files
2100  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2101  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2102    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2103$as_echo "$as_me: loading cache $cache_file" >&6;}
2104    case $cache_file in
2105      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2106      *)                      . "./$cache_file";;
2107    esac
2108  fi
2109else
2110  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2111$as_echo "$as_me: creating cache $cache_file" >&6;}
2112  >$cache_file
2113fi
2114
2115# Check that the precious variables saved in the cache have kept the same
2116# value.
2117ac_cache_corrupted=false
2118for ac_var in $ac_precious_vars; do
2119  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2120  eval ac_new_set=\$ac_env_${ac_var}_set
2121  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2122  eval ac_new_val=\$ac_env_${ac_var}_value
2123  case $ac_old_set,$ac_new_set in
2124    set,)
2125      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2126$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2127      ac_cache_corrupted=: ;;
2128    ,set)
2129      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2130$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2131      ac_cache_corrupted=: ;;
2132    ,);;
2133    *)
2134      if test "x$ac_old_val" != "x$ac_new_val"; then
2135	# differences in whitespace do not lead to failure.
2136	ac_old_val_w=`echo x $ac_old_val`
2137	ac_new_val_w=`echo x $ac_new_val`
2138	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2139	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2140$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2141	  ac_cache_corrupted=:
2142	else
2143	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2144$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2145	  eval $ac_var=\$ac_old_val
2146	fi
2147	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2148$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2149	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2150$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2151      fi;;
2152  esac
2153  # Pass precious variables to config.status.
2154  if test "$ac_new_set" = set; then
2155    case $ac_new_val in
2156    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2157    *) ac_arg=$ac_var=$ac_new_val ;;
2158    esac
2159    case " $ac_configure_args " in
2160      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2161      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2162    esac
2163  fi
2164done
2165if $ac_cache_corrupted; then
2166  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2169$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2170  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2171fi
2172## -------------------- ##
2173## Main body of script. ##
2174## -------------------- ##
2175
2176ac_ext=c
2177ac_cpp='$CPP $CPPFLAGS'
2178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180ac_compiler_gnu=$ac_cv_c_compiler_gnu
2181
2182
2183
2184ac_config_headers="$ac_config_headers config.h"
2185
2186
2187# Initialize Automake
2188am__api_version='1.11'
2189
2190ac_aux_dir=
2191for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2192  if test -f "$ac_dir/install-sh"; then
2193    ac_aux_dir=$ac_dir
2194    ac_install_sh="$ac_aux_dir/install-sh -c"
2195    break
2196  elif test -f "$ac_dir/install.sh"; then
2197    ac_aux_dir=$ac_dir
2198    ac_install_sh="$ac_aux_dir/install.sh -c"
2199    break
2200  elif test -f "$ac_dir/shtool"; then
2201    ac_aux_dir=$ac_dir
2202    ac_install_sh="$ac_aux_dir/shtool install -c"
2203    break
2204  fi
2205done
2206if test -z "$ac_aux_dir"; then
2207  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2208fi
2209
2210# These three variables are undocumented and unsupported,
2211# and are intended to be withdrawn in a future Autoconf release.
2212# They can cause serious problems if a builder's source tree is in a directory
2213# whose full name contains unusual characters.
2214ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2215ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2216ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2217
2218
2219# Find a good install program.  We prefer a C program (faster),
2220# so one script is as good as another.  But avoid the broken or
2221# incompatible versions:
2222# SysV /etc/install, /usr/sbin/install
2223# SunOS /usr/etc/install
2224# IRIX /sbin/install
2225# AIX /bin/install
2226# AmigaOS /C/install, which installs bootblocks on floppy discs
2227# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2228# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2229# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2230# OS/2's system install, which has a completely different semantic
2231# ./install, which can be erroneously created by make from ./install.sh.
2232# Reject install programs that cannot install multiple files.
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2234$as_echo_n "checking for a BSD-compatible install... " >&6; }
2235if test -z "$INSTALL"; then
2236if ${ac_cv_path_install+:} false; then :
2237  $as_echo_n "(cached) " >&6
2238else
2239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240for as_dir in $PATH
2241do
2242  IFS=$as_save_IFS
2243  test -z "$as_dir" && as_dir=.
2244    # Account for people who put trailing slashes in PATH elements.
2245case $as_dir/ in #((
2246  ./ | .// | /[cC]/* | \
2247  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2248  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2249  /usr/ucb/* ) ;;
2250  *)
2251    # OSF1 and SCO ODT 3.0 have their own names for install.
2252    # Don't use installbsd from OSF since it installs stuff as root
2253    # by default.
2254    for ac_prog in ginstall scoinst install; do
2255      for ac_exec_ext in '' $ac_executable_extensions; do
2256	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2257	  if test $ac_prog = install &&
2258	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259	    # AIX install.  It has an incompatible calling convention.
2260	    :
2261	  elif test $ac_prog = install &&
2262	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2263	    # program-specific install script used by HP pwplus--don't use.
2264	    :
2265	  else
2266	    rm -rf conftest.one conftest.two conftest.dir
2267	    echo one > conftest.one
2268	    echo two > conftest.two
2269	    mkdir conftest.dir
2270	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2271	      test -s conftest.one && test -s conftest.two &&
2272	      test -s conftest.dir/conftest.one &&
2273	      test -s conftest.dir/conftest.two
2274	    then
2275	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2276	      break 3
2277	    fi
2278	  fi
2279	fi
2280      done
2281    done
2282    ;;
2283esac
2284
2285  done
2286IFS=$as_save_IFS
2287
2288rm -rf conftest.one conftest.two conftest.dir
2289
2290fi
2291  if test "${ac_cv_path_install+set}" = set; then
2292    INSTALL=$ac_cv_path_install
2293  else
2294    # As a last resort, use the slow shell script.  Don't cache a
2295    # value for INSTALL within a source directory, because that will
2296    # break other packages using the cache if that directory is
2297    # removed, or if the value is a relative name.
2298    INSTALL=$ac_install_sh
2299  fi
2300fi
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2302$as_echo "$INSTALL" >&6; }
2303
2304# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2305# It thinks the first close brace ends the variable substitution.
2306test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2307
2308test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2309
2310test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2311
2312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2313$as_echo_n "checking whether build environment is sane... " >&6; }
2314# Just in case
2315sleep 1
2316echo timestamp > conftest.file
2317# Reject unsafe characters in $srcdir or the absolute working directory
2318# name.  Accept space and tab only in the latter.
2319am_lf='
2320'
2321case `pwd` in
2322  *[\\\"\#\$\&\'\`$am_lf]*)
2323    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2324esac
2325case $srcdir in
2326  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2327    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2328esac
2329
2330# Do `set' in a subshell so we don't clobber the current shell's
2331# arguments.  Must try -L first in case configure is actually a
2332# symlink; some systems play weird games with the mod time of symlinks
2333# (eg FreeBSD returns the mod time of the symlink's containing
2334# directory).
2335if (
2336   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2337   if test "$*" = "X"; then
2338      # -L didn't work.
2339      set X `ls -t "$srcdir/configure" conftest.file`
2340   fi
2341   rm -f conftest.file
2342   if test "$*" != "X $srcdir/configure conftest.file" \
2343      && test "$*" != "X conftest.file $srcdir/configure"; then
2344
2345      # If neither matched, then we have a broken ls.  This can happen
2346      # if, for instance, CONFIG_SHELL is bash and it inherits a
2347      # broken ls alias from the environment.  This has actually
2348      # happened.  Such a system could not be considered "sane".
2349      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2350alias in your environment" "$LINENO" 5
2351   fi
2352
2353   test "$2" = conftest.file
2354   )
2355then
2356   # Ok.
2357   :
2358else
2359   as_fn_error $? "newly created file is older than distributed files!
2360Check your system clock" "$LINENO" 5
2361fi
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2363$as_echo "yes" >&6; }
2364test "$program_prefix" != NONE &&
2365  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2366# Use a double $ so make ignores it.
2367test "$program_suffix" != NONE &&
2368  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369# Double any \ or $.
2370# By default was `s,x,x', remove it if useless.
2371ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2373
2374# expand $ac_aux_dir to an absolute path
2375am_aux_dir=`cd $ac_aux_dir && pwd`
2376
2377if test x"${MISSING+set}" != xset; then
2378  case $am_aux_dir in
2379  *\ * | *\	*)
2380    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2381  *)
2382    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2383  esac
2384fi
2385# Use eval to expand $SHELL
2386if eval "$MISSING --run true"; then
2387  am_missing_run="$MISSING --run "
2388else
2389  am_missing_run=
2390  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2391$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2392fi
2393
2394if test x"${install_sh}" != xset; then
2395  case $am_aux_dir in
2396  *\ * | *\	*)
2397    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2398  *)
2399    install_sh="\${SHELL} $am_aux_dir/install-sh"
2400  esac
2401fi
2402
2403# Installed binaries are usually stripped using `strip' when the user
2404# run `make install-strip'.  However `strip' might not be the right
2405# tool to use in cross-compilation environments, therefore Automake
2406# will honor the `STRIP' environment variable to overrule this program.
2407if test "$cross_compiling" != no; then
2408  if test -n "$ac_tool_prefix"; then
2409  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2410set dummy ${ac_tool_prefix}strip; ac_word=$2
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412$as_echo_n "checking for $ac_word... " >&6; }
2413if ${ac_cv_prog_STRIP+:} false; then :
2414  $as_echo_n "(cached) " >&6
2415else
2416  if test -n "$STRIP"; then
2417  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422  IFS=$as_save_IFS
2423  test -z "$as_dir" && as_dir=.
2424    for ac_exec_ext in '' $ac_executable_extensions; do
2425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428    break 2
2429  fi
2430done
2431  done
2432IFS=$as_save_IFS
2433
2434fi
2435fi
2436STRIP=$ac_cv_prog_STRIP
2437if test -n "$STRIP"; then
2438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2439$as_echo "$STRIP" >&6; }
2440else
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442$as_echo "no" >&6; }
2443fi
2444
2445
2446fi
2447if test -z "$ac_cv_prog_STRIP"; then
2448  ac_ct_STRIP=$STRIP
2449  # Extract the first word of "strip", so it can be a program name with args.
2450set dummy strip; ac_word=$2
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452$as_echo_n "checking for $ac_word... " >&6; }
2453if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2454  $as_echo_n "(cached) " >&6
2455else
2456  if test -n "$ac_ct_STRIP"; then
2457  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462  IFS=$as_save_IFS
2463  test -z "$as_dir" && as_dir=.
2464    for ac_exec_ext in '' $ac_executable_extensions; do
2465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466    ac_cv_prog_ac_ct_STRIP="strip"
2467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468    break 2
2469  fi
2470done
2471  done
2472IFS=$as_save_IFS
2473
2474fi
2475fi
2476ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2477if test -n "$ac_ct_STRIP"; then
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2479$as_echo "$ac_ct_STRIP" >&6; }
2480else
2481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482$as_echo "no" >&6; }
2483fi
2484
2485  if test "x$ac_ct_STRIP" = x; then
2486    STRIP=":"
2487  else
2488    case $cross_compiling:$ac_tool_warned in
2489yes:)
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2492ac_tool_warned=yes ;;
2493esac
2494    STRIP=$ac_ct_STRIP
2495  fi
2496else
2497  STRIP="$ac_cv_prog_STRIP"
2498fi
2499
2500fi
2501INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2502
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2504$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2505if test -z "$MKDIR_P"; then
2506  if ${ac_cv_path_mkdir+:} false; then :
2507  $as_echo_n "(cached) " >&6
2508else
2509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2511do
2512  IFS=$as_save_IFS
2513  test -z "$as_dir" && as_dir=.
2514    for ac_prog in mkdir gmkdir; do
2515	 for ac_exec_ext in '' $ac_executable_extensions; do
2516	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2517	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2518	     'mkdir (GNU coreutils) '* | \
2519	     'mkdir (coreutils) '* | \
2520	     'mkdir (fileutils) '4.1*)
2521	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2522	       break 3;;
2523	   esac
2524	 done
2525       done
2526  done
2527IFS=$as_save_IFS
2528
2529fi
2530
2531  test -d ./--version && rmdir ./--version
2532  if test "${ac_cv_path_mkdir+set}" = set; then
2533    MKDIR_P="$ac_cv_path_mkdir -p"
2534  else
2535    # As a last resort, use the slow shell script.  Don't cache a
2536    # value for MKDIR_P within a source directory, because that will
2537    # break other packages using the cache if that directory is
2538    # removed, or if the value is a relative name.
2539    MKDIR_P="$ac_install_sh -d"
2540  fi
2541fi
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2543$as_echo "$MKDIR_P" >&6; }
2544
2545mkdir_p="$MKDIR_P"
2546case $mkdir_p in
2547  [\\/$]* | ?:[\\/]*) ;;
2548  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2549esac
2550
2551for ac_prog in gawk mawk nawk awk
2552do
2553  # Extract the first word of "$ac_prog", so it can be a program name with args.
2554set dummy $ac_prog; ac_word=$2
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556$as_echo_n "checking for $ac_word... " >&6; }
2557if ${ac_cv_prog_AWK+:} false; then :
2558  $as_echo_n "(cached) " >&6
2559else
2560  if test -n "$AWK"; then
2561  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2562else
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566  IFS=$as_save_IFS
2567  test -z "$as_dir" && as_dir=.
2568    for ac_exec_ext in '' $ac_executable_extensions; do
2569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570    ac_cv_prog_AWK="$ac_prog"
2571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572    break 2
2573  fi
2574done
2575  done
2576IFS=$as_save_IFS
2577
2578fi
2579fi
2580AWK=$ac_cv_prog_AWK
2581if test -n "$AWK"; then
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2583$as_echo "$AWK" >&6; }
2584else
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586$as_echo "no" >&6; }
2587fi
2588
2589
2590  test -n "$AWK" && break
2591done
2592
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2594$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2595set x ${MAKE-make}
2596ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2597if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2598  $as_echo_n "(cached) " >&6
2599else
2600  cat >conftest.make <<\_ACEOF
2601SHELL = /bin/sh
2602all:
2603	@echo '@@@%%%=$(MAKE)=@@@%%%'
2604_ACEOF
2605# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2606case `${MAKE-make} -f conftest.make 2>/dev/null` in
2607  *@@@%%%=?*=@@@%%%*)
2608    eval ac_cv_prog_make_${ac_make}_set=yes;;
2609  *)
2610    eval ac_cv_prog_make_${ac_make}_set=no;;
2611esac
2612rm -f conftest.make
2613fi
2614if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616$as_echo "yes" >&6; }
2617  SET_MAKE=
2618else
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620$as_echo "no" >&6; }
2621  SET_MAKE="MAKE=${MAKE-make}"
2622fi
2623
2624rm -rf .tst 2>/dev/null
2625mkdir .tst 2>/dev/null
2626if test -d .tst; then
2627  am__leading_dot=.
2628else
2629  am__leading_dot=_
2630fi
2631rmdir .tst 2>/dev/null
2632
2633if test "`cd $srcdir && pwd`" != "`pwd`"; then
2634  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2635  # is not polluted with repeated "-I."
2636  am__isrc=' -I$(srcdir)'
2637  # test to see if srcdir already configured
2638  if test -f $srcdir/config.status; then
2639    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2640  fi
2641fi
2642
2643# test whether we have cygpath
2644if test -z "$CYGPATH_W"; then
2645  if (cygpath --version) >/dev/null 2>/dev/null; then
2646    CYGPATH_W='cygpath -w'
2647  else
2648    CYGPATH_W=echo
2649  fi
2650fi
2651
2652
2653# Define the identity of the package.
2654 PACKAGE='libXrandr'
2655 VERSION='1.3.2'
2656
2657
2658cat >>confdefs.h <<_ACEOF
2659#define PACKAGE "$PACKAGE"
2660_ACEOF
2661
2662
2663cat >>confdefs.h <<_ACEOF
2664#define VERSION "$VERSION"
2665_ACEOF
2666
2667# Some tools Automake needs.
2668
2669ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2670
2671
2672AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2673
2674
2675AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2676
2677
2678AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2679
2680
2681MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2682
2683# We need awk for the "check" target.  The system "awk" is bad on
2684# some platforms.
2685# Always define AMTAR for backward compatibility.
2686
2687AMTAR=${AMTAR-"${am_missing_run}tar"}
2688
2689am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2690
2691
2692
2693
2694
2695
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2697$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2698    # Check whether --enable-maintainer-mode was given.
2699if test "${enable_maintainer_mode+set}" = set; then :
2700  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2701else
2702  USE_MAINTAINER_MODE=no
2703fi
2704
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2706$as_echo "$USE_MAINTAINER_MODE" >&6; }
2707   if test $USE_MAINTAINER_MODE = yes; then
2708  MAINTAINER_MODE_TRUE=
2709  MAINTAINER_MODE_FALSE='#'
2710else
2711  MAINTAINER_MODE_TRUE='#'
2712  MAINTAINER_MODE_FALSE=
2713fi
2714
2715  MAINT=$MAINTAINER_MODE_TRUE
2716
2717
2718
2719# Initialize libtool
2720case `pwd` in
2721  *\ * | *\	*)
2722    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2723$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2724esac
2725
2726
2727
2728macro_version='2.4'
2729macro_revision='1.3293'
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743ltmain="$ac_aux_dir/ltmain.sh"
2744
2745# Make sure we can run config.sub.
2746$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2747  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2748
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2750$as_echo_n "checking build system type... " >&6; }
2751if ${ac_cv_build+:} false; then :
2752  $as_echo_n "(cached) " >&6
2753else
2754  ac_build_alias=$build_alias
2755test "x$ac_build_alias" = x &&
2756  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2757test "x$ac_build_alias" = x &&
2758  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2759ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2760  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2761
2762fi
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2764$as_echo "$ac_cv_build" >&6; }
2765case $ac_cv_build in
2766*-*-*) ;;
2767*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2768esac
2769build=$ac_cv_build
2770ac_save_IFS=$IFS; IFS='-'
2771set x $ac_cv_build
2772shift
2773build_cpu=$1
2774build_vendor=$2
2775shift; shift
2776# Remember, the first character of IFS is used to create $*,
2777# except with old shells:
2778build_os=$*
2779IFS=$ac_save_IFS
2780case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2781
2782
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2784$as_echo_n "checking host system type... " >&6; }
2785if ${ac_cv_host+:} false; then :
2786  $as_echo_n "(cached) " >&6
2787else
2788  if test "x$host_alias" = x; then
2789  ac_cv_host=$ac_cv_build
2790else
2791  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2792    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2793fi
2794
2795fi
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2797$as_echo "$ac_cv_host" >&6; }
2798case $ac_cv_host in
2799*-*-*) ;;
2800*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2801esac
2802host=$ac_cv_host
2803ac_save_IFS=$IFS; IFS='-'
2804set x $ac_cv_host
2805shift
2806host_cpu=$1
2807host_vendor=$2
2808shift; shift
2809# Remember, the first character of IFS is used to create $*,
2810# except with old shells:
2811host_os=$*
2812IFS=$ac_save_IFS
2813case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2814
2815
2816# Backslashify metacharacters that are still active within
2817# double-quoted strings.
2818sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2819
2820# Same as above, but do not quote variable references.
2821double_quote_subst='s/\(["`\\]\)/\\\1/g'
2822
2823# Sed substitution to delay expansion of an escaped shell variable in a
2824# double_quote_subst'ed string.
2825delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2826
2827# Sed substitution to delay expansion of an escaped single quote.
2828delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2829
2830# Sed substitution to avoid accidental globbing in evaled expressions
2831no_glob_subst='s/\*/\\\*/g'
2832
2833ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2834ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2835ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2836
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2838$as_echo_n "checking how to print strings... " >&6; }
2839# Test print first, because it will be a builtin if present.
2840if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2841   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2842  ECHO='print -r --'
2843elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2844  ECHO='printf %s\n'
2845else
2846  # Use this function as a fallback that always works.
2847  func_fallback_echo ()
2848  {
2849    eval 'cat <<_LTECHO_EOF
2850$1
2851_LTECHO_EOF'
2852  }
2853  ECHO='func_fallback_echo'
2854fi
2855
2856# func_echo_all arg...
2857# Invoke $ECHO with all args, space-separated.
2858func_echo_all ()
2859{
2860    $ECHO ""
2861}
2862
2863case "$ECHO" in
2864  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2865$as_echo "printf" >&6; } ;;
2866  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2867$as_echo "print -r" >&6; } ;;
2868  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2869$as_echo "cat" >&6; } ;;
2870esac
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885DEPDIR="${am__leading_dot}deps"
2886
2887ac_config_commands="$ac_config_commands depfiles"
2888
2889
2890am_make=${MAKE-make}
2891cat > confinc << 'END'
2892am__doit:
2893	@echo this is the am__doit target
2894.PHONY: am__doit
2895END
2896# If we don't find an include directive, just comment out the code.
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2898$as_echo_n "checking for style of include used by $am_make... " >&6; }
2899am__include="#"
2900am__quote=
2901_am_result=none
2902# First try GNU make style include.
2903echo "include confinc" > confmf
2904# Ignore all kinds of additional output from `make'.
2905case `$am_make -s -f confmf 2> /dev/null` in #(
2906*the\ am__doit\ target*)
2907  am__include=include
2908  am__quote=
2909  _am_result=GNU
2910  ;;
2911esac
2912# Now try BSD make style include.
2913if test "$am__include" = "#"; then
2914   echo '.include "confinc"' > confmf
2915   case `$am_make -s -f confmf 2> /dev/null` in #(
2916   *the\ am__doit\ target*)
2917     am__include=.include
2918     am__quote="\""
2919     _am_result=BSD
2920     ;;
2921   esac
2922fi
2923
2924
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2926$as_echo "$_am_result" >&6; }
2927rm -f confinc confmf
2928
2929# Check whether --enable-dependency-tracking was given.
2930if test "${enable_dependency_tracking+set}" = set; then :
2931  enableval=$enable_dependency_tracking;
2932fi
2933
2934if test "x$enable_dependency_tracking" != xno; then
2935  am_depcomp="$ac_aux_dir/depcomp"
2936  AMDEPBACKSLASH='\'
2937fi
2938 if test "x$enable_dependency_tracking" != xno; then
2939  AMDEP_TRUE=
2940  AMDEP_FALSE='#'
2941else
2942  AMDEP_TRUE='#'
2943  AMDEP_FALSE=
2944fi
2945
2946
2947ac_ext=c
2948ac_cpp='$CPP $CPPFLAGS'
2949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952if test -n "$ac_tool_prefix"; then
2953  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2954set dummy ${ac_tool_prefix}gcc; ac_word=$2
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956$as_echo_n "checking for $ac_word... " >&6; }
2957if ${ac_cv_prog_CC+:} false; then :
2958  $as_echo_n "(cached) " >&6
2959else
2960  if test -n "$CC"; then
2961  ac_cv_prog_CC="$CC" # Let the user override the test.
2962else
2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966  IFS=$as_save_IFS
2967  test -z "$as_dir" && as_dir=.
2968    for ac_exec_ext in '' $ac_executable_extensions; do
2969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972    break 2
2973  fi
2974done
2975  done
2976IFS=$as_save_IFS
2977
2978fi
2979fi
2980CC=$ac_cv_prog_CC
2981if test -n "$CC"; then
2982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983$as_echo "$CC" >&6; }
2984else
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986$as_echo "no" >&6; }
2987fi
2988
2989
2990fi
2991if test -z "$ac_cv_prog_CC"; then
2992  ac_ct_CC=$CC
2993  # Extract the first word of "gcc", so it can be a program name with args.
2994set dummy gcc; ac_word=$2
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996$as_echo_n "checking for $ac_word... " >&6; }
2997if ${ac_cv_prog_ac_ct_CC+:} false; then :
2998  $as_echo_n "(cached) " >&6
2999else
3000  if test -n "$ac_ct_CC"; then
3001  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3002else
3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH
3005do
3006  IFS=$as_save_IFS
3007  test -z "$as_dir" && as_dir=.
3008    for ac_exec_ext in '' $ac_executable_extensions; do
3009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010    ac_cv_prog_ac_ct_CC="gcc"
3011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012    break 2
3013  fi
3014done
3015  done
3016IFS=$as_save_IFS
3017
3018fi
3019fi
3020ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021if test -n "$ac_ct_CC"; then
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023$as_echo "$ac_ct_CC" >&6; }
3024else
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026$as_echo "no" >&6; }
3027fi
3028
3029  if test "x$ac_ct_CC" = x; then
3030    CC=""
3031  else
3032    case $cross_compiling:$ac_tool_warned in
3033yes:)
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036ac_tool_warned=yes ;;
3037esac
3038    CC=$ac_ct_CC
3039  fi
3040else
3041  CC="$ac_cv_prog_CC"
3042fi
3043
3044if test -z "$CC"; then
3045          if test -n "$ac_tool_prefix"; then
3046    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3047set dummy ${ac_tool_prefix}cc; ac_word=$2
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049$as_echo_n "checking for $ac_word... " >&6; }
3050if ${ac_cv_prog_CC+:} false; then :
3051  $as_echo_n "(cached) " >&6
3052else
3053  if test -n "$CC"; then
3054  ac_cv_prog_CC="$CC" # Let the user override the test.
3055else
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059  IFS=$as_save_IFS
3060  test -z "$as_dir" && as_dir=.
3061    for ac_exec_ext in '' $ac_executable_extensions; do
3062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063    ac_cv_prog_CC="${ac_tool_prefix}cc"
3064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065    break 2
3066  fi
3067done
3068  done
3069IFS=$as_save_IFS
3070
3071fi
3072fi
3073CC=$ac_cv_prog_CC
3074if test -n "$CC"; then
3075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076$as_echo "$CC" >&6; }
3077else
3078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079$as_echo "no" >&6; }
3080fi
3081
3082
3083  fi
3084fi
3085if test -z "$CC"; then
3086  # Extract the first word of "cc", so it can be a program name with args.
3087set dummy cc; ac_word=$2
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089$as_echo_n "checking for $ac_word... " >&6; }
3090if ${ac_cv_prog_CC+:} false; then :
3091  $as_echo_n "(cached) " >&6
3092else
3093  if test -n "$CC"; then
3094  ac_cv_prog_CC="$CC" # Let the user override the test.
3095else
3096  ac_prog_rejected=no
3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH
3099do
3100  IFS=$as_save_IFS
3101  test -z "$as_dir" && as_dir=.
3102    for ac_exec_ext in '' $ac_executable_extensions; do
3103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3105       ac_prog_rejected=yes
3106       continue
3107     fi
3108    ac_cv_prog_CC="cc"
3109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110    break 2
3111  fi
3112done
3113  done
3114IFS=$as_save_IFS
3115
3116if test $ac_prog_rejected = yes; then
3117  # We found a bogon in the path, so make sure we never use it.
3118  set dummy $ac_cv_prog_CC
3119  shift
3120  if test $# != 0; then
3121    # We chose a different compiler from the bogus one.
3122    # However, it has the same basename, so the bogon will be chosen
3123    # first if we set CC to just the basename; use the full file name.
3124    shift
3125    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3126  fi
3127fi
3128fi
3129fi
3130CC=$ac_cv_prog_CC
3131if test -n "$CC"; then
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133$as_echo "$CC" >&6; }
3134else
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136$as_echo "no" >&6; }
3137fi
3138
3139
3140fi
3141if test -z "$CC"; then
3142  if test -n "$ac_tool_prefix"; then
3143  for ac_prog in cl.exe
3144  do
3145    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148$as_echo_n "checking for $ac_word... " >&6; }
3149if ${ac_cv_prog_CC+:} false; then :
3150  $as_echo_n "(cached) " >&6
3151else
3152  if test -n "$CC"; then
3153  ac_cv_prog_CC="$CC" # Let the user override the test.
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160    for ac_exec_ext in '' $ac_executable_extensions; do
3161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166done
3167  done
3168IFS=$as_save_IFS
3169
3170fi
3171fi
3172CC=$ac_cv_prog_CC
3173if test -n "$CC"; then
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175$as_echo "$CC" >&6; }
3176else
3177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179fi
3180
3181
3182    test -n "$CC" && break
3183  done
3184fi
3185if test -z "$CC"; then
3186  ac_ct_CC=$CC
3187  for ac_prog in cl.exe
3188do
3189  # Extract the first word of "$ac_prog", so it can be a program name with args.
3190set dummy $ac_prog; ac_word=$2
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192$as_echo_n "checking for $ac_word... " >&6; }
3193if ${ac_cv_prog_ac_ct_CC+:} false; then :
3194  $as_echo_n "(cached) " >&6
3195else
3196  if test -n "$ac_ct_CC"; then
3197  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198else
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202  IFS=$as_save_IFS
3203  test -z "$as_dir" && as_dir=.
3204    for ac_exec_ext in '' $ac_executable_extensions; do
3205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206    ac_cv_prog_ac_ct_CC="$ac_prog"
3207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208    break 2
3209  fi
3210done
3211  done
3212IFS=$as_save_IFS
3213
3214fi
3215fi
3216ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217if test -n "$ac_ct_CC"; then
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219$as_echo "$ac_ct_CC" >&6; }
3220else
3221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222$as_echo "no" >&6; }
3223fi
3224
3225
3226  test -n "$ac_ct_CC" && break
3227done
3228
3229  if test "x$ac_ct_CC" = x; then
3230    CC=""
3231  else
3232    case $cross_compiling:$ac_tool_warned in
3233yes:)
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3236ac_tool_warned=yes ;;
3237esac
3238    CC=$ac_ct_CC
3239  fi
3240fi
3241
3242fi
3243
3244
3245test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247as_fn_error $? "no acceptable C compiler found in \$PATH
3248See \`config.log' for more details" "$LINENO" 5; }
3249
3250# Provide some information about the compiler.
3251$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3252set X $ac_compile
3253ac_compiler=$2
3254for ac_option in --version -v -V -qversion; do
3255  { { ac_try="$ac_compiler $ac_option >&5"
3256case "(($ac_try" in
3257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258  *) ac_try_echo=$ac_try;;
3259esac
3260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261$as_echo "$ac_try_echo"; } >&5
3262  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3263  ac_status=$?
3264  if test -s conftest.err; then
3265    sed '10a\
3266... rest of stderr output deleted ...
3267         10q' conftest.err >conftest.er1
3268    cat conftest.er1 >&5
3269  fi
3270  rm -f conftest.er1 conftest.err
3271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272  test $ac_status = 0; }
3273done
3274
3275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276/* end confdefs.h.  */
3277
3278int
3279main ()
3280{
3281
3282  ;
3283  return 0;
3284}
3285_ACEOF
3286ac_clean_files_save=$ac_clean_files
3287ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3288# Try to create an executable without -o first, disregard a.out.
3289# It will help us diagnose broken compilers, and finding out an intuition
3290# of exeext.
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3292$as_echo_n "checking whether the C compiler works... " >&6; }
3293ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3294
3295# The possible output files:
3296ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3297
3298ac_rmfiles=
3299for ac_file in $ac_files
3300do
3301  case $ac_file in
3302    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3303    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3304  esac
3305done
3306rm -f $ac_rmfiles
3307
3308if { { ac_try="$ac_link_default"
3309case "(($ac_try" in
3310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311  *) ac_try_echo=$ac_try;;
3312esac
3313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314$as_echo "$ac_try_echo"; } >&5
3315  (eval "$ac_link_default") 2>&5
3316  ac_status=$?
3317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318  test $ac_status = 0; }; then :
3319  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3320# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3321# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3322# so that the user can short-circuit this test for compilers unknown to
3323# Autoconf.
3324for ac_file in $ac_files ''
3325do
3326  test -f "$ac_file" || continue
3327  case $ac_file in
3328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3329	;;
3330    [ab].out )
3331	# We found the default executable, but exeext='' is most
3332	# certainly right.
3333	break;;
3334    *.* )
3335	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3336	then :; else
3337	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338	fi
3339	# We set ac_cv_exeext here because the later test for it is not
3340	# safe: cross compilers may not add the suffix if given an `-o'
3341	# argument, so we may need to know it at that point already.
3342	# Even if this section looks crufty: it has the advantage of
3343	# actually working.
3344	break;;
3345    * )
3346	break;;
3347  esac
3348done
3349test "$ac_cv_exeext" = no && ac_cv_exeext=
3350
3351else
3352  ac_file=''
3353fi
3354if test -z "$ac_file"; then :
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356$as_echo "no" >&6; }
3357$as_echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362as_fn_error 77 "C compiler cannot create executables
3363See \`config.log' for more details" "$LINENO" 5; }
3364else
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366$as_echo "yes" >&6; }
3367fi
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3369$as_echo_n "checking for C compiler default output file name... " >&6; }
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3371$as_echo "$ac_file" >&6; }
3372ac_exeext=$ac_cv_exeext
3373
3374rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3375ac_clean_files=$ac_clean_files_save
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3377$as_echo_n "checking for suffix of executables... " >&6; }
3378if { { ac_try="$ac_link"
3379case "(($ac_try" in
3380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381  *) ac_try_echo=$ac_try;;
3382esac
3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384$as_echo "$ac_try_echo"; } >&5
3385  (eval "$ac_link") 2>&5
3386  ac_status=$?
3387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388  test $ac_status = 0; }; then :
3389  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3390# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3391# work properly (i.e., refer to `conftest.exe'), while it won't with
3392# `rm'.
3393for ac_file in conftest.exe conftest conftest.*; do
3394  test -f "$ac_file" || continue
3395  case $ac_file in
3396    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3397    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398	  break;;
3399    * ) break;;
3400  esac
3401done
3402else
3403  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3406See \`config.log' for more details" "$LINENO" 5; }
3407fi
3408rm -f conftest conftest$ac_cv_exeext
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3410$as_echo "$ac_cv_exeext" >&6; }
3411
3412rm -f conftest.$ac_ext
3413EXEEXT=$ac_cv_exeext
3414ac_exeext=$EXEEXT
3415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h.  */
3417#include <stdio.h>
3418int
3419main ()
3420{
3421FILE *f = fopen ("conftest.out", "w");
3422 return ferror (f) || fclose (f) != 0;
3423
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428ac_clean_files="$ac_clean_files conftest.out"
3429# Check that the compiler produces executables we can run.  If not, either
3430# the compiler is broken, or we cross compile.
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3432$as_echo_n "checking whether we are cross compiling... " >&6; }
3433if test "$cross_compiling" != yes; then
3434  { { ac_try="$ac_link"
3435case "(($ac_try" in
3436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437  *) ac_try_echo=$ac_try;;
3438esac
3439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440$as_echo "$ac_try_echo"; } >&5
3441  (eval "$ac_link") 2>&5
3442  ac_status=$?
3443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444  test $ac_status = 0; }
3445  if { ac_try='./conftest$ac_cv_exeext'
3446  { { case "(($ac_try" in
3447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448  *) ac_try_echo=$ac_try;;
3449esac
3450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451$as_echo "$ac_try_echo"; } >&5
3452  (eval "$ac_try") 2>&5
3453  ac_status=$?
3454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455  test $ac_status = 0; }; }; then
3456    cross_compiling=no
3457  else
3458    if test "$cross_compiling" = maybe; then
3459	cross_compiling=yes
3460    else
3461	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463as_fn_error $? "cannot run C compiled programs.
3464If you meant to cross compile, use \`--host'.
3465See \`config.log' for more details" "$LINENO" 5; }
3466    fi
3467  fi
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3470$as_echo "$cross_compiling" >&6; }
3471
3472rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3473ac_clean_files=$ac_clean_files_save
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3475$as_echo_n "checking for suffix of object files... " >&6; }
3476if ${ac_cv_objext+:} false; then :
3477  $as_echo_n "(cached) " >&6
3478else
3479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480/* end confdefs.h.  */
3481
3482int
3483main ()
3484{
3485
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490rm -f conftest.o conftest.obj
3491if { { ac_try="$ac_compile"
3492case "(($ac_try" in
3493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494  *) ac_try_echo=$ac_try;;
3495esac
3496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497$as_echo "$ac_try_echo"; } >&5
3498  (eval "$ac_compile") 2>&5
3499  ac_status=$?
3500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501  test $ac_status = 0; }; then :
3502  for ac_file in conftest.o conftest.obj conftest.*; do
3503  test -f "$ac_file" || continue;
3504  case $ac_file in
3505    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3506    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3507       break;;
3508  esac
3509done
3510else
3511  $as_echo "$as_me: failed program was:" >&5
3512sed 's/^/| /' conftest.$ac_ext >&5
3513
3514{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516as_fn_error $? "cannot compute suffix of object files: cannot compile
3517See \`config.log' for more details" "$LINENO" 5; }
3518fi
3519rm -f conftest.$ac_cv_objext conftest.$ac_ext
3520fi
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3522$as_echo "$ac_cv_objext" >&6; }
3523OBJEXT=$ac_cv_objext
3524ac_objext=$OBJEXT
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3526$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3527if ${ac_cv_c_compiler_gnu+:} false; then :
3528  $as_echo_n "(cached) " >&6
3529else
3530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h.  */
3532
3533int
3534main ()
3535{
3536#ifndef __GNUC__
3537       choke me
3538#endif
3539
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544if ac_fn_c_try_compile "$LINENO"; then :
3545  ac_compiler_gnu=yes
3546else
3547  ac_compiler_gnu=no
3548fi
3549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550ac_cv_c_compiler_gnu=$ac_compiler_gnu
3551
3552fi
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3554$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3555if test $ac_compiler_gnu = yes; then
3556  GCC=yes
3557else
3558  GCC=
3559fi
3560ac_test_CFLAGS=${CFLAGS+set}
3561ac_save_CFLAGS=$CFLAGS
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3563$as_echo_n "checking whether $CC accepts -g... " >&6; }
3564if ${ac_cv_prog_cc_g+:} false; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  ac_save_c_werror_flag=$ac_c_werror_flag
3568   ac_c_werror_flag=yes
3569   ac_cv_prog_cc_g=no
3570   CFLAGS="-g"
3571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h.  */
3573
3574int
3575main ()
3576{
3577
3578  ;
3579  return 0;
3580}
3581_ACEOF
3582if ac_fn_c_try_compile "$LINENO"; then :
3583  ac_cv_prog_cc_g=yes
3584else
3585  CFLAGS=""
3586      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h.  */
3588
3589int
3590main ()
3591{
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597if ac_fn_c_try_compile "$LINENO"; then :
3598
3599else
3600  ac_c_werror_flag=$ac_save_c_werror_flag
3601	 CFLAGS="-g"
3602	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h.  */
3604
3605int
3606main ()
3607{
3608
3609  ;
3610  return 0;
3611}
3612_ACEOF
3613if ac_fn_c_try_compile "$LINENO"; then :
3614  ac_cv_prog_cc_g=yes
3615fi
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619fi
3620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621   ac_c_werror_flag=$ac_save_c_werror_flag
3622fi
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3624$as_echo "$ac_cv_prog_cc_g" >&6; }
3625if test "$ac_test_CFLAGS" = set; then
3626  CFLAGS=$ac_save_CFLAGS
3627elif test $ac_cv_prog_cc_g = yes; then
3628  if test "$GCC" = yes; then
3629    CFLAGS="-g -O2"
3630  else
3631    CFLAGS="-g"
3632  fi
3633else
3634  if test "$GCC" = yes; then
3635    CFLAGS="-O2"
3636  else
3637    CFLAGS=
3638  fi
3639fi
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3641$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3642if ${ac_cv_prog_cc_c89+:} false; then :
3643  $as_echo_n "(cached) " >&6
3644else
3645  ac_cv_prog_cc_c89=no
3646ac_save_CC=$CC
3647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h.  */
3649#include <stdarg.h>
3650#include <stdio.h>
3651#include <sys/types.h>
3652#include <sys/stat.h>
3653/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3654struct buf { int x; };
3655FILE * (*rcsopen) (struct buf *, struct stat *, int);
3656static char *e (p, i)
3657     char **p;
3658     int i;
3659{
3660  return p[i];
3661}
3662static char *f (char * (*g) (char **, int), char **p, ...)
3663{
3664  char *s;
3665  va_list v;
3666  va_start (v,p);
3667  s = g (p, va_arg (v,int));
3668  va_end (v);
3669  return s;
3670}
3671
3672/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3673   function prototypes and stuff, but not '\xHH' hex character constants.
3674   These don't provoke an error unfortunately, instead are silently treated
3675   as 'x'.  The following induces an error, until -std is added to get
3676   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3677   array size at least.  It's necessary to write '\x00'==0 to get something
3678   that's true only with -std.  */
3679int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3680
3681/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3682   inside strings and character constants.  */
3683#define FOO(x) 'x'
3684int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3685
3686int test (int i, double x);
3687struct s1 {int (*f) (int a);};
3688struct s2 {int (*f) (double a);};
3689int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3690int argc;
3691char **argv;
3692int
3693main ()
3694{
3695return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3701	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3702do
3703  CC="$ac_save_CC $ac_arg"
3704  if ac_fn_c_try_compile "$LINENO"; then :
3705  ac_cv_prog_cc_c89=$ac_arg
3706fi
3707rm -f core conftest.err conftest.$ac_objext
3708  test "x$ac_cv_prog_cc_c89" != "xno" && break
3709done
3710rm -f conftest.$ac_ext
3711CC=$ac_save_CC
3712
3713fi
3714# AC_CACHE_VAL
3715case "x$ac_cv_prog_cc_c89" in
3716  x)
3717    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3718$as_echo "none needed" >&6; } ;;
3719  xno)
3720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3721$as_echo "unsupported" >&6; } ;;
3722  *)
3723    CC="$CC $ac_cv_prog_cc_c89"
3724    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3725$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3726esac
3727if test "x$ac_cv_prog_cc_c89" != xno; then :
3728
3729fi
3730
3731ac_ext=c
3732ac_cpp='$CPP $CPPFLAGS'
3733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736
3737depcc="$CC"   am_compiler_list=
3738
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3740$as_echo_n "checking dependency style of $depcc... " >&6; }
3741if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3742  $as_echo_n "(cached) " >&6
3743else
3744  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3745  # We make a subdir and do the tests there.  Otherwise we can end up
3746  # making bogus files that we don't know about and never remove.  For
3747  # instance it was reported that on HP-UX the gcc test will end up
3748  # making a dummy file named `D' -- because `-MD' means `put the output
3749  # in D'.
3750  mkdir conftest.dir
3751  # Copy depcomp to subdir because otherwise we won't find it if we're
3752  # using a relative directory.
3753  cp "$am_depcomp" conftest.dir
3754  cd conftest.dir
3755  # We will build objects and dependencies in a subdirectory because
3756  # it helps to detect inapplicable dependency modes.  For instance
3757  # both Tru64's cc and ICC support -MD to output dependencies as a
3758  # side effect of compilation, but ICC will put the dependencies in
3759  # the current directory while Tru64 will put them in the object
3760  # directory.
3761  mkdir sub
3762
3763  am_cv_CC_dependencies_compiler_type=none
3764  if test "$am_compiler_list" = ""; then
3765     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3766  fi
3767  am__universal=false
3768  case " $depcc " in #(
3769     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3770     esac
3771
3772  for depmode in $am_compiler_list; do
3773    # Setup a source with many dependencies, because some compilers
3774    # like to wrap large dependency lists on column 80 (with \), and
3775    # we should not choose a depcomp mode which is confused by this.
3776    #
3777    # We need to recreate these files for each test, as the compiler may
3778    # overwrite some of them when testing with obscure command lines.
3779    # This happens at least with the AIX C compiler.
3780    : > sub/conftest.c
3781    for i in 1 2 3 4 5 6; do
3782      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3783      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3784      # Solaris 8's {/usr,}/bin/sh.
3785      touch sub/conftst$i.h
3786    done
3787    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3788
3789    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3790    # mode.  It turns out that the SunPro C++ compiler does not properly
3791    # handle `-M -o', and we need to detect this.  Also, some Intel
3792    # versions had trouble with output in subdirs
3793    am__obj=sub/conftest.${OBJEXT-o}
3794    am__minus_obj="-o $am__obj"
3795    case $depmode in
3796    gcc)
3797      # This depmode causes a compiler race in universal mode.
3798      test "$am__universal" = false || continue
3799      ;;
3800    nosideeffect)
3801      # after this tag, mechanisms are not by side-effect, so they'll
3802      # only be used when explicitly requested
3803      if test "x$enable_dependency_tracking" = xyes; then
3804	continue
3805      else
3806	break
3807      fi
3808      ;;
3809    msvisualcpp | msvcmsys)
3810      # This compiler won't grok `-c -o', but also, the minuso test has
3811      # not run yet.  These depmodes are late enough in the game, and
3812      # so weak that their functioning should not be impacted.
3813      am__obj=conftest.${OBJEXT-o}
3814      am__minus_obj=
3815      ;;
3816    none) break ;;
3817    esac
3818    if depmode=$depmode \
3819       source=sub/conftest.c object=$am__obj \
3820       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3822         >/dev/null 2>conftest.err &&
3823       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3824       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3825       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3826       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3827      # icc doesn't choke on unknown options, it will just issue warnings
3828      # or remarks (even with -Werror).  So we grep stderr for any message
3829      # that says an option was ignored or not supported.
3830      # When given -MP, icc 7.0 and 7.1 complain thusly:
3831      #   icc: Command line warning: ignoring option '-M'; no argument required
3832      # The diagnosis changed in icc 8.0:
3833      #   icc: Command line remark: option '-MP' not supported
3834      if (grep 'ignoring option' conftest.err ||
3835          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3836        am_cv_CC_dependencies_compiler_type=$depmode
3837        break
3838      fi
3839    fi
3840  done
3841
3842  cd ..
3843  rm -rf conftest.dir
3844else
3845  am_cv_CC_dependencies_compiler_type=none
3846fi
3847
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3850$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3851CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3852
3853 if
3854  test "x$enable_dependency_tracking" != xno \
3855  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3856  am__fastdepCC_TRUE=
3857  am__fastdepCC_FALSE='#'
3858else
3859  am__fastdepCC_TRUE='#'
3860  am__fastdepCC_FALSE=
3861fi
3862
3863
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3865$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3866if ${ac_cv_path_SED+:} false; then :
3867  $as_echo_n "(cached) " >&6
3868else
3869            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3870     for ac_i in 1 2 3 4 5 6 7; do
3871       ac_script="$ac_script$as_nl$ac_script"
3872     done
3873     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3874     { ac_script=; unset ac_script;}
3875     if test -z "$SED"; then
3876  ac_path_SED_found=false
3877  # Loop through the user's path and test for each of PROGNAME-LIST
3878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881  IFS=$as_save_IFS
3882  test -z "$as_dir" && as_dir=.
3883    for ac_prog in sed gsed; do
3884    for ac_exec_ext in '' $ac_executable_extensions; do
3885      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3886      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3887# Check for GNU ac_path_SED and select it if it is found.
3888  # Check for GNU $ac_path_SED
3889case `"$ac_path_SED" --version 2>&1` in
3890*GNU*)
3891  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3892*)
3893  ac_count=0
3894  $as_echo_n 0123456789 >"conftest.in"
3895  while :
3896  do
3897    cat "conftest.in" "conftest.in" >"conftest.tmp"
3898    mv "conftest.tmp" "conftest.in"
3899    cp "conftest.in" "conftest.nl"
3900    $as_echo '' >> "conftest.nl"
3901    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903    as_fn_arith $ac_count + 1 && ac_count=$as_val
3904    if test $ac_count -gt ${ac_path_SED_max-0}; then
3905      # Best one so far, save it but keep looking for a better one
3906      ac_cv_path_SED="$ac_path_SED"
3907      ac_path_SED_max=$ac_count
3908    fi
3909    # 10*(2^10) chars as input seems more than enough
3910    test $ac_count -gt 10 && break
3911  done
3912  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913esac
3914
3915      $ac_path_SED_found && break 3
3916    done
3917  done
3918  done
3919IFS=$as_save_IFS
3920  if test -z "$ac_cv_path_SED"; then
3921    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3922  fi
3923else
3924  ac_cv_path_SED=$SED
3925fi
3926
3927fi
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3929$as_echo "$ac_cv_path_SED" >&6; }
3930 SED="$ac_cv_path_SED"
3931  rm -f conftest.sed
3932
3933test -z "$SED" && SED=sed
3934Xsed="$SED -e 1s/^X//"
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3947$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3948if ${ac_cv_path_GREP+:} false; then :
3949  $as_echo_n "(cached) " >&6
3950else
3951  if test -z "$GREP"; then
3952  ac_path_GREP_found=false
3953  # Loop through the user's path and test for each of PROGNAME-LIST
3954  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956do
3957  IFS=$as_save_IFS
3958  test -z "$as_dir" && as_dir=.
3959    for ac_prog in grep ggrep; do
3960    for ac_exec_ext in '' $ac_executable_extensions; do
3961      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3962      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3963# Check for GNU ac_path_GREP and select it if it is found.
3964  # Check for GNU $ac_path_GREP
3965case `"$ac_path_GREP" --version 2>&1` in
3966*GNU*)
3967  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3968*)
3969  ac_count=0
3970  $as_echo_n 0123456789 >"conftest.in"
3971  while :
3972  do
3973    cat "conftest.in" "conftest.in" >"conftest.tmp"
3974    mv "conftest.tmp" "conftest.in"
3975    cp "conftest.in" "conftest.nl"
3976    $as_echo 'GREP' >> "conftest.nl"
3977    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979    as_fn_arith $ac_count + 1 && ac_count=$as_val
3980    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3981      # Best one so far, save it but keep looking for a better one
3982      ac_cv_path_GREP="$ac_path_GREP"
3983      ac_path_GREP_max=$ac_count
3984    fi
3985    # 10*(2^10) chars as input seems more than enough
3986    test $ac_count -gt 10 && break
3987  done
3988  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989esac
3990
3991      $ac_path_GREP_found && break 3
3992    done
3993  done
3994  done
3995IFS=$as_save_IFS
3996  if test -z "$ac_cv_path_GREP"; then
3997    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3998  fi
3999else
4000  ac_cv_path_GREP=$GREP
4001fi
4002
4003fi
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4005$as_echo "$ac_cv_path_GREP" >&6; }
4006 GREP="$ac_cv_path_GREP"
4007
4008
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4010$as_echo_n "checking for egrep... " >&6; }
4011if ${ac_cv_path_EGREP+:} false; then :
4012  $as_echo_n "(cached) " >&6
4013else
4014  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4015   then ac_cv_path_EGREP="$GREP -E"
4016   else
4017     if test -z "$EGREP"; then
4018  ac_path_EGREP_found=false
4019  # Loop through the user's path and test for each of PROGNAME-LIST
4020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022do
4023  IFS=$as_save_IFS
4024  test -z "$as_dir" && as_dir=.
4025    for ac_prog in egrep; do
4026    for ac_exec_ext in '' $ac_executable_extensions; do
4027      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4028      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4029# Check for GNU ac_path_EGREP and select it if it is found.
4030  # Check for GNU $ac_path_EGREP
4031case `"$ac_path_EGREP" --version 2>&1` in
4032*GNU*)
4033  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4034*)
4035  ac_count=0
4036  $as_echo_n 0123456789 >"conftest.in"
4037  while :
4038  do
4039    cat "conftest.in" "conftest.in" >"conftest.tmp"
4040    mv "conftest.tmp" "conftest.in"
4041    cp "conftest.in" "conftest.nl"
4042    $as_echo 'EGREP' >> "conftest.nl"
4043    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045    as_fn_arith $ac_count + 1 && ac_count=$as_val
4046    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4047      # Best one so far, save it but keep looking for a better one
4048      ac_cv_path_EGREP="$ac_path_EGREP"
4049      ac_path_EGREP_max=$ac_count
4050    fi
4051    # 10*(2^10) chars as input seems more than enough
4052    test $ac_count -gt 10 && break
4053  done
4054  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055esac
4056
4057      $ac_path_EGREP_found && break 3
4058    done
4059  done
4060  done
4061IFS=$as_save_IFS
4062  if test -z "$ac_cv_path_EGREP"; then
4063    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4064  fi
4065else
4066  ac_cv_path_EGREP=$EGREP
4067fi
4068
4069   fi
4070fi
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4072$as_echo "$ac_cv_path_EGREP" >&6; }
4073 EGREP="$ac_cv_path_EGREP"
4074
4075
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4077$as_echo_n "checking for fgrep... " >&6; }
4078if ${ac_cv_path_FGREP+:} false; then :
4079  $as_echo_n "(cached) " >&6
4080else
4081  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4082   then ac_cv_path_FGREP="$GREP -F"
4083   else
4084     if test -z "$FGREP"; then
4085  ac_path_FGREP_found=false
4086  # Loop through the user's path and test for each of PROGNAME-LIST
4087  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089do
4090  IFS=$as_save_IFS
4091  test -z "$as_dir" && as_dir=.
4092    for ac_prog in fgrep; do
4093    for ac_exec_ext in '' $ac_executable_extensions; do
4094      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4095      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4096# Check for GNU ac_path_FGREP and select it if it is found.
4097  # Check for GNU $ac_path_FGREP
4098case `"$ac_path_FGREP" --version 2>&1` in
4099*GNU*)
4100  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4101*)
4102  ac_count=0
4103  $as_echo_n 0123456789 >"conftest.in"
4104  while :
4105  do
4106    cat "conftest.in" "conftest.in" >"conftest.tmp"
4107    mv "conftest.tmp" "conftest.in"
4108    cp "conftest.in" "conftest.nl"
4109    $as_echo 'FGREP' >> "conftest.nl"
4110    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4112    as_fn_arith $ac_count + 1 && ac_count=$as_val
4113    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4114      # Best one so far, save it but keep looking for a better one
4115      ac_cv_path_FGREP="$ac_path_FGREP"
4116      ac_path_FGREP_max=$ac_count
4117    fi
4118    # 10*(2^10) chars as input seems more than enough
4119    test $ac_count -gt 10 && break
4120  done
4121  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122esac
4123
4124      $ac_path_FGREP_found && break 3
4125    done
4126  done
4127  done
4128IFS=$as_save_IFS
4129  if test -z "$ac_cv_path_FGREP"; then
4130    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4131  fi
4132else
4133  ac_cv_path_FGREP=$FGREP
4134fi
4135
4136   fi
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4139$as_echo "$ac_cv_path_FGREP" >&6; }
4140 FGREP="$ac_cv_path_FGREP"
4141
4142
4143test -z "$GREP" && GREP=grep
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163# Check whether --with-gnu-ld was given.
4164if test "${with_gnu_ld+set}" = set; then :
4165  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4166else
4167  with_gnu_ld=no
4168fi
4169
4170ac_prog=ld
4171if test "$GCC" = yes; then
4172  # Check if gcc -print-prog-name=ld gives a path.
4173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4174$as_echo_n "checking for ld used by $CC... " >&6; }
4175  case $host in
4176  *-*-mingw*)
4177    # gcc leaves a trailing carriage return which upsets mingw
4178    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4179  *)
4180    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4181  esac
4182  case $ac_prog in
4183    # Accept absolute paths.
4184    [\\/]* | ?:[\\/]*)
4185      re_direlt='/[^/][^/]*/\.\./'
4186      # Canonicalize the pathname of ld
4187      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4188      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4189	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4190      done
4191      test -z "$LD" && LD="$ac_prog"
4192      ;;
4193  "")
4194    # If it fails, then pretend we aren't using GCC.
4195    ac_prog=ld
4196    ;;
4197  *)
4198    # If it is relative, then search for the first ld in PATH.
4199    with_gnu_ld=unknown
4200    ;;
4201  esac
4202elif test "$with_gnu_ld" = yes; then
4203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4204$as_echo_n "checking for GNU ld... " >&6; }
4205else
4206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4207$as_echo_n "checking for non-GNU ld... " >&6; }
4208fi
4209if ${lt_cv_path_LD+:} false; then :
4210  $as_echo_n "(cached) " >&6
4211else
4212  if test -z "$LD"; then
4213  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4214  for ac_dir in $PATH; do
4215    IFS="$lt_save_ifs"
4216    test -z "$ac_dir" && ac_dir=.
4217    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4218      lt_cv_path_LD="$ac_dir/$ac_prog"
4219      # Check to see if the program is GNU ld.  I'd rather use --version,
4220      # but apparently some variants of GNU ld only accept -v.
4221      # Break only if it was the GNU/non-GNU ld that we prefer.
4222      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4223      *GNU* | *'with BFD'*)
4224	test "$with_gnu_ld" != no && break
4225	;;
4226      *)
4227	test "$with_gnu_ld" != yes && break
4228	;;
4229      esac
4230    fi
4231  done
4232  IFS="$lt_save_ifs"
4233else
4234  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4235fi
4236fi
4237
4238LD="$lt_cv_path_LD"
4239if test -n "$LD"; then
4240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4241$as_echo "$LD" >&6; }
4242else
4243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244$as_echo "no" >&6; }
4245fi
4246test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4248$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4249if ${lt_cv_prog_gnu_ld+:} false; then :
4250  $as_echo_n "(cached) " >&6
4251else
4252  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4253case `$LD -v 2>&1 </dev/null` in
4254*GNU* | *'with BFD'*)
4255  lt_cv_prog_gnu_ld=yes
4256  ;;
4257*)
4258  lt_cv_prog_gnu_ld=no
4259  ;;
4260esac
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4263$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4264with_gnu_ld=$lt_cv_prog_gnu_ld
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4275$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4276if ${lt_cv_path_NM+:} false; then :
4277  $as_echo_n "(cached) " >&6
4278else
4279  if test -n "$NM"; then
4280  # Let the user override the test.
4281  lt_cv_path_NM="$NM"
4282else
4283  lt_nm_to_check="${ac_tool_prefix}nm"
4284  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4285    lt_nm_to_check="$lt_nm_to_check nm"
4286  fi
4287  for lt_tmp_nm in $lt_nm_to_check; do
4288    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4289    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4290      IFS="$lt_save_ifs"
4291      test -z "$ac_dir" && ac_dir=.
4292      tmp_nm="$ac_dir/$lt_tmp_nm"
4293      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4294	# Check to see if the nm accepts a BSD-compat flag.
4295	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4296	#   nm: unknown option "B" ignored
4297	# Tru64's nm complains that /dev/null is an invalid object file
4298	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4299	*/dev/null* | *'Invalid file or object type'*)
4300	  lt_cv_path_NM="$tmp_nm -B"
4301	  break
4302	  ;;
4303	*)
4304	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4305	  */dev/null*)
4306	    lt_cv_path_NM="$tmp_nm -p"
4307	    break
4308	    ;;
4309	  *)
4310	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4311	    continue # so that we can try to find one that supports BSD flags
4312	    ;;
4313	  esac
4314	  ;;
4315	esac
4316      fi
4317    done
4318    IFS="$lt_save_ifs"
4319  done
4320  : ${lt_cv_path_NM=no}
4321fi
4322fi
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4324$as_echo "$lt_cv_path_NM" >&6; }
4325if test "$lt_cv_path_NM" != "no"; then
4326  NM="$lt_cv_path_NM"
4327else
4328  # Didn't find any BSD compatible name lister, look for dumpbin.
4329  if test -n "$DUMPBIN"; then :
4330    # Let the user override the test.
4331  else
4332    if test -n "$ac_tool_prefix"; then
4333  for ac_prog in dumpbin "link -dump"
4334  do
4335    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4336set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338$as_echo_n "checking for $ac_word... " >&6; }
4339if ${ac_cv_prog_DUMPBIN+:} false; then :
4340  $as_echo_n "(cached) " >&6
4341else
4342  if test -n "$DUMPBIN"; then
4343  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348  IFS=$as_save_IFS
4349  test -z "$as_dir" && as_dir=.
4350    for ac_exec_ext in '' $ac_executable_extensions; do
4351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354    break 2
4355  fi
4356done
4357  done
4358IFS=$as_save_IFS
4359
4360fi
4361fi
4362DUMPBIN=$ac_cv_prog_DUMPBIN
4363if test -n "$DUMPBIN"; then
4364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4365$as_echo "$DUMPBIN" >&6; }
4366else
4367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368$as_echo "no" >&6; }
4369fi
4370
4371
4372    test -n "$DUMPBIN" && break
4373  done
4374fi
4375if test -z "$DUMPBIN"; then
4376  ac_ct_DUMPBIN=$DUMPBIN
4377  for ac_prog in dumpbin "link -dump"
4378do
4379  # Extract the first word of "$ac_prog", so it can be a program name with args.
4380set dummy $ac_prog; ac_word=$2
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382$as_echo_n "checking for $ac_word... " >&6; }
4383if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4384  $as_echo_n "(cached) " >&6
4385else
4386  if test -n "$ac_ct_DUMPBIN"; then
4387  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392  IFS=$as_save_IFS
4393  test -z "$as_dir" && as_dir=.
4394    for ac_exec_ext in '' $ac_executable_extensions; do
4395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398    break 2
4399  fi
4400done
4401  done
4402IFS=$as_save_IFS
4403
4404fi
4405fi
4406ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4407if test -n "$ac_ct_DUMPBIN"; then
4408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4409$as_echo "$ac_ct_DUMPBIN" >&6; }
4410else
4411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412$as_echo "no" >&6; }
4413fi
4414
4415
4416  test -n "$ac_ct_DUMPBIN" && break
4417done
4418
4419  if test "x$ac_ct_DUMPBIN" = x; then
4420    DUMPBIN=":"
4421  else
4422    case $cross_compiling:$ac_tool_warned in
4423yes:)
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4426ac_tool_warned=yes ;;
4427esac
4428    DUMPBIN=$ac_ct_DUMPBIN
4429  fi
4430fi
4431
4432    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4433    *COFF*)
4434      DUMPBIN="$DUMPBIN -symbols"
4435      ;;
4436    *)
4437      DUMPBIN=:
4438      ;;
4439    esac
4440  fi
4441
4442  if test "$DUMPBIN" != ":"; then
4443    NM="$DUMPBIN"
4444  fi
4445fi
4446test -z "$NM" && NM=nm
4447
4448
4449
4450
4451
4452
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4454$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4455if ${lt_cv_nm_interface+:} false; then :
4456  $as_echo_n "(cached) " >&6
4457else
4458  lt_cv_nm_interface="BSD nm"
4459  echo "int some_variable = 0;" > conftest.$ac_ext
4460  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4461  (eval "$ac_compile" 2>conftest.err)
4462  cat conftest.err >&5
4463  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4464  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4465  cat conftest.err >&5
4466  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4467  cat conftest.out >&5
4468  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4469    lt_cv_nm_interface="MS dumpbin"
4470  fi
4471  rm -f conftest*
4472fi
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4474$as_echo "$lt_cv_nm_interface" >&6; }
4475
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4477$as_echo_n "checking whether ln -s works... " >&6; }
4478LN_S=$as_ln_s
4479if test "$LN_S" = "ln -s"; then
4480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4481$as_echo "yes" >&6; }
4482else
4483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4484$as_echo "no, using $LN_S" >&6; }
4485fi
4486
4487# find the maximum length of command line arguments
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4489$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4490if ${lt_cv_sys_max_cmd_len+:} false; then :
4491  $as_echo_n "(cached) " >&6
4492else
4493    i=0
4494  teststring="ABCD"
4495
4496  case $build_os in
4497  msdosdjgpp*)
4498    # On DJGPP, this test can blow up pretty badly due to problems in libc
4499    # (any single argument exceeding 2000 bytes causes a buffer overrun
4500    # during glob expansion).  Even if it were fixed, the result of this
4501    # check would be larger than it should be.
4502    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4503    ;;
4504
4505  gnu*)
4506    # Under GNU Hurd, this test is not required because there is
4507    # no limit to the length of command line arguments.
4508    # Libtool will interpret -1 as no limit whatsoever
4509    lt_cv_sys_max_cmd_len=-1;
4510    ;;
4511
4512  cygwin* | mingw* | cegcc*)
4513    # On Win9x/ME, this test blows up -- it succeeds, but takes
4514    # about 5 minutes as the teststring grows exponentially.
4515    # Worse, since 9x/ME are not pre-emptively multitasking,
4516    # you end up with a "frozen" computer, even though with patience
4517    # the test eventually succeeds (with a max line length of 256k).
4518    # Instead, let's just punt: use the minimum linelength reported by
4519    # all of the supported platforms: 8192 (on NT/2K/XP).
4520    lt_cv_sys_max_cmd_len=8192;
4521    ;;
4522
4523  mint*)
4524    # On MiNT this can take a long time and run out of memory.
4525    lt_cv_sys_max_cmd_len=8192;
4526    ;;
4527
4528  amigaos*)
4529    # On AmigaOS with pdksh, this test takes hours, literally.
4530    # So we just punt and use a minimum line length of 8192.
4531    lt_cv_sys_max_cmd_len=8192;
4532    ;;
4533
4534  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4535    # This has been around since 386BSD, at least.  Likely further.
4536    if test -x /sbin/sysctl; then
4537      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4538    elif test -x /usr/sbin/sysctl; then
4539      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4540    else
4541      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4542    fi
4543    # And add a safety zone
4544    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4545    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4546    ;;
4547
4548  interix*)
4549    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4550    lt_cv_sys_max_cmd_len=196608
4551    ;;
4552
4553  osf*)
4554    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4555    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4556    # nice to cause kernel panics so lets avoid the loop below.
4557    # First set a reasonable default.
4558    lt_cv_sys_max_cmd_len=16384
4559    #
4560    if test -x /sbin/sysconfig; then
4561      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4562        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4563      esac
4564    fi
4565    ;;
4566  sco3.2v5*)
4567    lt_cv_sys_max_cmd_len=102400
4568    ;;
4569  sysv5* | sco5v6* | sysv4.2uw2*)
4570    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4571    if test -n "$kargmax"; then
4572      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4573    else
4574      lt_cv_sys_max_cmd_len=32768
4575    fi
4576    ;;
4577  *)
4578    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4579    if test -n "$lt_cv_sys_max_cmd_len"; then
4580      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4581      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4582    else
4583      # Make teststring a little bigger before we do anything with it.
4584      # a 1K string should be a reasonable start.
4585      for i in 1 2 3 4 5 6 7 8 ; do
4586        teststring=$teststring$teststring
4587      done
4588      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4589      # If test is not a shell built-in, we'll probably end up computing a
4590      # maximum length that is only half of the actual maximum length, but
4591      # we can't tell.
4592      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4593	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4594	      test $i != 17 # 1/2 MB should be enough
4595      do
4596        i=`expr $i + 1`
4597        teststring=$teststring$teststring
4598      done
4599      # Only check the string length outside the loop.
4600      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4601      teststring=
4602      # Add a significant safety factor because C++ compilers can tack on
4603      # massive amounts of additional arguments before passing them to the
4604      # linker.  It appears as though 1/2 is a usable value.
4605      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4606    fi
4607    ;;
4608  esac
4609
4610fi
4611
4612if test -n $lt_cv_sys_max_cmd_len ; then
4613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4614$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4615else
4616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4617$as_echo "none" >&6; }
4618fi
4619max_cmd_len=$lt_cv_sys_max_cmd_len
4620
4621
4622
4623
4624
4625
4626: ${CP="cp -f"}
4627: ${MV="mv -f"}
4628: ${RM="rm -f"}
4629
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4631$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4632# Try some XSI features
4633xsi_shell=no
4634( _lt_dummy="a/b/c"
4635  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4636      = c,a/b,b/c, \
4637    && eval 'test $(( 1 + 1 )) -eq 2 \
4638    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4639  && xsi_shell=yes
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4641$as_echo "$xsi_shell" >&6; }
4642
4643
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4645$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4646lt_shell_append=no
4647( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4648    >/dev/null 2>&1 \
4649  && lt_shell_append=yes
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4651$as_echo "$lt_shell_append" >&6; }
4652
4653
4654if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4655  lt_unset=unset
4656else
4657  lt_unset=false
4658fi
4659
4660
4661
4662
4663
4664# test EBCDIC or ASCII
4665case `echo X|tr X '\101'` in
4666 A) # ASCII based system
4667    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4668  lt_SP2NL='tr \040 \012'
4669  lt_NL2SP='tr \015\012 \040\040'
4670  ;;
4671 *) # EBCDIC based system
4672  lt_SP2NL='tr \100 \n'
4673  lt_NL2SP='tr \r\n \100\100'
4674  ;;
4675esac
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4686$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4687if ${lt_cv_to_host_file_cmd+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  case $host in
4691  *-*-mingw* )
4692    case $build in
4693      *-*-mingw* ) # actually msys
4694        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4695        ;;
4696      *-*-cygwin* )
4697        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4698        ;;
4699      * ) # otherwise, assume *nix
4700        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4701        ;;
4702    esac
4703    ;;
4704  *-*-cygwin* )
4705    case $build in
4706      *-*-mingw* ) # actually msys
4707        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4708        ;;
4709      *-*-cygwin* )
4710        lt_cv_to_host_file_cmd=func_convert_file_noop
4711        ;;
4712      * ) # otherwise, assume *nix
4713        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4714        ;;
4715    esac
4716    ;;
4717  * ) # unhandled hosts (and "normal" native builds)
4718    lt_cv_to_host_file_cmd=func_convert_file_noop
4719    ;;
4720esac
4721
4722fi
4723
4724to_host_file_cmd=$lt_cv_to_host_file_cmd
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4726$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4727
4728
4729
4730
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4733$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4734if ${lt_cv_to_tool_file_cmd+:} false; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737  #assume ordinary cross tools, or native build.
4738lt_cv_to_tool_file_cmd=func_convert_file_noop
4739case $host in
4740  *-*-mingw* )
4741    case $build in
4742      *-*-mingw* ) # actually msys
4743        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4744        ;;
4745    esac
4746    ;;
4747esac
4748
4749fi
4750
4751to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4753$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4754
4755
4756
4757
4758
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4760$as_echo_n "checking for $LD option to reload object files... " >&6; }
4761if ${lt_cv_ld_reload_flag+:} false; then :
4762  $as_echo_n "(cached) " >&6
4763else
4764  lt_cv_ld_reload_flag='-r'
4765fi
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4767$as_echo "$lt_cv_ld_reload_flag" >&6; }
4768reload_flag=$lt_cv_ld_reload_flag
4769case $reload_flag in
4770"" | " "*) ;;
4771*) reload_flag=" $reload_flag" ;;
4772esac
4773reload_cmds='$LD$reload_flag -o $output$reload_objs'
4774case $host_os in
4775  cygwin* | mingw* | pw32* | cegcc*)
4776    if test "$GCC" != yes; then
4777      reload_cmds=false
4778    fi
4779    ;;
4780  darwin*)
4781    if test "$GCC" = yes; then
4782      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4783    else
4784      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4785    fi
4786    ;;
4787esac
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797if test -n "$ac_tool_prefix"; then
4798  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4799set dummy ${ac_tool_prefix}objdump; ac_word=$2
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801$as_echo_n "checking for $ac_word... " >&6; }
4802if ${ac_cv_prog_OBJDUMP+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  if test -n "$OBJDUMP"; then
4806  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4807else
4808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809for as_dir in $PATH
4810do
4811  IFS=$as_save_IFS
4812  test -z "$as_dir" && as_dir=.
4813    for ac_exec_ext in '' $ac_executable_extensions; do
4814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817    break 2
4818  fi
4819done
4820  done
4821IFS=$as_save_IFS
4822
4823fi
4824fi
4825OBJDUMP=$ac_cv_prog_OBJDUMP
4826if test -n "$OBJDUMP"; then
4827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4828$as_echo "$OBJDUMP" >&6; }
4829else
4830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831$as_echo "no" >&6; }
4832fi
4833
4834
4835fi
4836if test -z "$ac_cv_prog_OBJDUMP"; then
4837  ac_ct_OBJDUMP=$OBJDUMP
4838  # Extract the first word of "objdump", so it can be a program name with args.
4839set dummy objdump; ac_word=$2
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841$as_echo_n "checking for $ac_word... " >&6; }
4842if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4843  $as_echo_n "(cached) " >&6
4844else
4845  if test -n "$ac_ct_OBJDUMP"; then
4846  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4847else
4848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849for as_dir in $PATH
4850do
4851  IFS=$as_save_IFS
4852  test -z "$as_dir" && as_dir=.
4853    for ac_exec_ext in '' $ac_executable_extensions; do
4854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857    break 2
4858  fi
4859done
4860  done
4861IFS=$as_save_IFS
4862
4863fi
4864fi
4865ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4866if test -n "$ac_ct_OBJDUMP"; then
4867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4868$as_echo "$ac_ct_OBJDUMP" >&6; }
4869else
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871$as_echo "no" >&6; }
4872fi
4873
4874  if test "x$ac_ct_OBJDUMP" = x; then
4875    OBJDUMP="false"
4876  else
4877    case $cross_compiling:$ac_tool_warned in
4878yes:)
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4881ac_tool_warned=yes ;;
4882esac
4883    OBJDUMP=$ac_ct_OBJDUMP
4884  fi
4885else
4886  OBJDUMP="$ac_cv_prog_OBJDUMP"
4887fi
4888
4889test -z "$OBJDUMP" && OBJDUMP=objdump
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4900$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4901if ${lt_cv_deplibs_check_method+:} false; then :
4902  $as_echo_n "(cached) " >&6
4903else
4904  lt_cv_file_magic_cmd='$MAGIC_CMD'
4905lt_cv_file_magic_test_file=
4906lt_cv_deplibs_check_method='unknown'
4907# Need to set the preceding variable on all platforms that support
4908# interlibrary dependencies.
4909# 'none' -- dependencies not supported.
4910# `unknown' -- same as none, but documents that we really don't know.
4911# 'pass_all' -- all dependencies passed with no checks.
4912# 'test_compile' -- check by making test program.
4913# 'file_magic [[regex]]' -- check by looking for files in library path
4914# which responds to the $file_magic_cmd with a given extended regex.
4915# If you have `file' or equivalent on your system and you're not sure
4916# whether `pass_all' will *always* work, you probably want this one.
4917
4918case $host_os in
4919aix[4-9]*)
4920  lt_cv_deplibs_check_method=pass_all
4921  ;;
4922
4923beos*)
4924  lt_cv_deplibs_check_method=pass_all
4925  ;;
4926
4927bsdi[45]*)
4928  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4929  lt_cv_file_magic_cmd='/usr/bin/file -L'
4930  lt_cv_file_magic_test_file=/shlib/libc.so
4931  ;;
4932
4933cygwin*)
4934  # func_win32_libid is a shell function defined in ltmain.sh
4935  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4936  lt_cv_file_magic_cmd='func_win32_libid'
4937  ;;
4938
4939mingw* | pw32*)
4940  # Base MSYS/MinGW do not provide the 'file' command needed by
4941  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4942  # unless we find 'file', for example because we are cross-compiling.
4943  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4944  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4945    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4946    lt_cv_file_magic_cmd='func_win32_libid'
4947  else
4948    # Keep this pattern in sync with the one in func_win32_libid.
4949    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4950    lt_cv_file_magic_cmd='$OBJDUMP -f'
4951  fi
4952  ;;
4953
4954cegcc*)
4955  # use the weaker test based on 'objdump'. See mingw*.
4956  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4957  lt_cv_file_magic_cmd='$OBJDUMP -f'
4958  ;;
4959
4960darwin* | rhapsody*)
4961  lt_cv_deplibs_check_method=pass_all
4962  ;;
4963
4964freebsd* | dragonfly*)
4965  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4966    case $host_cpu in
4967    i*86 )
4968      # Not sure whether the presence of OpenBSD here was a mistake.
4969      # Let's accept both of them until this is cleared up.
4970      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4971      lt_cv_file_magic_cmd=/usr/bin/file
4972      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4973      ;;
4974    esac
4975  else
4976    lt_cv_deplibs_check_method=pass_all
4977  fi
4978  ;;
4979
4980gnu*)
4981  lt_cv_deplibs_check_method=pass_all
4982  ;;
4983
4984haiku*)
4985  lt_cv_deplibs_check_method=pass_all
4986  ;;
4987
4988hpux10.20* | hpux11*)
4989  lt_cv_file_magic_cmd=/usr/bin/file
4990  case $host_cpu in
4991  ia64*)
4992    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4993    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4994    ;;
4995  hppa*64*)
4996    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]'
4997    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4998    ;;
4999  *)
5000    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5001    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5002    ;;
5003  esac
5004  ;;
5005
5006interix[3-9]*)
5007  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5008  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5009  ;;
5010
5011irix5* | irix6* | nonstopux*)
5012  case $LD in
5013  *-32|*"-32 ") libmagic=32-bit;;
5014  *-n32|*"-n32 ") libmagic=N32;;
5015  *-64|*"-64 ") libmagic=64-bit;;
5016  *) libmagic=never-match;;
5017  esac
5018  lt_cv_deplibs_check_method=pass_all
5019  ;;
5020
5021# This must be Linux ELF.
5022linux* | k*bsd*-gnu | kopensolaris*-gnu)
5023  lt_cv_deplibs_check_method=pass_all
5024  ;;
5025
5026netbsd*)
5027  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5028    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5029  else
5030    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5031  fi
5032  ;;
5033
5034newos6*)
5035  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5036  lt_cv_file_magic_cmd=/usr/bin/file
5037  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5038  ;;
5039
5040*nto* | *qnx*)
5041  lt_cv_deplibs_check_method=pass_all
5042  ;;
5043
5044openbsd*)
5045  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5046    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5047  else
5048    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5049  fi
5050  ;;
5051
5052osf3* | osf4* | osf5*)
5053  lt_cv_deplibs_check_method=pass_all
5054  ;;
5055
5056rdos*)
5057  lt_cv_deplibs_check_method=pass_all
5058  ;;
5059
5060solaris*)
5061  lt_cv_deplibs_check_method=pass_all
5062  ;;
5063
5064sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5065  lt_cv_deplibs_check_method=pass_all
5066  ;;
5067
5068sysv4 | sysv4.3*)
5069  case $host_vendor in
5070  motorola)
5071    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]'
5072    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5073    ;;
5074  ncr)
5075    lt_cv_deplibs_check_method=pass_all
5076    ;;
5077  sequent)
5078    lt_cv_file_magic_cmd='/bin/file'
5079    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5080    ;;
5081  sni)
5082    lt_cv_file_magic_cmd='/bin/file'
5083    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5084    lt_cv_file_magic_test_file=/lib/libc.so
5085    ;;
5086  siemens)
5087    lt_cv_deplibs_check_method=pass_all
5088    ;;
5089  pc)
5090    lt_cv_deplibs_check_method=pass_all
5091    ;;
5092  esac
5093  ;;
5094
5095tpf*)
5096  lt_cv_deplibs_check_method=pass_all
5097  ;;
5098esac
5099
5100fi
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5102$as_echo "$lt_cv_deplibs_check_method" >&6; }
5103
5104file_magic_glob=
5105want_nocaseglob=no
5106if test "$build" = "$host"; then
5107  case $host_os in
5108  mingw* | pw32*)
5109    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5110      want_nocaseglob=yes
5111    else
5112      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5113    fi
5114    ;;
5115  esac
5116fi
5117
5118file_magic_cmd=$lt_cv_file_magic_cmd
5119deplibs_check_method=$lt_cv_deplibs_check_method
5120test -z "$deplibs_check_method" && deplibs_check_method=unknown
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143if test -n "$ac_tool_prefix"; then
5144  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5145set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147$as_echo_n "checking for $ac_word... " >&6; }
5148if ${ac_cv_prog_DLLTOOL+:} false; then :
5149  $as_echo_n "(cached) " >&6
5150else
5151  if test -n "$DLLTOOL"; then
5152  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5153else
5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155for as_dir in $PATH
5156do
5157  IFS=$as_save_IFS
5158  test -z "$as_dir" && as_dir=.
5159    for ac_exec_ext in '' $ac_executable_extensions; do
5160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163    break 2
5164  fi
5165done
5166  done
5167IFS=$as_save_IFS
5168
5169fi
5170fi
5171DLLTOOL=$ac_cv_prog_DLLTOOL
5172if test -n "$DLLTOOL"; then
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5174$as_echo "$DLLTOOL" >&6; }
5175else
5176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177$as_echo "no" >&6; }
5178fi
5179
5180
5181fi
5182if test -z "$ac_cv_prog_DLLTOOL"; then
5183  ac_ct_DLLTOOL=$DLLTOOL
5184  # Extract the first word of "dlltool", so it can be a program name with args.
5185set dummy dlltool; ac_word=$2
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187$as_echo_n "checking for $ac_word... " >&6; }
5188if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5189  $as_echo_n "(cached) " >&6
5190else
5191  if test -n "$ac_ct_DLLTOOL"; then
5192  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5193else
5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197  IFS=$as_save_IFS
5198  test -z "$as_dir" && as_dir=.
5199    for ac_exec_ext in '' $ac_executable_extensions; do
5200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203    break 2
5204  fi
5205done
5206  done
5207IFS=$as_save_IFS
5208
5209fi
5210fi
5211ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5212if test -n "$ac_ct_DLLTOOL"; then
5213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5214$as_echo "$ac_ct_DLLTOOL" >&6; }
5215else
5216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217$as_echo "no" >&6; }
5218fi
5219
5220  if test "x$ac_ct_DLLTOOL" = x; then
5221    DLLTOOL="false"
5222  else
5223    case $cross_compiling:$ac_tool_warned in
5224yes:)
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227ac_tool_warned=yes ;;
5228esac
5229    DLLTOOL=$ac_ct_DLLTOOL
5230  fi
5231else
5232  DLLTOOL="$ac_cv_prog_DLLTOOL"
5233fi
5234
5235test -z "$DLLTOOL" && DLLTOOL=dlltool
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5247$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5248if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5249  $as_echo_n "(cached) " >&6
5250else
5251  lt_cv_sharedlib_from_linklib_cmd='unknown'
5252
5253case $host_os in
5254cygwin* | mingw* | pw32* | cegcc*)
5255  # two different shell functions defined in ltmain.sh
5256  # decide which to use based on capabilities of $DLLTOOL
5257  case `$DLLTOOL --help 2>&1` in
5258  *--identify-strict*)
5259    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5260    ;;
5261  *)
5262    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5263    ;;
5264  esac
5265  ;;
5266*)
5267  # fallback: assume linklib IS sharedlib
5268  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5269  ;;
5270esac
5271
5272fi
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5274$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5275sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5276test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5277
5278
5279
5280
5281
5282
5283
5284
5285if test -n "$ac_tool_prefix"; then
5286  for ac_prog in ar
5287  do
5288    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5289set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291$as_echo_n "checking for $ac_word... " >&6; }
5292if ${ac_cv_prog_AR+:} false; then :
5293  $as_echo_n "(cached) " >&6
5294else
5295  if test -n "$AR"; then
5296  ac_cv_prog_AR="$AR" # Let the user override the test.
5297else
5298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301  IFS=$as_save_IFS
5302  test -z "$as_dir" && as_dir=.
5303    for ac_exec_ext in '' $ac_executable_extensions; do
5304  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307    break 2
5308  fi
5309done
5310  done
5311IFS=$as_save_IFS
5312
5313fi
5314fi
5315AR=$ac_cv_prog_AR
5316if test -n "$AR"; then
5317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5318$as_echo "$AR" >&6; }
5319else
5320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }
5322fi
5323
5324
5325    test -n "$AR" && break
5326  done
5327fi
5328if test -z "$AR"; then
5329  ac_ct_AR=$AR
5330  for ac_prog in ar
5331do
5332  # Extract the first word of "$ac_prog", so it can be a program name with args.
5333set dummy $ac_prog; ac_word=$2
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335$as_echo_n "checking for $ac_word... " >&6; }
5336if ${ac_cv_prog_ac_ct_AR+:} false; then :
5337  $as_echo_n "(cached) " >&6
5338else
5339  if test -n "$ac_ct_AR"; then
5340  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5341else
5342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH
5344do
5345  IFS=$as_save_IFS
5346  test -z "$as_dir" && as_dir=.
5347    for ac_exec_ext in '' $ac_executable_extensions; do
5348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349    ac_cv_prog_ac_ct_AR="$ac_prog"
5350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351    break 2
5352  fi
5353done
5354  done
5355IFS=$as_save_IFS
5356
5357fi
5358fi
5359ac_ct_AR=$ac_cv_prog_ac_ct_AR
5360if test -n "$ac_ct_AR"; then
5361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5362$as_echo "$ac_ct_AR" >&6; }
5363else
5364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365$as_echo "no" >&6; }
5366fi
5367
5368
5369  test -n "$ac_ct_AR" && break
5370done
5371
5372  if test "x$ac_ct_AR" = x; then
5373    AR="false"
5374  else
5375    case $cross_compiling:$ac_tool_warned in
5376yes:)
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5379ac_tool_warned=yes ;;
5380esac
5381    AR=$ac_ct_AR
5382  fi
5383fi
5384
5385: ${AR=ar}
5386: ${AR_FLAGS=cru}
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5399$as_echo_n "checking for archiver @FILE support... " >&6; }
5400if ${lt_cv_ar_at_file+:} false; then :
5401  $as_echo_n "(cached) " >&6
5402else
5403  lt_cv_ar_at_file=no
5404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405/* end confdefs.h.  */
5406
5407int
5408main ()
5409{
5410
5411  ;
5412  return 0;
5413}
5414_ACEOF
5415if ac_fn_c_try_compile "$LINENO"; then :
5416  echo conftest.$ac_objext > conftest.lst
5417      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5418      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5419  (eval $lt_ar_try) 2>&5
5420  ac_status=$?
5421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5422  test $ac_status = 0; }
5423      if test "$ac_status" -eq 0; then
5424	# Ensure the archiver fails upon bogus file names.
5425	rm -f conftest.$ac_objext libconftest.a
5426	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5427  (eval $lt_ar_try) 2>&5
5428  ac_status=$?
5429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5430  test $ac_status = 0; }
5431	if test "$ac_status" -ne 0; then
5432          lt_cv_ar_at_file=@
5433        fi
5434      fi
5435      rm -f conftest.* libconftest.a
5436
5437fi
5438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439
5440fi
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5442$as_echo "$lt_cv_ar_at_file" >&6; }
5443
5444if test "x$lt_cv_ar_at_file" = xno; then
5445  archiver_list_spec=
5446else
5447  archiver_list_spec=$lt_cv_ar_at_file
5448fi
5449
5450
5451
5452
5453
5454
5455
5456if test -n "$ac_tool_prefix"; then
5457  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5458set dummy ${ac_tool_prefix}strip; ac_word=$2
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460$as_echo_n "checking for $ac_word... " >&6; }
5461if ${ac_cv_prog_STRIP+:} false; then :
5462  $as_echo_n "(cached) " >&6
5463else
5464  if test -n "$STRIP"; then
5465  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470  IFS=$as_save_IFS
5471  test -z "$as_dir" && as_dir=.
5472    for ac_exec_ext in '' $ac_executable_extensions; do
5473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476    break 2
5477  fi
5478done
5479  done
5480IFS=$as_save_IFS
5481
5482fi
5483fi
5484STRIP=$ac_cv_prog_STRIP
5485if test -n "$STRIP"; then
5486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5487$as_echo "$STRIP" >&6; }
5488else
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490$as_echo "no" >&6; }
5491fi
5492
5493
5494fi
5495if test -z "$ac_cv_prog_STRIP"; then
5496  ac_ct_STRIP=$STRIP
5497  # Extract the first word of "strip", so it can be a program name with args.
5498set dummy strip; ac_word=$2
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500$as_echo_n "checking for $ac_word... " >&6; }
5501if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5502  $as_echo_n "(cached) " >&6
5503else
5504  if test -n "$ac_ct_STRIP"; then
5505  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510  IFS=$as_save_IFS
5511  test -z "$as_dir" && as_dir=.
5512    for ac_exec_ext in '' $ac_executable_extensions; do
5513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514    ac_cv_prog_ac_ct_STRIP="strip"
5515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516    break 2
5517  fi
5518done
5519  done
5520IFS=$as_save_IFS
5521
5522fi
5523fi
5524ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5525if test -n "$ac_ct_STRIP"; then
5526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5527$as_echo "$ac_ct_STRIP" >&6; }
5528else
5529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530$as_echo "no" >&6; }
5531fi
5532
5533  if test "x$ac_ct_STRIP" = x; then
5534    STRIP=":"
5535  else
5536    case $cross_compiling:$ac_tool_warned in
5537yes:)
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5540ac_tool_warned=yes ;;
5541esac
5542    STRIP=$ac_ct_STRIP
5543  fi
5544else
5545  STRIP="$ac_cv_prog_STRIP"
5546fi
5547
5548test -z "$STRIP" && STRIP=:
5549
5550
5551
5552
5553
5554
5555if test -n "$ac_tool_prefix"; then
5556  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5557set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559$as_echo_n "checking for $ac_word... " >&6; }
5560if ${ac_cv_prog_RANLIB+:} false; then :
5561  $as_echo_n "(cached) " >&6
5562else
5563  if test -n "$RANLIB"; then
5564  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5565else
5566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567for as_dir in $PATH
5568do
5569  IFS=$as_save_IFS
5570  test -z "$as_dir" && as_dir=.
5571    for ac_exec_ext in '' $ac_executable_extensions; do
5572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575    break 2
5576  fi
5577done
5578  done
5579IFS=$as_save_IFS
5580
5581fi
5582fi
5583RANLIB=$ac_cv_prog_RANLIB
5584if test -n "$RANLIB"; then
5585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5586$as_echo "$RANLIB" >&6; }
5587else
5588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589$as_echo "no" >&6; }
5590fi
5591
5592
5593fi
5594if test -z "$ac_cv_prog_RANLIB"; then
5595  ac_ct_RANLIB=$RANLIB
5596  # Extract the first word of "ranlib", so it can be a program name with args.
5597set dummy ranlib; ac_word=$2
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599$as_echo_n "checking for $ac_word... " >&6; }
5600if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5601  $as_echo_n "(cached) " >&6
5602else
5603  if test -n "$ac_ct_RANLIB"; then
5604  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5605else
5606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607for as_dir in $PATH
5608do
5609  IFS=$as_save_IFS
5610  test -z "$as_dir" && as_dir=.
5611    for ac_exec_ext in '' $ac_executable_extensions; do
5612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613    ac_cv_prog_ac_ct_RANLIB="ranlib"
5614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615    break 2
5616  fi
5617done
5618  done
5619IFS=$as_save_IFS
5620
5621fi
5622fi
5623ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5624if test -n "$ac_ct_RANLIB"; then
5625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5626$as_echo "$ac_ct_RANLIB" >&6; }
5627else
5628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629$as_echo "no" >&6; }
5630fi
5631
5632  if test "x$ac_ct_RANLIB" = x; then
5633    RANLIB=":"
5634  else
5635    case $cross_compiling:$ac_tool_warned in
5636yes:)
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5639ac_tool_warned=yes ;;
5640esac
5641    RANLIB=$ac_ct_RANLIB
5642  fi
5643else
5644  RANLIB="$ac_cv_prog_RANLIB"
5645fi
5646
5647test -z "$RANLIB" && RANLIB=:
5648
5649
5650
5651
5652
5653
5654# Determine commands to create old-style static archives.
5655old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5656old_postinstall_cmds='chmod 644 $oldlib'
5657old_postuninstall_cmds=
5658
5659if test -n "$RANLIB"; then
5660  case $host_os in
5661  openbsd*)
5662    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5663    ;;
5664  *)
5665    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5666    ;;
5667  esac
5668  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5669fi
5670
5671case $host_os in
5672  darwin*)
5673    lock_old_archive_extraction=yes ;;
5674  *)
5675    lock_old_archive_extraction=no ;;
5676esac
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716# If no C compiler was specified, use CC.
5717LTCC=${LTCC-"$CC"}
5718
5719# If no C compiler flags were specified, use CFLAGS.
5720LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5721
5722# Allow CC to be a program name with arguments.
5723compiler=$CC
5724
5725
5726# Check for command to grab the raw symbol name followed by C symbol from nm.
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5728$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5729if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5730  $as_echo_n "(cached) " >&6
5731else
5732
5733# These are sane defaults that work on at least a few old systems.
5734# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5735
5736# Character class describing NM global symbol codes.
5737symcode='[BCDEGRST]'
5738
5739# Regexp to match symbols that can be accessed directly from C.
5740sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5741
5742# Define system-specific variables.
5743case $host_os in
5744aix*)
5745  symcode='[BCDT]'
5746  ;;
5747cygwin* | mingw* | pw32* | cegcc*)
5748  symcode='[ABCDGISTW]'
5749  ;;
5750hpux*)
5751  if test "$host_cpu" = ia64; then
5752    symcode='[ABCDEGRST]'
5753  fi
5754  ;;
5755irix* | nonstopux*)
5756  symcode='[BCDEGRST]'
5757  ;;
5758osf*)
5759  symcode='[BCDEGQRST]'
5760  ;;
5761solaris*)
5762  symcode='[BDRT]'
5763  ;;
5764sco3.2v5*)
5765  symcode='[DT]'
5766  ;;
5767sysv4.2uw2*)
5768  symcode='[DT]'
5769  ;;
5770sysv5* | sco5v6* | unixware* | OpenUNIX*)
5771  symcode='[ABDT]'
5772  ;;
5773sysv4)
5774  symcode='[DFNSTU]'
5775  ;;
5776esac
5777
5778# If we're using GNU nm, then use its standard symbol codes.
5779case `$NM -V 2>&1` in
5780*GNU* | *'with BFD'*)
5781  symcode='[ABCDGIRSTW]' ;;
5782esac
5783
5784# Transform an extracted symbol line into a proper C declaration.
5785# Some systems (esp. on ia64) link data and code symbols differently,
5786# so use this general approach.
5787lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5788
5789# Transform an extracted symbol line into symbol name and symbol address
5790lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5791lt_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'"
5792
5793# Handle CRLF in mingw tool chain
5794opt_cr=
5795case $build_os in
5796mingw*)
5797  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5798  ;;
5799esac
5800
5801# Try without a prefix underscore, then with it.
5802for ac_symprfx in "" "_"; do
5803
5804  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5805  symxfrm="\\1 $ac_symprfx\\2 \\2"
5806
5807  # Write the raw and C identifiers.
5808  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5809    # Fake it for dumpbin and say T for any non-static function
5810    # and D for any global variable.
5811    # Also find C++ and __fastcall symbols from MSVC++,
5812    # which start with @ or ?.
5813    lt_cv_sys_global_symbol_pipe="$AWK '"\
5814"     {last_section=section; section=\$ 3};"\
5815"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5816"     \$ 0!~/External *\|/{next};"\
5817"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5818"     {if(hide[section]) next};"\
5819"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5820"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5821"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5822"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5823"     ' prfx=^$ac_symprfx"
5824  else
5825    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5826  fi
5827  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5828
5829  # Check to see that the pipe works correctly.
5830  pipe_works=no
5831
5832  rm -f conftest*
5833  cat > conftest.$ac_ext <<_LT_EOF
5834#ifdef __cplusplus
5835extern "C" {
5836#endif
5837char nm_test_var;
5838void nm_test_func(void);
5839void nm_test_func(void){}
5840#ifdef __cplusplus
5841}
5842#endif
5843int main(){nm_test_var='a';nm_test_func();return(0);}
5844_LT_EOF
5845
5846  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5847  (eval $ac_compile) 2>&5
5848  ac_status=$?
5849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850  test $ac_status = 0; }; then
5851    # Now try to grab the symbols.
5852    nlist=conftest.nm
5853    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5854  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5855  ac_status=$?
5856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5857  test $ac_status = 0; } && test -s "$nlist"; then
5858      # Try sorting and uniquifying the output.
5859      if sort "$nlist" | uniq > "$nlist"T; then
5860	mv -f "$nlist"T "$nlist"
5861      else
5862	rm -f "$nlist"T
5863      fi
5864
5865      # Make sure that we snagged all the symbols we need.
5866      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5867	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5868	  cat <<_LT_EOF > conftest.$ac_ext
5869/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5870#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5871/* DATA imports from DLLs on WIN32 con't be const, because runtime
5872   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5873# define LT_DLSYM_CONST
5874#elif defined(__osf__)
5875/* This system does not cope well with relocations in const data.  */
5876# define LT_DLSYM_CONST
5877#else
5878# define LT_DLSYM_CONST const
5879#endif
5880
5881#ifdef __cplusplus
5882extern "C" {
5883#endif
5884
5885_LT_EOF
5886	  # Now generate the symbol file.
5887	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5888
5889	  cat <<_LT_EOF >> conftest.$ac_ext
5890
5891/* The mapping between symbol names and symbols.  */
5892LT_DLSYM_CONST struct {
5893  const char *name;
5894  void       *address;
5895}
5896lt__PROGRAM__LTX_preloaded_symbols[] =
5897{
5898  { "@PROGRAM@", (void *) 0 },
5899_LT_EOF
5900	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5901	  cat <<\_LT_EOF >> conftest.$ac_ext
5902  {0, (void *) 0}
5903};
5904
5905/* This works around a problem in FreeBSD linker */
5906#ifdef FREEBSD_WORKAROUND
5907static const void *lt_preloaded_setup() {
5908  return lt__PROGRAM__LTX_preloaded_symbols;
5909}
5910#endif
5911
5912#ifdef __cplusplus
5913}
5914#endif
5915_LT_EOF
5916	  # Now try linking the two files.
5917	  mv conftest.$ac_objext conftstm.$ac_objext
5918	  lt_globsym_save_LIBS=$LIBS
5919	  lt_globsym_save_CFLAGS=$CFLAGS
5920	  LIBS="conftstm.$ac_objext"
5921	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5922	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5923  (eval $ac_link) 2>&5
5924  ac_status=$?
5925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5926  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5927	    pipe_works=yes
5928	  fi
5929	  LIBS=$lt_globsym_save_LIBS
5930	  CFLAGS=$lt_globsym_save_CFLAGS
5931	else
5932	  echo "cannot find nm_test_func in $nlist" >&5
5933	fi
5934      else
5935	echo "cannot find nm_test_var in $nlist" >&5
5936      fi
5937    else
5938      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5939    fi
5940  else
5941    echo "$progname: failed program was:" >&5
5942    cat conftest.$ac_ext >&5
5943  fi
5944  rm -rf conftest* conftst*
5945
5946  # Do not use the global_symbol_pipe unless it works.
5947  if test "$pipe_works" = yes; then
5948    break
5949  else
5950    lt_cv_sys_global_symbol_pipe=
5951  fi
5952done
5953
5954fi
5955
5956if test -z "$lt_cv_sys_global_symbol_pipe"; then
5957  lt_cv_sys_global_symbol_to_cdecl=
5958fi
5959if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5961$as_echo "failed" >&6; }
5962else
5963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5964$as_echo "ok" >&6; }
5965fi
5966
5967# Response file support.
5968if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5969  nm_file_list_spec='@'
5970elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5971  nm_file_list_spec='@'
5972fi
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6001$as_echo_n "checking for sysroot... " >&6; }
6002
6003# Check whether --with-sysroot was given.
6004if test "${with_sysroot+set}" = set; then :
6005  withval=$with_sysroot;
6006else
6007  with_sysroot=no
6008fi
6009
6010
6011lt_sysroot=
6012case ${with_sysroot} in #(
6013 yes)
6014   if test "$GCC" = yes; then
6015     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6016   fi
6017   ;; #(
6018 /*)
6019   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6020   ;; #(
6021 no|'')
6022   ;; #(
6023 *)
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6025$as_echo "${with_sysroot}" >&6; }
6026   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6027   ;;
6028esac
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6031$as_echo "${lt_sysroot:-no}" >&6; }
6032
6033
6034
6035
6036
6037# Check whether --enable-libtool-lock was given.
6038if test "${enable_libtool_lock+set}" = set; then :
6039  enableval=$enable_libtool_lock;
6040fi
6041
6042test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6043
6044# Some flags need to be propagated to the compiler or linker for good
6045# libtool support.
6046case $host in
6047ia64-*-hpux*)
6048  # Find out which ABI we are using.
6049  echo 'int i;' > conftest.$ac_ext
6050  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6051  (eval $ac_compile) 2>&5
6052  ac_status=$?
6053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054  test $ac_status = 0; }; then
6055    case `/usr/bin/file conftest.$ac_objext` in
6056      *ELF-32*)
6057	HPUX_IA64_MODE="32"
6058	;;
6059      *ELF-64*)
6060	HPUX_IA64_MODE="64"
6061	;;
6062    esac
6063  fi
6064  rm -rf conftest*
6065  ;;
6066*-*-irix6*)
6067  # Find out which ABI we are using.
6068  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6069  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6070  (eval $ac_compile) 2>&5
6071  ac_status=$?
6072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6073  test $ac_status = 0; }; then
6074    if test "$lt_cv_prog_gnu_ld" = yes; then
6075      case `/usr/bin/file conftest.$ac_objext` in
6076	*32-bit*)
6077	  LD="${LD-ld} -melf32bsmip"
6078	  ;;
6079	*N32*)
6080	  LD="${LD-ld} -melf32bmipn32"
6081	  ;;
6082	*64-bit*)
6083	  LD="${LD-ld} -melf64bmip"
6084	;;
6085      esac
6086    else
6087      case `/usr/bin/file conftest.$ac_objext` in
6088	*32-bit*)
6089	  LD="${LD-ld} -32"
6090	  ;;
6091	*N32*)
6092	  LD="${LD-ld} -n32"
6093	  ;;
6094	*64-bit*)
6095	  LD="${LD-ld} -64"
6096	  ;;
6097      esac
6098    fi
6099  fi
6100  rm -rf conftest*
6101  ;;
6102
6103x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6104s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6105  # Find out which ABI we are using.
6106  echo 'int i;' > conftest.$ac_ext
6107  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6108  (eval $ac_compile) 2>&5
6109  ac_status=$?
6110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111  test $ac_status = 0; }; then
6112    case `/usr/bin/file conftest.o` in
6113      *32-bit*)
6114	case $host in
6115	  x86_64-*kfreebsd*-gnu)
6116	    LD="${LD-ld} -m elf_i386_fbsd"
6117	    ;;
6118	  x86_64-*linux*)
6119	    LD="${LD-ld} -m elf_i386"
6120	    ;;
6121	  ppc64-*linux*|powerpc64-*linux*)
6122	    LD="${LD-ld} -m elf32ppclinux"
6123	    ;;
6124	  s390x-*linux*)
6125	    LD="${LD-ld} -m elf_s390"
6126	    ;;
6127	  sparc64-*linux*)
6128	    LD="${LD-ld} -m elf32_sparc"
6129	    ;;
6130	esac
6131	;;
6132      *64-bit*)
6133	case $host in
6134	  x86_64-*kfreebsd*-gnu)
6135	    LD="${LD-ld} -m elf_x86_64_fbsd"
6136	    ;;
6137	  x86_64-*linux*)
6138	    LD="${LD-ld} -m elf_x86_64"
6139	    ;;
6140	  ppc*-*linux*|powerpc*-*linux*)
6141	    LD="${LD-ld} -m elf64ppc"
6142	    ;;
6143	  s390*-*linux*|s390*-*tpf*)
6144	    LD="${LD-ld} -m elf64_s390"
6145	    ;;
6146	  sparc*-*linux*)
6147	    LD="${LD-ld} -m elf64_sparc"
6148	    ;;
6149	esac
6150	;;
6151    esac
6152  fi
6153  rm -rf conftest*
6154  ;;
6155
6156*-*-sco3.2v5*)
6157  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6158  SAVE_CFLAGS="$CFLAGS"
6159  CFLAGS="$CFLAGS -belf"
6160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6161$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6162if ${lt_cv_cc_needs_belf+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  ac_ext=c
6166ac_cpp='$CPP $CPPFLAGS'
6167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
6171     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h.  */
6173
6174int
6175main ()
6176{
6177
6178  ;
6179  return 0;
6180}
6181_ACEOF
6182if ac_fn_c_try_link "$LINENO"; then :
6183  lt_cv_cc_needs_belf=yes
6184else
6185  lt_cv_cc_needs_belf=no
6186fi
6187rm -f core conftest.err conftest.$ac_objext \
6188    conftest$ac_exeext conftest.$ac_ext
6189     ac_ext=c
6190ac_cpp='$CPP $CPPFLAGS'
6191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6197$as_echo "$lt_cv_cc_needs_belf" >&6; }
6198  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6199    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6200    CFLAGS="$SAVE_CFLAGS"
6201  fi
6202  ;;
6203sparc*-*solaris*)
6204  # Find out which ABI we are using.
6205  echo 'int i;' > conftest.$ac_ext
6206  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6207  (eval $ac_compile) 2>&5
6208  ac_status=$?
6209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210  test $ac_status = 0; }; then
6211    case `/usr/bin/file conftest.o` in
6212    *64-bit*)
6213      case $lt_cv_prog_gnu_ld in
6214      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6215      *)
6216	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6217	  LD="${LD-ld} -64"
6218	fi
6219	;;
6220      esac
6221      ;;
6222    esac
6223  fi
6224  rm -rf conftest*
6225  ;;
6226esac
6227
6228need_locks="$enable_libtool_lock"
6229
6230if test -n "$ac_tool_prefix"; then
6231  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6232set dummy ${ac_tool_prefix}mt; ac_word=$2
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234$as_echo_n "checking for $ac_word... " >&6; }
6235if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238  if test -n "$MANIFEST_TOOL"; then
6239  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244  IFS=$as_save_IFS
6245  test -z "$as_dir" && as_dir=.
6246    for ac_exec_ext in '' $ac_executable_extensions; do
6247  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250    break 2
6251  fi
6252done
6253  done
6254IFS=$as_save_IFS
6255
6256fi
6257fi
6258MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6259if test -n "$MANIFEST_TOOL"; then
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6261$as_echo "$MANIFEST_TOOL" >&6; }
6262else
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264$as_echo "no" >&6; }
6265fi
6266
6267
6268fi
6269if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6270  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6271  # Extract the first word of "mt", so it can be a program name with args.
6272set dummy mt; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278  if test -n "$ac_ct_MANIFEST_TOOL"; then
6279  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284  IFS=$as_save_IFS
6285  test -z "$as_dir" && as_dir=.
6286    for ac_exec_ext in '' $ac_executable_extensions; do
6287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290    break 2
6291  fi
6292done
6293  done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6299if test -n "$ac_ct_MANIFEST_TOOL"; then
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6301$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6302else
6303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6308    MANIFEST_TOOL=":"
6309  else
6310    case $cross_compiling:$ac_tool_warned in
6311yes:)
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6314ac_tool_warned=yes ;;
6315esac
6316    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6317  fi
6318else
6319  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6320fi
6321
6322test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6324$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6325if ${lt_cv_path_mainfest_tool+:} false; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  lt_cv_path_mainfest_tool=no
6329  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6330  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6331  cat conftest.err >&5
6332  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6333    lt_cv_path_mainfest_tool=yes
6334  fi
6335  rm -f conftest*
6336fi
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6338$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6339if test "x$lt_cv_path_mainfest_tool" != xyes; then
6340  MANIFEST_TOOL=:
6341fi
6342
6343
6344
6345
6346
6347
6348  case $host_os in
6349    rhapsody* | darwin*)
6350    if test -n "$ac_tool_prefix"; then
6351  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6352set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354$as_echo_n "checking for $ac_word... " >&6; }
6355if ${ac_cv_prog_DSYMUTIL+:} false; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  if test -n "$DSYMUTIL"; then
6359  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6360else
6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364  IFS=$as_save_IFS
6365  test -z "$as_dir" && as_dir=.
6366    for ac_exec_ext in '' $ac_executable_extensions; do
6367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370    break 2
6371  fi
6372done
6373  done
6374IFS=$as_save_IFS
6375
6376fi
6377fi
6378DSYMUTIL=$ac_cv_prog_DSYMUTIL
6379if test -n "$DSYMUTIL"; then
6380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6381$as_echo "$DSYMUTIL" >&6; }
6382else
6383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384$as_echo "no" >&6; }
6385fi
6386
6387
6388fi
6389if test -z "$ac_cv_prog_DSYMUTIL"; then
6390  ac_ct_DSYMUTIL=$DSYMUTIL
6391  # Extract the first word of "dsymutil", so it can be a program name with args.
6392set dummy dsymutil; ac_word=$2
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394$as_echo_n "checking for $ac_word... " >&6; }
6395if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6396  $as_echo_n "(cached) " >&6
6397else
6398  if test -n "$ac_ct_DSYMUTIL"; then
6399  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404  IFS=$as_save_IFS
6405  test -z "$as_dir" && as_dir=.
6406    for ac_exec_ext in '' $ac_executable_extensions; do
6407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410    break 2
6411  fi
6412done
6413  done
6414IFS=$as_save_IFS
6415
6416fi
6417fi
6418ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6419if test -n "$ac_ct_DSYMUTIL"; then
6420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6421$as_echo "$ac_ct_DSYMUTIL" >&6; }
6422else
6423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424$as_echo "no" >&6; }
6425fi
6426
6427  if test "x$ac_ct_DSYMUTIL" = x; then
6428    DSYMUTIL=":"
6429  else
6430    case $cross_compiling:$ac_tool_warned in
6431yes:)
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434ac_tool_warned=yes ;;
6435esac
6436    DSYMUTIL=$ac_ct_DSYMUTIL
6437  fi
6438else
6439  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6440fi
6441
6442    if test -n "$ac_tool_prefix"; then
6443  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6444set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446$as_echo_n "checking for $ac_word... " >&6; }
6447if ${ac_cv_prog_NMEDIT+:} false; then :
6448  $as_echo_n "(cached) " >&6
6449else
6450  if test -n "$NMEDIT"; then
6451  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6452else
6453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456  IFS=$as_save_IFS
6457  test -z "$as_dir" && as_dir=.
6458    for ac_exec_ext in '' $ac_executable_extensions; do
6459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462    break 2
6463  fi
6464done
6465  done
6466IFS=$as_save_IFS
6467
6468fi
6469fi
6470NMEDIT=$ac_cv_prog_NMEDIT
6471if test -n "$NMEDIT"; then
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6473$as_echo "$NMEDIT" >&6; }
6474else
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476$as_echo "no" >&6; }
6477fi
6478
6479
6480fi
6481if test -z "$ac_cv_prog_NMEDIT"; then
6482  ac_ct_NMEDIT=$NMEDIT
6483  # Extract the first word of "nmedit", so it can be a program name with args.
6484set dummy nmedit; ac_word=$2
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486$as_echo_n "checking for $ac_word... " >&6; }
6487if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  if test -n "$ac_ct_NMEDIT"; then
6491  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496  IFS=$as_save_IFS
6497  test -z "$as_dir" && as_dir=.
6498    for ac_exec_ext in '' $ac_executable_extensions; do
6499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502    break 2
6503  fi
6504done
6505  done
6506IFS=$as_save_IFS
6507
6508fi
6509fi
6510ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6511if test -n "$ac_ct_NMEDIT"; then
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6513$as_echo "$ac_ct_NMEDIT" >&6; }
6514else
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516$as_echo "no" >&6; }
6517fi
6518
6519  if test "x$ac_ct_NMEDIT" = x; then
6520    NMEDIT=":"
6521  else
6522    case $cross_compiling:$ac_tool_warned in
6523yes:)
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526ac_tool_warned=yes ;;
6527esac
6528    NMEDIT=$ac_ct_NMEDIT
6529  fi
6530else
6531  NMEDIT="$ac_cv_prog_NMEDIT"
6532fi
6533
6534    if test -n "$ac_tool_prefix"; then
6535  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6536set dummy ${ac_tool_prefix}lipo; ac_word=$2
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538$as_echo_n "checking for $ac_word... " >&6; }
6539if ${ac_cv_prog_LIPO+:} false; then :
6540  $as_echo_n "(cached) " >&6
6541else
6542  if test -n "$LIPO"; then
6543  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548  IFS=$as_save_IFS
6549  test -z "$as_dir" && as_dir=.
6550    for ac_exec_ext in '' $ac_executable_extensions; do
6551  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554    break 2
6555  fi
6556done
6557  done
6558IFS=$as_save_IFS
6559
6560fi
6561fi
6562LIPO=$ac_cv_prog_LIPO
6563if test -n "$LIPO"; then
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6565$as_echo "$LIPO" >&6; }
6566else
6567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568$as_echo "no" >&6; }
6569fi
6570
6571
6572fi
6573if test -z "$ac_cv_prog_LIPO"; then
6574  ac_ct_LIPO=$LIPO
6575  # Extract the first word of "lipo", so it can be a program name with args.
6576set dummy lipo; ac_word=$2
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578$as_echo_n "checking for $ac_word... " >&6; }
6579if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6580  $as_echo_n "(cached) " >&6
6581else
6582  if test -n "$ac_ct_LIPO"; then
6583  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6584else
6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588  IFS=$as_save_IFS
6589  test -z "$as_dir" && as_dir=.
6590    for ac_exec_ext in '' $ac_executable_extensions; do
6591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592    ac_cv_prog_ac_ct_LIPO="lipo"
6593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594    break 2
6595  fi
6596done
6597  done
6598IFS=$as_save_IFS
6599
6600fi
6601fi
6602ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6603if test -n "$ac_ct_LIPO"; then
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6605$as_echo "$ac_ct_LIPO" >&6; }
6606else
6607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608$as_echo "no" >&6; }
6609fi
6610
6611  if test "x$ac_ct_LIPO" = x; then
6612    LIPO=":"
6613  else
6614    case $cross_compiling:$ac_tool_warned in
6615yes:)
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618ac_tool_warned=yes ;;
6619esac
6620    LIPO=$ac_ct_LIPO
6621  fi
6622else
6623  LIPO="$ac_cv_prog_LIPO"
6624fi
6625
6626    if test -n "$ac_tool_prefix"; then
6627  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6628set dummy ${ac_tool_prefix}otool; ac_word=$2
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630$as_echo_n "checking for $ac_word... " >&6; }
6631if ${ac_cv_prog_OTOOL+:} false; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634  if test -n "$OTOOL"; then
6635  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640  IFS=$as_save_IFS
6641  test -z "$as_dir" && as_dir=.
6642    for ac_exec_ext in '' $ac_executable_extensions; do
6643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646    break 2
6647  fi
6648done
6649  done
6650IFS=$as_save_IFS
6651
6652fi
6653fi
6654OTOOL=$ac_cv_prog_OTOOL
6655if test -n "$OTOOL"; then
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6657$as_echo "$OTOOL" >&6; }
6658else
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660$as_echo "no" >&6; }
6661fi
6662
6663
6664fi
6665if test -z "$ac_cv_prog_OTOOL"; then
6666  ac_ct_OTOOL=$OTOOL
6667  # Extract the first word of "otool", so it can be a program name with args.
6668set dummy otool; ac_word=$2
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670$as_echo_n "checking for $ac_word... " >&6; }
6671if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6672  $as_echo_n "(cached) " >&6
6673else
6674  if test -n "$ac_ct_OTOOL"; then
6675  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680  IFS=$as_save_IFS
6681  test -z "$as_dir" && as_dir=.
6682    for ac_exec_ext in '' $ac_executable_extensions; do
6683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684    ac_cv_prog_ac_ct_OTOOL="otool"
6685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686    break 2
6687  fi
6688done
6689  done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6695if test -n "$ac_ct_OTOOL"; then
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6697$as_echo "$ac_ct_OTOOL" >&6; }
6698else
6699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700$as_echo "no" >&6; }
6701fi
6702
6703  if test "x$ac_ct_OTOOL" = x; then
6704    OTOOL=":"
6705  else
6706    case $cross_compiling:$ac_tool_warned in
6707yes:)
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710ac_tool_warned=yes ;;
6711esac
6712    OTOOL=$ac_ct_OTOOL
6713  fi
6714else
6715  OTOOL="$ac_cv_prog_OTOOL"
6716fi
6717
6718    if test -n "$ac_tool_prefix"; then
6719  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6720set dummy ${ac_tool_prefix}otool64; ac_word=$2
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
6723if ${ac_cv_prog_OTOOL64+:} false; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  if test -n "$OTOOL64"; then
6727  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732  IFS=$as_save_IFS
6733  test -z "$as_dir" && as_dir=.
6734    for ac_exec_ext in '' $ac_executable_extensions; do
6735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738    break 2
6739  fi
6740done
6741  done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746OTOOL64=$ac_cv_prog_OTOOL64
6747if test -n "$OTOOL64"; then
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6749$as_echo "$OTOOL64" >&6; }
6750else
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }
6753fi
6754
6755
6756fi
6757if test -z "$ac_cv_prog_OTOOL64"; then
6758  ac_ct_OTOOL64=$OTOOL64
6759  # Extract the first word of "otool64", so it can be a program name with args.
6760set dummy otool64; ac_word=$2
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
6763if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6764  $as_echo_n "(cached) " >&6
6765else
6766  if test -n "$ac_ct_OTOOL64"; then
6767  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772  IFS=$as_save_IFS
6773  test -z "$as_dir" && as_dir=.
6774    for ac_exec_ext in '' $ac_executable_extensions; do
6775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776    ac_cv_prog_ac_ct_OTOOL64="otool64"
6777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778    break 2
6779  fi
6780done
6781  done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6787if test -n "$ac_ct_OTOOL64"; then
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6789$as_echo "$ac_ct_OTOOL64" >&6; }
6790else
6791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792$as_echo "no" >&6; }
6793fi
6794
6795  if test "x$ac_ct_OTOOL64" = x; then
6796    OTOOL64=":"
6797  else
6798    case $cross_compiling:$ac_tool_warned in
6799yes:)
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802ac_tool_warned=yes ;;
6803esac
6804    OTOOL64=$ac_ct_OTOOL64
6805  fi
6806else
6807  OTOOL64="$ac_cv_prog_OTOOL64"
6808fi
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6837$as_echo_n "checking for -single_module linker flag... " >&6; }
6838if ${lt_cv_apple_cc_single_mod+:} false; then :
6839  $as_echo_n "(cached) " >&6
6840else
6841  lt_cv_apple_cc_single_mod=no
6842      if test -z "${LT_MULTI_MODULE}"; then
6843	# By default we will add the -single_module flag. You can override
6844	# by either setting the environment variable LT_MULTI_MODULE
6845	# non-empty at configure time, or by adding -multi_module to the
6846	# link flags.
6847	rm -rf libconftest.dylib*
6848	echo "int foo(void){return 1;}" > conftest.c
6849	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6850-dynamiclib -Wl,-single_module conftest.c" >&5
6851	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6852	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6853        _lt_result=$?
6854	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6855	  lt_cv_apple_cc_single_mod=yes
6856	else
6857	  cat conftest.err >&5
6858	fi
6859	rm -rf libconftest.dylib*
6860	rm -f conftest.*
6861      fi
6862fi
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6864$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6866$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6867if ${lt_cv_ld_exported_symbols_list+:} false; then :
6868  $as_echo_n "(cached) " >&6
6869else
6870  lt_cv_ld_exported_symbols_list=no
6871      save_LDFLAGS=$LDFLAGS
6872      echo "_main" > conftest.sym
6873      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6874      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876
6877int
6878main ()
6879{
6880
6881  ;
6882  return 0;
6883}
6884_ACEOF
6885if ac_fn_c_try_link "$LINENO"; then :
6886  lt_cv_ld_exported_symbols_list=yes
6887else
6888  lt_cv_ld_exported_symbols_list=no
6889fi
6890rm -f core conftest.err conftest.$ac_objext \
6891    conftest$ac_exeext conftest.$ac_ext
6892	LDFLAGS="$save_LDFLAGS"
6893
6894fi
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6896$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6898$as_echo_n "checking for -force_load linker flag... " >&6; }
6899if ${lt_cv_ld_force_load+:} false; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  lt_cv_ld_force_load=no
6903      cat > conftest.c << _LT_EOF
6904int forced_loaded() { return 2;}
6905_LT_EOF
6906      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6907      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6908      echo "$AR cru libconftest.a conftest.o" >&5
6909      $AR cru libconftest.a conftest.o 2>&5
6910      echo "$RANLIB libconftest.a" >&5
6911      $RANLIB libconftest.a 2>&5
6912      cat > conftest.c << _LT_EOF
6913int main() { return 0;}
6914_LT_EOF
6915      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6916      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6917      _lt_result=$?
6918      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6919	lt_cv_ld_force_load=yes
6920      else
6921	cat conftest.err >&5
6922      fi
6923        rm -f conftest.err libconftest.a conftest conftest.c
6924        rm -rf conftest.dSYM
6925
6926fi
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6928$as_echo "$lt_cv_ld_force_load" >&6; }
6929    case $host_os in
6930    rhapsody* | darwin1.[012])
6931      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6932    darwin1.*)
6933      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6934    darwin*) # darwin 5.x on
6935      # if running on 10.5 or later, the deployment target defaults
6936      # to the OS version, if on x86, and 10.4, the deployment
6937      # target defaults to 10.4. Don't you love it?
6938      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6939	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6940	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6941	10.[012]*)
6942	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6943	10.*)
6944	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6945      esac
6946    ;;
6947  esac
6948    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6949      _lt_dar_single_mod='$single_module'
6950    fi
6951    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6952      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6953    else
6954      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6955    fi
6956    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6957      _lt_dsymutil='~$DSYMUTIL $lib || :'
6958    else
6959      _lt_dsymutil=
6960    fi
6961    ;;
6962  esac
6963
6964ac_ext=c
6965ac_cpp='$CPP $CPPFLAGS'
6966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6970$as_echo_n "checking how to run the C preprocessor... " >&6; }
6971# On Suns, sometimes $CPP names a directory.
6972if test -n "$CPP" && test -d "$CPP"; then
6973  CPP=
6974fi
6975if test -z "$CPP"; then
6976  if ${ac_cv_prog_CPP+:} false; then :
6977  $as_echo_n "(cached) " >&6
6978else
6979      # Double quotes because CPP needs to be expanded
6980    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6981    do
6982      ac_preproc_ok=false
6983for ac_c_preproc_warn_flag in '' yes
6984do
6985  # Use a header file that comes with gcc, so configuring glibc
6986  # with a fresh cross-compiler works.
6987  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6988  # <limits.h> exists even on freestanding compilers.
6989  # On the NeXT, cc -E runs the code through the compiler's parser,
6990  # not just through cpp. "Syntax error" is here to catch this case.
6991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h.  */
6993#ifdef __STDC__
6994# include <limits.h>
6995#else
6996# include <assert.h>
6997#endif
6998		     Syntax error
6999_ACEOF
7000if ac_fn_c_try_cpp "$LINENO"; then :
7001
7002else
7003  # Broken: fails on valid input.
7004continue
7005fi
7006rm -f conftest.err conftest.i conftest.$ac_ext
7007
7008  # OK, works on sane cases.  Now check whether nonexistent headers
7009  # can be detected and how.
7010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011/* end confdefs.h.  */
7012#include <ac_nonexistent.h>
7013_ACEOF
7014if ac_fn_c_try_cpp "$LINENO"; then :
7015  # Broken: success on invalid input.
7016continue
7017else
7018  # Passes both tests.
7019ac_preproc_ok=:
7020break
7021fi
7022rm -f conftest.err conftest.i conftest.$ac_ext
7023
7024done
7025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7026rm -f conftest.i conftest.err conftest.$ac_ext
7027if $ac_preproc_ok; then :
7028  break
7029fi
7030
7031    done
7032    ac_cv_prog_CPP=$CPP
7033
7034fi
7035  CPP=$ac_cv_prog_CPP
7036else
7037  ac_cv_prog_CPP=$CPP
7038fi
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7040$as_echo "$CPP" >&6; }
7041ac_preproc_ok=false
7042for ac_c_preproc_warn_flag in '' yes
7043do
7044  # Use a header file that comes with gcc, so configuring glibc
7045  # with a fresh cross-compiler works.
7046  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047  # <limits.h> exists even on freestanding compilers.
7048  # On the NeXT, cc -E runs the code through the compiler's parser,
7049  # not just through cpp. "Syntax error" is here to catch this case.
7050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052#ifdef __STDC__
7053# include <limits.h>
7054#else
7055# include <assert.h>
7056#endif
7057		     Syntax error
7058_ACEOF
7059if ac_fn_c_try_cpp "$LINENO"; then :
7060
7061else
7062  # Broken: fails on valid input.
7063continue
7064fi
7065rm -f conftest.err conftest.i conftest.$ac_ext
7066
7067  # OK, works on sane cases.  Now check whether nonexistent headers
7068  # can be detected and how.
7069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070/* end confdefs.h.  */
7071#include <ac_nonexistent.h>
7072_ACEOF
7073if ac_fn_c_try_cpp "$LINENO"; then :
7074  # Broken: success on invalid input.
7075continue
7076else
7077  # Passes both tests.
7078ac_preproc_ok=:
7079break
7080fi
7081rm -f conftest.err conftest.i conftest.$ac_ext
7082
7083done
7084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7085rm -f conftest.i conftest.err conftest.$ac_ext
7086if $ac_preproc_ok; then :
7087
7088else
7089  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7091as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7092See \`config.log' for more details" "$LINENO" 5; }
7093fi
7094
7095ac_ext=c
7096ac_cpp='$CPP $CPPFLAGS'
7097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099ac_compiler_gnu=$ac_cv_c_compiler_gnu
7100
7101
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7103$as_echo_n "checking for ANSI C header files... " >&6; }
7104if ${ac_cv_header_stdc+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h.  */
7109#include <stdlib.h>
7110#include <stdarg.h>
7111#include <string.h>
7112#include <float.h>
7113
7114int
7115main ()
7116{
7117
7118  ;
7119  return 0;
7120}
7121_ACEOF
7122if ac_fn_c_try_compile "$LINENO"; then :
7123  ac_cv_header_stdc=yes
7124else
7125  ac_cv_header_stdc=no
7126fi
7127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128
7129if test $ac_cv_header_stdc = yes; then
7130  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132/* end confdefs.h.  */
7133#include <string.h>
7134
7135_ACEOF
7136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7137  $EGREP "memchr" >/dev/null 2>&1; then :
7138
7139else
7140  ac_cv_header_stdc=no
7141fi
7142rm -f conftest*
7143
7144fi
7145
7146if test $ac_cv_header_stdc = yes; then
7147  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h.  */
7150#include <stdlib.h>
7151
7152_ACEOF
7153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7154  $EGREP "free" >/dev/null 2>&1; then :
7155
7156else
7157  ac_cv_header_stdc=no
7158fi
7159rm -f conftest*
7160
7161fi
7162
7163if test $ac_cv_header_stdc = yes; then
7164  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7165  if test "$cross_compiling" = yes; then :
7166  :
7167else
7168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169/* end confdefs.h.  */
7170#include <ctype.h>
7171#include <stdlib.h>
7172#if ((' ' & 0x0FF) == 0x020)
7173# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7174# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7175#else
7176# define ISLOWER(c) \
7177		   (('a' <= (c) && (c) <= 'i') \
7178		     || ('j' <= (c) && (c) <= 'r') \
7179		     || ('s' <= (c) && (c) <= 'z'))
7180# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7181#endif
7182
7183#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7184int
7185main ()
7186{
7187  int i;
7188  for (i = 0; i < 256; i++)
7189    if (XOR (islower (i), ISLOWER (i))
7190	|| toupper (i) != TOUPPER (i))
7191      return 2;
7192  return 0;
7193}
7194_ACEOF
7195if ac_fn_c_try_run "$LINENO"; then :
7196
7197else
7198  ac_cv_header_stdc=no
7199fi
7200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7201  conftest.$ac_objext conftest.beam conftest.$ac_ext
7202fi
7203
7204fi
7205fi
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7207$as_echo "$ac_cv_header_stdc" >&6; }
7208if test $ac_cv_header_stdc = yes; then
7209
7210$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7211
7212fi
7213
7214# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7215for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7216		  inttypes.h stdint.h unistd.h
7217do :
7218  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7219ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7220"
7221if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7222  cat >>confdefs.h <<_ACEOF
7223#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224_ACEOF
7225
7226fi
7227
7228done
7229
7230
7231for ac_header in dlfcn.h
7232do :
7233  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7234"
7235if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7236  cat >>confdefs.h <<_ACEOF
7237#define HAVE_DLFCN_H 1
7238_ACEOF
7239
7240fi
7241
7242done
7243
7244
7245
7246
7247
7248# Set options
7249
7250
7251
7252        enable_dlopen=no
7253
7254
7255  enable_win32_dll=no
7256
7257
7258            # Check whether --enable-shared was given.
7259if test "${enable_shared+set}" = set; then :
7260  enableval=$enable_shared; p=${PACKAGE-default}
7261    case $enableval in
7262    yes) enable_shared=yes ;;
7263    no) enable_shared=no ;;
7264    *)
7265      enable_shared=no
7266      # Look at the argument we got.  We use all the common list separators.
7267      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7268      for pkg in $enableval; do
7269	IFS="$lt_save_ifs"
7270	if test "X$pkg" = "X$p"; then
7271	  enable_shared=yes
7272	fi
7273      done
7274      IFS="$lt_save_ifs"
7275      ;;
7276    esac
7277else
7278  enable_shared=yes
7279fi
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289  # Check whether --enable-static was given.
7290if test "${enable_static+set}" = set; then :
7291  enableval=$enable_static; p=${PACKAGE-default}
7292    case $enableval in
7293    yes) enable_static=yes ;;
7294    no) enable_static=no ;;
7295    *)
7296     enable_static=no
7297      # Look at the argument we got.  We use all the common list separators.
7298      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7299      for pkg in $enableval; do
7300	IFS="$lt_save_ifs"
7301	if test "X$pkg" = "X$p"; then
7302	  enable_static=yes
7303	fi
7304      done
7305      IFS="$lt_save_ifs"
7306      ;;
7307    esac
7308else
7309  enable_static=yes
7310fi
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321# Check whether --with-pic was given.
7322if test "${with_pic+set}" = set; then :
7323  withval=$with_pic; pic_mode="$withval"
7324else
7325  pic_mode=default
7326fi
7327
7328
7329test -z "$pic_mode" && pic_mode=default
7330
7331
7332
7333
7334
7335
7336
7337  # Check whether --enable-fast-install was given.
7338if test "${enable_fast_install+set}" = set; then :
7339  enableval=$enable_fast_install; p=${PACKAGE-default}
7340    case $enableval in
7341    yes) enable_fast_install=yes ;;
7342    no) enable_fast_install=no ;;
7343    *)
7344      enable_fast_install=no
7345      # Look at the argument we got.  We use all the common list separators.
7346      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7347      for pkg in $enableval; do
7348	IFS="$lt_save_ifs"
7349	if test "X$pkg" = "X$p"; then
7350	  enable_fast_install=yes
7351	fi
7352      done
7353      IFS="$lt_save_ifs"
7354      ;;
7355    esac
7356else
7357  enable_fast_install=yes
7358fi
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370# This can be used to rebuild libtool when needed
7371LIBTOOL_DEPS="$ltmain"
7372
7373# Always use our own libtool.
7374LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401test -z "$LN_S" && LN_S="ln -s"
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416if test -n "${ZSH_VERSION+set}" ; then
7417   setopt NO_GLOB_SUBST
7418fi
7419
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7421$as_echo_n "checking for objdir... " >&6; }
7422if ${lt_cv_objdir+:} false; then :
7423  $as_echo_n "(cached) " >&6
7424else
7425  rm -f .libs 2>/dev/null
7426mkdir .libs 2>/dev/null
7427if test -d .libs; then
7428  lt_cv_objdir=.libs
7429else
7430  # MS-DOS does not allow filenames that begin with a dot.
7431  lt_cv_objdir=_libs
7432fi
7433rmdir .libs 2>/dev/null
7434fi
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7436$as_echo "$lt_cv_objdir" >&6; }
7437objdir=$lt_cv_objdir
7438
7439
7440
7441
7442
7443cat >>confdefs.h <<_ACEOF
7444#define LT_OBJDIR "$lt_cv_objdir/"
7445_ACEOF
7446
7447
7448
7449
7450case $host_os in
7451aix3*)
7452  # AIX sometimes has problems with the GCC collect2 program.  For some
7453  # reason, if we set the COLLECT_NAMES environment variable, the problems
7454  # vanish in a puff of smoke.
7455  if test "X${COLLECT_NAMES+set}" != Xset; then
7456    COLLECT_NAMES=
7457    export COLLECT_NAMES
7458  fi
7459  ;;
7460esac
7461
7462# Global variables:
7463ofile=libtool
7464can_build_shared=yes
7465
7466# All known linkers require a `.a' archive for static linking (except MSVC,
7467# which needs '.lib').
7468libext=a
7469
7470with_gnu_ld="$lt_cv_prog_gnu_ld"
7471
7472old_CC="$CC"
7473old_CFLAGS="$CFLAGS"
7474
7475# Set sane defaults for various variables
7476test -z "$CC" && CC=cc
7477test -z "$LTCC" && LTCC=$CC
7478test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7479test -z "$LD" && LD=ld
7480test -z "$ac_objext" && ac_objext=o
7481
7482for cc_temp in $compiler""; do
7483  case $cc_temp in
7484    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7485    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7486    \-*) ;;
7487    *) break;;
7488  esac
7489done
7490cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7491
7492
7493# Only perform the check for file, if the check method requires it
7494test -z "$MAGIC_CMD" && MAGIC_CMD=file
7495case $deplibs_check_method in
7496file_magic*)
7497  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7498    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7499$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7500if ${lt_cv_path_MAGIC_CMD+:} false; then :
7501  $as_echo_n "(cached) " >&6
7502else
7503  case $MAGIC_CMD in
7504[\\/*] |  ?:[\\/]*)
7505  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7506  ;;
7507*)
7508  lt_save_MAGIC_CMD="$MAGIC_CMD"
7509  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7510  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7511  for ac_dir in $ac_dummy; do
7512    IFS="$lt_save_ifs"
7513    test -z "$ac_dir" && ac_dir=.
7514    if test -f $ac_dir/${ac_tool_prefix}file; then
7515      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7516      if test -n "$file_magic_test_file"; then
7517	case $deplibs_check_method in
7518	"file_magic "*)
7519	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7520	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7521	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7522	    $EGREP "$file_magic_regex" > /dev/null; then
7523	    :
7524	  else
7525	    cat <<_LT_EOF 1>&2
7526
7527*** Warning: the command libtool uses to detect shared libraries,
7528*** $file_magic_cmd, produces output that libtool cannot recognize.
7529*** The result is that libtool may fail to recognize shared libraries
7530*** as such.  This will affect the creation of libtool libraries that
7531*** depend on shared libraries, but programs linked with such libtool
7532*** libraries will work regardless of this problem.  Nevertheless, you
7533*** may want to report the problem to your system manager and/or to
7534*** bug-libtool@gnu.org
7535
7536_LT_EOF
7537	  fi ;;
7538	esac
7539      fi
7540      break
7541    fi
7542  done
7543  IFS="$lt_save_ifs"
7544  MAGIC_CMD="$lt_save_MAGIC_CMD"
7545  ;;
7546esac
7547fi
7548
7549MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7550if test -n "$MAGIC_CMD"; then
7551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7552$as_echo "$MAGIC_CMD" >&6; }
7553else
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555$as_echo "no" >&6; }
7556fi
7557
7558
7559
7560
7561
7562if test -z "$lt_cv_path_MAGIC_CMD"; then
7563  if test -n "$ac_tool_prefix"; then
7564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7565$as_echo_n "checking for file... " >&6; }
7566if ${lt_cv_path_MAGIC_CMD+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  case $MAGIC_CMD in
7570[\\/*] |  ?:[\\/]*)
7571  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7572  ;;
7573*)
7574  lt_save_MAGIC_CMD="$MAGIC_CMD"
7575  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7576  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7577  for ac_dir in $ac_dummy; do
7578    IFS="$lt_save_ifs"
7579    test -z "$ac_dir" && ac_dir=.
7580    if test -f $ac_dir/file; then
7581      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7582      if test -n "$file_magic_test_file"; then
7583	case $deplibs_check_method in
7584	"file_magic "*)
7585	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7586	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7587	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7588	    $EGREP "$file_magic_regex" > /dev/null; then
7589	    :
7590	  else
7591	    cat <<_LT_EOF 1>&2
7592
7593*** Warning: the command libtool uses to detect shared libraries,
7594*** $file_magic_cmd, produces output that libtool cannot recognize.
7595*** The result is that libtool may fail to recognize shared libraries
7596*** as such.  This will affect the creation of libtool libraries that
7597*** depend on shared libraries, but programs linked with such libtool
7598*** libraries will work regardless of this problem.  Nevertheless, you
7599*** may want to report the problem to your system manager and/or to
7600*** bug-libtool@gnu.org
7601
7602_LT_EOF
7603	  fi ;;
7604	esac
7605      fi
7606      break
7607    fi
7608  done
7609  IFS="$lt_save_ifs"
7610  MAGIC_CMD="$lt_save_MAGIC_CMD"
7611  ;;
7612esac
7613fi
7614
7615MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7616if test -n "$MAGIC_CMD"; then
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7618$as_echo "$MAGIC_CMD" >&6; }
7619else
7620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624
7625  else
7626    MAGIC_CMD=:
7627  fi
7628fi
7629
7630  fi
7631  ;;
7632esac
7633
7634# Use C for the default configuration in the libtool script
7635
7636lt_save_CC="$CC"
7637ac_ext=c
7638ac_cpp='$CPP $CPPFLAGS'
7639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641ac_compiler_gnu=$ac_cv_c_compiler_gnu
7642
7643
7644# Source file extension for C test sources.
7645ac_ext=c
7646
7647# Object file extension for compiled C test sources.
7648objext=o
7649objext=$objext
7650
7651# Code to be used in simple compile tests
7652lt_simple_compile_test_code="int some_variable = 0;"
7653
7654# Code to be used in simple link tests
7655lt_simple_link_test_code='int main(){return(0);}'
7656
7657
7658
7659
7660
7661
7662
7663# If no C compiler was specified, use CC.
7664LTCC=${LTCC-"$CC"}
7665
7666# If no C compiler flags were specified, use CFLAGS.
7667LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7668
7669# Allow CC to be a program name with arguments.
7670compiler=$CC
7671
7672# Save the default compiler, since it gets overwritten when the other
7673# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7674compiler_DEFAULT=$CC
7675
7676# save warnings/boilerplate of simple test code
7677ac_outfile=conftest.$ac_objext
7678echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7679eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7680_lt_compiler_boilerplate=`cat conftest.err`
7681$RM conftest*
7682
7683ac_outfile=conftest.$ac_objext
7684echo "$lt_simple_link_test_code" >conftest.$ac_ext
7685eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7686_lt_linker_boilerplate=`cat conftest.err`
7687$RM -r conftest*
7688
7689
7690if test -n "$compiler"; then
7691
7692lt_prog_compiler_no_builtin_flag=
7693
7694if test "$GCC" = yes; then
7695  case $cc_basename in
7696  nvcc*)
7697    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7698  *)
7699    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7700  esac
7701
7702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7703$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7704if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7705  $as_echo_n "(cached) " >&6
7706else
7707  lt_cv_prog_compiler_rtti_exceptions=no
7708   ac_outfile=conftest.$ac_objext
7709   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7710   lt_compiler_flag="-fno-rtti -fno-exceptions"
7711   # Insert the option either (1) after the last *FLAGS variable, or
7712   # (2) before a word containing "conftest.", or (3) at the end.
7713   # Note that $ac_compile itself does not contain backslashes and begins
7714   # with a dollar sign (not a hyphen), so the echo should work correctly.
7715   # The option is referenced via a variable to avoid confusing sed.
7716   lt_compile=`echo "$ac_compile" | $SED \
7717   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7718   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7719   -e 's:$: $lt_compiler_flag:'`
7720   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7721   (eval "$lt_compile" 2>conftest.err)
7722   ac_status=$?
7723   cat conftest.err >&5
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   if (exit $ac_status) && test -s "$ac_outfile"; then
7726     # The compiler can only warn and ignore the option if not recognized
7727     # So say no if there are warnings other than the usual output.
7728     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7729     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7730     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7731       lt_cv_prog_compiler_rtti_exceptions=yes
7732     fi
7733   fi
7734   $RM conftest*
7735
7736fi
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7738$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7739
7740if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7741    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7742else
7743    :
7744fi
7745
7746fi
7747
7748
7749
7750
7751
7752
7753  lt_prog_compiler_wl=
7754lt_prog_compiler_pic=
7755lt_prog_compiler_static=
7756
7757
7758  if test "$GCC" = yes; then
7759    lt_prog_compiler_wl='-Wl,'
7760    lt_prog_compiler_static='-static'
7761
7762    case $host_os in
7763      aix*)
7764      # All AIX code is PIC.
7765      if test "$host_cpu" = ia64; then
7766	# AIX 5 now supports IA64 processor
7767	lt_prog_compiler_static='-Bstatic'
7768      fi
7769      ;;
7770
7771    amigaos*)
7772      case $host_cpu in
7773      powerpc)
7774            # see comment about AmigaOS4 .so support
7775            lt_prog_compiler_pic='-fPIC'
7776        ;;
7777      m68k)
7778            # FIXME: we need at least 68020 code to build shared libraries, but
7779            # adding the `-m68020' flag to GCC prevents building anything better,
7780            # like `-m68040'.
7781            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7782        ;;
7783      esac
7784      ;;
7785
7786    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7787      # PIC is the default for these OSes.
7788      ;;
7789
7790    mingw* | cygwin* | pw32* | os2* | cegcc*)
7791      # This hack is so that the source file can tell whether it is being
7792      # built for inclusion in a dll (and should export symbols for example).
7793      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7794      # (--disable-auto-import) libraries
7795      lt_prog_compiler_pic='-DDLL_EXPORT'
7796      ;;
7797
7798    darwin* | rhapsody*)
7799      # PIC is the default on this platform
7800      # Common symbols not allowed in MH_DYLIB files
7801      lt_prog_compiler_pic='-fno-common'
7802      ;;
7803
7804    haiku*)
7805      # PIC is the default for Haiku.
7806      # The "-static" flag exists, but is broken.
7807      lt_prog_compiler_static=
7808      ;;
7809
7810    hpux*)
7811      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7812      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7813      # sets the default TLS model and affects inlining.
7814      case $host_cpu in
7815      hppa*64*)
7816	# +Z the default
7817	;;
7818      *)
7819	lt_prog_compiler_pic='-fPIC'
7820	;;
7821      esac
7822      ;;
7823
7824    interix[3-9]*)
7825      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7826      # Instead, we relocate shared libraries at runtime.
7827      ;;
7828
7829    msdosdjgpp*)
7830      # Just because we use GCC doesn't mean we suddenly get shared libraries
7831      # on systems that don't support them.
7832      lt_prog_compiler_can_build_shared=no
7833      enable_shared=no
7834      ;;
7835
7836    *nto* | *qnx*)
7837      # QNX uses GNU C++, but need to define -shared option too, otherwise
7838      # it will coredump.
7839      lt_prog_compiler_pic='-fPIC -shared'
7840      ;;
7841
7842    sysv4*MP*)
7843      if test -d /usr/nec; then
7844	lt_prog_compiler_pic=-Kconform_pic
7845      fi
7846      ;;
7847
7848    *)
7849      lt_prog_compiler_pic='-fPIC'
7850      ;;
7851    esac
7852
7853    case $cc_basename in
7854    nvcc*) # Cuda Compiler Driver 2.2
7855      lt_prog_compiler_wl='-Xlinker '
7856      lt_prog_compiler_pic='-Xcompiler -fPIC'
7857      ;;
7858    esac
7859  else
7860    # PORTME Check for flag to pass linker flags through the system compiler.
7861    case $host_os in
7862    aix*)
7863      lt_prog_compiler_wl='-Wl,'
7864      if test "$host_cpu" = ia64; then
7865	# AIX 5 now supports IA64 processor
7866	lt_prog_compiler_static='-Bstatic'
7867      else
7868	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7869      fi
7870      ;;
7871
7872    mingw* | cygwin* | pw32* | os2* | cegcc*)
7873      # This hack is so that the source file can tell whether it is being
7874      # built for inclusion in a dll (and should export symbols for example).
7875      lt_prog_compiler_pic='-DDLL_EXPORT'
7876      ;;
7877
7878    hpux9* | hpux10* | hpux11*)
7879      lt_prog_compiler_wl='-Wl,'
7880      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7881      # not for PA HP-UX.
7882      case $host_cpu in
7883      hppa*64*|ia64*)
7884	# +Z the default
7885	;;
7886      *)
7887	lt_prog_compiler_pic='+Z'
7888	;;
7889      esac
7890      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7891      lt_prog_compiler_static='${wl}-a ${wl}archive'
7892      ;;
7893
7894    irix5* | irix6* | nonstopux*)
7895      lt_prog_compiler_wl='-Wl,'
7896      # PIC (with -KPIC) is the default.
7897      lt_prog_compiler_static='-non_shared'
7898      ;;
7899
7900    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7901      case $cc_basename in
7902      # old Intel for x86_64 which still supported -KPIC.
7903      ecc*)
7904	lt_prog_compiler_wl='-Wl,'
7905	lt_prog_compiler_pic='-KPIC'
7906	lt_prog_compiler_static='-static'
7907        ;;
7908      # icc used to be incompatible with GCC.
7909      # ICC 10 doesn't accept -KPIC any more.
7910      icc* | ifort*)
7911	lt_prog_compiler_wl='-Wl,'
7912	lt_prog_compiler_pic='-fPIC'
7913	lt_prog_compiler_static='-static'
7914        ;;
7915      # Lahey Fortran 8.1.
7916      lf95*)
7917	lt_prog_compiler_wl='-Wl,'
7918	lt_prog_compiler_pic='--shared'
7919	lt_prog_compiler_static='--static'
7920	;;
7921      nagfor*)
7922	# NAG Fortran compiler
7923	lt_prog_compiler_wl='-Wl,-Wl,,'
7924	lt_prog_compiler_pic='-PIC'
7925	lt_prog_compiler_static='-Bstatic'
7926	;;
7927      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7928        # Portland Group compilers (*not* the Pentium gcc compiler,
7929	# which looks to be a dead project)
7930	lt_prog_compiler_wl='-Wl,'
7931	lt_prog_compiler_pic='-fpic'
7932	lt_prog_compiler_static='-Bstatic'
7933        ;;
7934      ccc*)
7935        lt_prog_compiler_wl='-Wl,'
7936        # All Alpha code is PIC.
7937        lt_prog_compiler_static='-non_shared'
7938        ;;
7939      xl* | bgxl* | bgf* | mpixl*)
7940	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7941	lt_prog_compiler_wl='-Wl,'
7942	lt_prog_compiler_pic='-qpic'
7943	lt_prog_compiler_static='-qstaticlink'
7944	;;
7945      *)
7946	case `$CC -V 2>&1 | sed 5q` in
7947	*Sun\ F* | *Sun*Fortran*)
7948	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7949	  lt_prog_compiler_pic='-KPIC'
7950	  lt_prog_compiler_static='-Bstatic'
7951	  lt_prog_compiler_wl=''
7952	  ;;
7953	*Sun\ C*)
7954	  # Sun C 5.9
7955	  lt_prog_compiler_pic='-KPIC'
7956	  lt_prog_compiler_static='-Bstatic'
7957	  lt_prog_compiler_wl='-Wl,'
7958	  ;;
7959	esac
7960	;;
7961      esac
7962      ;;
7963
7964    newsos6)
7965      lt_prog_compiler_pic='-KPIC'
7966      lt_prog_compiler_static='-Bstatic'
7967      ;;
7968
7969    *nto* | *qnx*)
7970      # QNX uses GNU C++, but need to define -shared option too, otherwise
7971      # it will coredump.
7972      lt_prog_compiler_pic='-fPIC -shared'
7973      ;;
7974
7975    osf3* | osf4* | osf5*)
7976      lt_prog_compiler_wl='-Wl,'
7977      # All OSF/1 code is PIC.
7978      lt_prog_compiler_static='-non_shared'
7979      ;;
7980
7981    rdos*)
7982      lt_prog_compiler_static='-non_shared'
7983      ;;
7984
7985    solaris*)
7986      lt_prog_compiler_pic='-KPIC'
7987      lt_prog_compiler_static='-Bstatic'
7988      case $cc_basename in
7989      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7990	lt_prog_compiler_wl='-Qoption ld ';;
7991      *)
7992	lt_prog_compiler_wl='-Wl,';;
7993      esac
7994      ;;
7995
7996    sunos4*)
7997      lt_prog_compiler_wl='-Qoption ld '
7998      lt_prog_compiler_pic='-PIC'
7999      lt_prog_compiler_static='-Bstatic'
8000      ;;
8001
8002    sysv4 | sysv4.2uw2* | sysv4.3*)
8003      lt_prog_compiler_wl='-Wl,'
8004      lt_prog_compiler_pic='-KPIC'
8005      lt_prog_compiler_static='-Bstatic'
8006      ;;
8007
8008    sysv4*MP*)
8009      if test -d /usr/nec ;then
8010	lt_prog_compiler_pic='-Kconform_pic'
8011	lt_prog_compiler_static='-Bstatic'
8012      fi
8013      ;;
8014
8015    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8016      lt_prog_compiler_wl='-Wl,'
8017      lt_prog_compiler_pic='-KPIC'
8018      lt_prog_compiler_static='-Bstatic'
8019      ;;
8020
8021    unicos*)
8022      lt_prog_compiler_wl='-Wl,'
8023      lt_prog_compiler_can_build_shared=no
8024      ;;
8025
8026    uts4*)
8027      lt_prog_compiler_pic='-pic'
8028      lt_prog_compiler_static='-Bstatic'
8029      ;;
8030
8031    *)
8032      lt_prog_compiler_can_build_shared=no
8033      ;;
8034    esac
8035  fi
8036
8037case $host_os in
8038  # For platforms which do not support PIC, -DPIC is meaningless:
8039  *djgpp*)
8040    lt_prog_compiler_pic=
8041    ;;
8042  *)
8043    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8044    ;;
8045esac
8046
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8048$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8049if ${lt_cv_prog_compiler_pic+:} false; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8053fi
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8055$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8056lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8057
8058#
8059# Check to make sure the PIC flag actually works.
8060#
8061if test -n "$lt_prog_compiler_pic"; then
8062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8063$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8064if ${lt_cv_prog_compiler_pic_works+:} false; then :
8065  $as_echo_n "(cached) " >&6
8066else
8067  lt_cv_prog_compiler_pic_works=no
8068   ac_outfile=conftest.$ac_objext
8069   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8070   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8071   # Insert the option either (1) after the last *FLAGS variable, or
8072   # (2) before a word containing "conftest.", or (3) at the end.
8073   # Note that $ac_compile itself does not contain backslashes and begins
8074   # with a dollar sign (not a hyphen), so the echo should work correctly.
8075   # The option is referenced via a variable to avoid confusing sed.
8076   lt_compile=`echo "$ac_compile" | $SED \
8077   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079   -e 's:$: $lt_compiler_flag:'`
8080   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8081   (eval "$lt_compile" 2>conftest.err)
8082   ac_status=$?
8083   cat conftest.err >&5
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   if (exit $ac_status) && test -s "$ac_outfile"; then
8086     # The compiler can only warn and ignore the option if not recognized
8087     # So say no if there are warnings other than the usual output.
8088     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8089     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8090     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8091       lt_cv_prog_compiler_pic_works=yes
8092     fi
8093   fi
8094   $RM conftest*
8095
8096fi
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8098$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8099
8100if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8101    case $lt_prog_compiler_pic in
8102     "" | " "*) ;;
8103     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8104     esac
8105else
8106    lt_prog_compiler_pic=
8107     lt_prog_compiler_can_build_shared=no
8108fi
8109
8110fi
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122#
8123# Check to make sure the static flag actually works.
8124#
8125wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8127$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8128if ${lt_cv_prog_compiler_static_works+:} false; then :
8129  $as_echo_n "(cached) " >&6
8130else
8131  lt_cv_prog_compiler_static_works=no
8132   save_LDFLAGS="$LDFLAGS"
8133   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8134   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8135   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8136     # The linker can only warn and ignore the option if not recognized
8137     # So say no if there are warnings
8138     if test -s conftest.err; then
8139       # Append any errors to the config.log.
8140       cat conftest.err 1>&5
8141       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8142       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8143       if diff conftest.exp conftest.er2 >/dev/null; then
8144         lt_cv_prog_compiler_static_works=yes
8145       fi
8146     else
8147       lt_cv_prog_compiler_static_works=yes
8148     fi
8149   fi
8150   $RM -r conftest*
8151   LDFLAGS="$save_LDFLAGS"
8152
8153fi
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8155$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8156
8157if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8158    :
8159else
8160    lt_prog_compiler_static=
8161fi
8162
8163
8164
8165
8166
8167
8168
8169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8170$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8171if ${lt_cv_prog_compiler_c_o+:} false; then :
8172  $as_echo_n "(cached) " >&6
8173else
8174  lt_cv_prog_compiler_c_o=no
8175   $RM -r conftest 2>/dev/null
8176   mkdir conftest
8177   cd conftest
8178   mkdir out
8179   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8180
8181   lt_compiler_flag="-o out/conftest2.$ac_objext"
8182   # Insert the option either (1) after the last *FLAGS variable, or
8183   # (2) before a word containing "conftest.", or (3) at the end.
8184   # Note that $ac_compile itself does not contain backslashes and begins
8185   # with a dollar sign (not a hyphen), so the echo should work correctly.
8186   lt_compile=`echo "$ac_compile" | $SED \
8187   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8188   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8189   -e 's:$: $lt_compiler_flag:'`
8190   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8191   (eval "$lt_compile" 2>out/conftest.err)
8192   ac_status=$?
8193   cat out/conftest.err >&5
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8196   then
8197     # The compiler can only warn and ignore the option if not recognized
8198     # So say no if there are warnings
8199     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8200     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8201     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8202       lt_cv_prog_compiler_c_o=yes
8203     fi
8204   fi
8205   chmod u+w . 2>&5
8206   $RM conftest*
8207   # SGI C++ compiler will create directory out/ii_files/ for
8208   # template instantiation
8209   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8210   $RM out/* && rmdir out
8211   cd ..
8212   $RM -r conftest
8213   $RM conftest*
8214
8215fi
8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8217$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8218
8219
8220
8221
8222
8223
8224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8225$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8226if ${lt_cv_prog_compiler_c_o+:} false; then :
8227  $as_echo_n "(cached) " >&6
8228else
8229  lt_cv_prog_compiler_c_o=no
8230   $RM -r conftest 2>/dev/null
8231   mkdir conftest
8232   cd conftest
8233   mkdir out
8234   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8235
8236   lt_compiler_flag="-o out/conftest2.$ac_objext"
8237   # Insert the option either (1) after the last *FLAGS variable, or
8238   # (2) before a word containing "conftest.", or (3) at the end.
8239   # Note that $ac_compile itself does not contain backslashes and begins
8240   # with a dollar sign (not a hyphen), so the echo should work correctly.
8241   lt_compile=`echo "$ac_compile" | $SED \
8242   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8243   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8244   -e 's:$: $lt_compiler_flag:'`
8245   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8246   (eval "$lt_compile" 2>out/conftest.err)
8247   ac_status=$?
8248   cat out/conftest.err >&5
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8251   then
8252     # The compiler can only warn and ignore the option if not recognized
8253     # So say no if there are warnings
8254     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8255     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8256     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8257       lt_cv_prog_compiler_c_o=yes
8258     fi
8259   fi
8260   chmod u+w . 2>&5
8261   $RM conftest*
8262   # SGI C++ compiler will create directory out/ii_files/ for
8263   # template instantiation
8264   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8265   $RM out/* && rmdir out
8266   cd ..
8267   $RM -r conftest
8268   $RM conftest*
8269
8270fi
8271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8272$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8273
8274
8275
8276
8277hard_links="nottested"
8278if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8279  # do not overwrite the value of need_locks provided by the user
8280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8281$as_echo_n "checking if we can lock with hard links... " >&6; }
8282  hard_links=yes
8283  $RM conftest*
8284  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8285  touch conftest.a
8286  ln conftest.a conftest.b 2>&5 || hard_links=no
8287  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8289$as_echo "$hard_links" >&6; }
8290  if test "$hard_links" = no; then
8291    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8292$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8293    need_locks=warn
8294  fi
8295else
8296  need_locks=no
8297fi
8298
8299
8300
8301
8302
8303
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8305$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8306
8307  runpath_var=
8308  allow_undefined_flag=
8309  always_export_symbols=no
8310  archive_cmds=
8311  archive_expsym_cmds=
8312  compiler_needs_object=no
8313  enable_shared_with_static_runtimes=no
8314  export_dynamic_flag_spec=
8315  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8316  hardcode_automatic=no
8317  hardcode_direct=no
8318  hardcode_direct_absolute=no
8319  hardcode_libdir_flag_spec=
8320  hardcode_libdir_flag_spec_ld=
8321  hardcode_libdir_separator=
8322  hardcode_minus_L=no
8323  hardcode_shlibpath_var=unsupported
8324  inherit_rpath=no
8325  link_all_deplibs=unknown
8326  module_cmds=
8327  module_expsym_cmds=
8328  old_archive_from_new_cmds=
8329  old_archive_from_expsyms_cmds=
8330  thread_safe_flag_spec=
8331  whole_archive_flag_spec=
8332  # include_expsyms should be a list of space-separated symbols to be *always*
8333  # included in the symbol list
8334  include_expsyms=
8335  # exclude_expsyms can be an extended regexp of symbols to exclude
8336  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8337  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8338  # as well as any symbol that contains `d'.
8339  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8340  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8341  # platforms (ab)use it in PIC code, but their linkers get confused if
8342  # the symbol is explicitly referenced.  Since portable code cannot
8343  # rely on this symbol name, it's probably fine to never include it in
8344  # preloaded symbol tables.
8345  # Exclude shared library initialization/finalization symbols.
8346  extract_expsyms_cmds=
8347
8348  case $host_os in
8349  cygwin* | mingw* | pw32* | cegcc*)
8350    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8351    # When not using gcc, we currently assume that we are using
8352    # Microsoft Visual C++.
8353    if test "$GCC" != yes; then
8354      with_gnu_ld=no
8355    fi
8356    ;;
8357  interix*)
8358    # we just hope/assume this is gcc and not c89 (= MSVC++)
8359    with_gnu_ld=yes
8360    ;;
8361  openbsd*)
8362    with_gnu_ld=no
8363    ;;
8364  esac
8365
8366  ld_shlibs=yes
8367
8368  # On some targets, GNU ld is compatible enough with the native linker
8369  # that we're better off using the native interface for both.
8370  lt_use_gnu_ld_interface=no
8371  if test "$with_gnu_ld" = yes; then
8372    case $host_os in
8373      aix*)
8374	# The AIX port of GNU ld has always aspired to compatibility
8375	# with the native linker.  However, as the warning in the GNU ld
8376	# block says, versions before 2.19.5* couldn't really create working
8377	# shared libraries, regardless of the interface used.
8378	case `$LD -v 2>&1` in
8379	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8380	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8381	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8382	  *)
8383	    lt_use_gnu_ld_interface=yes
8384	    ;;
8385	esac
8386	;;
8387      *)
8388	lt_use_gnu_ld_interface=yes
8389	;;
8390    esac
8391  fi
8392
8393  if test "$lt_use_gnu_ld_interface" = yes; then
8394    # If archive_cmds runs LD, not CC, wlarc should be empty
8395    wlarc='${wl}'
8396
8397    # Set some defaults for GNU ld with shared library support. These
8398    # are reset later if shared libraries are not supported. Putting them
8399    # here allows them to be overridden if necessary.
8400    runpath_var=LD_RUN_PATH
8401    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8402    export_dynamic_flag_spec='${wl}--export-dynamic'
8403    # ancient GNU ld didn't support --whole-archive et. al.
8404    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8405      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8406    else
8407      whole_archive_flag_spec=
8408    fi
8409    supports_anon_versioning=no
8410    case `$LD -v 2>&1` in
8411      *GNU\ gold*) supports_anon_versioning=yes ;;
8412      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8413      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8414      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8415      *\ 2.11.*) ;; # other 2.11 versions
8416      *) supports_anon_versioning=yes ;;
8417    esac
8418
8419    # See if GNU ld supports shared libraries.
8420    case $host_os in
8421    aix[3-9]*)
8422      # On AIX/PPC, the GNU linker is very broken
8423      if test "$host_cpu" != ia64; then
8424	ld_shlibs=no
8425	cat <<_LT_EOF 1>&2
8426
8427*** Warning: the GNU linker, at least up to release 2.19, is reported
8428*** to be unable to reliably create shared libraries on AIX.
8429*** Therefore, libtool is disabling shared libraries support.  If you
8430*** really care for shared libraries, you may want to install binutils
8431*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8432*** You will then need to restart the configuration process.
8433
8434_LT_EOF
8435      fi
8436      ;;
8437
8438    amigaos*)
8439      case $host_cpu in
8440      powerpc)
8441            # see comment about AmigaOS4 .so support
8442            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8443            archive_expsym_cmds=''
8444        ;;
8445      m68k)
8446            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)'
8447            hardcode_libdir_flag_spec='-L$libdir'
8448            hardcode_minus_L=yes
8449        ;;
8450      esac
8451      ;;
8452
8453    beos*)
8454      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8455	allow_undefined_flag=unsupported
8456	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8457	# support --undefined.  This deserves some investigation.  FIXME
8458	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8459      else
8460	ld_shlibs=no
8461      fi
8462      ;;
8463
8464    cygwin* | mingw* | pw32* | cegcc*)
8465      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8466      # as there is no search path for DLLs.
8467      hardcode_libdir_flag_spec='-L$libdir'
8468      export_dynamic_flag_spec='${wl}--export-all-symbols'
8469      allow_undefined_flag=unsupported
8470      always_export_symbols=no
8471      enable_shared_with_static_runtimes=yes
8472      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8473      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8474
8475      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8476        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8477	# If the export-symbols file already is a .def file (1st line
8478	# is EXPORTS), use it as is; otherwise, prepend...
8479	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8480	  cp $export_symbols $output_objdir/$soname.def;
8481	else
8482	  echo EXPORTS > $output_objdir/$soname.def;
8483	  cat $export_symbols >> $output_objdir/$soname.def;
8484	fi~
8485	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8486      else
8487	ld_shlibs=no
8488      fi
8489      ;;
8490
8491    haiku*)
8492      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8493      link_all_deplibs=yes
8494      ;;
8495
8496    interix[3-9]*)
8497      hardcode_direct=no
8498      hardcode_shlibpath_var=no
8499      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8500      export_dynamic_flag_spec='${wl}-E'
8501      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8502      # Instead, shared libraries are loaded at an image base (0x10000000 by
8503      # default) and relocated if they conflict, which is a slow very memory
8504      # consuming and fragmenting process.  To avoid this, we pick a random,
8505      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8506      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8507      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8508      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'
8509      ;;
8510
8511    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8512      tmp_diet=no
8513      if test "$host_os" = linux-dietlibc; then
8514	case $cc_basename in
8515	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8516	esac
8517      fi
8518      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8519	 && test "$tmp_diet" = no
8520      then
8521	tmp_addflag=' $pic_flag'
8522	tmp_sharedflag='-shared'
8523	case $cc_basename,$host_cpu in
8524        pgcc*)				# Portland Group C compiler
8525	  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'
8526	  tmp_addflag=' $pic_flag'
8527	  ;;
8528	pgf77* | pgf90* | pgf95* | pgfortran*)
8529					# Portland Group f77 and f90 compilers
8530	  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'
8531	  tmp_addflag=' $pic_flag -Mnomain' ;;
8532	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8533	  tmp_addflag=' -i_dynamic' ;;
8534	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8535	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8536	ifc* | ifort*)			# Intel Fortran compiler
8537	  tmp_addflag=' -nofor_main' ;;
8538	lf95*)				# Lahey Fortran 8.1
8539	  whole_archive_flag_spec=
8540	  tmp_sharedflag='--shared' ;;
8541	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8542	  tmp_sharedflag='-qmkshrobj'
8543	  tmp_addflag= ;;
8544	nvcc*)	# Cuda Compiler Driver 2.2
8545	  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'
8546	  compiler_needs_object=yes
8547	  ;;
8548	esac
8549	case `$CC -V 2>&1 | sed 5q` in
8550	*Sun\ C*)			# Sun C 5.9
8551	  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'
8552	  compiler_needs_object=yes
8553	  tmp_sharedflag='-G' ;;
8554	*Sun\ F*)			# Sun Fortran 8.3
8555	  tmp_sharedflag='-G' ;;
8556	esac
8557	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558
8559        if test "x$supports_anon_versioning" = xyes; then
8560          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8561	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8562	    echo "local: *; };" >> $output_objdir/$libname.ver~
8563	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8564        fi
8565
8566	case $cc_basename in
8567	xlf* | bgf* | bgxlf* | mpixlf*)
8568	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8569	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8570	  hardcode_libdir_flag_spec=
8571	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8572	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8573	  if test "x$supports_anon_versioning" = xyes; then
8574	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8575	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8576	      echo "local: *; };" >> $output_objdir/$libname.ver~
8577	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8578	  fi
8579	  ;;
8580	esac
8581      else
8582        ld_shlibs=no
8583      fi
8584      ;;
8585
8586    netbsd*)
8587      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8588	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8589	wlarc=
8590      else
8591	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8593      fi
8594      ;;
8595
8596    solaris*)
8597      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8598	ld_shlibs=no
8599	cat <<_LT_EOF 1>&2
8600
8601*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8602*** create shared libraries on Solaris systems.  Therefore, libtool
8603*** is disabling shared libraries support.  We urge you to upgrade GNU
8604*** binutils to release 2.9.1 or newer.  Another option is to modify
8605*** your PATH or compiler configuration so that the native linker is
8606*** used, and then restart.
8607
8608_LT_EOF
8609      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8610	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8611	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8612      else
8613	ld_shlibs=no
8614      fi
8615      ;;
8616
8617    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8618      case `$LD -v 2>&1` in
8619        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8620	ld_shlibs=no
8621	cat <<_LT_EOF 1>&2
8622
8623*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8624*** reliably create shared libraries on SCO systems.  Therefore, libtool
8625*** is disabling shared libraries support.  We urge you to upgrade GNU
8626*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8627*** your PATH or compiler configuration so that the native linker is
8628*** used, and then restart.
8629
8630_LT_EOF
8631	;;
8632	*)
8633	  # For security reasons, it is highly recommended that you always
8634	  # use absolute paths for naming shared libraries, and exclude the
8635	  # DT_RUNPATH tag from executables and libraries.  But doing so
8636	  # requires that you compile everything twice, which is a pain.
8637	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8638	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8641	  else
8642	    ld_shlibs=no
8643	  fi
8644	;;
8645      esac
8646      ;;
8647
8648    sunos4*)
8649      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8650      wlarc=
8651      hardcode_direct=yes
8652      hardcode_shlibpath_var=no
8653      ;;
8654
8655    *)
8656      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8659      else
8660	ld_shlibs=no
8661      fi
8662      ;;
8663    esac
8664
8665    if test "$ld_shlibs" = no; then
8666      runpath_var=
8667      hardcode_libdir_flag_spec=
8668      export_dynamic_flag_spec=
8669      whole_archive_flag_spec=
8670    fi
8671  else
8672    # PORTME fill in a description of your system's linker (not GNU ld)
8673    case $host_os in
8674    aix3*)
8675      allow_undefined_flag=unsupported
8676      always_export_symbols=yes
8677      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'
8678      # Note: this linker hardcodes the directories in LIBPATH if there
8679      # are no directories specified by -L.
8680      hardcode_minus_L=yes
8681      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8682	# Neither direct hardcoding nor static linking is supported with a
8683	# broken collect2.
8684	hardcode_direct=unsupported
8685      fi
8686      ;;
8687
8688    aix[4-9]*)
8689      if test "$host_cpu" = ia64; then
8690	# On IA64, the linker does run time linking by default, so we don't
8691	# have to do anything special.
8692	aix_use_runtimelinking=no
8693	exp_sym_flag='-Bexport'
8694	no_entry_flag=""
8695      else
8696	# If we're using GNU nm, then we don't want the "-C" option.
8697	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8698	# Also, AIX nm treats weak defined symbols like other global
8699	# defined symbols, whereas GNU nm marks them as "W".
8700	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8701	  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'
8702	else
8703	  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'
8704	fi
8705	aix_use_runtimelinking=no
8706
8707	# Test if we are trying to use run time linking or normal
8708	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8709	# need to do runtime linking.
8710	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8711	  for ld_flag in $LDFLAGS; do
8712	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8713	    aix_use_runtimelinking=yes
8714	    break
8715	  fi
8716	  done
8717	  ;;
8718	esac
8719
8720	exp_sym_flag='-bexport'
8721	no_entry_flag='-bnoentry'
8722      fi
8723
8724      # When large executables or shared objects are built, AIX ld can
8725      # have problems creating the table of contents.  If linking a library
8726      # or program results in "error TOC overflow" add -mminimal-toc to
8727      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8728      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8729
8730      archive_cmds=''
8731      hardcode_direct=yes
8732      hardcode_direct_absolute=yes
8733      hardcode_libdir_separator=':'
8734      link_all_deplibs=yes
8735      file_list_spec='${wl}-f,'
8736
8737      if test "$GCC" = yes; then
8738	case $host_os in aix4.[012]|aix4.[012].*)
8739	# We only want to do this on AIX 4.2 and lower, the check
8740	# below for broken collect2 doesn't work under 4.3+
8741	  collect2name=`${CC} -print-prog-name=collect2`
8742	  if test -f "$collect2name" &&
8743	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8744	  then
8745	  # We have reworked collect2
8746	  :
8747	  else
8748	  # We have old collect2
8749	  hardcode_direct=unsupported
8750	  # It fails to find uninstalled libraries when the uninstalled
8751	  # path is not listed in the libpath.  Setting hardcode_minus_L
8752	  # to unsupported forces relinking
8753	  hardcode_minus_L=yes
8754	  hardcode_libdir_flag_spec='-L$libdir'
8755	  hardcode_libdir_separator=
8756	  fi
8757	  ;;
8758	esac
8759	shared_flag='-shared'
8760	if test "$aix_use_runtimelinking" = yes; then
8761	  shared_flag="$shared_flag "'${wl}-G'
8762	fi
8763      else
8764	# not using gcc
8765	if test "$host_cpu" = ia64; then
8766	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8767	# chokes on -Wl,-G. The following line is correct:
8768	  shared_flag='-G'
8769	else
8770	  if test "$aix_use_runtimelinking" = yes; then
8771	    shared_flag='${wl}-G'
8772	  else
8773	    shared_flag='${wl}-bM:SRE'
8774	  fi
8775	fi
8776      fi
8777
8778      export_dynamic_flag_spec='${wl}-bexpall'
8779      # It seems that -bexpall does not export symbols beginning with
8780      # underscore (_), so it is better to generate a list of symbols to export.
8781      always_export_symbols=yes
8782      if test "$aix_use_runtimelinking" = yes; then
8783	# Warning - without using the other runtime loading flags (-brtl),
8784	# -berok will link without error, but may produce a broken library.
8785	allow_undefined_flag='-berok'
8786        # Determine the default libpath from the value encoded in an
8787        # empty executable.
8788        if test "${lt_cv_aix_libpath+set}" = set; then
8789  aix_libpath=$lt_cv_aix_libpath
8790else
8791  if ${lt_cv_aix_libpath_+:} false; then :
8792  $as_echo_n "(cached) " >&6
8793else
8794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795/* end confdefs.h.  */
8796
8797int
8798main ()
8799{
8800
8801  ;
8802  return 0;
8803}
8804_ACEOF
8805if ac_fn_c_try_link "$LINENO"; then :
8806
8807  lt_aix_libpath_sed='
8808      /Import File Strings/,/^$/ {
8809	  /^0/ {
8810	      s/^0  *\([^ ]*\) *$/\1/
8811	      p
8812	  }
8813      }'
8814  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8815  # Check for a 64-bit object if we didn't find anything.
8816  if test -z "$lt_cv_aix_libpath_"; then
8817    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8818  fi
8819fi
8820rm -f core conftest.err conftest.$ac_objext \
8821    conftest$ac_exeext conftest.$ac_ext
8822  if test -z "$lt_cv_aix_libpath_"; then
8823    lt_cv_aix_libpath_="/usr/lib:/lib"
8824  fi
8825
8826fi
8827
8828  aix_libpath=$lt_cv_aix_libpath_
8829fi
8830
8831        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8832        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"
8833      else
8834	if test "$host_cpu" = ia64; then
8835	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8836	  allow_undefined_flag="-z nodefs"
8837	  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"
8838	else
8839	 # Determine the default libpath from the value encoded in an
8840	 # empty executable.
8841	 if test "${lt_cv_aix_libpath+set}" = set; then
8842  aix_libpath=$lt_cv_aix_libpath
8843else
8844  if ${lt_cv_aix_libpath_+:} false; then :
8845  $as_echo_n "(cached) " >&6
8846else
8847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848/* end confdefs.h.  */
8849
8850int
8851main ()
8852{
8853
8854  ;
8855  return 0;
8856}
8857_ACEOF
8858if ac_fn_c_try_link "$LINENO"; then :
8859
8860  lt_aix_libpath_sed='
8861      /Import File Strings/,/^$/ {
8862	  /^0/ {
8863	      s/^0  *\([^ ]*\) *$/\1/
8864	      p
8865	  }
8866      }'
8867  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8868  # Check for a 64-bit object if we didn't find anything.
8869  if test -z "$lt_cv_aix_libpath_"; then
8870    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8871  fi
8872fi
8873rm -f core conftest.err conftest.$ac_objext \
8874    conftest$ac_exeext conftest.$ac_ext
8875  if test -z "$lt_cv_aix_libpath_"; then
8876    lt_cv_aix_libpath_="/usr/lib:/lib"
8877  fi
8878
8879fi
8880
8881  aix_libpath=$lt_cv_aix_libpath_
8882fi
8883
8884	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8885	  # Warning - without using the other run time loading flags,
8886	  # -berok will link without error, but may produce a broken library.
8887	  no_undefined_flag=' ${wl}-bernotok'
8888	  allow_undefined_flag=' ${wl}-berok'
8889	  if test "$with_gnu_ld" = yes; then
8890	    # We only use this code for GNU lds that support --whole-archive.
8891	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8892	  else
8893	    # Exported symbols can be pulled into shared objects from archives
8894	    whole_archive_flag_spec='$convenience'
8895	  fi
8896	  archive_cmds_need_lc=yes
8897	  # This is similar to how AIX traditionally builds its shared libraries.
8898	  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'
8899	fi
8900      fi
8901      ;;
8902
8903    amigaos*)
8904      case $host_cpu in
8905      powerpc)
8906            # see comment about AmigaOS4 .so support
8907            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908            archive_expsym_cmds=''
8909        ;;
8910      m68k)
8911            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)'
8912            hardcode_libdir_flag_spec='-L$libdir'
8913            hardcode_minus_L=yes
8914        ;;
8915      esac
8916      ;;
8917
8918    bsdi[45]*)
8919      export_dynamic_flag_spec=-rdynamic
8920      ;;
8921
8922    cygwin* | mingw* | pw32* | cegcc*)
8923      # When not using gcc, we currently assume that we are using
8924      # Microsoft Visual C++.
8925      # hardcode_libdir_flag_spec is actually meaningless, as there is
8926      # no search path for DLLs.
8927      case $cc_basename in
8928      cl*)
8929	# Native MSVC
8930	hardcode_libdir_flag_spec=' '
8931	allow_undefined_flag=unsupported
8932	always_export_symbols=yes
8933	file_list_spec='@'
8934	# Tell ltmain to make .lib files, not .a files.
8935	libext=lib
8936	# Tell ltmain to make .dll files, not .so files.
8937	shrext_cmds=".dll"
8938	# FIXME: Setting linknames here is a bad hack.
8939	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8940	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8941	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8942	  else
8943	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8944	  fi~
8945	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8946	  linknames='
8947	# The linker will not automatically build a static lib if we build a DLL.
8948	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8949	enable_shared_with_static_runtimes=yes
8950	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8951	# Don't use ranlib
8952	old_postinstall_cmds='chmod 644 $oldlib'
8953	postlink_cmds='lt_outputfile="@OUTPUT@"~
8954	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8955	  case $lt_outputfile in
8956	    *.exe|*.EXE) ;;
8957	    *)
8958	      lt_outputfile="$lt_outputfile.exe"
8959	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8960	      ;;
8961	  esac~
8962	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8963	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8964	    $RM "$lt_outputfile.manifest";
8965	  fi'
8966	;;
8967      *)
8968	# Assume MSVC wrapper
8969	hardcode_libdir_flag_spec=' '
8970	allow_undefined_flag=unsupported
8971	# Tell ltmain to make .lib files, not .a files.
8972	libext=lib
8973	# Tell ltmain to make .dll files, not .so files.
8974	shrext_cmds=".dll"
8975	# FIXME: Setting linknames here is a bad hack.
8976	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8977	# The linker will automatically build a .lib file if we build a DLL.
8978	old_archive_from_new_cmds='true'
8979	# FIXME: Should let the user specify the lib program.
8980	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8981	enable_shared_with_static_runtimes=yes
8982	;;
8983      esac
8984      ;;
8985
8986    darwin* | rhapsody*)
8987
8988
8989  archive_cmds_need_lc=no
8990  hardcode_direct=no
8991  hardcode_automatic=yes
8992  hardcode_shlibpath_var=unsupported
8993  if test "$lt_cv_ld_force_load" = "yes"; then
8994    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\"`'
8995  else
8996    whole_archive_flag_spec=''
8997  fi
8998  link_all_deplibs=yes
8999  allow_undefined_flag="$_lt_dar_allow_undefined"
9000  case $cc_basename in
9001     ifort*) _lt_dar_can_shared=yes ;;
9002     *) _lt_dar_can_shared=$GCC ;;
9003  esac
9004  if test "$_lt_dar_can_shared" = "yes"; then
9005    output_verbose_link_cmd=func_echo_all
9006    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9007    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9008    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}"
9009    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}"
9010
9011  else
9012  ld_shlibs=no
9013  fi
9014
9015      ;;
9016
9017    dgux*)
9018      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9019      hardcode_libdir_flag_spec='-L$libdir'
9020      hardcode_shlibpath_var=no
9021      ;;
9022
9023    freebsd1*)
9024      ld_shlibs=no
9025      ;;
9026
9027    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9028    # support.  Future versions do this automatically, but an explicit c++rt0.o
9029    # does not break anything, and helps significantly (at the cost of a little
9030    # extra space).
9031    freebsd2.2*)
9032      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9033      hardcode_libdir_flag_spec='-R$libdir'
9034      hardcode_direct=yes
9035      hardcode_shlibpath_var=no
9036      ;;
9037
9038    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9039    freebsd2*)
9040      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9041      hardcode_direct=yes
9042      hardcode_minus_L=yes
9043      hardcode_shlibpath_var=no
9044      ;;
9045
9046    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9047    freebsd* | dragonfly*)
9048      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9049      hardcode_libdir_flag_spec='-R$libdir'
9050      hardcode_direct=yes
9051      hardcode_shlibpath_var=no
9052      ;;
9053
9054    hpux9*)
9055      if test "$GCC" = yes; then
9056	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9057      else
9058	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'
9059      fi
9060      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9061      hardcode_libdir_separator=:
9062      hardcode_direct=yes
9063
9064      # hardcode_minus_L: Not really in the search PATH,
9065      # but as the default location of the library.
9066      hardcode_minus_L=yes
9067      export_dynamic_flag_spec='${wl}-E'
9068      ;;
9069
9070    hpux10*)
9071      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9072	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9073      else
9074	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9075      fi
9076      if test "$with_gnu_ld" = no; then
9077	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9078	hardcode_libdir_flag_spec_ld='+b $libdir'
9079	hardcode_libdir_separator=:
9080	hardcode_direct=yes
9081	hardcode_direct_absolute=yes
9082	export_dynamic_flag_spec='${wl}-E'
9083	# hardcode_minus_L: Not really in the search PATH,
9084	# but as the default location of the library.
9085	hardcode_minus_L=yes
9086      fi
9087      ;;
9088
9089    hpux11*)
9090      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9091	case $host_cpu in
9092	hppa*64*)
9093	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9094	  ;;
9095	ia64*)
9096	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9097	  ;;
9098	*)
9099	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9100	  ;;
9101	esac
9102      else
9103	case $host_cpu in
9104	hppa*64*)
9105	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9106	  ;;
9107	ia64*)
9108	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9109	  ;;
9110	*)
9111
9112	  # Older versions of the 11.00 compiler do not understand -b yet
9113	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9114	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9115$as_echo_n "checking if $CC understands -b... " >&6; }
9116if ${lt_cv_prog_compiler__b+:} false; then :
9117  $as_echo_n "(cached) " >&6
9118else
9119  lt_cv_prog_compiler__b=no
9120   save_LDFLAGS="$LDFLAGS"
9121   LDFLAGS="$LDFLAGS -b"
9122   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9123   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9124     # The linker can only warn and ignore the option if not recognized
9125     # So say no if there are warnings
9126     if test -s conftest.err; then
9127       # Append any errors to the config.log.
9128       cat conftest.err 1>&5
9129       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9130       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9131       if diff conftest.exp conftest.er2 >/dev/null; then
9132         lt_cv_prog_compiler__b=yes
9133       fi
9134     else
9135       lt_cv_prog_compiler__b=yes
9136     fi
9137   fi
9138   $RM -r conftest*
9139   LDFLAGS="$save_LDFLAGS"
9140
9141fi
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9143$as_echo "$lt_cv_prog_compiler__b" >&6; }
9144
9145if test x"$lt_cv_prog_compiler__b" = xyes; then
9146    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9147else
9148    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9149fi
9150
9151	  ;;
9152	esac
9153      fi
9154      if test "$with_gnu_ld" = no; then
9155	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9156	hardcode_libdir_separator=:
9157
9158	case $host_cpu in
9159	hppa*64*|ia64*)
9160	  hardcode_direct=no
9161	  hardcode_shlibpath_var=no
9162	  ;;
9163	*)
9164	  hardcode_direct=yes
9165	  hardcode_direct_absolute=yes
9166	  export_dynamic_flag_spec='${wl}-E'
9167
9168	  # hardcode_minus_L: Not really in the search PATH,
9169	  # but as the default location of the library.
9170	  hardcode_minus_L=yes
9171	  ;;
9172	esac
9173      fi
9174      ;;
9175
9176    irix5* | irix6* | nonstopux*)
9177      if test "$GCC" = yes; then
9178	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9179	# Try to use the -exported_symbol ld option, if it does not
9180	# work, assume that -exports_file does not work either and
9181	# implicitly export all symbols.
9182	# This should be the same for all languages, so no per-tag cache variable.
9183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9184$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9185if ${lt_cv_irix_exported_symbol+:} false; then :
9186  $as_echo_n "(cached) " >&6
9187else
9188  save_LDFLAGS="$LDFLAGS"
9189	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9190	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191/* end confdefs.h.  */
9192int foo (void) { return 0; }
9193_ACEOF
9194if ac_fn_c_try_link "$LINENO"; then :
9195  lt_cv_irix_exported_symbol=yes
9196else
9197  lt_cv_irix_exported_symbol=no
9198fi
9199rm -f core conftest.err conftest.$ac_objext \
9200    conftest$ac_exeext conftest.$ac_ext
9201           LDFLAGS="$save_LDFLAGS"
9202fi
9203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9204$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9205	if test "$lt_cv_irix_exported_symbol" = yes; then
9206          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9207	fi
9208      else
9209	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'
9210	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'
9211      fi
9212      archive_cmds_need_lc='no'
9213      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9214      hardcode_libdir_separator=:
9215      inherit_rpath=yes
9216      link_all_deplibs=yes
9217      ;;
9218
9219    netbsd*)
9220      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9221	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9222      else
9223	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9224      fi
9225      hardcode_libdir_flag_spec='-R$libdir'
9226      hardcode_direct=yes
9227      hardcode_shlibpath_var=no
9228      ;;
9229
9230    newsos6)
9231      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232      hardcode_direct=yes
9233      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234      hardcode_libdir_separator=:
9235      hardcode_shlibpath_var=no
9236      ;;
9237
9238    *nto* | *qnx*)
9239      ;;
9240
9241    openbsd*)
9242      if test -f /usr/libexec/ld.so; then
9243	hardcode_direct=yes
9244	hardcode_shlibpath_var=no
9245	hardcode_direct_absolute=yes
9246	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9247	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9248	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9249	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9250	  export_dynamic_flag_spec='${wl}-E'
9251	else
9252	  case $host_os in
9253	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9254	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9255	     hardcode_libdir_flag_spec='-R$libdir'
9256	     ;;
9257	   *)
9258	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9259	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260	     ;;
9261	  esac
9262	fi
9263      else
9264	ld_shlibs=no
9265      fi
9266      ;;
9267
9268    os2*)
9269      hardcode_libdir_flag_spec='-L$libdir'
9270      hardcode_minus_L=yes
9271      allow_undefined_flag=unsupported
9272      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'
9273      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9274      ;;
9275
9276    osf3*)
9277      if test "$GCC" = yes; then
9278	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9279	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'
9280      else
9281	allow_undefined_flag=' -expect_unresolved \*'
9282	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'
9283      fi
9284      archive_cmds_need_lc='no'
9285      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9286      hardcode_libdir_separator=:
9287      ;;
9288
9289    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9290      if test "$GCC" = yes; then
9291	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9292	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9293	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294      else
9295	allow_undefined_flag=' -expect_unresolved \*'
9296	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'
9297	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~
9298	$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'
9299
9300	# Both c and cxx compiler support -rpath directly
9301	hardcode_libdir_flag_spec='-rpath $libdir'
9302      fi
9303      archive_cmds_need_lc='no'
9304      hardcode_libdir_separator=:
9305      ;;
9306
9307    solaris*)
9308      no_undefined_flag=' -z defs'
9309      if test "$GCC" = yes; then
9310	wlarc='${wl}'
9311	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9312	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9313	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9314      else
9315	case `$CC -V 2>&1` in
9316	*"Compilers 5.0"*)
9317	  wlarc=''
9318	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9320	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9321	  ;;
9322	*)
9323	  wlarc='${wl}'
9324	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9325	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9326	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9327	  ;;
9328	esac
9329      fi
9330      hardcode_libdir_flag_spec='-R$libdir'
9331      hardcode_shlibpath_var=no
9332      case $host_os in
9333      solaris2.[0-5] | solaris2.[0-5].*) ;;
9334      *)
9335	# The compiler driver will combine and reorder linker options,
9336	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9337	# but is careful enough not to reorder.
9338	# Supported since Solaris 2.6 (maybe 2.5.1?)
9339	if test "$GCC" = yes; then
9340	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9341	else
9342	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9343	fi
9344	;;
9345      esac
9346      link_all_deplibs=yes
9347      ;;
9348
9349    sunos4*)
9350      if test "x$host_vendor" = xsequent; then
9351	# Use $CC to link under sequent, because it throws in some extra .o
9352	# files that make .init and .fini sections work.
9353	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9354      else
9355	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9356      fi
9357      hardcode_libdir_flag_spec='-L$libdir'
9358      hardcode_direct=yes
9359      hardcode_minus_L=yes
9360      hardcode_shlibpath_var=no
9361      ;;
9362
9363    sysv4)
9364      case $host_vendor in
9365	sni)
9366	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367	  hardcode_direct=yes # is this really true???
9368	;;
9369	siemens)
9370	  ## LD is ld it makes a PLAMLIB
9371	  ## CC just makes a GrossModule.
9372	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9373	  reload_cmds='$CC -r -o $output$reload_objs'
9374	  hardcode_direct=no
9375        ;;
9376	motorola)
9377	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9379	;;
9380      esac
9381      runpath_var='LD_RUN_PATH'
9382      hardcode_shlibpath_var=no
9383      ;;
9384
9385    sysv4.3*)
9386      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387      hardcode_shlibpath_var=no
9388      export_dynamic_flag_spec='-Bexport'
9389      ;;
9390
9391    sysv4*MP*)
9392      if test -d /usr/nec; then
9393	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9394	hardcode_shlibpath_var=no
9395	runpath_var=LD_RUN_PATH
9396	hardcode_runpath_var=yes
9397	ld_shlibs=yes
9398      fi
9399      ;;
9400
9401    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9402      no_undefined_flag='${wl}-z,text'
9403      archive_cmds_need_lc=no
9404      hardcode_shlibpath_var=no
9405      runpath_var='LD_RUN_PATH'
9406
9407      if test "$GCC" = yes; then
9408	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410      else
9411	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413      fi
9414      ;;
9415
9416    sysv5* | sco3.2v5* | sco5v6*)
9417      # Note: We can NOT use -z defs as we might desire, because we do not
9418      # link with -lc, and that would cause any symbols used from libc to
9419      # always be unresolved, which means just about no library would
9420      # ever link correctly.  If we're not using GNU ld we use -z text
9421      # though, which does catch some bad symbols but isn't as heavy-handed
9422      # as -z defs.
9423      no_undefined_flag='${wl}-z,text'
9424      allow_undefined_flag='${wl}-z,nodefs'
9425      archive_cmds_need_lc=no
9426      hardcode_shlibpath_var=no
9427      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9428      hardcode_libdir_separator=':'
9429      link_all_deplibs=yes
9430      export_dynamic_flag_spec='${wl}-Bexport'
9431      runpath_var='LD_RUN_PATH'
9432
9433      if test "$GCC" = yes; then
9434	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436      else
9437	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439      fi
9440      ;;
9441
9442    uts4*)
9443      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9444      hardcode_libdir_flag_spec='-L$libdir'
9445      hardcode_shlibpath_var=no
9446      ;;
9447
9448    *)
9449      ld_shlibs=no
9450      ;;
9451    esac
9452
9453    if test x$host_vendor = xsni; then
9454      case $host in
9455      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9456	export_dynamic_flag_spec='${wl}-Blargedynsym'
9457	;;
9458      esac
9459    fi
9460  fi
9461
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9463$as_echo "$ld_shlibs" >&6; }
9464test "$ld_shlibs" = no && can_build_shared=no
9465
9466with_gnu_ld=$with_gnu_ld
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482#
9483# Do we need to explicitly link libc?
9484#
9485case "x$archive_cmds_need_lc" in
9486x|xyes)
9487  # Assume -lc should be added
9488  archive_cmds_need_lc=yes
9489
9490  if test "$enable_shared" = yes && test "$GCC" = yes; then
9491    case $archive_cmds in
9492    *'~'*)
9493      # FIXME: we may have to deal with multi-command sequences.
9494      ;;
9495    '$CC '*)
9496      # Test whether the compiler implicitly links with -lc since on some
9497      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9498      # to ld, don't add -lc before -lgcc.
9499      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9500$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9501if ${lt_cv_archive_cmds_need_lc+:} false; then :
9502  $as_echo_n "(cached) " >&6
9503else
9504  $RM conftest*
9505	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9506
9507	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9508  (eval $ac_compile) 2>&5
9509  ac_status=$?
9510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9511  test $ac_status = 0; } 2>conftest.err; then
9512	  soname=conftest
9513	  lib=conftest
9514	  libobjs=conftest.$ac_objext
9515	  deplibs=
9516	  wl=$lt_prog_compiler_wl
9517	  pic_flag=$lt_prog_compiler_pic
9518	  compiler_flags=-v
9519	  linker_flags=-v
9520	  verstring=
9521	  output_objdir=.
9522	  libname=conftest
9523	  lt_save_allow_undefined_flag=$allow_undefined_flag
9524	  allow_undefined_flag=
9525	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9526  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9527  ac_status=$?
9528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9529  test $ac_status = 0; }
9530	  then
9531	    lt_cv_archive_cmds_need_lc=no
9532	  else
9533	    lt_cv_archive_cmds_need_lc=yes
9534	  fi
9535	  allow_undefined_flag=$lt_save_allow_undefined_flag
9536	else
9537	  cat conftest.err 1>&5
9538	fi
9539	$RM conftest*
9540
9541fi
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9543$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9544      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9545      ;;
9546    esac
9547  fi
9548  ;;
9549esac
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9708$as_echo_n "checking dynamic linker characteristics... " >&6; }
9709
9710if test "$GCC" = yes; then
9711  case $host_os in
9712    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9713    *) lt_awk_arg="/^libraries:/" ;;
9714  esac
9715  case $host_os in
9716    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9717    *) lt_sed_strip_eq="s,=/,/,g" ;;
9718  esac
9719  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9720  case $lt_search_path_spec in
9721  *\;*)
9722    # if the path contains ";" then we assume it to be the separator
9723    # otherwise default to the standard path separator (i.e. ":") - it is
9724    # assumed that no part of a normal pathname contains ";" but that should
9725    # okay in the real world where ";" in dirpaths is itself problematic.
9726    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9727    ;;
9728  *)
9729    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9730    ;;
9731  esac
9732  # Ok, now we have the path, separated by spaces, we can step through it
9733  # and add multilib dir if necessary.
9734  lt_tmp_lt_search_path_spec=
9735  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9736  for lt_sys_path in $lt_search_path_spec; do
9737    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9738      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9739    else
9740      test -d "$lt_sys_path" && \
9741	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9742    fi
9743  done
9744  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9745BEGIN {RS=" "; FS="/|\n";} {
9746  lt_foo="";
9747  lt_count=0;
9748  for (lt_i = NF; lt_i > 0; lt_i--) {
9749    if ($lt_i != "" && $lt_i != ".") {
9750      if ($lt_i == "..") {
9751        lt_count++;
9752      } else {
9753        if (lt_count == 0) {
9754          lt_foo="/" $lt_i lt_foo;
9755        } else {
9756          lt_count--;
9757        }
9758      }
9759    }
9760  }
9761  if (lt_foo != "") { lt_freq[lt_foo]++; }
9762  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9763}'`
9764  # AWK program above erroneously prepends '/' to C:/dos/paths
9765  # for these hosts.
9766  case $host_os in
9767    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9768      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9769  esac
9770  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9771else
9772  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9773fi
9774library_names_spec=
9775libname_spec='lib$name'
9776soname_spec=
9777shrext_cmds=".so"
9778postinstall_cmds=
9779postuninstall_cmds=
9780finish_cmds=
9781finish_eval=
9782shlibpath_var=
9783shlibpath_overrides_runpath=unknown
9784version_type=none
9785dynamic_linker="$host_os ld.so"
9786sys_lib_dlsearch_path_spec="/lib /usr/lib"
9787need_lib_prefix=unknown
9788hardcode_into_libs=no
9789
9790# when you set need_version to no, make sure it does not cause -set_version
9791# flags to be left without arguments
9792need_version=unknown
9793
9794case $host_os in
9795aix3*)
9796  version_type=linux
9797  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9798  shlibpath_var=LIBPATH
9799
9800  # AIX 3 has no versioning support, so we append a major version to the name.
9801  soname_spec='${libname}${release}${shared_ext}$major'
9802  ;;
9803
9804aix[4-9]*)
9805  version_type=linux
9806  need_lib_prefix=no
9807  need_version=no
9808  hardcode_into_libs=yes
9809  if test "$host_cpu" = ia64; then
9810    # AIX 5 supports IA64
9811    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9812    shlibpath_var=LD_LIBRARY_PATH
9813  else
9814    # With GCC up to 2.95.x, collect2 would create an import file
9815    # for dependence libraries.  The import file would start with
9816    # the line `#! .'.  This would cause the generated library to
9817    # depend on `.', always an invalid library.  This was fixed in
9818    # development snapshots of GCC prior to 3.0.
9819    case $host_os in
9820      aix4 | aix4.[01] | aix4.[01].*)
9821      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9822	   echo ' yes '
9823	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9824	:
9825      else
9826	can_build_shared=no
9827      fi
9828      ;;
9829    esac
9830    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9831    # soname into executable. Probably we can add versioning support to
9832    # collect2, so additional links can be useful in future.
9833    if test "$aix_use_runtimelinking" = yes; then
9834      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9835      # instead of lib<name>.a to let people know that these are not
9836      # typical AIX shared libraries.
9837      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838    else
9839      # We preserve .a as extension for shared libraries through AIX4.2
9840      # and later when we are not doing run time linking.
9841      library_names_spec='${libname}${release}.a $libname.a'
9842      soname_spec='${libname}${release}${shared_ext}$major'
9843    fi
9844    shlibpath_var=LIBPATH
9845  fi
9846  ;;
9847
9848amigaos*)
9849  case $host_cpu in
9850  powerpc)
9851    # Since July 2007 AmigaOS4 officially supports .so libraries.
9852    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9853    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854    ;;
9855  m68k)
9856    library_names_spec='$libname.ixlibrary $libname.a'
9857    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9858    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'
9859    ;;
9860  esac
9861  ;;
9862
9863beos*)
9864  library_names_spec='${libname}${shared_ext}'
9865  dynamic_linker="$host_os ld.so"
9866  shlibpath_var=LIBRARY_PATH
9867  ;;
9868
9869bsdi[45]*)
9870  version_type=linux
9871  need_version=no
9872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873  soname_spec='${libname}${release}${shared_ext}$major'
9874  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9875  shlibpath_var=LD_LIBRARY_PATH
9876  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9877  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9878  # the default ld.so.conf also contains /usr/contrib/lib and
9879  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9880  # libtool to hard-code these into programs
9881  ;;
9882
9883cygwin* | mingw* | pw32* | cegcc*)
9884  version_type=windows
9885  shrext_cmds=".dll"
9886  need_version=no
9887  need_lib_prefix=no
9888
9889  case $GCC,$cc_basename in
9890  yes,*)
9891    # gcc
9892    library_names_spec='$libname.dll.a'
9893    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9894    postinstall_cmds='base_file=`basename \${file}`~
9895      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9896      dldir=$destdir/`dirname \$dlpath`~
9897      test -d \$dldir || mkdir -p \$dldir~
9898      $install_prog $dir/$dlname \$dldir/$dlname~
9899      chmod a+x \$dldir/$dlname~
9900      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9901        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9902      fi'
9903    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9904      dlpath=$dir/\$dldll~
9905       $RM \$dlpath'
9906    shlibpath_overrides_runpath=yes
9907
9908    case $host_os in
9909    cygwin*)
9910      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9911      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9912
9913      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9914      ;;
9915    mingw* | cegcc*)
9916      # MinGW DLLs use traditional 'lib' prefix
9917      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918      ;;
9919    pw32*)
9920      # pw32 DLLs use 'pw' prefix rather than 'lib'
9921      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9922      ;;
9923    esac
9924    dynamic_linker='Win32 ld.exe'
9925    ;;
9926
9927  *,cl*)
9928    # Native MSVC
9929    libname_spec='$name'
9930    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9931    library_names_spec='${libname}.dll.lib'
9932
9933    case $build_os in
9934    mingw*)
9935      sys_lib_search_path_spec=
9936      lt_save_ifs=$IFS
9937      IFS=';'
9938      for lt_path in $LIB
9939      do
9940        IFS=$lt_save_ifs
9941        # Let DOS variable expansion print the short 8.3 style file name.
9942        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9943        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9944      done
9945      IFS=$lt_save_ifs
9946      # Convert to MSYS style.
9947      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9948      ;;
9949    cygwin*)
9950      # Convert to unix form, then to dos form, then back to unix form
9951      # but this time dos style (no spaces!) so that the unix form looks
9952      # like /cygdrive/c/PROGRA~1:/cygdr...
9953      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9954      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9955      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9956      ;;
9957    *)
9958      sys_lib_search_path_spec="$LIB"
9959      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9960        # It is most probably a Windows format PATH.
9961        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9962      else
9963        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9964      fi
9965      # FIXME: find the short name or the path components, as spaces are
9966      # common. (e.g. "Program Files" -> "PROGRA~1")
9967      ;;
9968    esac
9969
9970    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9971    postinstall_cmds='base_file=`basename \${file}`~
9972      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9973      dldir=$destdir/`dirname \$dlpath`~
9974      test -d \$dldir || mkdir -p \$dldir~
9975      $install_prog $dir/$dlname \$dldir/$dlname'
9976    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9977      dlpath=$dir/\$dldll~
9978       $RM \$dlpath'
9979    shlibpath_overrides_runpath=yes
9980    dynamic_linker='Win32 link.exe'
9981    ;;
9982
9983  *)
9984    # Assume MSVC wrapper
9985    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9986    dynamic_linker='Win32 ld.exe'
9987    ;;
9988  esac
9989  # FIXME: first we should search . and the directory the executable is in
9990  shlibpath_var=PATH
9991  ;;
9992
9993darwin* | rhapsody*)
9994  dynamic_linker="$host_os dyld"
9995  version_type=darwin
9996  need_lib_prefix=no
9997  need_version=no
9998  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9999  soname_spec='${libname}${release}${major}$shared_ext'
10000  shlibpath_overrides_runpath=yes
10001  shlibpath_var=DYLD_LIBRARY_PATH
10002  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10003
10004  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10005  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10006  ;;
10007
10008dgux*)
10009  version_type=linux
10010  need_lib_prefix=no
10011  need_version=no
10012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10013  soname_spec='${libname}${release}${shared_ext}$major'
10014  shlibpath_var=LD_LIBRARY_PATH
10015  ;;
10016
10017freebsd1*)
10018  dynamic_linker=no
10019  ;;
10020
10021freebsd* | dragonfly*)
10022  # DragonFly does not have aout.  When/if they implement a new
10023  # versioning mechanism, adjust this.
10024  if test -x /usr/bin/objformat; then
10025    objformat=`/usr/bin/objformat`
10026  else
10027    case $host_os in
10028    freebsd[123]*) objformat=aout ;;
10029    *) objformat=elf ;;
10030    esac
10031  fi
10032  version_type=freebsd-$objformat
10033  case $version_type in
10034    freebsd-elf*)
10035      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10036      need_version=no
10037      need_lib_prefix=no
10038      ;;
10039    freebsd-*)
10040      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10041      need_version=yes
10042      ;;
10043  esac
10044  shlibpath_var=LD_LIBRARY_PATH
10045  case $host_os in
10046  freebsd2*)
10047    shlibpath_overrides_runpath=yes
10048    ;;
10049  freebsd3.[01]* | freebsdelf3.[01]*)
10050    shlibpath_overrides_runpath=yes
10051    hardcode_into_libs=yes
10052    ;;
10053  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10054  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10055    shlibpath_overrides_runpath=no
10056    hardcode_into_libs=yes
10057    ;;
10058  *) # from 4.6 on, and DragonFly
10059    shlibpath_overrides_runpath=yes
10060    hardcode_into_libs=yes
10061    ;;
10062  esac
10063  ;;
10064
10065gnu*)
10066  version_type=linux
10067  need_lib_prefix=no
10068  need_version=no
10069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10070  soname_spec='${libname}${release}${shared_ext}$major'
10071  shlibpath_var=LD_LIBRARY_PATH
10072  hardcode_into_libs=yes
10073  ;;
10074
10075haiku*)
10076  version_type=linux
10077  need_lib_prefix=no
10078  need_version=no
10079  dynamic_linker="$host_os runtime_loader"
10080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10081  soname_spec='${libname}${release}${shared_ext}$major'
10082  shlibpath_var=LIBRARY_PATH
10083  shlibpath_overrides_runpath=yes
10084  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10085  hardcode_into_libs=yes
10086  ;;
10087
10088hpux9* | hpux10* | hpux11*)
10089  # Give a soname corresponding to the major version so that dld.sl refuses to
10090  # link against other versions.
10091  version_type=sunos
10092  need_lib_prefix=no
10093  need_version=no
10094  case $host_cpu in
10095  ia64*)
10096    shrext_cmds='.so'
10097    hardcode_into_libs=yes
10098    dynamic_linker="$host_os dld.so"
10099    shlibpath_var=LD_LIBRARY_PATH
10100    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10101    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102    soname_spec='${libname}${release}${shared_ext}$major'
10103    if test "X$HPUX_IA64_MODE" = X32; then
10104      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10105    else
10106      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10107    fi
10108    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10109    ;;
10110  hppa*64*)
10111    shrext_cmds='.sl'
10112    hardcode_into_libs=yes
10113    dynamic_linker="$host_os dld.sl"
10114    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10115    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10116    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117    soname_spec='${libname}${release}${shared_ext}$major'
10118    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10119    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10120    ;;
10121  *)
10122    shrext_cmds='.sl'
10123    dynamic_linker="$host_os dld.sl"
10124    shlibpath_var=SHLIB_PATH
10125    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10126    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127    soname_spec='${libname}${release}${shared_ext}$major'
10128    ;;
10129  esac
10130  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10131  postinstall_cmds='chmod 555 $lib'
10132  # or fails outright, so override atomically:
10133  install_override_mode=555
10134  ;;
10135
10136interix[3-9]*)
10137  version_type=linux
10138  need_lib_prefix=no
10139  need_version=no
10140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10141  soname_spec='${libname}${release}${shared_ext}$major'
10142  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10143  shlibpath_var=LD_LIBRARY_PATH
10144  shlibpath_overrides_runpath=no
10145  hardcode_into_libs=yes
10146  ;;
10147
10148irix5* | irix6* | nonstopux*)
10149  case $host_os in
10150    nonstopux*) version_type=nonstopux ;;
10151    *)
10152	if test "$lt_cv_prog_gnu_ld" = yes; then
10153		version_type=linux
10154	else
10155		version_type=irix
10156	fi ;;
10157  esac
10158  need_lib_prefix=no
10159  need_version=no
10160  soname_spec='${libname}${release}${shared_ext}$major'
10161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10162  case $host_os in
10163  irix5* | nonstopux*)
10164    libsuff= shlibsuff=
10165    ;;
10166  *)
10167    case $LD in # libtool.m4 will add one of these switches to LD
10168    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10169      libsuff= shlibsuff= libmagic=32-bit;;
10170    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10171      libsuff=32 shlibsuff=N32 libmagic=N32;;
10172    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10173      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10174    *) libsuff= shlibsuff= libmagic=never-match;;
10175    esac
10176    ;;
10177  esac
10178  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10179  shlibpath_overrides_runpath=no
10180  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10181  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10182  hardcode_into_libs=yes
10183  ;;
10184
10185# No shared lib support for Linux oldld, aout, or coff.
10186linux*oldld* | linux*aout* | linux*coff*)
10187  dynamic_linker=no
10188  ;;
10189
10190# This must be Linux ELF.
10191linux* | k*bsd*-gnu | kopensolaris*-gnu)
10192  version_type=linux
10193  need_lib_prefix=no
10194  need_version=no
10195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196  soname_spec='${libname}${release}${shared_ext}$major'
10197  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10198  shlibpath_var=LD_LIBRARY_PATH
10199  shlibpath_overrides_runpath=no
10200
10201  # Some binutils ld are patched to set DT_RUNPATH
10202  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10203  $as_echo_n "(cached) " >&6
10204else
10205  lt_cv_shlibpath_overrides_runpath=no
10206    save_LDFLAGS=$LDFLAGS
10207    save_libdir=$libdir
10208    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10209	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10210    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211/* end confdefs.h.  */
10212
10213int
10214main ()
10215{
10216
10217  ;
10218  return 0;
10219}
10220_ACEOF
10221if ac_fn_c_try_link "$LINENO"; then :
10222  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10223  lt_cv_shlibpath_overrides_runpath=yes
10224fi
10225fi
10226rm -f core conftest.err conftest.$ac_objext \
10227    conftest$ac_exeext conftest.$ac_ext
10228    LDFLAGS=$save_LDFLAGS
10229    libdir=$save_libdir
10230
10231fi
10232
10233  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10234
10235  # This implies no fast_install, which is unacceptable.
10236  # Some rework will be needed to allow for fast_install
10237  # before this can be enabled.
10238  hardcode_into_libs=yes
10239
10240  # Append ld.so.conf contents to the search path
10241  if test -f /etc/ld.so.conf; then
10242    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' ' '`
10243    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10244  fi
10245
10246  # We used to test for /lib/ld.so.1 and disable shared libraries on
10247  # powerpc, because MkLinux only supported shared libraries with the
10248  # GNU dynamic linker.  Since this was broken with cross compilers,
10249  # most powerpc-linux boxes support dynamic linking these days and
10250  # people can always --disable-shared, the test was removed, and we
10251  # assume the GNU/Linux dynamic linker is in use.
10252  dynamic_linker='GNU/Linux ld.so'
10253  ;;
10254
10255netbsd*)
10256  version_type=sunos
10257  need_lib_prefix=no
10258  need_version=no
10259  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10260    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10261    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10262    dynamic_linker='NetBSD (a.out) ld.so'
10263  else
10264    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10265    soname_spec='${libname}${release}${shared_ext}$major'
10266    dynamic_linker='NetBSD ld.elf_so'
10267  fi
10268  shlibpath_var=LD_LIBRARY_PATH
10269  shlibpath_overrides_runpath=yes
10270  hardcode_into_libs=yes
10271  ;;
10272
10273newsos6)
10274  version_type=linux
10275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276  shlibpath_var=LD_LIBRARY_PATH
10277  shlibpath_overrides_runpath=yes
10278  ;;
10279
10280*nto* | *qnx*)
10281  version_type=qnx
10282  need_lib_prefix=no
10283  need_version=no
10284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285  soname_spec='${libname}${release}${shared_ext}$major'
10286  shlibpath_var=LD_LIBRARY_PATH
10287  shlibpath_overrides_runpath=no
10288  hardcode_into_libs=yes
10289  dynamic_linker='ldqnx.so'
10290  ;;
10291
10292openbsd*)
10293  version_type=sunos
10294  sys_lib_dlsearch_path_spec="/usr/lib"
10295  need_lib_prefix=no
10296  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10297  case $host_os in
10298    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10299    *)				need_version=no  ;;
10300  esac
10301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10302  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10303  shlibpath_var=LD_LIBRARY_PATH
10304  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10305    case $host_os in
10306      openbsd2.[89] | openbsd2.[89].*)
10307	shlibpath_overrides_runpath=no
10308	;;
10309      *)
10310	shlibpath_overrides_runpath=yes
10311	;;
10312      esac
10313  else
10314    shlibpath_overrides_runpath=yes
10315  fi
10316  ;;
10317
10318os2*)
10319  libname_spec='$name'
10320  shrext_cmds=".dll"
10321  need_lib_prefix=no
10322  library_names_spec='$libname${shared_ext} $libname.a'
10323  dynamic_linker='OS/2 ld.exe'
10324  shlibpath_var=LIBPATH
10325  ;;
10326
10327osf3* | osf4* | osf5*)
10328  version_type=osf
10329  need_lib_prefix=no
10330  need_version=no
10331  soname_spec='${libname}${release}${shared_ext}$major'
10332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333  shlibpath_var=LD_LIBRARY_PATH
10334  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10335  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10336  ;;
10337
10338rdos*)
10339  dynamic_linker=no
10340  ;;
10341
10342solaris*)
10343  version_type=linux
10344  need_lib_prefix=no
10345  need_version=no
10346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347  soname_spec='${libname}${release}${shared_ext}$major'
10348  shlibpath_var=LD_LIBRARY_PATH
10349  shlibpath_overrides_runpath=yes
10350  hardcode_into_libs=yes
10351  # ldd complains unless libraries are executable
10352  postinstall_cmds='chmod +x $lib'
10353  ;;
10354
10355sunos4*)
10356  version_type=sunos
10357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10358  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10359  shlibpath_var=LD_LIBRARY_PATH
10360  shlibpath_overrides_runpath=yes
10361  if test "$with_gnu_ld" = yes; then
10362    need_lib_prefix=no
10363  fi
10364  need_version=yes
10365  ;;
10366
10367sysv4 | sysv4.3*)
10368  version_type=linux
10369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370  soname_spec='${libname}${release}${shared_ext}$major'
10371  shlibpath_var=LD_LIBRARY_PATH
10372  case $host_vendor in
10373    sni)
10374      shlibpath_overrides_runpath=no
10375      need_lib_prefix=no
10376      runpath_var=LD_RUN_PATH
10377      ;;
10378    siemens)
10379      need_lib_prefix=no
10380      ;;
10381    motorola)
10382      need_lib_prefix=no
10383      need_version=no
10384      shlibpath_overrides_runpath=no
10385      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10386      ;;
10387  esac
10388  ;;
10389
10390sysv4*MP*)
10391  if test -d /usr/nec ;then
10392    version_type=linux
10393    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10394    soname_spec='$libname${shared_ext}.$major'
10395    shlibpath_var=LD_LIBRARY_PATH
10396  fi
10397  ;;
10398
10399sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10400  version_type=freebsd-elf
10401  need_lib_prefix=no
10402  need_version=no
10403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10404  soname_spec='${libname}${release}${shared_ext}$major'
10405  shlibpath_var=LD_LIBRARY_PATH
10406  shlibpath_overrides_runpath=yes
10407  hardcode_into_libs=yes
10408  if test "$with_gnu_ld" = yes; then
10409    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10410  else
10411    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10412    case $host_os in
10413      sco3.2v5*)
10414        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10415	;;
10416    esac
10417  fi
10418  sys_lib_dlsearch_path_spec='/usr/lib'
10419  ;;
10420
10421tpf*)
10422  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10423  version_type=linux
10424  need_lib_prefix=no
10425  need_version=no
10426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427  shlibpath_var=LD_LIBRARY_PATH
10428  shlibpath_overrides_runpath=no
10429  hardcode_into_libs=yes
10430  ;;
10431
10432uts4*)
10433  version_type=linux
10434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435  soname_spec='${libname}${release}${shared_ext}$major'
10436  shlibpath_var=LD_LIBRARY_PATH
10437  ;;
10438
10439*)
10440  dynamic_linker=no
10441  ;;
10442esac
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10444$as_echo "$dynamic_linker" >&6; }
10445test "$dynamic_linker" = no && can_build_shared=no
10446
10447variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10448if test "$GCC" = yes; then
10449  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10450fi
10451
10452if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10453  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10454fi
10455if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10456  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10457fi
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10551$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10552hardcode_action=
10553if test -n "$hardcode_libdir_flag_spec" ||
10554   test -n "$runpath_var" ||
10555   test "X$hardcode_automatic" = "Xyes" ; then
10556
10557  # We can hardcode non-existent directories.
10558  if test "$hardcode_direct" != no &&
10559     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10560     # have to relink, otherwise we might link with an installed library
10561     # when we should be linking with a yet-to-be-installed one
10562     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10563     test "$hardcode_minus_L" != no; then
10564    # Linking always hardcodes the temporary library directory.
10565    hardcode_action=relink
10566  else
10567    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10568    hardcode_action=immediate
10569  fi
10570else
10571  # We cannot hardcode anything, or else we can only hardcode existing
10572  # directories.
10573  hardcode_action=unsupported
10574fi
10575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10576$as_echo "$hardcode_action" >&6; }
10577
10578if test "$hardcode_action" = relink ||
10579   test "$inherit_rpath" = yes; then
10580  # Fast installation is not supported
10581  enable_fast_install=no
10582elif test "$shlibpath_overrides_runpath" = yes ||
10583     test "$enable_shared" = no; then
10584  # Fast installation is not necessary
10585  enable_fast_install=needless
10586fi
10587
10588
10589
10590
10591
10592
10593  if test "x$enable_dlopen" != xyes; then
10594  enable_dlopen=unknown
10595  enable_dlopen_self=unknown
10596  enable_dlopen_self_static=unknown
10597else
10598  lt_cv_dlopen=no
10599  lt_cv_dlopen_libs=
10600
10601  case $host_os in
10602  beos*)
10603    lt_cv_dlopen="load_add_on"
10604    lt_cv_dlopen_libs=
10605    lt_cv_dlopen_self=yes
10606    ;;
10607
10608  mingw* | pw32* | cegcc*)
10609    lt_cv_dlopen="LoadLibrary"
10610    lt_cv_dlopen_libs=
10611    ;;
10612
10613  cygwin*)
10614    lt_cv_dlopen="dlopen"
10615    lt_cv_dlopen_libs=
10616    ;;
10617
10618  darwin*)
10619  # if libdl is installed we need to link against it
10620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10621$as_echo_n "checking for dlopen in -ldl... " >&6; }
10622if ${ac_cv_lib_dl_dlopen+:} false; then :
10623  $as_echo_n "(cached) " >&6
10624else
10625  ac_check_lib_save_LIBS=$LIBS
10626LIBS="-ldl  $LIBS"
10627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628/* end confdefs.h.  */
10629
10630/* Override any GCC internal prototype to avoid an error.
10631   Use char because int might match the return type of a GCC
10632   builtin and then its argument prototype would still apply.  */
10633#ifdef __cplusplus
10634extern "C"
10635#endif
10636char dlopen ();
10637int
10638main ()
10639{
10640return dlopen ();
10641  ;
10642  return 0;
10643}
10644_ACEOF
10645if ac_fn_c_try_link "$LINENO"; then :
10646  ac_cv_lib_dl_dlopen=yes
10647else
10648  ac_cv_lib_dl_dlopen=no
10649fi
10650rm -f core conftest.err conftest.$ac_objext \
10651    conftest$ac_exeext conftest.$ac_ext
10652LIBS=$ac_check_lib_save_LIBS
10653fi
10654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10655$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10656if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10657  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10658else
10659
10660    lt_cv_dlopen="dyld"
10661    lt_cv_dlopen_libs=
10662    lt_cv_dlopen_self=yes
10663
10664fi
10665
10666    ;;
10667
10668  *)
10669    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10670if test "x$ac_cv_func_shl_load" = xyes; then :
10671  lt_cv_dlopen="shl_load"
10672else
10673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10674$as_echo_n "checking for shl_load in -ldld... " >&6; }
10675if ${ac_cv_lib_dld_shl_load+:} false; then :
10676  $as_echo_n "(cached) " >&6
10677else
10678  ac_check_lib_save_LIBS=$LIBS
10679LIBS="-ldld  $LIBS"
10680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681/* end confdefs.h.  */
10682
10683/* Override any GCC internal prototype to avoid an error.
10684   Use char because int might match the return type of a GCC
10685   builtin and then its argument prototype would still apply.  */
10686#ifdef __cplusplus
10687extern "C"
10688#endif
10689char shl_load ();
10690int
10691main ()
10692{
10693return shl_load ();
10694  ;
10695  return 0;
10696}
10697_ACEOF
10698if ac_fn_c_try_link "$LINENO"; then :
10699  ac_cv_lib_dld_shl_load=yes
10700else
10701  ac_cv_lib_dld_shl_load=no
10702fi
10703rm -f core conftest.err conftest.$ac_objext \
10704    conftest$ac_exeext conftest.$ac_ext
10705LIBS=$ac_check_lib_save_LIBS
10706fi
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10708$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10709if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10710  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10711else
10712  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10713if test "x$ac_cv_func_dlopen" = xyes; then :
10714  lt_cv_dlopen="dlopen"
10715else
10716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10717$as_echo_n "checking for dlopen in -ldl... " >&6; }
10718if ${ac_cv_lib_dl_dlopen+:} false; then :
10719  $as_echo_n "(cached) " >&6
10720else
10721  ac_check_lib_save_LIBS=$LIBS
10722LIBS="-ldl  $LIBS"
10723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724/* end confdefs.h.  */
10725
10726/* Override any GCC internal prototype to avoid an error.
10727   Use char because int might match the return type of a GCC
10728   builtin and then its argument prototype would still apply.  */
10729#ifdef __cplusplus
10730extern "C"
10731#endif
10732char dlopen ();
10733int
10734main ()
10735{
10736return dlopen ();
10737  ;
10738  return 0;
10739}
10740_ACEOF
10741if ac_fn_c_try_link "$LINENO"; then :
10742  ac_cv_lib_dl_dlopen=yes
10743else
10744  ac_cv_lib_dl_dlopen=no
10745fi
10746rm -f core conftest.err conftest.$ac_objext \
10747    conftest$ac_exeext conftest.$ac_ext
10748LIBS=$ac_check_lib_save_LIBS
10749fi
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10751$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10752if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10753  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10754else
10755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10756$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10757if ${ac_cv_lib_svld_dlopen+:} false; then :
10758  $as_echo_n "(cached) " >&6
10759else
10760  ac_check_lib_save_LIBS=$LIBS
10761LIBS="-lsvld  $LIBS"
10762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763/* end confdefs.h.  */
10764
10765/* Override any GCC internal prototype to avoid an error.
10766   Use char because int might match the return type of a GCC
10767   builtin and then its argument prototype would still apply.  */
10768#ifdef __cplusplus
10769extern "C"
10770#endif
10771char dlopen ();
10772int
10773main ()
10774{
10775return dlopen ();
10776  ;
10777  return 0;
10778}
10779_ACEOF
10780if ac_fn_c_try_link "$LINENO"; then :
10781  ac_cv_lib_svld_dlopen=yes
10782else
10783  ac_cv_lib_svld_dlopen=no
10784fi
10785rm -f core conftest.err conftest.$ac_objext \
10786    conftest$ac_exeext conftest.$ac_ext
10787LIBS=$ac_check_lib_save_LIBS
10788fi
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10790$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10791if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10792  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10793else
10794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10795$as_echo_n "checking for dld_link in -ldld... " >&6; }
10796if ${ac_cv_lib_dld_dld_link+:} false; then :
10797  $as_echo_n "(cached) " >&6
10798else
10799  ac_check_lib_save_LIBS=$LIBS
10800LIBS="-ldld  $LIBS"
10801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802/* end confdefs.h.  */
10803
10804/* Override any GCC internal prototype to avoid an error.
10805   Use char because int might match the return type of a GCC
10806   builtin and then its argument prototype would still apply.  */
10807#ifdef __cplusplus
10808extern "C"
10809#endif
10810char dld_link ();
10811int
10812main ()
10813{
10814return dld_link ();
10815  ;
10816  return 0;
10817}
10818_ACEOF
10819if ac_fn_c_try_link "$LINENO"; then :
10820  ac_cv_lib_dld_dld_link=yes
10821else
10822  ac_cv_lib_dld_dld_link=no
10823fi
10824rm -f core conftest.err conftest.$ac_objext \
10825    conftest$ac_exeext conftest.$ac_ext
10826LIBS=$ac_check_lib_save_LIBS
10827fi
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10829$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10830if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10831  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10832fi
10833
10834
10835fi
10836
10837
10838fi
10839
10840
10841fi
10842
10843
10844fi
10845
10846
10847fi
10848
10849    ;;
10850  esac
10851
10852  if test "x$lt_cv_dlopen" != xno; then
10853    enable_dlopen=yes
10854  else
10855    enable_dlopen=no
10856  fi
10857
10858  case $lt_cv_dlopen in
10859  dlopen)
10860    save_CPPFLAGS="$CPPFLAGS"
10861    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10862
10863    save_LDFLAGS="$LDFLAGS"
10864    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10865
10866    save_LIBS="$LIBS"
10867    LIBS="$lt_cv_dlopen_libs $LIBS"
10868
10869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10870$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10871if ${lt_cv_dlopen_self+:} false; then :
10872  $as_echo_n "(cached) " >&6
10873else
10874  	  if test "$cross_compiling" = yes; then :
10875  lt_cv_dlopen_self=cross
10876else
10877  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10878  lt_status=$lt_dlunknown
10879  cat > conftest.$ac_ext <<_LT_EOF
10880#line $LINENO "configure"
10881#include "confdefs.h"
10882
10883#if HAVE_DLFCN_H
10884#include <dlfcn.h>
10885#endif
10886
10887#include <stdio.h>
10888
10889#ifdef RTLD_GLOBAL
10890#  define LT_DLGLOBAL		RTLD_GLOBAL
10891#else
10892#  ifdef DL_GLOBAL
10893#    define LT_DLGLOBAL		DL_GLOBAL
10894#  else
10895#    define LT_DLGLOBAL		0
10896#  endif
10897#endif
10898
10899/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10900   find out it does not work in some platform. */
10901#ifndef LT_DLLAZY_OR_NOW
10902#  ifdef RTLD_LAZY
10903#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10904#  else
10905#    ifdef DL_LAZY
10906#      define LT_DLLAZY_OR_NOW		DL_LAZY
10907#    else
10908#      ifdef RTLD_NOW
10909#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10910#      else
10911#        ifdef DL_NOW
10912#          define LT_DLLAZY_OR_NOW	DL_NOW
10913#        else
10914#          define LT_DLLAZY_OR_NOW	0
10915#        endif
10916#      endif
10917#    endif
10918#  endif
10919#endif
10920
10921/* When -fvisbility=hidden is used, assume the code has been annotated
10922   correspondingly for the symbols needed.  */
10923#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10924int fnord () __attribute__((visibility("default")));
10925#endif
10926
10927int fnord () { return 42; }
10928int main ()
10929{
10930  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10931  int status = $lt_dlunknown;
10932
10933  if (self)
10934    {
10935      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10936      else
10937        {
10938	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10939          else puts (dlerror ());
10940	}
10941      /* dlclose (self); */
10942    }
10943  else
10944    puts (dlerror ());
10945
10946  return status;
10947}
10948_LT_EOF
10949  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10950  (eval $ac_link) 2>&5
10951  ac_status=$?
10952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10953  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10954    (./conftest; exit; ) >&5 2>/dev/null
10955    lt_status=$?
10956    case x$lt_status in
10957      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10958      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10959      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10960    esac
10961  else :
10962    # compilation failed
10963    lt_cv_dlopen_self=no
10964  fi
10965fi
10966rm -fr conftest*
10967
10968
10969fi
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10971$as_echo "$lt_cv_dlopen_self" >&6; }
10972
10973    if test "x$lt_cv_dlopen_self" = xyes; then
10974      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10975      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10976$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10977if ${lt_cv_dlopen_self_static+:} false; then :
10978  $as_echo_n "(cached) " >&6
10979else
10980  	  if test "$cross_compiling" = yes; then :
10981  lt_cv_dlopen_self_static=cross
10982else
10983  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10984  lt_status=$lt_dlunknown
10985  cat > conftest.$ac_ext <<_LT_EOF
10986#line $LINENO "configure"
10987#include "confdefs.h"
10988
10989#if HAVE_DLFCN_H
10990#include <dlfcn.h>
10991#endif
10992
10993#include <stdio.h>
10994
10995#ifdef RTLD_GLOBAL
10996#  define LT_DLGLOBAL		RTLD_GLOBAL
10997#else
10998#  ifdef DL_GLOBAL
10999#    define LT_DLGLOBAL		DL_GLOBAL
11000#  else
11001#    define LT_DLGLOBAL		0
11002#  endif
11003#endif
11004
11005/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11006   find out it does not work in some platform. */
11007#ifndef LT_DLLAZY_OR_NOW
11008#  ifdef RTLD_LAZY
11009#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11010#  else
11011#    ifdef DL_LAZY
11012#      define LT_DLLAZY_OR_NOW		DL_LAZY
11013#    else
11014#      ifdef RTLD_NOW
11015#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11016#      else
11017#        ifdef DL_NOW
11018#          define LT_DLLAZY_OR_NOW	DL_NOW
11019#        else
11020#          define LT_DLLAZY_OR_NOW	0
11021#        endif
11022#      endif
11023#    endif
11024#  endif
11025#endif
11026
11027/* When -fvisbility=hidden is used, assume the code has been annotated
11028   correspondingly for the symbols needed.  */
11029#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11030int fnord () __attribute__((visibility("default")));
11031#endif
11032
11033int fnord () { return 42; }
11034int main ()
11035{
11036  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11037  int status = $lt_dlunknown;
11038
11039  if (self)
11040    {
11041      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11042      else
11043        {
11044	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11045          else puts (dlerror ());
11046	}
11047      /* dlclose (self); */
11048    }
11049  else
11050    puts (dlerror ());
11051
11052  return status;
11053}
11054_LT_EOF
11055  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11056  (eval $ac_link) 2>&5
11057  ac_status=$?
11058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11059  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11060    (./conftest; exit; ) >&5 2>/dev/null
11061    lt_status=$?
11062    case x$lt_status in
11063      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11064      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11065      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11066    esac
11067  else :
11068    # compilation failed
11069    lt_cv_dlopen_self_static=no
11070  fi
11071fi
11072rm -fr conftest*
11073
11074
11075fi
11076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11077$as_echo "$lt_cv_dlopen_self_static" >&6; }
11078    fi
11079
11080    CPPFLAGS="$save_CPPFLAGS"
11081    LDFLAGS="$save_LDFLAGS"
11082    LIBS="$save_LIBS"
11083    ;;
11084  esac
11085
11086  case $lt_cv_dlopen_self in
11087  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11088  *) enable_dlopen_self=unknown ;;
11089  esac
11090
11091  case $lt_cv_dlopen_self_static in
11092  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11093  *) enable_dlopen_self_static=unknown ;;
11094  esac
11095fi
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113striplib=
11114old_striplib=
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11116$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11117if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11118  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11119  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11121$as_echo "yes" >&6; }
11122else
11123# FIXME - insert some real tests, host_os isn't really good enough
11124  case $host_os in
11125  darwin*)
11126    if test -n "$STRIP" ; then
11127      striplib="$STRIP -x"
11128      old_striplib="$STRIP -S"
11129      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11130$as_echo "yes" >&6; }
11131    else
11132      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133$as_echo "no" >&6; }
11134    fi
11135    ;;
11136  *)
11137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138$as_echo "no" >&6; }
11139    ;;
11140  esac
11141fi
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154  # Report which library types will actually be built
11155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11156$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11158$as_echo "$can_build_shared" >&6; }
11159
11160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11161$as_echo_n "checking whether to build shared libraries... " >&6; }
11162  test "$can_build_shared" = "no" && enable_shared=no
11163
11164  # On AIX, shared libraries and static libraries use the same namespace, and
11165  # are all built from PIC.
11166  case $host_os in
11167  aix3*)
11168    test "$enable_shared" = yes && enable_static=no
11169    if test -n "$RANLIB"; then
11170      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11171      postinstall_cmds='$RANLIB $lib'
11172    fi
11173    ;;
11174
11175  aix[4-9]*)
11176    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11177      test "$enable_shared" = yes && enable_static=no
11178    fi
11179    ;;
11180  esac
11181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11182$as_echo "$enable_shared" >&6; }
11183
11184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11185$as_echo_n "checking whether to build static libraries... " >&6; }
11186  # Make sure either enable_shared or enable_static is yes.
11187  test "$enable_shared" = yes || enable_static=yes
11188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11189$as_echo "$enable_static" >&6; }
11190
11191
11192
11193
11194fi
11195ac_ext=c
11196ac_cpp='$CPP $CPPFLAGS'
11197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11199ac_compiler_gnu=$ac_cv_c_compiler_gnu
11200
11201CC="$lt_save_CC"
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215        ac_config_commands="$ac_config_commands libtool"
11216
11217
11218
11219
11220# Only expand once:
11221
11222
11223
11224# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11237$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11238if ${ac_cv_prog_cc_c99+:} false; then :
11239  $as_echo_n "(cached) " >&6
11240else
11241  ac_cv_prog_cc_c99=no
11242ac_save_CC=$CC
11243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244/* end confdefs.h.  */
11245#include <stdarg.h>
11246#include <stdbool.h>
11247#include <stdlib.h>
11248#include <wchar.h>
11249#include <stdio.h>
11250
11251// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11252#define debug(...) fprintf (stderr, __VA_ARGS__)
11253#define showlist(...) puts (#__VA_ARGS__)
11254#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11255static void
11256test_varargs_macros (void)
11257{
11258  int x = 1234;
11259  int y = 5678;
11260  debug ("Flag");
11261  debug ("X = %d\n", x);
11262  showlist (The first, second, and third items.);
11263  report (x>y, "x is %d but y is %d", x, y);
11264}
11265
11266// Check long long types.
11267#define BIG64 18446744073709551615ull
11268#define BIG32 4294967295ul
11269#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11270#if !BIG_OK
11271  your preprocessor is broken;
11272#endif
11273#if BIG_OK
11274#else
11275  your preprocessor is broken;
11276#endif
11277static long long int bignum = -9223372036854775807LL;
11278static unsigned long long int ubignum = BIG64;
11279
11280struct incomplete_array
11281{
11282  int datasize;
11283  double data[];
11284};
11285
11286struct named_init {
11287  int number;
11288  const wchar_t *name;
11289  double average;
11290};
11291
11292typedef const char *ccp;
11293
11294static inline int
11295test_restrict (ccp restrict text)
11296{
11297  // See if C++-style comments work.
11298  // Iterate through items via the restricted pointer.
11299  // Also check for declarations in for loops.
11300  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11301    continue;
11302  return 0;
11303}
11304
11305// Check varargs and va_copy.
11306static void
11307test_varargs (const char *format, ...)
11308{
11309  va_list args;
11310  va_start (args, format);
11311  va_list args_copy;
11312  va_copy (args_copy, args);
11313
11314  const char *str;
11315  int number;
11316  float fnumber;
11317
11318  while (*format)
11319    {
11320      switch (*format++)
11321	{
11322	case 's': // string
11323	  str = va_arg (args_copy, const char *);
11324	  break;
11325	case 'd': // int
11326	  number = va_arg (args_copy, int);
11327	  break;
11328	case 'f': // float
11329	  fnumber = va_arg (args_copy, double);
11330	  break;
11331	default:
11332	  break;
11333	}
11334    }
11335  va_end (args_copy);
11336  va_end (args);
11337}
11338
11339int
11340main ()
11341{
11342
11343  // Check bool.
11344  _Bool success = false;
11345
11346  // Check restrict.
11347  if (test_restrict ("String literal") == 0)
11348    success = true;
11349  char *restrict newvar = "Another string";
11350
11351  // Check varargs.
11352  test_varargs ("s, d' f .", "string", 65, 34.234);
11353  test_varargs_macros ();
11354
11355  // Check flexible array members.
11356  struct incomplete_array *ia =
11357    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11358  ia->datasize = 10;
11359  for (int i = 0; i < ia->datasize; ++i)
11360    ia->data[i] = i * 1.234;
11361
11362  // Check named initializers.
11363  struct named_init ni = {
11364    .number = 34,
11365    .name = L"Test wide string",
11366    .average = 543.34343,
11367  };
11368
11369  ni.number = 58;
11370
11371  int dynamic_array[ni.number];
11372  dynamic_array[ni.number - 1] = 543;
11373
11374  // work around unused variable warnings
11375  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11376	  || dynamic_array[ni.number - 1] != 543);
11377
11378  ;
11379  return 0;
11380}
11381_ACEOF
11382for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11383do
11384  CC="$ac_save_CC $ac_arg"
11385  if ac_fn_c_try_compile "$LINENO"; then :
11386  ac_cv_prog_cc_c99=$ac_arg
11387fi
11388rm -f core conftest.err conftest.$ac_objext
11389  test "x$ac_cv_prog_cc_c99" != "xno" && break
11390done
11391rm -f conftest.$ac_ext
11392CC=$ac_save_CC
11393
11394fi
11395# AC_CACHE_VAL
11396case "x$ac_cv_prog_cc_c99" in
11397  x)
11398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11399$as_echo "none needed" >&6; } ;;
11400  xno)
11401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11402$as_echo "unsupported" >&6; } ;;
11403  *)
11404    CC="$CC $ac_cv_prog_cc_c99"
11405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11406$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11407esac
11408if test "x$ac_cv_prog_cc_c99" != xno; then :
11409
11410fi
11411
11412
11413
11414
11415ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11416if test "x$ac_cv_have_decl___clang__" = xyes; then :
11417  CLANGCC="yes"
11418else
11419  CLANGCC="no"
11420fi
11421
11422ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11423if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11424  INTELCC="yes"
11425else
11426  INTELCC="no"
11427fi
11428
11429ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11430if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11431  SUNCC="yes"
11432else
11433  SUNCC="no"
11434fi
11435
11436
11437
11438
11439if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11440	if test -n "$ac_tool_prefix"; then
11441  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11442set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444$as_echo_n "checking for $ac_word... " >&6; }
11445if ${ac_cv_path_PKG_CONFIG+:} false; then :
11446  $as_echo_n "(cached) " >&6
11447else
11448  case $PKG_CONFIG in
11449  [\\/]* | ?:[\\/]*)
11450  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11451  ;;
11452  *)
11453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454for as_dir in $PATH
11455do
11456  IFS=$as_save_IFS
11457  test -z "$as_dir" && as_dir=.
11458    for ac_exec_ext in '' $ac_executable_extensions; do
11459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11460    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11462    break 2
11463  fi
11464done
11465  done
11466IFS=$as_save_IFS
11467
11468  ;;
11469esac
11470fi
11471PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11472if test -n "$PKG_CONFIG"; then
11473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11474$as_echo "$PKG_CONFIG" >&6; }
11475else
11476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477$as_echo "no" >&6; }
11478fi
11479
11480
11481fi
11482if test -z "$ac_cv_path_PKG_CONFIG"; then
11483  ac_pt_PKG_CONFIG=$PKG_CONFIG
11484  # Extract the first word of "pkg-config", so it can be a program name with args.
11485set dummy pkg-config; ac_word=$2
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487$as_echo_n "checking for $ac_word... " >&6; }
11488if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11489  $as_echo_n "(cached) " >&6
11490else
11491  case $ac_pt_PKG_CONFIG in
11492  [\\/]* | ?:[\\/]*)
11493  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11494  ;;
11495  *)
11496  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497for as_dir in $PATH
11498do
11499  IFS=$as_save_IFS
11500  test -z "$as_dir" && as_dir=.
11501    for ac_exec_ext in '' $ac_executable_extensions; do
11502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11503    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505    break 2
11506  fi
11507done
11508  done
11509IFS=$as_save_IFS
11510
11511  ;;
11512esac
11513fi
11514ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11515if test -n "$ac_pt_PKG_CONFIG"; then
11516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11517$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11518else
11519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520$as_echo "no" >&6; }
11521fi
11522
11523  if test "x$ac_pt_PKG_CONFIG" = x; then
11524    PKG_CONFIG=""
11525  else
11526    case $cross_compiling:$ac_tool_warned in
11527yes:)
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11530ac_tool_warned=yes ;;
11531esac
11532    PKG_CONFIG=$ac_pt_PKG_CONFIG
11533  fi
11534else
11535  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11536fi
11537
11538fi
11539if test -n "$PKG_CONFIG"; then
11540	_pkg_min_version=0.9.0
11541	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11542$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11543	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11545$as_echo "yes" >&6; }
11546	else
11547		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548$as_echo "no" >&6; }
11549		PKG_CONFIG=""
11550	fi
11551
11552fi
11553
11554
11555
11556
11557
11558if  test "x$GCC" = xyes ; then
11559    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11560-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11561-Wbad-function-cast -Wformat=2"
11562    case `$CC -dumpversion` in
11563    3.4.* | 4.*)
11564	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11565	;;
11566    esac
11567else
11568    if test "x$SUNCC" = "xyes"; then
11569	CWARNFLAGS="-v"
11570    fi
11571fi
11572
11573
11574
11575# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
11576
11577
11578
11579
11580# Check whether --enable-strict-compilation was given.
11581if test "${enable_strict_compilation+set}" = set; then :
11582  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11583else
11584  STRICT_COMPILE=no
11585fi
11586
11587if test "x$GCC" = xyes ; then
11588    STRICT_CFLAGS="-pedantic -Werror"
11589    # Add -Werror=attributes if supported (gcc 4.2 & later)
11590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11591$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11592    save_CFLAGS="$CFLAGS"
11593    CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
11594    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595/* end confdefs.h.  */
11596return 0;
11597_ACEOF
11598if ac_fn_c_try_compile "$LINENO"; then :
11599  STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11600		       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11601$as_echo "yes" >&6; }
11602else
11603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604$as_echo "no" >&6; }
11605fi
11606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607    CFLAGS="$save_CFLAGS"
11608elif test "x$SUNCC" = "xyes"; then
11609    STRICT_CFLAGS="-errwarn"
11610elif test "x$INTELCC" = "xyes"; then
11611    STRICT_CFLAGS="-Werror"
11612fi
11613if test "x$STRICT_COMPILE" = "xyes"; then
11614    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11615fi
11616
11617
11618
11619
11620
11621cat >>confdefs.h <<_ACEOF
11622#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11623_ACEOF
11624
11625	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11626	if test "x$PVM" = "x"; then
11627		PVM="0"
11628	fi
11629
11630cat >>confdefs.h <<_ACEOF
11631#define PACKAGE_VERSION_MINOR $PVM
11632_ACEOF
11633
11634	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11635	if test "x$PVP" = "x"; then
11636		PVP="0"
11637	fi
11638
11639cat >>confdefs.h <<_ACEOF
11640#define PACKAGE_VERSION_PATCHLEVEL $PVP
11641_ACEOF
11642
11643
11644
11645CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11646mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11647|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11648echo 'git directory not found: installing possibly empty changelog.' >&2)"
11649
11650
11651
11652
11653macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11654INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11655mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11656|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11657echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11658
11659
11660
11661
11662
11663
11664if test x$APP_MAN_SUFFIX = x    ; then
11665    APP_MAN_SUFFIX=1
11666fi
11667if test x$APP_MAN_DIR = x    ; then
11668    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11669fi
11670
11671if test x$LIB_MAN_SUFFIX = x    ; then
11672    LIB_MAN_SUFFIX=3
11673fi
11674if test x$LIB_MAN_DIR = x    ; then
11675    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11676fi
11677
11678if test x$FILE_MAN_SUFFIX = x    ; then
11679    case $host_os in
11680	solaris*)	FILE_MAN_SUFFIX=4  ;;
11681	*)		FILE_MAN_SUFFIX=5  ;;
11682    esac
11683fi
11684if test x$FILE_MAN_DIR = x    ; then
11685    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11686fi
11687
11688if test x$MISC_MAN_SUFFIX = x    ; then
11689    case $host_os in
11690	solaris*)	MISC_MAN_SUFFIX=5  ;;
11691	*)		MISC_MAN_SUFFIX=7  ;;
11692    esac
11693fi
11694if test x$MISC_MAN_DIR = x    ; then
11695    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11696fi
11697
11698if test x$DRIVER_MAN_SUFFIX = x    ; then
11699    case $host_os in
11700	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11701	*)		DRIVER_MAN_SUFFIX=4  ;;
11702    esac
11703fi
11704if test x$DRIVER_MAN_DIR = x    ; then
11705    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11706fi
11707
11708if test x$ADMIN_MAN_SUFFIX = x    ; then
11709    case $host_os in
11710	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11711	*)		ADMIN_MAN_SUFFIX=8  ;;
11712    esac
11713fi
11714if test x$ADMIN_MAN_DIR = x    ; then
11715    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11716fi
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732XORG_MAN_PAGE="X Version 11"
11733
11734MAN_SUBSTS="\
11735	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11736	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11737	-e 's|__xservername__|Xorg|g' \
11738	-e 's|__xconfigfile__|xorg.conf|g' \
11739	-e 's|__projectroot__|\$(prefix)|g' \
11740	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11741	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11742	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11743	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11744	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11745	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11746	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11747
11748
11749
11750# Check whether --enable-silent-rules was given.
11751if test "${enable_silent_rules+set}" = set; then :
11752  enableval=$enable_silent_rules;
11753fi
11754
11755case $enable_silent_rules in
11756yes) AM_DEFAULT_VERBOSITY=0;;
11757no)  AM_DEFAULT_VERBOSITY=1;;
11758*)   AM_DEFAULT_VERBOSITY=0;;
11759esac
11760AM_BACKSLASH='\'
11761
11762
11763
11764# Check whether --enable-malloc0returnsnull was given.
11765if test "${enable_malloc0returnsnull+set}" = set; then :
11766  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
11767else
11768  MALLOC_ZERO_RETURNS_NULL=auto
11769fi
11770
11771
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
11773$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
11774if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
11775	if test "$cross_compiling" = yes; then :
11776  MALLOC_ZERO_RETURNS_NULL=yes
11777else
11778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779/* end confdefs.h.  */
11780
11781#include <stdlib.h>
11782
11783int
11784main ()
11785{
11786
11787    char *m0, *r0, *c0, *p;
11788    m0 = malloc(0);
11789    p = malloc(10);
11790    r0 = realloc(p,0);
11791    c0 = calloc(0,10);
11792    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
11793
11794  ;
11795  return 0;
11796}
11797_ACEOF
11798if ac_fn_c_try_run "$LINENO"; then :
11799  MALLOC_ZERO_RETURNS_NULL=yes
11800else
11801  MALLOC_ZERO_RETURNS_NULL=no
11802fi
11803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11804  conftest.$ac_objext conftest.beam conftest.$ac_ext
11805fi
11806
11807fi
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
11809$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
11810
11811if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
11812	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
11813	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
11814	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
11815else
11816	MALLOC_ZERO_CFLAGS=""
11817	XMALLOC_ZERO_CFLAGS=""
11818	XTMALLOC_ZERO_CFLAGS=""
11819fi
11820
11821
11822
11823
11824
11825
11826# Check randr configuration, strip extra digits from package version to
11827# find the required protocol version
11828RANDR_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
11829
11830
11831# Obtain compiler/linker options for depedencies
11832
11833pkg_failed=no
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR" >&5
11835$as_echo_n "checking for RANDR... " >&6; }
11836
11837if test -n "$RANDR_CFLAGS"; then
11838    pkg_cv_RANDR_CFLAGS="$RANDR_CFLAGS"
11839 elif test -n "$PKG_CONFIG"; then
11840    if test -n "$PKG_CONFIG" && \
11841    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5
11842  ($PKG_CONFIG --exists --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5
11843  ac_status=$?
11844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11845  test $ac_status = 0; }; then
11846  pkg_cv_RANDR_CFLAGS=`$PKG_CONFIG --cflags "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null`
11847else
11848  pkg_failed=yes
11849fi
11850 else
11851    pkg_failed=untried
11852fi
11853if test -n "$RANDR_LIBS"; then
11854    pkg_cv_RANDR_LIBS="$RANDR_LIBS"
11855 elif test -n "$PKG_CONFIG"; then
11856    if test -n "$PKG_CONFIG" && \
11857    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5
11858  ($PKG_CONFIG --exists --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5
11859  ac_status=$?
11860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11861  test $ac_status = 0; }; then
11862  pkg_cv_RANDR_LIBS=`$PKG_CONFIG --libs "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null`
11863else
11864  pkg_failed=yes
11865fi
11866 else
11867    pkg_failed=untried
11868fi
11869
11870
11871
11872if test $pkg_failed = yes; then
11873
11874if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11875        _pkg_short_errors_supported=yes
11876else
11877        _pkg_short_errors_supported=no
11878fi
11879        if test $_pkg_short_errors_supported = yes; then
11880	        RANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1`
11881        else
11882	        RANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1`
11883        fi
11884	# Put the nasty error message in config.log where it belongs
11885	echo "$RANDR_PKG_ERRORS" >&5
11886
11887	as_fn_error $? "Package requirements (x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) were not met:
11888
11889$RANDR_PKG_ERRORS
11890
11891Consider adjusting the PKG_CONFIG_PATH environment variable if you
11892installed software in a non-standard prefix.
11893
11894Alternatively, you may set the environment variables RANDR_CFLAGS
11895and RANDR_LIBS to avoid the need to call pkg-config.
11896See the pkg-config man page for more details.
11897" "$LINENO" 5
11898elif test $pkg_failed = untried; then
11899	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11901as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11902is in your PATH or set the PKG_CONFIG environment variable to the full
11903path to pkg-config.
11904
11905Alternatively, you may set the environment variables RANDR_CFLAGS
11906and RANDR_LIBS to avoid the need to call pkg-config.
11907See the pkg-config man page for more details.
11908
11909To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11910See \`config.log' for more details" "$LINENO" 5; }
11911else
11912	RANDR_CFLAGS=$pkg_cv_RANDR_CFLAGS
11913	RANDR_LIBS=$pkg_cv_RANDR_LIBS
11914        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915$as_echo "yes" >&6; }
11916	:
11917fi
11918
11919ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xrandr.pc"
11920
11921cat >confcache <<\_ACEOF
11922# This file is a shell script that caches the results of configure
11923# tests run on this system so they can be shared between configure
11924# scripts and configure runs, see configure's option --config-cache.
11925# It is not useful on other systems.  If it contains results you don't
11926# want to keep, you may remove or edit it.
11927#
11928# config.status only pays attention to the cache file if you give it
11929# the --recheck option to rerun configure.
11930#
11931# `ac_cv_env_foo' variables (set or unset) will be overridden when
11932# loading this file, other *unset* `ac_cv_foo' will be assigned the
11933# following values.
11934
11935_ACEOF
11936
11937# The following way of writing the cache mishandles newlines in values,
11938# but we know of no workaround that is simple, portable, and efficient.
11939# So, we kill variables containing newlines.
11940# Ultrix sh set writes to stderr and can't be redirected directly,
11941# and sets the high bit in the cache file unless we assign to the vars.
11942(
11943  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11944    eval ac_val=\$$ac_var
11945    case $ac_val in #(
11946    *${as_nl}*)
11947      case $ac_var in #(
11948      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11949$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11950      esac
11951      case $ac_var in #(
11952      _ | IFS | as_nl) ;; #(
11953      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11954      *) { eval $ac_var=; unset $ac_var;} ;;
11955      esac ;;
11956    esac
11957  done
11958
11959  (set) 2>&1 |
11960    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11961    *${as_nl}ac_space=\ *)
11962      # `set' does not quote correctly, so add quotes: double-quote
11963      # substitution turns \\\\ into \\, and sed turns \\ into \.
11964      sed -n \
11965	"s/'/'\\\\''/g;
11966	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11967      ;; #(
11968    *)
11969      # `set' quotes correctly as required by POSIX, so do not add quotes.
11970      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11971      ;;
11972    esac |
11973    sort
11974) |
11975  sed '
11976     /^ac_cv_env_/b end
11977     t clear
11978     :clear
11979     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11980     t end
11981     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11982     :end' >>confcache
11983if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11984  if test -w "$cache_file"; then
11985    if test "x$cache_file" != "x/dev/null"; then
11986      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11987$as_echo "$as_me: updating cache $cache_file" >&6;}
11988      if test ! -f "$cache_file" || test -h "$cache_file"; then
11989	cat confcache >"$cache_file"
11990      else
11991        case $cache_file in #(
11992        */* | ?:*)
11993	  mv -f confcache "$cache_file"$$ &&
11994	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11995        *)
11996	  mv -f confcache "$cache_file" ;;
11997	esac
11998      fi
11999    fi
12000  else
12001    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12002$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12003  fi
12004fi
12005rm -f confcache
12006
12007test "x$prefix" = xNONE && prefix=$ac_default_prefix
12008# Let make expand exec_prefix.
12009test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12010
12011DEFS=-DHAVE_CONFIG_H
12012
12013ac_libobjs=
12014ac_ltlibobjs=
12015U=
12016for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12017  # 1. Remove the extension, and $U if already installed.
12018  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12019  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12020  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12021  #    will be set to the directory where LIBOBJS objects are built.
12022  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12023  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12024done
12025LIBOBJS=$ac_libobjs
12026
12027LTLIBOBJS=$ac_ltlibobjs
12028
12029
12030 if test -n "$EXEEXT"; then
12031  am__EXEEXT_TRUE=
12032  am__EXEEXT_FALSE='#'
12033else
12034  am__EXEEXT_TRUE='#'
12035  am__EXEEXT_FALSE=
12036fi
12037
12038if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12039  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12040Usually this means the macro was only invoked conditionally." "$LINENO" 5
12041fi
12042if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12043  as_fn_error $? "conditional \"AMDEP\" was never defined.
12044Usually this means the macro was only invoked conditionally." "$LINENO" 5
12045fi
12046if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12047  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12048Usually this means the macro was only invoked conditionally." "$LINENO" 5
12049fi
12050
12051: "${CONFIG_STATUS=./config.status}"
12052ac_write_fail=0
12053ac_clean_files_save=$ac_clean_files
12054ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12055{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12056$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12057as_write_fail=0
12058cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12059#! $SHELL
12060# Generated by $as_me.
12061# Run this file to recreate the current configuration.
12062# Compiler output produced by configure, useful for debugging
12063# configure, is in config.log if it exists.
12064
12065debug=false
12066ac_cs_recheck=false
12067ac_cs_silent=false
12068
12069SHELL=\${CONFIG_SHELL-$SHELL}
12070export SHELL
12071_ASEOF
12072cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12073## -------------------- ##
12074## M4sh Initialization. ##
12075## -------------------- ##
12076
12077# Be more Bourne compatible
12078DUALCASE=1; export DUALCASE # for MKS sh
12079if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12080  emulate sh
12081  NULLCMD=:
12082  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12083  # is contrary to our usage.  Disable this feature.
12084  alias -g '${1+"$@"}'='"$@"'
12085  setopt NO_GLOB_SUBST
12086else
12087  case `(set -o) 2>/dev/null` in #(
12088  *posix*) :
12089    set -o posix ;; #(
12090  *) :
12091     ;;
12092esac
12093fi
12094
12095
12096as_nl='
12097'
12098export as_nl
12099# Printing a long string crashes Solaris 7 /usr/bin/printf.
12100as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12101as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12102as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12103# Prefer a ksh shell builtin over an external printf program on Solaris,
12104# but without wasting forks for bash or zsh.
12105if test -z "$BASH_VERSION$ZSH_VERSION" \
12106    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12107  as_echo='print -r --'
12108  as_echo_n='print -rn --'
12109elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12110  as_echo='printf %s\n'
12111  as_echo_n='printf %s'
12112else
12113  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12114    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12115    as_echo_n='/usr/ucb/echo -n'
12116  else
12117    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12118    as_echo_n_body='eval
12119      arg=$1;
12120      case $arg in #(
12121      *"$as_nl"*)
12122	expr "X$arg" : "X\\(.*\\)$as_nl";
12123	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12124      esac;
12125      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12126    '
12127    export as_echo_n_body
12128    as_echo_n='sh -c $as_echo_n_body as_echo'
12129  fi
12130  export as_echo_body
12131  as_echo='sh -c $as_echo_body as_echo'
12132fi
12133
12134# The user is always right.
12135if test "${PATH_SEPARATOR+set}" != set; then
12136  PATH_SEPARATOR=:
12137  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12138    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12139      PATH_SEPARATOR=';'
12140  }
12141fi
12142
12143
12144# IFS
12145# We need space, tab and new line, in precisely that order.  Quoting is
12146# there to prevent editors from complaining about space-tab.
12147# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12148# splitting by setting IFS to empty value.)
12149IFS=" ""	$as_nl"
12150
12151# Find who we are.  Look in the path if we contain no directory separator.
12152as_myself=
12153case $0 in #((
12154  *[\\/]* ) as_myself=$0 ;;
12155  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156for as_dir in $PATH
12157do
12158  IFS=$as_save_IFS
12159  test -z "$as_dir" && as_dir=.
12160    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12161  done
12162IFS=$as_save_IFS
12163
12164     ;;
12165esac
12166# We did not find ourselves, most probably we were run as `sh COMMAND'
12167# in which case we are not to be found in the path.
12168if test "x$as_myself" = x; then
12169  as_myself=$0
12170fi
12171if test ! -f "$as_myself"; then
12172  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12173  exit 1
12174fi
12175
12176# Unset variables that we do not need and which cause bugs (e.g. in
12177# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12178# suppresses any "Segmentation fault" message there.  '((' could
12179# trigger a bug in pdksh 5.2.14.
12180for as_var in BASH_ENV ENV MAIL MAILPATH
12181do eval test x\${$as_var+set} = xset \
12182  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12183done
12184PS1='$ '
12185PS2='> '
12186PS4='+ '
12187
12188# NLS nuisances.
12189LC_ALL=C
12190export LC_ALL
12191LANGUAGE=C
12192export LANGUAGE
12193
12194# CDPATH.
12195(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12196
12197
12198# as_fn_error STATUS ERROR [LINENO LOG_FD]
12199# ----------------------------------------
12200# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12201# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12202# script with STATUS, using 1 if that was 0.
12203as_fn_error ()
12204{
12205  as_status=$1; test $as_status -eq 0 && as_status=1
12206  if test "$4"; then
12207    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12208    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12209  fi
12210  $as_echo "$as_me: error: $2" >&2
12211  as_fn_exit $as_status
12212} # as_fn_error
12213
12214
12215# as_fn_set_status STATUS
12216# -----------------------
12217# Set $? to STATUS, without forking.
12218as_fn_set_status ()
12219{
12220  return $1
12221} # as_fn_set_status
12222
12223# as_fn_exit STATUS
12224# -----------------
12225# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12226as_fn_exit ()
12227{
12228  set +e
12229  as_fn_set_status $1
12230  exit $1
12231} # as_fn_exit
12232
12233# as_fn_unset VAR
12234# ---------------
12235# Portably unset VAR.
12236as_fn_unset ()
12237{
12238  { eval $1=; unset $1;}
12239}
12240as_unset=as_fn_unset
12241# as_fn_append VAR VALUE
12242# ----------------------
12243# Append the text in VALUE to the end of the definition contained in VAR. Take
12244# advantage of any shell optimizations that allow amortized linear growth over
12245# repeated appends, instead of the typical quadratic growth present in naive
12246# implementations.
12247if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12248  eval 'as_fn_append ()
12249  {
12250    eval $1+=\$2
12251  }'
12252else
12253  as_fn_append ()
12254  {
12255    eval $1=\$$1\$2
12256  }
12257fi # as_fn_append
12258
12259# as_fn_arith ARG...
12260# ------------------
12261# Perform arithmetic evaluation on the ARGs, and store the result in the
12262# global $as_val. Take advantage of shells that can avoid forks. The arguments
12263# must be portable across $(()) and expr.
12264if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12265  eval 'as_fn_arith ()
12266  {
12267    as_val=$(( $* ))
12268  }'
12269else
12270  as_fn_arith ()
12271  {
12272    as_val=`expr "$@" || test $? -eq 1`
12273  }
12274fi # as_fn_arith
12275
12276
12277if expr a : '\(a\)' >/dev/null 2>&1 &&
12278   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12279  as_expr=expr
12280else
12281  as_expr=false
12282fi
12283
12284if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12285  as_basename=basename
12286else
12287  as_basename=false
12288fi
12289
12290if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12291  as_dirname=dirname
12292else
12293  as_dirname=false
12294fi
12295
12296as_me=`$as_basename -- "$0" ||
12297$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12298	 X"$0" : 'X\(//\)$' \| \
12299	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12300$as_echo X/"$0" |
12301    sed '/^.*\/\([^/][^/]*\)\/*$/{
12302	    s//\1/
12303	    q
12304	  }
12305	  /^X\/\(\/\/\)$/{
12306	    s//\1/
12307	    q
12308	  }
12309	  /^X\/\(\/\).*/{
12310	    s//\1/
12311	    q
12312	  }
12313	  s/.*/./; q'`
12314
12315# Avoid depending upon Character Ranges.
12316as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12317as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12318as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12319as_cr_digits='0123456789'
12320as_cr_alnum=$as_cr_Letters$as_cr_digits
12321
12322ECHO_C= ECHO_N= ECHO_T=
12323case `echo -n x` in #(((((
12324-n*)
12325  case `echo 'xy\c'` in
12326  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12327  xy)  ECHO_C='\c';;
12328  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12329       ECHO_T='	';;
12330  esac;;
12331*)
12332  ECHO_N='-n';;
12333esac
12334
12335rm -f conf$$ conf$$.exe conf$$.file
12336if test -d conf$$.dir; then
12337  rm -f conf$$.dir/conf$$.file
12338else
12339  rm -f conf$$.dir
12340  mkdir conf$$.dir 2>/dev/null
12341fi
12342if (echo >conf$$.file) 2>/dev/null; then
12343  if ln -s conf$$.file conf$$ 2>/dev/null; then
12344    as_ln_s='ln -s'
12345    # ... but there are two gotchas:
12346    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12347    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12348    # In both cases, we have to default to `cp -p'.
12349    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12350      as_ln_s='cp -p'
12351  elif ln conf$$.file conf$$ 2>/dev/null; then
12352    as_ln_s=ln
12353  else
12354    as_ln_s='cp -p'
12355  fi
12356else
12357  as_ln_s='cp -p'
12358fi
12359rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12360rmdir conf$$.dir 2>/dev/null
12361
12362
12363# as_fn_mkdir_p
12364# -------------
12365# Create "$as_dir" as a directory, including parents if necessary.
12366as_fn_mkdir_p ()
12367{
12368
12369  case $as_dir in #(
12370  -*) as_dir=./$as_dir;;
12371  esac
12372  test -d "$as_dir" || eval $as_mkdir_p || {
12373    as_dirs=
12374    while :; do
12375      case $as_dir in #(
12376      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12377      *) as_qdir=$as_dir;;
12378      esac
12379      as_dirs="'$as_qdir' $as_dirs"
12380      as_dir=`$as_dirname -- "$as_dir" ||
12381$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12382	 X"$as_dir" : 'X\(//\)[^/]' \| \
12383	 X"$as_dir" : 'X\(//\)$' \| \
12384	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12385$as_echo X"$as_dir" |
12386    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12387	    s//\1/
12388	    q
12389	  }
12390	  /^X\(\/\/\)[^/].*/{
12391	    s//\1/
12392	    q
12393	  }
12394	  /^X\(\/\/\)$/{
12395	    s//\1/
12396	    q
12397	  }
12398	  /^X\(\/\).*/{
12399	    s//\1/
12400	    q
12401	  }
12402	  s/.*/./; q'`
12403      test -d "$as_dir" && break
12404    done
12405    test -z "$as_dirs" || eval "mkdir $as_dirs"
12406  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12407
12408
12409} # as_fn_mkdir_p
12410if mkdir -p . 2>/dev/null; then
12411  as_mkdir_p='mkdir -p "$as_dir"'
12412else
12413  test -d ./-p && rmdir ./-p
12414  as_mkdir_p=false
12415fi
12416
12417if test -x / >/dev/null 2>&1; then
12418  as_test_x='test -x'
12419else
12420  if ls -dL / >/dev/null 2>&1; then
12421    as_ls_L_option=L
12422  else
12423    as_ls_L_option=
12424  fi
12425  as_test_x='
12426    eval sh -c '\''
12427      if test -d "$1"; then
12428	test -d "$1/.";
12429      else
12430	case $1 in #(
12431	-*)set "./$1";;
12432	esac;
12433	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12434	???[sx]*):;;*)false;;esac;fi
12435    '\'' sh
12436  '
12437fi
12438as_executable_p=$as_test_x
12439
12440# Sed expression to map a string onto a valid CPP name.
12441as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12442
12443# Sed expression to map a string onto a valid variable name.
12444as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12445
12446
12447exec 6>&1
12448## ----------------------------------- ##
12449## Main body of $CONFIG_STATUS script. ##
12450## ----------------------------------- ##
12451_ASEOF
12452test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12453
12454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12455# Save the log message, to keep $0 and so on meaningful, and to
12456# report actual input values of CONFIG_FILES etc. instead of their
12457# values after options handling.
12458ac_log="
12459This file was extended by libXrandr $as_me 1.3.2, which was
12460generated by GNU Autoconf 2.68.  Invocation command line was
12461
12462  CONFIG_FILES    = $CONFIG_FILES
12463  CONFIG_HEADERS  = $CONFIG_HEADERS
12464  CONFIG_LINKS    = $CONFIG_LINKS
12465  CONFIG_COMMANDS = $CONFIG_COMMANDS
12466  $ $0 $@
12467
12468on `(hostname || uname -n) 2>/dev/null | sed 1q`
12469"
12470
12471_ACEOF
12472
12473case $ac_config_files in *"
12474"*) set x $ac_config_files; shift; ac_config_files=$*;;
12475esac
12476
12477case $ac_config_headers in *"
12478"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12479esac
12480
12481
12482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12483# Files that config.status was made for.
12484config_files="$ac_config_files"
12485config_headers="$ac_config_headers"
12486config_commands="$ac_config_commands"
12487
12488_ACEOF
12489
12490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12491ac_cs_usage="\
12492\`$as_me' instantiates files and other configuration actions
12493from templates according to the current configuration.  Unless the files
12494and actions are specified as TAGs, all are instantiated by default.
12495
12496Usage: $0 [OPTION]... [TAG]...
12497
12498  -h, --help       print this help, then exit
12499  -V, --version    print version number and configuration settings, then exit
12500      --config     print configuration, then exit
12501  -q, --quiet, --silent
12502                   do not print progress messages
12503  -d, --debug      don't remove temporary files
12504      --recheck    update $as_me by reconfiguring in the same conditions
12505      --file=FILE[:TEMPLATE]
12506                   instantiate the configuration file FILE
12507      --header=FILE[:TEMPLATE]
12508                   instantiate the configuration header FILE
12509
12510Configuration files:
12511$config_files
12512
12513Configuration headers:
12514$config_headers
12515
12516Configuration commands:
12517$config_commands
12518
12519Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12520
12521_ACEOF
12522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12523ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12524ac_cs_version="\\
12525libXrandr config.status 1.3.2
12526configured by $0, generated by GNU Autoconf 2.68,
12527  with options \\"\$ac_cs_config\\"
12528
12529Copyright (C) 2010 Free Software Foundation, Inc.
12530This config.status script is free software; the Free Software Foundation
12531gives unlimited permission to copy, distribute and modify it."
12532
12533ac_pwd='$ac_pwd'
12534srcdir='$srcdir'
12535INSTALL='$INSTALL'
12536MKDIR_P='$MKDIR_P'
12537AWK='$AWK'
12538test -n "\$AWK" || AWK=awk
12539_ACEOF
12540
12541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12542# The default lists apply if the user does not specify any file.
12543ac_need_defaults=:
12544while test $# != 0
12545do
12546  case $1 in
12547  --*=?*)
12548    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12549    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12550    ac_shift=:
12551    ;;
12552  --*=)
12553    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12554    ac_optarg=
12555    ac_shift=:
12556    ;;
12557  *)
12558    ac_option=$1
12559    ac_optarg=$2
12560    ac_shift=shift
12561    ;;
12562  esac
12563
12564  case $ac_option in
12565  # Handling of the options.
12566  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12567    ac_cs_recheck=: ;;
12568  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12569    $as_echo "$ac_cs_version"; exit ;;
12570  --config | --confi | --conf | --con | --co | --c )
12571    $as_echo "$ac_cs_config"; exit ;;
12572  --debug | --debu | --deb | --de | --d | -d )
12573    debug=: ;;
12574  --file | --fil | --fi | --f )
12575    $ac_shift
12576    case $ac_optarg in
12577    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12578    '') as_fn_error $? "missing file argument" ;;
12579    esac
12580    as_fn_append CONFIG_FILES " '$ac_optarg'"
12581    ac_need_defaults=false;;
12582  --header | --heade | --head | --hea )
12583    $ac_shift
12584    case $ac_optarg in
12585    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12586    esac
12587    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12588    ac_need_defaults=false;;
12589  --he | --h)
12590    # Conflict between --help and --header
12591    as_fn_error $? "ambiguous option: \`$1'
12592Try \`$0 --help' for more information.";;
12593  --help | --hel | -h )
12594    $as_echo "$ac_cs_usage"; exit ;;
12595  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12596  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12597    ac_cs_silent=: ;;
12598
12599  # This is an error.
12600  -*) as_fn_error $? "unrecognized option: \`$1'
12601Try \`$0 --help' for more information." ;;
12602
12603  *) as_fn_append ac_config_targets " $1"
12604     ac_need_defaults=false ;;
12605
12606  esac
12607  shift
12608done
12609
12610ac_configure_extra_args=
12611
12612if $ac_cs_silent; then
12613  exec 6>/dev/null
12614  ac_configure_extra_args="$ac_configure_extra_args --silent"
12615fi
12616
12617_ACEOF
12618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12619if \$ac_cs_recheck; then
12620  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12621  shift
12622  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12623  CONFIG_SHELL='$SHELL'
12624  export CONFIG_SHELL
12625  exec "\$@"
12626fi
12627
12628_ACEOF
12629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12630exec 5>>config.log
12631{
12632  echo
12633  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12634## Running $as_me. ##
12635_ASBOX
12636  $as_echo "$ac_log"
12637} >&5
12638
12639_ACEOF
12640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12641#
12642# INIT-COMMANDS
12643#
12644AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12645
12646
12647# The HP-UX ksh and POSIX shell print the target directory to stdout
12648# if CDPATH is set.
12649(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12650
12651sed_quote_subst='$sed_quote_subst'
12652double_quote_subst='$double_quote_subst'
12653delay_variable_subst='$delay_variable_subst'
12654macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12655macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12656enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12657enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12658pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12659enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12660SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12661ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12662host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12663host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12664host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12665build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12666build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12667build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12668SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12669Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12670GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12671EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12672FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12673LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12674NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12675LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12676max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12677ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12678exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12679lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12680lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12681lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12682lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12683lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12684reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12685reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12686OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12687deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12688file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12689file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12690want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12691DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12692sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12693AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12694AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12695archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12696STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12697RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12698old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12699old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12700old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12701lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12702CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12703CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12704compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12705GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12706lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12707lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12708lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12709lt_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"`'
12710nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12711lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12712objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12713MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12714lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12715lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12716lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12717lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12718lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12719need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12720MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12721DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12722NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12723LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12724OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12725OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12726libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12727shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12728extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12729archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12730enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12731export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12732whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12733compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12734old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12735old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12736archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12737archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12738module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12739module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12740with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12741allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12742no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12743hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12744hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12745hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12746hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12747hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12748hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12749hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12750hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12751inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12752link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12753always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12754export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12755exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12756include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12757prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12758postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12759file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12760variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12761need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12762need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12763version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12764runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12765shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12766shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12767libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12768library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12769soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12770install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12771postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12772postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12773finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12774finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12775hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12776sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12777sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12778hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12779enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12780enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12781enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12782old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12783striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12784
12785LTCC='$LTCC'
12786LTCFLAGS='$LTCFLAGS'
12787compiler='$compiler_DEFAULT'
12788
12789# A function that is used when there is no print builtin or printf.
12790func_fallback_echo ()
12791{
12792  eval 'cat <<_LTECHO_EOF
12793\$1
12794_LTECHO_EOF'
12795}
12796
12797# Quote evaled strings.
12798for var in SHELL \
12799ECHO \
12800SED \
12801GREP \
12802EGREP \
12803FGREP \
12804LD \
12805NM \
12806LN_S \
12807lt_SP2NL \
12808lt_NL2SP \
12809reload_flag \
12810OBJDUMP \
12811deplibs_check_method \
12812file_magic_cmd \
12813file_magic_glob \
12814want_nocaseglob \
12815DLLTOOL \
12816sharedlib_from_linklib_cmd \
12817AR \
12818AR_FLAGS \
12819archiver_list_spec \
12820STRIP \
12821RANLIB \
12822CC \
12823CFLAGS \
12824compiler \
12825lt_cv_sys_global_symbol_pipe \
12826lt_cv_sys_global_symbol_to_cdecl \
12827lt_cv_sys_global_symbol_to_c_name_address \
12828lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12829nm_file_list_spec \
12830lt_prog_compiler_no_builtin_flag \
12831lt_prog_compiler_pic \
12832lt_prog_compiler_wl \
12833lt_prog_compiler_static \
12834lt_cv_prog_compiler_c_o \
12835need_locks \
12836MANIFEST_TOOL \
12837DSYMUTIL \
12838NMEDIT \
12839LIPO \
12840OTOOL \
12841OTOOL64 \
12842shrext_cmds \
12843export_dynamic_flag_spec \
12844whole_archive_flag_spec \
12845compiler_needs_object \
12846with_gnu_ld \
12847allow_undefined_flag \
12848no_undefined_flag \
12849hardcode_libdir_flag_spec \
12850hardcode_libdir_flag_spec_ld \
12851hardcode_libdir_separator \
12852exclude_expsyms \
12853include_expsyms \
12854file_list_spec \
12855variables_saved_for_relink \
12856libname_spec \
12857library_names_spec \
12858soname_spec \
12859install_override_mode \
12860finish_eval \
12861old_striplib \
12862striplib; do
12863    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12864    *[\\\\\\\`\\"\\\$]*)
12865      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12866      ;;
12867    *)
12868      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12869      ;;
12870    esac
12871done
12872
12873# Double-quote double-evaled strings.
12874for var in reload_cmds \
12875old_postinstall_cmds \
12876old_postuninstall_cmds \
12877old_archive_cmds \
12878extract_expsyms_cmds \
12879old_archive_from_new_cmds \
12880old_archive_from_expsyms_cmds \
12881archive_cmds \
12882archive_expsym_cmds \
12883module_cmds \
12884module_expsym_cmds \
12885export_symbols_cmds \
12886prelink_cmds \
12887postlink_cmds \
12888postinstall_cmds \
12889postuninstall_cmds \
12890finish_cmds \
12891sys_lib_search_path_spec \
12892sys_lib_dlsearch_path_spec; do
12893    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12894    *[\\\\\\\`\\"\\\$]*)
12895      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12896      ;;
12897    *)
12898      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12899      ;;
12900    esac
12901done
12902
12903ac_aux_dir='$ac_aux_dir'
12904xsi_shell='$xsi_shell'
12905lt_shell_append='$lt_shell_append'
12906
12907# See if we are running on zsh, and set the options which allow our
12908# commands through without removal of \ escapes INIT.
12909if test -n "\${ZSH_VERSION+set}" ; then
12910   setopt NO_GLOB_SUBST
12911fi
12912
12913
12914    PACKAGE='$PACKAGE'
12915    VERSION='$VERSION'
12916    TIMESTAMP='$TIMESTAMP'
12917    RM='$RM'
12918    ofile='$ofile'
12919
12920
12921
12922
12923_ACEOF
12924
12925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12926
12927# Handling of arguments.
12928for ac_config_target in $ac_config_targets
12929do
12930  case $ac_config_target in
12931    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12932    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12933    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12934    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12935    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12936    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12937    "xrandr.pc") CONFIG_FILES="$CONFIG_FILES xrandr.pc" ;;
12938
12939  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12940  esac
12941done
12942
12943
12944# If the user did not use the arguments to specify the items to instantiate,
12945# then the envvar interface is used.  Set only those that are not.
12946# We use the long form for the default assignment because of an extremely
12947# bizarre bug on SunOS 4.1.3.
12948if $ac_need_defaults; then
12949  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12950  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12951  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12952fi
12953
12954# Have a temporary directory for convenience.  Make it in the build tree
12955# simply because there is no reason against having it here, and in addition,
12956# creating and moving files from /tmp can sometimes cause problems.
12957# Hook for its removal unless debugging.
12958# Note that there is a small window in which the directory will not be cleaned:
12959# after its creation but before its name has been assigned to `$tmp'.
12960$debug ||
12961{
12962  tmp= ac_tmp=
12963  trap 'exit_status=$?
12964  : "${ac_tmp:=$tmp}"
12965  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12966' 0
12967  trap 'as_fn_exit 1' 1 2 13 15
12968}
12969# Create a (secure) tmp directory for tmp files.
12970
12971{
12972  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12973  test -d "$tmp"
12974}  ||
12975{
12976  tmp=./conf$$-$RANDOM
12977  (umask 077 && mkdir "$tmp")
12978} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12979ac_tmp=$tmp
12980
12981# Set up the scripts for CONFIG_FILES section.
12982# No need to generate them if there are no CONFIG_FILES.
12983# This happens for instance with `./config.status config.h'.
12984if test -n "$CONFIG_FILES"; then
12985
12986
12987ac_cr=`echo X | tr X '\015'`
12988# On cygwin, bash can eat \r inside `` if the user requested igncr.
12989# But we know of no other shell where ac_cr would be empty at this
12990# point, so we can use a bashism as a fallback.
12991if test "x$ac_cr" = x; then
12992  eval ac_cr=\$\'\\r\'
12993fi
12994ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12995if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12996  ac_cs_awk_cr='\\r'
12997else
12998  ac_cs_awk_cr=$ac_cr
12999fi
13000
13001echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13002_ACEOF
13003
13004
13005{
13006  echo "cat >conf$$subs.awk <<_ACEOF" &&
13007  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13008  echo "_ACEOF"
13009} >conf$$subs.sh ||
13010  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13011ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13012ac_delim='%!_!# '
13013for ac_last_try in false false false false false :; do
13014  . ./conf$$subs.sh ||
13015    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13016
13017  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13018  if test $ac_delim_n = $ac_delim_num; then
13019    break
13020  elif $ac_last_try; then
13021    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13022  else
13023    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13024  fi
13025done
13026rm -f conf$$subs.sh
13027
13028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13029cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13030_ACEOF
13031sed -n '
13032h
13033s/^/S["/; s/!.*/"]=/
13034p
13035g
13036s/^[^!]*!//
13037:repl
13038t repl
13039s/'"$ac_delim"'$//
13040t delim
13041:nl
13042h
13043s/\(.\{148\}\)..*/\1/
13044t more1
13045s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13046p
13047n
13048b repl
13049:more1
13050s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13051p
13052g
13053s/.\{148\}//
13054t nl
13055:delim
13056h
13057s/\(.\{148\}\)..*/\1/
13058t more2
13059s/["\\]/\\&/g; s/^/"/; s/$/"/
13060p
13061b
13062:more2
13063s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13064p
13065g
13066s/.\{148\}//
13067t delim
13068' <conf$$subs.awk | sed '
13069/^[^""]/{
13070  N
13071  s/\n//
13072}
13073' >>$CONFIG_STATUS || ac_write_fail=1
13074rm -f conf$$subs.awk
13075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13076_ACAWK
13077cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13078  for (key in S) S_is_set[key] = 1
13079  FS = ""
13080
13081}
13082{
13083  line = $ 0
13084  nfields = split(line, field, "@")
13085  substed = 0
13086  len = length(field[1])
13087  for (i = 2; i < nfields; i++) {
13088    key = field[i]
13089    keylen = length(key)
13090    if (S_is_set[key]) {
13091      value = S[key]
13092      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13093      len += length(value) + length(field[++i])
13094      substed = 1
13095    } else
13096      len += 1 + keylen
13097  }
13098
13099  print line
13100}
13101
13102_ACAWK
13103_ACEOF
13104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13105if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13106  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13107else
13108  cat
13109fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13110  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13111_ACEOF
13112
13113# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13114# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13115# trailing colons and then remove the whole line if VPATH becomes empty
13116# (actually we leave an empty line to preserve line numbers).
13117if test "x$srcdir" = x.; then
13118  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13119h
13120s///
13121s/^/:/
13122s/[	 ]*$/:/
13123s/:\$(srcdir):/:/g
13124s/:\${srcdir}:/:/g
13125s/:@srcdir@:/:/g
13126s/^:*//
13127s/:*$//
13128x
13129s/\(=[	 ]*\).*/\1/
13130G
13131s/\n//
13132s/^[^=]*=[	 ]*$//
13133}'
13134fi
13135
13136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13137fi # test -n "$CONFIG_FILES"
13138
13139# Set up the scripts for CONFIG_HEADERS section.
13140# No need to generate them if there are no CONFIG_HEADERS.
13141# This happens for instance with `./config.status Makefile'.
13142if test -n "$CONFIG_HEADERS"; then
13143cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13144BEGIN {
13145_ACEOF
13146
13147# Transform confdefs.h into an awk script `defines.awk', embedded as
13148# here-document in config.status, that substitutes the proper values into
13149# config.h.in to produce config.h.
13150
13151# Create a delimiter string that does not exist in confdefs.h, to ease
13152# handling of long lines.
13153ac_delim='%!_!# '
13154for ac_last_try in false false :; do
13155  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13156  if test -z "$ac_tt"; then
13157    break
13158  elif $ac_last_try; then
13159    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13160  else
13161    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13162  fi
13163done
13164
13165# For the awk script, D is an array of macro values keyed by name,
13166# likewise P contains macro parameters if any.  Preserve backslash
13167# newline sequences.
13168
13169ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13170sed -n '
13171s/.\{148\}/&'"$ac_delim"'/g
13172t rset
13173:rset
13174s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13175t def
13176d
13177:def
13178s/\\$//
13179t bsnl
13180s/["\\]/\\&/g
13181s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13182D["\1"]=" \3"/p
13183s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13184d
13185:bsnl
13186s/["\\]/\\&/g
13187s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13188D["\1"]=" \3\\\\\\n"\\/p
13189t cont
13190s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13191t cont
13192d
13193:cont
13194n
13195s/.\{148\}/&'"$ac_delim"'/g
13196t clear
13197:clear
13198s/\\$//
13199t bsnlc
13200s/["\\]/\\&/g; s/^/"/; s/$/"/p
13201d
13202:bsnlc
13203s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13204b cont
13205' <confdefs.h | sed '
13206s/'"$ac_delim"'/"\\\
13207"/g' >>$CONFIG_STATUS || ac_write_fail=1
13208
13209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13210  for (key in D) D_is_set[key] = 1
13211  FS = ""
13212}
13213/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13214  line = \$ 0
13215  split(line, arg, " ")
13216  if (arg[1] == "#") {
13217    defundef = arg[2]
13218    mac1 = arg[3]
13219  } else {
13220    defundef = substr(arg[1], 2)
13221    mac1 = arg[2]
13222  }
13223  split(mac1, mac2, "(") #)
13224  macro = mac2[1]
13225  prefix = substr(line, 1, index(line, defundef) - 1)
13226  if (D_is_set[macro]) {
13227    # Preserve the white space surrounding the "#".
13228    print prefix "define", macro P[macro] D[macro]
13229    next
13230  } else {
13231    # Replace #undef with comments.  This is necessary, for example,
13232    # in the case of _POSIX_SOURCE, which is predefined and required
13233    # on some systems where configure will not decide to define it.
13234    if (defundef == "undef") {
13235      print "/*", prefix defundef, macro, "*/"
13236      next
13237    }
13238  }
13239}
13240{ print }
13241_ACAWK
13242_ACEOF
13243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13244  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13245fi # test -n "$CONFIG_HEADERS"
13246
13247
13248eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13249shift
13250for ac_tag
13251do
13252  case $ac_tag in
13253  :[FHLC]) ac_mode=$ac_tag; continue;;
13254  esac
13255  case $ac_mode$ac_tag in
13256  :[FHL]*:*);;
13257  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13258  :[FH]-) ac_tag=-:-;;
13259  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13260  esac
13261  ac_save_IFS=$IFS
13262  IFS=:
13263  set x $ac_tag
13264  IFS=$ac_save_IFS
13265  shift
13266  ac_file=$1
13267  shift
13268
13269  case $ac_mode in
13270  :L) ac_source=$1;;
13271  :[FH])
13272    ac_file_inputs=
13273    for ac_f
13274    do
13275      case $ac_f in
13276      -) ac_f="$ac_tmp/stdin";;
13277      *) # Look for the file first in the build tree, then in the source tree
13278	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13279	 # because $ac_f cannot contain `:'.
13280	 test -f "$ac_f" ||
13281	   case $ac_f in
13282	   [\\/$]*) false;;
13283	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13284	   esac ||
13285	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13286      esac
13287      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13288      as_fn_append ac_file_inputs " '$ac_f'"
13289    done
13290
13291    # Let's still pretend it is `configure' which instantiates (i.e., don't
13292    # use $as_me), people would be surprised to read:
13293    #    /* config.h.  Generated by config.status.  */
13294    configure_input='Generated from '`
13295	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13296	`' by configure.'
13297    if test x"$ac_file" != x-; then
13298      configure_input="$ac_file.  $configure_input"
13299      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13300$as_echo "$as_me: creating $ac_file" >&6;}
13301    fi
13302    # Neutralize special characters interpreted by sed in replacement strings.
13303    case $configure_input in #(
13304    *\&* | *\|* | *\\* )
13305       ac_sed_conf_input=`$as_echo "$configure_input" |
13306       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13307    *) ac_sed_conf_input=$configure_input;;
13308    esac
13309
13310    case $ac_tag in
13311    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13312      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13313    esac
13314    ;;
13315  esac
13316
13317  ac_dir=`$as_dirname -- "$ac_file" ||
13318$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13319	 X"$ac_file" : 'X\(//\)[^/]' \| \
13320	 X"$ac_file" : 'X\(//\)$' \| \
13321	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13322$as_echo X"$ac_file" |
13323    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13324	    s//\1/
13325	    q
13326	  }
13327	  /^X\(\/\/\)[^/].*/{
13328	    s//\1/
13329	    q
13330	  }
13331	  /^X\(\/\/\)$/{
13332	    s//\1/
13333	    q
13334	  }
13335	  /^X\(\/\).*/{
13336	    s//\1/
13337	    q
13338	  }
13339	  s/.*/./; q'`
13340  as_dir="$ac_dir"; as_fn_mkdir_p
13341  ac_builddir=.
13342
13343case "$ac_dir" in
13344.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13345*)
13346  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13347  # A ".." for each directory in $ac_dir_suffix.
13348  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13349  case $ac_top_builddir_sub in
13350  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13351  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13352  esac ;;
13353esac
13354ac_abs_top_builddir=$ac_pwd
13355ac_abs_builddir=$ac_pwd$ac_dir_suffix
13356# for backward compatibility:
13357ac_top_builddir=$ac_top_build_prefix
13358
13359case $srcdir in
13360  .)  # We are building in place.
13361    ac_srcdir=.
13362    ac_top_srcdir=$ac_top_builddir_sub
13363    ac_abs_top_srcdir=$ac_pwd ;;
13364  [\\/]* | ?:[\\/]* )  # Absolute name.
13365    ac_srcdir=$srcdir$ac_dir_suffix;
13366    ac_top_srcdir=$srcdir
13367    ac_abs_top_srcdir=$srcdir ;;
13368  *) # Relative name.
13369    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13370    ac_top_srcdir=$ac_top_build_prefix$srcdir
13371    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13372esac
13373ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13374
13375
13376  case $ac_mode in
13377  :F)
13378  #
13379  # CONFIG_FILE
13380  #
13381
13382  case $INSTALL in
13383  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13384  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13385  esac
13386  ac_MKDIR_P=$MKDIR_P
13387  case $MKDIR_P in
13388  [\\/$]* | ?:[\\/]* ) ;;
13389  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13390  esac
13391_ACEOF
13392
13393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13394# If the template does not know about datarootdir, expand it.
13395# FIXME: This hack should be removed a few years after 2.60.
13396ac_datarootdir_hack=; ac_datarootdir_seen=
13397ac_sed_dataroot='
13398/datarootdir/ {
13399  p
13400  q
13401}
13402/@datadir@/p
13403/@docdir@/p
13404/@infodir@/p
13405/@localedir@/p
13406/@mandir@/p'
13407case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13408*datarootdir*) ac_datarootdir_seen=yes;;
13409*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13410  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13411$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13412_ACEOF
13413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13414  ac_datarootdir_hack='
13415  s&@datadir@&$datadir&g
13416  s&@docdir@&$docdir&g
13417  s&@infodir@&$infodir&g
13418  s&@localedir@&$localedir&g
13419  s&@mandir@&$mandir&g
13420  s&\\\${datarootdir}&$datarootdir&g' ;;
13421esac
13422_ACEOF
13423
13424# Neutralize VPATH when `$srcdir' = `.'.
13425# Shell code in configure.ac might set extrasub.
13426# FIXME: do we really want to maintain this feature?
13427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13428ac_sed_extra="$ac_vpsub
13429$extrasub
13430_ACEOF
13431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13432:t
13433/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13434s|@configure_input@|$ac_sed_conf_input|;t t
13435s&@top_builddir@&$ac_top_builddir_sub&;t t
13436s&@top_build_prefix@&$ac_top_build_prefix&;t t
13437s&@srcdir@&$ac_srcdir&;t t
13438s&@abs_srcdir@&$ac_abs_srcdir&;t t
13439s&@top_srcdir@&$ac_top_srcdir&;t t
13440s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13441s&@builddir@&$ac_builddir&;t t
13442s&@abs_builddir@&$ac_abs_builddir&;t t
13443s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13444s&@INSTALL@&$ac_INSTALL&;t t
13445s&@MKDIR_P@&$ac_MKDIR_P&;t t
13446$ac_datarootdir_hack
13447"
13448eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13449  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13450
13451test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13452  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13453  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13454      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13455  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13456which seems to be undefined.  Please make sure it is defined" >&5
13457$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13458which seems to be undefined.  Please make sure it is defined" >&2;}
13459
13460  rm -f "$ac_tmp/stdin"
13461  case $ac_file in
13462  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13463  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13464  esac \
13465  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13466 ;;
13467  :H)
13468  #
13469  # CONFIG_HEADER
13470  #
13471  if test x"$ac_file" != x-; then
13472    {
13473      $as_echo "/* $configure_input  */" \
13474      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13475    } >"$ac_tmp/config.h" \
13476      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13477    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13478      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13479$as_echo "$as_me: $ac_file is unchanged" >&6;}
13480    else
13481      rm -f "$ac_file"
13482      mv "$ac_tmp/config.h" "$ac_file" \
13483	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13484    fi
13485  else
13486    $as_echo "/* $configure_input  */" \
13487      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13488      || as_fn_error $? "could not create -" "$LINENO" 5
13489  fi
13490# Compute "$ac_file"'s index in $config_headers.
13491_am_arg="$ac_file"
13492_am_stamp_count=1
13493for _am_header in $config_headers :; do
13494  case $_am_header in
13495    $_am_arg | $_am_arg:* )
13496      break ;;
13497    * )
13498      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13499  esac
13500done
13501echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13502$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13503	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13504	 X"$_am_arg" : 'X\(//\)$' \| \
13505	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13506$as_echo X"$_am_arg" |
13507    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13508	    s//\1/
13509	    q
13510	  }
13511	  /^X\(\/\/\)[^/].*/{
13512	    s//\1/
13513	    q
13514	  }
13515	  /^X\(\/\/\)$/{
13516	    s//\1/
13517	    q
13518	  }
13519	  /^X\(\/\).*/{
13520	    s//\1/
13521	    q
13522	  }
13523	  s/.*/./; q'`/stamp-h$_am_stamp_count
13524 ;;
13525
13526  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13527$as_echo "$as_me: executing $ac_file commands" >&6;}
13528 ;;
13529  esac
13530
13531
13532  case $ac_file$ac_mode in
13533    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13534  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13535  # are listed without --file.  Let's play safe and only enable the eval
13536  # if we detect the quoting.
13537  case $CONFIG_FILES in
13538  *\'*) eval set x "$CONFIG_FILES" ;;
13539  *)   set x $CONFIG_FILES ;;
13540  esac
13541  shift
13542  for mf
13543  do
13544    # Strip MF so we end up with the name of the file.
13545    mf=`echo "$mf" | sed -e 's/:.*$//'`
13546    # Check whether this is an Automake generated Makefile or not.
13547    # We used to match only the files named `Makefile.in', but
13548    # some people rename them; so instead we look at the file content.
13549    # Grep'ing the first line is not enough: some people post-process
13550    # each Makefile.in and add a new line on top of each file to say so.
13551    # Grep'ing the whole file is not good either: AIX grep has a line
13552    # limit of 2048, but all sed's we know have understand at least 4000.
13553    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13554      dirpart=`$as_dirname -- "$mf" ||
13555$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13556	 X"$mf" : 'X\(//\)[^/]' \| \
13557	 X"$mf" : 'X\(//\)$' \| \
13558	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13559$as_echo X"$mf" |
13560    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13561	    s//\1/
13562	    q
13563	  }
13564	  /^X\(\/\/\)[^/].*/{
13565	    s//\1/
13566	    q
13567	  }
13568	  /^X\(\/\/\)$/{
13569	    s//\1/
13570	    q
13571	  }
13572	  /^X\(\/\).*/{
13573	    s//\1/
13574	    q
13575	  }
13576	  s/.*/./; q'`
13577    else
13578      continue
13579    fi
13580    # Extract the definition of DEPDIR, am__include, and am__quote
13581    # from the Makefile without running `make'.
13582    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13583    test -z "$DEPDIR" && continue
13584    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13585    test -z "am__include" && continue
13586    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13587    # When using ansi2knr, U may be empty or an underscore; expand it
13588    U=`sed -n 's/^U = //p' < "$mf"`
13589    # Find all dependency output files, they are included files with
13590    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13591    # simplest approach to changing $(DEPDIR) to its actual value in the
13592    # expansion.
13593    for file in `sed -n "
13594      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13595	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13596      # Make sure the directory exists.
13597      test -f "$dirpart/$file" && continue
13598      fdir=`$as_dirname -- "$file" ||
13599$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13600	 X"$file" : 'X\(//\)[^/]' \| \
13601	 X"$file" : 'X\(//\)$' \| \
13602	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13603$as_echo X"$file" |
13604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13605	    s//\1/
13606	    q
13607	  }
13608	  /^X\(\/\/\)[^/].*/{
13609	    s//\1/
13610	    q
13611	  }
13612	  /^X\(\/\/\)$/{
13613	    s//\1/
13614	    q
13615	  }
13616	  /^X\(\/\).*/{
13617	    s//\1/
13618	    q
13619	  }
13620	  s/.*/./; q'`
13621      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13622      # echo "creating $dirpart/$file"
13623      echo '# dummy' > "$dirpart/$file"
13624    done
13625  done
13626}
13627 ;;
13628    "libtool":C)
13629
13630    # See if we are running on zsh, and set the options which allow our
13631    # commands through without removal of \ escapes.
13632    if test -n "${ZSH_VERSION+set}" ; then
13633      setopt NO_GLOB_SUBST
13634    fi
13635
13636    cfgfile="${ofile}T"
13637    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13638    $RM "$cfgfile"
13639
13640    cat <<_LT_EOF >> "$cfgfile"
13641#! $SHELL
13642
13643# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13644# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13645# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13646# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13647#
13648#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13649#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13650#                 Inc.
13651#   Written by Gordon Matzigkeit, 1996
13652#
13653#   This file is part of GNU Libtool.
13654#
13655# GNU Libtool is free software; you can redistribute it and/or
13656# modify it under the terms of the GNU General Public License as
13657# published by the Free Software Foundation; either version 2 of
13658# the License, or (at your option) any later version.
13659#
13660# As a special exception to the GNU General Public License,
13661# if you distribute this file as part of a program or library that
13662# is built using GNU Libtool, you may include this file under the
13663# same distribution terms that you use for the rest of that program.
13664#
13665# GNU Libtool is distributed in the hope that it will be useful,
13666# but WITHOUT ANY WARRANTY; without even the implied warranty of
13667# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13668# GNU General Public License for more details.
13669#
13670# You should have received a copy of the GNU General Public License
13671# along with GNU Libtool; see the file COPYING.  If not, a copy
13672# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13673# obtained by writing to the Free Software Foundation, Inc.,
13674# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13675
13676
13677# The names of the tagged configurations supported by this script.
13678available_tags=""
13679
13680# ### BEGIN LIBTOOL CONFIG
13681
13682# Which release of libtool.m4 was used?
13683macro_version=$macro_version
13684macro_revision=$macro_revision
13685
13686# Whether or not to build shared libraries.
13687build_libtool_libs=$enable_shared
13688
13689# Whether or not to build static libraries.
13690build_old_libs=$enable_static
13691
13692# What type of objects to build.
13693pic_mode=$pic_mode
13694
13695# Whether or not to optimize for fast installation.
13696fast_install=$enable_fast_install
13697
13698# Shell to use when invoking shell scripts.
13699SHELL=$lt_SHELL
13700
13701# An echo program that protects backslashes.
13702ECHO=$lt_ECHO
13703
13704# The host system.
13705host_alias=$host_alias
13706host=$host
13707host_os=$host_os
13708
13709# The build system.
13710build_alias=$build_alias
13711build=$build
13712build_os=$build_os
13713
13714# A sed program that does not truncate output.
13715SED=$lt_SED
13716
13717# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13718Xsed="\$SED -e 1s/^X//"
13719
13720# A grep program that handles long lines.
13721GREP=$lt_GREP
13722
13723# An ERE matcher.
13724EGREP=$lt_EGREP
13725
13726# A literal string matcher.
13727FGREP=$lt_FGREP
13728
13729# A BSD- or MS-compatible name lister.
13730NM=$lt_NM
13731
13732# Whether we need soft or hard links.
13733LN_S=$lt_LN_S
13734
13735# What is the maximum length of a command?
13736max_cmd_len=$max_cmd_len
13737
13738# Object file suffix (normally "o").
13739objext=$ac_objext
13740
13741# Executable file suffix (normally "").
13742exeext=$exeext
13743
13744# whether the shell understands "unset".
13745lt_unset=$lt_unset
13746
13747# turn spaces into newlines.
13748SP2NL=$lt_lt_SP2NL
13749
13750# turn newlines into spaces.
13751NL2SP=$lt_lt_NL2SP
13752
13753# convert \$build file names to \$host format.
13754to_host_file_cmd=$lt_cv_to_host_file_cmd
13755
13756# convert \$build files to toolchain format.
13757to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13758
13759# An object symbol dumper.
13760OBJDUMP=$lt_OBJDUMP
13761
13762# Method to check whether dependent libraries are shared objects.
13763deplibs_check_method=$lt_deplibs_check_method
13764
13765# Command to use when deplibs_check_method = "file_magic".
13766file_magic_cmd=$lt_file_magic_cmd
13767
13768# How to find potential files when deplibs_check_method = "file_magic".
13769file_magic_glob=$lt_file_magic_glob
13770
13771# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13772want_nocaseglob=$lt_want_nocaseglob
13773
13774# DLL creation program.
13775DLLTOOL=$lt_DLLTOOL
13776
13777# Command to associate shared and link libraries.
13778sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13779
13780# The archiver.
13781AR=$lt_AR
13782
13783# Flags to create an archive.
13784AR_FLAGS=$lt_AR_FLAGS
13785
13786# How to feed a file listing to the archiver.
13787archiver_list_spec=$lt_archiver_list_spec
13788
13789# A symbol stripping program.
13790STRIP=$lt_STRIP
13791
13792# Commands used to install an old-style archive.
13793RANLIB=$lt_RANLIB
13794old_postinstall_cmds=$lt_old_postinstall_cmds
13795old_postuninstall_cmds=$lt_old_postuninstall_cmds
13796
13797# Whether to use a lock for old archive extraction.
13798lock_old_archive_extraction=$lock_old_archive_extraction
13799
13800# A C compiler.
13801LTCC=$lt_CC
13802
13803# LTCC compiler flags.
13804LTCFLAGS=$lt_CFLAGS
13805
13806# Take the output of nm and produce a listing of raw symbols and C names.
13807global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13808
13809# Transform the output of nm in a proper C declaration.
13810global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13811
13812# Transform the output of nm in a C name address pair.
13813global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13814
13815# Transform the output of nm in a C name address pair when lib prefix is needed.
13816global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13817
13818# Specify filename containing input files for \$NM.
13819nm_file_list_spec=$lt_nm_file_list_spec
13820
13821# The root where to search for dependent libraries,and in which our libraries should be installed.
13822lt_sysroot=$lt_sysroot
13823
13824# The name of the directory that contains temporary libtool files.
13825objdir=$objdir
13826
13827# Used to examine libraries when file_magic_cmd begins with "file".
13828MAGIC_CMD=$MAGIC_CMD
13829
13830# Must we lock files when doing compilation?
13831need_locks=$lt_need_locks
13832
13833# Manifest tool.
13834MANIFEST_TOOL=$lt_MANIFEST_TOOL
13835
13836# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13837DSYMUTIL=$lt_DSYMUTIL
13838
13839# Tool to change global to local symbols on Mac OS X.
13840NMEDIT=$lt_NMEDIT
13841
13842# Tool to manipulate fat objects and archives on Mac OS X.
13843LIPO=$lt_LIPO
13844
13845# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13846OTOOL=$lt_OTOOL
13847
13848# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13849OTOOL64=$lt_OTOOL64
13850
13851# Old archive suffix (normally "a").
13852libext=$libext
13853
13854# Shared library suffix (normally ".so").
13855shrext_cmds=$lt_shrext_cmds
13856
13857# The commands to extract the exported symbol list from a shared archive.
13858extract_expsyms_cmds=$lt_extract_expsyms_cmds
13859
13860# Variables whose values should be saved in libtool wrapper scripts and
13861# restored at link time.
13862variables_saved_for_relink=$lt_variables_saved_for_relink
13863
13864# Do we need the "lib" prefix for modules?
13865need_lib_prefix=$need_lib_prefix
13866
13867# Do we need a version for libraries?
13868need_version=$need_version
13869
13870# Library versioning type.
13871version_type=$version_type
13872
13873# Shared library runtime path variable.
13874runpath_var=$runpath_var
13875
13876# Shared library path variable.
13877shlibpath_var=$shlibpath_var
13878
13879# Is shlibpath searched before the hard-coded library search path?
13880shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13881
13882# Format of library name prefix.
13883libname_spec=$lt_libname_spec
13884
13885# List of archive names.  First name is the real one, the rest are links.
13886# The last name is the one that the linker finds with -lNAME
13887library_names_spec=$lt_library_names_spec
13888
13889# The coded name of the library, if different from the real name.
13890soname_spec=$lt_soname_spec
13891
13892# Permission mode override for installation of shared libraries.
13893install_override_mode=$lt_install_override_mode
13894
13895# Command to use after installation of a shared archive.
13896postinstall_cmds=$lt_postinstall_cmds
13897
13898# Command to use after uninstallation of a shared archive.
13899postuninstall_cmds=$lt_postuninstall_cmds
13900
13901# Commands used to finish a libtool library installation in a directory.
13902finish_cmds=$lt_finish_cmds
13903
13904# As "finish_cmds", except a single script fragment to be evaled but
13905# not shown.
13906finish_eval=$lt_finish_eval
13907
13908# Whether we should hardcode library paths into libraries.
13909hardcode_into_libs=$hardcode_into_libs
13910
13911# Compile-time system search path for libraries.
13912sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13913
13914# Run-time system search path for libraries.
13915sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13916
13917# Whether dlopen is supported.
13918dlopen_support=$enable_dlopen
13919
13920# Whether dlopen of programs is supported.
13921dlopen_self=$enable_dlopen_self
13922
13923# Whether dlopen of statically linked programs is supported.
13924dlopen_self_static=$enable_dlopen_self_static
13925
13926# Commands to strip libraries.
13927old_striplib=$lt_old_striplib
13928striplib=$lt_striplib
13929
13930
13931# The linker used to build libraries.
13932LD=$lt_LD
13933
13934# How to create reloadable object files.
13935reload_flag=$lt_reload_flag
13936reload_cmds=$lt_reload_cmds
13937
13938# Commands used to build an old-style archive.
13939old_archive_cmds=$lt_old_archive_cmds
13940
13941# A language specific compiler.
13942CC=$lt_compiler
13943
13944# Is the compiler the GNU compiler?
13945with_gcc=$GCC
13946
13947# Compiler flag to turn off builtin functions.
13948no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13949
13950# Additional compiler flags for building library objects.
13951pic_flag=$lt_lt_prog_compiler_pic
13952
13953# How to pass a linker flag through the compiler.
13954wl=$lt_lt_prog_compiler_wl
13955
13956# Compiler flag to prevent dynamic linking.
13957link_static_flag=$lt_lt_prog_compiler_static
13958
13959# Does compiler simultaneously support -c and -o options?
13960compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13961
13962# Whether or not to add -lc for building shared libraries.
13963build_libtool_need_lc=$archive_cmds_need_lc
13964
13965# Whether or not to disallow shared libs when runtime libs are static.
13966allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13967
13968# Compiler flag to allow reflexive dlopens.
13969export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13970
13971# Compiler flag to generate shared objects directly from archives.
13972whole_archive_flag_spec=$lt_whole_archive_flag_spec
13973
13974# Whether the compiler copes with passing no objects directly.
13975compiler_needs_object=$lt_compiler_needs_object
13976
13977# Create an old-style archive from a shared archive.
13978old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13979
13980# Create a temporary old-style archive to link instead of a shared archive.
13981old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13982
13983# Commands used to build a shared archive.
13984archive_cmds=$lt_archive_cmds
13985archive_expsym_cmds=$lt_archive_expsym_cmds
13986
13987# Commands used to build a loadable module if different from building
13988# a shared archive.
13989module_cmds=$lt_module_cmds
13990module_expsym_cmds=$lt_module_expsym_cmds
13991
13992# Whether we are building with GNU ld or not.
13993with_gnu_ld=$lt_with_gnu_ld
13994
13995# Flag that allows shared libraries with undefined symbols to be built.
13996allow_undefined_flag=$lt_allow_undefined_flag
13997
13998# Flag that enforces no undefined symbols.
13999no_undefined_flag=$lt_no_undefined_flag
14000
14001# Flag to hardcode \$libdir into a binary during linking.
14002# This must work even if \$libdir does not exist
14003hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14004
14005# If ld is used when linking, flag to hardcode \$libdir into a binary
14006# during linking.  This must work even if \$libdir does not exist.
14007hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14008
14009# Whether we need a single "-rpath" flag with a separated argument.
14010hardcode_libdir_separator=$lt_hardcode_libdir_separator
14011
14012# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14013# DIR into the resulting binary.
14014hardcode_direct=$hardcode_direct
14015
14016# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14017# DIR into the resulting binary and the resulting library dependency is
14018# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14019# library is relocated.
14020hardcode_direct_absolute=$hardcode_direct_absolute
14021
14022# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14023# into the resulting binary.
14024hardcode_minus_L=$hardcode_minus_L
14025
14026# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14027# into the resulting binary.
14028hardcode_shlibpath_var=$hardcode_shlibpath_var
14029
14030# Set to "yes" if building a shared library automatically hardcodes DIR
14031# into the library and all subsequent libraries and executables linked
14032# against it.
14033hardcode_automatic=$hardcode_automatic
14034
14035# Set to yes if linker adds runtime paths of dependent libraries
14036# to runtime path list.
14037inherit_rpath=$inherit_rpath
14038
14039# Whether libtool must link a program against all its dependency libraries.
14040link_all_deplibs=$link_all_deplibs
14041
14042# Set to "yes" if exported symbols are required.
14043always_export_symbols=$always_export_symbols
14044
14045# The commands to list exported symbols.
14046export_symbols_cmds=$lt_export_symbols_cmds
14047
14048# Symbols that should not be listed in the preloaded symbols.
14049exclude_expsyms=$lt_exclude_expsyms
14050
14051# Symbols that must always be exported.
14052include_expsyms=$lt_include_expsyms
14053
14054# Commands necessary for linking programs (against libraries) with templates.
14055prelink_cmds=$lt_prelink_cmds
14056
14057# Commands necessary for finishing linking programs.
14058postlink_cmds=$lt_postlink_cmds
14059
14060# Specify filename containing input files.
14061file_list_spec=$lt_file_list_spec
14062
14063# How to hardcode a shared library path into an executable.
14064hardcode_action=$hardcode_action
14065
14066# ### END LIBTOOL CONFIG
14067
14068_LT_EOF
14069
14070  case $host_os in
14071  aix3*)
14072    cat <<\_LT_EOF >> "$cfgfile"
14073# AIX sometimes has problems with the GCC collect2 program.  For some
14074# reason, if we set the COLLECT_NAMES environment variable, the problems
14075# vanish in a puff of smoke.
14076if test "X${COLLECT_NAMES+set}" != Xset; then
14077  COLLECT_NAMES=
14078  export COLLECT_NAMES
14079fi
14080_LT_EOF
14081    ;;
14082  esac
14083
14084
14085ltmain="$ac_aux_dir/ltmain.sh"
14086
14087
14088  # We use sed instead of cat because bash on DJGPP gets confused if
14089  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14090  # text mode, it properly converts lines to CR/LF.  This bash problem
14091  # is reportedly fixed, but why not run on old versions too?
14092  sed '$q' "$ltmain" >> "$cfgfile" \
14093     || (rm -f "$cfgfile"; exit 1)
14094
14095  if test x"$xsi_shell" = xyes; then
14096  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14097func_dirname ()\
14098{\
14099\    case ${1} in\
14100\      */*) func_dirname_result="${1%/*}${2}" ;;\
14101\      *  ) func_dirname_result="${3}" ;;\
14102\    esac\
14103} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14104  && mv -f "$cfgfile.tmp" "$cfgfile" \
14105    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14106test 0 -eq $? || _lt_function_replace_fail=:
14107
14108
14109  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14110func_basename ()\
14111{\
14112\    func_basename_result="${1##*/}"\
14113} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14114  && mv -f "$cfgfile.tmp" "$cfgfile" \
14115    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14116test 0 -eq $? || _lt_function_replace_fail=:
14117
14118
14119  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14120func_dirname_and_basename ()\
14121{\
14122\    case ${1} in\
14123\      */*) func_dirname_result="${1%/*}${2}" ;;\
14124\      *  ) func_dirname_result="${3}" ;;\
14125\    esac\
14126\    func_basename_result="${1##*/}"\
14127} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14128  && mv -f "$cfgfile.tmp" "$cfgfile" \
14129    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14130test 0 -eq $? || _lt_function_replace_fail=:
14131
14132
14133  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14134func_stripname ()\
14135{\
14136\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14137\    # positional parameters, so assign one to ordinary parameter first.\
14138\    func_stripname_result=${3}\
14139\    func_stripname_result=${func_stripname_result#"${1}"}\
14140\    func_stripname_result=${func_stripname_result%"${2}"}\
14141} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14142  && mv -f "$cfgfile.tmp" "$cfgfile" \
14143    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14144test 0 -eq $? || _lt_function_replace_fail=:
14145
14146
14147  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14148func_split_long_opt ()\
14149{\
14150\    func_split_long_opt_name=${1%%=*}\
14151\    func_split_long_opt_arg=${1#*=}\
14152} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14153  && mv -f "$cfgfile.tmp" "$cfgfile" \
14154    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14155test 0 -eq $? || _lt_function_replace_fail=:
14156
14157
14158  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14159func_split_short_opt ()\
14160{\
14161\    func_split_short_opt_arg=${1#??}\
14162\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14163} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14164  && mv -f "$cfgfile.tmp" "$cfgfile" \
14165    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14166test 0 -eq $? || _lt_function_replace_fail=:
14167
14168
14169  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14170func_lo2o ()\
14171{\
14172\    case ${1} in\
14173\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14174\      *)    func_lo2o_result=${1} ;;\
14175\    esac\
14176} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14177  && mv -f "$cfgfile.tmp" "$cfgfile" \
14178    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14179test 0 -eq $? || _lt_function_replace_fail=:
14180
14181
14182  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14183func_xform ()\
14184{\
14185    func_xform_result=${1%.*}.lo\
14186} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14187  && mv -f "$cfgfile.tmp" "$cfgfile" \
14188    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14189test 0 -eq $? || _lt_function_replace_fail=:
14190
14191
14192  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14193func_arith ()\
14194{\
14195    func_arith_result=$(( $* ))\
14196} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14197  && mv -f "$cfgfile.tmp" "$cfgfile" \
14198    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14199test 0 -eq $? || _lt_function_replace_fail=:
14200
14201
14202  sed -e '/^func_len ()$/,/^} # func_len /c\
14203func_len ()\
14204{\
14205    func_len_result=${#1}\
14206} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14207  && mv -f "$cfgfile.tmp" "$cfgfile" \
14208    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14209test 0 -eq $? || _lt_function_replace_fail=:
14210
14211fi
14212
14213if test x"$lt_shell_append" = xyes; then
14214  sed -e '/^func_append ()$/,/^} # func_append /c\
14215func_append ()\
14216{\
14217    eval "${1}+=\\${2}"\
14218} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14219  && mv -f "$cfgfile.tmp" "$cfgfile" \
14220    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14221test 0 -eq $? || _lt_function_replace_fail=:
14222
14223
14224  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14225func_append_quoted ()\
14226{\
14227\    func_quote_for_eval "${2}"\
14228\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14229} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14230  && mv -f "$cfgfile.tmp" "$cfgfile" \
14231    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14232test 0 -eq $? || _lt_function_replace_fail=:
14233
14234
14235  # Save a `func_append' function call where possible by direct use of '+='
14236  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14237    && mv -f "$cfgfile.tmp" "$cfgfile" \
14238      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14239  test 0 -eq $? || _lt_function_replace_fail=:
14240else
14241  # Save a `func_append' function call even when '+=' is not available
14242  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14243    && mv -f "$cfgfile.tmp" "$cfgfile" \
14244      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14245  test 0 -eq $? || _lt_function_replace_fail=:
14246fi
14247
14248if test x"$_lt_function_replace_fail" = x":"; then
14249  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14250$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14251fi
14252
14253
14254   mv -f "$cfgfile" "$ofile" ||
14255    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14256  chmod +x "$ofile"
14257
14258 ;;
14259
14260  esac
14261done # for ac_tag
14262
14263
14264as_fn_exit 0
14265_ACEOF
14266ac_clean_files=$ac_clean_files_save
14267
14268test $ac_write_fail = 0 ||
14269  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14270
14271
14272# configure is writing to config.log, and then calls config.status.
14273# config.status does its own redirection, appending to config.log.
14274# Unfortunately, on DOS this fails, as config.log is still kept open
14275# by configure, so config.status won't be able to write to it; its
14276# output is simply discarded.  So we exec the FD to /dev/null,
14277# effectively closing config.log, so it can be properly (re)opened and
14278# appended to by config.status.  When coming back to configure, we
14279# need to make the FD available again.
14280if test "$no_create" != yes; then
14281  ac_cs_success=:
14282  ac_config_status_args=
14283  test "$silent" = yes &&
14284    ac_config_status_args="$ac_config_status_args --quiet"
14285  exec 5>/dev/null
14286  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14287  exec 5>>config.log
14288  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14289  # would make configure fail if this is the last instruction.
14290  $ac_cs_success || as_fn_exit 1
14291fi
14292if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14293  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14294$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14295fi
14296
14297