configure revision e9fcaa8a
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libX11 1.4.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548as_awk_strverscmp='
549  # Use only awk features that work with 7th edition Unix awk (1978).
550  # My, what an old awk you have, Mr. Solaris!
551  END {
552    while (length(v1) && length(v2)) {
553      # Set d1 to be the next thing to compare from v1, and likewise for d2.
554      # Normally this is a single character, but if v1 and v2 contain digits,
555      # compare them as integers and fractions as strverscmp does.
556      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
557	# Split v1 and v2 into their leading digit string components d1 and d2,
558	# and advance v1 and v2 past the leading digit strings.
559	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
560	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
561	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
562	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
563	if (d1 ~ /^0/) {
564	  if (d2 ~ /^0/) {
565	    # Compare two fractions.
566	    while (d1 ~ /^0/ && d2 ~ /^0/) {
567	      d1 = substr(d1, 2); len1--
568	      d2 = substr(d2, 2); len2--
569	    }
570	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
571	      # The two components differ in length, and the common prefix
572	      # contains only leading zeros.  Consider the longer to be less.
573	      d1 = -len1
574	      d2 = -len2
575	    } else {
576	      # Otherwise, compare as strings.
577	      d1 = "x" d1
578	      d2 = "x" d2
579	    }
580	  } else {
581	    # A fraction is less than an integer.
582	    exit 1
583	  }
584	} else {
585	  if (d2 ~ /^0/) {
586	    # An integer is greater than a fraction.
587	    exit 2
588	  } else {
589	    # Compare two integers.
590	    d1 += 0
591	    d2 += 0
592	  }
593	}
594      } else {
595	# The normal case, without worrying about digits.
596	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
597	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
598      }
599      if (d1 < d2) exit 1
600      if (d1 > d2) exit 2
601    }
602    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
603    # which mishandles some comparisons of empty strings to integers.
604    if (length(v2)) exit 1
605    if (length(v1)) exit 2
606  }
607'
608SHELL=${CONFIG_SHELL-/bin/sh}
609
610
611test -n "$DJDIR" || exec 7<&0 </dev/null
612exec 6>&1
613
614# Name of the host.
615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616# so uname gets run too.
617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619#
620# Initializations.
621#
622ac_default_prefix=/usr/local
623ac_clean_files=
624ac_config_libobj_dir=.
625LIBOBJS=
626cross_compiling=no
627subdirs=
628MFLAGS=
629MAKEFLAGS=
630
631# Identity of this package.
632PACKAGE_NAME='libX11'
633PACKAGE_TARNAME='libX11'
634PACKAGE_VERSION='1.4.1'
635PACKAGE_STRING='libX11 1.4.1'
636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637PACKAGE_URL=''
638
639ac_unique_file="Makefile.am"
640# Factoring default headers for most tests.
641ac_includes_default="\
642#include <stdio.h>
643#ifdef HAVE_SYS_TYPES_H
644# include <sys/types.h>
645#endif
646#ifdef HAVE_SYS_STAT_H
647# include <sys/stat.h>
648#endif
649#ifdef STDC_HEADERS
650# include <stdlib.h>
651# include <stddef.h>
652#else
653# ifdef HAVE_STDLIB_H
654#  include <stdlib.h>
655# endif
656#endif
657#ifdef HAVE_STRING_H
658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659#  include <memory.h>
660# endif
661# include <string.h>
662#endif
663#ifdef HAVE_STRINGS_H
664# include <strings.h>
665#endif
666#ifdef HAVE_INTTYPES_H
667# include <inttypes.h>
668#endif
669#ifdef HAVE_STDINT_H
670# include <stdint.h>
671#endif
672#ifdef HAVE_UNISTD_H
673# include <unistd.h>
674#endif"
675
676ac_header_list=
677ac_subst_vars='am__EXEEXT_FALSE
678am__EXEEXT_TRUE
679LTLIBOBJS
680LIBOBJS
681XTMALLOC_ZERO_CFLAGS
682XMALLOC_ZERO_CFLAGS
683MALLOC_ZERO_CFLAGS
684XERRORDB
685XKEYSYMDB
686X11_LOCALEDIR
687XLOCALEDIR
688X11_LOCALELIBDIR
689XLOCALELIBDIR
690X11_LOCALEDATADIR
691XLOCALEDATADIR
692X11_LIBS
693X11_CFLAGS
694X11_LIBDIR
695X11_DATADIR
696MAKE_LINT_LIB_FALSE
697MAKE_LINT_LIB_TRUE
698LINTLIB
699LINT_FALSE
700LINT_TRUE
701LINT_FLAGS
702LINT
703XKBPROTO_REQUIRES
704XKB_FALSE
705XKB_TRUE
706BIGFONT_LIBS
707BIGFONT_CFLAGS
708XLOCALE_FALSE
709XLOCALE_TRUE
710XCMS_FALSE
711XCMS_TRUE
712UDC_FALSE
713UDC_TRUE
714KEYSYMDEFS
715XTHREAD_CFLAGS
716XTHREADLIB
717THRSTUBS_FALSE
718THRSTUBS_TRUE
719LAUNCHD
720OS2_FALSE
721OS2_TRUE
722WCHAR32
723XLIB_LOADABLE_I18N_FALSE
724XLIB_LOADABLE_I18N_TRUE
725I18N_MODULE_LIBS
726X11_EXTRA_DEPS
727HAVE_PERL_FALSE
728HAVE_PERL_TRUE
729PERL
730LDFLAGS_FOR_BUILD
731CFLAGS_FOR_BUILD
732CPPFLAGS_FOR_BUILD
733CC_FOR_BUILD
734OTOOL64
735OTOOL
736LIPO
737NMEDIT
738DSYMUTIL
739MANIFEST_TOOL
740RANLIB
741ac_ct_AR
742AR
743DLLTOOL
744OBJDUMP
745LN_S
746NM
747ac_ct_DUMPBIN
748DUMPBIN
749LD
750FGREP
751LIBTOOL
752RAWCPPFLAGS
753RAWCPP
754HAVE_STYLESHEETS_FALSE
755HAVE_STYLESHEETS_TRUE
756XSL_STYLESHEET
757STYLESHEET_SRCDIR
758XORG_SGML_PATH
759HAVE_FOP_FALSE
760HAVE_FOP_TRUE
761FOP
762HAVE_XMLTO_FALSE
763HAVE_XMLTO_TRUE
764HAVE_XMLTO_TEXT_FALSE
765HAVE_XMLTO_TEXT_TRUE
766XMLTO
767ENABLE_SPECS_FALSE
768ENABLE_SPECS_TRUE
769AM_BACKSLASH
770AM_DEFAULT_VERBOSITY
771MAN_SUBSTS
772XORG_MAN_PAGE
773ADMIN_MAN_DIR
774DRIVER_MAN_DIR
775MISC_MAN_DIR
776FILE_MAN_DIR
777LIB_MAN_DIR
778APP_MAN_DIR
779ADMIN_MAN_SUFFIX
780DRIVER_MAN_SUFFIX
781MISC_MAN_SUFFIX
782FILE_MAN_SUFFIX
783LIB_MAN_SUFFIX
784APP_MAN_SUFFIX
785SED
786INSTALL_CMD
787PKG_CONFIG
788CHANGELOG_CMD
789CWARNFLAGS
790EGREP
791GREP
792CPP
793am__fastdepCC_FALSE
794am__fastdepCC_TRUE
795CCDEPMODE
796AMDEPBACKSLASH
797AMDEP_FALSE
798AMDEP_TRUE
799am__quote
800am__include
801DEPDIR
802OBJEXT
803EXEEXT
804ac_ct_CC
805CPPFLAGS
806LDFLAGS
807CFLAGS
808CC
809MAINT
810MAINTAINER_MODE_FALSE
811MAINTAINER_MODE_TRUE
812am__untar
813am__tar
814AMTAR
815am__leading_dot
816SET_MAKE
817AWK
818mkdir_p
819MKDIR_P
820INSTALL_STRIP_PROGRAM
821STRIP
822install_sh
823MAKEINFO
824AUTOHEADER
825AUTOMAKE
826AUTOCONF
827ACLOCAL
828VERSION
829PACKAGE
830CYGPATH_W
831am__isrc
832INSTALL_DATA
833INSTALL_SCRIPT
834INSTALL_PROGRAM
835host_os
836host_vendor
837host_cpu
838host
839build_os
840build_vendor
841build_cpu
842build
843target_alias
844host_alias
845build_alias
846LIBS
847ECHO_T
848ECHO_N
849ECHO_C
850DEFS
851mandir
852localedir
853libdir
854psdir
855pdfdir
856dvidir
857htmldir
858infodir
859docdir
860oldincludedir
861includedir
862localstatedir
863sharedstatedir
864sysconfdir
865datadir
866datarootdir
867libexecdir
868sbindir
869bindir
870program_transform_name
871prefix
872exec_prefix
873PACKAGE_URL
874PACKAGE_BUGREPORT
875PACKAGE_STRING
876PACKAGE_VERSION
877PACKAGE_TARNAME
878PACKAGE_NAME
879PATH_SEPARATOR
880SHELL'
881ac_subst_files=''
882ac_user_opts='
883enable_option_checking
884enable_maintainer_mode
885enable_dependency_tracking
886enable_strict_compilation
887enable_silent_rules
888enable_specs
889with_xmlto
890with_fop
891enable_shared
892enable_static
893with_pic
894enable_fast_install
895with_gnu_ld
896with_sysroot
897enable_libtool_lock
898with_perl
899enable_unix_transport
900enable_tcp_transport
901enable_ipv6
902enable_local_transport
903enable_secure_rpc
904with_local_transport_order
905enable_loadable_i18n
906enable_loadable_xcursor
907with_launchd
908enable_xthreads
909enable_xcms
910enable_xlocale
911enable_xlocaledir
912enable_xf86bigfont
913enable_xkb
914enable_composecache
915with_lint
916enable_lint_library
917with_locale_lib_dir
918enable_malloc0returnsnull
919'
920      ac_precious_vars='build_alias
921host_alias
922target_alias
923CC
924CFLAGS
925LDFLAGS
926LIBS
927CPPFLAGS
928CPP
929PKG_CONFIG
930XMLTO
931FOP
932BIGFONT_CFLAGS
933BIGFONT_LIBS
934LINT
935LINT_FLAGS
936X11_CFLAGS
937X11_LIBS'
938
939
940# Initialize some variables set by options.
941ac_init_help=
942ac_init_version=false
943ac_unrecognized_opts=
944ac_unrecognized_sep=
945# The variables have the same names as the options, with
946# dashes changed to underlines.
947cache_file=/dev/null
948exec_prefix=NONE
949no_create=
950no_recursion=
951prefix=NONE
952program_prefix=NONE
953program_suffix=NONE
954program_transform_name=s,x,x,
955silent=
956site=
957srcdir=
958verbose=
959x_includes=NONE
960x_libraries=NONE
961
962# Installation directory options.
963# These are left unexpanded so users can "make install exec_prefix=/foo"
964# and all the variables that are supposed to be based on exec_prefix
965# by default will actually change.
966# Use braces instead of parens because sh, perl, etc. also accept them.
967# (The list follows the same order as the GNU Coding Standards.)
968bindir='${exec_prefix}/bin'
969sbindir='${exec_prefix}/sbin'
970libexecdir='${exec_prefix}/libexec'
971datarootdir='${prefix}/share'
972datadir='${datarootdir}'
973sysconfdir='${prefix}/etc'
974sharedstatedir='${prefix}/com'
975localstatedir='${prefix}/var'
976includedir='${prefix}/include'
977oldincludedir='/usr/include'
978docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979infodir='${datarootdir}/info'
980htmldir='${docdir}'
981dvidir='${docdir}'
982pdfdir='${docdir}'
983psdir='${docdir}'
984libdir='${exec_prefix}/lib'
985localedir='${datarootdir}/locale'
986mandir='${datarootdir}/man'
987
988ac_prev=
989ac_dashdash=
990for ac_option
991do
992  # If the previous option needs an argument, assign it.
993  if test -n "$ac_prev"; then
994    eval $ac_prev=\$ac_option
995    ac_prev=
996    continue
997  fi
998
999  case $ac_option in
1000  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001  *=)   ac_optarg= ;;
1002  *)    ac_optarg=yes ;;
1003  esac
1004
1005  # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007  case $ac_dashdash$ac_option in
1008  --)
1009    ac_dashdash=yes ;;
1010
1011  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012    ac_prev=bindir ;;
1013  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014    bindir=$ac_optarg ;;
1015
1016  -build | --build | --buil | --bui | --bu)
1017    ac_prev=build_alias ;;
1018  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019    build_alias=$ac_optarg ;;
1020
1021  -cache-file | --cache-file | --cache-fil | --cache-fi \
1022  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023    ac_prev=cache_file ;;
1024  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026    cache_file=$ac_optarg ;;
1027
1028  --config-cache | -C)
1029    cache_file=config.cache ;;
1030
1031  -datadir | --datadir | --datadi | --datad)
1032    ac_prev=datadir ;;
1033  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034    datadir=$ac_optarg ;;
1035
1036  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037  | --dataroo | --dataro | --datar)
1038    ac_prev=datarootdir ;;
1039  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041    datarootdir=$ac_optarg ;;
1042
1043  -disable-* | --disable-*)
1044    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045    # Reject names that are not valid shell variable names.
1046    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047      as_fn_error $? "invalid feature name: $ac_useropt"
1048    ac_useropt_orig=$ac_useropt
1049    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050    case $ac_user_opts in
1051      *"
1052"enable_$ac_useropt"
1053"*) ;;
1054      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055	 ac_unrecognized_sep=', ';;
1056    esac
1057    eval enable_$ac_useropt=no ;;
1058
1059  -docdir | --docdir | --docdi | --doc | --do)
1060    ac_prev=docdir ;;
1061  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062    docdir=$ac_optarg ;;
1063
1064  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065    ac_prev=dvidir ;;
1066  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067    dvidir=$ac_optarg ;;
1068
1069  -enable-* | --enable-*)
1070    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073      as_fn_error $? "invalid feature name: $ac_useropt"
1074    ac_useropt_orig=$ac_useropt
1075    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076    case $ac_user_opts in
1077      *"
1078"enable_$ac_useropt"
1079"*) ;;
1080      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081	 ac_unrecognized_sep=', ';;
1082    esac
1083    eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087  | --exec | --exe | --ex)
1088    ac_prev=exec_prefix ;;
1089  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091  | --exec=* | --exe=* | --ex=*)
1092    exec_prefix=$ac_optarg ;;
1093
1094  -gas | --gas | --ga | --g)
1095    # Obsolete; use --with-gas.
1096    with_gas=yes ;;
1097
1098  -help | --help | --hel | --he | -h)
1099    ac_init_help=long ;;
1100  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101    ac_init_help=recursive ;;
1102  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103    ac_init_help=short ;;
1104
1105  -host | --host | --hos | --ho)
1106    ac_prev=host_alias ;;
1107  -host=* | --host=* | --hos=* | --ho=*)
1108    host_alias=$ac_optarg ;;
1109
1110  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111    ac_prev=htmldir ;;
1112  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113  | --ht=*)
1114    htmldir=$ac_optarg ;;
1115
1116  -includedir | --includedir | --includedi | --included | --include \
1117  | --includ | --inclu | --incl | --inc)
1118    ac_prev=includedir ;;
1119  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120  | --includ=* | --inclu=* | --incl=* | --inc=*)
1121    includedir=$ac_optarg ;;
1122
1123  -infodir | --infodir | --infodi | --infod | --info | --inf)
1124    ac_prev=infodir ;;
1125  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126    infodir=$ac_optarg ;;
1127
1128  -libdir | --libdir | --libdi | --libd)
1129    ac_prev=libdir ;;
1130  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131    libdir=$ac_optarg ;;
1132
1133  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134  | --libexe | --libex | --libe)
1135    ac_prev=libexecdir ;;
1136  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137  | --libexe=* | --libex=* | --libe=*)
1138    libexecdir=$ac_optarg ;;
1139
1140  -localedir | --localedir | --localedi | --localed | --locale)
1141    ac_prev=localedir ;;
1142  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143    localedir=$ac_optarg ;;
1144
1145  -localstatedir | --localstatedir | --localstatedi | --localstated \
1146  | --localstate | --localstat | --localsta | --localst | --locals)
1147    ac_prev=localstatedir ;;
1148  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150    localstatedir=$ac_optarg ;;
1151
1152  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153    ac_prev=mandir ;;
1154  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155    mandir=$ac_optarg ;;
1156
1157  -nfp | --nfp | --nf)
1158    # Obsolete; use --without-fp.
1159    with_fp=no ;;
1160
1161  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162  | --no-cr | --no-c | -n)
1163    no_create=yes ;;
1164
1165  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167    no_recursion=yes ;;
1168
1169  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171  | --oldin | --oldi | --old | --ol | --o)
1172    ac_prev=oldincludedir ;;
1173  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176    oldincludedir=$ac_optarg ;;
1177
1178  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179    ac_prev=prefix ;;
1180  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181    prefix=$ac_optarg ;;
1182
1183  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184  | --program-pre | --program-pr | --program-p)
1185    ac_prev=program_prefix ;;
1186  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188    program_prefix=$ac_optarg ;;
1189
1190  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191  | --program-suf | --program-su | --program-s)
1192    ac_prev=program_suffix ;;
1193  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195    program_suffix=$ac_optarg ;;
1196
1197  -program-transform-name | --program-transform-name \
1198  | --program-transform-nam | --program-transform-na \
1199  | --program-transform-n | --program-transform- \
1200  | --program-transform | --program-transfor \
1201  | --program-transfo | --program-transf \
1202  | --program-trans | --program-tran \
1203  | --progr-tra | --program-tr | --program-t)
1204    ac_prev=program_transform_name ;;
1205  -program-transform-name=* | --program-transform-name=* \
1206  | --program-transform-nam=* | --program-transform-na=* \
1207  | --program-transform-n=* | --program-transform-=* \
1208  | --program-transform=* | --program-transfor=* \
1209  | --program-transfo=* | --program-transf=* \
1210  | --program-trans=* | --program-tran=* \
1211  | --progr-tra=* | --program-tr=* | --program-t=*)
1212    program_transform_name=$ac_optarg ;;
1213
1214  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215    ac_prev=pdfdir ;;
1216  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217    pdfdir=$ac_optarg ;;
1218
1219  -psdir | --psdir | --psdi | --psd | --ps)
1220    ac_prev=psdir ;;
1221  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222    psdir=$ac_optarg ;;
1223
1224  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225  | -silent | --silent | --silen | --sile | --sil)
1226    silent=yes ;;
1227
1228  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229    ac_prev=sbindir ;;
1230  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231  | --sbi=* | --sb=*)
1232    sbindir=$ac_optarg ;;
1233
1234  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236  | --sharedst | --shareds | --shared | --share | --shar \
1237  | --sha | --sh)
1238    ac_prev=sharedstatedir ;;
1239  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242  | --sha=* | --sh=*)
1243    sharedstatedir=$ac_optarg ;;
1244
1245  -site | --site | --sit)
1246    ac_prev=site ;;
1247  -site=* | --site=* | --sit=*)
1248    site=$ac_optarg ;;
1249
1250  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251    ac_prev=srcdir ;;
1252  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253    srcdir=$ac_optarg ;;
1254
1255  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256  | --syscon | --sysco | --sysc | --sys | --sy)
1257    ac_prev=sysconfdir ;;
1258  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260    sysconfdir=$ac_optarg ;;
1261
1262  -target | --target | --targe | --targ | --tar | --ta | --t)
1263    ac_prev=target_alias ;;
1264  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265    target_alias=$ac_optarg ;;
1266
1267  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268    verbose=yes ;;
1269
1270  -version | --version | --versio | --versi | --vers | -V)
1271    ac_init_version=: ;;
1272
1273  -with-* | --with-*)
1274    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275    # Reject names that are not valid shell variable names.
1276    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277      as_fn_error $? "invalid package name: $ac_useropt"
1278    ac_useropt_orig=$ac_useropt
1279    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280    case $ac_user_opts in
1281      *"
1282"with_$ac_useropt"
1283"*) ;;
1284      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285	 ac_unrecognized_sep=', ';;
1286    esac
1287    eval with_$ac_useropt=\$ac_optarg ;;
1288
1289  -without-* | --without-*)
1290    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291    # Reject names that are not valid shell variable names.
1292    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293      as_fn_error $? "invalid package name: $ac_useropt"
1294    ac_useropt_orig=$ac_useropt
1295    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296    case $ac_user_opts in
1297      *"
1298"with_$ac_useropt"
1299"*) ;;
1300      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301	 ac_unrecognized_sep=', ';;
1302    esac
1303    eval with_$ac_useropt=no ;;
1304
1305  --x)
1306    # Obsolete; use --with-x.
1307    with_x=yes ;;
1308
1309  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310  | --x-incl | --x-inc | --x-in | --x-i)
1311    ac_prev=x_includes ;;
1312  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314    x_includes=$ac_optarg ;;
1315
1316  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318    ac_prev=x_libraries ;;
1319  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321    x_libraries=$ac_optarg ;;
1322
1323  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1324Try \`$0 --help' for more information"
1325    ;;
1326
1327  *=*)
1328    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329    # Reject names that are not valid shell variable names.
1330    case $ac_envvar in #(
1331      '' | [0-9]* | *[!_$as_cr_alnum]* )
1332      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1333    esac
1334    eval $ac_envvar=\$ac_optarg
1335    export $ac_envvar ;;
1336
1337  *)
1338    # FIXME: should be removed in autoconf 3.0.
1339    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1343    ;;
1344
1345  esac
1346done
1347
1348if test -n "$ac_prev"; then
1349  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350  as_fn_error $? "missing argument to $ac_option"
1351fi
1352
1353if test -n "$ac_unrecognized_opts"; then
1354  case $enable_option_checking in
1355    no) ;;
1356    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1357    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358  esac
1359fi
1360
1361# Check all directory arguments for consistency.
1362for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363		datadir sysconfdir sharedstatedir localstatedir includedir \
1364		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365		libdir localedir mandir
1366do
1367  eval ac_val=\$$ac_var
1368  # Remove trailing slashes.
1369  case $ac_val in
1370    */ )
1371      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372      eval $ac_var=\$ac_val;;
1373  esac
1374  # Be sure to have absolute directory names.
1375  case $ac_val in
1376    [\\/$]* | ?:[\\/]* )  continue;;
1377    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378  esac
1379  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1380done
1381
1382# There might be people who depend on the old broken behavior: `$host'
1383# used to hold the argument of --host etc.
1384# FIXME: To remove some day.
1385build=$build_alias
1386host=$host_alias
1387target=$target_alias
1388
1389# FIXME: To remove some day.
1390if test "x$host_alias" != x; then
1391  if test "x$build_alias" = x; then
1392    cross_compiling=maybe
1393    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1394    If a cross compiler is detected then cross compile mode will be used" >&2
1395  elif test "x$build_alias" != "x$host_alias"; then
1396    cross_compiling=yes
1397  fi
1398fi
1399
1400ac_tool_prefix=
1401test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403test "$silent" = yes && exec 6>/dev/null
1404
1405
1406ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407ac_ls_di=`ls -di .` &&
1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409  as_fn_error $? "working directory cannot be determined"
1410test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411  as_fn_error $? "pwd does not report name of working directory"
1412
1413
1414# Find the source files, if location was not specified.
1415if test -z "$srcdir"; then
1416  ac_srcdir_defaulted=yes
1417  # Try the directory containing this script, then the parent directory.
1418  ac_confdir=`$as_dirname -- "$as_myself" ||
1419$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420	 X"$as_myself" : 'X\(//\)[^/]' \| \
1421	 X"$as_myself" : 'X\(//\)$' \| \
1422	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423$as_echo X"$as_myself" |
1424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425	    s//\1/
1426	    q
1427	  }
1428	  /^X\(\/\/\)[^/].*/{
1429	    s//\1/
1430	    q
1431	  }
1432	  /^X\(\/\/\)$/{
1433	    s//\1/
1434	    q
1435	  }
1436	  /^X\(\/\).*/{
1437	    s//\1/
1438	    q
1439	  }
1440	  s/.*/./; q'`
1441  srcdir=$ac_confdir
1442  if test ! -r "$srcdir/$ac_unique_file"; then
1443    srcdir=..
1444  fi
1445else
1446  ac_srcdir_defaulted=no
1447fi
1448if test ! -r "$srcdir/$ac_unique_file"; then
1449  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451fi
1452ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453ac_abs_confdir=`(
1454	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455	pwd)`
1456# When building in place, set srcdir=.
1457if test "$ac_abs_confdir" = "$ac_pwd"; then
1458  srcdir=.
1459fi
1460# Remove unnecessary trailing slashes from srcdir.
1461# Double slashes in file names in object file debugging info
1462# mess up M-x gdb in Emacs.
1463case $srcdir in
1464*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465esac
1466for ac_var in $ac_precious_vars; do
1467  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468  eval ac_env_${ac_var}_value=\$${ac_var}
1469  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471done
1472
1473#
1474# Report the --help message.
1475#
1476if test "$ac_init_help" = "long"; then
1477  # Omit some internal or obsolete options to make the list less imposing.
1478  # This message is too long to be a string in the A/UX 3.1 sh.
1479  cat <<_ACEOF
1480\`configure' configures libX11 1.4.1 to adapt to many kinds of systems.
1481
1482Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
1487Defaults for the options are specified in brackets.
1488
1489Configuration:
1490  -h, --help              display this help and exit
1491      --help=short        display options specific to this package
1492      --help=recursive    display the short help of all the included packages
1493  -V, --version           display version information and exit
1494  -q, --quiet, --silent   do not print \`checking ...' messages
1495      --cache-file=FILE   cache test results in FILE [disabled]
1496  -C, --config-cache      alias for \`--cache-file=config.cache'
1497  -n, --no-create         do not create output files
1498      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
1500Installation directories:
1501  --prefix=PREFIX         install architecture-independent files in PREFIX
1502                          [$ac_default_prefix]
1503  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504                          [PREFIX]
1505
1506By default, \`make install' will install all the files in
1507\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509for instance \`--prefix=\$HOME'.
1510
1511For better control, use the options below.
1512
1513Fine tuning of the installation directories:
1514  --bindir=DIR            user executables [EPREFIX/bin]
1515  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516  --libexecdir=DIR        program executables [EPREFIX/libexec]
1517  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520  --libdir=DIR            object code libraries [EPREFIX/lib]
1521  --includedir=DIR        C header files [PREFIX/include]
1522  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1523  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1524  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1525  --infodir=DIR           info documentation [DATAROOTDIR/info]
1526  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1527  --mandir=DIR            man documentation [DATAROOTDIR/man]
1528  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1529  --htmldir=DIR           html documentation [DOCDIR]
1530  --dvidir=DIR            dvi documentation [DOCDIR]
1531  --pdfdir=DIR            pdf documentation [DOCDIR]
1532  --psdir=DIR             ps documentation [DOCDIR]
1533_ACEOF
1534
1535  cat <<\_ACEOF
1536
1537Program names:
1538  --program-prefix=PREFIX            prepend PREFIX to installed program names
1539  --program-suffix=SUFFIX            append SUFFIX to installed program names
1540  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1541
1542System types:
1543  --build=BUILD     configure for building on BUILD [guessed]
1544  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545_ACEOF
1546fi
1547
1548if test -n "$ac_init_help"; then
1549  case $ac_init_help in
1550     short | recursive ) echo "Configuration of libX11 1.4.1:";;
1551   esac
1552  cat <<\_ACEOF
1553
1554Optional Features:
1555  --disable-option-checking  ignore unrecognized --enable/--with options
1556  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558  --enable-maintainer-mode  enable make rules and dependencies not useful
1559			  (and sometimes confusing) to the casual installer
1560  --disable-dependency-tracking  speeds up one-time build
1561  --enable-dependency-tracking   do not reject slow dependency extractors
1562  --enable-strict-compilation
1563                          Enable all warnings from compiler and make them
1564                          errors (default: disabled)
1565  --enable-silent-rules          less verbose build output (undo: `make V=1')
1566  --disable-silent-rules         verbose build output (undo: `make V=0')
1567  --enable-specs          Enable building the specs (default: yes)
1568  --enable-shared[=PKGS]  build shared libraries [default=yes]
1569  --enable-static[=PKGS]  build static libraries [default=yes]
1570  --enable-fast-install[=PKGS]
1571                          optimize for fast installation [default=yes]
1572  --disable-libtool-lock  avoid locking (might break parallel builds)
1573  --enable-unix-transport Enable UNIX domain socket transport
1574  --enable-tcp-transport  Enable TCP socket transport
1575  --enable-ipv6           Enable IPv6 support
1576  --enable-local-transport
1577                          Enable os-specific local transport
1578  --enable-secure-rpc     Enable Secure RPC
1579  --enable-loadable-i18n  Controls loadable i18n module support
1580  --disable-loadable-xcursor
1581                          Controls loadable xcursor library support
1582  --disable-xthreads      Disable Xlib support for Multithreading
1583  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1584  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1585  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1586  --disable-xf86bigfont   Disable XF86BigFont extension support
1587  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1588  --disable-composecache  Disable compose table cache support
1589  --enable-lint-library   Create lint library (default: disabled)
1590  --enable-malloc0returnsnull
1591                          malloc(0) returns NULL (default: auto)
1592
1593Optional Packages:
1594  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1595  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1596  --with-xmlto            Use xmlto to regenerate documentation (default:
1597                          auto)
1598  --with-fop              Use fop to regenerate documentation (default: no)
1599  --with-pic              try to use only PIC/non-PIC objects [default=use
1600                          both]
1601  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1602  --with-sysroot=DIR Search for dependent libraries within DIR
1603                        (or the compiler's sysroot if not specified).
1604  --with-perl=<path>      path to perl interpreter for build-time tests
1605  --with-local-transport-order=LIST
1606                          preference sorted list of transport types to try for
1607                          local connections
1608  --with-launchd          Build with support for Apple's launchd (default:
1609                          auto)
1610  --with-lint             Use a lint-style source code checker (default:
1611                          disabled)
1612  --with-locale-lib-dir=DIR
1613                          Directory where locale libraries files are installed
1614                          (default: $libdir/X11/locale)
1615
1616Some influential environment variables:
1617  CC          C compiler command
1618  CFLAGS      C compiler flags
1619  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1620              nonstandard directory <lib dir>
1621  LIBS        libraries to pass to the linker, e.g. -l<library>
1622  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1623              you have headers in a nonstandard directory <include dir>
1624  CPP         C preprocessor
1625  PKG_CONFIG  path to pkg-config utility
1626  XMLTO       Path to xmlto command
1627  FOP         Path to fop command
1628  BIGFONT_CFLAGS
1629              C compiler flags for BIGFONT, overriding pkg-config
1630  BIGFONT_LIBS
1631              linker flags for BIGFONT, overriding pkg-config
1632  LINT        Path to a lint-style command
1633  LINT_FLAGS  Flags for the lint-style command
1634  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1635  X11_LIBS    linker flags for X11, overriding pkg-config
1636
1637Use these variables to override the choices made by `configure' or to help
1638it to find libraries and programs with nonstandard names/locations.
1639
1640Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1641_ACEOF
1642ac_status=$?
1643fi
1644
1645if test "$ac_init_help" = "recursive"; then
1646  # If there are subdirs, report their specific --help.
1647  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648    test -d "$ac_dir" ||
1649      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650      continue
1651    ac_builddir=.
1652
1653case "$ac_dir" in
1654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655*)
1656  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657  # A ".." for each directory in $ac_dir_suffix.
1658  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659  case $ac_top_builddir_sub in
1660  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662  esac ;;
1663esac
1664ac_abs_top_builddir=$ac_pwd
1665ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666# for backward compatibility:
1667ac_top_builddir=$ac_top_build_prefix
1668
1669case $srcdir in
1670  .)  # We are building in place.
1671    ac_srcdir=.
1672    ac_top_srcdir=$ac_top_builddir_sub
1673    ac_abs_top_srcdir=$ac_pwd ;;
1674  [\\/]* | ?:[\\/]* )  # Absolute name.
1675    ac_srcdir=$srcdir$ac_dir_suffix;
1676    ac_top_srcdir=$srcdir
1677    ac_abs_top_srcdir=$srcdir ;;
1678  *) # Relative name.
1679    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680    ac_top_srcdir=$ac_top_build_prefix$srcdir
1681    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682esac
1683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685    cd "$ac_dir" || { ac_status=$?; continue; }
1686    # Check for guested configure.
1687    if test -f "$ac_srcdir/configure.gnu"; then
1688      echo &&
1689      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690    elif test -f "$ac_srcdir/configure"; then
1691      echo &&
1692      $SHELL "$ac_srcdir/configure" --help=recursive
1693    else
1694      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695    fi || ac_status=$?
1696    cd "$ac_pwd" || { ac_status=$?; break; }
1697  done
1698fi
1699
1700test -n "$ac_init_help" && exit $ac_status
1701if $ac_init_version; then
1702  cat <<\_ACEOF
1703libX11 configure 1.4.1
1704generated by GNU Autoconf 2.68
1705
1706Copyright (C) 2010 Free Software Foundation, Inc.
1707This configure script is free software; the Free Software Foundation
1708gives unlimited permission to copy, distribute and modify it.
1709_ACEOF
1710  exit
1711fi
1712
1713## ------------------------ ##
1714## Autoconf initialization. ##
1715## ------------------------ ##
1716
1717# ac_fn_c_try_compile LINENO
1718# --------------------------
1719# Try to compile conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_compile ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  rm -f conftest.$ac_objext
1724  if { { ac_try="$ac_compile"
1725case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_compile") 2>conftest.err
1732  ac_status=$?
1733  if test -s conftest.err; then
1734    grep -v '^ *+' conftest.err >conftest.er1
1735    cat conftest.er1 >&5
1736    mv -f conftest.er1 conftest.err
1737  fi
1738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739  test $ac_status = 0; } && {
1740	 test -z "$ac_c_werror_flag" ||
1741	 test ! -s conftest.err
1742       } && test -s conftest.$ac_objext; then :
1743  ac_retval=0
1744else
1745  $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748	ac_retval=1
1749fi
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751  as_fn_set_status $ac_retval
1752
1753} # ac_fn_c_try_compile
1754
1755# ac_fn_c_try_cpp LINENO
1756# ----------------------
1757# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_cpp ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  if { { ac_try="$ac_cpp conftest.$ac_ext"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769  ac_status=$?
1770  if test -s conftest.err; then
1771    grep -v '^ *+' conftest.err >conftest.er1
1772    cat conftest.er1 >&5
1773    mv -f conftest.er1 conftest.err
1774  fi
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } > conftest.i && {
1777	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778	 test ! -s conftest.err
1779       }; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785    ac_retval=1
1786fi
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_cpp
1791
1792# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793# -------------------------------------------------------
1794# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795# the include files in INCLUDES and setting the cache variable VAR
1796# accordingly.
1797ac_fn_c_check_header_mongrel ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  if eval \${$3+:} false; then :
1801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804  $as_echo_n "(cached) " >&6
1805fi
1806eval ac_res=\$$3
1807	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809else
1810  # Is the header compilable?
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812$as_echo_n "checking $2 usability... " >&6; }
1813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h.  */
1815$4
1816#include <$2>
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"; then :
1819  ac_header_compiler=yes
1820else
1821  ac_header_compiler=no
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825$as_echo "$ac_header_compiler" >&6; }
1826
1827# Is the header present?
1828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829$as_echo_n "checking $2 presence... " >&6; }
1830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h.  */
1832#include <$2>
1833_ACEOF
1834if ac_fn_c_try_cpp "$LINENO"; then :
1835  ac_header_preproc=yes
1836else
1837  ac_header_preproc=no
1838fi
1839rm -f conftest.err conftest.i conftest.$ac_ext
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841$as_echo "$ac_header_preproc" >&6; }
1842
1843# So?  What about this header?
1844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845  yes:no: )
1846    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850    ;;
1851  no:yes:* )
1852    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1855$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1859$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862( $as_echo "## ---------------------------------------------------------------------- ##
1863## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1864## ---------------------------------------------------------------------- ##"
1865     ) | sed "s/^/$as_me: WARNING:     /" >&2
1866    ;;
1867esac
1868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
1870if eval \${$3+:} false; then :
1871  $as_echo_n "(cached) " >&6
1872else
1873  eval "$3=\$ac_header_compiler"
1874fi
1875eval ac_res=\$$3
1876	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878fi
1879  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881} # ac_fn_c_check_header_mongrel
1882
1883# ac_fn_c_try_run LINENO
1884# ----------------------
1885# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1886# that executables *can* be run.
1887ac_fn_c_try_run ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  if { { ac_try="$ac_link"
1891case "(($ac_try" in
1892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893  *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896$as_echo "$ac_try_echo"; } >&5
1897  (eval "$ac_link") 2>&5
1898  ac_status=$?
1899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901  { { case "(($ac_try" in
1902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903  *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907  (eval "$ac_try") 2>&5
1908  ac_status=$?
1909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910  test $ac_status = 0; }; }; then :
1911  ac_retval=0
1912else
1913  $as_echo "$as_me: program exited with status $ac_status" >&5
1914       $as_echo "$as_me: failed program was:" >&5
1915sed 's/^/| /' conftest.$ac_ext >&5
1916
1917       ac_retval=$ac_status
1918fi
1919  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921  as_fn_set_status $ac_retval
1922
1923} # ac_fn_c_try_run
1924
1925# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926# -------------------------------------------------------
1927# Tests whether HEADER exists and can be compiled using the include files in
1928# INCLUDES, setting the cache variable VAR accordingly.
1929ac_fn_c_check_header_compile ()
1930{
1931  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933$as_echo_n "checking for $2... " >&6; }
1934if eval \${$3+:} false; then :
1935  $as_echo_n "(cached) " >&6
1936else
1937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939$4
1940#include <$2>
1941_ACEOF
1942if ac_fn_c_try_compile "$LINENO"; then :
1943  eval "$3=yes"
1944else
1945  eval "$3=no"
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949eval ac_res=\$$3
1950	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
1952  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954} # ac_fn_c_check_header_compile
1955
1956# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1957# ---------------------------------------------
1958# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1959# accordingly.
1960ac_fn_c_check_decl ()
1961{
1962  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963  as_decl_name=`echo $2|sed 's/ *(.*//'`
1964  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1966$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1967if eval \${$3+:} false; then :
1968  $as_echo_n "(cached) " >&6
1969else
1970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h.  */
1972$4
1973int
1974main ()
1975{
1976#ifndef $as_decl_name
1977#ifdef __cplusplus
1978  (void) $as_decl_use;
1979#else
1980  (void) $as_decl_name;
1981#endif
1982#endif
1983
1984  ;
1985  return 0;
1986}
1987_ACEOF
1988if ac_fn_c_try_compile "$LINENO"; then :
1989  eval "$3=yes"
1990else
1991  eval "$3=no"
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994fi
1995eval ac_res=\$$3
1996	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997$as_echo "$ac_res" >&6; }
1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000} # ac_fn_c_check_decl
2001
2002# ac_fn_c_try_link LINENO
2003# -----------------------
2004# Try to link conftest.$ac_ext, and return whether this succeeded.
2005ac_fn_c_try_link ()
2006{
2007  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008  rm -f conftest.$ac_objext conftest$ac_exeext
2009  if { { ac_try="$ac_link"
2010case "(($ac_try" in
2011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012  *) ac_try_echo=$ac_try;;
2013esac
2014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015$as_echo "$ac_try_echo"; } >&5
2016  (eval "$ac_link") 2>conftest.err
2017  ac_status=$?
2018  if test -s conftest.err; then
2019    grep -v '^ *+' conftest.err >conftest.er1
2020    cat conftest.er1 >&5
2021    mv -f conftest.er1 conftest.err
2022  fi
2023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024  test $ac_status = 0; } && {
2025	 test -z "$ac_c_werror_flag" ||
2026	 test ! -s conftest.err
2027       } && test -s conftest$ac_exeext && {
2028	 test "$cross_compiling" = yes ||
2029	 $as_test_x conftest$ac_exeext
2030       }; then :
2031  ac_retval=0
2032else
2033  $as_echo "$as_me: failed program was:" >&5
2034sed 's/^/| /' conftest.$ac_ext >&5
2035
2036	ac_retval=1
2037fi
2038  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2039  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2040  # interfere with the next link command; also delete a directory that is
2041  # left behind by Apple's compiler.  We do this before executing the actions.
2042  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044  as_fn_set_status $ac_retval
2045
2046} # ac_fn_c_try_link
2047
2048# ac_fn_c_check_func LINENO FUNC VAR
2049# ----------------------------------
2050# Tests whether FUNC exists, setting the cache variable VAR accordingly
2051ac_fn_c_check_func ()
2052{
2053  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055$as_echo_n "checking for $2... " >&6; }
2056if eval \${$3+:} false; then :
2057  $as_echo_n "(cached) " >&6
2058else
2059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h.  */
2061/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2062   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2063#define $2 innocuous_$2
2064
2065/* System header to define __stub macros and hopefully few prototypes,
2066    which can conflict with char $2 (); below.
2067    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2068    <limits.h> exists even on freestanding compilers.  */
2069
2070#ifdef __STDC__
2071# include <limits.h>
2072#else
2073# include <assert.h>
2074#endif
2075
2076#undef $2
2077
2078/* Override any GCC internal prototype to avoid an error.
2079   Use char because int might match the return type of a GCC
2080   builtin and then its argument prototype would still apply.  */
2081#ifdef __cplusplus
2082extern "C"
2083#endif
2084char $2 ();
2085/* The GNU C library defines this for functions which it implements
2086    to always fail with ENOSYS.  Some functions are actually named
2087    something starting with __ and the normal name is an alias.  */
2088#if defined __stub_$2 || defined __stub___$2
2089choke me
2090#endif
2091
2092int
2093main ()
2094{
2095return $2 ();
2096  ;
2097  return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_link "$LINENO"; then :
2101  eval "$3=yes"
2102else
2103  eval "$3=no"
2104fi
2105rm -f core conftest.err conftest.$ac_objext \
2106    conftest$ac_exeext conftest.$ac_ext
2107fi
2108eval ac_res=\$$3
2109	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113} # ac_fn_c_check_func
2114
2115# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2116# ----------------------------------------------------
2117# Tries to find if the field MEMBER exists in type AGGR, after including
2118# INCLUDES, setting cache variable VAR accordingly.
2119ac_fn_c_check_member ()
2120{
2121  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2123$as_echo_n "checking for $2.$3... " >&6; }
2124if eval \${$4+:} false; then :
2125  $as_echo_n "(cached) " >&6
2126else
2127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h.  */
2129$5
2130int
2131main ()
2132{
2133static $2 ac_aggr;
2134if (ac_aggr.$3)
2135return 0;
2136  ;
2137  return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141  eval "$4=yes"
2142else
2143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h.  */
2145$5
2146int
2147main ()
2148{
2149static $2 ac_aggr;
2150if (sizeof ac_aggr.$3)
2151return 0;
2152  ;
2153  return 0;
2154}
2155_ACEOF
2156if ac_fn_c_try_compile "$LINENO"; then :
2157  eval "$4=yes"
2158else
2159  eval "$4=no"
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164fi
2165eval ac_res=\$$4
2166	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167$as_echo "$ac_res" >&6; }
2168  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169
2170} # ac_fn_c_check_member
2171
2172# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2173# -------------------------------------------
2174# Tests whether TYPE exists after having included INCLUDES, setting cache
2175# variable VAR accordingly.
2176ac_fn_c_check_type ()
2177{
2178  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180$as_echo_n "checking for $2... " >&6; }
2181if eval \${$3+:} false; then :
2182  $as_echo_n "(cached) " >&6
2183else
2184  eval "$3=no"
2185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186/* end confdefs.h.  */
2187$4
2188int
2189main ()
2190{
2191if (sizeof ($2))
2192	 return 0;
2193  ;
2194  return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"; then :
2198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h.  */
2200$4
2201int
2202main ()
2203{
2204if (sizeof (($2)))
2205	    return 0;
2206  ;
2207  return 0;
2208}
2209_ACEOF
2210if ac_fn_c_try_compile "$LINENO"; then :
2211
2212else
2213  eval "$3=yes"
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219eval ac_res=\$$3
2220	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223
2224} # ac_fn_c_check_type
2225cat >config.log <<_ACEOF
2226This file contains any messages produced by compilers while
2227running configure, to aid debugging if configure makes a mistake.
2228
2229It was created by libX11 $as_me 1.4.1, which was
2230generated by GNU Autoconf 2.68.  Invocation command line was
2231
2232  $ $0 $@
2233
2234_ACEOF
2235exec 5>>config.log
2236{
2237cat <<_ASUNAME
2238## --------- ##
2239## Platform. ##
2240## --------- ##
2241
2242hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2243uname -m = `(uname -m) 2>/dev/null || echo unknown`
2244uname -r = `(uname -r) 2>/dev/null || echo unknown`
2245uname -s = `(uname -s) 2>/dev/null || echo unknown`
2246uname -v = `(uname -v) 2>/dev/null || echo unknown`
2247
2248/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2249/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2250
2251/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2252/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2253/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2254/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2255/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2256/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2257/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2258
2259_ASUNAME
2260
2261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262for as_dir in $PATH
2263do
2264  IFS=$as_save_IFS
2265  test -z "$as_dir" && as_dir=.
2266    $as_echo "PATH: $as_dir"
2267  done
2268IFS=$as_save_IFS
2269
2270} >&5
2271
2272cat >&5 <<_ACEOF
2273
2274
2275## ----------- ##
2276## Core tests. ##
2277## ----------- ##
2278
2279_ACEOF
2280
2281
2282# Keep a trace of the command line.
2283# Strip out --no-create and --no-recursion so they do not pile up.
2284# Strip out --silent because we don't want to record it for future runs.
2285# Also quote any args containing shell meta-characters.
2286# Make two passes to allow for proper duplicate-argument suppression.
2287ac_configure_args=
2288ac_configure_args0=
2289ac_configure_args1=
2290ac_must_keep_next=false
2291for ac_pass in 1 2
2292do
2293  for ac_arg
2294  do
2295    case $ac_arg in
2296    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2297    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2298    | -silent | --silent | --silen | --sile | --sil)
2299      continue ;;
2300    *\'*)
2301      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2302    esac
2303    case $ac_pass in
2304    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2305    2)
2306      as_fn_append ac_configure_args1 " '$ac_arg'"
2307      if test $ac_must_keep_next = true; then
2308	ac_must_keep_next=false # Got value, back to normal.
2309      else
2310	case $ac_arg in
2311	  *=* | --config-cache | -C | -disable-* | --disable-* \
2312	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2313	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2314	  | -with-* | --with-* | -without-* | --without-* | --x)
2315	    case "$ac_configure_args0 " in
2316	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2317	    esac
2318	    ;;
2319	  -* ) ac_must_keep_next=true ;;
2320	esac
2321      fi
2322      as_fn_append ac_configure_args " '$ac_arg'"
2323      ;;
2324    esac
2325  done
2326done
2327{ ac_configure_args0=; unset ac_configure_args0;}
2328{ ac_configure_args1=; unset ac_configure_args1;}
2329
2330# When interrupted or exit'd, cleanup temporary files, and complete
2331# config.log.  We remove comments because anyway the quotes in there
2332# would cause problems or look ugly.
2333# WARNING: Use '\'' to represent an apostrophe within the trap.
2334# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2335trap 'exit_status=$?
2336  # Save into config.log some information that might help in debugging.
2337  {
2338    echo
2339
2340    $as_echo "## ---------------- ##
2341## Cache variables. ##
2342## ---------------- ##"
2343    echo
2344    # The following way of writing the cache mishandles newlines in values,
2345(
2346  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2347    eval ac_val=\$$ac_var
2348    case $ac_val in #(
2349    *${as_nl}*)
2350      case $ac_var in #(
2351      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2352$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2353      esac
2354      case $ac_var in #(
2355      _ | IFS | as_nl) ;; #(
2356      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2357      *) { eval $ac_var=; unset $ac_var;} ;;
2358      esac ;;
2359    esac
2360  done
2361  (set) 2>&1 |
2362    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2363    *${as_nl}ac_space=\ *)
2364      sed -n \
2365	"s/'\''/'\''\\\\'\'''\''/g;
2366	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2367      ;; #(
2368    *)
2369      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2370      ;;
2371    esac |
2372    sort
2373)
2374    echo
2375
2376    $as_echo "## ----------------- ##
2377## Output variables. ##
2378## ----------------- ##"
2379    echo
2380    for ac_var in $ac_subst_vars
2381    do
2382      eval ac_val=\$$ac_var
2383      case $ac_val in
2384      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385      esac
2386      $as_echo "$ac_var='\''$ac_val'\''"
2387    done | sort
2388    echo
2389
2390    if test -n "$ac_subst_files"; then
2391      $as_echo "## ------------------- ##
2392## File substitutions. ##
2393## ------------------- ##"
2394      echo
2395      for ac_var in $ac_subst_files
2396      do
2397	eval ac_val=\$$ac_var
2398	case $ac_val in
2399	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400	esac
2401	$as_echo "$ac_var='\''$ac_val'\''"
2402      done | sort
2403      echo
2404    fi
2405
2406    if test -s confdefs.h; then
2407      $as_echo "## ----------- ##
2408## confdefs.h. ##
2409## ----------- ##"
2410      echo
2411      cat confdefs.h
2412      echo
2413    fi
2414    test "$ac_signal" != 0 &&
2415      $as_echo "$as_me: caught signal $ac_signal"
2416    $as_echo "$as_me: exit $exit_status"
2417  } >&5
2418  rm -f core *.core core.conftest.* &&
2419    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2420    exit $exit_status
2421' 0
2422for ac_signal in 1 2 13 15; do
2423  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2424done
2425ac_signal=0
2426
2427# confdefs.h avoids OS command line length limits that DEFS can exceed.
2428rm -f -r conftest* confdefs.h
2429
2430$as_echo "/* confdefs.h */" > confdefs.h
2431
2432# Predefined preprocessor variables.
2433
2434cat >>confdefs.h <<_ACEOF
2435#define PACKAGE_NAME "$PACKAGE_NAME"
2436_ACEOF
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2440_ACEOF
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_VERSION "$PACKAGE_VERSION"
2444_ACEOF
2445
2446cat >>confdefs.h <<_ACEOF
2447#define PACKAGE_STRING "$PACKAGE_STRING"
2448_ACEOF
2449
2450cat >>confdefs.h <<_ACEOF
2451#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2452_ACEOF
2453
2454cat >>confdefs.h <<_ACEOF
2455#define PACKAGE_URL "$PACKAGE_URL"
2456_ACEOF
2457
2458
2459# Let the site file select an alternate cache file if it wants to.
2460# Prefer an explicitly selected file to automatically selected ones.
2461ac_site_file1=NONE
2462ac_site_file2=NONE
2463if test -n "$CONFIG_SITE"; then
2464  # We do not want a PATH search for config.site.
2465  case $CONFIG_SITE in #((
2466    -*)  ac_site_file1=./$CONFIG_SITE;;
2467    */*) ac_site_file1=$CONFIG_SITE;;
2468    *)   ac_site_file1=./$CONFIG_SITE;;
2469  esac
2470elif test "x$prefix" != xNONE; then
2471  ac_site_file1=$prefix/share/config.site
2472  ac_site_file2=$prefix/etc/config.site
2473else
2474  ac_site_file1=$ac_default_prefix/share/config.site
2475  ac_site_file2=$ac_default_prefix/etc/config.site
2476fi
2477for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2478do
2479  test "x$ac_site_file" = xNONE && continue
2480  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2481    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2482$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2483    sed 's/^/| /' "$ac_site_file" >&5
2484    . "$ac_site_file" \
2485      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487as_fn_error $? "failed to load site script $ac_site_file
2488See \`config.log' for more details" "$LINENO" 5; }
2489  fi
2490done
2491
2492if test -r "$cache_file"; then
2493  # Some versions of bash will fail to source /dev/null (special files
2494  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2495  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2496    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2497$as_echo "$as_me: loading cache $cache_file" >&6;}
2498    case $cache_file in
2499      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2500      *)                      . "./$cache_file";;
2501    esac
2502  fi
2503else
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2505$as_echo "$as_me: creating cache $cache_file" >&6;}
2506  >$cache_file
2507fi
2508
2509as_fn_append ac_header_list " stdlib.h"
2510as_fn_append ac_header_list " unistd.h"
2511as_fn_append ac_header_list " sys/param.h"
2512# Check that the precious variables saved in the cache have kept the same
2513# value.
2514ac_cache_corrupted=false
2515for ac_var in $ac_precious_vars; do
2516  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2517  eval ac_new_set=\$ac_env_${ac_var}_set
2518  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2519  eval ac_new_val=\$ac_env_${ac_var}_value
2520  case $ac_old_set,$ac_new_set in
2521    set,)
2522      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2523$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2524      ac_cache_corrupted=: ;;
2525    ,set)
2526      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2527$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2528      ac_cache_corrupted=: ;;
2529    ,);;
2530    *)
2531      if test "x$ac_old_val" != "x$ac_new_val"; then
2532	# differences in whitespace do not lead to failure.
2533	ac_old_val_w=`echo x $ac_old_val`
2534	ac_new_val_w=`echo x $ac_new_val`
2535	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2536	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2537$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2538	  ac_cache_corrupted=:
2539	else
2540	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2541$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2542	  eval $ac_var=\$ac_old_val
2543	fi
2544	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2545$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2546	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2547$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2548      fi;;
2549  esac
2550  # Pass precious variables to config.status.
2551  if test "$ac_new_set" = set; then
2552    case $ac_new_val in
2553    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2554    *) ac_arg=$ac_var=$ac_new_val ;;
2555    esac
2556    case " $ac_configure_args " in
2557      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2558      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2559    esac
2560  fi
2561done
2562if $ac_cache_corrupted; then
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2566$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2567  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2568fi
2569## -------------------- ##
2570## Main body of script. ##
2571## -------------------- ##
2572
2573ac_ext=c
2574ac_cpp='$CPP $CPPFLAGS'
2575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578
2579
2580
2581
2582ac_aux_dir=
2583for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2584  if test -f "$ac_dir/install-sh"; then
2585    ac_aux_dir=$ac_dir
2586    ac_install_sh="$ac_aux_dir/install-sh -c"
2587    break
2588  elif test -f "$ac_dir/install.sh"; then
2589    ac_aux_dir=$ac_dir
2590    ac_install_sh="$ac_aux_dir/install.sh -c"
2591    break
2592  elif test -f "$ac_dir/shtool"; then
2593    ac_aux_dir=$ac_dir
2594    ac_install_sh="$ac_aux_dir/shtool install -c"
2595    break
2596  fi
2597done
2598if test -z "$ac_aux_dir"; then
2599  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2600fi
2601
2602# These three variables are undocumented and unsupported,
2603# and are intended to be withdrawn in a future Autoconf release.
2604# They can cause serious problems if a builder's source tree is in a directory
2605# whose full name contains unusual characters.
2606ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2607ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2608ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2609
2610
2611# Make sure we can run config.sub.
2612$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2613  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2614
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2616$as_echo_n "checking build system type... " >&6; }
2617if ${ac_cv_build+:} false; then :
2618  $as_echo_n "(cached) " >&6
2619else
2620  ac_build_alias=$build_alias
2621test "x$ac_build_alias" = x &&
2622  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2623test "x$ac_build_alias" = x &&
2624  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2625ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2626  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2627
2628fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2630$as_echo "$ac_cv_build" >&6; }
2631case $ac_cv_build in
2632*-*-*) ;;
2633*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2634esac
2635build=$ac_cv_build
2636ac_save_IFS=$IFS; IFS='-'
2637set x $ac_cv_build
2638shift
2639build_cpu=$1
2640build_vendor=$2
2641shift; shift
2642# Remember, the first character of IFS is used to create $*,
2643# except with old shells:
2644build_os=$*
2645IFS=$ac_save_IFS
2646case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2647
2648
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2650$as_echo_n "checking host system type... " >&6; }
2651if ${ac_cv_host+:} false; then :
2652  $as_echo_n "(cached) " >&6
2653else
2654  if test "x$host_alias" = x; then
2655  ac_cv_host=$ac_cv_build
2656else
2657  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2658    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2659fi
2660
2661fi
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2663$as_echo "$ac_cv_host" >&6; }
2664case $ac_cv_host in
2665*-*-*) ;;
2666*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2667esac
2668host=$ac_cv_host
2669ac_save_IFS=$IFS; IFS='-'
2670set x $ac_cv_host
2671shift
2672host_cpu=$1
2673host_vendor=$2
2674shift; shift
2675# Remember, the first character of IFS is used to create $*,
2676# except with old shells:
2677host_os=$*
2678IFS=$ac_save_IFS
2679case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2680
2681
2682
2683am__api_version='1.11'
2684
2685# Find a good install program.  We prefer a C program (faster),
2686# so one script is as good as another.  But avoid the broken or
2687# incompatible versions:
2688# SysV /etc/install, /usr/sbin/install
2689# SunOS /usr/etc/install
2690# IRIX /sbin/install
2691# AIX /bin/install
2692# AmigaOS /C/install, which installs bootblocks on floppy discs
2693# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2694# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2695# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2696# OS/2's system install, which has a completely different semantic
2697# ./install, which can be erroneously created by make from ./install.sh.
2698# Reject install programs that cannot install multiple files.
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2700$as_echo_n "checking for a BSD-compatible install... " >&6; }
2701if test -z "$INSTALL"; then
2702if ${ac_cv_path_install+:} false; then :
2703  $as_echo_n "(cached) " >&6
2704else
2705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708  IFS=$as_save_IFS
2709  test -z "$as_dir" && as_dir=.
2710    # Account for people who put trailing slashes in PATH elements.
2711case $as_dir/ in #((
2712  ./ | .// | /[cC]/* | \
2713  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2714  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2715  /usr/ucb/* ) ;;
2716  *)
2717    # OSF1 and SCO ODT 3.0 have their own names for install.
2718    # Don't use installbsd from OSF since it installs stuff as root
2719    # by default.
2720    for ac_prog in ginstall scoinst install; do
2721      for ac_exec_ext in '' $ac_executable_extensions; do
2722	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2723	  if test $ac_prog = install &&
2724	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2725	    # AIX install.  It has an incompatible calling convention.
2726	    :
2727	  elif test $ac_prog = install &&
2728	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2729	    # program-specific install script used by HP pwplus--don't use.
2730	    :
2731	  else
2732	    rm -rf conftest.one conftest.two conftest.dir
2733	    echo one > conftest.one
2734	    echo two > conftest.two
2735	    mkdir conftest.dir
2736	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2737	      test -s conftest.one && test -s conftest.two &&
2738	      test -s conftest.dir/conftest.one &&
2739	      test -s conftest.dir/conftest.two
2740	    then
2741	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2742	      break 3
2743	    fi
2744	  fi
2745	fi
2746      done
2747    done
2748    ;;
2749esac
2750
2751  done
2752IFS=$as_save_IFS
2753
2754rm -rf conftest.one conftest.two conftest.dir
2755
2756fi
2757  if test "${ac_cv_path_install+set}" = set; then
2758    INSTALL=$ac_cv_path_install
2759  else
2760    # As a last resort, use the slow shell script.  Don't cache a
2761    # value for INSTALL within a source directory, because that will
2762    # break other packages using the cache if that directory is
2763    # removed, or if the value is a relative name.
2764    INSTALL=$ac_install_sh
2765  fi
2766fi
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2768$as_echo "$INSTALL" >&6; }
2769
2770# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2771# It thinks the first close brace ends the variable substitution.
2772test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2773
2774test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2775
2776test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2777
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2779$as_echo_n "checking whether build environment is sane... " >&6; }
2780# Just in case
2781sleep 1
2782echo timestamp > conftest.file
2783# Reject unsafe characters in $srcdir or the absolute working directory
2784# name.  Accept space and tab only in the latter.
2785am_lf='
2786'
2787case `pwd` in
2788  *[\\\"\#\$\&\'\`$am_lf]*)
2789    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2790esac
2791case $srcdir in
2792  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2793    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2794esac
2795
2796# Do `set' in a subshell so we don't clobber the current shell's
2797# arguments.  Must try -L first in case configure is actually a
2798# symlink; some systems play weird games with the mod time of symlinks
2799# (eg FreeBSD returns the mod time of the symlink's containing
2800# directory).
2801if (
2802   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2803   if test "$*" = "X"; then
2804      # -L didn't work.
2805      set X `ls -t "$srcdir/configure" conftest.file`
2806   fi
2807   rm -f conftest.file
2808   if test "$*" != "X $srcdir/configure conftest.file" \
2809      && test "$*" != "X conftest.file $srcdir/configure"; then
2810
2811      # If neither matched, then we have a broken ls.  This can happen
2812      # if, for instance, CONFIG_SHELL is bash and it inherits a
2813      # broken ls alias from the environment.  This has actually
2814      # happened.  Such a system could not be considered "sane".
2815      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2816alias in your environment" "$LINENO" 5
2817   fi
2818
2819   test "$2" = conftest.file
2820   )
2821then
2822   # Ok.
2823   :
2824else
2825   as_fn_error $? "newly created file is older than distributed files!
2826Check your system clock" "$LINENO" 5
2827fi
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829$as_echo "yes" >&6; }
2830test "$program_prefix" != NONE &&
2831  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2832# Use a double $ so make ignores it.
2833test "$program_suffix" != NONE &&
2834  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2835# Double any \ or $.
2836# By default was `s,x,x', remove it if useless.
2837ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2838program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2839
2840# expand $ac_aux_dir to an absolute path
2841am_aux_dir=`cd $ac_aux_dir && pwd`
2842
2843if test x"${MISSING+set}" != xset; then
2844  case $am_aux_dir in
2845  *\ * | *\	*)
2846    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2847  *)
2848    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2849  esac
2850fi
2851# Use eval to expand $SHELL
2852if eval "$MISSING --run true"; then
2853  am_missing_run="$MISSING --run "
2854else
2855  am_missing_run=
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2857$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2858fi
2859
2860if test x"${install_sh}" != xset; then
2861  case $am_aux_dir in
2862  *\ * | *\	*)
2863    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2864  *)
2865    install_sh="\${SHELL} $am_aux_dir/install-sh"
2866  esac
2867fi
2868
2869# Installed binaries are usually stripped using `strip' when the user
2870# run `make install-strip'.  However `strip' might not be the right
2871# tool to use in cross-compilation environments, therefore Automake
2872# will honor the `STRIP' environment variable to overrule this program.
2873if test "$cross_compiling" != no; then
2874  if test -n "$ac_tool_prefix"; then
2875  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876set dummy ${ac_tool_prefix}strip; ac_word=$2
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
2879if ${ac_cv_prog_STRIP+:} false; then :
2880  $as_echo_n "(cached) " >&6
2881else
2882  if test -n "$STRIP"; then
2883  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888  IFS=$as_save_IFS
2889  test -z "$as_dir" && as_dir=.
2890    for ac_exec_ext in '' $ac_executable_extensions; do
2891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894    break 2
2895  fi
2896done
2897  done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
2902STRIP=$ac_cv_prog_STRIP
2903if test -n "$STRIP"; then
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2905$as_echo "$STRIP" >&6; }
2906else
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908$as_echo "no" >&6; }
2909fi
2910
2911
2912fi
2913if test -z "$ac_cv_prog_STRIP"; then
2914  ac_ct_STRIP=$STRIP
2915  # Extract the first word of "strip", so it can be a program name with args.
2916set dummy strip; ac_word=$2
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918$as_echo_n "checking for $ac_word... " >&6; }
2919if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2920  $as_echo_n "(cached) " >&6
2921else
2922  if test -n "$ac_ct_STRIP"; then
2923  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928  IFS=$as_save_IFS
2929  test -z "$as_dir" && as_dir=.
2930    for ac_exec_ext in '' $ac_executable_extensions; do
2931  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932    ac_cv_prog_ac_ct_STRIP="strip"
2933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934    break 2
2935  fi
2936done
2937  done
2938IFS=$as_save_IFS
2939
2940fi
2941fi
2942ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943if test -n "$ac_ct_STRIP"; then
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2945$as_echo "$ac_ct_STRIP" >&6; }
2946else
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948$as_echo "no" >&6; }
2949fi
2950
2951  if test "x$ac_ct_STRIP" = x; then
2952    STRIP=":"
2953  else
2954    case $cross_compiling:$ac_tool_warned in
2955yes:)
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958ac_tool_warned=yes ;;
2959esac
2960    STRIP=$ac_ct_STRIP
2961  fi
2962else
2963  STRIP="$ac_cv_prog_STRIP"
2964fi
2965
2966fi
2967INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2968
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2970$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2971if test -z "$MKDIR_P"; then
2972  if ${ac_cv_path_mkdir+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2977do
2978  IFS=$as_save_IFS
2979  test -z "$as_dir" && as_dir=.
2980    for ac_prog in mkdir gmkdir; do
2981	 for ac_exec_ext in '' $ac_executable_extensions; do
2982	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2983	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2984	     'mkdir (GNU coreutils) '* | \
2985	     'mkdir (coreutils) '* | \
2986	     'mkdir (fileutils) '4.1*)
2987	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2988	       break 3;;
2989	   esac
2990	 done
2991       done
2992  done
2993IFS=$as_save_IFS
2994
2995fi
2996
2997  test -d ./--version && rmdir ./--version
2998  if test "${ac_cv_path_mkdir+set}" = set; then
2999    MKDIR_P="$ac_cv_path_mkdir -p"
3000  else
3001    # As a last resort, use the slow shell script.  Don't cache a
3002    # value for MKDIR_P within a source directory, because that will
3003    # break other packages using the cache if that directory is
3004    # removed, or if the value is a relative name.
3005    MKDIR_P="$ac_install_sh -d"
3006  fi
3007fi
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3009$as_echo "$MKDIR_P" >&6; }
3010
3011mkdir_p="$MKDIR_P"
3012case $mkdir_p in
3013  [\\/$]* | ?:[\\/]*) ;;
3014  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3015esac
3016
3017for ac_prog in gawk mawk nawk awk
3018do
3019  # Extract the first word of "$ac_prog", so it can be a program name with args.
3020set dummy $ac_prog; ac_word=$2
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
3023if ${ac_cv_prog_AWK+:} false; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  if test -n "$AWK"; then
3027  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034    for ac_exec_ext in '' $ac_executable_extensions; do
3035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036    ac_cv_prog_AWK="$ac_prog"
3037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041  done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046AWK=$ac_cv_prog_AWK
3047if test -n "$AWK"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3049$as_echo "$AWK" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056  test -n "$AWK" && break
3057done
3058
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3060$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3061set x ${MAKE-make}
3062ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3063if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  cat >conftest.make <<\_ACEOF
3067SHELL = /bin/sh
3068all:
3069	@echo '@@@%%%=$(MAKE)=@@@%%%'
3070_ACEOF
3071# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3072case `${MAKE-make} -f conftest.make 2>/dev/null` in
3073  *@@@%%%=?*=@@@%%%*)
3074    eval ac_cv_prog_make_${ac_make}_set=yes;;
3075  *)
3076    eval ac_cv_prog_make_${ac_make}_set=no;;
3077esac
3078rm -f conftest.make
3079fi
3080if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082$as_echo "yes" >&6; }
3083  SET_MAKE=
3084else
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087  SET_MAKE="MAKE=${MAKE-make}"
3088fi
3089
3090rm -rf .tst 2>/dev/null
3091mkdir .tst 2>/dev/null
3092if test -d .tst; then
3093  am__leading_dot=.
3094else
3095  am__leading_dot=_
3096fi
3097rmdir .tst 2>/dev/null
3098
3099if test "`cd $srcdir && pwd`" != "`pwd`"; then
3100  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3101  # is not polluted with repeated "-I."
3102  am__isrc=' -I$(srcdir)'
3103  # test to see if srcdir already configured
3104  if test -f $srcdir/config.status; then
3105    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3106  fi
3107fi
3108
3109# test whether we have cygpath
3110if test -z "$CYGPATH_W"; then
3111  if (cygpath --version) >/dev/null 2>/dev/null; then
3112    CYGPATH_W='cygpath -w'
3113  else
3114    CYGPATH_W=echo
3115  fi
3116fi
3117
3118
3119# Define the identity of the package.
3120 PACKAGE='libX11'
3121 VERSION='1.4.1'
3122
3123
3124cat >>confdefs.h <<_ACEOF
3125#define PACKAGE "$PACKAGE"
3126_ACEOF
3127
3128
3129cat >>confdefs.h <<_ACEOF
3130#define VERSION "$VERSION"
3131_ACEOF
3132
3133# Some tools Automake needs.
3134
3135ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3136
3137
3138AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3139
3140
3141AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3142
3143
3144AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3145
3146
3147MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3148
3149# We need awk for the "check" target.  The system "awk" is bad on
3150# some platforms.
3151# Always define AMTAR for backward compatibility.
3152
3153AMTAR=${AMTAR-"${am_missing_run}tar"}
3154
3155am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3156
3157
3158
3159
3160
3161
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3163$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3164    # Check whether --enable-maintainer-mode was given.
3165if test "${enable_maintainer_mode+set}" = set; then :
3166  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3167else
3168  USE_MAINTAINER_MODE=no
3169fi
3170
3171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3172$as_echo "$USE_MAINTAINER_MODE" >&6; }
3173   if test $USE_MAINTAINER_MODE = yes; then
3174  MAINTAINER_MODE_TRUE=
3175  MAINTAINER_MODE_FALSE='#'
3176else
3177  MAINTAINER_MODE_TRUE='#'
3178  MAINTAINER_MODE_FALSE=
3179fi
3180
3181  MAINT=$MAINTAINER_MODE_TRUE
3182
3183
3184ac_config_headers="$ac_config_headers src/config.h"
3185
3186ac_config_headers="$ac_config_headers include/X11/XlibConf.h"
3187
3188
3189# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3190# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3191# to avoid autoconf errors.
3192DEPDIR="${am__leading_dot}deps"
3193
3194ac_config_commands="$ac_config_commands depfiles"
3195
3196
3197am_make=${MAKE-make}
3198cat > confinc << 'END'
3199am__doit:
3200	@echo this is the am__doit target
3201.PHONY: am__doit
3202END
3203# If we don't find an include directive, just comment out the code.
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3205$as_echo_n "checking for style of include used by $am_make... " >&6; }
3206am__include="#"
3207am__quote=
3208_am_result=none
3209# First try GNU make style include.
3210echo "include confinc" > confmf
3211# Ignore all kinds of additional output from `make'.
3212case `$am_make -s -f confmf 2> /dev/null` in #(
3213*the\ am__doit\ target*)
3214  am__include=include
3215  am__quote=
3216  _am_result=GNU
3217  ;;
3218esac
3219# Now try BSD make style include.
3220if test "$am__include" = "#"; then
3221   echo '.include "confinc"' > confmf
3222   case `$am_make -s -f confmf 2> /dev/null` in #(
3223   *the\ am__doit\ target*)
3224     am__include=.include
3225     am__quote="\""
3226     _am_result=BSD
3227     ;;
3228   esac
3229fi
3230
3231
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3233$as_echo "$_am_result" >&6; }
3234rm -f confinc confmf
3235
3236# Check whether --enable-dependency-tracking was given.
3237if test "${enable_dependency_tracking+set}" = set; then :
3238  enableval=$enable_dependency_tracking;
3239fi
3240
3241if test "x$enable_dependency_tracking" != xno; then
3242  am_depcomp="$ac_aux_dir/depcomp"
3243  AMDEPBACKSLASH='\'
3244fi
3245 if test "x$enable_dependency_tracking" != xno; then
3246  AMDEP_TRUE=
3247  AMDEP_FALSE='#'
3248else
3249  AMDEP_TRUE='#'
3250  AMDEP_FALSE=
3251fi
3252
3253
3254ac_ext=c
3255ac_cpp='$CPP $CPPFLAGS'
3256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259if test -n "$ac_tool_prefix"; then
3260  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3261set dummy ${ac_tool_prefix}gcc; ac_word=$2
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263$as_echo_n "checking for $ac_word... " >&6; }
3264if ${ac_cv_prog_CC+:} false; then :
3265  $as_echo_n "(cached) " >&6
3266else
3267  if test -n "$CC"; then
3268  ac_cv_prog_CC="$CC" # Let the user override the test.
3269else
3270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271for as_dir in $PATH
3272do
3273  IFS=$as_save_IFS
3274  test -z "$as_dir" && as_dir=.
3275    for ac_exec_ext in '' $ac_executable_extensions; do
3276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279    break 2
3280  fi
3281done
3282  done
3283IFS=$as_save_IFS
3284
3285fi
3286fi
3287CC=$ac_cv_prog_CC
3288if test -n "$CC"; then
3289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3290$as_echo "$CC" >&6; }
3291else
3292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294fi
3295
3296
3297fi
3298if test -z "$ac_cv_prog_CC"; then
3299  ac_ct_CC=$CC
3300  # Extract the first word of "gcc", so it can be a program name with args.
3301set dummy gcc; ac_word=$2
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303$as_echo_n "checking for $ac_word... " >&6; }
3304if ${ac_cv_prog_ac_ct_CC+:} false; then :
3305  $as_echo_n "(cached) " >&6
3306else
3307  if test -n "$ac_ct_CC"; then
3308  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3309else
3310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH
3312do
3313  IFS=$as_save_IFS
3314  test -z "$as_dir" && as_dir=.
3315    for ac_exec_ext in '' $ac_executable_extensions; do
3316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317    ac_cv_prog_ac_ct_CC="gcc"
3318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319    break 2
3320  fi
3321done
3322  done
3323IFS=$as_save_IFS
3324
3325fi
3326fi
3327ac_ct_CC=$ac_cv_prog_ac_ct_CC
3328if test -n "$ac_ct_CC"; then
3329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3330$as_echo "$ac_ct_CC" >&6; }
3331else
3332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333$as_echo "no" >&6; }
3334fi
3335
3336  if test "x$ac_ct_CC" = x; then
3337    CC=""
3338  else
3339    case $cross_compiling:$ac_tool_warned in
3340yes:)
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3343ac_tool_warned=yes ;;
3344esac
3345    CC=$ac_ct_CC
3346  fi
3347else
3348  CC="$ac_cv_prog_CC"
3349fi
3350
3351if test -z "$CC"; then
3352          if test -n "$ac_tool_prefix"; then
3353    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3354set dummy ${ac_tool_prefix}cc; ac_word=$2
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356$as_echo_n "checking for $ac_word... " >&6; }
3357if ${ac_cv_prog_CC+:} false; then :
3358  $as_echo_n "(cached) " >&6
3359else
3360  if test -n "$CC"; then
3361  ac_cv_prog_CC="$CC" # Let the user override the test.
3362else
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366  IFS=$as_save_IFS
3367  test -z "$as_dir" && as_dir=.
3368    for ac_exec_ext in '' $ac_executable_extensions; do
3369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370    ac_cv_prog_CC="${ac_tool_prefix}cc"
3371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372    break 2
3373  fi
3374done
3375  done
3376IFS=$as_save_IFS
3377
3378fi
3379fi
3380CC=$ac_cv_prog_CC
3381if test -n "$CC"; then
3382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383$as_echo "$CC" >&6; }
3384else
3385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386$as_echo "no" >&6; }
3387fi
3388
3389
3390  fi
3391fi
3392if test -z "$CC"; then
3393  # Extract the first word of "cc", so it can be a program name with args.
3394set dummy cc; ac_word=$2
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396$as_echo_n "checking for $ac_word... " >&6; }
3397if ${ac_cv_prog_CC+:} false; then :
3398  $as_echo_n "(cached) " >&6
3399else
3400  if test -n "$CC"; then
3401  ac_cv_prog_CC="$CC" # Let the user override the test.
3402else
3403  ac_prog_rejected=no
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407  IFS=$as_save_IFS
3408  test -z "$as_dir" && as_dir=.
3409    for ac_exec_ext in '' $ac_executable_extensions; do
3410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3412       ac_prog_rejected=yes
3413       continue
3414     fi
3415    ac_cv_prog_CC="cc"
3416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417    break 2
3418  fi
3419done
3420  done
3421IFS=$as_save_IFS
3422
3423if test $ac_prog_rejected = yes; then
3424  # We found a bogon in the path, so make sure we never use it.
3425  set dummy $ac_cv_prog_CC
3426  shift
3427  if test $# != 0; then
3428    # We chose a different compiler from the bogus one.
3429    # However, it has the same basename, so the bogon will be chosen
3430    # first if we set CC to just the basename; use the full file name.
3431    shift
3432    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3433  fi
3434fi
3435fi
3436fi
3437CC=$ac_cv_prog_CC
3438if test -n "$CC"; then
3439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440$as_echo "$CC" >&6; }
3441else
3442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443$as_echo "no" >&6; }
3444fi
3445
3446
3447fi
3448if test -z "$CC"; then
3449  if test -n "$ac_tool_prefix"; then
3450  for ac_prog in cl.exe
3451  do
3452    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3453set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455$as_echo_n "checking for $ac_word... " >&6; }
3456if ${ac_cv_prog_CC+:} false; then :
3457  $as_echo_n "(cached) " >&6
3458else
3459  if test -n "$CC"; then
3460  ac_cv_prog_CC="$CC" # Let the user override the test.
3461else
3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH
3464do
3465  IFS=$as_save_IFS
3466  test -z "$as_dir" && as_dir=.
3467    for ac_exec_ext in '' $ac_executable_extensions; do
3468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471    break 2
3472  fi
3473done
3474  done
3475IFS=$as_save_IFS
3476
3477fi
3478fi
3479CC=$ac_cv_prog_CC
3480if test -n "$CC"; then
3481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482$as_echo "$CC" >&6; }
3483else
3484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485$as_echo "no" >&6; }
3486fi
3487
3488
3489    test -n "$CC" && break
3490  done
3491fi
3492if test -z "$CC"; then
3493  ac_ct_CC=$CC
3494  for ac_prog in cl.exe
3495do
3496  # Extract the first word of "$ac_prog", so it can be a program name with args.
3497set dummy $ac_prog; ac_word=$2
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499$as_echo_n "checking for $ac_word... " >&6; }
3500if ${ac_cv_prog_ac_ct_CC+:} false; then :
3501  $as_echo_n "(cached) " >&6
3502else
3503  if test -n "$ac_ct_CC"; then
3504  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3505else
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509  IFS=$as_save_IFS
3510  test -z "$as_dir" && as_dir=.
3511    for ac_exec_ext in '' $ac_executable_extensions; do
3512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513    ac_cv_prog_ac_ct_CC="$ac_prog"
3514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515    break 2
3516  fi
3517done
3518  done
3519IFS=$as_save_IFS
3520
3521fi
3522fi
3523ac_ct_CC=$ac_cv_prog_ac_ct_CC
3524if test -n "$ac_ct_CC"; then
3525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3526$as_echo "$ac_ct_CC" >&6; }
3527else
3528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529$as_echo "no" >&6; }
3530fi
3531
3532
3533  test -n "$ac_ct_CC" && break
3534done
3535
3536  if test "x$ac_ct_CC" = x; then
3537    CC=""
3538  else
3539    case $cross_compiling:$ac_tool_warned in
3540yes:)
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3543ac_tool_warned=yes ;;
3544esac
3545    CC=$ac_ct_CC
3546  fi
3547fi
3548
3549fi
3550
3551
3552test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554as_fn_error $? "no acceptable C compiler found in \$PATH
3555See \`config.log' for more details" "$LINENO" 5; }
3556
3557# Provide some information about the compiler.
3558$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3559set X $ac_compile
3560ac_compiler=$2
3561for ac_option in --version -v -V -qversion; do
3562  { { ac_try="$ac_compiler $ac_option >&5"
3563case "(($ac_try" in
3564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565  *) ac_try_echo=$ac_try;;
3566esac
3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568$as_echo "$ac_try_echo"; } >&5
3569  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3570  ac_status=$?
3571  if test -s conftest.err; then
3572    sed '10a\
3573... rest of stderr output deleted ...
3574         10q' conftest.err >conftest.er1
3575    cat conftest.er1 >&5
3576  fi
3577  rm -f conftest.er1 conftest.err
3578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579  test $ac_status = 0; }
3580done
3581
3582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h.  */
3584
3585int
3586main ()
3587{
3588
3589  ;
3590  return 0;
3591}
3592_ACEOF
3593ac_clean_files_save=$ac_clean_files
3594ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3595# Try to create an executable without -o first, disregard a.out.
3596# It will help us diagnose broken compilers, and finding out an intuition
3597# of exeext.
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3599$as_echo_n "checking whether the C compiler works... " >&6; }
3600ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3601
3602# The possible output files:
3603ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3604
3605ac_rmfiles=
3606for ac_file in $ac_files
3607do
3608  case $ac_file in
3609    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3610    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3611  esac
3612done
3613rm -f $ac_rmfiles
3614
3615if { { ac_try="$ac_link_default"
3616case "(($ac_try" in
3617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618  *) ac_try_echo=$ac_try;;
3619esac
3620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621$as_echo "$ac_try_echo"; } >&5
3622  (eval "$ac_link_default") 2>&5
3623  ac_status=$?
3624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625  test $ac_status = 0; }; then :
3626  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3627# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3628# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3629# so that the user can short-circuit this test for compilers unknown to
3630# Autoconf.
3631for ac_file in $ac_files ''
3632do
3633  test -f "$ac_file" || continue
3634  case $ac_file in
3635    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3636	;;
3637    [ab].out )
3638	# We found the default executable, but exeext='' is most
3639	# certainly right.
3640	break;;
3641    *.* )
3642	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3643	then :; else
3644	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3645	fi
3646	# We set ac_cv_exeext here because the later test for it is not
3647	# safe: cross compilers may not add the suffix if given an `-o'
3648	# argument, so we may need to know it at that point already.
3649	# Even if this section looks crufty: it has the advantage of
3650	# actually working.
3651	break;;
3652    * )
3653	break;;
3654  esac
3655done
3656test "$ac_cv_exeext" = no && ac_cv_exeext=
3657
3658else
3659  ac_file=''
3660fi
3661if test -z "$ac_file"; then :
3662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663$as_echo "no" >&6; }
3664$as_echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669as_fn_error 77 "C compiler cannot create executables
3670See \`config.log' for more details" "$LINENO" 5; }
3671else
3672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673$as_echo "yes" >&6; }
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3676$as_echo_n "checking for C compiler default output file name... " >&6; }
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3678$as_echo "$ac_file" >&6; }
3679ac_exeext=$ac_cv_exeext
3680
3681rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3682ac_clean_files=$ac_clean_files_save
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3684$as_echo_n "checking for suffix of executables... " >&6; }
3685if { { ac_try="$ac_link"
3686case "(($ac_try" in
3687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688  *) ac_try_echo=$ac_try;;
3689esac
3690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691$as_echo "$ac_try_echo"; } >&5
3692  (eval "$ac_link") 2>&5
3693  ac_status=$?
3694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695  test $ac_status = 0; }; then :
3696  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3697# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3698# work properly (i.e., refer to `conftest.exe'), while it won't with
3699# `rm'.
3700for ac_file in conftest.exe conftest conftest.*; do
3701  test -f "$ac_file" || continue
3702  case $ac_file in
3703    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3704    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705	  break;;
3706    * ) break;;
3707  esac
3708done
3709else
3710  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3713See \`config.log' for more details" "$LINENO" 5; }
3714fi
3715rm -f conftest conftest$ac_cv_exeext
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3717$as_echo "$ac_cv_exeext" >&6; }
3718
3719rm -f conftest.$ac_ext
3720EXEEXT=$ac_cv_exeext
3721ac_exeext=$EXEEXT
3722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723/* end confdefs.h.  */
3724#include <stdio.h>
3725int
3726main ()
3727{
3728FILE *f = fopen ("conftest.out", "w");
3729 return ferror (f) || fclose (f) != 0;
3730
3731  ;
3732  return 0;
3733}
3734_ACEOF
3735ac_clean_files="$ac_clean_files conftest.out"
3736# Check that the compiler produces executables we can run.  If not, either
3737# the compiler is broken, or we cross compile.
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3739$as_echo_n "checking whether we are cross compiling... " >&6; }
3740if test "$cross_compiling" != yes; then
3741  { { ac_try="$ac_link"
3742case "(($ac_try" in
3743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744  *) ac_try_echo=$ac_try;;
3745esac
3746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747$as_echo "$ac_try_echo"; } >&5
3748  (eval "$ac_link") 2>&5
3749  ac_status=$?
3750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751  test $ac_status = 0; }
3752  if { ac_try='./conftest$ac_cv_exeext'
3753  { { case "(($ac_try" in
3754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755  *) ac_try_echo=$ac_try;;
3756esac
3757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758$as_echo "$ac_try_echo"; } >&5
3759  (eval "$ac_try") 2>&5
3760  ac_status=$?
3761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762  test $ac_status = 0; }; }; then
3763    cross_compiling=no
3764  else
3765    if test "$cross_compiling" = maybe; then
3766	cross_compiling=yes
3767    else
3768	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770as_fn_error $? "cannot run C compiled programs.
3771If you meant to cross compile, use \`--host'.
3772See \`config.log' for more details" "$LINENO" 5; }
3773    fi
3774  fi
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3777$as_echo "$cross_compiling" >&6; }
3778
3779rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3780ac_clean_files=$ac_clean_files_save
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3782$as_echo_n "checking for suffix of object files... " >&6; }
3783if ${ac_cv_objext+:} false; then :
3784  $as_echo_n "(cached) " >&6
3785else
3786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787/* end confdefs.h.  */
3788
3789int
3790main ()
3791{
3792
3793  ;
3794  return 0;
3795}
3796_ACEOF
3797rm -f conftest.o conftest.obj
3798if { { ac_try="$ac_compile"
3799case "(($ac_try" in
3800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801  *) ac_try_echo=$ac_try;;
3802esac
3803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804$as_echo "$ac_try_echo"; } >&5
3805  (eval "$ac_compile") 2>&5
3806  ac_status=$?
3807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808  test $ac_status = 0; }; then :
3809  for ac_file in conftest.o conftest.obj conftest.*; do
3810  test -f "$ac_file" || continue;
3811  case $ac_file in
3812    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3813    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3814       break;;
3815  esac
3816done
3817else
3818  $as_echo "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
3820
3821{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823as_fn_error $? "cannot compute suffix of object files: cannot compile
3824See \`config.log' for more details" "$LINENO" 5; }
3825fi
3826rm -f conftest.$ac_cv_objext conftest.$ac_ext
3827fi
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3829$as_echo "$ac_cv_objext" >&6; }
3830OBJEXT=$ac_cv_objext
3831ac_objext=$OBJEXT
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3833$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3834if ${ac_cv_c_compiler_gnu+:} false; then :
3835  $as_echo_n "(cached) " >&6
3836else
3837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h.  */
3839
3840int
3841main ()
3842{
3843#ifndef __GNUC__
3844       choke me
3845#endif
3846
3847  ;
3848  return 0;
3849}
3850_ACEOF
3851if ac_fn_c_try_compile "$LINENO"; then :
3852  ac_compiler_gnu=yes
3853else
3854  ac_compiler_gnu=no
3855fi
3856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857ac_cv_c_compiler_gnu=$ac_compiler_gnu
3858
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3861$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3862if test $ac_compiler_gnu = yes; then
3863  GCC=yes
3864else
3865  GCC=
3866fi
3867ac_test_CFLAGS=${CFLAGS+set}
3868ac_save_CFLAGS=$CFLAGS
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3870$as_echo_n "checking whether $CC accepts -g... " >&6; }
3871if ${ac_cv_prog_cc_g+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  ac_save_c_werror_flag=$ac_c_werror_flag
3875   ac_c_werror_flag=yes
3876   ac_cv_prog_cc_g=no
3877   CFLAGS="-g"
3878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h.  */
3880
3881int
3882main ()
3883{
3884
3885  ;
3886  return 0;
3887}
3888_ACEOF
3889if ac_fn_c_try_compile "$LINENO"; then :
3890  ac_cv_prog_cc_g=yes
3891else
3892  CFLAGS=""
3893      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h.  */
3895
3896int
3897main ()
3898{
3899
3900  ;
3901  return 0;
3902}
3903_ACEOF
3904if ac_fn_c_try_compile "$LINENO"; then :
3905
3906else
3907  ac_c_werror_flag=$ac_save_c_werror_flag
3908	 CFLAGS="-g"
3909	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910/* end confdefs.h.  */
3911
3912int
3913main ()
3914{
3915
3916  ;
3917  return 0;
3918}
3919_ACEOF
3920if ac_fn_c_try_compile "$LINENO"; then :
3921  ac_cv_prog_cc_g=yes
3922fi
3923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924fi
3925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926fi
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928   ac_c_werror_flag=$ac_save_c_werror_flag
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3931$as_echo "$ac_cv_prog_cc_g" >&6; }
3932if test "$ac_test_CFLAGS" = set; then
3933  CFLAGS=$ac_save_CFLAGS
3934elif test $ac_cv_prog_cc_g = yes; then
3935  if test "$GCC" = yes; then
3936    CFLAGS="-g -O2"
3937  else
3938    CFLAGS="-g"
3939  fi
3940else
3941  if test "$GCC" = yes; then
3942    CFLAGS="-O2"
3943  else
3944    CFLAGS=
3945  fi
3946fi
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3948$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3949if ${ac_cv_prog_cc_c89+:} false; then :
3950  $as_echo_n "(cached) " >&6
3951else
3952  ac_cv_prog_cc_c89=no
3953ac_save_CC=$CC
3954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955/* end confdefs.h.  */
3956#include <stdarg.h>
3957#include <stdio.h>
3958#include <sys/types.h>
3959#include <sys/stat.h>
3960/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3961struct buf { int x; };
3962FILE * (*rcsopen) (struct buf *, struct stat *, int);
3963static char *e (p, i)
3964     char **p;
3965     int i;
3966{
3967  return p[i];
3968}
3969static char *f (char * (*g) (char **, int), char **p, ...)
3970{
3971  char *s;
3972  va_list v;
3973  va_start (v,p);
3974  s = g (p, va_arg (v,int));
3975  va_end (v);
3976  return s;
3977}
3978
3979/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3980   function prototypes and stuff, but not '\xHH' hex character constants.
3981   These don't provoke an error unfortunately, instead are silently treated
3982   as 'x'.  The following induces an error, until -std is added to get
3983   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3984   array size at least.  It's necessary to write '\x00'==0 to get something
3985   that's true only with -std.  */
3986int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3987
3988/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3989   inside strings and character constants.  */
3990#define FOO(x) 'x'
3991int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3992
3993int test (int i, double x);
3994struct s1 {int (*f) (int a);};
3995struct s2 {int (*f) (double a);};
3996int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3997int argc;
3998char **argv;
3999int
4000main ()
4001{
4002return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4003  ;
4004  return 0;
4005}
4006_ACEOF
4007for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4008	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4009do
4010  CC="$ac_save_CC $ac_arg"
4011  if ac_fn_c_try_compile "$LINENO"; then :
4012  ac_cv_prog_cc_c89=$ac_arg
4013fi
4014rm -f core conftest.err conftest.$ac_objext
4015  test "x$ac_cv_prog_cc_c89" != "xno" && break
4016done
4017rm -f conftest.$ac_ext
4018CC=$ac_save_CC
4019
4020fi
4021# AC_CACHE_VAL
4022case "x$ac_cv_prog_cc_c89" in
4023  x)
4024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4025$as_echo "none needed" >&6; } ;;
4026  xno)
4027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4028$as_echo "unsupported" >&6; } ;;
4029  *)
4030    CC="$CC $ac_cv_prog_cc_c89"
4031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4032$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4033esac
4034if test "x$ac_cv_prog_cc_c89" != xno; then :
4035
4036fi
4037
4038ac_ext=c
4039ac_cpp='$CPP $CPPFLAGS'
4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043
4044depcc="$CC"   am_compiler_list=
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4047$as_echo_n "checking dependency style of $depcc... " >&6; }
4048if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4049  $as_echo_n "(cached) " >&6
4050else
4051  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4052  # We make a subdir and do the tests there.  Otherwise we can end up
4053  # making bogus files that we don't know about and never remove.  For
4054  # instance it was reported that on HP-UX the gcc test will end up
4055  # making a dummy file named `D' -- because `-MD' means `put the output
4056  # in D'.
4057  mkdir conftest.dir
4058  # Copy depcomp to subdir because otherwise we won't find it if we're
4059  # using a relative directory.
4060  cp "$am_depcomp" conftest.dir
4061  cd conftest.dir
4062  # We will build objects and dependencies in a subdirectory because
4063  # it helps to detect inapplicable dependency modes.  For instance
4064  # both Tru64's cc and ICC support -MD to output dependencies as a
4065  # side effect of compilation, but ICC will put the dependencies in
4066  # the current directory while Tru64 will put them in the object
4067  # directory.
4068  mkdir sub
4069
4070  am_cv_CC_dependencies_compiler_type=none
4071  if test "$am_compiler_list" = ""; then
4072     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4073  fi
4074  am__universal=false
4075  case " $depcc " in #(
4076     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4077     esac
4078
4079  for depmode in $am_compiler_list; do
4080    # Setup a source with many dependencies, because some compilers
4081    # like to wrap large dependency lists on column 80 (with \), and
4082    # we should not choose a depcomp mode which is confused by this.
4083    #
4084    # We need to recreate these files for each test, as the compiler may
4085    # overwrite some of them when testing with obscure command lines.
4086    # This happens at least with the AIX C compiler.
4087    : > sub/conftest.c
4088    for i in 1 2 3 4 5 6; do
4089      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4090      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4091      # Solaris 8's {/usr,}/bin/sh.
4092      touch sub/conftst$i.h
4093    done
4094    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4095
4096    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4097    # mode.  It turns out that the SunPro C++ compiler does not properly
4098    # handle `-M -o', and we need to detect this.  Also, some Intel
4099    # versions had trouble with output in subdirs
4100    am__obj=sub/conftest.${OBJEXT-o}
4101    am__minus_obj="-o $am__obj"
4102    case $depmode in
4103    gcc)
4104      # This depmode causes a compiler race in universal mode.
4105      test "$am__universal" = false || continue
4106      ;;
4107    nosideeffect)
4108      # after this tag, mechanisms are not by side-effect, so they'll
4109      # only be used when explicitly requested
4110      if test "x$enable_dependency_tracking" = xyes; then
4111	continue
4112      else
4113	break
4114      fi
4115      ;;
4116    msvisualcpp | msvcmsys)
4117      # This compiler won't grok `-c -o', but also, the minuso test has
4118      # not run yet.  These depmodes are late enough in the game, and
4119      # so weak that their functioning should not be impacted.
4120      am__obj=conftest.${OBJEXT-o}
4121      am__minus_obj=
4122      ;;
4123    none) break ;;
4124    esac
4125    if depmode=$depmode \
4126       source=sub/conftest.c object=$am__obj \
4127       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4128       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4129         >/dev/null 2>conftest.err &&
4130       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4131       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4132       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4133       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4134      # icc doesn't choke on unknown options, it will just issue warnings
4135      # or remarks (even with -Werror).  So we grep stderr for any message
4136      # that says an option was ignored or not supported.
4137      # When given -MP, icc 7.0 and 7.1 complain thusly:
4138      #   icc: Command line warning: ignoring option '-M'; no argument required
4139      # The diagnosis changed in icc 8.0:
4140      #   icc: Command line remark: option '-MP' not supported
4141      if (grep 'ignoring option' conftest.err ||
4142          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4143        am_cv_CC_dependencies_compiler_type=$depmode
4144        break
4145      fi
4146    fi
4147  done
4148
4149  cd ..
4150  rm -rf conftest.dir
4151else
4152  am_cv_CC_dependencies_compiler_type=none
4153fi
4154
4155fi
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4157$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4158CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4159
4160 if
4161  test "x$enable_dependency_tracking" != xno \
4162  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4163  am__fastdepCC_TRUE=
4164  am__fastdepCC_FALSE='#'
4165else
4166  am__fastdepCC_TRUE='#'
4167  am__fastdepCC_FALSE=
4168fi
4169
4170
4171
4172ac_ext=c
4173ac_cpp='$CPP $CPPFLAGS'
4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4178$as_echo_n "checking how to run the C preprocessor... " >&6; }
4179# On Suns, sometimes $CPP names a directory.
4180if test -n "$CPP" && test -d "$CPP"; then
4181  CPP=
4182fi
4183if test -z "$CPP"; then
4184  if ${ac_cv_prog_CPP+:} false; then :
4185  $as_echo_n "(cached) " >&6
4186else
4187      # Double quotes because CPP needs to be expanded
4188    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4189    do
4190      ac_preproc_ok=false
4191for ac_c_preproc_warn_flag in '' yes
4192do
4193  # Use a header file that comes with gcc, so configuring glibc
4194  # with a fresh cross-compiler works.
4195  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196  # <limits.h> exists even on freestanding compilers.
4197  # On the NeXT, cc -E runs the code through the compiler's parser,
4198  # not just through cpp. "Syntax error" is here to catch this case.
4199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h.  */
4201#ifdef __STDC__
4202# include <limits.h>
4203#else
4204# include <assert.h>
4205#endif
4206		     Syntax error
4207_ACEOF
4208if ac_fn_c_try_cpp "$LINENO"; then :
4209
4210else
4211  # Broken: fails on valid input.
4212continue
4213fi
4214rm -f conftest.err conftest.i conftest.$ac_ext
4215
4216  # OK, works on sane cases.  Now check whether nonexistent headers
4217  # can be detected and how.
4218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219/* end confdefs.h.  */
4220#include <ac_nonexistent.h>
4221_ACEOF
4222if ac_fn_c_try_cpp "$LINENO"; then :
4223  # Broken: success on invalid input.
4224continue
4225else
4226  # Passes both tests.
4227ac_preproc_ok=:
4228break
4229fi
4230rm -f conftest.err conftest.i conftest.$ac_ext
4231
4232done
4233# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4234rm -f conftest.i conftest.err conftest.$ac_ext
4235if $ac_preproc_ok; then :
4236  break
4237fi
4238
4239    done
4240    ac_cv_prog_CPP=$CPP
4241
4242fi
4243  CPP=$ac_cv_prog_CPP
4244else
4245  ac_cv_prog_CPP=$CPP
4246fi
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4248$as_echo "$CPP" >&6; }
4249ac_preproc_ok=false
4250for ac_c_preproc_warn_flag in '' yes
4251do
4252  # Use a header file that comes with gcc, so configuring glibc
4253  # with a fresh cross-compiler works.
4254  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255  # <limits.h> exists even on freestanding compilers.
4256  # On the NeXT, cc -E runs the code through the compiler's parser,
4257  # not just through cpp. "Syntax error" is here to catch this case.
4258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h.  */
4260#ifdef __STDC__
4261# include <limits.h>
4262#else
4263# include <assert.h>
4264#endif
4265		     Syntax error
4266_ACEOF
4267if ac_fn_c_try_cpp "$LINENO"; then :
4268
4269else
4270  # Broken: fails on valid input.
4271continue
4272fi
4273rm -f conftest.err conftest.i conftest.$ac_ext
4274
4275  # OK, works on sane cases.  Now check whether nonexistent headers
4276  # can be detected and how.
4277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279#include <ac_nonexistent.h>
4280_ACEOF
4281if ac_fn_c_try_cpp "$LINENO"; then :
4282  # Broken: success on invalid input.
4283continue
4284else
4285  # Passes both tests.
4286ac_preproc_ok=:
4287break
4288fi
4289rm -f conftest.err conftest.i conftest.$ac_ext
4290
4291done
4292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4293rm -f conftest.i conftest.err conftest.$ac_ext
4294if $ac_preproc_ok; then :
4295
4296else
4297  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4299as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4300See \`config.log' for more details" "$LINENO" 5; }
4301fi
4302
4303ac_ext=c
4304ac_cpp='$CPP $CPPFLAGS'
4305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308
4309
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4311$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4312if ${ac_cv_path_GREP+:} false; then :
4313  $as_echo_n "(cached) " >&6
4314else
4315  if test -z "$GREP"; then
4316  ac_path_GREP_found=false
4317  # Loop through the user's path and test for each of PROGNAME-LIST
4318  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4320do
4321  IFS=$as_save_IFS
4322  test -z "$as_dir" && as_dir=.
4323    for ac_prog in grep ggrep; do
4324    for ac_exec_ext in '' $ac_executable_extensions; do
4325      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4326      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4327# Check for GNU ac_path_GREP and select it if it is found.
4328  # Check for GNU $ac_path_GREP
4329case `"$ac_path_GREP" --version 2>&1` in
4330*GNU*)
4331  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4332*)
4333  ac_count=0
4334  $as_echo_n 0123456789 >"conftest.in"
4335  while :
4336  do
4337    cat "conftest.in" "conftest.in" >"conftest.tmp"
4338    mv "conftest.tmp" "conftest.in"
4339    cp "conftest.in" "conftest.nl"
4340    $as_echo 'GREP' >> "conftest.nl"
4341    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4342    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4343    as_fn_arith $ac_count + 1 && ac_count=$as_val
4344    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4345      # Best one so far, save it but keep looking for a better one
4346      ac_cv_path_GREP="$ac_path_GREP"
4347      ac_path_GREP_max=$ac_count
4348    fi
4349    # 10*(2^10) chars as input seems more than enough
4350    test $ac_count -gt 10 && break
4351  done
4352  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4353esac
4354
4355      $ac_path_GREP_found && break 3
4356    done
4357  done
4358  done
4359IFS=$as_save_IFS
4360  if test -z "$ac_cv_path_GREP"; then
4361    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4362  fi
4363else
4364  ac_cv_path_GREP=$GREP
4365fi
4366
4367fi
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4369$as_echo "$ac_cv_path_GREP" >&6; }
4370 GREP="$ac_cv_path_GREP"
4371
4372
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4374$as_echo_n "checking for egrep... " >&6; }
4375if ${ac_cv_path_EGREP+:} false; then :
4376  $as_echo_n "(cached) " >&6
4377else
4378  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4379   then ac_cv_path_EGREP="$GREP -E"
4380   else
4381     if test -z "$EGREP"; then
4382  ac_path_EGREP_found=false
4383  # Loop through the user's path and test for each of PROGNAME-LIST
4384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386do
4387  IFS=$as_save_IFS
4388  test -z "$as_dir" && as_dir=.
4389    for ac_prog in egrep; do
4390    for ac_exec_ext in '' $ac_executable_extensions; do
4391      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4392      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4393# Check for GNU ac_path_EGREP and select it if it is found.
4394  # Check for GNU $ac_path_EGREP
4395case `"$ac_path_EGREP" --version 2>&1` in
4396*GNU*)
4397  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4398*)
4399  ac_count=0
4400  $as_echo_n 0123456789 >"conftest.in"
4401  while :
4402  do
4403    cat "conftest.in" "conftest.in" >"conftest.tmp"
4404    mv "conftest.tmp" "conftest.in"
4405    cp "conftest.in" "conftest.nl"
4406    $as_echo 'EGREP' >> "conftest.nl"
4407    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409    as_fn_arith $ac_count + 1 && ac_count=$as_val
4410    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4411      # Best one so far, save it but keep looking for a better one
4412      ac_cv_path_EGREP="$ac_path_EGREP"
4413      ac_path_EGREP_max=$ac_count
4414    fi
4415    # 10*(2^10) chars as input seems more than enough
4416    test $ac_count -gt 10 && break
4417  done
4418  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4419esac
4420
4421      $ac_path_EGREP_found && break 3
4422    done
4423  done
4424  done
4425IFS=$as_save_IFS
4426  if test -z "$ac_cv_path_EGREP"; then
4427    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4428  fi
4429else
4430  ac_cv_path_EGREP=$EGREP
4431fi
4432
4433   fi
4434fi
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4436$as_echo "$ac_cv_path_EGREP" >&6; }
4437 EGREP="$ac_cv_path_EGREP"
4438
4439
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4441$as_echo_n "checking for ANSI C header files... " >&6; }
4442if ${ac_cv_header_stdc+:} false; then :
4443  $as_echo_n "(cached) " >&6
4444else
4445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446/* end confdefs.h.  */
4447#include <stdlib.h>
4448#include <stdarg.h>
4449#include <string.h>
4450#include <float.h>
4451
4452int
4453main ()
4454{
4455
4456  ;
4457  return 0;
4458}
4459_ACEOF
4460if ac_fn_c_try_compile "$LINENO"; then :
4461  ac_cv_header_stdc=yes
4462else
4463  ac_cv_header_stdc=no
4464fi
4465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466
4467if test $ac_cv_header_stdc = yes; then
4468  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470/* end confdefs.h.  */
4471#include <string.h>
4472
4473_ACEOF
4474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475  $EGREP "memchr" >/dev/null 2>&1; then :
4476
4477else
4478  ac_cv_header_stdc=no
4479fi
4480rm -f conftest*
4481
4482fi
4483
4484if test $ac_cv_header_stdc = yes; then
4485  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h.  */
4488#include <stdlib.h>
4489
4490_ACEOF
4491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492  $EGREP "free" >/dev/null 2>&1; then :
4493
4494else
4495  ac_cv_header_stdc=no
4496fi
4497rm -f conftest*
4498
4499fi
4500
4501if test $ac_cv_header_stdc = yes; then
4502  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4503  if test "$cross_compiling" = yes; then :
4504  :
4505else
4506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507/* end confdefs.h.  */
4508#include <ctype.h>
4509#include <stdlib.h>
4510#if ((' ' & 0x0FF) == 0x020)
4511# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4512# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4513#else
4514# define ISLOWER(c) \
4515		   (('a' <= (c) && (c) <= 'i') \
4516		     || ('j' <= (c) && (c) <= 'r') \
4517		     || ('s' <= (c) && (c) <= 'z'))
4518# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4519#endif
4520
4521#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4522int
4523main ()
4524{
4525  int i;
4526  for (i = 0; i < 256; i++)
4527    if (XOR (islower (i), ISLOWER (i))
4528	|| toupper (i) != TOUPPER (i))
4529      return 2;
4530  return 0;
4531}
4532_ACEOF
4533if ac_fn_c_try_run "$LINENO"; then :
4534
4535else
4536  ac_cv_header_stdc=no
4537fi
4538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4539  conftest.$ac_objext conftest.beam conftest.$ac_ext
4540fi
4541
4542fi
4543fi
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4545$as_echo "$ac_cv_header_stdc" >&6; }
4546if test $ac_cv_header_stdc = yes; then
4547
4548$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4549
4550fi
4551
4552# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4553for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4554		  inttypes.h stdint.h unistd.h
4555do :
4556  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4557ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4558"
4559if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4560  cat >>confdefs.h <<_ACEOF
4561#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4562_ACEOF
4563
4564fi
4565
4566done
4567
4568
4569
4570  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4571if test "x$ac_cv_header_minix_config_h" = xyes; then :
4572  MINIX=yes
4573else
4574  MINIX=
4575fi
4576
4577
4578  if test "$MINIX" = yes; then
4579
4580$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4581
4582
4583$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4584
4585
4586$as_echo "#define _MINIX 1" >>confdefs.h
4587
4588  fi
4589
4590
4591  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4592$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4593if ${ac_cv_safe_to_define___extensions__+:} false; then :
4594  $as_echo_n "(cached) " >&6
4595else
4596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h.  */
4598
4599#	  define __EXTENSIONS__ 1
4600	  $ac_includes_default
4601int
4602main ()
4603{
4604
4605  ;
4606  return 0;
4607}
4608_ACEOF
4609if ac_fn_c_try_compile "$LINENO"; then :
4610  ac_cv_safe_to_define___extensions__=yes
4611else
4612  ac_cv_safe_to_define___extensions__=no
4613fi
4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615fi
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4617$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4618  test $ac_cv_safe_to_define___extensions__ = yes &&
4619    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4620
4621  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4622
4623  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4624
4625  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4626
4627  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4628
4629
4630
4631# Require xorg-macros minimum of 1.11 for disabling fop by default
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4644$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4645if ${ac_cv_prog_cc_c99+:} false; then :
4646  $as_echo_n "(cached) " >&6
4647else
4648  ac_cv_prog_cc_c99=no
4649ac_save_CC=$CC
4650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651/* end confdefs.h.  */
4652#include <stdarg.h>
4653#include <stdbool.h>
4654#include <stdlib.h>
4655#include <wchar.h>
4656#include <stdio.h>
4657
4658// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4659#define debug(...) fprintf (stderr, __VA_ARGS__)
4660#define showlist(...) puts (#__VA_ARGS__)
4661#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4662static void
4663test_varargs_macros (void)
4664{
4665  int x = 1234;
4666  int y = 5678;
4667  debug ("Flag");
4668  debug ("X = %d\n", x);
4669  showlist (The first, second, and third items.);
4670  report (x>y, "x is %d but y is %d", x, y);
4671}
4672
4673// Check long long types.
4674#define BIG64 18446744073709551615ull
4675#define BIG32 4294967295ul
4676#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4677#if !BIG_OK
4678  your preprocessor is broken;
4679#endif
4680#if BIG_OK
4681#else
4682  your preprocessor is broken;
4683#endif
4684static long long int bignum = -9223372036854775807LL;
4685static unsigned long long int ubignum = BIG64;
4686
4687struct incomplete_array
4688{
4689  int datasize;
4690  double data[];
4691};
4692
4693struct named_init {
4694  int number;
4695  const wchar_t *name;
4696  double average;
4697};
4698
4699typedef const char *ccp;
4700
4701static inline int
4702test_restrict (ccp restrict text)
4703{
4704  // See if C++-style comments work.
4705  // Iterate through items via the restricted pointer.
4706  // Also check for declarations in for loops.
4707  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4708    continue;
4709  return 0;
4710}
4711
4712// Check varargs and va_copy.
4713static void
4714test_varargs (const char *format, ...)
4715{
4716  va_list args;
4717  va_start (args, format);
4718  va_list args_copy;
4719  va_copy (args_copy, args);
4720
4721  const char *str;
4722  int number;
4723  float fnumber;
4724
4725  while (*format)
4726    {
4727      switch (*format++)
4728	{
4729	case 's': // string
4730	  str = va_arg (args_copy, const char *);
4731	  break;
4732	case 'd': // int
4733	  number = va_arg (args_copy, int);
4734	  break;
4735	case 'f': // float
4736	  fnumber = va_arg (args_copy, double);
4737	  break;
4738	default:
4739	  break;
4740	}
4741    }
4742  va_end (args_copy);
4743  va_end (args);
4744}
4745
4746int
4747main ()
4748{
4749
4750  // Check bool.
4751  _Bool success = false;
4752
4753  // Check restrict.
4754  if (test_restrict ("String literal") == 0)
4755    success = true;
4756  char *restrict newvar = "Another string";
4757
4758  // Check varargs.
4759  test_varargs ("s, d' f .", "string", 65, 34.234);
4760  test_varargs_macros ();
4761
4762  // Check flexible array members.
4763  struct incomplete_array *ia =
4764    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4765  ia->datasize = 10;
4766  for (int i = 0; i < ia->datasize; ++i)
4767    ia->data[i] = i * 1.234;
4768
4769  // Check named initializers.
4770  struct named_init ni = {
4771    .number = 34,
4772    .name = L"Test wide string",
4773    .average = 543.34343,
4774  };
4775
4776  ni.number = 58;
4777
4778  int dynamic_array[ni.number];
4779  dynamic_array[ni.number - 1] = 543;
4780
4781  // work around unused variable warnings
4782  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4783	  || dynamic_array[ni.number - 1] != 543);
4784
4785  ;
4786  return 0;
4787}
4788_ACEOF
4789for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4790do
4791  CC="$ac_save_CC $ac_arg"
4792  if ac_fn_c_try_compile "$LINENO"; then :
4793  ac_cv_prog_cc_c99=$ac_arg
4794fi
4795rm -f core conftest.err conftest.$ac_objext
4796  test "x$ac_cv_prog_cc_c99" != "xno" && break
4797done
4798rm -f conftest.$ac_ext
4799CC=$ac_save_CC
4800
4801fi
4802# AC_CACHE_VAL
4803case "x$ac_cv_prog_cc_c99" in
4804  x)
4805    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4806$as_echo "none needed" >&6; } ;;
4807  xno)
4808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4809$as_echo "unsupported" >&6; } ;;
4810  *)
4811    CC="$CC $ac_cv_prog_cc_c99"
4812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4813$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4814esac
4815if test "x$ac_cv_prog_cc_c99" != xno; then :
4816
4817fi
4818
4819
4820
4821
4822if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4823	if test -n "$ac_tool_prefix"; then
4824  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4825set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827$as_echo_n "checking for $ac_word... " >&6; }
4828if ${ac_cv_path_PKG_CONFIG+:} false; then :
4829  $as_echo_n "(cached) " >&6
4830else
4831  case $PKG_CONFIG in
4832  [\\/]* | ?:[\\/]*)
4833  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4834  ;;
4835  *)
4836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH
4838do
4839  IFS=$as_save_IFS
4840  test -z "$as_dir" && as_dir=.
4841    for ac_exec_ext in '' $ac_executable_extensions; do
4842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845    break 2
4846  fi
4847done
4848  done
4849IFS=$as_save_IFS
4850
4851  ;;
4852esac
4853fi
4854PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4855if test -n "$PKG_CONFIG"; then
4856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4857$as_echo "$PKG_CONFIG" >&6; }
4858else
4859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860$as_echo "no" >&6; }
4861fi
4862
4863
4864fi
4865if test -z "$ac_cv_path_PKG_CONFIG"; then
4866  ac_pt_PKG_CONFIG=$PKG_CONFIG
4867  # Extract the first word of "pkg-config", so it can be a program name with args.
4868set dummy pkg-config; ac_word=$2
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870$as_echo_n "checking for $ac_word... " >&6; }
4871if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4872  $as_echo_n "(cached) " >&6
4873else
4874  case $ac_pt_PKG_CONFIG in
4875  [\\/]* | ?:[\\/]*)
4876  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4877  ;;
4878  *)
4879  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880for as_dir in $PATH
4881do
4882  IFS=$as_save_IFS
4883  test -z "$as_dir" && as_dir=.
4884    for ac_exec_ext in '' $ac_executable_extensions; do
4885  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888    break 2
4889  fi
4890done
4891  done
4892IFS=$as_save_IFS
4893
4894  ;;
4895esac
4896fi
4897ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4898if test -n "$ac_pt_PKG_CONFIG"; then
4899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4900$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4901else
4902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903$as_echo "no" >&6; }
4904fi
4905
4906  if test "x$ac_pt_PKG_CONFIG" = x; then
4907    PKG_CONFIG=""
4908  else
4909    case $cross_compiling:$ac_tool_warned in
4910yes:)
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4913ac_tool_warned=yes ;;
4914esac
4915    PKG_CONFIG=$ac_pt_PKG_CONFIG
4916  fi
4917else
4918  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4919fi
4920
4921fi
4922if test -n "$PKG_CONFIG"; then
4923	_pkg_min_version=0.9.0
4924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4925$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4926	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928$as_echo "yes" >&6; }
4929	else
4930		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931$as_echo "no" >&6; }
4932		PKG_CONFIG=""
4933	fi
4934
4935fi
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4937$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4938if ${ac_cv_path_SED+:} false; then :
4939  $as_echo_n "(cached) " >&6
4940else
4941            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4942     for ac_i in 1 2 3 4 5 6 7; do
4943       ac_script="$ac_script$as_nl$ac_script"
4944     done
4945     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4946     { ac_script=; unset ac_script;}
4947     if test -z "$SED"; then
4948  ac_path_SED_found=false
4949  # Loop through the user's path and test for each of PROGNAME-LIST
4950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953  IFS=$as_save_IFS
4954  test -z "$as_dir" && as_dir=.
4955    for ac_prog in sed gsed; do
4956    for ac_exec_ext in '' $ac_executable_extensions; do
4957      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4958      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4959# Check for GNU ac_path_SED and select it if it is found.
4960  # Check for GNU $ac_path_SED
4961case `"$ac_path_SED" --version 2>&1` in
4962*GNU*)
4963  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4964*)
4965  ac_count=0
4966  $as_echo_n 0123456789 >"conftest.in"
4967  while :
4968  do
4969    cat "conftest.in" "conftest.in" >"conftest.tmp"
4970    mv "conftest.tmp" "conftest.in"
4971    cp "conftest.in" "conftest.nl"
4972    $as_echo '' >> "conftest.nl"
4973    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975    as_fn_arith $ac_count + 1 && ac_count=$as_val
4976    if test $ac_count -gt ${ac_path_SED_max-0}; then
4977      # Best one so far, save it but keep looking for a better one
4978      ac_cv_path_SED="$ac_path_SED"
4979      ac_path_SED_max=$ac_count
4980    fi
4981    # 10*(2^10) chars as input seems more than enough
4982    test $ac_count -gt 10 && break
4983  done
4984  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985esac
4986
4987      $ac_path_SED_found && break 3
4988    done
4989  done
4990  done
4991IFS=$as_save_IFS
4992  if test -z "$ac_cv_path_SED"; then
4993    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4994  fi
4995else
4996  ac_cv_path_SED=$SED
4997fi
4998
4999fi
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5001$as_echo "$ac_cv_path_SED" >&6; }
5002 SED="$ac_cv_path_SED"
5003  rm -f conftest.sed
5004
5005
5006
5007
5008
5009if  test "x$GCC" = xyes ; then
5010    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
5011-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
5012-Wbad-function-cast -Wformat=2"
5013    case `$CC -dumpversion` in
5014    3.4.* | 4.*)
5015	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
5016	;;
5017    esac
5018else
5019    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5020if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
5021  SUNCC="yes"
5022else
5023  SUNCC="no"
5024fi
5025
5026    if test "x$SUNCC" = "xyes"; then
5027	CWARNFLAGS="-v"
5028    fi
5029fi
5030
5031
5032
5033# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
5034
5035
5036
5037# Check whether --enable-strict-compilation was given.
5038if test "${enable_strict_compilation+set}" = set; then :
5039  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
5040else
5041  STRICT_COMPILE=no
5042fi
5043
5044if test "x$STRICT_COMPILE" = "xyes"; then
5045	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5046if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
5047  SUNCC="yes"
5048else
5049  SUNCC="no"
5050fi
5051
5052	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
5053if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
5054  INTELCC="yes"
5055else
5056  INTELCC="no"
5057fi
5058
5059	if test "x$GCC" = xyes ; then
5060		STRICT_CFLAGS="-pedantic -Werror"
5061	elif test "x$SUNCC" = "xyes"; then
5062		STRICT_CFLAGS="-errwarn"
5063    elif test "x$INTELCC" = "xyes"; then
5064		STRICT_CFLAGS="-Werror"
5065	fi
5066fi
5067CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5068
5069
5070
5071
5072cat >>confdefs.h <<_ACEOF
5073#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5074_ACEOF
5075
5076	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5077	if test "x$PVM" = "x"; then
5078		PVM="0"
5079	fi
5080
5081cat >>confdefs.h <<_ACEOF
5082#define PACKAGE_VERSION_MINOR $PVM
5083_ACEOF
5084
5085	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5086	if test "x$PVP" = "x"; then
5087		PVP="0"
5088	fi
5089
5090cat >>confdefs.h <<_ACEOF
5091#define PACKAGE_VERSION_PATCHLEVEL $PVP
5092_ACEOF
5093
5094
5095
5096CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5097mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5098|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5099echo 'git directory not found: installing possibly empty changelog.' >&2)"
5100
5101
5102
5103
5104macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5105INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5106mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5107|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5108echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5109
5110
5111
5112
5113
5114
5115if test x$APP_MAN_SUFFIX = x    ; then
5116    APP_MAN_SUFFIX=1
5117fi
5118if test x$APP_MAN_DIR = x    ; then
5119    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5120fi
5121
5122if test x$LIB_MAN_SUFFIX = x    ; then
5123    LIB_MAN_SUFFIX=3
5124fi
5125if test x$LIB_MAN_DIR = x    ; then
5126    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5127fi
5128
5129if test x$FILE_MAN_SUFFIX = x    ; then
5130    case $host_os in
5131	solaris*)	FILE_MAN_SUFFIX=4  ;;
5132	*)		FILE_MAN_SUFFIX=5  ;;
5133    esac
5134fi
5135if test x$FILE_MAN_DIR = x    ; then
5136    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5137fi
5138
5139if test x$MISC_MAN_SUFFIX = x    ; then
5140    case $host_os in
5141	solaris*)	MISC_MAN_SUFFIX=5  ;;
5142	*)		MISC_MAN_SUFFIX=7  ;;
5143    esac
5144fi
5145if test x$MISC_MAN_DIR = x    ; then
5146    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5147fi
5148
5149if test x$DRIVER_MAN_SUFFIX = x    ; then
5150    case $host_os in
5151	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
5152	*)		DRIVER_MAN_SUFFIX=4  ;;
5153    esac
5154fi
5155if test x$DRIVER_MAN_DIR = x    ; then
5156    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5157fi
5158
5159if test x$ADMIN_MAN_SUFFIX = x    ; then
5160    case $host_os in
5161	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
5162	*)		ADMIN_MAN_SUFFIX=8  ;;
5163    esac
5164fi
5165if test x$ADMIN_MAN_DIR = x    ; then
5166    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5167fi
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183XORG_MAN_PAGE="X Version 11"
5184
5185MAN_SUBSTS="\
5186	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5187	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5188	-e 's|__xservername__|Xorg|g' \
5189	-e 's|__xconfigfile__|xorg.conf|g' \
5190	-e 's|__projectroot__|\$(prefix)|g' \
5191	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
5192	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5193	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5194	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5195	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5196	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5197	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5198
5199
5200
5201# Check whether --enable-silent-rules was given.
5202if test "${enable_silent_rules+set}" = set; then :
5203  enableval=$enable_silent_rules;
5204fi
5205
5206case $enable_silent_rules in
5207yes) AM_DEFAULT_VERBOSITY=0;;
5208no)  AM_DEFAULT_VERBOSITY=1;;
5209*)   AM_DEFAULT_VERBOSITY=0;;
5210esac
5211AM_BACKSLASH='\'
5212
5213
5214
5215
5216# Check whether --enable-specs was given.
5217if test "${enable_specs+set}" = set; then :
5218  enableval=$enable_specs; build_specs=$enableval
5219else
5220  build_specs=yes
5221fi
5222
5223
5224 if test x$build_specs = xyes; then
5225  ENABLE_SPECS_TRUE=
5226  ENABLE_SPECS_FALSE='#'
5227else
5228  ENABLE_SPECS_TRUE='#'
5229  ENABLE_SPECS_FALSE=
5230fi
5231
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
5233$as_echo_n "checking whether to build functional specifications... " >&6; }
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
5235$as_echo "$build_specs" >&6; }
5236
5237
5238
5239
5240
5241# Check whether --with-xmlto was given.
5242if test "${with_xmlto+set}" = set; then :
5243  withval=$with_xmlto; use_xmlto=$withval
5244else
5245  use_xmlto=auto
5246fi
5247
5248
5249
5250if test "x$use_xmlto" = x"auto"; then
5251   # Extract the first word of "xmlto", so it can be a program name with args.
5252set dummy xmlto; ac_word=$2
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254$as_echo_n "checking for $ac_word... " >&6; }
5255if ${ac_cv_path_XMLTO+:} false; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258  case $XMLTO in
5259  [\\/]* | ?:[\\/]*)
5260  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5261  ;;
5262  *)
5263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266  IFS=$as_save_IFS
5267  test -z "$as_dir" && as_dir=.
5268    for ac_exec_ext in '' $ac_executable_extensions; do
5269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272    break 2
5273  fi
5274done
5275  done
5276IFS=$as_save_IFS
5277
5278  ;;
5279esac
5280fi
5281XMLTO=$ac_cv_path_XMLTO
5282if test -n "$XMLTO"; then
5283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5284$as_echo "$XMLTO" >&6; }
5285else
5286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287$as_echo "no" >&6; }
5288fi
5289
5290
5291   if test "x$XMLTO" = "x"; then
5292        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
5293$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
5294	have_xmlto=no
5295   else
5296        have_xmlto=yes
5297   fi
5298elif test "x$use_xmlto" = x"yes" ; then
5299   # Extract the first word of "xmlto", so it can be a program name with args.
5300set dummy xmlto; ac_word=$2
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302$as_echo_n "checking for $ac_word... " >&6; }
5303if ${ac_cv_path_XMLTO+:} false; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306  case $XMLTO in
5307  [\\/]* | ?:[\\/]*)
5308  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5309  ;;
5310  *)
5311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314  IFS=$as_save_IFS
5315  test -z "$as_dir" && as_dir=.
5316    for ac_exec_ext in '' $ac_executable_extensions; do
5317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320    break 2
5321  fi
5322done
5323  done
5324IFS=$as_save_IFS
5325
5326  ;;
5327esac
5328fi
5329XMLTO=$ac_cv_path_XMLTO
5330if test -n "$XMLTO"; then
5331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5332$as_echo "$XMLTO" >&6; }
5333else
5334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335$as_echo "no" >&6; }
5336fi
5337
5338
5339   if test "x$XMLTO" = "x"; then
5340        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
5341   fi
5342   have_xmlto=yes
5343elif test "x$use_xmlto" = x"no" ; then
5344   if test "x$XMLTO" != "x"; then
5345      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
5346$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
5347   fi
5348   have_xmlto=no
5349else
5350   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
5351fi
5352
5353# Test for a minimum version of xmlto, if provided.
5354if test "$have_xmlto" = yes; then
5355    # scrape the xmlto version
5356    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
5357$as_echo_n "checking the xmlto version... " >&6; }
5358    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
5359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
5360$as_echo "$xmlto_version" >&6; }
5361    as_arg_v1=$xmlto_version
5362as_arg_v2=0.0.20
5363awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5364case $? in #(
5365  1) :
5366    if test "x$use_xmlto" = xauto; then
5367            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
5368$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
5369            have_xmlto=no
5370        else
5371            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
5372        fi ;; #(
5373  0) :
5374     ;; #(
5375  2) :
5376     ;; #(
5377  *) :
5378     ;;
5379esac
5380fi
5381
5382# Test for the ability of xmlto to generate a text target
5383have_xmlto_text=no
5384cat > conftest.xml << "EOF"
5385EOF
5386if test "$have_xmlto" = yes; then :
5387  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
5388  have_xmlto_text=yes
5389else
5390  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
5391$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
5392fi
5393fi
5394rm -f conftest.xml
5395 if test $have_xmlto_text = yes; then
5396  HAVE_XMLTO_TEXT_TRUE=
5397  HAVE_XMLTO_TEXT_FALSE='#'
5398else
5399  HAVE_XMLTO_TEXT_TRUE='#'
5400  HAVE_XMLTO_TEXT_FALSE=
5401fi
5402
5403 if test "$have_xmlto" = yes; then
5404  HAVE_XMLTO_TRUE=
5405  HAVE_XMLTO_FALSE='#'
5406else
5407  HAVE_XMLTO_TRUE='#'
5408  HAVE_XMLTO_FALSE=
5409fi
5410
5411
5412
5413
5414
5415
5416# Check whether --with-fop was given.
5417if test "${with_fop+set}" = set; then :
5418  withval=$with_fop; use_fop=$withval
5419else
5420  use_fop=no
5421fi
5422
5423
5424
5425if test "x$use_fop" = x"auto"; then
5426   # Extract the first word of "fop", so it can be a program name with args.
5427set dummy fop; ac_word=$2
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429$as_echo_n "checking for $ac_word... " >&6; }
5430if ${ac_cv_path_FOP+:} false; then :
5431  $as_echo_n "(cached) " >&6
5432else
5433  case $FOP in
5434  [\\/]* | ?:[\\/]*)
5435  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5436  ;;
5437  *)
5438  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439for as_dir in $PATH
5440do
5441  IFS=$as_save_IFS
5442  test -z "$as_dir" && as_dir=.
5443    for ac_exec_ext in '' $ac_executable_extensions; do
5444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447    break 2
5448  fi
5449done
5450  done
5451IFS=$as_save_IFS
5452
5453  ;;
5454esac
5455fi
5456FOP=$ac_cv_path_FOP
5457if test -n "$FOP"; then
5458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5459$as_echo "$FOP" >&6; }
5460else
5461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462$as_echo "no" >&6; }
5463fi
5464
5465
5466   if test "x$FOP" = "x"; then
5467        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
5468$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
5469	have_fop=no
5470   else
5471        have_fop=yes
5472   fi
5473elif test "x$use_fop" = x"yes" ; then
5474   # Extract the first word of "fop", so it can be a program name with args.
5475set dummy fop; ac_word=$2
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477$as_echo_n "checking for $ac_word... " >&6; }
5478if ${ac_cv_path_FOP+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481  case $FOP in
5482  [\\/]* | ?:[\\/]*)
5483  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5484  ;;
5485  *)
5486  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489  IFS=$as_save_IFS
5490  test -z "$as_dir" && as_dir=.
5491    for ac_exec_ext in '' $ac_executable_extensions; do
5492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495    break 2
5496  fi
5497done
5498  done
5499IFS=$as_save_IFS
5500
5501  ;;
5502esac
5503fi
5504FOP=$ac_cv_path_FOP
5505if test -n "$FOP"; then
5506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5507$as_echo "$FOP" >&6; }
5508else
5509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510$as_echo "no" >&6; }
5511fi
5512
5513
5514   if test "x$FOP" = "x"; then
5515        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
5516   fi
5517   have_fop=yes
5518elif test "x$use_fop" = x"no" ; then
5519   if test "x$FOP" != "x"; then
5520      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
5521$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
5522   fi
5523   have_fop=no
5524else
5525   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
5526fi
5527 if test "$have_fop" = yes; then
5528  HAVE_FOP_TRUE=
5529  HAVE_FOP_FALSE='#'
5530else
5531  HAVE_FOP_TRUE='#'
5532  HAVE_FOP_FALSE=
5533fi
5534
5535
5536
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
5538$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
5539XORG_SGML_PATH=
5540if test -n "$PKG_CONFIG" && \
5541    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
5542  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
5543  ac_status=$?
5544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545  test $ac_status = 0; }; then
5546  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
5547else
5548  :
5549
5550fi
5551
5552# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
5553# the path and the name of the doc stylesheet
5554if test "x$XORG_SGML_PATH" != "x" ; then
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
5556$as_echo "$XORG_SGML_PATH" >&6; }
5557   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
5558   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
5559else
5560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561$as_echo "no" >&6; }
5562fi
5563
5564
5565
5566
5567 if test "x$XSL_STYLESHEET" != "x"; then
5568  HAVE_STYLESHEETS_TRUE=
5569  HAVE_STYLESHEETS_FALSE='#'
5570else
5571  HAVE_STYLESHEETS_TRUE='#'
5572  HAVE_STYLESHEETS_FALSE=
5573fi
5574
5575
5576
5577
5578for ac_prog in cpp
5579do
5580  # Extract the first word of "$ac_prog", so it can be a program name with args.
5581set dummy $ac_prog; ac_word=$2
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583$as_echo_n "checking for $ac_word... " >&6; }
5584if ${ac_cv_path_RAWCPP+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  case $RAWCPP in
5588  [\\/]* | ?:[\\/]*)
5589  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
5590  ;;
5591  *)
5592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
5594for as_dir in $as_dummy
5595do
5596  IFS=$as_save_IFS
5597  test -z "$as_dir" && as_dir=.
5598    for ac_exec_ext in '' $ac_executable_extensions; do
5599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
5601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602    break 2
5603  fi
5604done
5605  done
5606IFS=$as_save_IFS
5607
5608  ;;
5609esac
5610fi
5611RAWCPP=$ac_cv_path_RAWCPP
5612if test -n "$RAWCPP"; then
5613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
5614$as_echo "$RAWCPP" >&6; }
5615else
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617$as_echo "no" >&6; }
5618fi
5619
5620
5621  test -n "$RAWCPP" && break
5622done
5623test -n "$RAWCPP" || RAWCPP="${CPP}"
5624
5625
5626# Check for flag to avoid builtin definitions - assumes unix is predefined,
5627# which is not the best choice for supporting other OS'es, but covers most
5628# of the ones we need for now.
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
5630$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
5631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632/* end confdefs.h.  */
5633Does cpp redefine unix ?
5634_ACEOF
5635if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
5636	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637$as_echo "no" >&6; }
5638else
5639	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
5640		RAWCPPFLAGS=-undef
5641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5642$as_echo "yes" >&6; }
5643	# under Cygwin unix is still defined even with -undef
5644	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
5645		RAWCPPFLAGS="-undef -ansi"
5646		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
5647$as_echo "yes, with -ansi" >&6; }
5648	else
5649		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
5650	fi
5651fi
5652rm -f conftest.$ac_ext
5653
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
5655$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
5656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h.  */
5658Does cpp preserve   "whitespace"?
5659_ACEOF
5660if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
5661	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662$as_echo "no" >&6; }
5663else
5664	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
5665		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
5666		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5667$as_echo "yes" >&6; }
5668	else
5669		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
5670	fi
5671fi
5672rm -f conftest.$ac_ext
5673
5674
5675
5676# Checks for programs.
5677case `pwd` in
5678  *\ * | *\	*)
5679    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5680$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5681esac
5682
5683
5684
5685macro_version='2.4'
5686macro_revision='1.3293'
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700ltmain="$ac_aux_dir/ltmain.sh"
5701
5702# Backslashify metacharacters that are still active within
5703# double-quoted strings.
5704sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5705
5706# Same as above, but do not quote variable references.
5707double_quote_subst='s/\(["`\\]\)/\\\1/g'
5708
5709# Sed substitution to delay expansion of an escaped shell variable in a
5710# double_quote_subst'ed string.
5711delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5712
5713# Sed substitution to delay expansion of an escaped single quote.
5714delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5715
5716# Sed substitution to avoid accidental globbing in evaled expressions
5717no_glob_subst='s/\*/\\\*/g'
5718
5719ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5720ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5721ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5722
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5724$as_echo_n "checking how to print strings... " >&6; }
5725# Test print first, because it will be a builtin if present.
5726if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5727   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5728  ECHO='print -r --'
5729elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5730  ECHO='printf %s\n'
5731else
5732  # Use this function as a fallback that always works.
5733  func_fallback_echo ()
5734  {
5735    eval 'cat <<_LTECHO_EOF
5736$1
5737_LTECHO_EOF'
5738  }
5739  ECHO='func_fallback_echo'
5740fi
5741
5742# func_echo_all arg...
5743# Invoke $ECHO with all args, space-separated.
5744func_echo_all ()
5745{
5746    $ECHO ""
5747}
5748
5749case "$ECHO" in
5750  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5751$as_echo "printf" >&6; } ;;
5752  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5753$as_echo "print -r" >&6; } ;;
5754  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5755$as_echo "cat" >&6; } ;;
5756esac
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5772$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5773if ${ac_cv_path_SED+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5777     for ac_i in 1 2 3 4 5 6 7; do
5778       ac_script="$ac_script$as_nl$ac_script"
5779     done
5780     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5781     { ac_script=; unset ac_script;}
5782     if test -z "$SED"; then
5783  ac_path_SED_found=false
5784  # Loop through the user's path and test for each of PROGNAME-LIST
5785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788  IFS=$as_save_IFS
5789  test -z "$as_dir" && as_dir=.
5790    for ac_prog in sed gsed; do
5791    for ac_exec_ext in '' $ac_executable_extensions; do
5792      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5793      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5794# Check for GNU ac_path_SED and select it if it is found.
5795  # Check for GNU $ac_path_SED
5796case `"$ac_path_SED" --version 2>&1` in
5797*GNU*)
5798  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5799*)
5800  ac_count=0
5801  $as_echo_n 0123456789 >"conftest.in"
5802  while :
5803  do
5804    cat "conftest.in" "conftest.in" >"conftest.tmp"
5805    mv "conftest.tmp" "conftest.in"
5806    cp "conftest.in" "conftest.nl"
5807    $as_echo '' >> "conftest.nl"
5808    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5809    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5810    as_fn_arith $ac_count + 1 && ac_count=$as_val
5811    if test $ac_count -gt ${ac_path_SED_max-0}; then
5812      # Best one so far, save it but keep looking for a better one
5813      ac_cv_path_SED="$ac_path_SED"
5814      ac_path_SED_max=$ac_count
5815    fi
5816    # 10*(2^10) chars as input seems more than enough
5817    test $ac_count -gt 10 && break
5818  done
5819  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5820esac
5821
5822      $ac_path_SED_found && break 3
5823    done
5824  done
5825  done
5826IFS=$as_save_IFS
5827  if test -z "$ac_cv_path_SED"; then
5828    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5829  fi
5830else
5831  ac_cv_path_SED=$SED
5832fi
5833
5834fi
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5836$as_echo "$ac_cv_path_SED" >&6; }
5837 SED="$ac_cv_path_SED"
5838  rm -f conftest.sed
5839
5840test -z "$SED" && SED=sed
5841Xsed="$SED -e 1s/^X//"
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5854$as_echo_n "checking for fgrep... " >&6; }
5855if ${ac_cv_path_FGREP+:} false; then :
5856  $as_echo_n "(cached) " >&6
5857else
5858  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5859   then ac_cv_path_FGREP="$GREP -F"
5860   else
5861     if test -z "$FGREP"; then
5862  ac_path_FGREP_found=false
5863  # Loop through the user's path and test for each of PROGNAME-LIST
5864  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5866do
5867  IFS=$as_save_IFS
5868  test -z "$as_dir" && as_dir=.
5869    for ac_prog in fgrep; do
5870    for ac_exec_ext in '' $ac_executable_extensions; do
5871      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5872      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5873# Check for GNU ac_path_FGREP and select it if it is found.
5874  # Check for GNU $ac_path_FGREP
5875case `"$ac_path_FGREP" --version 2>&1` in
5876*GNU*)
5877  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5878*)
5879  ac_count=0
5880  $as_echo_n 0123456789 >"conftest.in"
5881  while :
5882  do
5883    cat "conftest.in" "conftest.in" >"conftest.tmp"
5884    mv "conftest.tmp" "conftest.in"
5885    cp "conftest.in" "conftest.nl"
5886    $as_echo 'FGREP' >> "conftest.nl"
5887    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5888    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5889    as_fn_arith $ac_count + 1 && ac_count=$as_val
5890    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5891      # Best one so far, save it but keep looking for a better one
5892      ac_cv_path_FGREP="$ac_path_FGREP"
5893      ac_path_FGREP_max=$ac_count
5894    fi
5895    # 10*(2^10) chars as input seems more than enough
5896    test $ac_count -gt 10 && break
5897  done
5898  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5899esac
5900
5901      $ac_path_FGREP_found && break 3
5902    done
5903  done
5904  done
5905IFS=$as_save_IFS
5906  if test -z "$ac_cv_path_FGREP"; then
5907    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5908  fi
5909else
5910  ac_cv_path_FGREP=$FGREP
5911fi
5912
5913   fi
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5916$as_echo "$ac_cv_path_FGREP" >&6; }
5917 FGREP="$ac_cv_path_FGREP"
5918
5919
5920test -z "$GREP" && GREP=grep
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940# Check whether --with-gnu-ld was given.
5941if test "${with_gnu_ld+set}" = set; then :
5942  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5943else
5944  with_gnu_ld=no
5945fi
5946
5947ac_prog=ld
5948if test "$GCC" = yes; then
5949  # Check if gcc -print-prog-name=ld gives a path.
5950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5951$as_echo_n "checking for ld used by $CC... " >&6; }
5952  case $host in
5953  *-*-mingw*)
5954    # gcc leaves a trailing carriage return which upsets mingw
5955    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5956  *)
5957    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5958  esac
5959  case $ac_prog in
5960    # Accept absolute paths.
5961    [\\/]* | ?:[\\/]*)
5962      re_direlt='/[^/][^/]*/\.\./'
5963      # Canonicalize the pathname of ld
5964      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5965      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5966	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5967      done
5968      test -z "$LD" && LD="$ac_prog"
5969      ;;
5970  "")
5971    # If it fails, then pretend we aren't using GCC.
5972    ac_prog=ld
5973    ;;
5974  *)
5975    # If it is relative, then search for the first ld in PATH.
5976    with_gnu_ld=unknown
5977    ;;
5978  esac
5979elif test "$with_gnu_ld" = yes; then
5980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5981$as_echo_n "checking for GNU ld... " >&6; }
5982else
5983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5984$as_echo_n "checking for non-GNU ld... " >&6; }
5985fi
5986if ${lt_cv_path_LD+:} false; then :
5987  $as_echo_n "(cached) " >&6
5988else
5989  if test -z "$LD"; then
5990  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5991  for ac_dir in $PATH; do
5992    IFS="$lt_save_ifs"
5993    test -z "$ac_dir" && ac_dir=.
5994    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5995      lt_cv_path_LD="$ac_dir/$ac_prog"
5996      # Check to see if the program is GNU ld.  I'd rather use --version,
5997      # but apparently some variants of GNU ld only accept -v.
5998      # Break only if it was the GNU/non-GNU ld that we prefer.
5999      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6000      *GNU* | *'with BFD'*)
6001	test "$with_gnu_ld" != no && break
6002	;;
6003      *)
6004	test "$with_gnu_ld" != yes && break
6005	;;
6006      esac
6007    fi
6008  done
6009  IFS="$lt_save_ifs"
6010else
6011  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6012fi
6013fi
6014
6015LD="$lt_cv_path_LD"
6016if test -n "$LD"; then
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6018$as_echo "$LD" >&6; }
6019else
6020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021$as_echo "no" >&6; }
6022fi
6023test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6025$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6026if ${lt_cv_prog_gnu_ld+:} false; then :
6027  $as_echo_n "(cached) " >&6
6028else
6029  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6030case `$LD -v 2>&1 </dev/null` in
6031*GNU* | *'with BFD'*)
6032  lt_cv_prog_gnu_ld=yes
6033  ;;
6034*)
6035  lt_cv_prog_gnu_ld=no
6036  ;;
6037esac
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6040$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6041with_gnu_ld=$lt_cv_prog_gnu_ld
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6052$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6053if ${lt_cv_path_NM+:} false; then :
6054  $as_echo_n "(cached) " >&6
6055else
6056  if test -n "$NM"; then
6057  # Let the user override the test.
6058  lt_cv_path_NM="$NM"
6059else
6060  lt_nm_to_check="${ac_tool_prefix}nm"
6061  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6062    lt_nm_to_check="$lt_nm_to_check nm"
6063  fi
6064  for lt_tmp_nm in $lt_nm_to_check; do
6065    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6066    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6067      IFS="$lt_save_ifs"
6068      test -z "$ac_dir" && ac_dir=.
6069      tmp_nm="$ac_dir/$lt_tmp_nm"
6070      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6071	# Check to see if the nm accepts a BSD-compat flag.
6072	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6073	#   nm: unknown option "B" ignored
6074	# Tru64's nm complains that /dev/null is an invalid object file
6075	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6076	*/dev/null* | *'Invalid file or object type'*)
6077	  lt_cv_path_NM="$tmp_nm -B"
6078	  break
6079	  ;;
6080	*)
6081	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6082	  */dev/null*)
6083	    lt_cv_path_NM="$tmp_nm -p"
6084	    break
6085	    ;;
6086	  *)
6087	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6088	    continue # so that we can try to find one that supports BSD flags
6089	    ;;
6090	  esac
6091	  ;;
6092	esac
6093      fi
6094    done
6095    IFS="$lt_save_ifs"
6096  done
6097  : ${lt_cv_path_NM=no}
6098fi
6099fi
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6101$as_echo "$lt_cv_path_NM" >&6; }
6102if test "$lt_cv_path_NM" != "no"; then
6103  NM="$lt_cv_path_NM"
6104else
6105  # Didn't find any BSD compatible name lister, look for dumpbin.
6106  if test -n "$DUMPBIN"; then :
6107    # Let the user override the test.
6108  else
6109    if test -n "$ac_tool_prefix"; then
6110  for ac_prog in dumpbin "link -dump"
6111  do
6112    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115$as_echo_n "checking for $ac_word... " >&6; }
6116if ${ac_cv_prog_DUMPBIN+:} false; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  if test -n "$DUMPBIN"; then
6120  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6121else
6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH
6124do
6125  IFS=$as_save_IFS
6126  test -z "$as_dir" && as_dir=.
6127    for ac_exec_ext in '' $ac_executable_extensions; do
6128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131    break 2
6132  fi
6133done
6134  done
6135IFS=$as_save_IFS
6136
6137fi
6138fi
6139DUMPBIN=$ac_cv_prog_DUMPBIN
6140if test -n "$DUMPBIN"; then
6141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6142$as_echo "$DUMPBIN" >&6; }
6143else
6144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145$as_echo "no" >&6; }
6146fi
6147
6148
6149    test -n "$DUMPBIN" && break
6150  done
6151fi
6152if test -z "$DUMPBIN"; then
6153  ac_ct_DUMPBIN=$DUMPBIN
6154  for ac_prog in dumpbin "link -dump"
6155do
6156  # Extract the first word of "$ac_prog", so it can be a program name with args.
6157set dummy $ac_prog; ac_word=$2
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159$as_echo_n "checking for $ac_word... " >&6; }
6160if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6161  $as_echo_n "(cached) " >&6
6162else
6163  if test -n "$ac_ct_DUMPBIN"; then
6164  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6165else
6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169  IFS=$as_save_IFS
6170  test -z "$as_dir" && as_dir=.
6171    for ac_exec_ext in '' $ac_executable_extensions; do
6172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175    break 2
6176  fi
6177done
6178  done
6179IFS=$as_save_IFS
6180
6181fi
6182fi
6183ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6184if test -n "$ac_ct_DUMPBIN"; then
6185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6186$as_echo "$ac_ct_DUMPBIN" >&6; }
6187else
6188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189$as_echo "no" >&6; }
6190fi
6191
6192
6193  test -n "$ac_ct_DUMPBIN" && break
6194done
6195
6196  if test "x$ac_ct_DUMPBIN" = x; then
6197    DUMPBIN=":"
6198  else
6199    case $cross_compiling:$ac_tool_warned in
6200yes:)
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6203ac_tool_warned=yes ;;
6204esac
6205    DUMPBIN=$ac_ct_DUMPBIN
6206  fi
6207fi
6208
6209    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6210    *COFF*)
6211      DUMPBIN="$DUMPBIN -symbols"
6212      ;;
6213    *)
6214      DUMPBIN=:
6215      ;;
6216    esac
6217  fi
6218
6219  if test "$DUMPBIN" != ":"; then
6220    NM="$DUMPBIN"
6221  fi
6222fi
6223test -z "$NM" && NM=nm
6224
6225
6226
6227
6228
6229
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6231$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6232if ${lt_cv_nm_interface+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  lt_cv_nm_interface="BSD nm"
6236  echo "int some_variable = 0;" > conftest.$ac_ext
6237  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6238  (eval "$ac_compile" 2>conftest.err)
6239  cat conftest.err >&5
6240  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6241  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6242  cat conftest.err >&5
6243  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6244  cat conftest.out >&5
6245  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6246    lt_cv_nm_interface="MS dumpbin"
6247  fi
6248  rm -f conftest*
6249fi
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6251$as_echo "$lt_cv_nm_interface" >&6; }
6252
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6254$as_echo_n "checking whether ln -s works... " >&6; }
6255LN_S=$as_ln_s
6256if test "$LN_S" = "ln -s"; then
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6258$as_echo "yes" >&6; }
6259else
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6261$as_echo "no, using $LN_S" >&6; }
6262fi
6263
6264# find the maximum length of command line arguments
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6266$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6267if ${lt_cv_sys_max_cmd_len+:} false; then :
6268  $as_echo_n "(cached) " >&6
6269else
6270    i=0
6271  teststring="ABCD"
6272
6273  case $build_os in
6274  msdosdjgpp*)
6275    # On DJGPP, this test can blow up pretty badly due to problems in libc
6276    # (any single argument exceeding 2000 bytes causes a buffer overrun
6277    # during glob expansion).  Even if it were fixed, the result of this
6278    # check would be larger than it should be.
6279    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6280    ;;
6281
6282  gnu*)
6283    # Under GNU Hurd, this test is not required because there is
6284    # no limit to the length of command line arguments.
6285    # Libtool will interpret -1 as no limit whatsoever
6286    lt_cv_sys_max_cmd_len=-1;
6287    ;;
6288
6289  cygwin* | mingw* | cegcc*)
6290    # On Win9x/ME, this test blows up -- it succeeds, but takes
6291    # about 5 minutes as the teststring grows exponentially.
6292    # Worse, since 9x/ME are not pre-emptively multitasking,
6293    # you end up with a "frozen" computer, even though with patience
6294    # the test eventually succeeds (with a max line length of 256k).
6295    # Instead, let's just punt: use the minimum linelength reported by
6296    # all of the supported platforms: 8192 (on NT/2K/XP).
6297    lt_cv_sys_max_cmd_len=8192;
6298    ;;
6299
6300  mint*)
6301    # On MiNT this can take a long time and run out of memory.
6302    lt_cv_sys_max_cmd_len=8192;
6303    ;;
6304
6305  amigaos*)
6306    # On AmigaOS with pdksh, this test takes hours, literally.
6307    # So we just punt and use a minimum line length of 8192.
6308    lt_cv_sys_max_cmd_len=8192;
6309    ;;
6310
6311  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6312    # This has been around since 386BSD, at least.  Likely further.
6313    if test -x /sbin/sysctl; then
6314      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6315    elif test -x /usr/sbin/sysctl; then
6316      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6317    else
6318      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6319    fi
6320    # And add a safety zone
6321    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6322    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6323    ;;
6324
6325  interix*)
6326    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6327    lt_cv_sys_max_cmd_len=196608
6328    ;;
6329
6330  osf*)
6331    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6332    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6333    # nice to cause kernel panics so lets avoid the loop below.
6334    # First set a reasonable default.
6335    lt_cv_sys_max_cmd_len=16384
6336    #
6337    if test -x /sbin/sysconfig; then
6338      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6339        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6340      esac
6341    fi
6342    ;;
6343  sco3.2v5*)
6344    lt_cv_sys_max_cmd_len=102400
6345    ;;
6346  sysv5* | sco5v6* | sysv4.2uw2*)
6347    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6348    if test -n "$kargmax"; then
6349      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6350    else
6351      lt_cv_sys_max_cmd_len=32768
6352    fi
6353    ;;
6354  *)
6355    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6356    if test -n "$lt_cv_sys_max_cmd_len"; then
6357      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6358      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6359    else
6360      # Make teststring a little bigger before we do anything with it.
6361      # a 1K string should be a reasonable start.
6362      for i in 1 2 3 4 5 6 7 8 ; do
6363        teststring=$teststring$teststring
6364      done
6365      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6366      # If test is not a shell built-in, we'll probably end up computing a
6367      # maximum length that is only half of the actual maximum length, but
6368      # we can't tell.
6369      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6370	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6371	      test $i != 17 # 1/2 MB should be enough
6372      do
6373        i=`expr $i + 1`
6374        teststring=$teststring$teststring
6375      done
6376      # Only check the string length outside the loop.
6377      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6378      teststring=
6379      # Add a significant safety factor because C++ compilers can tack on
6380      # massive amounts of additional arguments before passing them to the
6381      # linker.  It appears as though 1/2 is a usable value.
6382      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6383    fi
6384    ;;
6385  esac
6386
6387fi
6388
6389if test -n $lt_cv_sys_max_cmd_len ; then
6390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6391$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6392else
6393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6394$as_echo "none" >&6; }
6395fi
6396max_cmd_len=$lt_cv_sys_max_cmd_len
6397
6398
6399
6400
6401
6402
6403: ${CP="cp -f"}
6404: ${MV="mv -f"}
6405: ${RM="rm -f"}
6406
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6408$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6409# Try some XSI features
6410xsi_shell=no
6411( _lt_dummy="a/b/c"
6412  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6413      = c,a/b,b/c, \
6414    && eval 'test $(( 1 + 1 )) -eq 2 \
6415    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6416  && xsi_shell=yes
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6418$as_echo "$xsi_shell" >&6; }
6419
6420
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6422$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6423lt_shell_append=no
6424( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6425    >/dev/null 2>&1 \
6426  && lt_shell_append=yes
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6428$as_echo "$lt_shell_append" >&6; }
6429
6430
6431if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6432  lt_unset=unset
6433else
6434  lt_unset=false
6435fi
6436
6437
6438
6439
6440
6441# test EBCDIC or ASCII
6442case `echo X|tr X '\101'` in
6443 A) # ASCII based system
6444    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6445  lt_SP2NL='tr \040 \012'
6446  lt_NL2SP='tr \015\012 \040\040'
6447  ;;
6448 *) # EBCDIC based system
6449  lt_SP2NL='tr \100 \n'
6450  lt_NL2SP='tr \r\n \100\100'
6451  ;;
6452esac
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6463$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6464if ${lt_cv_to_host_file_cmd+:} false; then :
6465  $as_echo_n "(cached) " >&6
6466else
6467  case $host in
6468  *-*-mingw* )
6469    case $build in
6470      *-*-mingw* ) # actually msys
6471        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6472        ;;
6473      *-*-cygwin* )
6474        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6475        ;;
6476      * ) # otherwise, assume *nix
6477        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6478        ;;
6479    esac
6480    ;;
6481  *-*-cygwin* )
6482    case $build in
6483      *-*-mingw* ) # actually msys
6484        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6485        ;;
6486      *-*-cygwin* )
6487        lt_cv_to_host_file_cmd=func_convert_file_noop
6488        ;;
6489      * ) # otherwise, assume *nix
6490        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6491        ;;
6492    esac
6493    ;;
6494  * ) # unhandled hosts (and "normal" native builds)
6495    lt_cv_to_host_file_cmd=func_convert_file_noop
6496    ;;
6497esac
6498
6499fi
6500
6501to_host_file_cmd=$lt_cv_to_host_file_cmd
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6503$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6504
6505
6506
6507
6508
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6510$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6511if ${lt_cv_to_tool_file_cmd+:} false; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  #assume ordinary cross tools, or native build.
6515lt_cv_to_tool_file_cmd=func_convert_file_noop
6516case $host in
6517  *-*-mingw* )
6518    case $build in
6519      *-*-mingw* ) # actually msys
6520        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6521        ;;
6522    esac
6523    ;;
6524esac
6525
6526fi
6527
6528to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6530$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6531
6532
6533
6534
6535
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6537$as_echo_n "checking for $LD option to reload object files... " >&6; }
6538if ${lt_cv_ld_reload_flag+:} false; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  lt_cv_ld_reload_flag='-r'
6542fi
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6544$as_echo "$lt_cv_ld_reload_flag" >&6; }
6545reload_flag=$lt_cv_ld_reload_flag
6546case $reload_flag in
6547"" | " "*) ;;
6548*) reload_flag=" $reload_flag" ;;
6549esac
6550reload_cmds='$LD$reload_flag -o $output$reload_objs'
6551case $host_os in
6552  cygwin* | mingw* | pw32* | cegcc*)
6553    if test "$GCC" != yes; then
6554      reload_cmds=false
6555    fi
6556    ;;
6557  darwin*)
6558    if test "$GCC" = yes; then
6559      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6560    else
6561      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6562    fi
6563    ;;
6564esac
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574if test -n "$ac_tool_prefix"; then
6575  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6576set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+:} false; then :
6580  $as_echo_n "(cached) " >&6
6581else
6582  if test -n "$OBJDUMP"; then
6583  ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump"
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
6602OBJDUMP=$ac_cv_prog_OBJDUMP
6603if test -n "$OBJDUMP"; then
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6605$as_echo "$OBJDUMP" >&6; }
6606else
6607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608$as_echo "no" >&6; }
6609fi
6610
6611
6612fi
6613if test -z "$ac_cv_prog_OBJDUMP"; then
6614  ac_ct_OBJDUMP=$OBJDUMP
6615  # Extract the first word of "objdump", so it can be a program name with args.
6616set dummy objdump; ac_word=$2
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618$as_echo_n "checking for $ac_word... " >&6; }
6619if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6620  $as_echo_n "(cached) " >&6
6621else
6622  if test -n "$ac_ct_OBJDUMP"; then
6623  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6624else
6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628  IFS=$as_save_IFS
6629  test -z "$as_dir" && as_dir=.
6630    for ac_exec_ext in '' $ac_executable_extensions; do
6631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634    break 2
6635  fi
6636done
6637  done
6638IFS=$as_save_IFS
6639
6640fi
6641fi
6642ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6643if test -n "$ac_ct_OBJDUMP"; then
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6645$as_echo "$ac_ct_OBJDUMP" >&6; }
6646else
6647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648$as_echo "no" >&6; }
6649fi
6650
6651  if test "x$ac_ct_OBJDUMP" = x; then
6652    OBJDUMP="false"
6653  else
6654    case $cross_compiling:$ac_tool_warned in
6655yes:)
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6658ac_tool_warned=yes ;;
6659esac
6660    OBJDUMP=$ac_ct_OBJDUMP
6661  fi
6662else
6663  OBJDUMP="$ac_cv_prog_OBJDUMP"
6664fi
6665
6666test -z "$OBJDUMP" && OBJDUMP=objdump
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6677$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6678if ${lt_cv_deplibs_check_method+:} false; then :
6679  $as_echo_n "(cached) " >&6
6680else
6681  lt_cv_file_magic_cmd='$MAGIC_CMD'
6682lt_cv_file_magic_test_file=
6683lt_cv_deplibs_check_method='unknown'
6684# Need to set the preceding variable on all platforms that support
6685# interlibrary dependencies.
6686# 'none' -- dependencies not supported.
6687# `unknown' -- same as none, but documents that we really don't know.
6688# 'pass_all' -- all dependencies passed with no checks.
6689# 'test_compile' -- check by making test program.
6690# 'file_magic [[regex]]' -- check by looking for files in library path
6691# which responds to the $file_magic_cmd with a given extended regex.
6692# If you have `file' or equivalent on your system and you're not sure
6693# whether `pass_all' will *always* work, you probably want this one.
6694
6695case $host_os in
6696aix[4-9]*)
6697  lt_cv_deplibs_check_method=pass_all
6698  ;;
6699
6700beos*)
6701  lt_cv_deplibs_check_method=pass_all
6702  ;;
6703
6704bsdi[45]*)
6705  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6706  lt_cv_file_magic_cmd='/usr/bin/file -L'
6707  lt_cv_file_magic_test_file=/shlib/libc.so
6708  ;;
6709
6710cygwin*)
6711  # func_win32_libid is a shell function defined in ltmain.sh
6712  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6713  lt_cv_file_magic_cmd='func_win32_libid'
6714  ;;
6715
6716mingw* | pw32*)
6717  # Base MSYS/MinGW do not provide the 'file' command needed by
6718  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6719  # unless we find 'file', for example because we are cross-compiling.
6720  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6721  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6722    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6723    lt_cv_file_magic_cmd='func_win32_libid'
6724  else
6725    # Keep this pattern in sync with the one in func_win32_libid.
6726    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6727    lt_cv_file_magic_cmd='$OBJDUMP -f'
6728  fi
6729  ;;
6730
6731cegcc*)
6732  # use the weaker test based on 'objdump'. See mingw*.
6733  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6734  lt_cv_file_magic_cmd='$OBJDUMP -f'
6735  ;;
6736
6737darwin* | rhapsody*)
6738  lt_cv_deplibs_check_method=pass_all
6739  ;;
6740
6741freebsd* | dragonfly*)
6742  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6743    case $host_cpu in
6744    i*86 )
6745      # Not sure whether the presence of OpenBSD here was a mistake.
6746      # Let's accept both of them until this is cleared up.
6747      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6748      lt_cv_file_magic_cmd=/usr/bin/file
6749      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6750      ;;
6751    esac
6752  else
6753    lt_cv_deplibs_check_method=pass_all
6754  fi
6755  ;;
6756
6757gnu*)
6758  lt_cv_deplibs_check_method=pass_all
6759  ;;
6760
6761haiku*)
6762  lt_cv_deplibs_check_method=pass_all
6763  ;;
6764
6765hpux10.20* | hpux11*)
6766  lt_cv_file_magic_cmd=/usr/bin/file
6767  case $host_cpu in
6768  ia64*)
6769    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6770    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6771    ;;
6772  hppa*64*)
6773    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]'
6774    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6775    ;;
6776  *)
6777    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6778    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6779    ;;
6780  esac
6781  ;;
6782
6783interix[3-9]*)
6784  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6785  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6786  ;;
6787
6788irix5* | irix6* | nonstopux*)
6789  case $LD in
6790  *-32|*"-32 ") libmagic=32-bit;;
6791  *-n32|*"-n32 ") libmagic=N32;;
6792  *-64|*"-64 ") libmagic=64-bit;;
6793  *) libmagic=never-match;;
6794  esac
6795  lt_cv_deplibs_check_method=pass_all
6796  ;;
6797
6798# This must be Linux ELF.
6799linux* | k*bsd*-gnu | kopensolaris*-gnu)
6800  lt_cv_deplibs_check_method=pass_all
6801  ;;
6802
6803netbsd*)
6804  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6805    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6806  else
6807    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6808  fi
6809  ;;
6810
6811newos6*)
6812  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6813  lt_cv_file_magic_cmd=/usr/bin/file
6814  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6815  ;;
6816
6817*nto* | *qnx*)
6818  lt_cv_deplibs_check_method=pass_all
6819  ;;
6820
6821openbsd*)
6822  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6823    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6824  else
6825    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6826  fi
6827  ;;
6828
6829osf3* | osf4* | osf5*)
6830  lt_cv_deplibs_check_method=pass_all
6831  ;;
6832
6833rdos*)
6834  lt_cv_deplibs_check_method=pass_all
6835  ;;
6836
6837solaris*)
6838  lt_cv_deplibs_check_method=pass_all
6839  ;;
6840
6841sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6842  lt_cv_deplibs_check_method=pass_all
6843  ;;
6844
6845sysv4 | sysv4.3*)
6846  case $host_vendor in
6847  motorola)
6848    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]'
6849    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6850    ;;
6851  ncr)
6852    lt_cv_deplibs_check_method=pass_all
6853    ;;
6854  sequent)
6855    lt_cv_file_magic_cmd='/bin/file'
6856    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6857    ;;
6858  sni)
6859    lt_cv_file_magic_cmd='/bin/file'
6860    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6861    lt_cv_file_magic_test_file=/lib/libc.so
6862    ;;
6863  siemens)
6864    lt_cv_deplibs_check_method=pass_all
6865    ;;
6866  pc)
6867    lt_cv_deplibs_check_method=pass_all
6868    ;;
6869  esac
6870  ;;
6871
6872tpf*)
6873  lt_cv_deplibs_check_method=pass_all
6874  ;;
6875esac
6876
6877fi
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6879$as_echo "$lt_cv_deplibs_check_method" >&6; }
6880
6881file_magic_glob=
6882want_nocaseglob=no
6883if test "$build" = "$host"; then
6884  case $host_os in
6885  mingw* | pw32*)
6886    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6887      want_nocaseglob=yes
6888    else
6889      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6890    fi
6891    ;;
6892  esac
6893fi
6894
6895file_magic_cmd=$lt_cv_file_magic_cmd
6896deplibs_check_method=$lt_cv_deplibs_check_method
6897test -z "$deplibs_check_method" && deplibs_check_method=unknown
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920if test -n "$ac_tool_prefix"; then
6921  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6922set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924$as_echo_n "checking for $ac_word... " >&6; }
6925if ${ac_cv_prog_DLLTOOL+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  if test -n "$DLLTOOL"; then
6929  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934  IFS=$as_save_IFS
6935  test -z "$as_dir" && as_dir=.
6936    for ac_exec_ext in '' $ac_executable_extensions; do
6937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940    break 2
6941  fi
6942done
6943  done
6944IFS=$as_save_IFS
6945
6946fi
6947fi
6948DLLTOOL=$ac_cv_prog_DLLTOOL
6949if test -n "$DLLTOOL"; then
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6951$as_echo "$DLLTOOL" >&6; }
6952else
6953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954$as_echo "no" >&6; }
6955fi
6956
6957
6958fi
6959if test -z "$ac_cv_prog_DLLTOOL"; then
6960  ac_ct_DLLTOOL=$DLLTOOL
6961  # Extract the first word of "dlltool", so it can be a program name with args.
6962set dummy dlltool; ac_word=$2
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964$as_echo_n "checking for $ac_word... " >&6; }
6965if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6966  $as_echo_n "(cached) " >&6
6967else
6968  if test -n "$ac_ct_DLLTOOL"; then
6969  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974  IFS=$as_save_IFS
6975  test -z "$as_dir" && as_dir=.
6976    for ac_exec_ext in '' $ac_executable_extensions; do
6977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980    break 2
6981  fi
6982done
6983  done
6984IFS=$as_save_IFS
6985
6986fi
6987fi
6988ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6989if test -n "$ac_ct_DLLTOOL"; then
6990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6991$as_echo "$ac_ct_DLLTOOL" >&6; }
6992else
6993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994$as_echo "no" >&6; }
6995fi
6996
6997  if test "x$ac_ct_DLLTOOL" = x; then
6998    DLLTOOL="false"
6999  else
7000    case $cross_compiling:$ac_tool_warned in
7001yes:)
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7004ac_tool_warned=yes ;;
7005esac
7006    DLLTOOL=$ac_ct_DLLTOOL
7007  fi
7008else
7009  DLLTOOL="$ac_cv_prog_DLLTOOL"
7010fi
7011
7012test -z "$DLLTOOL" && DLLTOOL=dlltool
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7024$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7025if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  lt_cv_sharedlib_from_linklib_cmd='unknown'
7029
7030case $host_os in
7031cygwin* | mingw* | pw32* | cegcc*)
7032  # two different shell functions defined in ltmain.sh
7033  # decide which to use based on capabilities of $DLLTOOL
7034  case `$DLLTOOL --help 2>&1` in
7035  *--identify-strict*)
7036    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7037    ;;
7038  *)
7039    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7040    ;;
7041  esac
7042  ;;
7043*)
7044  # fallback: assume linklib IS sharedlib
7045  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7046  ;;
7047esac
7048
7049fi
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7051$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7052sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7053test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7054
7055
7056
7057
7058
7059
7060
7061if test -n "$ac_tool_prefix"; then
7062  for ac_prog in ar
7063  do
7064    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7065set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
7068if ${ac_cv_prog_AR+:} false; then :
7069  $as_echo_n "(cached) " >&6
7070else
7071  if test -n "$AR"; then
7072  ac_cv_prog_AR="$AR" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077  IFS=$as_save_IFS
7078  test -z "$as_dir" && as_dir=.
7079    for ac_exec_ext in '' $ac_executable_extensions; do
7080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083    break 2
7084  fi
7085done
7086  done
7087IFS=$as_save_IFS
7088
7089fi
7090fi
7091AR=$ac_cv_prog_AR
7092if test -n "$AR"; then
7093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7094$as_echo "$AR" >&6; }
7095else
7096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097$as_echo "no" >&6; }
7098fi
7099
7100
7101    test -n "$AR" && break
7102  done
7103fi
7104if test -z "$AR"; then
7105  ac_ct_AR=$AR
7106  for ac_prog in ar
7107do
7108  # Extract the first word of "$ac_prog", so it can be a program name with args.
7109set dummy $ac_prog; ac_word=$2
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111$as_echo_n "checking for $ac_word... " >&6; }
7112if ${ac_cv_prog_ac_ct_AR+:} false; then :
7113  $as_echo_n "(cached) " >&6
7114else
7115  if test -n "$ac_ct_AR"; then
7116  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121  IFS=$as_save_IFS
7122  test -z "$as_dir" && as_dir=.
7123    for ac_exec_ext in '' $ac_executable_extensions; do
7124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125    ac_cv_prog_ac_ct_AR="$ac_prog"
7126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127    break 2
7128  fi
7129done
7130  done
7131IFS=$as_save_IFS
7132
7133fi
7134fi
7135ac_ct_AR=$ac_cv_prog_ac_ct_AR
7136if test -n "$ac_ct_AR"; then
7137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7138$as_echo "$ac_ct_AR" >&6; }
7139else
7140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141$as_echo "no" >&6; }
7142fi
7143
7144
7145  test -n "$ac_ct_AR" && break
7146done
7147
7148  if test "x$ac_ct_AR" = x; then
7149    AR="false"
7150  else
7151    case $cross_compiling:$ac_tool_warned in
7152yes:)
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155ac_tool_warned=yes ;;
7156esac
7157    AR=$ac_ct_AR
7158  fi
7159fi
7160
7161: ${AR=ar}
7162: ${AR_FLAGS=cru}
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7175$as_echo_n "checking for archiver @FILE support... " >&6; }
7176if ${lt_cv_ar_at_file+:} false; then :
7177  $as_echo_n "(cached) " >&6
7178else
7179  lt_cv_ar_at_file=no
7180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h.  */
7182
7183int
7184main ()
7185{
7186
7187  ;
7188  return 0;
7189}
7190_ACEOF
7191if ac_fn_c_try_compile "$LINENO"; then :
7192  echo conftest.$ac_objext > conftest.lst
7193      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7194      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7195  (eval $lt_ar_try) 2>&5
7196  ac_status=$?
7197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7198  test $ac_status = 0; }
7199      if test "$ac_status" -eq 0; then
7200	# Ensure the archiver fails upon bogus file names.
7201	rm -f conftest.$ac_objext libconftest.a
7202	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7203  (eval $lt_ar_try) 2>&5
7204  ac_status=$?
7205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7206  test $ac_status = 0; }
7207	if test "$ac_status" -ne 0; then
7208          lt_cv_ar_at_file=@
7209        fi
7210      fi
7211      rm -f conftest.* libconftest.a
7212
7213fi
7214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215
7216fi
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7218$as_echo "$lt_cv_ar_at_file" >&6; }
7219
7220if test "x$lt_cv_ar_at_file" = xno; then
7221  archiver_list_spec=
7222else
7223  archiver_list_spec=$lt_cv_ar_at_file
7224fi
7225
7226
7227
7228
7229
7230
7231
7232if test -n "$ac_tool_prefix"; then
7233  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7234set dummy ${ac_tool_prefix}strip; ac_word=$2
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236$as_echo_n "checking for $ac_word... " >&6; }
7237if ${ac_cv_prog_STRIP+:} false; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  if test -n "$STRIP"; then
7241  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246  IFS=$as_save_IFS
7247  test -z "$as_dir" && as_dir=.
7248    for ac_exec_ext in '' $ac_executable_extensions; do
7249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252    break 2
7253  fi
7254done
7255  done
7256IFS=$as_save_IFS
7257
7258fi
7259fi
7260STRIP=$ac_cv_prog_STRIP
7261if test -n "$STRIP"; then
7262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7263$as_echo "$STRIP" >&6; }
7264else
7265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266$as_echo "no" >&6; }
7267fi
7268
7269
7270fi
7271if test -z "$ac_cv_prog_STRIP"; then
7272  ac_ct_STRIP=$STRIP
7273  # Extract the first word of "strip", so it can be a program name with args.
7274set dummy strip; ac_word=$2
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276$as_echo_n "checking for $ac_word... " >&6; }
7277if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  if test -n "$ac_ct_STRIP"; then
7281  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7282else
7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286  IFS=$as_save_IFS
7287  test -z "$as_dir" && as_dir=.
7288    for ac_exec_ext in '' $ac_executable_extensions; do
7289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290    ac_cv_prog_ac_ct_STRIP="strip"
7291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292    break 2
7293  fi
7294done
7295  done
7296IFS=$as_save_IFS
7297
7298fi
7299fi
7300ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7301if test -n "$ac_ct_STRIP"; then
7302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7303$as_echo "$ac_ct_STRIP" >&6; }
7304else
7305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306$as_echo "no" >&6; }
7307fi
7308
7309  if test "x$ac_ct_STRIP" = x; then
7310    STRIP=":"
7311  else
7312    case $cross_compiling:$ac_tool_warned in
7313yes:)
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316ac_tool_warned=yes ;;
7317esac
7318    STRIP=$ac_ct_STRIP
7319  fi
7320else
7321  STRIP="$ac_cv_prog_STRIP"
7322fi
7323
7324test -z "$STRIP" && STRIP=:
7325
7326
7327
7328
7329
7330
7331if test -n "$ac_tool_prefix"; then
7332  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7333set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if ${ac_cv_prog_RANLIB+:} false; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  if test -n "$RANLIB"; then
7340  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345  IFS=$as_save_IFS
7346  test -z "$as_dir" && as_dir=.
7347    for ac_exec_ext in '' $ac_executable_extensions; do
7348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351    break 2
7352  fi
7353done
7354  done
7355IFS=$as_save_IFS
7356
7357fi
7358fi
7359RANLIB=$ac_cv_prog_RANLIB
7360if test -n "$RANLIB"; then
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7362$as_echo "$RANLIB" >&6; }
7363else
7364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365$as_echo "no" >&6; }
7366fi
7367
7368
7369fi
7370if test -z "$ac_cv_prog_RANLIB"; then
7371  ac_ct_RANLIB=$RANLIB
7372  # Extract the first word of "ranlib", so it can be a program name with args.
7373set dummy ranlib; ac_word=$2
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375$as_echo_n "checking for $ac_word... " >&6; }
7376if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7377  $as_echo_n "(cached) " >&6
7378else
7379  if test -n "$ac_ct_RANLIB"; then
7380  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7381else
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385  IFS=$as_save_IFS
7386  test -z "$as_dir" && as_dir=.
7387    for ac_exec_ext in '' $ac_executable_extensions; do
7388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389    ac_cv_prog_ac_ct_RANLIB="ranlib"
7390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391    break 2
7392  fi
7393done
7394  done
7395IFS=$as_save_IFS
7396
7397fi
7398fi
7399ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7400if test -n "$ac_ct_RANLIB"; then
7401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7402$as_echo "$ac_ct_RANLIB" >&6; }
7403else
7404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405$as_echo "no" >&6; }
7406fi
7407
7408  if test "x$ac_ct_RANLIB" = x; then
7409    RANLIB=":"
7410  else
7411    case $cross_compiling:$ac_tool_warned in
7412yes:)
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415ac_tool_warned=yes ;;
7416esac
7417    RANLIB=$ac_ct_RANLIB
7418  fi
7419else
7420  RANLIB="$ac_cv_prog_RANLIB"
7421fi
7422
7423test -z "$RANLIB" && RANLIB=:
7424
7425
7426
7427
7428
7429
7430# Determine commands to create old-style static archives.
7431old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7432old_postinstall_cmds='chmod 644 $oldlib'
7433old_postuninstall_cmds=
7434
7435if test -n "$RANLIB"; then
7436  case $host_os in
7437  openbsd*)
7438    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7439    ;;
7440  *)
7441    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7442    ;;
7443  esac
7444  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7445fi
7446
7447case $host_os in
7448  darwin*)
7449    lock_old_archive_extraction=yes ;;
7450  *)
7451    lock_old_archive_extraction=no ;;
7452esac
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492# If no C compiler was specified, use CC.
7493LTCC=${LTCC-"$CC"}
7494
7495# If no C compiler flags were specified, use CFLAGS.
7496LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7497
7498# Allow CC to be a program name with arguments.
7499compiler=$CC
7500
7501
7502# Check for command to grab the raw symbol name followed by C symbol from nm.
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7504$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7505if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7506  $as_echo_n "(cached) " >&6
7507else
7508
7509# These are sane defaults that work on at least a few old systems.
7510# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7511
7512# Character class describing NM global symbol codes.
7513symcode='[BCDEGRST]'
7514
7515# Regexp to match symbols that can be accessed directly from C.
7516sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7517
7518# Define system-specific variables.
7519case $host_os in
7520aix*)
7521  symcode='[BCDT]'
7522  ;;
7523cygwin* | mingw* | pw32* | cegcc*)
7524  symcode='[ABCDGISTW]'
7525  ;;
7526hpux*)
7527  if test "$host_cpu" = ia64; then
7528    symcode='[ABCDEGRST]'
7529  fi
7530  ;;
7531irix* | nonstopux*)
7532  symcode='[BCDEGRST]'
7533  ;;
7534osf*)
7535  symcode='[BCDEGQRST]'
7536  ;;
7537solaris*)
7538  symcode='[BDRT]'
7539  ;;
7540sco3.2v5*)
7541  symcode='[DT]'
7542  ;;
7543sysv4.2uw2*)
7544  symcode='[DT]'
7545  ;;
7546sysv5* | sco5v6* | unixware* | OpenUNIX*)
7547  symcode='[ABDT]'
7548  ;;
7549sysv4)
7550  symcode='[DFNSTU]'
7551  ;;
7552esac
7553
7554# If we're using GNU nm, then use its standard symbol codes.
7555case `$NM -V 2>&1` in
7556*GNU* | *'with BFD'*)
7557  symcode='[ABCDGIRSTW]' ;;
7558esac
7559
7560# Transform an extracted symbol line into a proper C declaration.
7561# Some systems (esp. on ia64) link data and code symbols differently,
7562# so use this general approach.
7563lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7564
7565# Transform an extracted symbol line into symbol name and symbol address
7566lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7567lt_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'"
7568
7569# Handle CRLF in mingw tool chain
7570opt_cr=
7571case $build_os in
7572mingw*)
7573  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7574  ;;
7575esac
7576
7577# Try without a prefix underscore, then with it.
7578for ac_symprfx in "" "_"; do
7579
7580  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7581  symxfrm="\\1 $ac_symprfx\\2 \\2"
7582
7583  # Write the raw and C identifiers.
7584  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7585    # Fake it for dumpbin and say T for any non-static function
7586    # and D for any global variable.
7587    # Also find C++ and __fastcall symbols from MSVC++,
7588    # which start with @ or ?.
7589    lt_cv_sys_global_symbol_pipe="$AWK '"\
7590"     {last_section=section; section=\$ 3};"\
7591"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7592"     \$ 0!~/External *\|/{next};"\
7593"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7594"     {if(hide[section]) next};"\
7595"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7596"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7597"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7598"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7599"     ' prfx=^$ac_symprfx"
7600  else
7601    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7602  fi
7603  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7604
7605  # Check to see that the pipe works correctly.
7606  pipe_works=no
7607
7608  rm -f conftest*
7609  cat > conftest.$ac_ext <<_LT_EOF
7610#ifdef __cplusplus
7611extern "C" {
7612#endif
7613char nm_test_var;
7614void nm_test_func(void);
7615void nm_test_func(void){}
7616#ifdef __cplusplus
7617}
7618#endif
7619int main(){nm_test_var='a';nm_test_func();return(0);}
7620_LT_EOF
7621
7622  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7623  (eval $ac_compile) 2>&5
7624  ac_status=$?
7625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626  test $ac_status = 0; }; then
7627    # Now try to grab the symbols.
7628    nlist=conftest.nm
7629    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7630  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7631  ac_status=$?
7632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633  test $ac_status = 0; } && test -s "$nlist"; then
7634      # Try sorting and uniquifying the output.
7635      if sort "$nlist" | uniq > "$nlist"T; then
7636	mv -f "$nlist"T "$nlist"
7637      else
7638	rm -f "$nlist"T
7639      fi
7640
7641      # Make sure that we snagged all the symbols we need.
7642      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7643	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7644	  cat <<_LT_EOF > conftest.$ac_ext
7645/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7646#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7647/* DATA imports from DLLs on WIN32 con't be const, because runtime
7648   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7649# define LT_DLSYM_CONST
7650#elif defined(__osf__)
7651/* This system does not cope well with relocations in const data.  */
7652# define LT_DLSYM_CONST
7653#else
7654# define LT_DLSYM_CONST const
7655#endif
7656
7657#ifdef __cplusplus
7658extern "C" {
7659#endif
7660
7661_LT_EOF
7662	  # Now generate the symbol file.
7663	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7664
7665	  cat <<_LT_EOF >> conftest.$ac_ext
7666
7667/* The mapping between symbol names and symbols.  */
7668LT_DLSYM_CONST struct {
7669  const char *name;
7670  void       *address;
7671}
7672lt__PROGRAM__LTX_preloaded_symbols[] =
7673{
7674  { "@PROGRAM@", (void *) 0 },
7675_LT_EOF
7676	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7677	  cat <<\_LT_EOF >> conftest.$ac_ext
7678  {0, (void *) 0}
7679};
7680
7681/* This works around a problem in FreeBSD linker */
7682#ifdef FREEBSD_WORKAROUND
7683static const void *lt_preloaded_setup() {
7684  return lt__PROGRAM__LTX_preloaded_symbols;
7685}
7686#endif
7687
7688#ifdef __cplusplus
7689}
7690#endif
7691_LT_EOF
7692	  # Now try linking the two files.
7693	  mv conftest.$ac_objext conftstm.$ac_objext
7694	  lt_globsym_save_LIBS=$LIBS
7695	  lt_globsym_save_CFLAGS=$CFLAGS
7696	  LIBS="conftstm.$ac_objext"
7697	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7698	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7699  (eval $ac_link) 2>&5
7700  ac_status=$?
7701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7702  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7703	    pipe_works=yes
7704	  fi
7705	  LIBS=$lt_globsym_save_LIBS
7706	  CFLAGS=$lt_globsym_save_CFLAGS
7707	else
7708	  echo "cannot find nm_test_func in $nlist" >&5
7709	fi
7710      else
7711	echo "cannot find nm_test_var in $nlist" >&5
7712      fi
7713    else
7714      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7715    fi
7716  else
7717    echo "$progname: failed program was:" >&5
7718    cat conftest.$ac_ext >&5
7719  fi
7720  rm -rf conftest* conftst*
7721
7722  # Do not use the global_symbol_pipe unless it works.
7723  if test "$pipe_works" = yes; then
7724    break
7725  else
7726    lt_cv_sys_global_symbol_pipe=
7727  fi
7728done
7729
7730fi
7731
7732if test -z "$lt_cv_sys_global_symbol_pipe"; then
7733  lt_cv_sys_global_symbol_to_cdecl=
7734fi
7735if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7737$as_echo "failed" >&6; }
7738else
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7740$as_echo "ok" >&6; }
7741fi
7742
7743# Response file support.
7744if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7745  nm_file_list_spec='@'
7746elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7747  nm_file_list_spec='@'
7748fi
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7777$as_echo_n "checking for sysroot... " >&6; }
7778
7779# Check whether --with-sysroot was given.
7780if test "${with_sysroot+set}" = set; then :
7781  withval=$with_sysroot;
7782else
7783  with_sysroot=no
7784fi
7785
7786
7787lt_sysroot=
7788case ${with_sysroot} in #(
7789 yes)
7790   if test "$GCC" = yes; then
7791     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7792   fi
7793   ;; #(
7794 /*)
7795   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7796   ;; #(
7797 no|'')
7798   ;; #(
7799 *)
7800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7801$as_echo "${with_sysroot}" >&6; }
7802   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7803   ;;
7804esac
7805
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7807$as_echo "${lt_sysroot:-no}" >&6; }
7808
7809
7810
7811
7812
7813# Check whether --enable-libtool-lock was given.
7814if test "${enable_libtool_lock+set}" = set; then :
7815  enableval=$enable_libtool_lock;
7816fi
7817
7818test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7819
7820# Some flags need to be propagated to the compiler or linker for good
7821# libtool support.
7822case $host in
7823ia64-*-hpux*)
7824  # Find out which ABI we are using.
7825  echo 'int i;' > conftest.$ac_ext
7826  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7827  (eval $ac_compile) 2>&5
7828  ac_status=$?
7829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830  test $ac_status = 0; }; then
7831    case `/usr/bin/file conftest.$ac_objext` in
7832      *ELF-32*)
7833	HPUX_IA64_MODE="32"
7834	;;
7835      *ELF-64*)
7836	HPUX_IA64_MODE="64"
7837	;;
7838    esac
7839  fi
7840  rm -rf conftest*
7841  ;;
7842*-*-irix6*)
7843  # Find out which ABI we are using.
7844  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7845  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7846  (eval $ac_compile) 2>&5
7847  ac_status=$?
7848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7849  test $ac_status = 0; }; then
7850    if test "$lt_cv_prog_gnu_ld" = yes; then
7851      case `/usr/bin/file conftest.$ac_objext` in
7852	*32-bit*)
7853	  LD="${LD-ld} -melf32bsmip"
7854	  ;;
7855	*N32*)
7856	  LD="${LD-ld} -melf32bmipn32"
7857	  ;;
7858	*64-bit*)
7859	  LD="${LD-ld} -melf64bmip"
7860	;;
7861      esac
7862    else
7863      case `/usr/bin/file conftest.$ac_objext` in
7864	*32-bit*)
7865	  LD="${LD-ld} -32"
7866	  ;;
7867	*N32*)
7868	  LD="${LD-ld} -n32"
7869	  ;;
7870	*64-bit*)
7871	  LD="${LD-ld} -64"
7872	  ;;
7873      esac
7874    fi
7875  fi
7876  rm -rf conftest*
7877  ;;
7878
7879x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7880s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7881  # Find out which ABI we are using.
7882  echo 'int i;' > conftest.$ac_ext
7883  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7884  (eval $ac_compile) 2>&5
7885  ac_status=$?
7886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7887  test $ac_status = 0; }; then
7888    case `/usr/bin/file conftest.o` in
7889      *32-bit*)
7890	case $host in
7891	  x86_64-*kfreebsd*-gnu)
7892	    LD="${LD-ld} -m elf_i386_fbsd"
7893	    ;;
7894	  x86_64-*linux*)
7895	    LD="${LD-ld} -m elf_i386"
7896	    ;;
7897	  ppc64-*linux*|powerpc64-*linux*)
7898	    LD="${LD-ld} -m elf32ppclinux"
7899	    ;;
7900	  s390x-*linux*)
7901	    LD="${LD-ld} -m elf_s390"
7902	    ;;
7903	  sparc64-*linux*)
7904	    LD="${LD-ld} -m elf32_sparc"
7905	    ;;
7906	esac
7907	;;
7908      *64-bit*)
7909	case $host in
7910	  x86_64-*kfreebsd*-gnu)
7911	    LD="${LD-ld} -m elf_x86_64_fbsd"
7912	    ;;
7913	  x86_64-*linux*)
7914	    LD="${LD-ld} -m elf_x86_64"
7915	    ;;
7916	  ppc*-*linux*|powerpc*-*linux*)
7917	    LD="${LD-ld} -m elf64ppc"
7918	    ;;
7919	  s390*-*linux*|s390*-*tpf*)
7920	    LD="${LD-ld} -m elf64_s390"
7921	    ;;
7922	  sparc*-*linux*)
7923	    LD="${LD-ld} -m elf64_sparc"
7924	    ;;
7925	esac
7926	;;
7927    esac
7928  fi
7929  rm -rf conftest*
7930  ;;
7931
7932*-*-sco3.2v5*)
7933  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7934  SAVE_CFLAGS="$CFLAGS"
7935  CFLAGS="$CFLAGS -belf"
7936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7937$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7938if ${lt_cv_cc_needs_belf+:} false; then :
7939  $as_echo_n "(cached) " >&6
7940else
7941  ac_ext=c
7942ac_cpp='$CPP $CPPFLAGS'
7943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945ac_compiler_gnu=$ac_cv_c_compiler_gnu
7946
7947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h.  */
7949
7950int
7951main ()
7952{
7953
7954  ;
7955  return 0;
7956}
7957_ACEOF
7958if ac_fn_c_try_link "$LINENO"; then :
7959  lt_cv_cc_needs_belf=yes
7960else
7961  lt_cv_cc_needs_belf=no
7962fi
7963rm -f core conftest.err conftest.$ac_objext \
7964    conftest$ac_exeext conftest.$ac_ext
7965     ac_ext=c
7966ac_cpp='$CPP $CPPFLAGS'
7967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970
7971fi
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7973$as_echo "$lt_cv_cc_needs_belf" >&6; }
7974  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7975    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7976    CFLAGS="$SAVE_CFLAGS"
7977  fi
7978  ;;
7979sparc*-*solaris*)
7980  # Find out which ABI we are using.
7981  echo 'int i;' > conftest.$ac_ext
7982  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7983  (eval $ac_compile) 2>&5
7984  ac_status=$?
7985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986  test $ac_status = 0; }; then
7987    case `/usr/bin/file conftest.o` in
7988    *64-bit*)
7989      case $lt_cv_prog_gnu_ld in
7990      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7991      *)
7992	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7993	  LD="${LD-ld} -64"
7994	fi
7995	;;
7996      esac
7997      ;;
7998    esac
7999  fi
8000  rm -rf conftest*
8001  ;;
8002esac
8003
8004need_locks="$enable_libtool_lock"
8005
8006if test -n "$ac_tool_prefix"; then
8007  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8008set dummy ${ac_tool_prefix}mt; ac_word=$2
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010$as_echo_n "checking for $ac_word... " >&6; }
8011if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8012  $as_echo_n "(cached) " >&6
8013else
8014  if test -n "$MANIFEST_TOOL"; then
8015  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8016else
8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
8019do
8020  IFS=$as_save_IFS
8021  test -z "$as_dir" && as_dir=.
8022    for ac_exec_ext in '' $ac_executable_extensions; do
8023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8024    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026    break 2
8027  fi
8028done
8029  done
8030IFS=$as_save_IFS
8031
8032fi
8033fi
8034MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8035if test -n "$MANIFEST_TOOL"; then
8036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8037$as_echo "$MANIFEST_TOOL" >&6; }
8038else
8039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040$as_echo "no" >&6; }
8041fi
8042
8043
8044fi
8045if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8046  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8047  # Extract the first word of "mt", so it can be a program name with args.
8048set dummy mt; ac_word=$2
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050$as_echo_n "checking for $ac_word... " >&6; }
8051if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8052  $as_echo_n "(cached) " >&6
8053else
8054  if test -n "$ac_ct_MANIFEST_TOOL"; then
8055  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8056else
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060  IFS=$as_save_IFS
8061  test -z "$as_dir" && as_dir=.
8062    for ac_exec_ext in '' $ac_executable_extensions; do
8063  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8064    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8066    break 2
8067  fi
8068done
8069  done
8070IFS=$as_save_IFS
8071
8072fi
8073fi
8074ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8075if test -n "$ac_ct_MANIFEST_TOOL"; then
8076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8077$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8078else
8079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080$as_echo "no" >&6; }
8081fi
8082
8083  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8084    MANIFEST_TOOL=":"
8085  else
8086    case $cross_compiling:$ac_tool_warned in
8087yes:)
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8090ac_tool_warned=yes ;;
8091esac
8092    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8093  fi
8094else
8095  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8096fi
8097
8098test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8100$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8101if ${lt_cv_path_mainfest_tool+:} false; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  lt_cv_path_mainfest_tool=no
8105  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8106  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8107  cat conftest.err >&5
8108  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8109    lt_cv_path_mainfest_tool=yes
8110  fi
8111  rm -f conftest*
8112fi
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8114$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8115if test "x$lt_cv_path_mainfest_tool" != xyes; then
8116  MANIFEST_TOOL=:
8117fi
8118
8119
8120
8121
8122
8123
8124  case $host_os in
8125    rhapsody* | darwin*)
8126    if test -n "$ac_tool_prefix"; then
8127  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8128set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130$as_echo_n "checking for $ac_word... " >&6; }
8131if ${ac_cv_prog_DSYMUTIL+:} false; then :
8132  $as_echo_n "(cached) " >&6
8133else
8134  if test -n "$DSYMUTIL"; then
8135  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8136else
8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140  IFS=$as_save_IFS
8141  test -z "$as_dir" && as_dir=.
8142    for ac_exec_ext in '' $ac_executable_extensions; do
8143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146    break 2
8147  fi
8148done
8149  done
8150IFS=$as_save_IFS
8151
8152fi
8153fi
8154DSYMUTIL=$ac_cv_prog_DSYMUTIL
8155if test -n "$DSYMUTIL"; then
8156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8157$as_echo "$DSYMUTIL" >&6; }
8158else
8159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
8161fi
8162
8163
8164fi
8165if test -z "$ac_cv_prog_DSYMUTIL"; then
8166  ac_ct_DSYMUTIL=$DSYMUTIL
8167  # Extract the first word of "dsymutil", so it can be a program name with args.
8168set dummy dsymutil; ac_word=$2
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170$as_echo_n "checking for $ac_word... " >&6; }
8171if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8172  $as_echo_n "(cached) " >&6
8173else
8174  if test -n "$ac_ct_DSYMUTIL"; then
8175  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8176else
8177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178for as_dir in $PATH
8179do
8180  IFS=$as_save_IFS
8181  test -z "$as_dir" && as_dir=.
8182    for ac_exec_ext in '' $ac_executable_extensions; do
8183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8184    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186    break 2
8187  fi
8188done
8189  done
8190IFS=$as_save_IFS
8191
8192fi
8193fi
8194ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8195if test -n "$ac_ct_DSYMUTIL"; then
8196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8197$as_echo "$ac_ct_DSYMUTIL" >&6; }
8198else
8199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
8201fi
8202
8203  if test "x$ac_ct_DSYMUTIL" = x; then
8204    DSYMUTIL=":"
8205  else
8206    case $cross_compiling:$ac_tool_warned in
8207yes:)
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8210ac_tool_warned=yes ;;
8211esac
8212    DSYMUTIL=$ac_ct_DSYMUTIL
8213  fi
8214else
8215  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8216fi
8217
8218    if test -n "$ac_tool_prefix"; then
8219  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8220set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222$as_echo_n "checking for $ac_word... " >&6; }
8223if ${ac_cv_prog_NMEDIT+:} false; then :
8224  $as_echo_n "(cached) " >&6
8225else
8226  if test -n "$NMEDIT"; then
8227  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8228else
8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232  IFS=$as_save_IFS
8233  test -z "$as_dir" && as_dir=.
8234    for ac_exec_ext in '' $ac_executable_extensions; do
8235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8236    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238    break 2
8239  fi
8240done
8241  done
8242IFS=$as_save_IFS
8243
8244fi
8245fi
8246NMEDIT=$ac_cv_prog_NMEDIT
8247if test -n "$NMEDIT"; then
8248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8249$as_echo "$NMEDIT" >&6; }
8250else
8251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252$as_echo "no" >&6; }
8253fi
8254
8255
8256fi
8257if test -z "$ac_cv_prog_NMEDIT"; then
8258  ac_ct_NMEDIT=$NMEDIT
8259  # Extract the first word of "nmedit", so it can be a program name with args.
8260set dummy nmedit; ac_word=$2
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262$as_echo_n "checking for $ac_word... " >&6; }
8263if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8264  $as_echo_n "(cached) " >&6
8265else
8266  if test -n "$ac_ct_NMEDIT"; then
8267  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272  IFS=$as_save_IFS
8273  test -z "$as_dir" && as_dir=.
8274    for ac_exec_ext in '' $ac_executable_extensions; do
8275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8276    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278    break 2
8279  fi
8280done
8281  done
8282IFS=$as_save_IFS
8283
8284fi
8285fi
8286ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8287if test -n "$ac_ct_NMEDIT"; then
8288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8289$as_echo "$ac_ct_NMEDIT" >&6; }
8290else
8291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292$as_echo "no" >&6; }
8293fi
8294
8295  if test "x$ac_ct_NMEDIT" = x; then
8296    NMEDIT=":"
8297  else
8298    case $cross_compiling:$ac_tool_warned in
8299yes:)
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8302ac_tool_warned=yes ;;
8303esac
8304    NMEDIT=$ac_ct_NMEDIT
8305  fi
8306else
8307  NMEDIT="$ac_cv_prog_NMEDIT"
8308fi
8309
8310    if test -n "$ac_tool_prefix"; then
8311  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8312set dummy ${ac_tool_prefix}lipo; ac_word=$2
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314$as_echo_n "checking for $ac_word... " >&6; }
8315if ${ac_cv_prog_LIPO+:} false; then :
8316  $as_echo_n "(cached) " >&6
8317else
8318  if test -n "$LIPO"; then
8319  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8320else
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324  IFS=$as_save_IFS
8325  test -z "$as_dir" && as_dir=.
8326    for ac_exec_ext in '' $ac_executable_extensions; do
8327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330    break 2
8331  fi
8332done
8333  done
8334IFS=$as_save_IFS
8335
8336fi
8337fi
8338LIPO=$ac_cv_prog_LIPO
8339if test -n "$LIPO"; then
8340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8341$as_echo "$LIPO" >&6; }
8342else
8343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344$as_echo "no" >&6; }
8345fi
8346
8347
8348fi
8349if test -z "$ac_cv_prog_LIPO"; then
8350  ac_ct_LIPO=$LIPO
8351  # Extract the first word of "lipo", so it can be a program name with args.
8352set dummy lipo; ac_word=$2
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354$as_echo_n "checking for $ac_word... " >&6; }
8355if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8356  $as_echo_n "(cached) " >&6
8357else
8358  if test -n "$ac_ct_LIPO"; then
8359  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8360else
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364  IFS=$as_save_IFS
8365  test -z "$as_dir" && as_dir=.
8366    for ac_exec_ext in '' $ac_executable_extensions; do
8367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368    ac_cv_prog_ac_ct_LIPO="lipo"
8369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370    break 2
8371  fi
8372done
8373  done
8374IFS=$as_save_IFS
8375
8376fi
8377fi
8378ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8379if test -n "$ac_ct_LIPO"; then
8380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8381$as_echo "$ac_ct_LIPO" >&6; }
8382else
8383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384$as_echo "no" >&6; }
8385fi
8386
8387  if test "x$ac_ct_LIPO" = x; then
8388    LIPO=":"
8389  else
8390    case $cross_compiling:$ac_tool_warned in
8391yes:)
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8394ac_tool_warned=yes ;;
8395esac
8396    LIPO=$ac_ct_LIPO
8397  fi
8398else
8399  LIPO="$ac_cv_prog_LIPO"
8400fi
8401
8402    if test -n "$ac_tool_prefix"; then
8403  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8404set dummy ${ac_tool_prefix}otool; ac_word=$2
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406$as_echo_n "checking for $ac_word... " >&6; }
8407if ${ac_cv_prog_OTOOL+:} false; then :
8408  $as_echo_n "(cached) " >&6
8409else
8410  if test -n "$OTOOL"; then
8411  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8412else
8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416  IFS=$as_save_IFS
8417  test -z "$as_dir" && as_dir=.
8418    for ac_exec_ext in '' $ac_executable_extensions; do
8419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8420    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422    break 2
8423  fi
8424done
8425  done
8426IFS=$as_save_IFS
8427
8428fi
8429fi
8430OTOOL=$ac_cv_prog_OTOOL
8431if test -n "$OTOOL"; then
8432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8433$as_echo "$OTOOL" >&6; }
8434else
8435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
8437fi
8438
8439
8440fi
8441if test -z "$ac_cv_prog_OTOOL"; then
8442  ac_ct_OTOOL=$OTOOL
8443  # Extract the first word of "otool", so it can be a program name with args.
8444set dummy otool; ac_word=$2
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446$as_echo_n "checking for $ac_word... " >&6; }
8447if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8448  $as_echo_n "(cached) " >&6
8449else
8450  if test -n "$ac_ct_OTOOL"; then
8451  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8452else
8453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454for as_dir in $PATH
8455do
8456  IFS=$as_save_IFS
8457  test -z "$as_dir" && as_dir=.
8458    for ac_exec_ext in '' $ac_executable_extensions; do
8459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8460    ac_cv_prog_ac_ct_OTOOL="otool"
8461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462    break 2
8463  fi
8464done
8465  done
8466IFS=$as_save_IFS
8467
8468fi
8469fi
8470ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8471if test -n "$ac_ct_OTOOL"; then
8472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8473$as_echo "$ac_ct_OTOOL" >&6; }
8474else
8475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476$as_echo "no" >&6; }
8477fi
8478
8479  if test "x$ac_ct_OTOOL" = x; then
8480    OTOOL=":"
8481  else
8482    case $cross_compiling:$ac_tool_warned in
8483yes:)
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8486ac_tool_warned=yes ;;
8487esac
8488    OTOOL=$ac_ct_OTOOL
8489  fi
8490else
8491  OTOOL="$ac_cv_prog_OTOOL"
8492fi
8493
8494    if test -n "$ac_tool_prefix"; then
8495  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8496set dummy ${ac_tool_prefix}otool64; ac_word=$2
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498$as_echo_n "checking for $ac_word... " >&6; }
8499if ${ac_cv_prog_OTOOL64+:} false; then :
8500  $as_echo_n "(cached) " >&6
8501else
8502  if test -n "$OTOOL64"; then
8503  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8504else
8505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506for as_dir in $PATH
8507do
8508  IFS=$as_save_IFS
8509  test -z "$as_dir" && as_dir=.
8510    for ac_exec_ext in '' $ac_executable_extensions; do
8511  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514    break 2
8515  fi
8516done
8517  done
8518IFS=$as_save_IFS
8519
8520fi
8521fi
8522OTOOL64=$ac_cv_prog_OTOOL64
8523if test -n "$OTOOL64"; then
8524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8525$as_echo "$OTOOL64" >&6; }
8526else
8527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528$as_echo "no" >&6; }
8529fi
8530
8531
8532fi
8533if test -z "$ac_cv_prog_OTOOL64"; then
8534  ac_ct_OTOOL64=$OTOOL64
8535  # Extract the first word of "otool64", so it can be a program name with args.
8536set dummy otool64; ac_word=$2
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538$as_echo_n "checking for $ac_word... " >&6; }
8539if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8540  $as_echo_n "(cached) " >&6
8541else
8542  if test -n "$ac_ct_OTOOL64"; then
8543  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8544else
8545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546for as_dir in $PATH
8547do
8548  IFS=$as_save_IFS
8549  test -z "$as_dir" && as_dir=.
8550    for ac_exec_ext in '' $ac_executable_extensions; do
8551  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552    ac_cv_prog_ac_ct_OTOOL64="otool64"
8553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554    break 2
8555  fi
8556done
8557  done
8558IFS=$as_save_IFS
8559
8560fi
8561fi
8562ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8563if test -n "$ac_ct_OTOOL64"; then
8564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8565$as_echo "$ac_ct_OTOOL64" >&6; }
8566else
8567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568$as_echo "no" >&6; }
8569fi
8570
8571  if test "x$ac_ct_OTOOL64" = x; then
8572    OTOOL64=":"
8573  else
8574    case $cross_compiling:$ac_tool_warned in
8575yes:)
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8578ac_tool_warned=yes ;;
8579esac
8580    OTOOL64=$ac_ct_OTOOL64
8581  fi
8582else
8583  OTOOL64="$ac_cv_prog_OTOOL64"
8584fi
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8613$as_echo_n "checking for -single_module linker flag... " >&6; }
8614if ${lt_cv_apple_cc_single_mod+:} false; then :
8615  $as_echo_n "(cached) " >&6
8616else
8617  lt_cv_apple_cc_single_mod=no
8618      if test -z "${LT_MULTI_MODULE}"; then
8619	# By default we will add the -single_module flag. You can override
8620	# by either setting the environment variable LT_MULTI_MODULE
8621	# non-empty at configure time, or by adding -multi_module to the
8622	# link flags.
8623	rm -rf libconftest.dylib*
8624	echo "int foo(void){return 1;}" > conftest.c
8625	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8626-dynamiclib -Wl,-single_module conftest.c" >&5
8627	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8628	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8629        _lt_result=$?
8630	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8631	  lt_cv_apple_cc_single_mod=yes
8632	else
8633	  cat conftest.err >&5
8634	fi
8635	rm -rf libconftest.dylib*
8636	rm -f conftest.*
8637      fi
8638fi
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8640$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8642$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8643if ${lt_cv_ld_exported_symbols_list+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  lt_cv_ld_exported_symbols_list=no
8647      save_LDFLAGS=$LDFLAGS
8648      echo "_main" > conftest.sym
8649      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8650      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651/* end confdefs.h.  */
8652
8653int
8654main ()
8655{
8656
8657  ;
8658  return 0;
8659}
8660_ACEOF
8661if ac_fn_c_try_link "$LINENO"; then :
8662  lt_cv_ld_exported_symbols_list=yes
8663else
8664  lt_cv_ld_exported_symbols_list=no
8665fi
8666rm -f core conftest.err conftest.$ac_objext \
8667    conftest$ac_exeext conftest.$ac_ext
8668	LDFLAGS="$save_LDFLAGS"
8669
8670fi
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8672$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8673    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8674$as_echo_n "checking for -force_load linker flag... " >&6; }
8675if ${lt_cv_ld_force_load+:} false; then :
8676  $as_echo_n "(cached) " >&6
8677else
8678  lt_cv_ld_force_load=no
8679      cat > conftest.c << _LT_EOF
8680int forced_loaded() { return 2;}
8681_LT_EOF
8682      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8683      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8684      echo "$AR cru libconftest.a conftest.o" >&5
8685      $AR cru libconftest.a conftest.o 2>&5
8686      echo "$RANLIB libconftest.a" >&5
8687      $RANLIB libconftest.a 2>&5
8688      cat > conftest.c << _LT_EOF
8689int main() { return 0;}
8690_LT_EOF
8691      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8692      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8693      _lt_result=$?
8694      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8695	lt_cv_ld_force_load=yes
8696      else
8697	cat conftest.err >&5
8698      fi
8699        rm -f conftest.err libconftest.a conftest conftest.c
8700        rm -rf conftest.dSYM
8701
8702fi
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8704$as_echo "$lt_cv_ld_force_load" >&6; }
8705    case $host_os in
8706    rhapsody* | darwin1.[012])
8707      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8708    darwin1.*)
8709      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8710    darwin*) # darwin 5.x on
8711      # if running on 10.5 or later, the deployment target defaults
8712      # to the OS version, if on x86, and 10.4, the deployment
8713      # target defaults to 10.4. Don't you love it?
8714      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8715	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8716	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8717	10.[012]*)
8718	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8719	10.*)
8720	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8721      esac
8722    ;;
8723  esac
8724    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8725      _lt_dar_single_mod='$single_module'
8726    fi
8727    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8728      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8729    else
8730      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8731    fi
8732    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8733      _lt_dsymutil='~$DSYMUTIL $lib || :'
8734    else
8735      _lt_dsymutil=
8736    fi
8737    ;;
8738  esac
8739
8740for ac_header in dlfcn.h
8741do :
8742  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8743"
8744if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8745  cat >>confdefs.h <<_ACEOF
8746#define HAVE_DLFCN_H 1
8747_ACEOF
8748
8749fi
8750
8751done
8752
8753
8754
8755
8756
8757# Set options
8758
8759
8760
8761        enable_dlopen=no
8762
8763
8764  enable_win32_dll=no
8765
8766
8767            # Check whether --enable-shared was given.
8768if test "${enable_shared+set}" = set; then :
8769  enableval=$enable_shared; p=${PACKAGE-default}
8770    case $enableval in
8771    yes) enable_shared=yes ;;
8772    no) enable_shared=no ;;
8773    *)
8774      enable_shared=no
8775      # Look at the argument we got.  We use all the common list separators.
8776      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8777      for pkg in $enableval; do
8778	IFS="$lt_save_ifs"
8779	if test "X$pkg" = "X$p"; then
8780	  enable_shared=yes
8781	fi
8782      done
8783      IFS="$lt_save_ifs"
8784      ;;
8785    esac
8786else
8787  enable_shared=yes
8788fi
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798  # Check whether --enable-static was given.
8799if test "${enable_static+set}" = set; then :
8800  enableval=$enable_static; p=${PACKAGE-default}
8801    case $enableval in
8802    yes) enable_static=yes ;;
8803    no) enable_static=no ;;
8804    *)
8805     enable_static=no
8806      # Look at the argument we got.  We use all the common list separators.
8807      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8808      for pkg in $enableval; do
8809	IFS="$lt_save_ifs"
8810	if test "X$pkg" = "X$p"; then
8811	  enable_static=yes
8812	fi
8813      done
8814      IFS="$lt_save_ifs"
8815      ;;
8816    esac
8817else
8818  enable_static=yes
8819fi
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830# Check whether --with-pic was given.
8831if test "${with_pic+set}" = set; then :
8832  withval=$with_pic; pic_mode="$withval"
8833else
8834  pic_mode=default
8835fi
8836
8837
8838test -z "$pic_mode" && pic_mode=default
8839
8840
8841
8842
8843
8844
8845
8846  # Check whether --enable-fast-install was given.
8847if test "${enable_fast_install+set}" = set; then :
8848  enableval=$enable_fast_install; p=${PACKAGE-default}
8849    case $enableval in
8850    yes) enable_fast_install=yes ;;
8851    no) enable_fast_install=no ;;
8852    *)
8853      enable_fast_install=no
8854      # Look at the argument we got.  We use all the common list separators.
8855      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8856      for pkg in $enableval; do
8857	IFS="$lt_save_ifs"
8858	if test "X$pkg" = "X$p"; then
8859	  enable_fast_install=yes
8860	fi
8861      done
8862      IFS="$lt_save_ifs"
8863      ;;
8864    esac
8865else
8866  enable_fast_install=yes
8867fi
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879# This can be used to rebuild libtool when needed
8880LIBTOOL_DEPS="$ltmain"
8881
8882# Always use our own libtool.
8883LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910test -z "$LN_S" && LN_S="ln -s"
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925if test -n "${ZSH_VERSION+set}" ; then
8926   setopt NO_GLOB_SUBST
8927fi
8928
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8930$as_echo_n "checking for objdir... " >&6; }
8931if ${lt_cv_objdir+:} false; then :
8932  $as_echo_n "(cached) " >&6
8933else
8934  rm -f .libs 2>/dev/null
8935mkdir .libs 2>/dev/null
8936if test -d .libs; then
8937  lt_cv_objdir=.libs
8938else
8939  # MS-DOS does not allow filenames that begin with a dot.
8940  lt_cv_objdir=_libs
8941fi
8942rmdir .libs 2>/dev/null
8943fi
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8945$as_echo "$lt_cv_objdir" >&6; }
8946objdir=$lt_cv_objdir
8947
8948
8949
8950
8951
8952cat >>confdefs.h <<_ACEOF
8953#define LT_OBJDIR "$lt_cv_objdir/"
8954_ACEOF
8955
8956
8957
8958
8959case $host_os in
8960aix3*)
8961  # AIX sometimes has problems with the GCC collect2 program.  For some
8962  # reason, if we set the COLLECT_NAMES environment variable, the problems
8963  # vanish in a puff of smoke.
8964  if test "X${COLLECT_NAMES+set}" != Xset; then
8965    COLLECT_NAMES=
8966    export COLLECT_NAMES
8967  fi
8968  ;;
8969esac
8970
8971# Global variables:
8972ofile=libtool
8973can_build_shared=yes
8974
8975# All known linkers require a `.a' archive for static linking (except MSVC,
8976# which needs '.lib').
8977libext=a
8978
8979with_gnu_ld="$lt_cv_prog_gnu_ld"
8980
8981old_CC="$CC"
8982old_CFLAGS="$CFLAGS"
8983
8984# Set sane defaults for various variables
8985test -z "$CC" && CC=cc
8986test -z "$LTCC" && LTCC=$CC
8987test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8988test -z "$LD" && LD=ld
8989test -z "$ac_objext" && ac_objext=o
8990
8991for cc_temp in $compiler""; do
8992  case $cc_temp in
8993    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8994    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8995    \-*) ;;
8996    *) break;;
8997  esac
8998done
8999cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9000
9001
9002# Only perform the check for file, if the check method requires it
9003test -z "$MAGIC_CMD" && MAGIC_CMD=file
9004case $deplibs_check_method in
9005file_magic*)
9006  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9008$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9009if ${lt_cv_path_MAGIC_CMD+:} false; then :
9010  $as_echo_n "(cached) " >&6
9011else
9012  case $MAGIC_CMD in
9013[\\/*] |  ?:[\\/]*)
9014  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9015  ;;
9016*)
9017  lt_save_MAGIC_CMD="$MAGIC_CMD"
9018  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9019  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9020  for ac_dir in $ac_dummy; do
9021    IFS="$lt_save_ifs"
9022    test -z "$ac_dir" && ac_dir=.
9023    if test -f $ac_dir/${ac_tool_prefix}file; then
9024      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9025      if test -n "$file_magic_test_file"; then
9026	case $deplibs_check_method in
9027	"file_magic "*)
9028	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9029	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9030	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9031	    $EGREP "$file_magic_regex" > /dev/null; then
9032	    :
9033	  else
9034	    cat <<_LT_EOF 1>&2
9035
9036*** Warning: the command libtool uses to detect shared libraries,
9037*** $file_magic_cmd, produces output that libtool cannot recognize.
9038*** The result is that libtool may fail to recognize shared libraries
9039*** as such.  This will affect the creation of libtool libraries that
9040*** depend on shared libraries, but programs linked with such libtool
9041*** libraries will work regardless of this problem.  Nevertheless, you
9042*** may want to report the problem to your system manager and/or to
9043*** bug-libtool@gnu.org
9044
9045_LT_EOF
9046	  fi ;;
9047	esac
9048      fi
9049      break
9050    fi
9051  done
9052  IFS="$lt_save_ifs"
9053  MAGIC_CMD="$lt_save_MAGIC_CMD"
9054  ;;
9055esac
9056fi
9057
9058MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9059if test -n "$MAGIC_CMD"; then
9060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9061$as_echo "$MAGIC_CMD" >&6; }
9062else
9063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064$as_echo "no" >&6; }
9065fi
9066
9067
9068
9069
9070
9071if test -z "$lt_cv_path_MAGIC_CMD"; then
9072  if test -n "$ac_tool_prefix"; then
9073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9074$as_echo_n "checking for file... " >&6; }
9075if ${lt_cv_path_MAGIC_CMD+:} false; then :
9076  $as_echo_n "(cached) " >&6
9077else
9078  case $MAGIC_CMD in
9079[\\/*] |  ?:[\\/]*)
9080  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9081  ;;
9082*)
9083  lt_save_MAGIC_CMD="$MAGIC_CMD"
9084  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9085  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9086  for ac_dir in $ac_dummy; do
9087    IFS="$lt_save_ifs"
9088    test -z "$ac_dir" && ac_dir=.
9089    if test -f $ac_dir/file; then
9090      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9091      if test -n "$file_magic_test_file"; then
9092	case $deplibs_check_method in
9093	"file_magic "*)
9094	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9095	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9096	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9097	    $EGREP "$file_magic_regex" > /dev/null; then
9098	    :
9099	  else
9100	    cat <<_LT_EOF 1>&2
9101
9102*** Warning: the command libtool uses to detect shared libraries,
9103*** $file_magic_cmd, produces output that libtool cannot recognize.
9104*** The result is that libtool may fail to recognize shared libraries
9105*** as such.  This will affect the creation of libtool libraries that
9106*** depend on shared libraries, but programs linked with such libtool
9107*** libraries will work regardless of this problem.  Nevertheless, you
9108*** may want to report the problem to your system manager and/or to
9109*** bug-libtool@gnu.org
9110
9111_LT_EOF
9112	  fi ;;
9113	esac
9114      fi
9115      break
9116    fi
9117  done
9118  IFS="$lt_save_ifs"
9119  MAGIC_CMD="$lt_save_MAGIC_CMD"
9120  ;;
9121esac
9122fi
9123
9124MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9125if test -n "$MAGIC_CMD"; then
9126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9127$as_echo "$MAGIC_CMD" >&6; }
9128else
9129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130$as_echo "no" >&6; }
9131fi
9132
9133
9134  else
9135    MAGIC_CMD=:
9136  fi
9137fi
9138
9139  fi
9140  ;;
9141esac
9142
9143# Use C for the default configuration in the libtool script
9144
9145lt_save_CC="$CC"
9146ac_ext=c
9147ac_cpp='$CPP $CPPFLAGS'
9148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9150ac_compiler_gnu=$ac_cv_c_compiler_gnu
9151
9152
9153# Source file extension for C test sources.
9154ac_ext=c
9155
9156# Object file extension for compiled C test sources.
9157objext=o
9158objext=$objext
9159
9160# Code to be used in simple compile tests
9161lt_simple_compile_test_code="int some_variable = 0;"
9162
9163# Code to be used in simple link tests
9164lt_simple_link_test_code='int main(){return(0);}'
9165
9166
9167
9168
9169
9170
9171
9172# If no C compiler was specified, use CC.
9173LTCC=${LTCC-"$CC"}
9174
9175# If no C compiler flags were specified, use CFLAGS.
9176LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9177
9178# Allow CC to be a program name with arguments.
9179compiler=$CC
9180
9181# Save the default compiler, since it gets overwritten when the other
9182# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9183compiler_DEFAULT=$CC
9184
9185# save warnings/boilerplate of simple test code
9186ac_outfile=conftest.$ac_objext
9187echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9188eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9189_lt_compiler_boilerplate=`cat conftest.err`
9190$RM conftest*
9191
9192ac_outfile=conftest.$ac_objext
9193echo "$lt_simple_link_test_code" >conftest.$ac_ext
9194eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9195_lt_linker_boilerplate=`cat conftest.err`
9196$RM -r conftest*
9197
9198
9199if test -n "$compiler"; then
9200
9201lt_prog_compiler_no_builtin_flag=
9202
9203if test "$GCC" = yes; then
9204  case $cc_basename in
9205  nvcc*)
9206    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9207  *)
9208    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9209  esac
9210
9211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9212$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9213if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9214  $as_echo_n "(cached) " >&6
9215else
9216  lt_cv_prog_compiler_rtti_exceptions=no
9217   ac_outfile=conftest.$ac_objext
9218   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9219   lt_compiler_flag="-fno-rtti -fno-exceptions"
9220   # Insert the option either (1) after the last *FLAGS variable, or
9221   # (2) before a word containing "conftest.", or (3) at the end.
9222   # Note that $ac_compile itself does not contain backslashes and begins
9223   # with a dollar sign (not a hyphen), so the echo should work correctly.
9224   # The option is referenced via a variable to avoid confusing sed.
9225   lt_compile=`echo "$ac_compile" | $SED \
9226   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9227   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9228   -e 's:$: $lt_compiler_flag:'`
9229   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9230   (eval "$lt_compile" 2>conftest.err)
9231   ac_status=$?
9232   cat conftest.err >&5
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   if (exit $ac_status) && test -s "$ac_outfile"; then
9235     # The compiler can only warn and ignore the option if not recognized
9236     # So say no if there are warnings other than the usual output.
9237     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9238     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9239     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9240       lt_cv_prog_compiler_rtti_exceptions=yes
9241     fi
9242   fi
9243   $RM conftest*
9244
9245fi
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9247$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9248
9249if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9250    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9251else
9252    :
9253fi
9254
9255fi
9256
9257
9258
9259
9260
9261
9262  lt_prog_compiler_wl=
9263lt_prog_compiler_pic=
9264lt_prog_compiler_static=
9265
9266
9267  if test "$GCC" = yes; then
9268    lt_prog_compiler_wl='-Wl,'
9269    lt_prog_compiler_static='-static'
9270
9271    case $host_os in
9272      aix*)
9273      # All AIX code is PIC.
9274      if test "$host_cpu" = ia64; then
9275	# AIX 5 now supports IA64 processor
9276	lt_prog_compiler_static='-Bstatic'
9277      fi
9278      ;;
9279
9280    amigaos*)
9281      case $host_cpu in
9282      powerpc)
9283            # see comment about AmigaOS4 .so support
9284            lt_prog_compiler_pic='-fPIC'
9285        ;;
9286      m68k)
9287            # FIXME: we need at least 68020 code to build shared libraries, but
9288            # adding the `-m68020' flag to GCC prevents building anything better,
9289            # like `-m68040'.
9290            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9291        ;;
9292      esac
9293      ;;
9294
9295    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9296      # PIC is the default for these OSes.
9297      ;;
9298
9299    mingw* | cygwin* | pw32* | os2* | cegcc*)
9300      # This hack is so that the source file can tell whether it is being
9301      # built for inclusion in a dll (and should export symbols for example).
9302      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9303      # (--disable-auto-import) libraries
9304      lt_prog_compiler_pic='-DDLL_EXPORT'
9305      ;;
9306
9307    darwin* | rhapsody*)
9308      # PIC is the default on this platform
9309      # Common symbols not allowed in MH_DYLIB files
9310      lt_prog_compiler_pic='-fno-common'
9311      ;;
9312
9313    haiku*)
9314      # PIC is the default for Haiku.
9315      # The "-static" flag exists, but is broken.
9316      lt_prog_compiler_static=
9317      ;;
9318
9319    hpux*)
9320      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9321      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9322      # sets the default TLS model and affects inlining.
9323      case $host_cpu in
9324      hppa*64*)
9325	# +Z the default
9326	;;
9327      *)
9328	lt_prog_compiler_pic='-fPIC'
9329	;;
9330      esac
9331      ;;
9332
9333    interix[3-9]*)
9334      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9335      # Instead, we relocate shared libraries at runtime.
9336      ;;
9337
9338    msdosdjgpp*)
9339      # Just because we use GCC doesn't mean we suddenly get shared libraries
9340      # on systems that don't support them.
9341      lt_prog_compiler_can_build_shared=no
9342      enable_shared=no
9343      ;;
9344
9345    *nto* | *qnx*)
9346      # QNX uses GNU C++, but need to define -shared option too, otherwise
9347      # it will coredump.
9348      lt_prog_compiler_pic='-fPIC -shared'
9349      ;;
9350
9351    sysv4*MP*)
9352      if test -d /usr/nec; then
9353	lt_prog_compiler_pic=-Kconform_pic
9354      fi
9355      ;;
9356
9357    *)
9358      lt_prog_compiler_pic='-fPIC'
9359      ;;
9360    esac
9361
9362    case $cc_basename in
9363    nvcc*) # Cuda Compiler Driver 2.2
9364      lt_prog_compiler_wl='-Xlinker '
9365      lt_prog_compiler_pic='-Xcompiler -fPIC'
9366      ;;
9367    esac
9368  else
9369    # PORTME Check for flag to pass linker flags through the system compiler.
9370    case $host_os in
9371    aix*)
9372      lt_prog_compiler_wl='-Wl,'
9373      if test "$host_cpu" = ia64; then
9374	# AIX 5 now supports IA64 processor
9375	lt_prog_compiler_static='-Bstatic'
9376      else
9377	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9378      fi
9379      ;;
9380
9381    mingw* | cygwin* | pw32* | os2* | cegcc*)
9382      # This hack is so that the source file can tell whether it is being
9383      # built for inclusion in a dll (and should export symbols for example).
9384      lt_prog_compiler_pic='-DDLL_EXPORT'
9385      ;;
9386
9387    hpux9* | hpux10* | hpux11*)
9388      lt_prog_compiler_wl='-Wl,'
9389      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9390      # not for PA HP-UX.
9391      case $host_cpu in
9392      hppa*64*|ia64*)
9393	# +Z the default
9394	;;
9395      *)
9396	lt_prog_compiler_pic='+Z'
9397	;;
9398      esac
9399      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9400      lt_prog_compiler_static='${wl}-a ${wl}archive'
9401      ;;
9402
9403    irix5* | irix6* | nonstopux*)
9404      lt_prog_compiler_wl='-Wl,'
9405      # PIC (with -KPIC) is the default.
9406      lt_prog_compiler_static='-non_shared'
9407      ;;
9408
9409    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9410      case $cc_basename in
9411      # old Intel for x86_64 which still supported -KPIC.
9412      ecc*)
9413	lt_prog_compiler_wl='-Wl,'
9414	lt_prog_compiler_pic='-KPIC'
9415	lt_prog_compiler_static='-static'
9416        ;;
9417      # icc used to be incompatible with GCC.
9418      # ICC 10 doesn't accept -KPIC any more.
9419      icc* | ifort*)
9420	lt_prog_compiler_wl='-Wl,'
9421	lt_prog_compiler_pic='-fPIC'
9422	lt_prog_compiler_static='-static'
9423        ;;
9424      # Lahey Fortran 8.1.
9425      lf95*)
9426	lt_prog_compiler_wl='-Wl,'
9427	lt_prog_compiler_pic='--shared'
9428	lt_prog_compiler_static='--static'
9429	;;
9430      nagfor*)
9431	# NAG Fortran compiler
9432	lt_prog_compiler_wl='-Wl,-Wl,,'
9433	lt_prog_compiler_pic='-PIC'
9434	lt_prog_compiler_static='-Bstatic'
9435	;;
9436      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9437        # Portland Group compilers (*not* the Pentium gcc compiler,
9438	# which looks to be a dead project)
9439	lt_prog_compiler_wl='-Wl,'
9440	lt_prog_compiler_pic='-fpic'
9441	lt_prog_compiler_static='-Bstatic'
9442        ;;
9443      ccc*)
9444        lt_prog_compiler_wl='-Wl,'
9445        # All Alpha code is PIC.
9446        lt_prog_compiler_static='-non_shared'
9447        ;;
9448      xl* | bgxl* | bgf* | mpixl*)
9449	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9450	lt_prog_compiler_wl='-Wl,'
9451	lt_prog_compiler_pic='-qpic'
9452	lt_prog_compiler_static='-qstaticlink'
9453	;;
9454      *)
9455	case `$CC -V 2>&1 | sed 5q` in
9456	*Sun\ F* | *Sun*Fortran*)
9457	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9458	  lt_prog_compiler_pic='-KPIC'
9459	  lt_prog_compiler_static='-Bstatic'
9460	  lt_prog_compiler_wl=''
9461	  ;;
9462	*Sun\ C*)
9463	  # Sun C 5.9
9464	  lt_prog_compiler_pic='-KPIC'
9465	  lt_prog_compiler_static='-Bstatic'
9466	  lt_prog_compiler_wl='-Wl,'
9467	  ;;
9468	esac
9469	;;
9470      esac
9471      ;;
9472
9473    newsos6)
9474      lt_prog_compiler_pic='-KPIC'
9475      lt_prog_compiler_static='-Bstatic'
9476      ;;
9477
9478    *nto* | *qnx*)
9479      # QNX uses GNU C++, but need to define -shared option too, otherwise
9480      # it will coredump.
9481      lt_prog_compiler_pic='-fPIC -shared'
9482      ;;
9483
9484    osf3* | osf4* | osf5*)
9485      lt_prog_compiler_wl='-Wl,'
9486      # All OSF/1 code is PIC.
9487      lt_prog_compiler_static='-non_shared'
9488      ;;
9489
9490    rdos*)
9491      lt_prog_compiler_static='-non_shared'
9492      ;;
9493
9494    solaris*)
9495      lt_prog_compiler_pic='-KPIC'
9496      lt_prog_compiler_static='-Bstatic'
9497      case $cc_basename in
9498      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9499	lt_prog_compiler_wl='-Qoption ld ';;
9500      *)
9501	lt_prog_compiler_wl='-Wl,';;
9502      esac
9503      ;;
9504
9505    sunos4*)
9506      lt_prog_compiler_wl='-Qoption ld '
9507      lt_prog_compiler_pic='-PIC'
9508      lt_prog_compiler_static='-Bstatic'
9509      ;;
9510
9511    sysv4 | sysv4.2uw2* | sysv4.3*)
9512      lt_prog_compiler_wl='-Wl,'
9513      lt_prog_compiler_pic='-KPIC'
9514      lt_prog_compiler_static='-Bstatic'
9515      ;;
9516
9517    sysv4*MP*)
9518      if test -d /usr/nec ;then
9519	lt_prog_compiler_pic='-Kconform_pic'
9520	lt_prog_compiler_static='-Bstatic'
9521      fi
9522      ;;
9523
9524    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9525      lt_prog_compiler_wl='-Wl,'
9526      lt_prog_compiler_pic='-KPIC'
9527      lt_prog_compiler_static='-Bstatic'
9528      ;;
9529
9530    unicos*)
9531      lt_prog_compiler_wl='-Wl,'
9532      lt_prog_compiler_can_build_shared=no
9533      ;;
9534
9535    uts4*)
9536      lt_prog_compiler_pic='-pic'
9537      lt_prog_compiler_static='-Bstatic'
9538      ;;
9539
9540    *)
9541      lt_prog_compiler_can_build_shared=no
9542      ;;
9543    esac
9544  fi
9545
9546case $host_os in
9547  # For platforms which do not support PIC, -DPIC is meaningless:
9548  *djgpp*)
9549    lt_prog_compiler_pic=
9550    ;;
9551  *)
9552    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9553    ;;
9554esac
9555
9556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9557$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9558if ${lt_cv_prog_compiler_pic+:} false; then :
9559  $as_echo_n "(cached) " >&6
9560else
9561  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9562fi
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9564$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9565lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9566
9567#
9568# Check to make sure the PIC flag actually works.
9569#
9570if test -n "$lt_prog_compiler_pic"; then
9571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9572$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9573if ${lt_cv_prog_compiler_pic_works+:} false; then :
9574  $as_echo_n "(cached) " >&6
9575else
9576  lt_cv_prog_compiler_pic_works=no
9577   ac_outfile=conftest.$ac_objext
9578   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9579   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9580   # Insert the option either (1) after the last *FLAGS variable, or
9581   # (2) before a word containing "conftest.", or (3) at the end.
9582   # Note that $ac_compile itself does not contain backslashes and begins
9583   # with a dollar sign (not a hyphen), so the echo should work correctly.
9584   # The option is referenced via a variable to avoid confusing sed.
9585   lt_compile=`echo "$ac_compile" | $SED \
9586   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9587   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9588   -e 's:$: $lt_compiler_flag:'`
9589   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9590   (eval "$lt_compile" 2>conftest.err)
9591   ac_status=$?
9592   cat conftest.err >&5
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   if (exit $ac_status) && test -s "$ac_outfile"; then
9595     # The compiler can only warn and ignore the option if not recognized
9596     # So say no if there are warnings other than the usual output.
9597     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9598     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9599     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9600       lt_cv_prog_compiler_pic_works=yes
9601     fi
9602   fi
9603   $RM conftest*
9604
9605fi
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9607$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9608
9609if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9610    case $lt_prog_compiler_pic in
9611     "" | " "*) ;;
9612     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9613     esac
9614else
9615    lt_prog_compiler_pic=
9616     lt_prog_compiler_can_build_shared=no
9617fi
9618
9619fi
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631#
9632# Check to make sure the static flag actually works.
9633#
9634wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9636$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9637if ${lt_cv_prog_compiler_static_works+:} false; then :
9638  $as_echo_n "(cached) " >&6
9639else
9640  lt_cv_prog_compiler_static_works=no
9641   save_LDFLAGS="$LDFLAGS"
9642   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9643   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9644   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9645     # The linker can only warn and ignore the option if not recognized
9646     # So say no if there are warnings
9647     if test -s conftest.err; then
9648       # Append any errors to the config.log.
9649       cat conftest.err 1>&5
9650       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9651       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9652       if diff conftest.exp conftest.er2 >/dev/null; then
9653         lt_cv_prog_compiler_static_works=yes
9654       fi
9655     else
9656       lt_cv_prog_compiler_static_works=yes
9657     fi
9658   fi
9659   $RM -r conftest*
9660   LDFLAGS="$save_LDFLAGS"
9661
9662fi
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9664$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9665
9666if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9667    :
9668else
9669    lt_prog_compiler_static=
9670fi
9671
9672
9673
9674
9675
9676
9677
9678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9679$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9680if ${lt_cv_prog_compiler_c_o+:} false; then :
9681  $as_echo_n "(cached) " >&6
9682else
9683  lt_cv_prog_compiler_c_o=no
9684   $RM -r conftest 2>/dev/null
9685   mkdir conftest
9686   cd conftest
9687   mkdir out
9688   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9689
9690   lt_compiler_flag="-o out/conftest2.$ac_objext"
9691   # Insert the option either (1) after the last *FLAGS variable, or
9692   # (2) before a word containing "conftest.", or (3) at the end.
9693   # Note that $ac_compile itself does not contain backslashes and begins
9694   # with a dollar sign (not a hyphen), so the echo should work correctly.
9695   lt_compile=`echo "$ac_compile" | $SED \
9696   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9697   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9698   -e 's:$: $lt_compiler_flag:'`
9699   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9700   (eval "$lt_compile" 2>out/conftest.err)
9701   ac_status=$?
9702   cat out/conftest.err >&5
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9705   then
9706     # The compiler can only warn and ignore the option if not recognized
9707     # So say no if there are warnings
9708     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9709     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9710     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9711       lt_cv_prog_compiler_c_o=yes
9712     fi
9713   fi
9714   chmod u+w . 2>&5
9715   $RM conftest*
9716   # SGI C++ compiler will create directory out/ii_files/ for
9717   # template instantiation
9718   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9719   $RM out/* && rmdir out
9720   cd ..
9721   $RM -r conftest
9722   $RM conftest*
9723
9724fi
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9726$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9727
9728
9729
9730
9731
9732
9733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9734$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9735if ${lt_cv_prog_compiler_c_o+:} false; then :
9736  $as_echo_n "(cached) " >&6
9737else
9738  lt_cv_prog_compiler_c_o=no
9739   $RM -r conftest 2>/dev/null
9740   mkdir conftest
9741   cd conftest
9742   mkdir out
9743   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9744
9745   lt_compiler_flag="-o out/conftest2.$ac_objext"
9746   # Insert the option either (1) after the last *FLAGS variable, or
9747   # (2) before a word containing "conftest.", or (3) at the end.
9748   # Note that $ac_compile itself does not contain backslashes and begins
9749   # with a dollar sign (not a hyphen), so the echo should work correctly.
9750   lt_compile=`echo "$ac_compile" | $SED \
9751   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9752   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9753   -e 's:$: $lt_compiler_flag:'`
9754   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9755   (eval "$lt_compile" 2>out/conftest.err)
9756   ac_status=$?
9757   cat out/conftest.err >&5
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9760   then
9761     # The compiler can only warn and ignore the option if not recognized
9762     # So say no if there are warnings
9763     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9764     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9765     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9766       lt_cv_prog_compiler_c_o=yes
9767     fi
9768   fi
9769   chmod u+w . 2>&5
9770   $RM conftest*
9771   # SGI C++ compiler will create directory out/ii_files/ for
9772   # template instantiation
9773   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9774   $RM out/* && rmdir out
9775   cd ..
9776   $RM -r conftest
9777   $RM conftest*
9778
9779fi
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9781$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9782
9783
9784
9785
9786hard_links="nottested"
9787if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9788  # do not overwrite the value of need_locks provided by the user
9789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9790$as_echo_n "checking if we can lock with hard links... " >&6; }
9791  hard_links=yes
9792  $RM conftest*
9793  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9794  touch conftest.a
9795  ln conftest.a conftest.b 2>&5 || hard_links=no
9796  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9798$as_echo "$hard_links" >&6; }
9799  if test "$hard_links" = no; then
9800    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9801$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9802    need_locks=warn
9803  fi
9804else
9805  need_locks=no
9806fi
9807
9808
9809
9810
9811
9812
9813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9814$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9815
9816  runpath_var=
9817  allow_undefined_flag=
9818  always_export_symbols=no
9819  archive_cmds=
9820  archive_expsym_cmds=
9821  compiler_needs_object=no
9822  enable_shared_with_static_runtimes=no
9823  export_dynamic_flag_spec=
9824  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9825  hardcode_automatic=no
9826  hardcode_direct=no
9827  hardcode_direct_absolute=no
9828  hardcode_libdir_flag_spec=
9829  hardcode_libdir_flag_spec_ld=
9830  hardcode_libdir_separator=
9831  hardcode_minus_L=no
9832  hardcode_shlibpath_var=unsupported
9833  inherit_rpath=no
9834  link_all_deplibs=unknown
9835  module_cmds=
9836  module_expsym_cmds=
9837  old_archive_from_new_cmds=
9838  old_archive_from_expsyms_cmds=
9839  thread_safe_flag_spec=
9840  whole_archive_flag_spec=
9841  # include_expsyms should be a list of space-separated symbols to be *always*
9842  # included in the symbol list
9843  include_expsyms=
9844  # exclude_expsyms can be an extended regexp of symbols to exclude
9845  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9846  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9847  # as well as any symbol that contains `d'.
9848  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9849  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9850  # platforms (ab)use it in PIC code, but their linkers get confused if
9851  # the symbol is explicitly referenced.  Since portable code cannot
9852  # rely on this symbol name, it's probably fine to never include it in
9853  # preloaded symbol tables.
9854  # Exclude shared library initialization/finalization symbols.
9855  extract_expsyms_cmds=
9856
9857  case $host_os in
9858  cygwin* | mingw* | pw32* | cegcc*)
9859    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9860    # When not using gcc, we currently assume that we are using
9861    # Microsoft Visual C++.
9862    if test "$GCC" != yes; then
9863      with_gnu_ld=no
9864    fi
9865    ;;
9866  interix*)
9867    # we just hope/assume this is gcc and not c89 (= MSVC++)
9868    with_gnu_ld=yes
9869    ;;
9870  openbsd*)
9871    with_gnu_ld=no
9872    ;;
9873  esac
9874
9875  ld_shlibs=yes
9876
9877  # On some targets, GNU ld is compatible enough with the native linker
9878  # that we're better off using the native interface for both.
9879  lt_use_gnu_ld_interface=no
9880  if test "$with_gnu_ld" = yes; then
9881    case $host_os in
9882      aix*)
9883	# The AIX port of GNU ld has always aspired to compatibility
9884	# with the native linker.  However, as the warning in the GNU ld
9885	# block says, versions before 2.19.5* couldn't really create working
9886	# shared libraries, regardless of the interface used.
9887	case `$LD -v 2>&1` in
9888	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9889	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9890	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9891	  *)
9892	    lt_use_gnu_ld_interface=yes
9893	    ;;
9894	esac
9895	;;
9896      *)
9897	lt_use_gnu_ld_interface=yes
9898	;;
9899    esac
9900  fi
9901
9902  if test "$lt_use_gnu_ld_interface" = yes; then
9903    # If archive_cmds runs LD, not CC, wlarc should be empty
9904    wlarc='${wl}'
9905
9906    # Set some defaults for GNU ld with shared library support. These
9907    # are reset later if shared libraries are not supported. Putting them
9908    # here allows them to be overridden if necessary.
9909    runpath_var=LD_RUN_PATH
9910    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9911    export_dynamic_flag_spec='${wl}--export-dynamic'
9912    # ancient GNU ld didn't support --whole-archive et. al.
9913    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9914      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9915    else
9916      whole_archive_flag_spec=
9917    fi
9918    supports_anon_versioning=no
9919    case `$LD -v 2>&1` in
9920      *GNU\ gold*) supports_anon_versioning=yes ;;
9921      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9922      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9923      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9924      *\ 2.11.*) ;; # other 2.11 versions
9925      *) supports_anon_versioning=yes ;;
9926    esac
9927
9928    # See if GNU ld supports shared libraries.
9929    case $host_os in
9930    aix[3-9]*)
9931      # On AIX/PPC, the GNU linker is very broken
9932      if test "$host_cpu" != ia64; then
9933	ld_shlibs=no
9934	cat <<_LT_EOF 1>&2
9935
9936*** Warning: the GNU linker, at least up to release 2.19, is reported
9937*** to be unable to reliably create shared libraries on AIX.
9938*** Therefore, libtool is disabling shared libraries support.  If you
9939*** really care for shared libraries, you may want to install binutils
9940*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9941*** You will then need to restart the configuration process.
9942
9943_LT_EOF
9944      fi
9945      ;;
9946
9947    amigaos*)
9948      case $host_cpu in
9949      powerpc)
9950            # see comment about AmigaOS4 .so support
9951            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9952            archive_expsym_cmds=''
9953        ;;
9954      m68k)
9955            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)'
9956            hardcode_libdir_flag_spec='-L$libdir'
9957            hardcode_minus_L=yes
9958        ;;
9959      esac
9960      ;;
9961
9962    beos*)
9963      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9964	allow_undefined_flag=unsupported
9965	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9966	# support --undefined.  This deserves some investigation.  FIXME
9967	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9968      else
9969	ld_shlibs=no
9970      fi
9971      ;;
9972
9973    cygwin* | mingw* | pw32* | cegcc*)
9974      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9975      # as there is no search path for DLLs.
9976      hardcode_libdir_flag_spec='-L$libdir'
9977      export_dynamic_flag_spec='${wl}--export-all-symbols'
9978      allow_undefined_flag=unsupported
9979      always_export_symbols=no
9980      enable_shared_with_static_runtimes=yes
9981      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'
9982      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9983
9984      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9985        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9986	# If the export-symbols file already is a .def file (1st line
9987	# is EXPORTS), use it as is; otherwise, prepend...
9988	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9989	  cp $export_symbols $output_objdir/$soname.def;
9990	else
9991	  echo EXPORTS > $output_objdir/$soname.def;
9992	  cat $export_symbols >> $output_objdir/$soname.def;
9993	fi~
9994	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9995      else
9996	ld_shlibs=no
9997      fi
9998      ;;
9999
10000    haiku*)
10001      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002      link_all_deplibs=yes
10003      ;;
10004
10005    interix[3-9]*)
10006      hardcode_direct=no
10007      hardcode_shlibpath_var=no
10008      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10009      export_dynamic_flag_spec='${wl}-E'
10010      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10011      # Instead, shared libraries are loaded at an image base (0x10000000 by
10012      # default) and relocated if they conflict, which is a slow very memory
10013      # consuming and fragmenting process.  To avoid this, we pick a random,
10014      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10015      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10016      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10017      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'
10018      ;;
10019
10020    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10021      tmp_diet=no
10022      if test "$host_os" = linux-dietlibc; then
10023	case $cc_basename in
10024	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10025	esac
10026      fi
10027      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10028	 && test "$tmp_diet" = no
10029      then
10030	tmp_addflag=' $pic_flag'
10031	tmp_sharedflag='-shared'
10032	case $cc_basename,$host_cpu in
10033        pgcc*)				# Portland Group C compiler
10034	  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'
10035	  tmp_addflag=' $pic_flag'
10036	  ;;
10037	pgf77* | pgf90* | pgf95* | pgfortran*)
10038					# Portland Group f77 and f90 compilers
10039	  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'
10040	  tmp_addflag=' $pic_flag -Mnomain' ;;
10041	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10042	  tmp_addflag=' -i_dynamic' ;;
10043	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10044	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10045	ifc* | ifort*)			# Intel Fortran compiler
10046	  tmp_addflag=' -nofor_main' ;;
10047	lf95*)				# Lahey Fortran 8.1
10048	  whole_archive_flag_spec=
10049	  tmp_sharedflag='--shared' ;;
10050	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10051	  tmp_sharedflag='-qmkshrobj'
10052	  tmp_addflag= ;;
10053	nvcc*)	# Cuda Compiler Driver 2.2
10054	  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'
10055	  compiler_needs_object=yes
10056	  ;;
10057	esac
10058	case `$CC -V 2>&1 | sed 5q` in
10059	*Sun\ C*)			# Sun C 5.9
10060	  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'
10061	  compiler_needs_object=yes
10062	  tmp_sharedflag='-G' ;;
10063	*Sun\ F*)			# Sun Fortran 8.3
10064	  tmp_sharedflag='-G' ;;
10065	esac
10066	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10067
10068        if test "x$supports_anon_versioning" = xyes; then
10069          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10070	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10071	    echo "local: *; };" >> $output_objdir/$libname.ver~
10072	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10073        fi
10074
10075	case $cc_basename in
10076	xlf* | bgf* | bgxlf* | mpixlf*)
10077	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10078	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10079	  hardcode_libdir_flag_spec=
10080	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10081	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10082	  if test "x$supports_anon_versioning" = xyes; then
10083	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10084	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10085	      echo "local: *; };" >> $output_objdir/$libname.ver~
10086	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10087	  fi
10088	  ;;
10089	esac
10090      else
10091        ld_shlibs=no
10092      fi
10093      ;;
10094
10095    netbsd*)
10096      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10097	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10098	wlarc=
10099      else
10100	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10102      fi
10103      ;;
10104
10105    solaris*)
10106      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10107	ld_shlibs=no
10108	cat <<_LT_EOF 1>&2
10109
10110*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10111*** create shared libraries on Solaris systems.  Therefore, libtool
10112*** is disabling shared libraries support.  We urge you to upgrade GNU
10113*** binutils to release 2.9.1 or newer.  Another option is to modify
10114*** your PATH or compiler configuration so that the native linker is
10115*** used, and then restart.
10116
10117_LT_EOF
10118      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10119	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10120	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10121      else
10122	ld_shlibs=no
10123      fi
10124      ;;
10125
10126    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10127      case `$LD -v 2>&1` in
10128        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10129	ld_shlibs=no
10130	cat <<_LT_EOF 1>&2
10131
10132*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10133*** reliably create shared libraries on SCO systems.  Therefore, libtool
10134*** is disabling shared libraries support.  We urge you to upgrade GNU
10135*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10136*** your PATH or compiler configuration so that the native linker is
10137*** used, and then restart.
10138
10139_LT_EOF
10140	;;
10141	*)
10142	  # For security reasons, it is highly recommended that you always
10143	  # use absolute paths for naming shared libraries, and exclude the
10144	  # DT_RUNPATH tag from executables and libraries.  But doing so
10145	  # requires that you compile everything twice, which is a pain.
10146	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10147	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10148	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10149	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10150	  else
10151	    ld_shlibs=no
10152	  fi
10153	;;
10154      esac
10155      ;;
10156
10157    sunos4*)
10158      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10159      wlarc=
10160      hardcode_direct=yes
10161      hardcode_shlibpath_var=no
10162      ;;
10163
10164    *)
10165      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10166	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10167	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10168      else
10169	ld_shlibs=no
10170      fi
10171      ;;
10172    esac
10173
10174    if test "$ld_shlibs" = no; then
10175      runpath_var=
10176      hardcode_libdir_flag_spec=
10177      export_dynamic_flag_spec=
10178      whole_archive_flag_spec=
10179    fi
10180  else
10181    # PORTME fill in a description of your system's linker (not GNU ld)
10182    case $host_os in
10183    aix3*)
10184      allow_undefined_flag=unsupported
10185      always_export_symbols=yes
10186      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'
10187      # Note: this linker hardcodes the directories in LIBPATH if there
10188      # are no directories specified by -L.
10189      hardcode_minus_L=yes
10190      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10191	# Neither direct hardcoding nor static linking is supported with a
10192	# broken collect2.
10193	hardcode_direct=unsupported
10194      fi
10195      ;;
10196
10197    aix[4-9]*)
10198      if test "$host_cpu" = ia64; then
10199	# On IA64, the linker does run time linking by default, so we don't
10200	# have to do anything special.
10201	aix_use_runtimelinking=no
10202	exp_sym_flag='-Bexport'
10203	no_entry_flag=""
10204      else
10205	# If we're using GNU nm, then we don't want the "-C" option.
10206	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10207	# Also, AIX nm treats weak defined symbols like other global
10208	# defined symbols, whereas GNU nm marks them as "W".
10209	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10210	  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'
10211	else
10212	  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'
10213	fi
10214	aix_use_runtimelinking=no
10215
10216	# Test if we are trying to use run time linking or normal
10217	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10218	# need to do runtime linking.
10219	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10220	  for ld_flag in $LDFLAGS; do
10221	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10222	    aix_use_runtimelinking=yes
10223	    break
10224	  fi
10225	  done
10226	  ;;
10227	esac
10228
10229	exp_sym_flag='-bexport'
10230	no_entry_flag='-bnoentry'
10231      fi
10232
10233      # When large executables or shared objects are built, AIX ld can
10234      # have problems creating the table of contents.  If linking a library
10235      # or program results in "error TOC overflow" add -mminimal-toc to
10236      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10237      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10238
10239      archive_cmds=''
10240      hardcode_direct=yes
10241      hardcode_direct_absolute=yes
10242      hardcode_libdir_separator=':'
10243      link_all_deplibs=yes
10244      file_list_spec='${wl}-f,'
10245
10246      if test "$GCC" = yes; then
10247	case $host_os in aix4.[012]|aix4.[012].*)
10248	# We only want to do this on AIX 4.2 and lower, the check
10249	# below for broken collect2 doesn't work under 4.3+
10250	  collect2name=`${CC} -print-prog-name=collect2`
10251	  if test -f "$collect2name" &&
10252	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10253	  then
10254	  # We have reworked collect2
10255	  :
10256	  else
10257	  # We have old collect2
10258	  hardcode_direct=unsupported
10259	  # It fails to find uninstalled libraries when the uninstalled
10260	  # path is not listed in the libpath.  Setting hardcode_minus_L
10261	  # to unsupported forces relinking
10262	  hardcode_minus_L=yes
10263	  hardcode_libdir_flag_spec='-L$libdir'
10264	  hardcode_libdir_separator=
10265	  fi
10266	  ;;
10267	esac
10268	shared_flag='-shared'
10269	if test "$aix_use_runtimelinking" = yes; then
10270	  shared_flag="$shared_flag "'${wl}-G'
10271	fi
10272      else
10273	# not using gcc
10274	if test "$host_cpu" = ia64; then
10275	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10276	# chokes on -Wl,-G. The following line is correct:
10277	  shared_flag='-G'
10278	else
10279	  if test "$aix_use_runtimelinking" = yes; then
10280	    shared_flag='${wl}-G'
10281	  else
10282	    shared_flag='${wl}-bM:SRE'
10283	  fi
10284	fi
10285      fi
10286
10287      export_dynamic_flag_spec='${wl}-bexpall'
10288      # It seems that -bexpall does not export symbols beginning with
10289      # underscore (_), so it is better to generate a list of symbols to export.
10290      always_export_symbols=yes
10291      if test "$aix_use_runtimelinking" = yes; then
10292	# Warning - without using the other runtime loading flags (-brtl),
10293	# -berok will link without error, but may produce a broken library.
10294	allow_undefined_flag='-berok'
10295        # Determine the default libpath from the value encoded in an
10296        # empty executable.
10297        if test "${lt_cv_aix_libpath+set}" = set; then
10298  aix_libpath=$lt_cv_aix_libpath
10299else
10300  if ${lt_cv_aix_libpath_+:} false; then :
10301  $as_echo_n "(cached) " >&6
10302else
10303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304/* end confdefs.h.  */
10305
10306int
10307main ()
10308{
10309
10310  ;
10311  return 0;
10312}
10313_ACEOF
10314if ac_fn_c_try_link "$LINENO"; then :
10315
10316  lt_aix_libpath_sed='
10317      /Import File Strings/,/^$/ {
10318	  /^0/ {
10319	      s/^0  *\([^ ]*\) *$/\1/
10320	      p
10321	  }
10322      }'
10323  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10324  # Check for a 64-bit object if we didn't find anything.
10325  if test -z "$lt_cv_aix_libpath_"; then
10326    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10327  fi
10328fi
10329rm -f core conftest.err conftest.$ac_objext \
10330    conftest$ac_exeext conftest.$ac_ext
10331  if test -z "$lt_cv_aix_libpath_"; then
10332    lt_cv_aix_libpath_="/usr/lib:/lib"
10333  fi
10334
10335fi
10336
10337  aix_libpath=$lt_cv_aix_libpath_
10338fi
10339
10340        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10341        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"
10342      else
10343	if test "$host_cpu" = ia64; then
10344	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10345	  allow_undefined_flag="-z nodefs"
10346	  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"
10347	else
10348	 # Determine the default libpath from the value encoded in an
10349	 # empty executable.
10350	 if test "${lt_cv_aix_libpath+set}" = set; then
10351  aix_libpath=$lt_cv_aix_libpath
10352else
10353  if ${lt_cv_aix_libpath_+:} false; then :
10354  $as_echo_n "(cached) " >&6
10355else
10356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357/* end confdefs.h.  */
10358
10359int
10360main ()
10361{
10362
10363  ;
10364  return 0;
10365}
10366_ACEOF
10367if ac_fn_c_try_link "$LINENO"; then :
10368
10369  lt_aix_libpath_sed='
10370      /Import File Strings/,/^$/ {
10371	  /^0/ {
10372	      s/^0  *\([^ ]*\) *$/\1/
10373	      p
10374	  }
10375      }'
10376  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10377  # Check for a 64-bit object if we didn't find anything.
10378  if test -z "$lt_cv_aix_libpath_"; then
10379    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10380  fi
10381fi
10382rm -f core conftest.err conftest.$ac_objext \
10383    conftest$ac_exeext conftest.$ac_ext
10384  if test -z "$lt_cv_aix_libpath_"; then
10385    lt_cv_aix_libpath_="/usr/lib:/lib"
10386  fi
10387
10388fi
10389
10390  aix_libpath=$lt_cv_aix_libpath_
10391fi
10392
10393	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10394	  # Warning - without using the other run time loading flags,
10395	  # -berok will link without error, but may produce a broken library.
10396	  no_undefined_flag=' ${wl}-bernotok'
10397	  allow_undefined_flag=' ${wl}-berok'
10398	  if test "$with_gnu_ld" = yes; then
10399	    # We only use this code for GNU lds that support --whole-archive.
10400	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10401	  else
10402	    # Exported symbols can be pulled into shared objects from archives
10403	    whole_archive_flag_spec='$convenience'
10404	  fi
10405	  archive_cmds_need_lc=yes
10406	  # This is similar to how AIX traditionally builds its shared libraries.
10407	  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'
10408	fi
10409      fi
10410      ;;
10411
10412    amigaos*)
10413      case $host_cpu in
10414      powerpc)
10415            # see comment about AmigaOS4 .so support
10416            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10417            archive_expsym_cmds=''
10418        ;;
10419      m68k)
10420            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)'
10421            hardcode_libdir_flag_spec='-L$libdir'
10422            hardcode_minus_L=yes
10423        ;;
10424      esac
10425      ;;
10426
10427    bsdi[45]*)
10428      export_dynamic_flag_spec=-rdynamic
10429      ;;
10430
10431    cygwin* | mingw* | pw32* | cegcc*)
10432      # When not using gcc, we currently assume that we are using
10433      # Microsoft Visual C++.
10434      # hardcode_libdir_flag_spec is actually meaningless, as there is
10435      # no search path for DLLs.
10436      case $cc_basename in
10437      cl*)
10438	# Native MSVC
10439	hardcode_libdir_flag_spec=' '
10440	allow_undefined_flag=unsupported
10441	always_export_symbols=yes
10442	file_list_spec='@'
10443	# Tell ltmain to make .lib files, not .a files.
10444	libext=lib
10445	# Tell ltmain to make .dll files, not .so files.
10446	shrext_cmds=".dll"
10447	# FIXME: Setting linknames here is a bad hack.
10448	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10449	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10450	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10451	  else
10452	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10453	  fi~
10454	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10455	  linknames='
10456	# The linker will not automatically build a static lib if we build a DLL.
10457	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10458	enable_shared_with_static_runtimes=yes
10459	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10460	# Don't use ranlib
10461	old_postinstall_cmds='chmod 644 $oldlib'
10462	postlink_cmds='lt_outputfile="@OUTPUT@"~
10463	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10464	  case $lt_outputfile in
10465	    *.exe|*.EXE) ;;
10466	    *)
10467	      lt_outputfile="$lt_outputfile.exe"
10468	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10469	      ;;
10470	  esac~
10471	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10472	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10473	    $RM "$lt_outputfile.manifest";
10474	  fi'
10475	;;
10476      *)
10477	# Assume MSVC wrapper
10478	hardcode_libdir_flag_spec=' '
10479	allow_undefined_flag=unsupported
10480	# Tell ltmain to make .lib files, not .a files.
10481	libext=lib
10482	# Tell ltmain to make .dll files, not .so files.
10483	shrext_cmds=".dll"
10484	# FIXME: Setting linknames here is a bad hack.
10485	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10486	# The linker will automatically build a .lib file if we build a DLL.
10487	old_archive_from_new_cmds='true'
10488	# FIXME: Should let the user specify the lib program.
10489	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10490	enable_shared_with_static_runtimes=yes
10491	;;
10492      esac
10493      ;;
10494
10495    darwin* | rhapsody*)
10496
10497
10498  archive_cmds_need_lc=no
10499  hardcode_direct=no
10500  hardcode_automatic=yes
10501  hardcode_shlibpath_var=unsupported
10502  if test "$lt_cv_ld_force_load" = "yes"; then
10503    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\"`'
10504  else
10505    whole_archive_flag_spec=''
10506  fi
10507  link_all_deplibs=yes
10508  allow_undefined_flag="$_lt_dar_allow_undefined"
10509  case $cc_basename in
10510     ifort*) _lt_dar_can_shared=yes ;;
10511     *) _lt_dar_can_shared=$GCC ;;
10512  esac
10513  if test "$_lt_dar_can_shared" = "yes"; then
10514    output_verbose_link_cmd=func_echo_all
10515    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10516    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10517    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}"
10518    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}"
10519
10520  else
10521  ld_shlibs=no
10522  fi
10523
10524      ;;
10525
10526    dgux*)
10527      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10528      hardcode_libdir_flag_spec='-L$libdir'
10529      hardcode_shlibpath_var=no
10530      ;;
10531
10532    freebsd1*)
10533      ld_shlibs=no
10534      ;;
10535
10536    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10537    # support.  Future versions do this automatically, but an explicit c++rt0.o
10538    # does not break anything, and helps significantly (at the cost of a little
10539    # extra space).
10540    freebsd2.2*)
10541      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10542      hardcode_libdir_flag_spec='-R$libdir'
10543      hardcode_direct=yes
10544      hardcode_shlibpath_var=no
10545      ;;
10546
10547    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10548    freebsd2*)
10549      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10550      hardcode_direct=yes
10551      hardcode_minus_L=yes
10552      hardcode_shlibpath_var=no
10553      ;;
10554
10555    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10556    freebsd* | dragonfly*)
10557      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10558      hardcode_libdir_flag_spec='-R$libdir'
10559      hardcode_direct=yes
10560      hardcode_shlibpath_var=no
10561      ;;
10562
10563    hpux9*)
10564      if test "$GCC" = yes; then
10565	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'
10566      else
10567	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'
10568      fi
10569      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10570      hardcode_libdir_separator=:
10571      hardcode_direct=yes
10572
10573      # hardcode_minus_L: Not really in the search PATH,
10574      # but as the default location of the library.
10575      hardcode_minus_L=yes
10576      export_dynamic_flag_spec='${wl}-E'
10577      ;;
10578
10579    hpux10*)
10580      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10581	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10582      else
10583	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10584      fi
10585      if test "$with_gnu_ld" = no; then
10586	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10587	hardcode_libdir_flag_spec_ld='+b $libdir'
10588	hardcode_libdir_separator=:
10589	hardcode_direct=yes
10590	hardcode_direct_absolute=yes
10591	export_dynamic_flag_spec='${wl}-E'
10592	# hardcode_minus_L: Not really in the search PATH,
10593	# but as the default location of the library.
10594	hardcode_minus_L=yes
10595      fi
10596      ;;
10597
10598    hpux11*)
10599      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10600	case $host_cpu in
10601	hppa*64*)
10602	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10603	  ;;
10604	ia64*)
10605	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10606	  ;;
10607	*)
10608	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10609	  ;;
10610	esac
10611      else
10612	case $host_cpu in
10613	hppa*64*)
10614	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10615	  ;;
10616	ia64*)
10617	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10618	  ;;
10619	*)
10620
10621	  # Older versions of the 11.00 compiler do not understand -b yet
10622	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10623	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10624$as_echo_n "checking if $CC understands -b... " >&6; }
10625if ${lt_cv_prog_compiler__b+:} false; then :
10626  $as_echo_n "(cached) " >&6
10627else
10628  lt_cv_prog_compiler__b=no
10629   save_LDFLAGS="$LDFLAGS"
10630   LDFLAGS="$LDFLAGS -b"
10631   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10632   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10633     # The linker can only warn and ignore the option if not recognized
10634     # So say no if there are warnings
10635     if test -s conftest.err; then
10636       # Append any errors to the config.log.
10637       cat conftest.err 1>&5
10638       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10639       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10640       if diff conftest.exp conftest.er2 >/dev/null; then
10641         lt_cv_prog_compiler__b=yes
10642       fi
10643     else
10644       lt_cv_prog_compiler__b=yes
10645     fi
10646   fi
10647   $RM -r conftest*
10648   LDFLAGS="$save_LDFLAGS"
10649
10650fi
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10652$as_echo "$lt_cv_prog_compiler__b" >&6; }
10653
10654if test x"$lt_cv_prog_compiler__b" = xyes; then
10655    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10656else
10657    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10658fi
10659
10660	  ;;
10661	esac
10662      fi
10663      if test "$with_gnu_ld" = no; then
10664	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10665	hardcode_libdir_separator=:
10666
10667	case $host_cpu in
10668	hppa*64*|ia64*)
10669	  hardcode_direct=no
10670	  hardcode_shlibpath_var=no
10671	  ;;
10672	*)
10673	  hardcode_direct=yes
10674	  hardcode_direct_absolute=yes
10675	  export_dynamic_flag_spec='${wl}-E'
10676
10677	  # hardcode_minus_L: Not really in the search PATH,
10678	  # but as the default location of the library.
10679	  hardcode_minus_L=yes
10680	  ;;
10681	esac
10682      fi
10683      ;;
10684
10685    irix5* | irix6* | nonstopux*)
10686      if test "$GCC" = yes; then
10687	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'
10688	# Try to use the -exported_symbol ld option, if it does not
10689	# work, assume that -exports_file does not work either and
10690	# implicitly export all symbols.
10691	# This should be the same for all languages, so no per-tag cache variable.
10692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10693$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10694if ${lt_cv_irix_exported_symbol+:} false; then :
10695  $as_echo_n "(cached) " >&6
10696else
10697  save_LDFLAGS="$LDFLAGS"
10698	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10699	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700/* end confdefs.h.  */
10701int foo (void) { return 0; }
10702_ACEOF
10703if ac_fn_c_try_link "$LINENO"; then :
10704  lt_cv_irix_exported_symbol=yes
10705else
10706  lt_cv_irix_exported_symbol=no
10707fi
10708rm -f core conftest.err conftest.$ac_objext \
10709    conftest$ac_exeext conftest.$ac_ext
10710           LDFLAGS="$save_LDFLAGS"
10711fi
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10713$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10714	if test "$lt_cv_irix_exported_symbol" = yes; then
10715          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'
10716	fi
10717      else
10718	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'
10719	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'
10720      fi
10721      archive_cmds_need_lc='no'
10722      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10723      hardcode_libdir_separator=:
10724      inherit_rpath=yes
10725      link_all_deplibs=yes
10726      ;;
10727
10728    netbsd*)
10729      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10730	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10731      else
10732	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10733      fi
10734      hardcode_libdir_flag_spec='-R$libdir'
10735      hardcode_direct=yes
10736      hardcode_shlibpath_var=no
10737      ;;
10738
10739    newsos6)
10740      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741      hardcode_direct=yes
10742      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10743      hardcode_libdir_separator=:
10744      hardcode_shlibpath_var=no
10745      ;;
10746
10747    *nto* | *qnx*)
10748      ;;
10749
10750    openbsd*)
10751      if test -f /usr/libexec/ld.so; then
10752	hardcode_direct=yes
10753	hardcode_shlibpath_var=no
10754	hardcode_direct_absolute=yes
10755	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10756	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10757	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10758	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10759	  export_dynamic_flag_spec='${wl}-E'
10760	else
10761	  case $host_os in
10762	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10763	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10764	     hardcode_libdir_flag_spec='-R$libdir'
10765	     ;;
10766	   *)
10767	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10768	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10769	     ;;
10770	  esac
10771	fi
10772      else
10773	ld_shlibs=no
10774      fi
10775      ;;
10776
10777    os2*)
10778      hardcode_libdir_flag_spec='-L$libdir'
10779      hardcode_minus_L=yes
10780      allow_undefined_flag=unsupported
10781      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'
10782      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10783      ;;
10784
10785    osf3*)
10786      if test "$GCC" = yes; then
10787	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10788	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'
10789      else
10790	allow_undefined_flag=' -expect_unresolved \*'
10791	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'
10792      fi
10793      archive_cmds_need_lc='no'
10794      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10795      hardcode_libdir_separator=:
10796      ;;
10797
10798    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10799      if test "$GCC" = yes; then
10800	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10801	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'
10802	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10803      else
10804	allow_undefined_flag=' -expect_unresolved \*'
10805	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'
10806	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~
10807	$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'
10808
10809	# Both c and cxx compiler support -rpath directly
10810	hardcode_libdir_flag_spec='-rpath $libdir'
10811      fi
10812      archive_cmds_need_lc='no'
10813      hardcode_libdir_separator=:
10814      ;;
10815
10816    solaris*)
10817      no_undefined_flag=' -z defs'
10818      if test "$GCC" = yes; then
10819	wlarc='${wl}'
10820	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10821	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10822	  $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'
10823      else
10824	case `$CC -V 2>&1` in
10825	*"Compilers 5.0"*)
10826	  wlarc=''
10827	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10828	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10829	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10830	  ;;
10831	*)
10832	  wlarc='${wl}'
10833	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10834	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10835	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10836	  ;;
10837	esac
10838      fi
10839      hardcode_libdir_flag_spec='-R$libdir'
10840      hardcode_shlibpath_var=no
10841      case $host_os in
10842      solaris2.[0-5] | solaris2.[0-5].*) ;;
10843      *)
10844	# The compiler driver will combine and reorder linker options,
10845	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10846	# but is careful enough not to reorder.
10847	# Supported since Solaris 2.6 (maybe 2.5.1?)
10848	if test "$GCC" = yes; then
10849	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10850	else
10851	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10852	fi
10853	;;
10854      esac
10855      link_all_deplibs=yes
10856      ;;
10857
10858    sunos4*)
10859      if test "x$host_vendor" = xsequent; then
10860	# Use $CC to link under sequent, because it throws in some extra .o
10861	# files that make .init and .fini sections work.
10862	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10863      else
10864	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10865      fi
10866      hardcode_libdir_flag_spec='-L$libdir'
10867      hardcode_direct=yes
10868      hardcode_minus_L=yes
10869      hardcode_shlibpath_var=no
10870      ;;
10871
10872    sysv4)
10873      case $host_vendor in
10874	sni)
10875	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10876	  hardcode_direct=yes # is this really true???
10877	;;
10878	siemens)
10879	  ## LD is ld it makes a PLAMLIB
10880	  ## CC just makes a GrossModule.
10881	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10882	  reload_cmds='$CC -r -o $output$reload_objs'
10883	  hardcode_direct=no
10884        ;;
10885	motorola)
10886	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10887	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10888	;;
10889      esac
10890      runpath_var='LD_RUN_PATH'
10891      hardcode_shlibpath_var=no
10892      ;;
10893
10894    sysv4.3*)
10895      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896      hardcode_shlibpath_var=no
10897      export_dynamic_flag_spec='-Bexport'
10898      ;;
10899
10900    sysv4*MP*)
10901      if test -d /usr/nec; then
10902	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903	hardcode_shlibpath_var=no
10904	runpath_var=LD_RUN_PATH
10905	hardcode_runpath_var=yes
10906	ld_shlibs=yes
10907      fi
10908      ;;
10909
10910    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10911      no_undefined_flag='${wl}-z,text'
10912      archive_cmds_need_lc=no
10913      hardcode_shlibpath_var=no
10914      runpath_var='LD_RUN_PATH'
10915
10916      if test "$GCC" = yes; then
10917	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10919      else
10920	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922      fi
10923      ;;
10924
10925    sysv5* | sco3.2v5* | sco5v6*)
10926      # Note: We can NOT use -z defs as we might desire, because we do not
10927      # link with -lc, and that would cause any symbols used from libc to
10928      # always be unresolved, which means just about no library would
10929      # ever link correctly.  If we're not using GNU ld we use -z text
10930      # though, which does catch some bad symbols but isn't as heavy-handed
10931      # as -z defs.
10932      no_undefined_flag='${wl}-z,text'
10933      allow_undefined_flag='${wl}-z,nodefs'
10934      archive_cmds_need_lc=no
10935      hardcode_shlibpath_var=no
10936      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10937      hardcode_libdir_separator=':'
10938      link_all_deplibs=yes
10939      export_dynamic_flag_spec='${wl}-Bexport'
10940      runpath_var='LD_RUN_PATH'
10941
10942      if test "$GCC" = yes; then
10943	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10944	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945      else
10946	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948      fi
10949      ;;
10950
10951    uts4*)
10952      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10953      hardcode_libdir_flag_spec='-L$libdir'
10954      hardcode_shlibpath_var=no
10955      ;;
10956
10957    *)
10958      ld_shlibs=no
10959      ;;
10960    esac
10961
10962    if test x$host_vendor = xsni; then
10963      case $host in
10964      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10965	export_dynamic_flag_spec='${wl}-Blargedynsym'
10966	;;
10967      esac
10968    fi
10969  fi
10970
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10972$as_echo "$ld_shlibs" >&6; }
10973test "$ld_shlibs" = no && can_build_shared=no
10974
10975with_gnu_ld=$with_gnu_ld
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991#
10992# Do we need to explicitly link libc?
10993#
10994case "x$archive_cmds_need_lc" in
10995x|xyes)
10996  # Assume -lc should be added
10997  archive_cmds_need_lc=yes
10998
10999  if test "$enable_shared" = yes && test "$GCC" = yes; then
11000    case $archive_cmds in
11001    *'~'*)
11002      # FIXME: we may have to deal with multi-command sequences.
11003      ;;
11004    '$CC '*)
11005      # Test whether the compiler implicitly links with -lc since on some
11006      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11007      # to ld, don't add -lc before -lgcc.
11008      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11009$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11010if ${lt_cv_archive_cmds_need_lc+:} false; then :
11011  $as_echo_n "(cached) " >&6
11012else
11013  $RM conftest*
11014	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11015
11016	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11017  (eval $ac_compile) 2>&5
11018  ac_status=$?
11019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11020  test $ac_status = 0; } 2>conftest.err; then
11021	  soname=conftest
11022	  lib=conftest
11023	  libobjs=conftest.$ac_objext
11024	  deplibs=
11025	  wl=$lt_prog_compiler_wl
11026	  pic_flag=$lt_prog_compiler_pic
11027	  compiler_flags=-v
11028	  linker_flags=-v
11029	  verstring=
11030	  output_objdir=.
11031	  libname=conftest
11032	  lt_save_allow_undefined_flag=$allow_undefined_flag
11033	  allow_undefined_flag=
11034	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11035  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11036  ac_status=$?
11037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11038  test $ac_status = 0; }
11039	  then
11040	    lt_cv_archive_cmds_need_lc=no
11041	  else
11042	    lt_cv_archive_cmds_need_lc=yes
11043	  fi
11044	  allow_undefined_flag=$lt_save_allow_undefined_flag
11045	else
11046	  cat conftest.err 1>&5
11047	fi
11048	$RM conftest*
11049
11050fi
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11052$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11053      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11054      ;;
11055    esac
11056  fi
11057  ;;
11058esac
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11217$as_echo_n "checking dynamic linker characteristics... " >&6; }
11218
11219if test "$GCC" = yes; then
11220  case $host_os in
11221    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11222    *) lt_awk_arg="/^libraries:/" ;;
11223  esac
11224  case $host_os in
11225    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11226    *) lt_sed_strip_eq="s,=/,/,g" ;;
11227  esac
11228  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11229  case $lt_search_path_spec in
11230  *\;*)
11231    # if the path contains ";" then we assume it to be the separator
11232    # otherwise default to the standard path separator (i.e. ":") - it is
11233    # assumed that no part of a normal pathname contains ";" but that should
11234    # okay in the real world where ";" in dirpaths is itself problematic.
11235    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11236    ;;
11237  *)
11238    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11239    ;;
11240  esac
11241  # Ok, now we have the path, separated by spaces, we can step through it
11242  # and add multilib dir if necessary.
11243  lt_tmp_lt_search_path_spec=
11244  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11245  for lt_sys_path in $lt_search_path_spec; do
11246    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11247      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11248    else
11249      test -d "$lt_sys_path" && \
11250	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11251    fi
11252  done
11253  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11254BEGIN {RS=" "; FS="/|\n";} {
11255  lt_foo="";
11256  lt_count=0;
11257  for (lt_i = NF; lt_i > 0; lt_i--) {
11258    if ($lt_i != "" && $lt_i != ".") {
11259      if ($lt_i == "..") {
11260        lt_count++;
11261      } else {
11262        if (lt_count == 0) {
11263          lt_foo="/" $lt_i lt_foo;
11264        } else {
11265          lt_count--;
11266        }
11267      }
11268    }
11269  }
11270  if (lt_foo != "") { lt_freq[lt_foo]++; }
11271  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11272}'`
11273  # AWK program above erroneously prepends '/' to C:/dos/paths
11274  # for these hosts.
11275  case $host_os in
11276    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11277      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11278  esac
11279  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11280else
11281  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11282fi
11283library_names_spec=
11284libname_spec='lib$name'
11285soname_spec=
11286shrext_cmds=".so"
11287postinstall_cmds=
11288postuninstall_cmds=
11289finish_cmds=
11290finish_eval=
11291shlibpath_var=
11292shlibpath_overrides_runpath=unknown
11293version_type=none
11294dynamic_linker="$host_os ld.so"
11295sys_lib_dlsearch_path_spec="/lib /usr/lib"
11296need_lib_prefix=unknown
11297hardcode_into_libs=no
11298
11299# when you set need_version to no, make sure it does not cause -set_version
11300# flags to be left without arguments
11301need_version=unknown
11302
11303case $host_os in
11304aix3*)
11305  version_type=linux
11306  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11307  shlibpath_var=LIBPATH
11308
11309  # AIX 3 has no versioning support, so we append a major version to the name.
11310  soname_spec='${libname}${release}${shared_ext}$major'
11311  ;;
11312
11313aix[4-9]*)
11314  version_type=linux
11315  need_lib_prefix=no
11316  need_version=no
11317  hardcode_into_libs=yes
11318  if test "$host_cpu" = ia64; then
11319    # AIX 5 supports IA64
11320    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11321    shlibpath_var=LD_LIBRARY_PATH
11322  else
11323    # With GCC up to 2.95.x, collect2 would create an import file
11324    # for dependence libraries.  The import file would start with
11325    # the line `#! .'.  This would cause the generated library to
11326    # depend on `.', always an invalid library.  This was fixed in
11327    # development snapshots of GCC prior to 3.0.
11328    case $host_os in
11329      aix4 | aix4.[01] | aix4.[01].*)
11330      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11331	   echo ' yes '
11332	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11333	:
11334      else
11335	can_build_shared=no
11336      fi
11337      ;;
11338    esac
11339    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11340    # soname into executable. Probably we can add versioning support to
11341    # collect2, so additional links can be useful in future.
11342    if test "$aix_use_runtimelinking" = yes; then
11343      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11344      # instead of lib<name>.a to let people know that these are not
11345      # typical AIX shared libraries.
11346      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347    else
11348      # We preserve .a as extension for shared libraries through AIX4.2
11349      # and later when we are not doing run time linking.
11350      library_names_spec='${libname}${release}.a $libname.a'
11351      soname_spec='${libname}${release}${shared_ext}$major'
11352    fi
11353    shlibpath_var=LIBPATH
11354  fi
11355  ;;
11356
11357amigaos*)
11358  case $host_cpu in
11359  powerpc)
11360    # Since July 2007 AmigaOS4 officially supports .so libraries.
11361    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11362    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363    ;;
11364  m68k)
11365    library_names_spec='$libname.ixlibrary $libname.a'
11366    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11367    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'
11368    ;;
11369  esac
11370  ;;
11371
11372beos*)
11373  library_names_spec='${libname}${shared_ext}'
11374  dynamic_linker="$host_os ld.so"
11375  shlibpath_var=LIBRARY_PATH
11376  ;;
11377
11378bsdi[45]*)
11379  version_type=linux
11380  need_version=no
11381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382  soname_spec='${libname}${release}${shared_ext}$major'
11383  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11384  shlibpath_var=LD_LIBRARY_PATH
11385  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11386  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11387  # the default ld.so.conf also contains /usr/contrib/lib and
11388  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11389  # libtool to hard-code these into programs
11390  ;;
11391
11392cygwin* | mingw* | pw32* | cegcc*)
11393  version_type=windows
11394  shrext_cmds=".dll"
11395  need_version=no
11396  need_lib_prefix=no
11397
11398  case $GCC,$cc_basename in
11399  yes,*)
11400    # gcc
11401    library_names_spec='$libname.dll.a'
11402    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11403    postinstall_cmds='base_file=`basename \${file}`~
11404      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11405      dldir=$destdir/`dirname \$dlpath`~
11406      test -d \$dldir || mkdir -p \$dldir~
11407      $install_prog $dir/$dlname \$dldir/$dlname~
11408      chmod a+x \$dldir/$dlname~
11409      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11410        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11411      fi'
11412    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11413      dlpath=$dir/\$dldll~
11414       $RM \$dlpath'
11415    shlibpath_overrides_runpath=yes
11416
11417    case $host_os in
11418    cygwin*)
11419      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11420      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11421
11422      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11423      ;;
11424    mingw* | cegcc*)
11425      # MinGW DLLs use traditional 'lib' prefix
11426      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11427      ;;
11428    pw32*)
11429      # pw32 DLLs use 'pw' prefix rather than 'lib'
11430      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11431      ;;
11432    esac
11433    dynamic_linker='Win32 ld.exe'
11434    ;;
11435
11436  *,cl*)
11437    # Native MSVC
11438    libname_spec='$name'
11439    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11440    library_names_spec='${libname}.dll.lib'
11441
11442    case $build_os in
11443    mingw*)
11444      sys_lib_search_path_spec=
11445      lt_save_ifs=$IFS
11446      IFS=';'
11447      for lt_path in $LIB
11448      do
11449        IFS=$lt_save_ifs
11450        # Let DOS variable expansion print the short 8.3 style file name.
11451        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11452        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11453      done
11454      IFS=$lt_save_ifs
11455      # Convert to MSYS style.
11456      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11457      ;;
11458    cygwin*)
11459      # Convert to unix form, then to dos form, then back to unix form
11460      # but this time dos style (no spaces!) so that the unix form looks
11461      # like /cygdrive/c/PROGRA~1:/cygdr...
11462      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11463      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11464      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11465      ;;
11466    *)
11467      sys_lib_search_path_spec="$LIB"
11468      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11469        # It is most probably a Windows format PATH.
11470        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11471      else
11472        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11473      fi
11474      # FIXME: find the short name or the path components, as spaces are
11475      # common. (e.g. "Program Files" -> "PROGRA~1")
11476      ;;
11477    esac
11478
11479    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11480    postinstall_cmds='base_file=`basename \${file}`~
11481      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11482      dldir=$destdir/`dirname \$dlpath`~
11483      test -d \$dldir || mkdir -p \$dldir~
11484      $install_prog $dir/$dlname \$dldir/$dlname'
11485    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11486      dlpath=$dir/\$dldll~
11487       $RM \$dlpath'
11488    shlibpath_overrides_runpath=yes
11489    dynamic_linker='Win32 link.exe'
11490    ;;
11491
11492  *)
11493    # Assume MSVC wrapper
11494    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11495    dynamic_linker='Win32 ld.exe'
11496    ;;
11497  esac
11498  # FIXME: first we should search . and the directory the executable is in
11499  shlibpath_var=PATH
11500  ;;
11501
11502darwin* | rhapsody*)
11503  dynamic_linker="$host_os dyld"
11504  version_type=darwin
11505  need_lib_prefix=no
11506  need_version=no
11507  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11508  soname_spec='${libname}${release}${major}$shared_ext'
11509  shlibpath_overrides_runpath=yes
11510  shlibpath_var=DYLD_LIBRARY_PATH
11511  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11512
11513  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11514  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11515  ;;
11516
11517dgux*)
11518  version_type=linux
11519  need_lib_prefix=no
11520  need_version=no
11521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11522  soname_spec='${libname}${release}${shared_ext}$major'
11523  shlibpath_var=LD_LIBRARY_PATH
11524  ;;
11525
11526freebsd1*)
11527  dynamic_linker=no
11528  ;;
11529
11530freebsd* | dragonfly*)
11531  # DragonFly does not have aout.  When/if they implement a new
11532  # versioning mechanism, adjust this.
11533  if test -x /usr/bin/objformat; then
11534    objformat=`/usr/bin/objformat`
11535  else
11536    case $host_os in
11537    freebsd[123]*) objformat=aout ;;
11538    *) objformat=elf ;;
11539    esac
11540  fi
11541  version_type=freebsd-$objformat
11542  case $version_type in
11543    freebsd-elf*)
11544      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11545      need_version=no
11546      need_lib_prefix=no
11547      ;;
11548    freebsd-*)
11549      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11550      need_version=yes
11551      ;;
11552  esac
11553  shlibpath_var=LD_LIBRARY_PATH
11554  case $host_os in
11555  freebsd2*)
11556    shlibpath_overrides_runpath=yes
11557    ;;
11558  freebsd3.[01]* | freebsdelf3.[01]*)
11559    shlibpath_overrides_runpath=yes
11560    hardcode_into_libs=yes
11561    ;;
11562  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11563  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11564    shlibpath_overrides_runpath=no
11565    hardcode_into_libs=yes
11566    ;;
11567  *) # from 4.6 on, and DragonFly
11568    shlibpath_overrides_runpath=yes
11569    hardcode_into_libs=yes
11570    ;;
11571  esac
11572  ;;
11573
11574gnu*)
11575  version_type=linux
11576  need_lib_prefix=no
11577  need_version=no
11578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11579  soname_spec='${libname}${release}${shared_ext}$major'
11580  shlibpath_var=LD_LIBRARY_PATH
11581  hardcode_into_libs=yes
11582  ;;
11583
11584haiku*)
11585  version_type=linux
11586  need_lib_prefix=no
11587  need_version=no
11588  dynamic_linker="$host_os runtime_loader"
11589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11590  soname_spec='${libname}${release}${shared_ext}$major'
11591  shlibpath_var=LIBRARY_PATH
11592  shlibpath_overrides_runpath=yes
11593  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11594  hardcode_into_libs=yes
11595  ;;
11596
11597hpux9* | hpux10* | hpux11*)
11598  # Give a soname corresponding to the major version so that dld.sl refuses to
11599  # link against other versions.
11600  version_type=sunos
11601  need_lib_prefix=no
11602  need_version=no
11603  case $host_cpu in
11604  ia64*)
11605    shrext_cmds='.so'
11606    hardcode_into_libs=yes
11607    dynamic_linker="$host_os dld.so"
11608    shlibpath_var=LD_LIBRARY_PATH
11609    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11610    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11611    soname_spec='${libname}${release}${shared_ext}$major'
11612    if test "X$HPUX_IA64_MODE" = X32; then
11613      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11614    else
11615      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11616    fi
11617    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11618    ;;
11619  hppa*64*)
11620    shrext_cmds='.sl'
11621    hardcode_into_libs=yes
11622    dynamic_linker="$host_os dld.sl"
11623    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11624    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11625    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626    soname_spec='${libname}${release}${shared_ext}$major'
11627    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11628    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11629    ;;
11630  *)
11631    shrext_cmds='.sl'
11632    dynamic_linker="$host_os dld.sl"
11633    shlibpath_var=SHLIB_PATH
11634    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11635    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636    soname_spec='${libname}${release}${shared_ext}$major'
11637    ;;
11638  esac
11639  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11640  postinstall_cmds='chmod 555 $lib'
11641  # or fails outright, so override atomically:
11642  install_override_mode=555
11643  ;;
11644
11645interix[3-9]*)
11646  version_type=linux
11647  need_lib_prefix=no
11648  need_version=no
11649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650  soname_spec='${libname}${release}${shared_ext}$major'
11651  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11652  shlibpath_var=LD_LIBRARY_PATH
11653  shlibpath_overrides_runpath=no
11654  hardcode_into_libs=yes
11655  ;;
11656
11657irix5* | irix6* | nonstopux*)
11658  case $host_os in
11659    nonstopux*) version_type=nonstopux ;;
11660    *)
11661	if test "$lt_cv_prog_gnu_ld" = yes; then
11662		version_type=linux
11663	else
11664		version_type=irix
11665	fi ;;
11666  esac
11667  need_lib_prefix=no
11668  need_version=no
11669  soname_spec='${libname}${release}${shared_ext}$major'
11670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11671  case $host_os in
11672  irix5* | nonstopux*)
11673    libsuff= shlibsuff=
11674    ;;
11675  *)
11676    case $LD in # libtool.m4 will add one of these switches to LD
11677    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11678      libsuff= shlibsuff= libmagic=32-bit;;
11679    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11680      libsuff=32 shlibsuff=N32 libmagic=N32;;
11681    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11682      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11683    *) libsuff= shlibsuff= libmagic=never-match;;
11684    esac
11685    ;;
11686  esac
11687  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11688  shlibpath_overrides_runpath=no
11689  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11690  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11691  hardcode_into_libs=yes
11692  ;;
11693
11694# No shared lib support for Linux oldld, aout, or coff.
11695linux*oldld* | linux*aout* | linux*coff*)
11696  dynamic_linker=no
11697  ;;
11698
11699# This must be Linux ELF.
11700linux* | k*bsd*-gnu | kopensolaris*-gnu)
11701  version_type=linux
11702  need_lib_prefix=no
11703  need_version=no
11704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705  soname_spec='${libname}${release}${shared_ext}$major'
11706  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11707  shlibpath_var=LD_LIBRARY_PATH
11708  shlibpath_overrides_runpath=no
11709
11710  # Some binutils ld are patched to set DT_RUNPATH
11711  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11712  $as_echo_n "(cached) " >&6
11713else
11714  lt_cv_shlibpath_overrides_runpath=no
11715    save_LDFLAGS=$LDFLAGS
11716    save_libdir=$libdir
11717    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11718	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720/* end confdefs.h.  */
11721
11722int
11723main ()
11724{
11725
11726  ;
11727  return 0;
11728}
11729_ACEOF
11730if ac_fn_c_try_link "$LINENO"; then :
11731  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11732  lt_cv_shlibpath_overrides_runpath=yes
11733fi
11734fi
11735rm -f core conftest.err conftest.$ac_objext \
11736    conftest$ac_exeext conftest.$ac_ext
11737    LDFLAGS=$save_LDFLAGS
11738    libdir=$save_libdir
11739
11740fi
11741
11742  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11743
11744  # This implies no fast_install, which is unacceptable.
11745  # Some rework will be needed to allow for fast_install
11746  # before this can be enabled.
11747  hardcode_into_libs=yes
11748
11749  # Append ld.so.conf contents to the search path
11750  if test -f /etc/ld.so.conf; then
11751    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' ' '`
11752    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11753  fi
11754
11755  # We used to test for /lib/ld.so.1 and disable shared libraries on
11756  # powerpc, because MkLinux only supported shared libraries with the
11757  # GNU dynamic linker.  Since this was broken with cross compilers,
11758  # most powerpc-linux boxes support dynamic linking these days and
11759  # people can always --disable-shared, the test was removed, and we
11760  # assume the GNU/Linux dynamic linker is in use.
11761  dynamic_linker='GNU/Linux ld.so'
11762  ;;
11763
11764netbsd*)
11765  version_type=sunos
11766  need_lib_prefix=no
11767  need_version=no
11768  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11769    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11770    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11771    dynamic_linker='NetBSD (a.out) ld.so'
11772  else
11773    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11774    soname_spec='${libname}${release}${shared_ext}$major'
11775    dynamic_linker='NetBSD ld.elf_so'
11776  fi
11777  shlibpath_var=LD_LIBRARY_PATH
11778  shlibpath_overrides_runpath=yes
11779  hardcode_into_libs=yes
11780  ;;
11781
11782newsos6)
11783  version_type=linux
11784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785  shlibpath_var=LD_LIBRARY_PATH
11786  shlibpath_overrides_runpath=yes
11787  ;;
11788
11789*nto* | *qnx*)
11790  version_type=qnx
11791  need_lib_prefix=no
11792  need_version=no
11793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794  soname_spec='${libname}${release}${shared_ext}$major'
11795  shlibpath_var=LD_LIBRARY_PATH
11796  shlibpath_overrides_runpath=no
11797  hardcode_into_libs=yes
11798  dynamic_linker='ldqnx.so'
11799  ;;
11800
11801openbsd*)
11802  version_type=sunos
11803  sys_lib_dlsearch_path_spec="/usr/lib"
11804  need_lib_prefix=no
11805  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11806  case $host_os in
11807    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11808    *)				need_version=no  ;;
11809  esac
11810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11811  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11812  shlibpath_var=LD_LIBRARY_PATH
11813  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11814    case $host_os in
11815      openbsd2.[89] | openbsd2.[89].*)
11816	shlibpath_overrides_runpath=no
11817	;;
11818      *)
11819	shlibpath_overrides_runpath=yes
11820	;;
11821      esac
11822  else
11823    shlibpath_overrides_runpath=yes
11824  fi
11825  ;;
11826
11827os2*)
11828  libname_spec='$name'
11829  shrext_cmds=".dll"
11830  need_lib_prefix=no
11831  library_names_spec='$libname${shared_ext} $libname.a'
11832  dynamic_linker='OS/2 ld.exe'
11833  shlibpath_var=LIBPATH
11834  ;;
11835
11836osf3* | osf4* | osf5*)
11837  version_type=osf
11838  need_lib_prefix=no
11839  need_version=no
11840  soname_spec='${libname}${release}${shared_ext}$major'
11841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11842  shlibpath_var=LD_LIBRARY_PATH
11843  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11844  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11845  ;;
11846
11847rdos*)
11848  dynamic_linker=no
11849  ;;
11850
11851solaris*)
11852  version_type=linux
11853  need_lib_prefix=no
11854  need_version=no
11855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856  soname_spec='${libname}${release}${shared_ext}$major'
11857  shlibpath_var=LD_LIBRARY_PATH
11858  shlibpath_overrides_runpath=yes
11859  hardcode_into_libs=yes
11860  # ldd complains unless libraries are executable
11861  postinstall_cmds='chmod +x $lib'
11862  ;;
11863
11864sunos4*)
11865  version_type=sunos
11866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11867  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11868  shlibpath_var=LD_LIBRARY_PATH
11869  shlibpath_overrides_runpath=yes
11870  if test "$with_gnu_ld" = yes; then
11871    need_lib_prefix=no
11872  fi
11873  need_version=yes
11874  ;;
11875
11876sysv4 | sysv4.3*)
11877  version_type=linux
11878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879  soname_spec='${libname}${release}${shared_ext}$major'
11880  shlibpath_var=LD_LIBRARY_PATH
11881  case $host_vendor in
11882    sni)
11883      shlibpath_overrides_runpath=no
11884      need_lib_prefix=no
11885      runpath_var=LD_RUN_PATH
11886      ;;
11887    siemens)
11888      need_lib_prefix=no
11889      ;;
11890    motorola)
11891      need_lib_prefix=no
11892      need_version=no
11893      shlibpath_overrides_runpath=no
11894      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11895      ;;
11896  esac
11897  ;;
11898
11899sysv4*MP*)
11900  if test -d /usr/nec ;then
11901    version_type=linux
11902    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11903    soname_spec='$libname${shared_ext}.$major'
11904    shlibpath_var=LD_LIBRARY_PATH
11905  fi
11906  ;;
11907
11908sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11909  version_type=freebsd-elf
11910  need_lib_prefix=no
11911  need_version=no
11912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11913  soname_spec='${libname}${release}${shared_ext}$major'
11914  shlibpath_var=LD_LIBRARY_PATH
11915  shlibpath_overrides_runpath=yes
11916  hardcode_into_libs=yes
11917  if test "$with_gnu_ld" = yes; then
11918    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11919  else
11920    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11921    case $host_os in
11922      sco3.2v5*)
11923        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11924	;;
11925    esac
11926  fi
11927  sys_lib_dlsearch_path_spec='/usr/lib'
11928  ;;
11929
11930tpf*)
11931  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11932  version_type=linux
11933  need_lib_prefix=no
11934  need_version=no
11935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11936  shlibpath_var=LD_LIBRARY_PATH
11937  shlibpath_overrides_runpath=no
11938  hardcode_into_libs=yes
11939  ;;
11940
11941uts4*)
11942  version_type=linux
11943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944  soname_spec='${libname}${release}${shared_ext}$major'
11945  shlibpath_var=LD_LIBRARY_PATH
11946  ;;
11947
11948*)
11949  dynamic_linker=no
11950  ;;
11951esac
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11953$as_echo "$dynamic_linker" >&6; }
11954test "$dynamic_linker" = no && can_build_shared=no
11955
11956variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11957if test "$GCC" = yes; then
11958  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11959fi
11960
11961if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11962  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11963fi
11964if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11965  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11966fi
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12060$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12061hardcode_action=
12062if test -n "$hardcode_libdir_flag_spec" ||
12063   test -n "$runpath_var" ||
12064   test "X$hardcode_automatic" = "Xyes" ; then
12065
12066  # We can hardcode non-existent directories.
12067  if test "$hardcode_direct" != no &&
12068     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12069     # have to relink, otherwise we might link with an installed library
12070     # when we should be linking with a yet-to-be-installed one
12071     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12072     test "$hardcode_minus_L" != no; then
12073    # Linking always hardcodes the temporary library directory.
12074    hardcode_action=relink
12075  else
12076    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12077    hardcode_action=immediate
12078  fi
12079else
12080  # We cannot hardcode anything, or else we can only hardcode existing
12081  # directories.
12082  hardcode_action=unsupported
12083fi
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12085$as_echo "$hardcode_action" >&6; }
12086
12087if test "$hardcode_action" = relink ||
12088   test "$inherit_rpath" = yes; then
12089  # Fast installation is not supported
12090  enable_fast_install=no
12091elif test "$shlibpath_overrides_runpath" = yes ||
12092     test "$enable_shared" = no; then
12093  # Fast installation is not necessary
12094  enable_fast_install=needless
12095fi
12096
12097
12098
12099
12100
12101
12102  if test "x$enable_dlopen" != xyes; then
12103  enable_dlopen=unknown
12104  enable_dlopen_self=unknown
12105  enable_dlopen_self_static=unknown
12106else
12107  lt_cv_dlopen=no
12108  lt_cv_dlopen_libs=
12109
12110  case $host_os in
12111  beos*)
12112    lt_cv_dlopen="load_add_on"
12113    lt_cv_dlopen_libs=
12114    lt_cv_dlopen_self=yes
12115    ;;
12116
12117  mingw* | pw32* | cegcc*)
12118    lt_cv_dlopen="LoadLibrary"
12119    lt_cv_dlopen_libs=
12120    ;;
12121
12122  cygwin*)
12123    lt_cv_dlopen="dlopen"
12124    lt_cv_dlopen_libs=
12125    ;;
12126
12127  darwin*)
12128  # if libdl is installed we need to link against it
12129    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12130$as_echo_n "checking for dlopen in -ldl... " >&6; }
12131if ${ac_cv_lib_dl_dlopen+:} false; then :
12132  $as_echo_n "(cached) " >&6
12133else
12134  ac_check_lib_save_LIBS=$LIBS
12135LIBS="-ldl  $LIBS"
12136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137/* end confdefs.h.  */
12138
12139/* Override any GCC internal prototype to avoid an error.
12140   Use char because int might match the return type of a GCC
12141   builtin and then its argument prototype would still apply.  */
12142#ifdef __cplusplus
12143extern "C"
12144#endif
12145char dlopen ();
12146int
12147main ()
12148{
12149return dlopen ();
12150  ;
12151  return 0;
12152}
12153_ACEOF
12154if ac_fn_c_try_link "$LINENO"; then :
12155  ac_cv_lib_dl_dlopen=yes
12156else
12157  ac_cv_lib_dl_dlopen=no
12158fi
12159rm -f core conftest.err conftest.$ac_objext \
12160    conftest$ac_exeext conftest.$ac_ext
12161LIBS=$ac_check_lib_save_LIBS
12162fi
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12164$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12165if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12166  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12167else
12168
12169    lt_cv_dlopen="dyld"
12170    lt_cv_dlopen_libs=
12171    lt_cv_dlopen_self=yes
12172
12173fi
12174
12175    ;;
12176
12177  *)
12178    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12179if test "x$ac_cv_func_shl_load" = xyes; then :
12180  lt_cv_dlopen="shl_load"
12181else
12182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12183$as_echo_n "checking for shl_load in -ldld... " >&6; }
12184if ${ac_cv_lib_dld_shl_load+:} false; then :
12185  $as_echo_n "(cached) " >&6
12186else
12187  ac_check_lib_save_LIBS=$LIBS
12188LIBS="-ldld  $LIBS"
12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190/* end confdefs.h.  */
12191
12192/* Override any GCC internal prototype to avoid an error.
12193   Use char because int might match the return type of a GCC
12194   builtin and then its argument prototype would still apply.  */
12195#ifdef __cplusplus
12196extern "C"
12197#endif
12198char shl_load ();
12199int
12200main ()
12201{
12202return shl_load ();
12203  ;
12204  return 0;
12205}
12206_ACEOF
12207if ac_fn_c_try_link "$LINENO"; then :
12208  ac_cv_lib_dld_shl_load=yes
12209else
12210  ac_cv_lib_dld_shl_load=no
12211fi
12212rm -f core conftest.err conftest.$ac_objext \
12213    conftest$ac_exeext conftest.$ac_ext
12214LIBS=$ac_check_lib_save_LIBS
12215fi
12216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12217$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12218if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12219  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12220else
12221  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12222if test "x$ac_cv_func_dlopen" = xyes; then :
12223  lt_cv_dlopen="dlopen"
12224else
12225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12226$as_echo_n "checking for dlopen in -ldl... " >&6; }
12227if ${ac_cv_lib_dl_dlopen+:} false; then :
12228  $as_echo_n "(cached) " >&6
12229else
12230  ac_check_lib_save_LIBS=$LIBS
12231LIBS="-ldl  $LIBS"
12232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233/* end confdefs.h.  */
12234
12235/* Override any GCC internal prototype to avoid an error.
12236   Use char because int might match the return type of a GCC
12237   builtin and then its argument prototype would still apply.  */
12238#ifdef __cplusplus
12239extern "C"
12240#endif
12241char dlopen ();
12242int
12243main ()
12244{
12245return dlopen ();
12246  ;
12247  return 0;
12248}
12249_ACEOF
12250if ac_fn_c_try_link "$LINENO"; then :
12251  ac_cv_lib_dl_dlopen=yes
12252else
12253  ac_cv_lib_dl_dlopen=no
12254fi
12255rm -f core conftest.err conftest.$ac_objext \
12256    conftest$ac_exeext conftest.$ac_ext
12257LIBS=$ac_check_lib_save_LIBS
12258fi
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12260$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12261if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12262  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12263else
12264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12265$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12266if ${ac_cv_lib_svld_dlopen+:} false; then :
12267  $as_echo_n "(cached) " >&6
12268else
12269  ac_check_lib_save_LIBS=$LIBS
12270LIBS="-lsvld  $LIBS"
12271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272/* end confdefs.h.  */
12273
12274/* Override any GCC internal prototype to avoid an error.
12275   Use char because int might match the return type of a GCC
12276   builtin and then its argument prototype would still apply.  */
12277#ifdef __cplusplus
12278extern "C"
12279#endif
12280char dlopen ();
12281int
12282main ()
12283{
12284return dlopen ();
12285  ;
12286  return 0;
12287}
12288_ACEOF
12289if ac_fn_c_try_link "$LINENO"; then :
12290  ac_cv_lib_svld_dlopen=yes
12291else
12292  ac_cv_lib_svld_dlopen=no
12293fi
12294rm -f core conftest.err conftest.$ac_objext \
12295    conftest$ac_exeext conftest.$ac_ext
12296LIBS=$ac_check_lib_save_LIBS
12297fi
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12299$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12300if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12301  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12302else
12303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12304$as_echo_n "checking for dld_link in -ldld... " >&6; }
12305if ${ac_cv_lib_dld_dld_link+:} false; then :
12306  $as_echo_n "(cached) " >&6
12307else
12308  ac_check_lib_save_LIBS=$LIBS
12309LIBS="-ldld  $LIBS"
12310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311/* end confdefs.h.  */
12312
12313/* Override any GCC internal prototype to avoid an error.
12314   Use char because int might match the return type of a GCC
12315   builtin and then its argument prototype would still apply.  */
12316#ifdef __cplusplus
12317extern "C"
12318#endif
12319char dld_link ();
12320int
12321main ()
12322{
12323return dld_link ();
12324  ;
12325  return 0;
12326}
12327_ACEOF
12328if ac_fn_c_try_link "$LINENO"; then :
12329  ac_cv_lib_dld_dld_link=yes
12330else
12331  ac_cv_lib_dld_dld_link=no
12332fi
12333rm -f core conftest.err conftest.$ac_objext \
12334    conftest$ac_exeext conftest.$ac_ext
12335LIBS=$ac_check_lib_save_LIBS
12336fi
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12338$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12339if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12340  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12341fi
12342
12343
12344fi
12345
12346
12347fi
12348
12349
12350fi
12351
12352
12353fi
12354
12355
12356fi
12357
12358    ;;
12359  esac
12360
12361  if test "x$lt_cv_dlopen" != xno; then
12362    enable_dlopen=yes
12363  else
12364    enable_dlopen=no
12365  fi
12366
12367  case $lt_cv_dlopen in
12368  dlopen)
12369    save_CPPFLAGS="$CPPFLAGS"
12370    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12371
12372    save_LDFLAGS="$LDFLAGS"
12373    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12374
12375    save_LIBS="$LIBS"
12376    LIBS="$lt_cv_dlopen_libs $LIBS"
12377
12378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12379$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12380if ${lt_cv_dlopen_self+:} false; then :
12381  $as_echo_n "(cached) " >&6
12382else
12383  	  if test "$cross_compiling" = yes; then :
12384  lt_cv_dlopen_self=cross
12385else
12386  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12387  lt_status=$lt_dlunknown
12388  cat > conftest.$ac_ext <<_LT_EOF
12389#line $LINENO "configure"
12390#include "confdefs.h"
12391
12392#if HAVE_DLFCN_H
12393#include <dlfcn.h>
12394#endif
12395
12396#include <stdio.h>
12397
12398#ifdef RTLD_GLOBAL
12399#  define LT_DLGLOBAL		RTLD_GLOBAL
12400#else
12401#  ifdef DL_GLOBAL
12402#    define LT_DLGLOBAL		DL_GLOBAL
12403#  else
12404#    define LT_DLGLOBAL		0
12405#  endif
12406#endif
12407
12408/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12409   find out it does not work in some platform. */
12410#ifndef LT_DLLAZY_OR_NOW
12411#  ifdef RTLD_LAZY
12412#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12413#  else
12414#    ifdef DL_LAZY
12415#      define LT_DLLAZY_OR_NOW		DL_LAZY
12416#    else
12417#      ifdef RTLD_NOW
12418#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12419#      else
12420#        ifdef DL_NOW
12421#          define LT_DLLAZY_OR_NOW	DL_NOW
12422#        else
12423#          define LT_DLLAZY_OR_NOW	0
12424#        endif
12425#      endif
12426#    endif
12427#  endif
12428#endif
12429
12430/* When -fvisbility=hidden is used, assume the code has been annotated
12431   correspondingly for the symbols needed.  */
12432#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12433int fnord () __attribute__((visibility("default")));
12434#endif
12435
12436int fnord () { return 42; }
12437int main ()
12438{
12439  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12440  int status = $lt_dlunknown;
12441
12442  if (self)
12443    {
12444      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12445      else
12446        {
12447	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12448          else puts (dlerror ());
12449	}
12450      /* dlclose (self); */
12451    }
12452  else
12453    puts (dlerror ());
12454
12455  return status;
12456}
12457_LT_EOF
12458  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12459  (eval $ac_link) 2>&5
12460  ac_status=$?
12461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12462  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12463    (./conftest; exit; ) >&5 2>/dev/null
12464    lt_status=$?
12465    case x$lt_status in
12466      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12467      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12468      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12469    esac
12470  else :
12471    # compilation failed
12472    lt_cv_dlopen_self=no
12473  fi
12474fi
12475rm -fr conftest*
12476
12477
12478fi
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12480$as_echo "$lt_cv_dlopen_self" >&6; }
12481
12482    if test "x$lt_cv_dlopen_self" = xyes; then
12483      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12484      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12485$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12486if ${lt_cv_dlopen_self_static+:} false; then :
12487  $as_echo_n "(cached) " >&6
12488else
12489  	  if test "$cross_compiling" = yes; then :
12490  lt_cv_dlopen_self_static=cross
12491else
12492  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12493  lt_status=$lt_dlunknown
12494  cat > conftest.$ac_ext <<_LT_EOF
12495#line $LINENO "configure"
12496#include "confdefs.h"
12497
12498#if HAVE_DLFCN_H
12499#include <dlfcn.h>
12500#endif
12501
12502#include <stdio.h>
12503
12504#ifdef RTLD_GLOBAL
12505#  define LT_DLGLOBAL		RTLD_GLOBAL
12506#else
12507#  ifdef DL_GLOBAL
12508#    define LT_DLGLOBAL		DL_GLOBAL
12509#  else
12510#    define LT_DLGLOBAL		0
12511#  endif
12512#endif
12513
12514/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12515   find out it does not work in some platform. */
12516#ifndef LT_DLLAZY_OR_NOW
12517#  ifdef RTLD_LAZY
12518#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12519#  else
12520#    ifdef DL_LAZY
12521#      define LT_DLLAZY_OR_NOW		DL_LAZY
12522#    else
12523#      ifdef RTLD_NOW
12524#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12525#      else
12526#        ifdef DL_NOW
12527#          define LT_DLLAZY_OR_NOW	DL_NOW
12528#        else
12529#          define LT_DLLAZY_OR_NOW	0
12530#        endif
12531#      endif
12532#    endif
12533#  endif
12534#endif
12535
12536/* When -fvisbility=hidden is used, assume the code has been annotated
12537   correspondingly for the symbols needed.  */
12538#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12539int fnord () __attribute__((visibility("default")));
12540#endif
12541
12542int fnord () { return 42; }
12543int main ()
12544{
12545  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12546  int status = $lt_dlunknown;
12547
12548  if (self)
12549    {
12550      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12551      else
12552        {
12553	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12554          else puts (dlerror ());
12555	}
12556      /* dlclose (self); */
12557    }
12558  else
12559    puts (dlerror ());
12560
12561  return status;
12562}
12563_LT_EOF
12564  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12565  (eval $ac_link) 2>&5
12566  ac_status=$?
12567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12568  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12569    (./conftest; exit; ) >&5 2>/dev/null
12570    lt_status=$?
12571    case x$lt_status in
12572      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12573      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12574      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12575    esac
12576  else :
12577    # compilation failed
12578    lt_cv_dlopen_self_static=no
12579  fi
12580fi
12581rm -fr conftest*
12582
12583
12584fi
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12586$as_echo "$lt_cv_dlopen_self_static" >&6; }
12587    fi
12588
12589    CPPFLAGS="$save_CPPFLAGS"
12590    LDFLAGS="$save_LDFLAGS"
12591    LIBS="$save_LIBS"
12592    ;;
12593  esac
12594
12595  case $lt_cv_dlopen_self in
12596  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12597  *) enable_dlopen_self=unknown ;;
12598  esac
12599
12600  case $lt_cv_dlopen_self_static in
12601  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12602  *) enable_dlopen_self_static=unknown ;;
12603  esac
12604fi
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622striplib=
12623old_striplib=
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12625$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12626if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12627  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12628  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12630$as_echo "yes" >&6; }
12631else
12632# FIXME - insert some real tests, host_os isn't really good enough
12633  case $host_os in
12634  darwin*)
12635    if test -n "$STRIP" ; then
12636      striplib="$STRIP -x"
12637      old_striplib="$STRIP -S"
12638      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12639$as_echo "yes" >&6; }
12640    else
12641      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642$as_echo "no" >&6; }
12643    fi
12644    ;;
12645  *)
12646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647$as_echo "no" >&6; }
12648    ;;
12649  esac
12650fi
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663  # Report which library types will actually be built
12664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12665$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12667$as_echo "$can_build_shared" >&6; }
12668
12669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12670$as_echo_n "checking whether to build shared libraries... " >&6; }
12671  test "$can_build_shared" = "no" && enable_shared=no
12672
12673  # On AIX, shared libraries and static libraries use the same namespace, and
12674  # are all built from PIC.
12675  case $host_os in
12676  aix3*)
12677    test "$enable_shared" = yes && enable_static=no
12678    if test -n "$RANLIB"; then
12679      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12680      postinstall_cmds='$RANLIB $lib'
12681    fi
12682    ;;
12683
12684  aix[4-9]*)
12685    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12686      test "$enable_shared" = yes && enable_static=no
12687    fi
12688    ;;
12689  esac
12690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12691$as_echo "$enable_shared" >&6; }
12692
12693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12694$as_echo_n "checking whether to build static libraries... " >&6; }
12695  # Make sure either enable_shared or enable_static is yes.
12696  test "$enable_shared" = yes || enable_static=yes
12697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12698$as_echo "$enable_static" >&6; }
12699
12700
12701
12702
12703fi
12704ac_ext=c
12705ac_cpp='$CPP $CPPFLAGS'
12706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708ac_compiler_gnu=$ac_cv_c_compiler_gnu
12709
12710CC="$lt_save_CC"
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724        ac_config_commands="$ac_config_commands libtool"
12725
12726
12727
12728
12729# Only expand once:
12730
12731
12732ac_ext=c
12733ac_cpp='$CPP $CPPFLAGS'
12734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12736ac_compiler_gnu=$ac_cv_c_compiler_gnu
12737if test -n "$ac_tool_prefix"; then
12738  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12739set dummy ${ac_tool_prefix}gcc; ac_word=$2
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741$as_echo_n "checking for $ac_word... " >&6; }
12742if ${ac_cv_prog_CC+:} false; then :
12743  $as_echo_n "(cached) " >&6
12744else
12745  if test -n "$CC"; then
12746  ac_cv_prog_CC="$CC" # Let the user override the test.
12747else
12748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749for as_dir in $PATH
12750do
12751  IFS=$as_save_IFS
12752  test -z "$as_dir" && as_dir=.
12753    for ac_exec_ext in '' $ac_executable_extensions; do
12754  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12755    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757    break 2
12758  fi
12759done
12760  done
12761IFS=$as_save_IFS
12762
12763fi
12764fi
12765CC=$ac_cv_prog_CC
12766if test -n "$CC"; then
12767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12768$as_echo "$CC" >&6; }
12769else
12770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772fi
12773
12774
12775fi
12776if test -z "$ac_cv_prog_CC"; then
12777  ac_ct_CC=$CC
12778  # Extract the first word of "gcc", so it can be a program name with args.
12779set dummy gcc; ac_word=$2
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781$as_echo_n "checking for $ac_word... " >&6; }
12782if ${ac_cv_prog_ac_ct_CC+:} false; then :
12783  $as_echo_n "(cached) " >&6
12784else
12785  if test -n "$ac_ct_CC"; then
12786  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12787else
12788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789for as_dir in $PATH
12790do
12791  IFS=$as_save_IFS
12792  test -z "$as_dir" && as_dir=.
12793    for ac_exec_ext in '' $ac_executable_extensions; do
12794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12795    ac_cv_prog_ac_ct_CC="gcc"
12796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12797    break 2
12798  fi
12799done
12800  done
12801IFS=$as_save_IFS
12802
12803fi
12804fi
12805ac_ct_CC=$ac_cv_prog_ac_ct_CC
12806if test -n "$ac_ct_CC"; then
12807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12808$as_echo "$ac_ct_CC" >&6; }
12809else
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
12812fi
12813
12814  if test "x$ac_ct_CC" = x; then
12815    CC=""
12816  else
12817    case $cross_compiling:$ac_tool_warned in
12818yes:)
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12821ac_tool_warned=yes ;;
12822esac
12823    CC=$ac_ct_CC
12824  fi
12825else
12826  CC="$ac_cv_prog_CC"
12827fi
12828
12829if test -z "$CC"; then
12830          if test -n "$ac_tool_prefix"; then
12831    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12832set dummy ${ac_tool_prefix}cc; ac_word=$2
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834$as_echo_n "checking for $ac_word... " >&6; }
12835if ${ac_cv_prog_CC+:} false; then :
12836  $as_echo_n "(cached) " >&6
12837else
12838  if test -n "$CC"; then
12839  ac_cv_prog_CC="$CC" # Let the user override the test.
12840else
12841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842for as_dir in $PATH
12843do
12844  IFS=$as_save_IFS
12845  test -z "$as_dir" && as_dir=.
12846    for ac_exec_ext in '' $ac_executable_extensions; do
12847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848    ac_cv_prog_CC="${ac_tool_prefix}cc"
12849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850    break 2
12851  fi
12852done
12853  done
12854IFS=$as_save_IFS
12855
12856fi
12857fi
12858CC=$ac_cv_prog_CC
12859if test -n "$CC"; then
12860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12861$as_echo "$CC" >&6; }
12862else
12863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864$as_echo "no" >&6; }
12865fi
12866
12867
12868  fi
12869fi
12870if test -z "$CC"; then
12871  # Extract the first word of "cc", so it can be a program name with args.
12872set dummy cc; ac_word=$2
12873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874$as_echo_n "checking for $ac_word... " >&6; }
12875if ${ac_cv_prog_CC+:} false; then :
12876  $as_echo_n "(cached) " >&6
12877else
12878  if test -n "$CC"; then
12879  ac_cv_prog_CC="$CC" # Let the user override the test.
12880else
12881  ac_prog_rejected=no
12882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883for as_dir in $PATH
12884do
12885  IFS=$as_save_IFS
12886  test -z "$as_dir" && as_dir=.
12887    for ac_exec_ext in '' $ac_executable_extensions; do
12888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12889    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12890       ac_prog_rejected=yes
12891       continue
12892     fi
12893    ac_cv_prog_CC="cc"
12894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12895    break 2
12896  fi
12897done
12898  done
12899IFS=$as_save_IFS
12900
12901if test $ac_prog_rejected = yes; then
12902  # We found a bogon in the path, so make sure we never use it.
12903  set dummy $ac_cv_prog_CC
12904  shift
12905  if test $# != 0; then
12906    # We chose a different compiler from the bogus one.
12907    # However, it has the same basename, so the bogon will be chosen
12908    # first if we set CC to just the basename; use the full file name.
12909    shift
12910    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12911  fi
12912fi
12913fi
12914fi
12915CC=$ac_cv_prog_CC
12916if test -n "$CC"; then
12917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12918$as_echo "$CC" >&6; }
12919else
12920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921$as_echo "no" >&6; }
12922fi
12923
12924
12925fi
12926if test -z "$CC"; then
12927  if test -n "$ac_tool_prefix"; then
12928  for ac_prog in cl.exe
12929  do
12930    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12931set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933$as_echo_n "checking for $ac_word... " >&6; }
12934if ${ac_cv_prog_CC+:} false; then :
12935  $as_echo_n "(cached) " >&6
12936else
12937  if test -n "$CC"; then
12938  ac_cv_prog_CC="$CC" # Let the user override the test.
12939else
12940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941for as_dir in $PATH
12942do
12943  IFS=$as_save_IFS
12944  test -z "$as_dir" && as_dir=.
12945    for ac_exec_ext in '' $ac_executable_extensions; do
12946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949    break 2
12950  fi
12951done
12952  done
12953IFS=$as_save_IFS
12954
12955fi
12956fi
12957CC=$ac_cv_prog_CC
12958if test -n "$CC"; then
12959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12960$as_echo "$CC" >&6; }
12961else
12962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963$as_echo "no" >&6; }
12964fi
12965
12966
12967    test -n "$CC" && break
12968  done
12969fi
12970if test -z "$CC"; then
12971  ac_ct_CC=$CC
12972  for ac_prog in cl.exe
12973do
12974  # Extract the first word of "$ac_prog", so it can be a program name with args.
12975set dummy $ac_prog; ac_word=$2
12976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977$as_echo_n "checking for $ac_word... " >&6; }
12978if ${ac_cv_prog_ac_ct_CC+:} false; then :
12979  $as_echo_n "(cached) " >&6
12980else
12981  if test -n "$ac_ct_CC"; then
12982  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12983else
12984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985for as_dir in $PATH
12986do
12987  IFS=$as_save_IFS
12988  test -z "$as_dir" && as_dir=.
12989    for ac_exec_ext in '' $ac_executable_extensions; do
12990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12991    ac_cv_prog_ac_ct_CC="$ac_prog"
12992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993    break 2
12994  fi
12995done
12996  done
12997IFS=$as_save_IFS
12998
12999fi
13000fi
13001ac_ct_CC=$ac_cv_prog_ac_ct_CC
13002if test -n "$ac_ct_CC"; then
13003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13004$as_echo "$ac_ct_CC" >&6; }
13005else
13006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007$as_echo "no" >&6; }
13008fi
13009
13010
13011  test -n "$ac_ct_CC" && break
13012done
13013
13014  if test "x$ac_ct_CC" = x; then
13015    CC=""
13016  else
13017    case $cross_compiling:$ac_tool_warned in
13018yes:)
13019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13021ac_tool_warned=yes ;;
13022esac
13023    CC=$ac_ct_CC
13024  fi
13025fi
13026
13027fi
13028
13029
13030test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13032as_fn_error $? "no acceptable C compiler found in \$PATH
13033See \`config.log' for more details" "$LINENO" 5; }
13034
13035# Provide some information about the compiler.
13036$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13037set X $ac_compile
13038ac_compiler=$2
13039for ac_option in --version -v -V -qversion; do
13040  { { ac_try="$ac_compiler $ac_option >&5"
13041case "(($ac_try" in
13042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043  *) ac_try_echo=$ac_try;;
13044esac
13045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13046$as_echo "$ac_try_echo"; } >&5
13047  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13048  ac_status=$?
13049  if test -s conftest.err; then
13050    sed '10a\
13051... rest of stderr output deleted ...
13052         10q' conftest.err >conftest.er1
13053    cat conftest.er1 >&5
13054  fi
13055  rm -f conftest.er1 conftest.err
13056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13057  test $ac_status = 0; }
13058done
13059
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13061$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13062if ${ac_cv_c_compiler_gnu+:} false; then :
13063  $as_echo_n "(cached) " >&6
13064else
13065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066/* end confdefs.h.  */
13067
13068int
13069main ()
13070{
13071#ifndef __GNUC__
13072       choke me
13073#endif
13074
13075  ;
13076  return 0;
13077}
13078_ACEOF
13079if ac_fn_c_try_compile "$LINENO"; then :
13080  ac_compiler_gnu=yes
13081else
13082  ac_compiler_gnu=no
13083fi
13084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085ac_cv_c_compiler_gnu=$ac_compiler_gnu
13086
13087fi
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13089$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13090if test $ac_compiler_gnu = yes; then
13091  GCC=yes
13092else
13093  GCC=
13094fi
13095ac_test_CFLAGS=${CFLAGS+set}
13096ac_save_CFLAGS=$CFLAGS
13097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13098$as_echo_n "checking whether $CC accepts -g... " >&6; }
13099if ${ac_cv_prog_cc_g+:} false; then :
13100  $as_echo_n "(cached) " >&6
13101else
13102  ac_save_c_werror_flag=$ac_c_werror_flag
13103   ac_c_werror_flag=yes
13104   ac_cv_prog_cc_g=no
13105   CFLAGS="-g"
13106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107/* end confdefs.h.  */
13108
13109int
13110main ()
13111{
13112
13113  ;
13114  return 0;
13115}
13116_ACEOF
13117if ac_fn_c_try_compile "$LINENO"; then :
13118  ac_cv_prog_cc_g=yes
13119else
13120  CFLAGS=""
13121      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122/* end confdefs.h.  */
13123
13124int
13125main ()
13126{
13127
13128  ;
13129  return 0;
13130}
13131_ACEOF
13132if ac_fn_c_try_compile "$LINENO"; then :
13133
13134else
13135  ac_c_werror_flag=$ac_save_c_werror_flag
13136	 CFLAGS="-g"
13137	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138/* end confdefs.h.  */
13139
13140int
13141main ()
13142{
13143
13144  ;
13145  return 0;
13146}
13147_ACEOF
13148if ac_fn_c_try_compile "$LINENO"; then :
13149  ac_cv_prog_cc_g=yes
13150fi
13151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152fi
13153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154fi
13155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156   ac_c_werror_flag=$ac_save_c_werror_flag
13157fi
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13159$as_echo "$ac_cv_prog_cc_g" >&6; }
13160if test "$ac_test_CFLAGS" = set; then
13161  CFLAGS=$ac_save_CFLAGS
13162elif test $ac_cv_prog_cc_g = yes; then
13163  if test "$GCC" = yes; then
13164    CFLAGS="-g -O2"
13165  else
13166    CFLAGS="-g"
13167  fi
13168else
13169  if test "$GCC" = yes; then
13170    CFLAGS="-O2"
13171  else
13172    CFLAGS=
13173  fi
13174fi
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13176$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13177if ${ac_cv_prog_cc_c89+:} false; then :
13178  $as_echo_n "(cached) " >&6
13179else
13180  ac_cv_prog_cc_c89=no
13181ac_save_CC=$CC
13182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183/* end confdefs.h.  */
13184#include <stdarg.h>
13185#include <stdio.h>
13186#include <sys/types.h>
13187#include <sys/stat.h>
13188/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13189struct buf { int x; };
13190FILE * (*rcsopen) (struct buf *, struct stat *, int);
13191static char *e (p, i)
13192     char **p;
13193     int i;
13194{
13195  return p[i];
13196}
13197static char *f (char * (*g) (char **, int), char **p, ...)
13198{
13199  char *s;
13200  va_list v;
13201  va_start (v,p);
13202  s = g (p, va_arg (v,int));
13203  va_end (v);
13204  return s;
13205}
13206
13207/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13208   function prototypes and stuff, but not '\xHH' hex character constants.
13209   These don't provoke an error unfortunately, instead are silently treated
13210   as 'x'.  The following induces an error, until -std is added to get
13211   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13212   array size at least.  It's necessary to write '\x00'==0 to get something
13213   that's true only with -std.  */
13214int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13215
13216/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13217   inside strings and character constants.  */
13218#define FOO(x) 'x'
13219int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13220
13221int test (int i, double x);
13222struct s1 {int (*f) (int a);};
13223struct s2 {int (*f) (double a);};
13224int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13225int argc;
13226char **argv;
13227int
13228main ()
13229{
13230return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13231  ;
13232  return 0;
13233}
13234_ACEOF
13235for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13236	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13237do
13238  CC="$ac_save_CC $ac_arg"
13239  if ac_fn_c_try_compile "$LINENO"; then :
13240  ac_cv_prog_cc_c89=$ac_arg
13241fi
13242rm -f core conftest.err conftest.$ac_objext
13243  test "x$ac_cv_prog_cc_c89" != "xno" && break
13244done
13245rm -f conftest.$ac_ext
13246CC=$ac_save_CC
13247
13248fi
13249# AC_CACHE_VAL
13250case "x$ac_cv_prog_cc_c89" in
13251  x)
13252    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13253$as_echo "none needed" >&6; } ;;
13254  xno)
13255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13256$as_echo "unsupported" >&6; } ;;
13257  *)
13258    CC="$CC $ac_cv_prog_cc_c89"
13259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13260$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13261esac
13262if test "x$ac_cv_prog_cc_c89" != xno; then :
13263
13264fi
13265
13266ac_ext=c
13267ac_cpp='$CPP $CPPFLAGS'
13268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13270ac_compiler_gnu=$ac_cv_c_compiler_gnu
13271
13272depcc="$CC"   am_compiler_list=
13273
13274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13275$as_echo_n "checking dependency style of $depcc... " >&6; }
13276if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13277  $as_echo_n "(cached) " >&6
13278else
13279  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13280  # We make a subdir and do the tests there.  Otherwise we can end up
13281  # making bogus files that we don't know about and never remove.  For
13282  # instance it was reported that on HP-UX the gcc test will end up
13283  # making a dummy file named `D' -- because `-MD' means `put the output
13284  # in D'.
13285  mkdir conftest.dir
13286  # Copy depcomp to subdir because otherwise we won't find it if we're
13287  # using a relative directory.
13288  cp "$am_depcomp" conftest.dir
13289  cd conftest.dir
13290  # We will build objects and dependencies in a subdirectory because
13291  # it helps to detect inapplicable dependency modes.  For instance
13292  # both Tru64's cc and ICC support -MD to output dependencies as a
13293  # side effect of compilation, but ICC will put the dependencies in
13294  # the current directory while Tru64 will put them in the object
13295  # directory.
13296  mkdir sub
13297
13298  am_cv_CC_dependencies_compiler_type=none
13299  if test "$am_compiler_list" = ""; then
13300     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13301  fi
13302  am__universal=false
13303  case " $depcc " in #(
13304     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13305     esac
13306
13307  for depmode in $am_compiler_list; do
13308    # Setup a source with many dependencies, because some compilers
13309    # like to wrap large dependency lists on column 80 (with \), and
13310    # we should not choose a depcomp mode which is confused by this.
13311    #
13312    # We need to recreate these files for each test, as the compiler may
13313    # overwrite some of them when testing with obscure command lines.
13314    # This happens at least with the AIX C compiler.
13315    : > sub/conftest.c
13316    for i in 1 2 3 4 5 6; do
13317      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13318      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13319      # Solaris 8's {/usr,}/bin/sh.
13320      touch sub/conftst$i.h
13321    done
13322    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13323
13324    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13325    # mode.  It turns out that the SunPro C++ compiler does not properly
13326    # handle `-M -o', and we need to detect this.  Also, some Intel
13327    # versions had trouble with output in subdirs
13328    am__obj=sub/conftest.${OBJEXT-o}
13329    am__minus_obj="-o $am__obj"
13330    case $depmode in
13331    gcc)
13332      # This depmode causes a compiler race in universal mode.
13333      test "$am__universal" = false || continue
13334      ;;
13335    nosideeffect)
13336      # after this tag, mechanisms are not by side-effect, so they'll
13337      # only be used when explicitly requested
13338      if test "x$enable_dependency_tracking" = xyes; then
13339	continue
13340      else
13341	break
13342      fi
13343      ;;
13344    msvisualcpp | msvcmsys)
13345      # This compiler won't grok `-c -o', but also, the minuso test has
13346      # not run yet.  These depmodes are late enough in the game, and
13347      # so weak that their functioning should not be impacted.
13348      am__obj=conftest.${OBJEXT-o}
13349      am__minus_obj=
13350      ;;
13351    none) break ;;
13352    esac
13353    if depmode=$depmode \
13354       source=sub/conftest.c object=$am__obj \
13355       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13356       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13357         >/dev/null 2>conftest.err &&
13358       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13359       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13360       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13361       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13362      # icc doesn't choke on unknown options, it will just issue warnings
13363      # or remarks (even with -Werror).  So we grep stderr for any message
13364      # that says an option was ignored or not supported.
13365      # When given -MP, icc 7.0 and 7.1 complain thusly:
13366      #   icc: Command line warning: ignoring option '-M'; no argument required
13367      # The diagnosis changed in icc 8.0:
13368      #   icc: Command line remark: option '-MP' not supported
13369      if (grep 'ignoring option' conftest.err ||
13370          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13371        am_cv_CC_dependencies_compiler_type=$depmode
13372        break
13373      fi
13374    fi
13375  done
13376
13377  cd ..
13378  rm -rf conftest.dir
13379else
13380  am_cv_CC_dependencies_compiler_type=none
13381fi
13382
13383fi
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13385$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13386CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13387
13388 if
13389  test "x$enable_dependency_tracking" != xno \
13390  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13391  am__fastdepCC_TRUE=
13392  am__fastdepCC_FALSE='#'
13393else
13394  am__fastdepCC_TRUE='#'
13395  am__fastdepCC_FALSE=
13396fi
13397
13398
13399
13400
13401if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13402	if test -n "$ac_tool_prefix"; then
13403  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13404set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13406$as_echo_n "checking for $ac_word... " >&6; }
13407if ${ac_cv_path_PKG_CONFIG+:} false; then :
13408  $as_echo_n "(cached) " >&6
13409else
13410  case $PKG_CONFIG in
13411  [\\/]* | ?:[\\/]*)
13412  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13413  ;;
13414  *)
13415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416for as_dir in $PATH
13417do
13418  IFS=$as_save_IFS
13419  test -z "$as_dir" && as_dir=.
13420    for ac_exec_ext in '' $ac_executable_extensions; do
13421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13422    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13424    break 2
13425  fi
13426done
13427  done
13428IFS=$as_save_IFS
13429
13430  ;;
13431esac
13432fi
13433PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13434if test -n "$PKG_CONFIG"; then
13435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13436$as_echo "$PKG_CONFIG" >&6; }
13437else
13438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439$as_echo "no" >&6; }
13440fi
13441
13442
13443fi
13444if test -z "$ac_cv_path_PKG_CONFIG"; then
13445  ac_pt_PKG_CONFIG=$PKG_CONFIG
13446  # Extract the first word of "pkg-config", so it can be a program name with args.
13447set dummy pkg-config; ac_word=$2
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449$as_echo_n "checking for $ac_word... " >&6; }
13450if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13451  $as_echo_n "(cached) " >&6
13452else
13453  case $ac_pt_PKG_CONFIG in
13454  [\\/]* | ?:[\\/]*)
13455  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13456  ;;
13457  *)
13458  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459for as_dir in $PATH
13460do
13461  IFS=$as_save_IFS
13462  test -z "$as_dir" && as_dir=.
13463    for ac_exec_ext in '' $ac_executable_extensions; do
13464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13465    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467    break 2
13468  fi
13469done
13470  done
13471IFS=$as_save_IFS
13472
13473  ;;
13474esac
13475fi
13476ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13477if test -n "$ac_pt_PKG_CONFIG"; then
13478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13479$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13480else
13481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482$as_echo "no" >&6; }
13483fi
13484
13485  if test "x$ac_pt_PKG_CONFIG" = x; then
13486    PKG_CONFIG=""
13487  else
13488    case $cross_compiling:$ac_tool_warned in
13489yes:)
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13492ac_tool_warned=yes ;;
13493esac
13494    PKG_CONFIG=$ac_pt_PKG_CONFIG
13495  fi
13496else
13497  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13498fi
13499
13500fi
13501if test -n "$PKG_CONFIG"; then
13502	_pkg_min_version=0.9.0
13503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13504$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13505	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13507$as_echo "yes" >&6; }
13508	else
13509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510$as_echo "no" >&6; }
13511		PKG_CONFIG=""
13512	fi
13513
13514fi
13515
13516if test x"$CC_FOR_BUILD" = x; then
13517	if test x"$cross_compiling" = xyes; then
13518	       for ac_prog in gcc cc
13519do
13520  # Extract the first word of "$ac_prog", so it can be a program name with args.
13521set dummy $ac_prog; ac_word=$2
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523$as_echo_n "checking for $ac_word... " >&6; }
13524if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13525  $as_echo_n "(cached) " >&6
13526else
13527  if test -n "$CC_FOR_BUILD"; then
13528  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13529else
13530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531for as_dir in $PATH
13532do
13533  IFS=$as_save_IFS
13534  test -z "$as_dir" && as_dir=.
13535    for ac_exec_ext in '' $ac_executable_extensions; do
13536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13537    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
13538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539    break 2
13540  fi
13541done
13542  done
13543IFS=$as_save_IFS
13544
13545fi
13546fi
13547CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13548if test -n "$CC_FOR_BUILD"; then
13549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13550$as_echo "$CC_FOR_BUILD" >&6; }
13551else
13552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553$as_echo "no" >&6; }
13554fi
13555
13556
13557  test -n "$CC_FOR_BUILD" && break
13558done
13559
13560	else
13561	       CC_FOR_BUILD="$CC"
13562	fi
13563fi
13564
13565
13566if test x"$CPPFLAGS_FOR_BUILD" = x; then
13567	if test ! x"$cross_compiling" = xyes; then
13568		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
13569	fi
13570fi
13571
13572
13573if test x"$CFLAGS_FOR_BUILD" = x; then
13574	if test ! x"$cross_compiling" = xyes; then
13575		CFLAGS_FOR_BUILD=${CFLAGS}
13576	fi
13577fi
13578
13579
13580if test x"$LDFLAGS_FOR_BUILD" = x; then
13581	if test ! x"$cross_compiling" = xyes; then
13582		LDFLAGS_FOR_BUILD=${LDFLAGS}
13583	fi
13584fi
13585
13586
13587# Find perl for "make check" tests in nls/Makefile.am
13588
13589# Check whether --with-perl was given.
13590if test "${with_perl+set}" = set; then :
13591  withval=$with_perl; PERL=$withval ; { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl" >&5
13592$as_echo_n "checking perl... " >&6; } ;
13593	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (from --with-perl) $PERL" >&5
13594$as_echo "(from --with-perl) $PERL" >&6; }
13595else
13596  for ac_prog in perl
13597do
13598  # Extract the first word of "$ac_prog", so it can be a program name with args.
13599set dummy $ac_prog; ac_word=$2
13600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13601$as_echo_n "checking for $ac_word... " >&6; }
13602if ${ac_cv_prog_PERL+:} false; then :
13603  $as_echo_n "(cached) " >&6
13604else
13605  if test -n "$PERL"; then
13606  ac_cv_prog_PERL="$PERL" # Let the user override the test.
13607else
13608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609for as_dir in $PATH
13610do
13611  IFS=$as_save_IFS
13612  test -z "$as_dir" && as_dir=.
13613    for ac_exec_ext in '' $ac_executable_extensions; do
13614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13615    ac_cv_prog_PERL="$ac_prog"
13616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13617    break 2
13618  fi
13619done
13620  done
13621IFS=$as_save_IFS
13622
13623fi
13624fi
13625PERL=$ac_cv_prog_PERL
13626if test -n "$PERL"; then
13627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13628$as_echo "$PERL" >&6; }
13629else
13630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631$as_echo "no" >&6; }
13632fi
13633
13634
13635  test -n "$PERL" && break
13636done
13637test -n "$PERL" || PERL="no"
13638
13639fi
13640
13641 if test x$PERL != xno; then
13642  HAVE_PERL_TRUE=
13643  HAVE_PERL_FALSE='#'
13644else
13645  HAVE_PERL_TRUE='#'
13646  HAVE_PERL_FALSE=
13647fi
13648
13649
13650# Checks for pkg-config packages
13651
13652# Always required
13653X11_REQUIRES='xproto >= 7.0.13 xextproto xtrans xcb >= 1.1.92'
13654X11_EXTRA_DEPS="xcb >= 1.1.92"
13655
13656
13657
13658if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13659	if test -n "$ac_tool_prefix"; then
13660  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13661set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13663$as_echo_n "checking for $ac_word... " >&6; }
13664if ${ac_cv_path_PKG_CONFIG+:} false; then :
13665  $as_echo_n "(cached) " >&6
13666else
13667  case $PKG_CONFIG in
13668  [\\/]* | ?:[\\/]*)
13669  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13670  ;;
13671  *)
13672  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13673for as_dir in $PATH
13674do
13675  IFS=$as_save_IFS
13676  test -z "$as_dir" && as_dir=.
13677    for ac_exec_ext in '' $ac_executable_extensions; do
13678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13679    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13681    break 2
13682  fi
13683done
13684  done
13685IFS=$as_save_IFS
13686
13687  ;;
13688esac
13689fi
13690PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13691if test -n "$PKG_CONFIG"; then
13692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13693$as_echo "$PKG_CONFIG" >&6; }
13694else
13695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696$as_echo "no" >&6; }
13697fi
13698
13699
13700fi
13701if test -z "$ac_cv_path_PKG_CONFIG"; then
13702  ac_pt_PKG_CONFIG=$PKG_CONFIG
13703  # Extract the first word of "pkg-config", so it can be a program name with args.
13704set dummy pkg-config; ac_word=$2
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13706$as_echo_n "checking for $ac_word... " >&6; }
13707if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13708  $as_echo_n "(cached) " >&6
13709else
13710  case $ac_pt_PKG_CONFIG in
13711  [\\/]* | ?:[\\/]*)
13712  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13713  ;;
13714  *)
13715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716for as_dir in $PATH
13717do
13718  IFS=$as_save_IFS
13719  test -z "$as_dir" && as_dir=.
13720    for ac_exec_ext in '' $ac_executable_extensions; do
13721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13722    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13724    break 2
13725  fi
13726done
13727  done
13728IFS=$as_save_IFS
13729
13730  ;;
13731esac
13732fi
13733ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13734if test -n "$ac_pt_PKG_CONFIG"; then
13735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13736$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13737else
13738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13739$as_echo "no" >&6; }
13740fi
13741
13742  if test "x$ac_pt_PKG_CONFIG" = x; then
13743    PKG_CONFIG=""
13744  else
13745    case $cross_compiling:$ac_tool_warned in
13746yes:)
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13749ac_tool_warned=yes ;;
13750esac
13751    PKG_CONFIG=$ac_pt_PKG_CONFIG
13752  fi
13753else
13754  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13755fi
13756
13757fi
13758if test -n "$PKG_CONFIG"; then
13759	_pkg_min_version=0.9.0
13760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13761$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13762	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13763		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13764$as_echo "yes" >&6; }
13765	else
13766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767$as_echo "no" >&6; }
13768		PKG_CONFIG=""
13769	fi
13770
13771fi
13772
13773
13774
13775
13776
13777# Transport selection macro from xtrans.m4
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13779$as_echo_n "checking return type of signal handlers... " >&6; }
13780if ${ac_cv_type_signal+:} false; then :
13781  $as_echo_n "(cached) " >&6
13782else
13783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784/* end confdefs.h.  */
13785#include <sys/types.h>
13786#include <signal.h>
13787
13788int
13789main ()
13790{
13791return *(signal (0, 0)) (0) == 1;
13792  ;
13793  return 0;
13794}
13795_ACEOF
13796if ac_fn_c_try_compile "$LINENO"; then :
13797  ac_cv_type_signal=int
13798else
13799  ac_cv_type_signal=void
13800fi
13801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802fi
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13804$as_echo "$ac_cv_type_signal" >&6; }
13805
13806cat >>confdefs.h <<_ACEOF
13807#define RETSIGTYPE $ac_cv_type_signal
13808_ACEOF
13809
13810
13811
13812
13813
13814 case $host_os in
13815	mingw*)	unixdef="no"   ;;
13816	*)	unixdef="yes"  ;;
13817 esac
13818 # Check whether --enable-unix-transport was given.
13819if test "${enable_unix_transport+set}" = set; then :
13820  enableval=$enable_unix_transport; UNIXCONN=$enableval
13821else
13822  UNIXCONN=$unixdef
13823fi
13824
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
13826$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
13827 if test "$UNIXCONN" = "yes"; then
13828
13829$as_echo "#define UNIXCONN 1" >>confdefs.h
13830
13831 fi
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
13833$as_echo "$UNIXCONN" >&6; }
13834 # Check whether --enable-tcp-transport was given.
13835if test "${enable_tcp_transport+set}" = set; then :
13836  enableval=$enable_tcp_transport; TCPCONN=$enableval
13837else
13838  TCPCONN=yes
13839fi
13840
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
13842$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
13844$as_echo "$TCPCONN" >&6; }
13845 if test "$TCPCONN" = "yes"; then
13846
13847$as_echo "#define TCPCONN 1" >>confdefs.h
13848
13849
13850 # SVR4 hides these in libraries other than libc
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13852$as_echo_n "checking for library containing socket... " >&6; }
13853if ${ac_cv_search_socket+:} false; then :
13854  $as_echo_n "(cached) " >&6
13855else
13856  ac_func_search_save_LIBS=$LIBS
13857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858/* end confdefs.h.  */
13859
13860/* Override any GCC internal prototype to avoid an error.
13861   Use char because int might match the return type of a GCC
13862   builtin and then its argument prototype would still apply.  */
13863#ifdef __cplusplus
13864extern "C"
13865#endif
13866char socket ();
13867int
13868main ()
13869{
13870return socket ();
13871  ;
13872  return 0;
13873}
13874_ACEOF
13875for ac_lib in '' socket; do
13876  if test -z "$ac_lib"; then
13877    ac_res="none required"
13878  else
13879    ac_res=-l$ac_lib
13880    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13881  fi
13882  if ac_fn_c_try_link "$LINENO"; then :
13883  ac_cv_search_socket=$ac_res
13884fi
13885rm -f core conftest.err conftest.$ac_objext \
13886    conftest$ac_exeext
13887  if ${ac_cv_search_socket+:} false; then :
13888  break
13889fi
13890done
13891if ${ac_cv_search_socket+:} false; then :
13892
13893else
13894  ac_cv_search_socket=no
13895fi
13896rm conftest.$ac_ext
13897LIBS=$ac_func_search_save_LIBS
13898fi
13899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13900$as_echo "$ac_cv_search_socket" >&6; }
13901ac_res=$ac_cv_search_socket
13902if test "$ac_res" != no; then :
13903  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13904
13905fi
13906
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13908$as_echo_n "checking for library containing gethostbyname... " >&6; }
13909if ${ac_cv_search_gethostbyname+:} false; then :
13910  $as_echo_n "(cached) " >&6
13911else
13912  ac_func_search_save_LIBS=$LIBS
13913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914/* end confdefs.h.  */
13915
13916/* Override any GCC internal prototype to avoid an error.
13917   Use char because int might match the return type of a GCC
13918   builtin and then its argument prototype would still apply.  */
13919#ifdef __cplusplus
13920extern "C"
13921#endif
13922char gethostbyname ();
13923int
13924main ()
13925{
13926return gethostbyname ();
13927  ;
13928  return 0;
13929}
13930_ACEOF
13931for ac_lib in '' nsl; do
13932  if test -z "$ac_lib"; then
13933    ac_res="none required"
13934  else
13935    ac_res=-l$ac_lib
13936    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13937  fi
13938  if ac_fn_c_try_link "$LINENO"; then :
13939  ac_cv_search_gethostbyname=$ac_res
13940fi
13941rm -f core conftest.err conftest.$ac_objext \
13942    conftest$ac_exeext
13943  if ${ac_cv_search_gethostbyname+:} false; then :
13944  break
13945fi
13946done
13947if ${ac_cv_search_gethostbyname+:} false; then :
13948
13949else
13950  ac_cv_search_gethostbyname=no
13951fi
13952rm conftest.$ac_ext
13953LIBS=$ac_func_search_save_LIBS
13954fi
13955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13956$as_echo "$ac_cv_search_gethostbyname" >&6; }
13957ac_res=$ac_cv_search_gethostbyname
13958if test "$ac_res" != no; then :
13959  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13960
13961fi
13962
13963 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
13964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
13965$as_echo_n "checking for main in -lws2_32... " >&6; }
13966if ${ac_cv_lib_ws2_32_main+:} false; then :
13967  $as_echo_n "(cached) " >&6
13968else
13969  ac_check_lib_save_LIBS=$LIBS
13970LIBS="-lws2_32  $LIBS"
13971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972/* end confdefs.h.  */
13973
13974
13975int
13976main ()
13977{
13978return main ();
13979  ;
13980  return 0;
13981}
13982_ACEOF
13983if ac_fn_c_try_link "$LINENO"; then :
13984  ac_cv_lib_ws2_32_main=yes
13985else
13986  ac_cv_lib_ws2_32_main=no
13987fi
13988rm -f core conftest.err conftest.$ac_objext \
13989    conftest$ac_exeext conftest.$ac_ext
13990LIBS=$ac_check_lib_save_LIBS
13991fi
13992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
13993$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
13994if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
13995  cat >>confdefs.h <<_ACEOF
13996#define HAVE_LIBWS2_32 1
13997_ACEOF
13998
13999  LIBS="-lws2_32 $LIBS"
14000
14001fi
14002ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
14003
14004 fi
14005
14006 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
14007 # Check whether --enable-ipv6 was given.
14008if test "${enable_ipv6+set}" = set; then :
14009  enableval=$enable_ipv6; IPV6CONN=$enableval
14010else
14011  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
14012if test "x$ac_cv_func_getaddrinfo" = xyes; then :
14013  IPV6CONN=yes
14014else
14015  IPV6CONN=no
14016fi
14017
14018fi
14019
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
14021$as_echo_n "checking if IPv6 support should be built... " >&6; }
14022 if test "$IPV6CONN" = "yes"; then
14023
14024$as_echo "#define IPv6 1" >>confdefs.h
14025
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
14028$as_echo "$IPV6CONN" >&6; }
14029
14030 # 4.3BSD-Reno added a new member to struct sockaddr_in
14031 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
14032#include <sys/types.h>
14033#include <sys/socket.h>
14034#include <netinet/in.h>
14035
14036"
14037if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14038
14039$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
14040
14041fi
14042
14043
14044 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
14045 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14046$ac_includes_default
14047#include <sys/socket.h>
14048"
14049if test "x$ac_cv_type_socklen_t" = xyes; then :
14050
14051cat >>confdefs.h <<_ACEOF
14052#define HAVE_SOCKLEN_T 1
14053_ACEOF
14054
14055
14056fi
14057
14058
14059
14060 fi
14061 case $host_os in
14062	solaris*|sco*|sysv4*)	localdef="yes" ;;
14063	*)			localdef="no"  ;;
14064 esac
14065 # Check whether --enable-local-transport was given.
14066if test "${enable_local_transport+set}" = set; then :
14067  enableval=$enable_local_transport; LOCALCONN=$enableval
14068else
14069  LOCALCONN=$localdef
14070fi
14071
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
14073$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
14075$as_echo "$LOCALCONN" >&6; }
14076 if test "$LOCALCONN" = "yes"; then
14077
14078$as_echo "#define LOCALCONN 1" >>confdefs.h
14079
14080 fi
14081
14082
14083
14084# Secure RPC detection macro from xtrans.m4
14085
14086 # Check whether --enable-secure-rpc was given.
14087if test "${enable_secure_rpc+set}" = set; then :
14088  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
14089else
14090  SECURE_RPC="try"
14091fi
14092
14093
14094 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
14095	FOUND_SECURE_RPC="no"
14096	for ac_func in authdes_seccreate authdes_create
14097do :
14098  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14099ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14100if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14101  cat >>confdefs.h <<_ACEOF
14102#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14103_ACEOF
14104 FOUND_SECURE_RPC="yes"
14105fi
14106done
14107
14108	if test "x$FOUND_SECURE_RPC" = "xno" ; then
14109		if test "x$SECURE_RPC" = "xyes" ; then
14110	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
14111		fi
14112		SECURE_RPC="no"
14113	else
14114				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
14115$as_echo_n "checking for library containing getsecretkey... " >&6; }
14116if ${ac_cv_search_getsecretkey+:} false; then :
14117  $as_echo_n "(cached) " >&6
14118else
14119  ac_func_search_save_LIBS=$LIBS
14120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121/* end confdefs.h.  */
14122
14123/* Override any GCC internal prototype to avoid an error.
14124   Use char because int might match the return type of a GCC
14125   builtin and then its argument prototype would still apply.  */
14126#ifdef __cplusplus
14127extern "C"
14128#endif
14129char getsecretkey ();
14130int
14131main ()
14132{
14133return getsecretkey ();
14134  ;
14135  return 0;
14136}
14137_ACEOF
14138for ac_lib in '' rpcsvc; do
14139  if test -z "$ac_lib"; then
14140    ac_res="none required"
14141  else
14142    ac_res=-l$ac_lib
14143    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14144  fi
14145  if ac_fn_c_try_link "$LINENO"; then :
14146  ac_cv_search_getsecretkey=$ac_res
14147fi
14148rm -f core conftest.err conftest.$ac_objext \
14149    conftest$ac_exeext
14150  if ${ac_cv_search_getsecretkey+:} false; then :
14151  break
14152fi
14153done
14154if ${ac_cv_search_getsecretkey+:} false; then :
14155
14156else
14157  ac_cv_search_getsecretkey=no
14158fi
14159rm conftest.$ac_ext
14160LIBS=$ac_func_search_save_LIBS
14161fi
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
14163$as_echo "$ac_cv_search_getsecretkey" >&6; }
14164ac_res=$ac_cv_search_getsecretkey
14165if test "$ac_res" != no; then :
14166  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14167
14168fi
14169
14170		SECURE_RPC="yes"
14171	fi
14172 fi
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
14174$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
14175 if test "x$SECURE_RPC" = "xyes" ; then
14176
14177$as_echo "#define SECURE_RPC 1" >>confdefs.h
14178
14179 fi
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
14181$as_echo "$SECURE_RPC" >&6; }
14182
14183
14184# Preferred order to try transports for local connections
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what order to try transports in for local connections" >&5
14186$as_echo_n "checking what order to try transports in for local connections... " >&6; }
14187DEFAULT_LOCAL_TRANS=""
14188case $host_os in
14189	solaris*)
14190		# On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were
14191		# faster than Unix domain sockets, but on Solaris 10 & later,
14192		# Unix domain sockets are faster now.
14193		if test "$UNIXCONN" = "yes" ; then
14194			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
14195				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
14196			fi
14197			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS"
14198		fi
14199		if test "$LOCALCONN" = "yes" ; then
14200			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
14201				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
14202			fi
14203			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS"
14204		fi
14205		if test "$TCPCONN" = "yes" ; then
14206			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
14207				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
14208			fi
14209			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
14210		fi
14211		;;
14212	linux*)
14213		# LOCAL_TRANS is used for abstract sockets.
14214		if test "$UNIXCONN" = "yes" ; then
14215			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
14216				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
14217			fi
14218			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS,UNIX_TRANS"
14219		fi
14220		if test "$TCPCONN" = "yes" ; then
14221			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
14222				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
14223			fi
14224			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
14225		fi
14226		;;
14227	*)
14228		if test "$LOCALCONN" = "yes" ; then
14229			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
14230				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
14231			fi
14232			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS"
14233		fi
14234		if test "$UNIXCONN" = "yes" ; then
14235			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
14236				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
14237			fi
14238			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS"
14239		fi
14240		if test "$TCPCONN" = "yes" ; then
14241			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
14242				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
14243			fi
14244			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
14245		fi
14246		;;
14247esac
14248
14249
14250# Check whether --with-local-transport-order was given.
14251if test "${with_local_transport_order+set}" = set; then :
14252  withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval
14253else
14254  LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS
14255fi
14256
14257
14258cat >>confdefs.h <<_ACEOF
14259#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST
14260_ACEOF
14261
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCAL_TRANSPORT_LIST" >&5
14263$as_echo "$LOCAL_TRANSPORT_LIST" >&6; }
14264
14265# Check for dlopen
14266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
14267$as_echo_n "checking if run-time linking is supported... " >&6; }
14268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14269$as_echo_n "checking for library containing dlopen... " >&6; }
14270if ${ac_cv_search_dlopen+:} false; then :
14271  $as_echo_n "(cached) " >&6
14272else
14273  ac_func_search_save_LIBS=$LIBS
14274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275/* end confdefs.h.  */
14276
14277/* Override any GCC internal prototype to avoid an error.
14278   Use char because int might match the return type of a GCC
14279   builtin and then its argument prototype would still apply.  */
14280#ifdef __cplusplus
14281extern "C"
14282#endif
14283char dlopen ();
14284int
14285main ()
14286{
14287return dlopen ();
14288  ;
14289  return 0;
14290}
14291_ACEOF
14292for ac_lib in '' dl svld; do
14293  if test -z "$ac_lib"; then
14294    ac_res="none required"
14295  else
14296    ac_res=-l$ac_lib
14297    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14298  fi
14299  if ac_fn_c_try_link "$LINENO"; then :
14300  ac_cv_search_dlopen=$ac_res
14301fi
14302rm -f core conftest.err conftest.$ac_objext \
14303    conftest$ac_exeext
14304  if ${ac_cv_search_dlopen+:} false; then :
14305  break
14306fi
14307done
14308if ${ac_cv_search_dlopen+:} false; then :
14309
14310else
14311  ac_cv_search_dlopen=no
14312fi
14313rm conftest.$ac_ext
14314LIBS=$ac_func_search_save_LIBS
14315fi
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14317$as_echo "$ac_cv_search_dlopen" >&6; }
14318ac_res=$ac_cv_search_dlopen
14319if test "$ac_res" != no; then :
14320  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14321
14322fi
14323
14324if test "x$ac_cv_search_dlopen" = xno; then
14325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
14326$as_echo_n "checking for library containing shl_load... " >&6; }
14327if ${ac_cv_search_shl_load+:} false; then :
14328  $as_echo_n "(cached) " >&6
14329else
14330  ac_func_search_save_LIBS=$LIBS
14331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332/* end confdefs.h.  */
14333
14334/* Override any GCC internal prototype to avoid an error.
14335   Use char because int might match the return type of a GCC
14336   builtin and then its argument prototype would still apply.  */
14337#ifdef __cplusplus
14338extern "C"
14339#endif
14340char shl_load ();
14341int
14342main ()
14343{
14344return shl_load ();
14345  ;
14346  return 0;
14347}
14348_ACEOF
14349for ac_lib in '' dld; do
14350  if test -z "$ac_lib"; then
14351    ac_res="none required"
14352  else
14353    ac_res=-l$ac_lib
14354    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14355  fi
14356  if ac_fn_c_try_link "$LINENO"; then :
14357  ac_cv_search_shl_load=$ac_res
14358fi
14359rm -f core conftest.err conftest.$ac_objext \
14360    conftest$ac_exeext
14361  if ${ac_cv_search_shl_load+:} false; then :
14362  break
14363fi
14364done
14365if ${ac_cv_search_shl_load+:} false; then :
14366
14367else
14368  ac_cv_search_shl_load=no
14369fi
14370rm conftest.$ac_ext
14371LIBS=$ac_func_search_save_LIBS
14372fi
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
14374$as_echo "$ac_cv_search_shl_load" >&6; }
14375ac_res=$ac_cv_search_shl_load
14376if test "$ac_res" != no; then :
14377  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14378
14379fi
14380
14381	if test "x$ac_cv_search_shl_load" != xno; then
14382
14383$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14384
14385		for ac_header in dl.h
14386do :
14387  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14388if test "x$ac_cv_header_dl_h" = xyes; then :
14389  cat >>confdefs.h <<_ACEOF
14390#define HAVE_DL_H 1
14391_ACEOF
14392
14393fi
14394
14395done
14396
14397	fi
14398else
14399
14400$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14401
14402	for ac_header in dlfcn.h
14403do :
14404  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14405if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14406  cat >>confdefs.h <<_ACEOF
14407#define HAVE_DLFCN_H 1
14408_ACEOF
14409
14410fi
14411
14412done
14413
14414fi
14415if test x$ac_cv_header_dlcfn_h -o x$ac_cv_header_dl_h; then
14416	HAVE_LOADABLE_MODULES=yes
14417else
14418	HAVE_LOADABLE_MODULES=no
14419fi
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
14421$as_echo "$HAVE_LOADABLE_MODULES" >&6; }
14422
14423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
14424$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; }
14425# Check whether --enable-loadable-i18n was given.
14426if test "${enable_loadable_i18n+set}" = set; then :
14427  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
14428else
14429  XLIB_LOADABLE_I18N="no"
14430fi
14431
14432if test x$XLIB_LOADABLE_I18N = xyes; then
14433	if test x$HAVE_LOADABLE_MODULES = xno; then
14434		as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
14435	fi
14436
14437$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h
14438
14439	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
14440
14441fi
14442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
14443$as_echo "$XLIB_LOADABLE_I18N" >&6; }
14444
14445 if test x$XLIB_LOADABLE_I18N = xyes; then
14446  XLIB_LOADABLE_I18N_TRUE=
14447  XLIB_LOADABLE_I18N_FALSE='#'
14448else
14449  XLIB_LOADABLE_I18N_TRUE='#'
14450  XLIB_LOADABLE_I18N_FALSE=
14451fi
14452
14453
14454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
14455$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; }
14456# Check whether --enable-loadable-xcursor was given.
14457if test "${enable_loadable_xcursor+set}" = set; then :
14458  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
14459else
14460  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
14461fi
14462
14463if test x$XLIB_LOADABLE_XCURSOR = xyes; then
14464
14465$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
14466
14467fi
14468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
14469$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; }
14470
14471# Checks for header files.
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14473$as_echo_n "checking for ANSI C header files... " >&6; }
14474if ${ac_cv_header_stdc+:} false; then :
14475  $as_echo_n "(cached) " >&6
14476else
14477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478/* end confdefs.h.  */
14479#include <stdlib.h>
14480#include <stdarg.h>
14481#include <string.h>
14482#include <float.h>
14483
14484int
14485main ()
14486{
14487
14488  ;
14489  return 0;
14490}
14491_ACEOF
14492if ac_fn_c_try_compile "$LINENO"; then :
14493  ac_cv_header_stdc=yes
14494else
14495  ac_cv_header_stdc=no
14496fi
14497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498
14499if test $ac_cv_header_stdc = yes; then
14500  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502/* end confdefs.h.  */
14503#include <string.h>
14504
14505_ACEOF
14506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14507  $EGREP "memchr" >/dev/null 2>&1; then :
14508
14509else
14510  ac_cv_header_stdc=no
14511fi
14512rm -f conftest*
14513
14514fi
14515
14516if test $ac_cv_header_stdc = yes; then
14517  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519/* end confdefs.h.  */
14520#include <stdlib.h>
14521
14522_ACEOF
14523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14524  $EGREP "free" >/dev/null 2>&1; then :
14525
14526else
14527  ac_cv_header_stdc=no
14528fi
14529rm -f conftest*
14530
14531fi
14532
14533if test $ac_cv_header_stdc = yes; then
14534  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14535  if test "$cross_compiling" = yes; then :
14536  :
14537else
14538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539/* end confdefs.h.  */
14540#include <ctype.h>
14541#include <stdlib.h>
14542#if ((' ' & 0x0FF) == 0x020)
14543# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14544# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14545#else
14546# define ISLOWER(c) \
14547		   (('a' <= (c) && (c) <= 'i') \
14548		     || ('j' <= (c) && (c) <= 'r') \
14549		     || ('s' <= (c) && (c) <= 'z'))
14550# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14551#endif
14552
14553#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14554int
14555main ()
14556{
14557  int i;
14558  for (i = 0; i < 256; i++)
14559    if (XOR (islower (i), ISLOWER (i))
14560	|| toupper (i) != TOUPPER (i))
14561      return 2;
14562  return 0;
14563}
14564_ACEOF
14565if ac_fn_c_try_run "$LINENO"; then :
14566
14567else
14568  ac_cv_header_stdc=no
14569fi
14570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14571  conftest.$ac_objext conftest.beam conftest.$ac_ext
14572fi
14573
14574fi
14575fi
14576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14577$as_echo "$ac_cv_header_stdc" >&6; }
14578if test $ac_cv_header_stdc = yes; then
14579
14580$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14581
14582fi
14583
14584for ac_header in sys/select.h
14585do :
14586  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14587if test "x$ac_cv_header_sys_select_h" = xyes; then :
14588  cat >>confdefs.h <<_ACEOF
14589#define HAVE_SYS_SELECT_H 1
14590_ACEOF
14591
14592fi
14593
14594done
14595
14596
14597# Checks for typedefs, structures, and compiler characteristics.
14598
14599# Checks for library functions.
14600for ac_func in strtol
14601do :
14602  ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
14603if test "x$ac_cv_func_strtol" = xyes; then :
14604  cat >>confdefs.h <<_ACEOF
14605#define HAVE_STRTOL 1
14606_ACEOF
14607
14608fi
14609done
14610
14611# Used in lcFile.c (see also --enable-xlocaledir settings below)
14612XLOCALEDIR_IS_SAFE="no"
14613ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
14614if test "x$ac_cv_func_issetugid" = xyes; then :
14615  XLOCALEDIR_IS_SAFE="yes"
14616
14617$as_echo "#define HASSETUGID 1" >>confdefs.h
14618
14619fi
14620
14621ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
14622if test "x$ac_cv_func_getresuid" = xyes; then :
14623  XLOCALEDIR_IS_SAFE="yes"
14624
14625$as_echo "#define HASGETRESUID 1" >>confdefs.h
14626
14627fi
14628
14629# Used in Font.c
14630ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
14631if test "x$ac_cv_func_shmat" = xyes; then :
14632
14633$as_echo "#define HAS_SHM 1" >>confdefs.h
14634
14635fi
14636
14637
14638# Checks for system services
14639
14640# arch specific things
14641WCHAR32="1"
14642case $host_os in
14643  os2*) os2="true" ; WCHAR32="0" ;;
14644  *) ;;
14645esac
14646
14647
14648 if test x$os2 = xtrue; then
14649  OS2_TRUE=
14650  OS2_FALSE='#'
14651else
14652  OS2_TRUE='#'
14653  OS2_FALSE=
14654fi
14655
14656
14657
14658# Check whether --with-launchd was given.
14659if test "${with_launchd+set}" = set; then :
14660  withval=$with_launchd; LAUNCHD=$withval
14661else
14662  LAUNCHD=auto
14663fi
14664
14665if test "x$LAUNCHD" = xauto; then
14666	unset LAUNCHD
14667	# Extract the first word of "launchd", so it can be a program name with args.
14668set dummy launchd; ac_word=$2
14669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14670$as_echo_n "checking for $ac_word... " >&6; }
14671if ${ac_cv_prog_LAUNCHD+:} false; then :
14672  $as_echo_n "(cached) " >&6
14673else
14674  if test -n "$LAUNCHD"; then
14675  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
14676else
14677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14678for as_dir in $PATH$PATH_SEPARATOR/sbin
14679do
14680  IFS=$as_save_IFS
14681  test -z "$as_dir" && as_dir=.
14682    for ac_exec_ext in '' $ac_executable_extensions; do
14683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14684    ac_cv_prog_LAUNCHD="yes"
14685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14686    break 2
14687  fi
14688done
14689  done
14690IFS=$as_save_IFS
14691
14692  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
14693fi
14694fi
14695LAUNCHD=$ac_cv_prog_LAUNCHD
14696if test -n "$LAUNCHD"; then
14697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
14698$as_echo "$LAUNCHD" >&6; }
14699else
14700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701$as_echo "no" >&6; }
14702fi
14703
14704
14705fi
14706
14707if test "x$LAUNCHD" = xyes ; then
14708
14709$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
14710
14711
14712$as_echo "#define TRANS_REOPEN 1" >>confdefs.h
14713
14714fi
14715
14716# Check whether --enable-xthreads was given.
14717if test "${enable_xthreads+set}" = set; then :
14718  enableval=$enable_xthreads; xthreads=$enableval
14719else
14720  xthreads=yes
14721fi
14722
14723
14724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
14725$as_echo_n "checking for getpwuid_r in -lc... " >&6; }
14726if ${ac_cv_lib_c_getpwuid_r+:} false; then :
14727  $as_echo_n "(cached) " >&6
14728else
14729  ac_check_lib_save_LIBS=$LIBS
14730LIBS="-lc  $LIBS"
14731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732/* end confdefs.h.  */
14733
14734/* Override any GCC internal prototype to avoid an error.
14735   Use char because int might match the return type of a GCC
14736   builtin and then its argument prototype would still apply.  */
14737#ifdef __cplusplus
14738extern "C"
14739#endif
14740char getpwuid_r ();
14741int
14742main ()
14743{
14744return getpwuid_r ();
14745  ;
14746  return 0;
14747}
14748_ACEOF
14749if ac_fn_c_try_link "$LINENO"; then :
14750  ac_cv_lib_c_getpwuid_r=yes
14751else
14752  ac_cv_lib_c_getpwuid_r=no
14753fi
14754rm -f core conftest.err conftest.$ac_objext \
14755    conftest$ac_exeext conftest.$ac_ext
14756LIBS=$ac_check_lib_save_LIBS
14757fi
14758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
14759$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; }
14760if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then :
14761  mtsafeapi="yes"
14762else
14763  mtsafeapi="no"
14764fi
14765
14766
14767case x$xthreads in
14768xyes)
14769
14770$as_echo "#define XTHREADS 1" >>confdefs.h
14771
14772	if test x$mtsafeapi = xyes
14773	then
14774
14775$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h
14776
14777	fi
14778	;;
14779*)
14780	;;
14781esac
14782
14783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
14784$as_echo_n "checking for pthread_self in -lc... " >&6; }
14785if ${ac_cv_lib_c_pthread_self+:} false; then :
14786  $as_echo_n "(cached) " >&6
14787else
14788  ac_check_lib_save_LIBS=$LIBS
14789LIBS="-lc  $LIBS"
14790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791/* end confdefs.h.  */
14792
14793/* Override any GCC internal prototype to avoid an error.
14794   Use char because int might match the return type of a GCC
14795   builtin and then its argument prototype would still apply.  */
14796#ifdef __cplusplus
14797extern "C"
14798#endif
14799char pthread_self ();
14800int
14801main ()
14802{
14803return pthread_self ();
14804  ;
14805  return 0;
14806}
14807_ACEOF
14808if ac_fn_c_try_link "$LINENO"; then :
14809  ac_cv_lib_c_pthread_self=yes
14810else
14811  ac_cv_lib_c_pthread_self=no
14812fi
14813rm -f core conftest.err conftest.$ac_objext \
14814    conftest$ac_exeext conftest.$ac_ext
14815LIBS=$ac_check_lib_save_LIBS
14816fi
14817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
14818$as_echo "$ac_cv_lib_c_pthread_self" >&6; }
14819if test "x$ac_cv_lib_c_pthread_self" = xyes; then :
14820  thrstubs="no"
14821else
14822  thrstubs="yes"
14823fi
14824
14825 if test x$thrstubs = xyes; then
14826  THRSTUBS_TRUE=
14827  THRSTUBS_FALSE='#'
14828else
14829  THRSTUBS_TRUE='#'
14830  THRSTUBS_FALSE=
14831fi
14832
14833
14834if test x$xthreads = xyes ; then
14835    case $host_os in
14836    linux*|openbsd*|gnu*|k*bsd*-gnu)
14837        XTHREADLIB=-lpthread ;;
14838    netbsd*)
14839	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
14840	XTHREADLIB="-lpthread" ;;
14841    freebsd*)
14842        XTHREAD_CFLAGS="-D_THREAD_SAFE"
14843        XTHREADLIB="-pthread" ;;
14844    dragonfly*)
14845        XTHREADLIB="-pthread" ;;
14846    solaris*)
14847	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
14848    esac
14849fi
14850
14851
14852
14853ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
14854if test "x$ac_cv_func_poll" = xyes; then :
14855
14856$as_echo "#define USE_POLL 1" >>confdefs.h
14857
14858fi
14859
14860
14861#
14862# Find keysymdef.h
14863#
14864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
14865$as_echo_n "checking keysym definitions... " >&6; }
14866KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
14867FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
14868for i in $FILES; do
14869    if test -f "$KEYSYMDEFDIR/$i"; then
14870            KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
14871    elif test "x$i" = "xkeysymdef.h"; then
14872	    as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
14873    fi
14874done
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
14876$as_echo "$KEYSYMDEFS" >&6; }
14877
14878
14879 if test xfalse = xtrue; then
14880  UDC_TRUE=
14881  UDC_FALSE='#'
14882else
14883  UDC_TRUE='#'
14884  UDC_FALSE=
14885fi
14886
14887
14888# Check whether --enable-xcms was given.
14889if test "${enable_xcms+set}" = set; then :
14890  enableval=$enable_xcms; XCMS=$enableval
14891else
14892  XCMS=yes
14893fi
14894
14895 if test x$XCMS = xyes ; then
14896  XCMS_TRUE=
14897  XCMS_FALSE='#'
14898else
14899  XCMS_TRUE='#'
14900  XCMS_FALSE=
14901fi
14902
14903if test x"$XCMS" = "xyes"; then
14904
14905$as_echo "#define XCMS 1" >>confdefs.h
14906
14907fi
14908
14909# Check whether --enable-xlocale was given.
14910if test "${enable_xlocale+set}" = set; then :
14911  enableval=$enable_xlocale; XLOCALE=$enableval
14912else
14913  XLOCALE=yes
14914fi
14915
14916
14917 if  test x$XLOCALE = xyes ; then
14918  XLOCALE_TRUE=
14919  XLOCALE_FALSE='#'
14920else
14921  XLOCALE_TRUE='#'
14922  XLOCALE_FALSE=
14923fi
14924
14925if test x"$XLOCALE" = "xyes"; then
14926
14927$as_echo "#define XLOCALE 1" >>confdefs.h
14928
14929fi
14930
14931# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
14932# don't have either issetugid() or getresuid(), and you need to protect
14933# clients that are setgid or setuid to an id other than 0.
14934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
14935$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; }
14936# Check whether --enable-xlocaledir was given.
14937if test "${enable_xlocaledir+set}" = set; then :
14938  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
14939else
14940  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
14941fi
14942
14943if test "x$ENABLE_XLOCALEDIR" = "xno"; then
14944
14945$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h
14946
14947fi
14948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
14949$as_echo "$ENABLE_XLOCALEDIR" >&6; }
14950
14951# Check whether --enable-xf86bigfont was given.
14952if test "${enable_xf86bigfont+set}" = set; then :
14953  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
14954else
14955  XF86BIGFONT="yes"
14956fi
14957
14958if test "x$XF86BIGFONT" = "xyes"; then
14959
14960pkg_failed=no
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
14962$as_echo_n "checking for BIGFONT... " >&6; }
14963
14964if test -n "$BIGFONT_CFLAGS"; then
14965    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
14966 elif test -n "$PKG_CONFIG"; then
14967    if test -n "$PKG_CONFIG" && \
14968    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\""; } >&5
14969  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5
14970  ac_status=$?
14971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14972  test $ac_status = 0; }; then
14973  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto" 2>/dev/null`
14974else
14975  pkg_failed=yes
14976fi
14977 else
14978    pkg_failed=untried
14979fi
14980if test -n "$BIGFONT_LIBS"; then
14981    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
14982 elif test -n "$PKG_CONFIG"; then
14983    if test -n "$PKG_CONFIG" && \
14984    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\""; } >&5
14985  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5
14986  ac_status=$?
14987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14988  test $ac_status = 0; }; then
14989  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto" 2>/dev/null`
14990else
14991  pkg_failed=yes
14992fi
14993 else
14994    pkg_failed=untried
14995fi
14996
14997
14998
14999if test $pkg_failed = yes; then
15000
15001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15002        _pkg_short_errors_supported=yes
15003else
15004        _pkg_short_errors_supported=no
15005fi
15006        if test $_pkg_short_errors_supported = yes; then
15007	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto" 2>&1`
15008        else
15009	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto" 2>&1`
15010        fi
15011	# Put the nasty error message in config.log where it belongs
15012	echo "$BIGFONT_PKG_ERRORS" >&5
15013
15014	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15015$as_echo "no" >&6; }
15016                XF86BIGFONT="no"
15017elif test $pkg_failed = untried; then
15018	XF86BIGFONT="no"
15019else
15020	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
15021	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
15022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15023$as_echo "yes" >&6; }
15024
15025$as_echo "#define XF86BIGFONT 1" >>confdefs.h
15026
15027fi
15028
15029
15030fi
15031
15032# Check whether --enable-xkb was given.
15033if test "${enable_xkb+set}" = set; then :
15034  enableval=$enable_xkb; XKB=$enableval
15035else
15036  XKB=yes
15037fi
15038
15039
15040 if  test x$XKB = xyes ; then
15041  XKB_TRUE=
15042  XKB_FALSE='#'
15043else
15044  XKB_TRUE='#'
15045  XKB_FALSE=
15046fi
15047
15048if test x"$XKB" = "xyes"; then
15049   XKBPROTO_REQUIRES="kbproto"
15050   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
15051
15052$as_echo "#define XKB 1" >>confdefs.h
15053
15054else
15055   XKBPROTO_REQUIRES=""
15056fi
15057
15058
15059
15060
15061
15062  for ac_header in $ac_header_list
15063do :
15064  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15065ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15066"
15067if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15068  cat >>confdefs.h <<_ACEOF
15069#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15070_ACEOF
15071
15072fi
15073
15074done
15075
15076
15077
15078
15079
15080
15081
15082
15083for ac_func in getpagesize
15084do :
15085  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15086if test "x$ac_cv_func_getpagesize" = xyes; then :
15087  cat >>confdefs.h <<_ACEOF
15088#define HAVE_GETPAGESIZE 1
15089_ACEOF
15090
15091fi
15092done
15093
15094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15095$as_echo_n "checking for working mmap... " >&6; }
15096if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15097  $as_echo_n "(cached) " >&6
15098else
15099  if test "$cross_compiling" = yes; then :
15100  ac_cv_func_mmap_fixed_mapped=no
15101else
15102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103/* end confdefs.h.  */
15104$ac_includes_default
15105/* malloc might have been renamed as rpl_malloc. */
15106#undef malloc
15107
15108/* Thanks to Mike Haertel and Jim Avera for this test.
15109   Here is a matrix of mmap possibilities:
15110	mmap private not fixed
15111	mmap private fixed at somewhere currently unmapped
15112	mmap private fixed at somewhere already mapped
15113	mmap shared not fixed
15114	mmap shared fixed at somewhere currently unmapped
15115	mmap shared fixed at somewhere already mapped
15116   For private mappings, we should verify that changes cannot be read()
15117   back from the file, nor mmap's back from the file at a different
15118   address.  (There have been systems where private was not correctly
15119   implemented like the infamous i386 svr4.0, and systems where the
15120   VM page cache was not coherent with the file system buffer cache
15121   like early versions of FreeBSD and possibly contemporary NetBSD.)
15122   For shared mappings, we should conversely verify that changes get
15123   propagated back to all the places they're supposed to be.
15124
15125   Grep wants private fixed already mapped.
15126   The main things grep needs to know about mmap are:
15127   * does it exist and is it safe to write into the mmap'd area
15128   * how to use it (BSD variants)  */
15129
15130#include <fcntl.h>
15131#include <sys/mman.h>
15132
15133#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15134char *malloc ();
15135#endif
15136
15137/* This mess was copied from the GNU getpagesize.h.  */
15138#ifndef HAVE_GETPAGESIZE
15139# ifdef _SC_PAGESIZE
15140#  define getpagesize() sysconf(_SC_PAGESIZE)
15141# else /* no _SC_PAGESIZE */
15142#  ifdef HAVE_SYS_PARAM_H
15143#   include <sys/param.h>
15144#   ifdef EXEC_PAGESIZE
15145#    define getpagesize() EXEC_PAGESIZE
15146#   else /* no EXEC_PAGESIZE */
15147#    ifdef NBPG
15148#     define getpagesize() NBPG * CLSIZE
15149#     ifndef CLSIZE
15150#      define CLSIZE 1
15151#     endif /* no CLSIZE */
15152#    else /* no NBPG */
15153#     ifdef NBPC
15154#      define getpagesize() NBPC
15155#     else /* no NBPC */
15156#      ifdef PAGESIZE
15157#       define getpagesize() PAGESIZE
15158#      endif /* PAGESIZE */
15159#     endif /* no NBPC */
15160#    endif /* no NBPG */
15161#   endif /* no EXEC_PAGESIZE */
15162#  else /* no HAVE_SYS_PARAM_H */
15163#   define getpagesize() 8192	/* punt totally */
15164#  endif /* no HAVE_SYS_PARAM_H */
15165# endif /* no _SC_PAGESIZE */
15166
15167#endif /* no HAVE_GETPAGESIZE */
15168
15169int
15170main ()
15171{
15172  char *data, *data2, *data3;
15173  const char *cdata2;
15174  int i, pagesize;
15175  int fd, fd2;
15176
15177  pagesize = getpagesize ();
15178
15179  /* First, make a file with some known garbage in it. */
15180  data = (char *) malloc (pagesize);
15181  if (!data)
15182    return 1;
15183  for (i = 0; i < pagesize; ++i)
15184    *(data + i) = rand ();
15185  umask (0);
15186  fd = creat ("conftest.mmap", 0600);
15187  if (fd < 0)
15188    return 2;
15189  if (write (fd, data, pagesize) != pagesize)
15190    return 3;
15191  close (fd);
15192
15193  /* Next, check that the tail of a page is zero-filled.  File must have
15194     non-zero length, otherwise we risk SIGBUS for entire page.  */
15195  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15196  if (fd2 < 0)
15197    return 4;
15198  cdata2 = "";
15199  if (write (fd2, cdata2, 1) != 1)
15200    return 5;
15201  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15202  if (data2 == MAP_FAILED)
15203    return 6;
15204  for (i = 0; i < pagesize; ++i)
15205    if (*(data2 + i))
15206      return 7;
15207  close (fd2);
15208  if (munmap (data2, pagesize))
15209    return 8;
15210
15211  /* Next, try to mmap the file at a fixed address which already has
15212     something else allocated at it.  If we can, also make sure that
15213     we see the same garbage.  */
15214  fd = open ("conftest.mmap", O_RDWR);
15215  if (fd < 0)
15216    return 9;
15217  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15218		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
15219    return 10;
15220  for (i = 0; i < pagesize; ++i)
15221    if (*(data + i) != *(data2 + i))
15222      return 11;
15223
15224  /* Finally, make sure that changes to the mapped area do not
15225     percolate back to the file as seen by read().  (This is a bug on
15226     some variants of i386 svr4.0.)  */
15227  for (i = 0; i < pagesize; ++i)
15228    *(data2 + i) = *(data2 + i) + 1;
15229  data3 = (char *) malloc (pagesize);
15230  if (!data3)
15231    return 12;
15232  if (read (fd, data3, pagesize) != pagesize)
15233    return 13;
15234  for (i = 0; i < pagesize; ++i)
15235    if (*(data + i) != *(data3 + i))
15236      return 14;
15237  close (fd);
15238  return 0;
15239}
15240_ACEOF
15241if ac_fn_c_try_run "$LINENO"; then :
15242  ac_cv_func_mmap_fixed_mapped=yes
15243else
15244  ac_cv_func_mmap_fixed_mapped=no
15245fi
15246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15247  conftest.$ac_objext conftest.beam conftest.$ac_ext
15248fi
15249
15250fi
15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15252$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15253if test $ac_cv_func_mmap_fixed_mapped = yes; then
15254
15255$as_echo "#define HAVE_MMAP 1" >>confdefs.h
15256
15257fi
15258rm -f conftest.mmap conftest.txt
15259
15260composecache_default=$ac_cv_func_mmap_fixed_mapped
15261ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
15262if test "x$ac_cv_func_nl_langinfo" = xyes; then :
15263
15264else
15265  composecache_default=no
15266fi
15267
15268# Check whether --enable-composecache was given.
15269if test "${enable_composecache+set}" = set; then :
15270  enableval=$enable_composecache; COMPOSECACHE=$enableval
15271else
15272  COMPOSECACHE=$composecache_default
15273fi
15274
15275if test x"$COMPOSECACHE" = "xyes"; then
15276
15277$as_echo "#define COMPOSECACHE 1" >>confdefs.h
15278
15279fi
15280
15281
15282
15283
15284
15285
15286# Check whether --with-lint was given.
15287if test "${with_lint+set}" = set; then :
15288  withval=$with_lint; use_lint=$withval
15289else
15290  use_lint=no
15291fi
15292
15293
15294# Obtain platform specific info like program name and options
15295# The lint program on FreeBSD and NetBSD is different from the one on Solaris
15296case $host_os in
15297  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
15298	lint_name=splint
15299	lint_options="-badflag"
15300	;;
15301  *freebsd* | *netbsd*)
15302	lint_name=lint
15303	lint_options="-u -b"
15304	;;
15305  *solaris*)
15306	lint_name=lint
15307	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
15308	;;
15309esac
15310
15311# Test for the presence of the program (either guessed by the code or spelled out by the user)
15312if test "x$use_lint" = x"yes" ; then
15313   # Extract the first word of "$lint_name", so it can be a program name with args.
15314set dummy $lint_name; ac_word=$2
15315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15316$as_echo_n "checking for $ac_word... " >&6; }
15317if ${ac_cv_path_LINT+:} false; then :
15318  $as_echo_n "(cached) " >&6
15319else
15320  case $LINT in
15321  [\\/]* | ?:[\\/]*)
15322  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
15323  ;;
15324  *)
15325  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15326for as_dir in $PATH
15327do
15328  IFS=$as_save_IFS
15329  test -z "$as_dir" && as_dir=.
15330    for ac_exec_ext in '' $ac_executable_extensions; do
15331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15332    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
15333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15334    break 2
15335  fi
15336done
15337  done
15338IFS=$as_save_IFS
15339
15340  ;;
15341esac
15342fi
15343LINT=$ac_cv_path_LINT
15344if test -n "$LINT"; then
15345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
15346$as_echo "$LINT" >&6; }
15347else
15348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15349$as_echo "no" >&6; }
15350fi
15351
15352
15353   if test "x$LINT" = "x"; then
15354        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
15355   fi
15356elif test "x$use_lint" = x"no" ; then
15357   if test "x$LINT" != "x"; then
15358      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
15359$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
15360   fi
15361else
15362   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
15363fi
15364
15365# User supplied flags override default flags
15366if test "x$LINT_FLAGS" != "x"; then
15367   lint_options=$LINT_FLAGS
15368fi
15369
15370LINT_FLAGS=$lint_options
15371
15372 if test "x$LINT" != x; then
15373  LINT_TRUE=
15374  LINT_FALSE='#'
15375else
15376  LINT_TRUE='#'
15377  LINT_FALSE=
15378fi
15379
15380
15381
15382
15383
15384# Check whether --enable-lint-library was given.
15385if test "${enable_lint_library+set}" = set; then :
15386  enableval=$enable_lint_library; make_lint_lib=$enableval
15387else
15388  make_lint_lib=no
15389fi
15390
15391
15392if test "x$make_lint_lib" = x"yes" ; then
15393   LINTLIB=llib-lX11.ln
15394   if test "x$LINT" = "x"; then
15395        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
15396   fi
15397elif test "x$make_lint_lib" != x"no" ; then
15398   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
15399fi
15400
15401
15402 if test x$make_lint_lib != xno; then
15403  MAKE_LINT_LIB_TRUE=
15404  MAKE_LINT_LIB_FALSE='#'
15405else
15406  MAKE_LINT_LIB_TRUE='#'
15407  MAKE_LINT_LIB_FALSE=
15408fi
15409
15410
15411
15412
15413X11_DATADIR="${datadir}/X11"
15414
15415  prefix_NONE=
15416  exec_prefix_NONE=
15417  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15418  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15419  eval ax_define_dir="\"$X11_DATADIR\""
15420  eval ax_define_dir="\"$ax_define_dir\""
15421  X11_DATADIR="$ax_define_dir"
15422
15423
15424cat >>confdefs.h <<_ACEOF
15425#define X11_DATADIR "$ax_define_dir"
15426_ACEOF
15427
15428  test "$prefix_NONE" && prefix=NONE
15429  test "$exec_prefix_NONE" && exec_prefix=NONE
15430
15431
15432
15433X11_LIBDIR="${libdir}/X11"
15434
15435  prefix_NONE=
15436  exec_prefix_NONE=
15437  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15438  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15439  eval ax_define_dir="\"$X11_LIBDIR\""
15440  eval ax_define_dir="\"$ax_define_dir\""
15441  X11_LIBDIR="$ax_define_dir"
15442
15443
15444cat >>confdefs.h <<_ACEOF
15445#define X11_LIBDIR "$ax_define_dir"
15446_ACEOF
15447
15448  test "$prefix_NONE" && prefix=NONE
15449  test "$exec_prefix_NONE" && exec_prefix=NONE
15450
15451
15452
15453
15454pkg_failed=no
15455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
15456$as_echo_n "checking for X11... " >&6; }
15457
15458if test -n "$X11_CFLAGS"; then
15459    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
15460 elif test -n "$PKG_CONFIG"; then
15461    if test -n "$PKG_CONFIG" && \
15462    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
15463  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
15464  ac_status=$?
15465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15466  test $ac_status = 0; }; then
15467  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
15468else
15469  pkg_failed=yes
15470fi
15471 else
15472    pkg_failed=untried
15473fi
15474if test -n "$X11_LIBS"; then
15475    pkg_cv_X11_LIBS="$X11_LIBS"
15476 elif test -n "$PKG_CONFIG"; then
15477    if test -n "$PKG_CONFIG" && \
15478    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
15479  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
15480  ac_status=$?
15481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15482  test $ac_status = 0; }; then
15483  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
15484else
15485  pkg_failed=yes
15486fi
15487 else
15488    pkg_failed=untried
15489fi
15490
15491
15492
15493if test $pkg_failed = yes; then
15494
15495if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15496        _pkg_short_errors_supported=yes
15497else
15498        _pkg_short_errors_supported=no
15499fi
15500        if test $_pkg_short_errors_supported = yes; then
15501	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_REQUIRES" 2>&1`
15502        else
15503	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_REQUIRES" 2>&1`
15504        fi
15505	# Put the nasty error message in config.log where it belongs
15506	echo "$X11_PKG_ERRORS" >&5
15507
15508	as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
15509
15510$X11_PKG_ERRORS
15511
15512Consider adjusting the PKG_CONFIG_PATH environment variable if you
15513installed software in a non-standard prefix.
15514
15515Alternatively, you may set the environment variables X11_CFLAGS
15516and X11_LIBS to avoid the need to call pkg-config.
15517See the pkg-config man page for more details.
15518" "$LINENO" 5
15519elif test $pkg_failed = untried; then
15520	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15522as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15523is in your PATH or set the PKG_CONFIG environment variable to the full
15524path to pkg-config.
15525
15526Alternatively, you may set the environment variables X11_CFLAGS
15527and X11_LIBS to avoid the need to call pkg-config.
15528See the pkg-config man page for more details.
15529
15530To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15531See \`config.log' for more details" "$LINENO" 5; }
15532else
15533	X11_CFLAGS=$pkg_cv_X11_CFLAGS
15534	X11_LIBS=$pkg_cv_X11_LIBS
15535        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15536$as_echo "yes" >&6; }
15537	:
15538fi
15539X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
15540
15541#
15542# Yes, it would be nice to put the locale data in
15543# /usr/share, but the locale stuff includes loadable
15544# libraries which must be located in the same directory
15545# as the other locale data, so for now, everything lives
15546# in ${libdir}
15547#
15548
15549X11_LOCALEDATADIR="${X11_DATADIR}/locale"
15550
15551  prefix_NONE=
15552  exec_prefix_NONE=
15553  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15554  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15555  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
15556  eval ax_define_dir="\"$ax_define_dir\""
15557  XLOCALEDATADIR="$ax_define_dir"
15558
15559
15560cat >>confdefs.h <<_ACEOF
15561#define XLOCALEDATADIR "$ax_define_dir"
15562_ACEOF
15563
15564  test "$prefix_NONE" && prefix=NONE
15565  test "$exec_prefix_NONE" && exec_prefix=NONE
15566
15567
15568
15569
15570# Check whether --with-locale-lib-dir was given.
15571if test "${with_locale_lib_dir+set}" = set; then :
15572  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
15573else
15574   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
15575fi
15576
15577
15578  prefix_NONE=
15579  exec_prefix_NONE=
15580  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15581  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15582  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
15583  eval ax_define_dir="\"$ax_define_dir\""
15584  XLOCALELIBDIR="$ax_define_dir"
15585
15586
15587cat >>confdefs.h <<_ACEOF
15588#define XLOCALELIBDIR "$ax_define_dir"
15589_ACEOF
15590
15591  test "$prefix_NONE" && prefix=NONE
15592  test "$exec_prefix_NONE" && exec_prefix=NONE
15593
15594
15595
15596X11_LOCALEDIR="${X11_LOCALEDATADIR}"
15597
15598  prefix_NONE=
15599  exec_prefix_NONE=
15600  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15601  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15602  eval ax_define_dir="\"$X11_LOCALEDIR\""
15603  eval ax_define_dir="\"$ax_define_dir\""
15604  XLOCALEDIR="$ax_define_dir"
15605
15606
15607cat >>confdefs.h <<_ACEOF
15608#define XLOCALEDIR "$ax_define_dir"
15609_ACEOF
15610
15611  test "$prefix_NONE" && prefix=NONE
15612  test "$exec_prefix_NONE" && exec_prefix=NONE
15613
15614
15615
15616XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
15617
15618  prefix_NONE=
15619  exec_prefix_NONE=
15620  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15621  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15622  eval ax_define_dir="\"$XKEYSYMDB\""
15623  eval ax_define_dir="\"$ax_define_dir\""
15624  XKEYSYMDB="$ax_define_dir"
15625
15626
15627cat >>confdefs.h <<_ACEOF
15628#define XKEYSYMDB "$ax_define_dir"
15629_ACEOF
15630
15631  test "$prefix_NONE" && prefix=NONE
15632  test "$exec_prefix_NONE" && exec_prefix=NONE
15633
15634
15635XERRORDB="${X11_DATADIR}/XErrorDB"
15636
15637  prefix_NONE=
15638  exec_prefix_NONE=
15639  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15640  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15641  eval ax_define_dir="\"$XERRORDB\""
15642  eval ax_define_dir="\"$ax_define_dir\""
15643  XERRORDB="$ax_define_dir"
15644
15645
15646cat >>confdefs.h <<_ACEOF
15647#define XERRORDB "$ax_define_dir"
15648_ACEOF
15649
15650  test "$prefix_NONE" && prefix=NONE
15651  test "$exec_prefix_NONE" && exec_prefix=NONE
15652
15653
15654
15655# Check whether --enable-malloc0returnsnull was given.
15656if test "${enable_malloc0returnsnull+set}" = set; then :
15657  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
15658else
15659  MALLOC_ZERO_RETURNS_NULL=auto
15660fi
15661
15662
15663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
15664$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
15665if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
15666	if test "$cross_compiling" = yes; then :
15667  MALLOC_ZERO_RETURNS_NULL=yes
15668else
15669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670/* end confdefs.h.  */
15671
15672#include <stdlib.h>
15673
15674int
15675main ()
15676{
15677
15678    char *m0, *r0, *c0, *p;
15679    m0 = malloc(0);
15680    p = malloc(10);
15681    r0 = realloc(p,0);
15682    c0 = calloc(0,10);
15683    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
15684
15685  ;
15686  return 0;
15687}
15688_ACEOF
15689if ac_fn_c_try_run "$LINENO"; then :
15690  MALLOC_ZERO_RETURNS_NULL=yes
15691else
15692  MALLOC_ZERO_RETURNS_NULL=no
15693fi
15694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15695  conftest.$ac_objext conftest.beam conftest.$ac_ext
15696fi
15697
15698fi
15699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
15700$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
15701
15702if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
15703	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
15704	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
15705	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
15706else
15707	MALLOC_ZERO_CFLAGS=""
15708	XMALLOC_ZERO_CFLAGS=""
15709	XTMALLOC_ZERO_CFLAGS=""
15710fi
15711
15712
15713
15714
15715
15716
15717ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/lc/xlocale/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile specs/Makefile specs/i18n/Makefile specs/i18n/framework/Makefile specs/i18n/localedb/Makefile specs/i18n/trans/Makefile specs/libX11/Makefile specs/XIM/Makefile specs/XKB/Makefile x11.pc x11-xcb.pc"
15718
15719cat >confcache <<\_ACEOF
15720# This file is a shell script that caches the results of configure
15721# tests run on this system so they can be shared between configure
15722# scripts and configure runs, see configure's option --config-cache.
15723# It is not useful on other systems.  If it contains results you don't
15724# want to keep, you may remove or edit it.
15725#
15726# config.status only pays attention to the cache file if you give it
15727# the --recheck option to rerun configure.
15728#
15729# `ac_cv_env_foo' variables (set or unset) will be overridden when
15730# loading this file, other *unset* `ac_cv_foo' will be assigned the
15731# following values.
15732
15733_ACEOF
15734
15735# The following way of writing the cache mishandles newlines in values,
15736# but we know of no workaround that is simple, portable, and efficient.
15737# So, we kill variables containing newlines.
15738# Ultrix sh set writes to stderr and can't be redirected directly,
15739# and sets the high bit in the cache file unless we assign to the vars.
15740(
15741  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15742    eval ac_val=\$$ac_var
15743    case $ac_val in #(
15744    *${as_nl}*)
15745      case $ac_var in #(
15746      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15747$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15748      esac
15749      case $ac_var in #(
15750      _ | IFS | as_nl) ;; #(
15751      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15752      *) { eval $ac_var=; unset $ac_var;} ;;
15753      esac ;;
15754    esac
15755  done
15756
15757  (set) 2>&1 |
15758    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15759    *${as_nl}ac_space=\ *)
15760      # `set' does not quote correctly, so add quotes: double-quote
15761      # substitution turns \\\\ into \\, and sed turns \\ into \.
15762      sed -n \
15763	"s/'/'\\\\''/g;
15764	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15765      ;; #(
15766    *)
15767      # `set' quotes correctly as required by POSIX, so do not add quotes.
15768      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15769      ;;
15770    esac |
15771    sort
15772) |
15773  sed '
15774     /^ac_cv_env_/b end
15775     t clear
15776     :clear
15777     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15778     t end
15779     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15780     :end' >>confcache
15781if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15782  if test -w "$cache_file"; then
15783    if test "x$cache_file" != "x/dev/null"; then
15784      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15785$as_echo "$as_me: updating cache $cache_file" >&6;}
15786      if test ! -f "$cache_file" || test -h "$cache_file"; then
15787	cat confcache >"$cache_file"
15788      else
15789        case $cache_file in #(
15790        */* | ?:*)
15791	  mv -f confcache "$cache_file"$$ &&
15792	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15793        *)
15794	  mv -f confcache "$cache_file" ;;
15795	esac
15796      fi
15797    fi
15798  else
15799    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15800$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15801  fi
15802fi
15803rm -f confcache
15804
15805test "x$prefix" = xNONE && prefix=$ac_default_prefix
15806# Let make expand exec_prefix.
15807test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15808
15809DEFS=-DHAVE_CONFIG_H
15810
15811ac_libobjs=
15812ac_ltlibobjs=
15813U=
15814for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15815  # 1. Remove the extension, and $U if already installed.
15816  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15817  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15818  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15819  #    will be set to the directory where LIBOBJS objects are built.
15820  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15821  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15822done
15823LIBOBJS=$ac_libobjs
15824
15825LTLIBOBJS=$ac_ltlibobjs
15826
15827
15828 if test -n "$EXEEXT"; then
15829  am__EXEEXT_TRUE=
15830  am__EXEEXT_FALSE='#'
15831else
15832  am__EXEEXT_TRUE='#'
15833  am__EXEEXT_FALSE=
15834fi
15835
15836if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15837  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15838Usually this means the macro was only invoked conditionally." "$LINENO" 5
15839fi
15840if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15841  as_fn_error $? "conditional \"AMDEP\" was never defined.
15842Usually this means the macro was only invoked conditionally." "$LINENO" 5
15843fi
15844if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15845  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15846Usually this means the macro was only invoked conditionally." "$LINENO" 5
15847fi
15848if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
15849  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
15850Usually this means the macro was only invoked conditionally." "$LINENO" 5
15851fi
15852if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
15853  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
15854Usually this means the macro was only invoked conditionally." "$LINENO" 5
15855fi
15856if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
15857  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
15858Usually this means the macro was only invoked conditionally." "$LINENO" 5
15859fi
15860if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
15861  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
15862Usually this means the macro was only invoked conditionally." "$LINENO" 5
15863fi
15864if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
15865  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
15866Usually this means the macro was only invoked conditionally." "$LINENO" 5
15867fi
15868if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15869  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15870Usually this means the macro was only invoked conditionally." "$LINENO" 5
15871fi
15872if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
15873  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
15874Usually this means the macro was only invoked conditionally." "$LINENO" 5
15875fi
15876if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
15877  as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
15878Usually this means the macro was only invoked conditionally." "$LINENO" 5
15879fi
15880if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
15881  as_fn_error $? "conditional \"OS2\" was never defined.
15882Usually this means the macro was only invoked conditionally." "$LINENO" 5
15883fi
15884if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
15885  as_fn_error $? "conditional \"THRSTUBS\" was never defined.
15886Usually this means the macro was only invoked conditionally." "$LINENO" 5
15887fi
15888if test -z "${UDC_TRUE}" && test -z "${UDC_FALSE}"; then
15889  as_fn_error $? "conditional \"UDC\" was never defined.
15890Usually this means the macro was only invoked conditionally." "$LINENO" 5
15891fi
15892if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
15893  as_fn_error $? "conditional \"XCMS\" was never defined.
15894Usually this means the macro was only invoked conditionally." "$LINENO" 5
15895fi
15896if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
15897  as_fn_error $? "conditional \"XLOCALE\" was never defined.
15898Usually this means the macro was only invoked conditionally." "$LINENO" 5
15899fi
15900if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
15901  as_fn_error $? "conditional \"XKB\" was never defined.
15902Usually this means the macro was only invoked conditionally." "$LINENO" 5
15903fi
15904if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
15905  as_fn_error $? "conditional \"LINT\" was never defined.
15906Usually this means the macro was only invoked conditionally." "$LINENO" 5
15907fi
15908if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
15909  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
15910Usually this means the macro was only invoked conditionally." "$LINENO" 5
15911fi
15912
15913: "${CONFIG_STATUS=./config.status}"
15914ac_write_fail=0
15915ac_clean_files_save=$ac_clean_files
15916ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15917{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15918$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15919as_write_fail=0
15920cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15921#! $SHELL
15922# Generated by $as_me.
15923# Run this file to recreate the current configuration.
15924# Compiler output produced by configure, useful for debugging
15925# configure, is in config.log if it exists.
15926
15927debug=false
15928ac_cs_recheck=false
15929ac_cs_silent=false
15930
15931SHELL=\${CONFIG_SHELL-$SHELL}
15932export SHELL
15933_ASEOF
15934cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15935## -------------------- ##
15936## M4sh Initialization. ##
15937## -------------------- ##
15938
15939# Be more Bourne compatible
15940DUALCASE=1; export DUALCASE # for MKS sh
15941if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15942  emulate sh
15943  NULLCMD=:
15944  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15945  # is contrary to our usage.  Disable this feature.
15946  alias -g '${1+"$@"}'='"$@"'
15947  setopt NO_GLOB_SUBST
15948else
15949  case `(set -o) 2>/dev/null` in #(
15950  *posix*) :
15951    set -o posix ;; #(
15952  *) :
15953     ;;
15954esac
15955fi
15956
15957
15958as_nl='
15959'
15960export as_nl
15961# Printing a long string crashes Solaris 7 /usr/bin/printf.
15962as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15963as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15964as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15965# Prefer a ksh shell builtin over an external printf program on Solaris,
15966# but without wasting forks for bash or zsh.
15967if test -z "$BASH_VERSION$ZSH_VERSION" \
15968    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15969  as_echo='print -r --'
15970  as_echo_n='print -rn --'
15971elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15972  as_echo='printf %s\n'
15973  as_echo_n='printf %s'
15974else
15975  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15976    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15977    as_echo_n='/usr/ucb/echo -n'
15978  else
15979    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15980    as_echo_n_body='eval
15981      arg=$1;
15982      case $arg in #(
15983      *"$as_nl"*)
15984	expr "X$arg" : "X\\(.*\\)$as_nl";
15985	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15986      esac;
15987      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15988    '
15989    export as_echo_n_body
15990    as_echo_n='sh -c $as_echo_n_body as_echo'
15991  fi
15992  export as_echo_body
15993  as_echo='sh -c $as_echo_body as_echo'
15994fi
15995
15996# The user is always right.
15997if test "${PATH_SEPARATOR+set}" != set; then
15998  PATH_SEPARATOR=:
15999  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16000    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16001      PATH_SEPARATOR=';'
16002  }
16003fi
16004
16005
16006# IFS
16007# We need space, tab and new line, in precisely that order.  Quoting is
16008# there to prevent editors from complaining about space-tab.
16009# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16010# splitting by setting IFS to empty value.)
16011IFS=" ""	$as_nl"
16012
16013# Find who we are.  Look in the path if we contain no directory separator.
16014as_myself=
16015case $0 in #((
16016  *[\\/]* ) as_myself=$0 ;;
16017  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16018for as_dir in $PATH
16019do
16020  IFS=$as_save_IFS
16021  test -z "$as_dir" && as_dir=.
16022    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16023  done
16024IFS=$as_save_IFS
16025
16026     ;;
16027esac
16028# We did not find ourselves, most probably we were run as `sh COMMAND'
16029# in which case we are not to be found in the path.
16030if test "x$as_myself" = x; then
16031  as_myself=$0
16032fi
16033if test ! -f "$as_myself"; then
16034  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16035  exit 1
16036fi
16037
16038# Unset variables that we do not need and which cause bugs (e.g. in
16039# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16040# suppresses any "Segmentation fault" message there.  '((' could
16041# trigger a bug in pdksh 5.2.14.
16042for as_var in BASH_ENV ENV MAIL MAILPATH
16043do eval test x\${$as_var+set} = xset \
16044  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16045done
16046PS1='$ '
16047PS2='> '
16048PS4='+ '
16049
16050# NLS nuisances.
16051LC_ALL=C
16052export LC_ALL
16053LANGUAGE=C
16054export LANGUAGE
16055
16056# CDPATH.
16057(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16058
16059
16060# as_fn_error STATUS ERROR [LINENO LOG_FD]
16061# ----------------------------------------
16062# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16063# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16064# script with STATUS, using 1 if that was 0.
16065as_fn_error ()
16066{
16067  as_status=$1; test $as_status -eq 0 && as_status=1
16068  if test "$4"; then
16069    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16070    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16071  fi
16072  $as_echo "$as_me: error: $2" >&2
16073  as_fn_exit $as_status
16074} # as_fn_error
16075
16076
16077# as_fn_set_status STATUS
16078# -----------------------
16079# Set $? to STATUS, without forking.
16080as_fn_set_status ()
16081{
16082  return $1
16083} # as_fn_set_status
16084
16085# as_fn_exit STATUS
16086# -----------------
16087# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16088as_fn_exit ()
16089{
16090  set +e
16091  as_fn_set_status $1
16092  exit $1
16093} # as_fn_exit
16094
16095# as_fn_unset VAR
16096# ---------------
16097# Portably unset VAR.
16098as_fn_unset ()
16099{
16100  { eval $1=; unset $1;}
16101}
16102as_unset=as_fn_unset
16103# as_fn_append VAR VALUE
16104# ----------------------
16105# Append the text in VALUE to the end of the definition contained in VAR. Take
16106# advantage of any shell optimizations that allow amortized linear growth over
16107# repeated appends, instead of the typical quadratic growth present in naive
16108# implementations.
16109if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16110  eval 'as_fn_append ()
16111  {
16112    eval $1+=\$2
16113  }'
16114else
16115  as_fn_append ()
16116  {
16117    eval $1=\$$1\$2
16118  }
16119fi # as_fn_append
16120
16121# as_fn_arith ARG...
16122# ------------------
16123# Perform arithmetic evaluation on the ARGs, and store the result in the
16124# global $as_val. Take advantage of shells that can avoid forks. The arguments
16125# must be portable across $(()) and expr.
16126if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16127  eval 'as_fn_arith ()
16128  {
16129    as_val=$(( $* ))
16130  }'
16131else
16132  as_fn_arith ()
16133  {
16134    as_val=`expr "$@" || test $? -eq 1`
16135  }
16136fi # as_fn_arith
16137
16138
16139if expr a : '\(a\)' >/dev/null 2>&1 &&
16140   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16141  as_expr=expr
16142else
16143  as_expr=false
16144fi
16145
16146if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16147  as_basename=basename
16148else
16149  as_basename=false
16150fi
16151
16152if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16153  as_dirname=dirname
16154else
16155  as_dirname=false
16156fi
16157
16158as_me=`$as_basename -- "$0" ||
16159$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16160	 X"$0" : 'X\(//\)$' \| \
16161	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16162$as_echo X/"$0" |
16163    sed '/^.*\/\([^/][^/]*\)\/*$/{
16164	    s//\1/
16165	    q
16166	  }
16167	  /^X\/\(\/\/\)$/{
16168	    s//\1/
16169	    q
16170	  }
16171	  /^X\/\(\/\).*/{
16172	    s//\1/
16173	    q
16174	  }
16175	  s/.*/./; q'`
16176
16177# Avoid depending upon Character Ranges.
16178as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16179as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16180as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16181as_cr_digits='0123456789'
16182as_cr_alnum=$as_cr_Letters$as_cr_digits
16183
16184ECHO_C= ECHO_N= ECHO_T=
16185case `echo -n x` in #(((((
16186-n*)
16187  case `echo 'xy\c'` in
16188  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16189  xy)  ECHO_C='\c';;
16190  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16191       ECHO_T='	';;
16192  esac;;
16193*)
16194  ECHO_N='-n';;
16195esac
16196
16197rm -f conf$$ conf$$.exe conf$$.file
16198if test -d conf$$.dir; then
16199  rm -f conf$$.dir/conf$$.file
16200else
16201  rm -f conf$$.dir
16202  mkdir conf$$.dir 2>/dev/null
16203fi
16204if (echo >conf$$.file) 2>/dev/null; then
16205  if ln -s conf$$.file conf$$ 2>/dev/null; then
16206    as_ln_s='ln -s'
16207    # ... but there are two gotchas:
16208    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16209    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16210    # In both cases, we have to default to `cp -p'.
16211    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16212      as_ln_s='cp -p'
16213  elif ln conf$$.file conf$$ 2>/dev/null; then
16214    as_ln_s=ln
16215  else
16216    as_ln_s='cp -p'
16217  fi
16218else
16219  as_ln_s='cp -p'
16220fi
16221rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16222rmdir conf$$.dir 2>/dev/null
16223
16224
16225# as_fn_mkdir_p
16226# -------------
16227# Create "$as_dir" as a directory, including parents if necessary.
16228as_fn_mkdir_p ()
16229{
16230
16231  case $as_dir in #(
16232  -*) as_dir=./$as_dir;;
16233  esac
16234  test -d "$as_dir" || eval $as_mkdir_p || {
16235    as_dirs=
16236    while :; do
16237      case $as_dir in #(
16238      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16239      *) as_qdir=$as_dir;;
16240      esac
16241      as_dirs="'$as_qdir' $as_dirs"
16242      as_dir=`$as_dirname -- "$as_dir" ||
16243$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16244	 X"$as_dir" : 'X\(//\)[^/]' \| \
16245	 X"$as_dir" : 'X\(//\)$' \| \
16246	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16247$as_echo X"$as_dir" |
16248    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16249	    s//\1/
16250	    q
16251	  }
16252	  /^X\(\/\/\)[^/].*/{
16253	    s//\1/
16254	    q
16255	  }
16256	  /^X\(\/\/\)$/{
16257	    s//\1/
16258	    q
16259	  }
16260	  /^X\(\/\).*/{
16261	    s//\1/
16262	    q
16263	  }
16264	  s/.*/./; q'`
16265      test -d "$as_dir" && break
16266    done
16267    test -z "$as_dirs" || eval "mkdir $as_dirs"
16268  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16269
16270
16271} # as_fn_mkdir_p
16272if mkdir -p . 2>/dev/null; then
16273  as_mkdir_p='mkdir -p "$as_dir"'
16274else
16275  test -d ./-p && rmdir ./-p
16276  as_mkdir_p=false
16277fi
16278
16279if test -x / >/dev/null 2>&1; then
16280  as_test_x='test -x'
16281else
16282  if ls -dL / >/dev/null 2>&1; then
16283    as_ls_L_option=L
16284  else
16285    as_ls_L_option=
16286  fi
16287  as_test_x='
16288    eval sh -c '\''
16289      if test -d "$1"; then
16290	test -d "$1/.";
16291      else
16292	case $1 in #(
16293	-*)set "./$1";;
16294	esac;
16295	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16296	???[sx]*):;;*)false;;esac;fi
16297    '\'' sh
16298  '
16299fi
16300as_executable_p=$as_test_x
16301
16302# Sed expression to map a string onto a valid CPP name.
16303as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16304
16305# Sed expression to map a string onto a valid variable name.
16306as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16307
16308
16309exec 6>&1
16310## ----------------------------------- ##
16311## Main body of $CONFIG_STATUS script. ##
16312## ----------------------------------- ##
16313_ASEOF
16314test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16315
16316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16317# Save the log message, to keep $0 and so on meaningful, and to
16318# report actual input values of CONFIG_FILES etc. instead of their
16319# values after options handling.
16320ac_log="
16321This file was extended by libX11 $as_me 1.4.1, which was
16322generated by GNU Autoconf 2.68.  Invocation command line was
16323
16324  CONFIG_FILES    = $CONFIG_FILES
16325  CONFIG_HEADERS  = $CONFIG_HEADERS
16326  CONFIG_LINKS    = $CONFIG_LINKS
16327  CONFIG_COMMANDS = $CONFIG_COMMANDS
16328  $ $0 $@
16329
16330on `(hostname || uname -n) 2>/dev/null | sed 1q`
16331"
16332
16333_ACEOF
16334
16335case $ac_config_files in *"
16336"*) set x $ac_config_files; shift; ac_config_files=$*;;
16337esac
16338
16339case $ac_config_headers in *"
16340"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16341esac
16342
16343
16344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16345# Files that config.status was made for.
16346config_files="$ac_config_files"
16347config_headers="$ac_config_headers"
16348config_commands="$ac_config_commands"
16349
16350_ACEOF
16351
16352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16353ac_cs_usage="\
16354\`$as_me' instantiates files and other configuration actions
16355from templates according to the current configuration.  Unless the files
16356and actions are specified as TAGs, all are instantiated by default.
16357
16358Usage: $0 [OPTION]... [TAG]...
16359
16360  -h, --help       print this help, then exit
16361  -V, --version    print version number and configuration settings, then exit
16362      --config     print configuration, then exit
16363  -q, --quiet, --silent
16364                   do not print progress messages
16365  -d, --debug      don't remove temporary files
16366      --recheck    update $as_me by reconfiguring in the same conditions
16367      --file=FILE[:TEMPLATE]
16368                   instantiate the configuration file FILE
16369      --header=FILE[:TEMPLATE]
16370                   instantiate the configuration header FILE
16371
16372Configuration files:
16373$config_files
16374
16375Configuration headers:
16376$config_headers
16377
16378Configuration commands:
16379$config_commands
16380
16381Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
16382
16383_ACEOF
16384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16385ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16386ac_cs_version="\\
16387libX11 config.status 1.4.1
16388configured by $0, generated by GNU Autoconf 2.68,
16389  with options \\"\$ac_cs_config\\"
16390
16391Copyright (C) 2010 Free Software Foundation, Inc.
16392This config.status script is free software; the Free Software Foundation
16393gives unlimited permission to copy, distribute and modify it."
16394
16395ac_pwd='$ac_pwd'
16396srcdir='$srcdir'
16397INSTALL='$INSTALL'
16398MKDIR_P='$MKDIR_P'
16399AWK='$AWK'
16400test -n "\$AWK" || AWK=awk
16401_ACEOF
16402
16403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16404# The default lists apply if the user does not specify any file.
16405ac_need_defaults=:
16406while test $# != 0
16407do
16408  case $1 in
16409  --*=?*)
16410    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16411    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16412    ac_shift=:
16413    ;;
16414  --*=)
16415    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16416    ac_optarg=
16417    ac_shift=:
16418    ;;
16419  *)
16420    ac_option=$1
16421    ac_optarg=$2
16422    ac_shift=shift
16423    ;;
16424  esac
16425
16426  case $ac_option in
16427  # Handling of the options.
16428  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16429    ac_cs_recheck=: ;;
16430  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16431    $as_echo "$ac_cs_version"; exit ;;
16432  --config | --confi | --conf | --con | --co | --c )
16433    $as_echo "$ac_cs_config"; exit ;;
16434  --debug | --debu | --deb | --de | --d | -d )
16435    debug=: ;;
16436  --file | --fil | --fi | --f )
16437    $ac_shift
16438    case $ac_optarg in
16439    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16440    '') as_fn_error $? "missing file argument" ;;
16441    esac
16442    as_fn_append CONFIG_FILES " '$ac_optarg'"
16443    ac_need_defaults=false;;
16444  --header | --heade | --head | --hea )
16445    $ac_shift
16446    case $ac_optarg in
16447    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16448    esac
16449    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16450    ac_need_defaults=false;;
16451  --he | --h)
16452    # Conflict between --help and --header
16453    as_fn_error $? "ambiguous option: \`$1'
16454Try \`$0 --help' for more information.";;
16455  --help | --hel | -h )
16456    $as_echo "$ac_cs_usage"; exit ;;
16457  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16458  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16459    ac_cs_silent=: ;;
16460
16461  # This is an error.
16462  -*) as_fn_error $? "unrecognized option: \`$1'
16463Try \`$0 --help' for more information." ;;
16464
16465  *) as_fn_append ac_config_targets " $1"
16466     ac_need_defaults=false ;;
16467
16468  esac
16469  shift
16470done
16471
16472ac_configure_extra_args=
16473
16474if $ac_cs_silent; then
16475  exec 6>/dev/null
16476  ac_configure_extra_args="$ac_configure_extra_args --silent"
16477fi
16478
16479_ACEOF
16480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16481if \$ac_cs_recheck; then
16482  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16483  shift
16484  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16485  CONFIG_SHELL='$SHELL'
16486  export CONFIG_SHELL
16487  exec "\$@"
16488fi
16489
16490_ACEOF
16491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16492exec 5>>config.log
16493{
16494  echo
16495  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16496## Running $as_me. ##
16497_ASBOX
16498  $as_echo "$ac_log"
16499} >&5
16500
16501_ACEOF
16502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16503#
16504# INIT-COMMANDS
16505#
16506AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16507
16508
16509# The HP-UX ksh and POSIX shell print the target directory to stdout
16510# if CDPATH is set.
16511(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16512
16513sed_quote_subst='$sed_quote_subst'
16514double_quote_subst='$double_quote_subst'
16515delay_variable_subst='$delay_variable_subst'
16516macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16517macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16518enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16519enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16520pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16521enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16522SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16523ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16524host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16525host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16526host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16527build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16528build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16529build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16530SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16531Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16532GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16533EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16534FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16535LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16536NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16537LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16538max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16539ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16540exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16541lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16542lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16543lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16544lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16545lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16546reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16547reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16548OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16549deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16550file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16551file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16552want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16553DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16554sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16555AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16556AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16557archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16558STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16559RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16560old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16561old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16562old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16563lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16564CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16565CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16566compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16567GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16568lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16569lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16570lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16571lt_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"`'
16572nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16573lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16574objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16575MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16576lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16577lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16578lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16579lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16580lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16581need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16582MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16583DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16584NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16585LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16586OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16587OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16588libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16589shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16590extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16591archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16592enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16593export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16594whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16595compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16596old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16597old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16598archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16599archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16600module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16601module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16602with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16603allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16604no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16605hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16606hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16607hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16608hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16609hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16610hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16611hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16612hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16613inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16614link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16615always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16616export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16617exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16618include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16619prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16620postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16621file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16622variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16623need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16624need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16625version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16626runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16627shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16628shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16629libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16630library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16631soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16632install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16633postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16634postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16635finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16636finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16637hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16638sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16639sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16640hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16641enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16642enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16643enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16644old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16645striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16646
16647LTCC='$LTCC'
16648LTCFLAGS='$LTCFLAGS'
16649compiler='$compiler_DEFAULT'
16650
16651# A function that is used when there is no print builtin or printf.
16652func_fallback_echo ()
16653{
16654  eval 'cat <<_LTECHO_EOF
16655\$1
16656_LTECHO_EOF'
16657}
16658
16659# Quote evaled strings.
16660for var in SHELL \
16661ECHO \
16662SED \
16663GREP \
16664EGREP \
16665FGREP \
16666LD \
16667NM \
16668LN_S \
16669lt_SP2NL \
16670lt_NL2SP \
16671reload_flag \
16672OBJDUMP \
16673deplibs_check_method \
16674file_magic_cmd \
16675file_magic_glob \
16676want_nocaseglob \
16677DLLTOOL \
16678sharedlib_from_linklib_cmd \
16679AR \
16680AR_FLAGS \
16681archiver_list_spec \
16682STRIP \
16683RANLIB \
16684CC \
16685CFLAGS \
16686compiler \
16687lt_cv_sys_global_symbol_pipe \
16688lt_cv_sys_global_symbol_to_cdecl \
16689lt_cv_sys_global_symbol_to_c_name_address \
16690lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16691nm_file_list_spec \
16692lt_prog_compiler_no_builtin_flag \
16693lt_prog_compiler_pic \
16694lt_prog_compiler_wl \
16695lt_prog_compiler_static \
16696lt_cv_prog_compiler_c_o \
16697need_locks \
16698MANIFEST_TOOL \
16699DSYMUTIL \
16700NMEDIT \
16701LIPO \
16702OTOOL \
16703OTOOL64 \
16704shrext_cmds \
16705export_dynamic_flag_spec \
16706whole_archive_flag_spec \
16707compiler_needs_object \
16708with_gnu_ld \
16709allow_undefined_flag \
16710no_undefined_flag \
16711hardcode_libdir_flag_spec \
16712hardcode_libdir_flag_spec_ld \
16713hardcode_libdir_separator \
16714exclude_expsyms \
16715include_expsyms \
16716file_list_spec \
16717variables_saved_for_relink \
16718libname_spec \
16719library_names_spec \
16720soname_spec \
16721install_override_mode \
16722finish_eval \
16723old_striplib \
16724striplib; do
16725    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16726    *[\\\\\\\`\\"\\\$]*)
16727      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16728      ;;
16729    *)
16730      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16731      ;;
16732    esac
16733done
16734
16735# Double-quote double-evaled strings.
16736for var in reload_cmds \
16737old_postinstall_cmds \
16738old_postuninstall_cmds \
16739old_archive_cmds \
16740extract_expsyms_cmds \
16741old_archive_from_new_cmds \
16742old_archive_from_expsyms_cmds \
16743archive_cmds \
16744archive_expsym_cmds \
16745module_cmds \
16746module_expsym_cmds \
16747export_symbols_cmds \
16748prelink_cmds \
16749postlink_cmds \
16750postinstall_cmds \
16751postuninstall_cmds \
16752finish_cmds \
16753sys_lib_search_path_spec \
16754sys_lib_dlsearch_path_spec; do
16755    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16756    *[\\\\\\\`\\"\\\$]*)
16757      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16758      ;;
16759    *)
16760      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16761      ;;
16762    esac
16763done
16764
16765ac_aux_dir='$ac_aux_dir'
16766xsi_shell='$xsi_shell'
16767lt_shell_append='$lt_shell_append'
16768
16769# See if we are running on zsh, and set the options which allow our
16770# commands through without removal of \ escapes INIT.
16771if test -n "\${ZSH_VERSION+set}" ; then
16772   setopt NO_GLOB_SUBST
16773fi
16774
16775
16776    PACKAGE='$PACKAGE'
16777    VERSION='$VERSION'
16778    TIMESTAMP='$TIMESTAMP'
16779    RM='$RM'
16780    ofile='$ofile'
16781
16782
16783
16784
16785_ACEOF
16786
16787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16788
16789# Handling of arguments.
16790for ac_config_target in $ac_config_targets
16791do
16792  case $ac_config_target in
16793    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16794    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
16795    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16796    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16797    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16798    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16799    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16800    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
16801    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16802    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
16803    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
16804    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
16805    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16806    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
16807    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
16808    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
16809    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
16810    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
16811    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
16812    "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;;
16813    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
16814    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
16815    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
16816    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
16817    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
16818    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
16819    "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
16820    "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
16821    "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
16822    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
16823    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
16824    "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
16825    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
16826    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
16827
16828  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16829  esac
16830done
16831
16832
16833# If the user did not use the arguments to specify the items to instantiate,
16834# then the envvar interface is used.  Set only those that are not.
16835# We use the long form for the default assignment because of an extremely
16836# bizarre bug on SunOS 4.1.3.
16837if $ac_need_defaults; then
16838  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16839  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16840  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16841fi
16842
16843# Have a temporary directory for convenience.  Make it in the build tree
16844# simply because there is no reason against having it here, and in addition,
16845# creating and moving files from /tmp can sometimes cause problems.
16846# Hook for its removal unless debugging.
16847# Note that there is a small window in which the directory will not be cleaned:
16848# after its creation but before its name has been assigned to `$tmp'.
16849$debug ||
16850{
16851  tmp= ac_tmp=
16852  trap 'exit_status=$?
16853  : "${ac_tmp:=$tmp}"
16854  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16855' 0
16856  trap 'as_fn_exit 1' 1 2 13 15
16857}
16858# Create a (secure) tmp directory for tmp files.
16859
16860{
16861  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16862  test -d "$tmp"
16863}  ||
16864{
16865  tmp=./conf$$-$RANDOM
16866  (umask 077 && mkdir "$tmp")
16867} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16868ac_tmp=$tmp
16869
16870# Set up the scripts for CONFIG_FILES section.
16871# No need to generate them if there are no CONFIG_FILES.
16872# This happens for instance with `./config.status config.h'.
16873if test -n "$CONFIG_FILES"; then
16874
16875
16876ac_cr=`echo X | tr X '\015'`
16877# On cygwin, bash can eat \r inside `` if the user requested igncr.
16878# But we know of no other shell where ac_cr would be empty at this
16879# point, so we can use a bashism as a fallback.
16880if test "x$ac_cr" = x; then
16881  eval ac_cr=\$\'\\r\'
16882fi
16883ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16884if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16885  ac_cs_awk_cr='\\r'
16886else
16887  ac_cs_awk_cr=$ac_cr
16888fi
16889
16890echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16891_ACEOF
16892
16893
16894{
16895  echo "cat >conf$$subs.awk <<_ACEOF" &&
16896  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16897  echo "_ACEOF"
16898} >conf$$subs.sh ||
16899  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16900ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16901ac_delim='%!_!# '
16902for ac_last_try in false false false false false :; do
16903  . ./conf$$subs.sh ||
16904    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16905
16906  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16907  if test $ac_delim_n = $ac_delim_num; then
16908    break
16909  elif $ac_last_try; then
16910    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16911  else
16912    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16913  fi
16914done
16915rm -f conf$$subs.sh
16916
16917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16918cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16919_ACEOF
16920sed -n '
16921h
16922s/^/S["/; s/!.*/"]=/
16923p
16924g
16925s/^[^!]*!//
16926:repl
16927t repl
16928s/'"$ac_delim"'$//
16929t delim
16930:nl
16931h
16932s/\(.\{148\}\)..*/\1/
16933t more1
16934s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16935p
16936n
16937b repl
16938:more1
16939s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16940p
16941g
16942s/.\{148\}//
16943t nl
16944:delim
16945h
16946s/\(.\{148\}\)..*/\1/
16947t more2
16948s/["\\]/\\&/g; s/^/"/; s/$/"/
16949p
16950b
16951:more2
16952s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16953p
16954g
16955s/.\{148\}//
16956t delim
16957' <conf$$subs.awk | sed '
16958/^[^""]/{
16959  N
16960  s/\n//
16961}
16962' >>$CONFIG_STATUS || ac_write_fail=1
16963rm -f conf$$subs.awk
16964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16965_ACAWK
16966cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16967  for (key in S) S_is_set[key] = 1
16968  FS = ""
16969
16970}
16971{
16972  line = $ 0
16973  nfields = split(line, field, "@")
16974  substed = 0
16975  len = length(field[1])
16976  for (i = 2; i < nfields; i++) {
16977    key = field[i]
16978    keylen = length(key)
16979    if (S_is_set[key]) {
16980      value = S[key]
16981      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16982      len += length(value) + length(field[++i])
16983      substed = 1
16984    } else
16985      len += 1 + keylen
16986  }
16987
16988  print line
16989}
16990
16991_ACAWK
16992_ACEOF
16993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16994if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16995  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16996else
16997  cat
16998fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16999  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17000_ACEOF
17001
17002# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17003# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17004# trailing colons and then remove the whole line if VPATH becomes empty
17005# (actually we leave an empty line to preserve line numbers).
17006if test "x$srcdir" = x.; then
17007  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17008h
17009s///
17010s/^/:/
17011s/[	 ]*$/:/
17012s/:\$(srcdir):/:/g
17013s/:\${srcdir}:/:/g
17014s/:@srcdir@:/:/g
17015s/^:*//
17016s/:*$//
17017x
17018s/\(=[	 ]*\).*/\1/
17019G
17020s/\n//
17021s/^[^=]*=[	 ]*$//
17022}'
17023fi
17024
17025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17026fi # test -n "$CONFIG_FILES"
17027
17028# Set up the scripts for CONFIG_HEADERS section.
17029# No need to generate them if there are no CONFIG_HEADERS.
17030# This happens for instance with `./config.status Makefile'.
17031if test -n "$CONFIG_HEADERS"; then
17032cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17033BEGIN {
17034_ACEOF
17035
17036# Transform confdefs.h into an awk script `defines.awk', embedded as
17037# here-document in config.status, that substitutes the proper values into
17038# config.h.in to produce config.h.
17039
17040# Create a delimiter string that does not exist in confdefs.h, to ease
17041# handling of long lines.
17042ac_delim='%!_!# '
17043for ac_last_try in false false :; do
17044  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17045  if test -z "$ac_tt"; then
17046    break
17047  elif $ac_last_try; then
17048    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17049  else
17050    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17051  fi
17052done
17053
17054# For the awk script, D is an array of macro values keyed by name,
17055# likewise P contains macro parameters if any.  Preserve backslash
17056# newline sequences.
17057
17058ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17059sed -n '
17060s/.\{148\}/&'"$ac_delim"'/g
17061t rset
17062:rset
17063s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17064t def
17065d
17066:def
17067s/\\$//
17068t bsnl
17069s/["\\]/\\&/g
17070s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17071D["\1"]=" \3"/p
17072s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17073d
17074:bsnl
17075s/["\\]/\\&/g
17076s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17077D["\1"]=" \3\\\\\\n"\\/p
17078t cont
17079s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17080t cont
17081d
17082:cont
17083n
17084s/.\{148\}/&'"$ac_delim"'/g
17085t clear
17086:clear
17087s/\\$//
17088t bsnlc
17089s/["\\]/\\&/g; s/^/"/; s/$/"/p
17090d
17091:bsnlc
17092s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17093b cont
17094' <confdefs.h | sed '
17095s/'"$ac_delim"'/"\\\
17096"/g' >>$CONFIG_STATUS || ac_write_fail=1
17097
17098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17099  for (key in D) D_is_set[key] = 1
17100  FS = ""
17101}
17102/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17103  line = \$ 0
17104  split(line, arg, " ")
17105  if (arg[1] == "#") {
17106    defundef = arg[2]
17107    mac1 = arg[3]
17108  } else {
17109    defundef = substr(arg[1], 2)
17110    mac1 = arg[2]
17111  }
17112  split(mac1, mac2, "(") #)
17113  macro = mac2[1]
17114  prefix = substr(line, 1, index(line, defundef) - 1)
17115  if (D_is_set[macro]) {
17116    # Preserve the white space surrounding the "#".
17117    print prefix "define", macro P[macro] D[macro]
17118    next
17119  } else {
17120    # Replace #undef with comments.  This is necessary, for example,
17121    # in the case of _POSIX_SOURCE, which is predefined and required
17122    # on some systems where configure will not decide to define it.
17123    if (defundef == "undef") {
17124      print "/*", prefix defundef, macro, "*/"
17125      next
17126    }
17127  }
17128}
17129{ print }
17130_ACAWK
17131_ACEOF
17132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17133  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17134fi # test -n "$CONFIG_HEADERS"
17135
17136
17137eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17138shift
17139for ac_tag
17140do
17141  case $ac_tag in
17142  :[FHLC]) ac_mode=$ac_tag; continue;;
17143  esac
17144  case $ac_mode$ac_tag in
17145  :[FHL]*:*);;
17146  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17147  :[FH]-) ac_tag=-:-;;
17148  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17149  esac
17150  ac_save_IFS=$IFS
17151  IFS=:
17152  set x $ac_tag
17153  IFS=$ac_save_IFS
17154  shift
17155  ac_file=$1
17156  shift
17157
17158  case $ac_mode in
17159  :L) ac_source=$1;;
17160  :[FH])
17161    ac_file_inputs=
17162    for ac_f
17163    do
17164      case $ac_f in
17165      -) ac_f="$ac_tmp/stdin";;
17166      *) # Look for the file first in the build tree, then in the source tree
17167	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17168	 # because $ac_f cannot contain `:'.
17169	 test -f "$ac_f" ||
17170	   case $ac_f in
17171	   [\\/$]*) false;;
17172	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17173	   esac ||
17174	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17175      esac
17176      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17177      as_fn_append ac_file_inputs " '$ac_f'"
17178    done
17179
17180    # Let's still pretend it is `configure' which instantiates (i.e., don't
17181    # use $as_me), people would be surprised to read:
17182    #    /* config.h.  Generated by config.status.  */
17183    configure_input='Generated from '`
17184	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17185	`' by configure.'
17186    if test x"$ac_file" != x-; then
17187      configure_input="$ac_file.  $configure_input"
17188      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17189$as_echo "$as_me: creating $ac_file" >&6;}
17190    fi
17191    # Neutralize special characters interpreted by sed in replacement strings.
17192    case $configure_input in #(
17193    *\&* | *\|* | *\\* )
17194       ac_sed_conf_input=`$as_echo "$configure_input" |
17195       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17196    *) ac_sed_conf_input=$configure_input;;
17197    esac
17198
17199    case $ac_tag in
17200    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17201      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17202    esac
17203    ;;
17204  esac
17205
17206  ac_dir=`$as_dirname -- "$ac_file" ||
17207$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17208	 X"$ac_file" : 'X\(//\)[^/]' \| \
17209	 X"$ac_file" : 'X\(//\)$' \| \
17210	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17211$as_echo X"$ac_file" |
17212    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17213	    s//\1/
17214	    q
17215	  }
17216	  /^X\(\/\/\)[^/].*/{
17217	    s//\1/
17218	    q
17219	  }
17220	  /^X\(\/\/\)$/{
17221	    s//\1/
17222	    q
17223	  }
17224	  /^X\(\/\).*/{
17225	    s//\1/
17226	    q
17227	  }
17228	  s/.*/./; q'`
17229  as_dir="$ac_dir"; as_fn_mkdir_p
17230  ac_builddir=.
17231
17232case "$ac_dir" in
17233.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17234*)
17235  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17236  # A ".." for each directory in $ac_dir_suffix.
17237  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17238  case $ac_top_builddir_sub in
17239  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17240  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17241  esac ;;
17242esac
17243ac_abs_top_builddir=$ac_pwd
17244ac_abs_builddir=$ac_pwd$ac_dir_suffix
17245# for backward compatibility:
17246ac_top_builddir=$ac_top_build_prefix
17247
17248case $srcdir in
17249  .)  # We are building in place.
17250    ac_srcdir=.
17251    ac_top_srcdir=$ac_top_builddir_sub
17252    ac_abs_top_srcdir=$ac_pwd ;;
17253  [\\/]* | ?:[\\/]* )  # Absolute name.
17254    ac_srcdir=$srcdir$ac_dir_suffix;
17255    ac_top_srcdir=$srcdir
17256    ac_abs_top_srcdir=$srcdir ;;
17257  *) # Relative name.
17258    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17259    ac_top_srcdir=$ac_top_build_prefix$srcdir
17260    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17261esac
17262ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17263
17264
17265  case $ac_mode in
17266  :F)
17267  #
17268  # CONFIG_FILE
17269  #
17270
17271  case $INSTALL in
17272  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17273  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17274  esac
17275  ac_MKDIR_P=$MKDIR_P
17276  case $MKDIR_P in
17277  [\\/$]* | ?:[\\/]* ) ;;
17278  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17279  esac
17280_ACEOF
17281
17282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17283# If the template does not know about datarootdir, expand it.
17284# FIXME: This hack should be removed a few years after 2.60.
17285ac_datarootdir_hack=; ac_datarootdir_seen=
17286ac_sed_dataroot='
17287/datarootdir/ {
17288  p
17289  q
17290}
17291/@datadir@/p
17292/@docdir@/p
17293/@infodir@/p
17294/@localedir@/p
17295/@mandir@/p'
17296case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17297*datarootdir*) ac_datarootdir_seen=yes;;
17298*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17299  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17300$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17301_ACEOF
17302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17303  ac_datarootdir_hack='
17304  s&@datadir@&$datadir&g
17305  s&@docdir@&$docdir&g
17306  s&@infodir@&$infodir&g
17307  s&@localedir@&$localedir&g
17308  s&@mandir@&$mandir&g
17309  s&\\\${datarootdir}&$datarootdir&g' ;;
17310esac
17311_ACEOF
17312
17313# Neutralize VPATH when `$srcdir' = `.'.
17314# Shell code in configure.ac might set extrasub.
17315# FIXME: do we really want to maintain this feature?
17316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17317ac_sed_extra="$ac_vpsub
17318$extrasub
17319_ACEOF
17320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17321:t
17322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17323s|@configure_input@|$ac_sed_conf_input|;t t
17324s&@top_builddir@&$ac_top_builddir_sub&;t t
17325s&@top_build_prefix@&$ac_top_build_prefix&;t t
17326s&@srcdir@&$ac_srcdir&;t t
17327s&@abs_srcdir@&$ac_abs_srcdir&;t t
17328s&@top_srcdir@&$ac_top_srcdir&;t t
17329s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17330s&@builddir@&$ac_builddir&;t t
17331s&@abs_builddir@&$ac_abs_builddir&;t t
17332s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17333s&@INSTALL@&$ac_INSTALL&;t t
17334s&@MKDIR_P@&$ac_MKDIR_P&;t t
17335$ac_datarootdir_hack
17336"
17337eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17338  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17339
17340test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17341  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17342  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17343      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17344  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17345which seems to be undefined.  Please make sure it is defined" >&5
17346$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17347which seems to be undefined.  Please make sure it is defined" >&2;}
17348
17349  rm -f "$ac_tmp/stdin"
17350  case $ac_file in
17351  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17352  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17353  esac \
17354  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17355 ;;
17356  :H)
17357  #
17358  # CONFIG_HEADER
17359  #
17360  if test x"$ac_file" != x-; then
17361    {
17362      $as_echo "/* $configure_input  */" \
17363      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17364    } >"$ac_tmp/config.h" \
17365      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17366    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17367      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17368$as_echo "$as_me: $ac_file is unchanged" >&6;}
17369    else
17370      rm -f "$ac_file"
17371      mv "$ac_tmp/config.h" "$ac_file" \
17372	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17373    fi
17374  else
17375    $as_echo "/* $configure_input  */" \
17376      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17377      || as_fn_error $? "could not create -" "$LINENO" 5
17378  fi
17379# Compute "$ac_file"'s index in $config_headers.
17380_am_arg="$ac_file"
17381_am_stamp_count=1
17382for _am_header in $config_headers :; do
17383  case $_am_header in
17384    $_am_arg | $_am_arg:* )
17385      break ;;
17386    * )
17387      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17388  esac
17389done
17390echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17391$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17392	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17393	 X"$_am_arg" : 'X\(//\)$' \| \
17394	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17395$as_echo X"$_am_arg" |
17396    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17397	    s//\1/
17398	    q
17399	  }
17400	  /^X\(\/\/\)[^/].*/{
17401	    s//\1/
17402	    q
17403	  }
17404	  /^X\(\/\/\)$/{
17405	    s//\1/
17406	    q
17407	  }
17408	  /^X\(\/\).*/{
17409	    s//\1/
17410	    q
17411	  }
17412	  s/.*/./; q'`/stamp-h$_am_stamp_count
17413 ;;
17414
17415  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17416$as_echo "$as_me: executing $ac_file commands" >&6;}
17417 ;;
17418  esac
17419
17420
17421  case $ac_file$ac_mode in
17422    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17423  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17424  # are listed without --file.  Let's play safe and only enable the eval
17425  # if we detect the quoting.
17426  case $CONFIG_FILES in
17427  *\'*) eval set x "$CONFIG_FILES" ;;
17428  *)   set x $CONFIG_FILES ;;
17429  esac
17430  shift
17431  for mf
17432  do
17433    # Strip MF so we end up with the name of the file.
17434    mf=`echo "$mf" | sed -e 's/:.*$//'`
17435    # Check whether this is an Automake generated Makefile or not.
17436    # We used to match only the files named `Makefile.in', but
17437    # some people rename them; so instead we look at the file content.
17438    # Grep'ing the first line is not enough: some people post-process
17439    # each Makefile.in and add a new line on top of each file to say so.
17440    # Grep'ing the whole file is not good either: AIX grep has a line
17441    # limit of 2048, but all sed's we know have understand at least 4000.
17442    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17443      dirpart=`$as_dirname -- "$mf" ||
17444$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17445	 X"$mf" : 'X\(//\)[^/]' \| \
17446	 X"$mf" : 'X\(//\)$' \| \
17447	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17448$as_echo X"$mf" |
17449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17450	    s//\1/
17451	    q
17452	  }
17453	  /^X\(\/\/\)[^/].*/{
17454	    s//\1/
17455	    q
17456	  }
17457	  /^X\(\/\/\)$/{
17458	    s//\1/
17459	    q
17460	  }
17461	  /^X\(\/\).*/{
17462	    s//\1/
17463	    q
17464	  }
17465	  s/.*/./; q'`
17466    else
17467      continue
17468    fi
17469    # Extract the definition of DEPDIR, am__include, and am__quote
17470    # from the Makefile without running `make'.
17471    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17472    test -z "$DEPDIR" && continue
17473    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17474    test -z "am__include" && continue
17475    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17476    # When using ansi2knr, U may be empty or an underscore; expand it
17477    U=`sed -n 's/^U = //p' < "$mf"`
17478    # Find all dependency output files, they are included files with
17479    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17480    # simplest approach to changing $(DEPDIR) to its actual value in the
17481    # expansion.
17482    for file in `sed -n "
17483      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17484	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17485      # Make sure the directory exists.
17486      test -f "$dirpart/$file" && continue
17487      fdir=`$as_dirname -- "$file" ||
17488$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17489	 X"$file" : 'X\(//\)[^/]' \| \
17490	 X"$file" : 'X\(//\)$' \| \
17491	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17492$as_echo X"$file" |
17493    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17494	    s//\1/
17495	    q
17496	  }
17497	  /^X\(\/\/\)[^/].*/{
17498	    s//\1/
17499	    q
17500	  }
17501	  /^X\(\/\/\)$/{
17502	    s//\1/
17503	    q
17504	  }
17505	  /^X\(\/\).*/{
17506	    s//\1/
17507	    q
17508	  }
17509	  s/.*/./; q'`
17510      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17511      # echo "creating $dirpart/$file"
17512      echo '# dummy' > "$dirpart/$file"
17513    done
17514  done
17515}
17516 ;;
17517    "libtool":C)
17518
17519    # See if we are running on zsh, and set the options which allow our
17520    # commands through without removal of \ escapes.
17521    if test -n "${ZSH_VERSION+set}" ; then
17522      setopt NO_GLOB_SUBST
17523    fi
17524
17525    cfgfile="${ofile}T"
17526    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17527    $RM "$cfgfile"
17528
17529    cat <<_LT_EOF >> "$cfgfile"
17530#! $SHELL
17531
17532# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17533# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17534# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17535# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17536#
17537#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17538#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17539#                 Inc.
17540#   Written by Gordon Matzigkeit, 1996
17541#
17542#   This file is part of GNU Libtool.
17543#
17544# GNU Libtool is free software; you can redistribute it and/or
17545# modify it under the terms of the GNU General Public License as
17546# published by the Free Software Foundation; either version 2 of
17547# the License, or (at your option) any later version.
17548#
17549# As a special exception to the GNU General Public License,
17550# if you distribute this file as part of a program or library that
17551# is built using GNU Libtool, you may include this file under the
17552# same distribution terms that you use for the rest of that program.
17553#
17554# GNU Libtool is distributed in the hope that it will be useful,
17555# but WITHOUT ANY WARRANTY; without even the implied warranty of
17556# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17557# GNU General Public License for more details.
17558#
17559# You should have received a copy of the GNU General Public License
17560# along with GNU Libtool; see the file COPYING.  If not, a copy
17561# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17562# obtained by writing to the Free Software Foundation, Inc.,
17563# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17564
17565
17566# The names of the tagged configurations supported by this script.
17567available_tags=""
17568
17569# ### BEGIN LIBTOOL CONFIG
17570
17571# Which release of libtool.m4 was used?
17572macro_version=$macro_version
17573macro_revision=$macro_revision
17574
17575# Whether or not to build shared libraries.
17576build_libtool_libs=$enable_shared
17577
17578# Whether or not to build static libraries.
17579build_old_libs=$enable_static
17580
17581# What type of objects to build.
17582pic_mode=$pic_mode
17583
17584# Whether or not to optimize for fast installation.
17585fast_install=$enable_fast_install
17586
17587# Shell to use when invoking shell scripts.
17588SHELL=$lt_SHELL
17589
17590# An echo program that protects backslashes.
17591ECHO=$lt_ECHO
17592
17593# The host system.
17594host_alias=$host_alias
17595host=$host
17596host_os=$host_os
17597
17598# The build system.
17599build_alias=$build_alias
17600build=$build
17601build_os=$build_os
17602
17603# A sed program that does not truncate output.
17604SED=$lt_SED
17605
17606# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17607Xsed="\$SED -e 1s/^X//"
17608
17609# A grep program that handles long lines.
17610GREP=$lt_GREP
17611
17612# An ERE matcher.
17613EGREP=$lt_EGREP
17614
17615# A literal string matcher.
17616FGREP=$lt_FGREP
17617
17618# A BSD- or MS-compatible name lister.
17619NM=$lt_NM
17620
17621# Whether we need soft or hard links.
17622LN_S=$lt_LN_S
17623
17624# What is the maximum length of a command?
17625max_cmd_len=$max_cmd_len
17626
17627# Object file suffix (normally "o").
17628objext=$ac_objext
17629
17630# Executable file suffix (normally "").
17631exeext=$exeext
17632
17633# whether the shell understands "unset".
17634lt_unset=$lt_unset
17635
17636# turn spaces into newlines.
17637SP2NL=$lt_lt_SP2NL
17638
17639# turn newlines into spaces.
17640NL2SP=$lt_lt_NL2SP
17641
17642# convert \$build file names to \$host format.
17643to_host_file_cmd=$lt_cv_to_host_file_cmd
17644
17645# convert \$build files to toolchain format.
17646to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17647
17648# An object symbol dumper.
17649OBJDUMP=$lt_OBJDUMP
17650
17651# Method to check whether dependent libraries are shared objects.
17652deplibs_check_method=$lt_deplibs_check_method
17653
17654# Command to use when deplibs_check_method = "file_magic".
17655file_magic_cmd=$lt_file_magic_cmd
17656
17657# How to find potential files when deplibs_check_method = "file_magic".
17658file_magic_glob=$lt_file_magic_glob
17659
17660# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17661want_nocaseglob=$lt_want_nocaseglob
17662
17663# DLL creation program.
17664DLLTOOL=$lt_DLLTOOL
17665
17666# Command to associate shared and link libraries.
17667sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17668
17669# The archiver.
17670AR=$lt_AR
17671
17672# Flags to create an archive.
17673AR_FLAGS=$lt_AR_FLAGS
17674
17675# How to feed a file listing to the archiver.
17676archiver_list_spec=$lt_archiver_list_spec
17677
17678# A symbol stripping program.
17679STRIP=$lt_STRIP
17680
17681# Commands used to install an old-style archive.
17682RANLIB=$lt_RANLIB
17683old_postinstall_cmds=$lt_old_postinstall_cmds
17684old_postuninstall_cmds=$lt_old_postuninstall_cmds
17685
17686# Whether to use a lock for old archive extraction.
17687lock_old_archive_extraction=$lock_old_archive_extraction
17688
17689# A C compiler.
17690LTCC=$lt_CC
17691
17692# LTCC compiler flags.
17693LTCFLAGS=$lt_CFLAGS
17694
17695# Take the output of nm and produce a listing of raw symbols and C names.
17696global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17697
17698# Transform the output of nm in a proper C declaration.
17699global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17700
17701# Transform the output of nm in a C name address pair.
17702global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17703
17704# Transform the output of nm in a C name address pair when lib prefix is needed.
17705global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17706
17707# Specify filename containing input files for \$NM.
17708nm_file_list_spec=$lt_nm_file_list_spec
17709
17710# The root where to search for dependent libraries,and in which our libraries should be installed.
17711lt_sysroot=$lt_sysroot
17712
17713# The name of the directory that contains temporary libtool files.
17714objdir=$objdir
17715
17716# Used to examine libraries when file_magic_cmd begins with "file".
17717MAGIC_CMD=$MAGIC_CMD
17718
17719# Must we lock files when doing compilation?
17720need_locks=$lt_need_locks
17721
17722# Manifest tool.
17723MANIFEST_TOOL=$lt_MANIFEST_TOOL
17724
17725# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17726DSYMUTIL=$lt_DSYMUTIL
17727
17728# Tool to change global to local symbols on Mac OS X.
17729NMEDIT=$lt_NMEDIT
17730
17731# Tool to manipulate fat objects and archives on Mac OS X.
17732LIPO=$lt_LIPO
17733
17734# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17735OTOOL=$lt_OTOOL
17736
17737# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17738OTOOL64=$lt_OTOOL64
17739
17740# Old archive suffix (normally "a").
17741libext=$libext
17742
17743# Shared library suffix (normally ".so").
17744shrext_cmds=$lt_shrext_cmds
17745
17746# The commands to extract the exported symbol list from a shared archive.
17747extract_expsyms_cmds=$lt_extract_expsyms_cmds
17748
17749# Variables whose values should be saved in libtool wrapper scripts and
17750# restored at link time.
17751variables_saved_for_relink=$lt_variables_saved_for_relink
17752
17753# Do we need the "lib" prefix for modules?
17754need_lib_prefix=$need_lib_prefix
17755
17756# Do we need a version for libraries?
17757need_version=$need_version
17758
17759# Library versioning type.
17760version_type=$version_type
17761
17762# Shared library runtime path variable.
17763runpath_var=$runpath_var
17764
17765# Shared library path variable.
17766shlibpath_var=$shlibpath_var
17767
17768# Is shlibpath searched before the hard-coded library search path?
17769shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17770
17771# Format of library name prefix.
17772libname_spec=$lt_libname_spec
17773
17774# List of archive names.  First name is the real one, the rest are links.
17775# The last name is the one that the linker finds with -lNAME
17776library_names_spec=$lt_library_names_spec
17777
17778# The coded name of the library, if different from the real name.
17779soname_spec=$lt_soname_spec
17780
17781# Permission mode override for installation of shared libraries.
17782install_override_mode=$lt_install_override_mode
17783
17784# Command to use after installation of a shared archive.
17785postinstall_cmds=$lt_postinstall_cmds
17786
17787# Command to use after uninstallation of a shared archive.
17788postuninstall_cmds=$lt_postuninstall_cmds
17789
17790# Commands used to finish a libtool library installation in a directory.
17791finish_cmds=$lt_finish_cmds
17792
17793# As "finish_cmds", except a single script fragment to be evaled but
17794# not shown.
17795finish_eval=$lt_finish_eval
17796
17797# Whether we should hardcode library paths into libraries.
17798hardcode_into_libs=$hardcode_into_libs
17799
17800# Compile-time system search path for libraries.
17801sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17802
17803# Run-time system search path for libraries.
17804sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17805
17806# Whether dlopen is supported.
17807dlopen_support=$enable_dlopen
17808
17809# Whether dlopen of programs is supported.
17810dlopen_self=$enable_dlopen_self
17811
17812# Whether dlopen of statically linked programs is supported.
17813dlopen_self_static=$enable_dlopen_self_static
17814
17815# Commands to strip libraries.
17816old_striplib=$lt_old_striplib
17817striplib=$lt_striplib
17818
17819
17820# The linker used to build libraries.
17821LD=$lt_LD
17822
17823# How to create reloadable object files.
17824reload_flag=$lt_reload_flag
17825reload_cmds=$lt_reload_cmds
17826
17827# Commands used to build an old-style archive.
17828old_archive_cmds=$lt_old_archive_cmds
17829
17830# A language specific compiler.
17831CC=$lt_compiler
17832
17833# Is the compiler the GNU compiler?
17834with_gcc=$GCC
17835
17836# Compiler flag to turn off builtin functions.
17837no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17838
17839# Additional compiler flags for building library objects.
17840pic_flag=$lt_lt_prog_compiler_pic
17841
17842# How to pass a linker flag through the compiler.
17843wl=$lt_lt_prog_compiler_wl
17844
17845# Compiler flag to prevent dynamic linking.
17846link_static_flag=$lt_lt_prog_compiler_static
17847
17848# Does compiler simultaneously support -c and -o options?
17849compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17850
17851# Whether or not to add -lc for building shared libraries.
17852build_libtool_need_lc=$archive_cmds_need_lc
17853
17854# Whether or not to disallow shared libs when runtime libs are static.
17855allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17856
17857# Compiler flag to allow reflexive dlopens.
17858export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17859
17860# Compiler flag to generate shared objects directly from archives.
17861whole_archive_flag_spec=$lt_whole_archive_flag_spec
17862
17863# Whether the compiler copes with passing no objects directly.
17864compiler_needs_object=$lt_compiler_needs_object
17865
17866# Create an old-style archive from a shared archive.
17867old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17868
17869# Create a temporary old-style archive to link instead of a shared archive.
17870old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17871
17872# Commands used to build a shared archive.
17873archive_cmds=$lt_archive_cmds
17874archive_expsym_cmds=$lt_archive_expsym_cmds
17875
17876# Commands used to build a loadable module if different from building
17877# a shared archive.
17878module_cmds=$lt_module_cmds
17879module_expsym_cmds=$lt_module_expsym_cmds
17880
17881# Whether we are building with GNU ld or not.
17882with_gnu_ld=$lt_with_gnu_ld
17883
17884# Flag that allows shared libraries with undefined symbols to be built.
17885allow_undefined_flag=$lt_allow_undefined_flag
17886
17887# Flag that enforces no undefined symbols.
17888no_undefined_flag=$lt_no_undefined_flag
17889
17890# Flag to hardcode \$libdir into a binary during linking.
17891# This must work even if \$libdir does not exist
17892hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17893
17894# If ld is used when linking, flag to hardcode \$libdir into a binary
17895# during linking.  This must work even if \$libdir does not exist.
17896hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17897
17898# Whether we need a single "-rpath" flag with a separated argument.
17899hardcode_libdir_separator=$lt_hardcode_libdir_separator
17900
17901# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17902# DIR into the resulting binary.
17903hardcode_direct=$hardcode_direct
17904
17905# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17906# DIR into the resulting binary and the resulting library dependency is
17907# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17908# library is relocated.
17909hardcode_direct_absolute=$hardcode_direct_absolute
17910
17911# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17912# into the resulting binary.
17913hardcode_minus_L=$hardcode_minus_L
17914
17915# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17916# into the resulting binary.
17917hardcode_shlibpath_var=$hardcode_shlibpath_var
17918
17919# Set to "yes" if building a shared library automatically hardcodes DIR
17920# into the library and all subsequent libraries and executables linked
17921# against it.
17922hardcode_automatic=$hardcode_automatic
17923
17924# Set to yes if linker adds runtime paths of dependent libraries
17925# to runtime path list.
17926inherit_rpath=$inherit_rpath
17927
17928# Whether libtool must link a program against all its dependency libraries.
17929link_all_deplibs=$link_all_deplibs
17930
17931# Set to "yes" if exported symbols are required.
17932always_export_symbols=$always_export_symbols
17933
17934# The commands to list exported symbols.
17935export_symbols_cmds=$lt_export_symbols_cmds
17936
17937# Symbols that should not be listed in the preloaded symbols.
17938exclude_expsyms=$lt_exclude_expsyms
17939
17940# Symbols that must always be exported.
17941include_expsyms=$lt_include_expsyms
17942
17943# Commands necessary for linking programs (against libraries) with templates.
17944prelink_cmds=$lt_prelink_cmds
17945
17946# Commands necessary for finishing linking programs.
17947postlink_cmds=$lt_postlink_cmds
17948
17949# Specify filename containing input files.
17950file_list_spec=$lt_file_list_spec
17951
17952# How to hardcode a shared library path into an executable.
17953hardcode_action=$hardcode_action
17954
17955# ### END LIBTOOL CONFIG
17956
17957_LT_EOF
17958
17959  case $host_os in
17960  aix3*)
17961    cat <<\_LT_EOF >> "$cfgfile"
17962# AIX sometimes has problems with the GCC collect2 program.  For some
17963# reason, if we set the COLLECT_NAMES environment variable, the problems
17964# vanish in a puff of smoke.
17965if test "X${COLLECT_NAMES+set}" != Xset; then
17966  COLLECT_NAMES=
17967  export COLLECT_NAMES
17968fi
17969_LT_EOF
17970    ;;
17971  esac
17972
17973
17974ltmain="$ac_aux_dir/ltmain.sh"
17975
17976
17977  # We use sed instead of cat because bash on DJGPP gets confused if
17978  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17979  # text mode, it properly converts lines to CR/LF.  This bash problem
17980  # is reportedly fixed, but why not run on old versions too?
17981  sed '$q' "$ltmain" >> "$cfgfile" \
17982     || (rm -f "$cfgfile"; exit 1)
17983
17984  if test x"$xsi_shell" = xyes; then
17985  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17986func_dirname ()\
17987{\
17988\    case ${1} in\
17989\      */*) func_dirname_result="${1%/*}${2}" ;;\
17990\      *  ) func_dirname_result="${3}" ;;\
17991\    esac\
17992} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17993  && mv -f "$cfgfile.tmp" "$cfgfile" \
17994    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17995test 0 -eq $? || _lt_function_replace_fail=:
17996
17997
17998  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17999func_basename ()\
18000{\
18001\    func_basename_result="${1##*/}"\
18002} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18003  && mv -f "$cfgfile.tmp" "$cfgfile" \
18004    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18005test 0 -eq $? || _lt_function_replace_fail=:
18006
18007
18008  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18009func_dirname_and_basename ()\
18010{\
18011\    case ${1} in\
18012\      */*) func_dirname_result="${1%/*}${2}" ;;\
18013\      *  ) func_dirname_result="${3}" ;;\
18014\    esac\
18015\    func_basename_result="${1##*/}"\
18016} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18017  && mv -f "$cfgfile.tmp" "$cfgfile" \
18018    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18019test 0 -eq $? || _lt_function_replace_fail=:
18020
18021
18022  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18023func_stripname ()\
18024{\
18025\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18026\    # positional parameters, so assign one to ordinary parameter first.\
18027\    func_stripname_result=${3}\
18028\    func_stripname_result=${func_stripname_result#"${1}"}\
18029\    func_stripname_result=${func_stripname_result%"${2}"}\
18030} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18031  && mv -f "$cfgfile.tmp" "$cfgfile" \
18032    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18033test 0 -eq $? || _lt_function_replace_fail=:
18034
18035
18036  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18037func_split_long_opt ()\
18038{\
18039\    func_split_long_opt_name=${1%%=*}\
18040\    func_split_long_opt_arg=${1#*=}\
18041} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18042  && mv -f "$cfgfile.tmp" "$cfgfile" \
18043    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18044test 0 -eq $? || _lt_function_replace_fail=:
18045
18046
18047  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18048func_split_short_opt ()\
18049{\
18050\    func_split_short_opt_arg=${1#??}\
18051\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18052} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18053  && mv -f "$cfgfile.tmp" "$cfgfile" \
18054    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18055test 0 -eq $? || _lt_function_replace_fail=:
18056
18057
18058  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18059func_lo2o ()\
18060{\
18061\    case ${1} in\
18062\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18063\      *)    func_lo2o_result=${1} ;;\
18064\    esac\
18065} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18066  && mv -f "$cfgfile.tmp" "$cfgfile" \
18067    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18068test 0 -eq $? || _lt_function_replace_fail=:
18069
18070
18071  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18072func_xform ()\
18073{\
18074    func_xform_result=${1%.*}.lo\
18075} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18076  && mv -f "$cfgfile.tmp" "$cfgfile" \
18077    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18078test 0 -eq $? || _lt_function_replace_fail=:
18079
18080
18081  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18082func_arith ()\
18083{\
18084    func_arith_result=$(( $* ))\
18085} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18086  && mv -f "$cfgfile.tmp" "$cfgfile" \
18087    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18088test 0 -eq $? || _lt_function_replace_fail=:
18089
18090
18091  sed -e '/^func_len ()$/,/^} # func_len /c\
18092func_len ()\
18093{\
18094    func_len_result=${#1}\
18095} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18096  && mv -f "$cfgfile.tmp" "$cfgfile" \
18097    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18098test 0 -eq $? || _lt_function_replace_fail=:
18099
18100fi
18101
18102if test x"$lt_shell_append" = xyes; then
18103  sed -e '/^func_append ()$/,/^} # func_append /c\
18104func_append ()\
18105{\
18106    eval "${1}+=\\${2}"\
18107} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18108  && mv -f "$cfgfile.tmp" "$cfgfile" \
18109    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18110test 0 -eq $? || _lt_function_replace_fail=:
18111
18112
18113  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18114func_append_quoted ()\
18115{\
18116\    func_quote_for_eval "${2}"\
18117\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18118} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18119  && mv -f "$cfgfile.tmp" "$cfgfile" \
18120    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18121test 0 -eq $? || _lt_function_replace_fail=:
18122
18123
18124  # Save a `func_append' function call where possible by direct use of '+='
18125  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18126    && mv -f "$cfgfile.tmp" "$cfgfile" \
18127      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18128  test 0 -eq $? || _lt_function_replace_fail=:
18129else
18130  # Save a `func_append' function call even when '+=' is not available
18131  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18132    && mv -f "$cfgfile.tmp" "$cfgfile" \
18133      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18134  test 0 -eq $? || _lt_function_replace_fail=:
18135fi
18136
18137if test x"$_lt_function_replace_fail" = x":"; then
18138  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18139$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18140fi
18141
18142
18143   mv -f "$cfgfile" "$ofile" ||
18144    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18145  chmod +x "$ofile"
18146
18147 ;;
18148
18149  esac
18150done # for ac_tag
18151
18152
18153as_fn_exit 0
18154_ACEOF
18155ac_clean_files=$ac_clean_files_save
18156
18157test $ac_write_fail = 0 ||
18158  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18159
18160
18161# configure is writing to config.log, and then calls config.status.
18162# config.status does its own redirection, appending to config.log.
18163# Unfortunately, on DOS this fails, as config.log is still kept open
18164# by configure, so config.status won't be able to write to it; its
18165# output is simply discarded.  So we exec the FD to /dev/null,
18166# effectively closing config.log, so it can be properly (re)opened and
18167# appended to by config.status.  When coming back to configure, we
18168# need to make the FD available again.
18169if test "$no_create" != yes; then
18170  ac_cs_success=:
18171  ac_config_status_args=
18172  test "$silent" = yes &&
18173    ac_config_status_args="$ac_config_status_args --quiet"
18174  exec 5>/dev/null
18175  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18176  exec 5>>config.log
18177  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18178  # would make configure fail if this is the last instruction.
18179  $ac_cs_success || as_fn_exit 1
18180fi
18181if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18182  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18183$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18184fi
18185
18186
18187echo ""
18188echo "X11 will be built with the following settings:"
18189echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
18190echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
18191echo " Threading support:                       "$xthreads
18192echo " Use Threads safe API:                    "$mtsafeapi
18193echo " Threads stubs in libX11:                 "$thrstubs
18194echo " XCMS:                                    "$XCMS
18195echo " Internationalization support:            "$XLOCALE
18196echo " XF86BigFont support:                     "$XF86BIGFONT
18197echo " XKB support:                             "$XKB
18198echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
18199echo " Compose table cache enabled:             "$COMPOSECACHE
18200echo " Functional specs building enabled:       "$build_specs
18201echo ""
18202