configure revision 57f47464
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libX11 1.4.3.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550as_awk_strverscmp='
551  # Use only awk features that work with 7th edition Unix awk (1978).
552  # My, what an old awk you have, Mr. Solaris!
553  END {
554    while (length(v1) && length(v2)) {
555      # Set d1 to be the next thing to compare from v1, and likewise for d2.
556      # Normally this is a single character, but if v1 and v2 contain digits,
557      # compare them as integers and fractions as strverscmp does.
558      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559	# Split v1 and v2 into their leading digit string components d1 and d2,
560	# and advance v1 and v2 past the leading digit strings.
561	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
565	if (d1 ~ /^0/) {
566	  if (d2 ~ /^0/) {
567	    # Compare two fractions.
568	    while (d1 ~ /^0/ && d2 ~ /^0/) {
569	      d1 = substr(d1, 2); len1--
570	      d2 = substr(d2, 2); len2--
571	    }
572	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573	      # The two components differ in length, and the common prefix
574	      # contains only leading zeros.  Consider the longer to be less.
575	      d1 = -len1
576	      d2 = -len2
577	    } else {
578	      # Otherwise, compare as strings.
579	      d1 = "x" d1
580	      d2 = "x" d2
581	    }
582	  } else {
583	    # A fraction is less than an integer.
584	    exit 1
585	  }
586	} else {
587	  if (d2 ~ /^0/) {
588	    # An integer is greater than a fraction.
589	    exit 2
590	  } else {
591	    # Compare two integers.
592	    d1 += 0
593	    d2 += 0
594	  }
595	}
596      } else {
597	# The normal case, without worrying about digits.
598	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
600      }
601      if (d1 < d2) exit 1
602      if (d1 > d2) exit 2
603    }
604    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605    # which mishandles some comparisons of empty strings to integers.
606    if (length(v2)) exit 1
607    if (length(v1)) exit 2
608  }
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.3'
635PACKAGE_STRING='libX11 1.4.3'
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
734RAWCPPFLAGS
735RAWCPP
736HAVE_STYLESHEETS_FALSE
737HAVE_STYLESHEETS_TRUE
738XSL_STYLESHEET
739STYLESHEET_SRCDIR
740XORG_SGML_PATH
741HAVE_XSLTPROC_FALSE
742HAVE_XSLTPROC_TRUE
743XSLTPROC
744HAVE_FOP_FALSE
745HAVE_FOP_TRUE
746FOP
747HAVE_XMLTO_FALSE
748HAVE_XMLTO_TRUE
749HAVE_XMLTO_TEXT_FALSE
750HAVE_XMLTO_TEXT_TRUE
751XMLTO
752ENABLE_SPECS_FALSE
753ENABLE_SPECS_TRUE
754AM_BACKSLASH
755AM_DEFAULT_VERBOSITY
756MAN_SUBSTS
757XORG_MAN_PAGE
758ADMIN_MAN_DIR
759DRIVER_MAN_DIR
760MISC_MAN_DIR
761FILE_MAN_DIR
762LIB_MAN_DIR
763APP_MAN_DIR
764ADMIN_MAN_SUFFIX
765DRIVER_MAN_SUFFIX
766MISC_MAN_SUFFIX
767FILE_MAN_SUFFIX
768LIB_MAN_SUFFIX
769APP_MAN_SUFFIX
770INSTALL_CMD
771PKG_CONFIG
772CHANGELOG_CMD
773CWARNFLAGS
774OTOOL64
775OTOOL
776LIPO
777NMEDIT
778DSYMUTIL
779MANIFEST_TOOL
780RANLIB
781ac_ct_AR
782AR
783DLLTOOL
784OBJDUMP
785LN_S
786NM
787ac_ct_DUMPBIN
788DUMPBIN
789LD
790FGREP
791SED
792LIBTOOL
793MAINT
794MAINTAINER_MODE_FALSE
795MAINTAINER_MODE_TRUE
796am__fastdepCC_FALSE
797am__fastdepCC_TRUE
798CCDEPMODE
799AMDEPBACKSLASH
800AMDEP_FALSE
801AMDEP_TRUE
802am__quote
803am__include
804DEPDIR
805am__untar
806am__tar
807AMTAR
808am__leading_dot
809SET_MAKE
810AWK
811mkdir_p
812MKDIR_P
813INSTALL_STRIP_PROGRAM
814STRIP
815install_sh
816MAKEINFO
817AUTOHEADER
818AUTOMAKE
819AUTOCONF
820ACLOCAL
821VERSION
822PACKAGE
823CYGPATH_W
824am__isrc
825INSTALL_DATA
826INSTALL_SCRIPT
827INSTALL_PROGRAM
828EGREP
829GREP
830CPP
831OBJEXT
832EXEEXT
833ac_ct_CC
834CPPFLAGS
835LDFLAGS
836CFLAGS
837CC
838host_os
839host_vendor
840host_cpu
841host
842build_os
843build_vendor
844build_cpu
845build
846target_alias
847host_alias
848build_alias
849LIBS
850ECHO_T
851ECHO_N
852ECHO_C
853DEFS
854mandir
855localedir
856libdir
857psdir
858pdfdir
859dvidir
860htmldir
861infodir
862docdir
863oldincludedir
864includedir
865localstatedir
866sharedstatedir
867sysconfdir
868datadir
869datarootdir
870libexecdir
871sbindir
872bindir
873program_transform_name
874prefix
875exec_prefix
876PACKAGE_URL
877PACKAGE_BUGREPORT
878PACKAGE_STRING
879PACKAGE_VERSION
880PACKAGE_TARNAME
881PACKAGE_NAME
882PATH_SEPARATOR
883SHELL'
884ac_subst_files=''
885ac_user_opts='
886enable_option_checking
887enable_dependency_tracking
888enable_maintainer_mode
889enable_shared
890enable_static
891with_pic
892enable_fast_install
893with_gnu_ld
894with_sysroot
895enable_libtool_lock
896enable_strict_compilation
897enable_silent_rules
898enable_specs
899with_xmlto
900with_fop
901with_xsltproc
902with_perl
903enable_unix_transport
904enable_tcp_transport
905enable_ipv6
906enable_local_transport
907enable_secure_rpc
908with_local_transport_order
909enable_loadable_i18n
910enable_loadable_xcursor
911with_launchd
912enable_xthreads
913enable_xcms
914enable_xlocale
915enable_xlocaledir
916enable_xf86bigfont
917enable_xkb
918enable_composecache
919with_lint
920enable_lint_library
921with_locale_lib_dir
922enable_malloc0returnsnull
923'
924      ac_precious_vars='build_alias
925host_alias
926target_alias
927CC
928CFLAGS
929LDFLAGS
930LIBS
931CPPFLAGS
932CPP
933PKG_CONFIG
934XMLTO
935FOP
936XSLTPROC
937BIGFONT_CFLAGS
938BIGFONT_LIBS
939LINT
940LINT_FLAGS
941X11_CFLAGS
942X11_LIBS'
943
944
945# Initialize some variables set by options.
946ac_init_help=
947ac_init_version=false
948ac_unrecognized_opts=
949ac_unrecognized_sep=
950# The variables have the same names as the options, with
951# dashes changed to underlines.
952cache_file=/dev/null
953exec_prefix=NONE
954no_create=
955no_recursion=
956prefix=NONE
957program_prefix=NONE
958program_suffix=NONE
959program_transform_name=s,x,x,
960silent=
961site=
962srcdir=
963verbose=
964x_includes=NONE
965x_libraries=NONE
966
967# Installation directory options.
968# These are left unexpanded so users can "make install exec_prefix=/foo"
969# and all the variables that are supposed to be based on exec_prefix
970# by default will actually change.
971# Use braces instead of parens because sh, perl, etc. also accept them.
972# (The list follows the same order as the GNU Coding Standards.)
973bindir='${exec_prefix}/bin'
974sbindir='${exec_prefix}/sbin'
975libexecdir='${exec_prefix}/libexec'
976datarootdir='${prefix}/share'
977datadir='${datarootdir}'
978sysconfdir='${prefix}/etc'
979sharedstatedir='${prefix}/com'
980localstatedir='${prefix}/var'
981includedir='${prefix}/include'
982oldincludedir='/usr/include'
983docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984infodir='${datarootdir}/info'
985htmldir='${docdir}'
986dvidir='${docdir}'
987pdfdir='${docdir}'
988psdir='${docdir}'
989libdir='${exec_prefix}/lib'
990localedir='${datarootdir}/locale'
991mandir='${datarootdir}/man'
992
993ac_prev=
994ac_dashdash=
995for ac_option
996do
997  # If the previous option needs an argument, assign it.
998  if test -n "$ac_prev"; then
999    eval $ac_prev=\$ac_option
1000    ac_prev=
1001    continue
1002  fi
1003
1004  case $ac_option in
1005  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006  *=)   ac_optarg= ;;
1007  *)    ac_optarg=yes ;;
1008  esac
1009
1010  # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012  case $ac_dashdash$ac_option in
1013  --)
1014    ac_dashdash=yes ;;
1015
1016  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017    ac_prev=bindir ;;
1018  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019    bindir=$ac_optarg ;;
1020
1021  -build | --build | --buil | --bui | --bu)
1022    ac_prev=build_alias ;;
1023  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024    build_alias=$ac_optarg ;;
1025
1026  -cache-file | --cache-file | --cache-fil | --cache-fi \
1027  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028    ac_prev=cache_file ;;
1029  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031    cache_file=$ac_optarg ;;
1032
1033  --config-cache | -C)
1034    cache_file=config.cache ;;
1035
1036  -datadir | --datadir | --datadi | --datad)
1037    ac_prev=datadir ;;
1038  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039    datadir=$ac_optarg ;;
1040
1041  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042  | --dataroo | --dataro | --datar)
1043    ac_prev=datarootdir ;;
1044  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046    datarootdir=$ac_optarg ;;
1047
1048  -disable-* | --disable-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error $? "invalid feature name: $ac_useropt"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"enable_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060	 ac_unrecognized_sep=', ';;
1061    esac
1062    eval enable_$ac_useropt=no ;;
1063
1064  -docdir | --docdir | --docdi | --doc | --do)
1065    ac_prev=docdir ;;
1066  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067    docdir=$ac_optarg ;;
1068
1069  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070    ac_prev=dvidir ;;
1071  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072    dvidir=$ac_optarg ;;
1073
1074  -enable-* | --enable-*)
1075    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078      as_fn_error $? "invalid feature name: $ac_useropt"
1079    ac_useropt_orig=$ac_useropt
1080    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081    case $ac_user_opts in
1082      *"
1083"enable_$ac_useropt"
1084"*) ;;
1085      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086	 ac_unrecognized_sep=', ';;
1087    esac
1088    eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092  | --exec | --exe | --ex)
1093    ac_prev=exec_prefix ;;
1094  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096  | --exec=* | --exe=* | --ex=*)
1097    exec_prefix=$ac_optarg ;;
1098
1099  -gas | --gas | --ga | --g)
1100    # Obsolete; use --with-gas.
1101    with_gas=yes ;;
1102
1103  -help | --help | --hel | --he | -h)
1104    ac_init_help=long ;;
1105  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106    ac_init_help=recursive ;;
1107  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108    ac_init_help=short ;;
1109
1110  -host | --host | --hos | --ho)
1111    ac_prev=host_alias ;;
1112  -host=* | --host=* | --hos=* | --ho=*)
1113    host_alias=$ac_optarg ;;
1114
1115  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116    ac_prev=htmldir ;;
1117  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118  | --ht=*)
1119    htmldir=$ac_optarg ;;
1120
1121  -includedir | --includedir | --includedi | --included | --include \
1122  | --includ | --inclu | --incl | --inc)
1123    ac_prev=includedir ;;
1124  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125  | --includ=* | --inclu=* | --incl=* | --inc=*)
1126    includedir=$ac_optarg ;;
1127
1128  -infodir | --infodir | --infodi | --infod | --info | --inf)
1129    ac_prev=infodir ;;
1130  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131    infodir=$ac_optarg ;;
1132
1133  -libdir | --libdir | --libdi | --libd)
1134    ac_prev=libdir ;;
1135  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136    libdir=$ac_optarg ;;
1137
1138  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139  | --libexe | --libex | --libe)
1140    ac_prev=libexecdir ;;
1141  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142  | --libexe=* | --libex=* | --libe=*)
1143    libexecdir=$ac_optarg ;;
1144
1145  -localedir | --localedir | --localedi | --localed | --locale)
1146    ac_prev=localedir ;;
1147  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148    localedir=$ac_optarg ;;
1149
1150  -localstatedir | --localstatedir | --localstatedi | --localstated \
1151  | --localstate | --localstat | --localsta | --localst | --locals)
1152    ac_prev=localstatedir ;;
1153  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155    localstatedir=$ac_optarg ;;
1156
1157  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158    ac_prev=mandir ;;
1159  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160    mandir=$ac_optarg ;;
1161
1162  -nfp | --nfp | --nf)
1163    # Obsolete; use --without-fp.
1164    with_fp=no ;;
1165
1166  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167  | --no-cr | --no-c | -n)
1168    no_create=yes ;;
1169
1170  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172    no_recursion=yes ;;
1173
1174  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176  | --oldin | --oldi | --old | --ol | --o)
1177    ac_prev=oldincludedir ;;
1178  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181    oldincludedir=$ac_optarg ;;
1182
1183  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184    ac_prev=prefix ;;
1185  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186    prefix=$ac_optarg ;;
1187
1188  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189  | --program-pre | --program-pr | --program-p)
1190    ac_prev=program_prefix ;;
1191  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193    program_prefix=$ac_optarg ;;
1194
1195  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196  | --program-suf | --program-su | --program-s)
1197    ac_prev=program_suffix ;;
1198  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200    program_suffix=$ac_optarg ;;
1201
1202  -program-transform-name | --program-transform-name \
1203  | --program-transform-nam | --program-transform-na \
1204  | --program-transform-n | --program-transform- \
1205  | --program-transform | --program-transfor \
1206  | --program-transfo | --program-transf \
1207  | --program-trans | --program-tran \
1208  | --progr-tra | --program-tr | --program-t)
1209    ac_prev=program_transform_name ;;
1210  -program-transform-name=* | --program-transform-name=* \
1211  | --program-transform-nam=* | --program-transform-na=* \
1212  | --program-transform-n=* | --program-transform-=* \
1213  | --program-transform=* | --program-transfor=* \
1214  | --program-transfo=* | --program-transf=* \
1215  | --program-trans=* | --program-tran=* \
1216  | --progr-tra=* | --program-tr=* | --program-t=*)
1217    program_transform_name=$ac_optarg ;;
1218
1219  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220    ac_prev=pdfdir ;;
1221  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222    pdfdir=$ac_optarg ;;
1223
1224  -psdir | --psdir | --psdi | --psd | --ps)
1225    ac_prev=psdir ;;
1226  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227    psdir=$ac_optarg ;;
1228
1229  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230  | -silent | --silent | --silen | --sile | --sil)
1231    silent=yes ;;
1232
1233  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234    ac_prev=sbindir ;;
1235  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236  | --sbi=* | --sb=*)
1237    sbindir=$ac_optarg ;;
1238
1239  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241  | --sharedst | --shareds | --shared | --share | --shar \
1242  | --sha | --sh)
1243    ac_prev=sharedstatedir ;;
1244  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247  | --sha=* | --sh=*)
1248    sharedstatedir=$ac_optarg ;;
1249
1250  -site | --site | --sit)
1251    ac_prev=site ;;
1252  -site=* | --site=* | --sit=*)
1253    site=$ac_optarg ;;
1254
1255  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256    ac_prev=srcdir ;;
1257  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258    srcdir=$ac_optarg ;;
1259
1260  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261  | --syscon | --sysco | --sysc | --sys | --sy)
1262    ac_prev=sysconfdir ;;
1263  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265    sysconfdir=$ac_optarg ;;
1266
1267  -target | --target | --targe | --targ | --tar | --ta | --t)
1268    ac_prev=target_alias ;;
1269  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270    target_alias=$ac_optarg ;;
1271
1272  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273    verbose=yes ;;
1274
1275  -version | --version | --versio | --versi | --vers | -V)
1276    ac_init_version=: ;;
1277
1278  -with-* | --with-*)
1279    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280    # Reject names that are not valid shell variable names.
1281    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282      as_fn_error $? "invalid package name: $ac_useropt"
1283    ac_useropt_orig=$ac_useropt
1284    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285    case $ac_user_opts in
1286      *"
1287"with_$ac_useropt"
1288"*) ;;
1289      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290	 ac_unrecognized_sep=', ';;
1291    esac
1292    eval with_$ac_useropt=\$ac_optarg ;;
1293
1294  -without-* | --without-*)
1295    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296    # Reject names that are not valid shell variable names.
1297    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298      as_fn_error $? "invalid package name: $ac_useropt"
1299    ac_useropt_orig=$ac_useropt
1300    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301    case $ac_user_opts in
1302      *"
1303"with_$ac_useropt"
1304"*) ;;
1305      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306	 ac_unrecognized_sep=', ';;
1307    esac
1308    eval with_$ac_useropt=no ;;
1309
1310  --x)
1311    # Obsolete; use --with-x.
1312    with_x=yes ;;
1313
1314  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315  | --x-incl | --x-inc | --x-in | --x-i)
1316    ac_prev=x_includes ;;
1317  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319    x_includes=$ac_optarg ;;
1320
1321  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323    ac_prev=x_libraries ;;
1324  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326    x_libraries=$ac_optarg ;;
1327
1328  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329Try \`$0 --help' for more information"
1330    ;;
1331
1332  *=*)
1333    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334    # Reject names that are not valid shell variable names.
1335    case $ac_envvar in #(
1336      '' | [0-9]* | *[!_$as_cr_alnum]* )
1337      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338    esac
1339    eval $ac_envvar=\$ac_optarg
1340    export $ac_envvar ;;
1341
1342  *)
1343    # FIXME: should be removed in autoconf 3.0.
1344    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1348    ;;
1349
1350  esac
1351done
1352
1353if test -n "$ac_prev"; then
1354  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355  as_fn_error $? "missing argument to $ac_option"
1356fi
1357
1358if test -n "$ac_unrecognized_opts"; then
1359  case $enable_option_checking in
1360    no) ;;
1361    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363  esac
1364fi
1365
1366# Check all directory arguments for consistency.
1367for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368		datadir sysconfdir sharedstatedir localstatedir includedir \
1369		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370		libdir localedir mandir
1371do
1372  eval ac_val=\$$ac_var
1373  # Remove trailing slashes.
1374  case $ac_val in
1375    */ )
1376      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377      eval $ac_var=\$ac_val;;
1378  esac
1379  # Be sure to have absolute directory names.
1380  case $ac_val in
1381    [\\/$]* | ?:[\\/]* )  continue;;
1382    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383  esac
1384  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385done
1386
1387# There might be people who depend on the old broken behavior: `$host'
1388# used to hold the argument of --host etc.
1389# FIXME: To remove some day.
1390build=$build_alias
1391host=$host_alias
1392target=$target_alias
1393
1394# FIXME: To remove some day.
1395if test "x$host_alias" != x; then
1396  if test "x$build_alias" = x; then
1397    cross_compiling=maybe
1398    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1399    If a cross compiler is detected then cross compile mode will be used" >&2
1400  elif test "x$build_alias" != "x$host_alias"; then
1401    cross_compiling=yes
1402  fi
1403fi
1404
1405ac_tool_prefix=
1406test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408test "$silent" = yes && exec 6>/dev/null
1409
1410
1411ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412ac_ls_di=`ls -di .` &&
1413ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414  as_fn_error $? "working directory cannot be determined"
1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416  as_fn_error $? "pwd does not report name of working directory"
1417
1418
1419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421  ac_srcdir_defaulted=yes
1422  # Try the directory containing this script, then the parent directory.
1423  ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425	 X"$as_myself" : 'X\(//\)[^/]' \| \
1426	 X"$as_myself" : 'X\(//\)$' \| \
1427	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430	    s//\1/
1431	    q
1432	  }
1433	  /^X\(\/\/\)[^/].*/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\/\)$/{
1438	    s//\1/
1439	    q
1440	  }
1441	  /^X\(\/\).*/{
1442	    s//\1/
1443	    q
1444	  }
1445	  s/.*/./; q'`
1446  srcdir=$ac_confdir
1447  if test ! -r "$srcdir/$ac_unique_file"; then
1448    srcdir=..
1449  fi
1450else
1451  ac_srcdir_defaulted=no
1452fi
1453if test ! -r "$srcdir/$ac_unique_file"; then
1454  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456fi
1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458ac_abs_confdir=`(
1459	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460	pwd)`
1461# When building in place, set srcdir=.
1462if test "$ac_abs_confdir" = "$ac_pwd"; then
1463  srcdir=.
1464fi
1465# Remove unnecessary trailing slashes from srcdir.
1466# Double slashes in file names in object file debugging info
1467# mess up M-x gdb in Emacs.
1468case $srcdir in
1469*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470esac
1471for ac_var in $ac_precious_vars; do
1472  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473  eval ac_env_${ac_var}_value=\$${ac_var}
1474  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476done
1477
1478#
1479# Report the --help message.
1480#
1481if test "$ac_init_help" = "long"; then
1482  # Omit some internal or obsolete options to make the list less imposing.
1483  # This message is too long to be a string in the A/UX 3.1 sh.
1484  cat <<_ACEOF
1485\`configure' configures libX11 1.4.3 to adapt to many kinds of systems.
1486
1487Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492Defaults for the options are specified in brackets.
1493
1494Configuration:
1495  -h, --help              display this help and exit
1496      --help=short        display options specific to this package
1497      --help=recursive    display the short help of all the included packages
1498  -V, --version           display version information and exit
1499  -q, --quiet, --silent   do not print \`checking ...' messages
1500      --cache-file=FILE   cache test results in FILE [disabled]
1501  -C, --config-cache      alias for \`--cache-file=config.cache'
1502  -n, --no-create         do not create output files
1503      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505Installation directories:
1506  --prefix=PREFIX         install architecture-independent files in PREFIX
1507                          [$ac_default_prefix]
1508  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                          [PREFIX]
1510
1511By default, \`make install' will install all the files in
1512\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514for instance \`--prefix=\$HOME'.
1515
1516For better control, use the options below.
1517
1518Fine tuning of the installation directories:
1519  --bindir=DIR            user executables [EPREFIX/bin]
1520  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521  --libexecdir=DIR        program executables [EPREFIX/libexec]
1522  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525  --libdir=DIR            object code libraries [EPREFIX/lib]
1526  --includedir=DIR        C header files [PREFIX/include]
1527  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530  --infodir=DIR           info documentation [DATAROOTDIR/info]
1531  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532  --mandir=DIR            man documentation [DATAROOTDIR/man]
1533  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1534  --htmldir=DIR           html documentation [DOCDIR]
1535  --dvidir=DIR            dvi documentation [DOCDIR]
1536  --pdfdir=DIR            pdf documentation [DOCDIR]
1537  --psdir=DIR             ps documentation [DOCDIR]
1538_ACEOF
1539
1540  cat <<\_ACEOF
1541
1542Program names:
1543  --program-prefix=PREFIX            prepend PREFIX to installed program names
1544  --program-suffix=SUFFIX            append SUFFIX to installed program names
1545  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1546
1547System types:
1548  --build=BUILD     configure for building on BUILD [guessed]
1549  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550_ACEOF
1551fi
1552
1553if test -n "$ac_init_help"; then
1554  case $ac_init_help in
1555     short | recursive ) echo "Configuration of libX11 1.4.3:";;
1556   esac
1557  cat <<\_ACEOF
1558
1559Optional Features:
1560  --disable-option-checking  ignore unrecognized --enable/--with options
1561  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1562  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1563  --disable-dependency-tracking  speeds up one-time build
1564  --enable-dependency-tracking   do not reject slow dependency extractors
1565  --enable-maintainer-mode  enable make rules and dependencies not useful
1566			  (and sometimes confusing) to the casual installer
1567  --enable-shared[=PKGS]  build shared libraries [default=yes]
1568  --enable-static[=PKGS]  build static libraries [default=yes]
1569  --enable-fast-install[=PKGS]
1570                          optimize for fast installation [default=yes]
1571  --disable-libtool-lock  avoid locking (might break parallel builds)
1572  --enable-strict-compilation
1573                          Enable all warnings from compiler and make them
1574                          errors (default: disabled)
1575  --enable-silent-rules          less verbose build output (undo: `make V=1')
1576  --disable-silent-rules         verbose build output (undo: `make V=0')
1577  --enable-specs          Enable building the specs (default: yes)
1578  --enable-unix-transport Enable UNIX domain socket transport
1579  --enable-tcp-transport  Enable TCP socket transport
1580  --enable-ipv6           Enable IPv6 support
1581  --enable-local-transport
1582                          Enable os-specific local transport
1583  --enable-secure-rpc     Enable Secure RPC
1584  --enable-loadable-i18n  Controls loadable i18n module support
1585  --disable-loadable-xcursor
1586                          Controls loadable xcursor library support
1587  --disable-xthreads      Disable Xlib support for Multithreading
1588  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1589  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1590  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1591  --disable-xf86bigfont   Disable XF86BigFont extension support
1592  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1593  --disable-composecache  Disable compose table cache support
1594  --enable-lint-library   Create lint library (default: disabled)
1595  --enable-malloc0returnsnull
1596                          malloc(0) returns NULL (default: auto)
1597
1598Optional Packages:
1599  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1600  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1601  --with-pic              try to use only PIC/non-PIC objects [default=use
1602                          both]
1603  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1604  --with-sysroot=DIR Search for dependent libraries within DIR
1605                        (or the compiler's sysroot if not specified).
1606  --with-xmlto            Use xmlto to regenerate documentation (default:
1607                          auto)
1608  --with-fop              Use fop to regenerate documentation (default: no)
1609  --with-xsltproc         Use xsltproc for the transformation of XML documents
1610                          (default: auto)
1611  --with-perl=<path>      path to perl interpreter for build-time tests
1612  --with-local-transport-order=LIST
1613                          preference sorted list of transport types to try for
1614                          local connections
1615  --with-launchd          Build with support for Apple's launchd (default:
1616                          auto)
1617  --with-lint             Use a lint-style source code checker (default:
1618                          disabled)
1619  --with-locale-lib-dir=DIR
1620                          Directory where locale libraries files are installed
1621                          (default: $libdir/X11/locale)
1622
1623Some influential environment variables:
1624  CC          C compiler command
1625  CFLAGS      C compiler flags
1626  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1627              nonstandard directory <lib dir>
1628  LIBS        libraries to pass to the linker, e.g. -l<library>
1629  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1630              you have headers in a nonstandard directory <include dir>
1631  CPP         C preprocessor
1632  PKG_CONFIG  path to pkg-config utility
1633  XMLTO       Path to xmlto command
1634  FOP         Path to fop command
1635  XSLTPROC    Path to xsltproc command
1636  BIGFONT_CFLAGS
1637              C compiler flags for BIGFONT, overriding pkg-config
1638  BIGFONT_LIBS
1639              linker flags for BIGFONT, overriding pkg-config
1640  LINT        Path to a lint-style command
1641  LINT_FLAGS  Flags for the lint-style command
1642  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1643  X11_LIBS    linker flags for X11, overriding pkg-config
1644
1645Use these variables to override the choices made by `configure' or to help
1646it to find libraries and programs with nonstandard names/locations.
1647
1648Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1649_ACEOF
1650ac_status=$?
1651fi
1652
1653if test "$ac_init_help" = "recursive"; then
1654  # If there are subdirs, report their specific --help.
1655  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656    test -d "$ac_dir" ||
1657      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658      continue
1659    ac_builddir=.
1660
1661case "$ac_dir" in
1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663*)
1664  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665  # A ".." for each directory in $ac_dir_suffix.
1666  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667  case $ac_top_builddir_sub in
1668  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670  esac ;;
1671esac
1672ac_abs_top_builddir=$ac_pwd
1673ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674# for backward compatibility:
1675ac_top_builddir=$ac_top_build_prefix
1676
1677case $srcdir in
1678  .)  # We are building in place.
1679    ac_srcdir=.
1680    ac_top_srcdir=$ac_top_builddir_sub
1681    ac_abs_top_srcdir=$ac_pwd ;;
1682  [\\/]* | ?:[\\/]* )  # Absolute name.
1683    ac_srcdir=$srcdir$ac_dir_suffix;
1684    ac_top_srcdir=$srcdir
1685    ac_abs_top_srcdir=$srcdir ;;
1686  *) # Relative name.
1687    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688    ac_top_srcdir=$ac_top_build_prefix$srcdir
1689    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690esac
1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693    cd "$ac_dir" || { ac_status=$?; continue; }
1694    # Check for guested configure.
1695    if test -f "$ac_srcdir/configure.gnu"; then
1696      echo &&
1697      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698    elif test -f "$ac_srcdir/configure"; then
1699      echo &&
1700      $SHELL "$ac_srcdir/configure" --help=recursive
1701    else
1702      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703    fi || ac_status=$?
1704    cd "$ac_pwd" || { ac_status=$?; break; }
1705  done
1706fi
1707
1708test -n "$ac_init_help" && exit $ac_status
1709if $ac_init_version; then
1710  cat <<\_ACEOF
1711libX11 configure 1.4.3
1712generated by GNU Autoconf 2.68
1713
1714Copyright (C) 2010 Free Software Foundation, Inc.
1715This configure script is free software; the Free Software Foundation
1716gives unlimited permission to copy, distribute and modify it.
1717_ACEOF
1718  exit
1719fi
1720
1721## ------------------------ ##
1722## Autoconf initialization. ##
1723## ------------------------ ##
1724
1725# ac_fn_c_try_compile LINENO
1726# --------------------------
1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_compile ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  rm -f conftest.$ac_objext
1732  if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_compile") 2>conftest.err
1740  ac_status=$?
1741  if test -s conftest.err; then
1742    grep -v '^ *+' conftest.err >conftest.er1
1743    cat conftest.er1 >&5
1744    mv -f conftest.er1 conftest.err
1745  fi
1746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; } && {
1748	 test -z "$ac_c_werror_flag" ||
1749	 test ! -s conftest.err
1750       } && test -s conftest.$ac_objext; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756	ac_retval=1
1757fi
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759  as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_compile
1762
1763# ac_fn_c_try_cpp LINENO
1764# ----------------------
1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_cpp ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  if { { ac_try="$ac_cpp conftest.$ac_ext"
1770case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777  ac_status=$?
1778  if test -s conftest.err; then
1779    grep -v '^ *+' conftest.err >conftest.er1
1780    cat conftest.er1 >&5
1781    mv -f conftest.er1 conftest.err
1782  fi
1783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; } > conftest.i && {
1785	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786	 test ! -s conftest.err
1787       }; then :
1788  ac_retval=0
1789else
1790  $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793    ac_retval=1
1794fi
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796  as_fn_set_status $ac_retval
1797
1798} # ac_fn_c_try_cpp
1799
1800# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801# -------------------------------------------------------
1802# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803# the include files in INCLUDES and setting the cache variable VAR
1804# accordingly.
1805ac_fn_c_check_header_mongrel ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  if eval \${$3+:} false; then :
1809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810$as_echo_n "checking for $2... " >&6; }
1811if eval \${$3+:} false; then :
1812  $as_echo_n "(cached) " >&6
1813fi
1814eval ac_res=\$$3
1815	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817else
1818  # Is the header compilable?
1819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820$as_echo_n "checking $2 usability... " >&6; }
1821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h.  */
1823$4
1824#include <$2>
1825_ACEOF
1826if ac_fn_c_try_compile "$LINENO"; then :
1827  ac_header_compiler=yes
1828else
1829  ac_header_compiler=no
1830fi
1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833$as_echo "$ac_header_compiler" >&6; }
1834
1835# Is the header present?
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837$as_echo_n "checking $2 presence... " >&6; }
1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h.  */
1840#include <$2>
1841_ACEOF
1842if ac_fn_c_try_cpp "$LINENO"; then :
1843  ac_header_preproc=yes
1844else
1845  ac_header_preproc=no
1846fi
1847rm -f conftest.err conftest.i conftest.$ac_ext
1848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849$as_echo "$ac_header_preproc" >&6; }
1850
1851# So?  What about this header?
1852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853  yes:no: )
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858    ;;
1859  no:yes:* )
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1863$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1867$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870( $as_echo "## ---------------------------------------------------------------------- ##
1871## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1872## ---------------------------------------------------------------------- ##"
1873     ) | sed "s/^/$as_me: WARNING:     /" >&2
1874    ;;
1875esac
1876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877$as_echo_n "checking for $2... " >&6; }
1878if eval \${$3+:} false; then :
1879  $as_echo_n "(cached) " >&6
1880else
1881  eval "$3=\$ac_header_compiler"
1882fi
1883eval ac_res=\$$3
1884	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886fi
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889} # ac_fn_c_check_header_mongrel
1890
1891# ac_fn_c_try_run LINENO
1892# ----------------------
1893# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1894# that executables *can* be run.
1895ac_fn_c_try_run ()
1896{
1897  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898  if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901  *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905  (eval "$ac_link") 2>&5
1906  ac_status=$?
1907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1909  { { case "(($ac_try" in
1910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911  *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915  (eval "$ac_try") 2>&5
1916  ac_status=$?
1917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918  test $ac_status = 0; }; }; then :
1919  ac_retval=0
1920else
1921  $as_echo "$as_me: program exited with status $ac_status" >&5
1922       $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925       ac_retval=$ac_status
1926fi
1927  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929  as_fn_set_status $ac_retval
1930
1931} # ac_fn_c_try_run
1932
1933# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1934# -------------------------------------------------------
1935# Tests whether HEADER exists and can be compiled using the include files in
1936# INCLUDES, setting the cache variable VAR accordingly.
1937ac_fn_c_check_header_compile ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
1942if eval \${$3+:} false; then :
1943  $as_echo_n "(cached) " >&6
1944else
1945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947$4
1948#include <$2>
1949_ACEOF
1950if ac_fn_c_try_compile "$LINENO"; then :
1951  eval "$3=yes"
1952else
1953  eval "$3=no"
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956fi
1957eval ac_res=\$$3
1958	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
1960  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961
1962} # ac_fn_c_check_header_compile
1963
1964# ac_fn_c_try_link LINENO
1965# -----------------------
1966# Try to link conftest.$ac_ext, and return whether this succeeded.
1967ac_fn_c_try_link ()
1968{
1969  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970  rm -f conftest.$ac_objext conftest$ac_exeext
1971  if { { ac_try="$ac_link"
1972case "(($ac_try" in
1973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974  *) ac_try_echo=$ac_try;;
1975esac
1976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977$as_echo "$ac_try_echo"; } >&5
1978  (eval "$ac_link") 2>conftest.err
1979  ac_status=$?
1980  if test -s conftest.err; then
1981    grep -v '^ *+' conftest.err >conftest.er1
1982    cat conftest.er1 >&5
1983    mv -f conftest.er1 conftest.err
1984  fi
1985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986  test $ac_status = 0; } && {
1987	 test -z "$ac_c_werror_flag" ||
1988	 test ! -s conftest.err
1989       } && test -s conftest$ac_exeext && {
1990	 test "$cross_compiling" = yes ||
1991	 $as_test_x conftest$ac_exeext
1992       }; then :
1993  ac_retval=0
1994else
1995  $as_echo "$as_me: failed program was:" >&5
1996sed 's/^/| /' conftest.$ac_ext >&5
1997
1998	ac_retval=1
1999fi
2000  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2001  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2002  # interfere with the next link command; also delete a directory that is
2003  # left behind by Apple's compiler.  We do this before executing the actions.
2004  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006  as_fn_set_status $ac_retval
2007
2008} # ac_fn_c_try_link
2009
2010# ac_fn_c_check_func LINENO FUNC VAR
2011# ----------------------------------
2012# Tests whether FUNC exists, setting the cache variable VAR accordingly
2013ac_fn_c_check_func ()
2014{
2015  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017$as_echo_n "checking for $2... " >&6; }
2018if eval \${$3+:} false; then :
2019  $as_echo_n "(cached) " >&6
2020else
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2024   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2025#define $2 innocuous_$2
2026
2027/* System header to define __stub macros and hopefully few prototypes,
2028    which can conflict with char $2 (); below.
2029    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2030    <limits.h> exists even on freestanding compilers.  */
2031
2032#ifdef __STDC__
2033# include <limits.h>
2034#else
2035# include <assert.h>
2036#endif
2037
2038#undef $2
2039
2040/* Override any GCC internal prototype to avoid an error.
2041   Use char because int might match the return type of a GCC
2042   builtin and then its argument prototype would still apply.  */
2043#ifdef __cplusplus
2044extern "C"
2045#endif
2046char $2 ();
2047/* The GNU C library defines this for functions which it implements
2048    to always fail with ENOSYS.  Some functions are actually named
2049    something starting with __ and the normal name is an alias.  */
2050#if defined __stub_$2 || defined __stub___$2
2051choke me
2052#endif
2053
2054int
2055main ()
2056{
2057return $2 ();
2058  ;
2059  return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_link "$LINENO"; then :
2063  eval "$3=yes"
2064else
2065  eval "$3=no"
2066fi
2067rm -f core conftest.err conftest.$ac_objext \
2068    conftest$ac_exeext conftest.$ac_ext
2069fi
2070eval ac_res=\$$3
2071	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072$as_echo "$ac_res" >&6; }
2073  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075} # ac_fn_c_check_func
2076
2077# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2078# ---------------------------------------------
2079# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2080# accordingly.
2081ac_fn_c_check_decl ()
2082{
2083  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084  as_decl_name=`echo $2|sed 's/ *(.*//'`
2085  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2087$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2088if eval \${$3+:} false; then :
2089  $as_echo_n "(cached) " >&6
2090else
2091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093$4
2094int
2095main ()
2096{
2097#ifndef $as_decl_name
2098#ifdef __cplusplus
2099  (void) $as_decl_use;
2100#else
2101  (void) $as_decl_name;
2102#endif
2103#endif
2104
2105  ;
2106  return 0;
2107}
2108_ACEOF
2109if ac_fn_c_try_compile "$LINENO"; then :
2110  eval "$3=yes"
2111else
2112  eval "$3=no"
2113fi
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115fi
2116eval ac_res=\$$3
2117	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118$as_echo "$ac_res" >&6; }
2119  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121} # ac_fn_c_check_decl
2122
2123# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2124# ----------------------------------------------------
2125# Tries to find if the field MEMBER exists in type AGGR, after including
2126# INCLUDES, setting cache variable VAR accordingly.
2127ac_fn_c_check_member ()
2128{
2129  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2131$as_echo_n "checking for $2.$3... " >&6; }
2132if eval \${$4+:} false; then :
2133  $as_echo_n "(cached) " >&6
2134else
2135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h.  */
2137$5
2138int
2139main ()
2140{
2141static $2 ac_aggr;
2142if (ac_aggr.$3)
2143return 0;
2144  ;
2145  return 0;
2146}
2147_ACEOF
2148if ac_fn_c_try_compile "$LINENO"; then :
2149  eval "$4=yes"
2150else
2151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h.  */
2153$5
2154int
2155main ()
2156{
2157static $2 ac_aggr;
2158if (sizeof ac_aggr.$3)
2159return 0;
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164if ac_fn_c_try_compile "$LINENO"; then :
2165  eval "$4=yes"
2166else
2167  eval "$4=no"
2168fi
2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172fi
2173eval ac_res=\$$4
2174	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175$as_echo "$ac_res" >&6; }
2176  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177
2178} # ac_fn_c_check_member
2179
2180# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2181# -------------------------------------------
2182# Tests whether TYPE exists after having included INCLUDES, setting cache
2183# variable VAR accordingly.
2184ac_fn_c_check_type ()
2185{
2186  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188$as_echo_n "checking for $2... " >&6; }
2189if eval \${$3+:} false; then :
2190  $as_echo_n "(cached) " >&6
2191else
2192  eval "$3=no"
2193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h.  */
2195$4
2196int
2197main ()
2198{
2199if (sizeof ($2))
2200	 return 0;
2201  ;
2202  return 0;
2203}
2204_ACEOF
2205if ac_fn_c_try_compile "$LINENO"; then :
2206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207/* end confdefs.h.  */
2208$4
2209int
2210main ()
2211{
2212if (sizeof (($2)))
2213	    return 0;
2214  ;
2215  return 0;
2216}
2217_ACEOF
2218if ac_fn_c_try_compile "$LINENO"; then :
2219
2220else
2221  eval "$3=yes"
2222fi
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224fi
2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226fi
2227eval ac_res=\$$3
2228	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229$as_echo "$ac_res" >&6; }
2230  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231
2232} # ac_fn_c_check_type
2233cat >config.log <<_ACEOF
2234This file contains any messages produced by compilers while
2235running configure, to aid debugging if configure makes a mistake.
2236
2237It was created by libX11 $as_me 1.4.3, which was
2238generated by GNU Autoconf 2.68.  Invocation command line was
2239
2240  $ $0 $@
2241
2242_ACEOF
2243exec 5>>config.log
2244{
2245cat <<_ASUNAME
2246## --------- ##
2247## Platform. ##
2248## --------- ##
2249
2250hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2251uname -m = `(uname -m) 2>/dev/null || echo unknown`
2252uname -r = `(uname -r) 2>/dev/null || echo unknown`
2253uname -s = `(uname -s) 2>/dev/null || echo unknown`
2254uname -v = `(uname -v) 2>/dev/null || echo unknown`
2255
2256/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2257/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2258
2259/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2260/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2261/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2262/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2263/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2264/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2265/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2266
2267_ASUNAME
2268
2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272  IFS=$as_save_IFS
2273  test -z "$as_dir" && as_dir=.
2274    $as_echo "PATH: $as_dir"
2275  done
2276IFS=$as_save_IFS
2277
2278} >&5
2279
2280cat >&5 <<_ACEOF
2281
2282
2283## ----------- ##
2284## Core tests. ##
2285## ----------- ##
2286
2287_ACEOF
2288
2289
2290# Keep a trace of the command line.
2291# Strip out --no-create and --no-recursion so they do not pile up.
2292# Strip out --silent because we don't want to record it for future runs.
2293# Also quote any args containing shell meta-characters.
2294# Make two passes to allow for proper duplicate-argument suppression.
2295ac_configure_args=
2296ac_configure_args0=
2297ac_configure_args1=
2298ac_must_keep_next=false
2299for ac_pass in 1 2
2300do
2301  for ac_arg
2302  do
2303    case $ac_arg in
2304    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2305    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2306    | -silent | --silent | --silen | --sile | --sil)
2307      continue ;;
2308    *\'*)
2309      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2310    esac
2311    case $ac_pass in
2312    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2313    2)
2314      as_fn_append ac_configure_args1 " '$ac_arg'"
2315      if test $ac_must_keep_next = true; then
2316	ac_must_keep_next=false # Got value, back to normal.
2317      else
2318	case $ac_arg in
2319	  *=* | --config-cache | -C | -disable-* | --disable-* \
2320	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2321	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2322	  | -with-* | --with-* | -without-* | --without-* | --x)
2323	    case "$ac_configure_args0 " in
2324	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2325	    esac
2326	    ;;
2327	  -* ) ac_must_keep_next=true ;;
2328	esac
2329      fi
2330      as_fn_append ac_configure_args " '$ac_arg'"
2331      ;;
2332    esac
2333  done
2334done
2335{ ac_configure_args0=; unset ac_configure_args0;}
2336{ ac_configure_args1=; unset ac_configure_args1;}
2337
2338# When interrupted or exit'd, cleanup temporary files, and complete
2339# config.log.  We remove comments because anyway the quotes in there
2340# would cause problems or look ugly.
2341# WARNING: Use '\'' to represent an apostrophe within the trap.
2342# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2343trap 'exit_status=$?
2344  # Save into config.log some information that might help in debugging.
2345  {
2346    echo
2347
2348    $as_echo "## ---------------- ##
2349## Cache variables. ##
2350## ---------------- ##"
2351    echo
2352    # The following way of writing the cache mishandles newlines in values,
2353(
2354  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2355    eval ac_val=\$$ac_var
2356    case $ac_val in #(
2357    *${as_nl}*)
2358      case $ac_var in #(
2359      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2360$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2361      esac
2362      case $ac_var in #(
2363      _ | IFS | as_nl) ;; #(
2364      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2365      *) { eval $ac_var=; unset $ac_var;} ;;
2366      esac ;;
2367    esac
2368  done
2369  (set) 2>&1 |
2370    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2371    *${as_nl}ac_space=\ *)
2372      sed -n \
2373	"s/'\''/'\''\\\\'\'''\''/g;
2374	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2375      ;; #(
2376    *)
2377      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2378      ;;
2379    esac |
2380    sort
2381)
2382    echo
2383
2384    $as_echo "## ----------------- ##
2385## Output variables. ##
2386## ----------------- ##"
2387    echo
2388    for ac_var in $ac_subst_vars
2389    do
2390      eval ac_val=\$$ac_var
2391      case $ac_val in
2392      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393      esac
2394      $as_echo "$ac_var='\''$ac_val'\''"
2395    done | sort
2396    echo
2397
2398    if test -n "$ac_subst_files"; then
2399      $as_echo "## ------------------- ##
2400## File substitutions. ##
2401## ------------------- ##"
2402      echo
2403      for ac_var in $ac_subst_files
2404      do
2405	eval ac_val=\$$ac_var
2406	case $ac_val in
2407	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2408	esac
2409	$as_echo "$ac_var='\''$ac_val'\''"
2410      done | sort
2411      echo
2412    fi
2413
2414    if test -s confdefs.h; then
2415      $as_echo "## ----------- ##
2416## confdefs.h. ##
2417## ----------- ##"
2418      echo
2419      cat confdefs.h
2420      echo
2421    fi
2422    test "$ac_signal" != 0 &&
2423      $as_echo "$as_me: caught signal $ac_signal"
2424    $as_echo "$as_me: exit $exit_status"
2425  } >&5
2426  rm -f core *.core core.conftest.* &&
2427    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2428    exit $exit_status
2429' 0
2430for ac_signal in 1 2 13 15; do
2431  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2432done
2433ac_signal=0
2434
2435# confdefs.h avoids OS command line length limits that DEFS can exceed.
2436rm -f -r conftest* confdefs.h
2437
2438$as_echo "/* confdefs.h */" > confdefs.h
2439
2440# Predefined preprocessor variables.
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_NAME "$PACKAGE_NAME"
2444_ACEOF
2445
2446cat >>confdefs.h <<_ACEOF
2447#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2448_ACEOF
2449
2450cat >>confdefs.h <<_ACEOF
2451#define PACKAGE_VERSION "$PACKAGE_VERSION"
2452_ACEOF
2453
2454cat >>confdefs.h <<_ACEOF
2455#define PACKAGE_STRING "$PACKAGE_STRING"
2456_ACEOF
2457
2458cat >>confdefs.h <<_ACEOF
2459#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2460_ACEOF
2461
2462cat >>confdefs.h <<_ACEOF
2463#define PACKAGE_URL "$PACKAGE_URL"
2464_ACEOF
2465
2466
2467# Let the site file select an alternate cache file if it wants to.
2468# Prefer an explicitly selected file to automatically selected ones.
2469ac_site_file1=NONE
2470ac_site_file2=NONE
2471if test -n "$CONFIG_SITE"; then
2472  # We do not want a PATH search for config.site.
2473  case $CONFIG_SITE in #((
2474    -*)  ac_site_file1=./$CONFIG_SITE;;
2475    */*) ac_site_file1=$CONFIG_SITE;;
2476    *)   ac_site_file1=./$CONFIG_SITE;;
2477  esac
2478elif test "x$prefix" != xNONE; then
2479  ac_site_file1=$prefix/share/config.site
2480  ac_site_file2=$prefix/etc/config.site
2481else
2482  ac_site_file1=$ac_default_prefix/share/config.site
2483  ac_site_file2=$ac_default_prefix/etc/config.site
2484fi
2485for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2486do
2487  test "x$ac_site_file" = xNONE && continue
2488  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2489    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2490$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2491    sed 's/^/| /' "$ac_site_file" >&5
2492    . "$ac_site_file" \
2493      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495as_fn_error $? "failed to load site script $ac_site_file
2496See \`config.log' for more details" "$LINENO" 5; }
2497  fi
2498done
2499
2500if test -r "$cache_file"; then
2501  # Some versions of bash will fail to source /dev/null (special files
2502  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2503  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2504    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2505$as_echo "$as_me: loading cache $cache_file" >&6;}
2506    case $cache_file in
2507      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2508      *)                      . "./$cache_file";;
2509    esac
2510  fi
2511else
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2513$as_echo "$as_me: creating cache $cache_file" >&6;}
2514  >$cache_file
2515fi
2516
2517as_fn_append ac_header_list " stdlib.h"
2518as_fn_append ac_header_list " unistd.h"
2519as_fn_append ac_header_list " sys/param.h"
2520# Check that the precious variables saved in the cache have kept the same
2521# value.
2522ac_cache_corrupted=false
2523for ac_var in $ac_precious_vars; do
2524  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2525  eval ac_new_set=\$ac_env_${ac_var}_set
2526  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2527  eval ac_new_val=\$ac_env_${ac_var}_value
2528  case $ac_old_set,$ac_new_set in
2529    set,)
2530      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2531$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2532      ac_cache_corrupted=: ;;
2533    ,set)
2534      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2535$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2536      ac_cache_corrupted=: ;;
2537    ,);;
2538    *)
2539      if test "x$ac_old_val" != "x$ac_new_val"; then
2540	# differences in whitespace do not lead to failure.
2541	ac_old_val_w=`echo x $ac_old_val`
2542	ac_new_val_w=`echo x $ac_new_val`
2543	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2544	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2545$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2546	  ac_cache_corrupted=:
2547	else
2548	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2549$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2550	  eval $ac_var=\$ac_old_val
2551	fi
2552	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2553$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2554	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2555$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2556      fi;;
2557  esac
2558  # Pass precious variables to config.status.
2559  if test "$ac_new_set" = set; then
2560    case $ac_new_val in
2561    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2562    *) ac_arg=$ac_var=$ac_new_val ;;
2563    esac
2564    case " $ac_configure_args " in
2565      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2566      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2567    esac
2568  fi
2569done
2570if $ac_cache_corrupted; then
2571  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2574$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2575  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2576fi
2577## -------------------- ##
2578## Main body of script. ##
2579## -------------------- ##
2580
2581ac_ext=c
2582ac_cpp='$CPP $CPPFLAGS'
2583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586
2587
2588
2589ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
2590
2591
2592ac_aux_dir=
2593for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2594  if test -f "$ac_dir/install-sh"; then
2595    ac_aux_dir=$ac_dir
2596    ac_install_sh="$ac_aux_dir/install-sh -c"
2597    break
2598  elif test -f "$ac_dir/install.sh"; then
2599    ac_aux_dir=$ac_dir
2600    ac_install_sh="$ac_aux_dir/install.sh -c"
2601    break
2602  elif test -f "$ac_dir/shtool"; then
2603    ac_aux_dir=$ac_dir
2604    ac_install_sh="$ac_aux_dir/shtool install -c"
2605    break
2606  fi
2607done
2608if test -z "$ac_aux_dir"; then
2609  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2610fi
2611
2612# These three variables are undocumented and unsupported,
2613# and are intended to be withdrawn in a future Autoconf release.
2614# They can cause serious problems if a builder's source tree is in a directory
2615# whose full name contains unusual characters.
2616ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2617ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2618ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2619
2620
2621# Make sure we can run config.sub.
2622$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2623  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2624
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2626$as_echo_n "checking build system type... " >&6; }
2627if ${ac_cv_build+:} false; then :
2628  $as_echo_n "(cached) " >&6
2629else
2630  ac_build_alias=$build_alias
2631test "x$ac_build_alias" = x &&
2632  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2633test "x$ac_build_alias" = x &&
2634  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2635ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2636  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2637
2638fi
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2640$as_echo "$ac_cv_build" >&6; }
2641case $ac_cv_build in
2642*-*-*) ;;
2643*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2644esac
2645build=$ac_cv_build
2646ac_save_IFS=$IFS; IFS='-'
2647set x $ac_cv_build
2648shift
2649build_cpu=$1
2650build_vendor=$2
2651shift; shift
2652# Remember, the first character of IFS is used to create $*,
2653# except with old shells:
2654build_os=$*
2655IFS=$ac_save_IFS
2656case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2657
2658
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2660$as_echo_n "checking host system type... " >&6; }
2661if ${ac_cv_host+:} false; then :
2662  $as_echo_n "(cached) " >&6
2663else
2664  if test "x$host_alias" = x; then
2665  ac_cv_host=$ac_cv_build
2666else
2667  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2668    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2669fi
2670
2671fi
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2673$as_echo "$ac_cv_host" >&6; }
2674case $ac_cv_host in
2675*-*-*) ;;
2676*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2677esac
2678host=$ac_cv_host
2679ac_save_IFS=$IFS; IFS='-'
2680set x $ac_cv_host
2681shift
2682host_cpu=$1
2683host_vendor=$2
2684shift; shift
2685# Remember, the first character of IFS is used to create $*,
2686# except with old shells:
2687host_os=$*
2688IFS=$ac_save_IFS
2689case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2690
2691
2692# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2693# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2694# to avoid autoconf errors.
2695ac_ext=c
2696ac_cpp='$CPP $CPPFLAGS'
2697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700if test -n "$ac_tool_prefix"; then
2701  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2702set dummy ${ac_tool_prefix}gcc; ac_word=$2
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704$as_echo_n "checking for $ac_word... " >&6; }
2705if ${ac_cv_prog_CC+:} false; then :
2706  $as_echo_n "(cached) " >&6
2707else
2708  if test -n "$CC"; then
2709  ac_cv_prog_CC="$CC" # Let the user override the test.
2710else
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714  IFS=$as_save_IFS
2715  test -z "$as_dir" && as_dir=.
2716    for ac_exec_ext in '' $ac_executable_extensions; do
2717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720    break 2
2721  fi
2722done
2723  done
2724IFS=$as_save_IFS
2725
2726fi
2727fi
2728CC=$ac_cv_prog_CC
2729if test -n "$CC"; then
2730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2731$as_echo "$CC" >&6; }
2732else
2733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734$as_echo "no" >&6; }
2735fi
2736
2737
2738fi
2739if test -z "$ac_cv_prog_CC"; then
2740  ac_ct_CC=$CC
2741  # Extract the first word of "gcc", so it can be a program name with args.
2742set dummy gcc; ac_word=$2
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744$as_echo_n "checking for $ac_word... " >&6; }
2745if ${ac_cv_prog_ac_ct_CC+:} false; then :
2746  $as_echo_n "(cached) " >&6
2747else
2748  if test -n "$ac_ct_CC"; then
2749  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2750else
2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH
2753do
2754  IFS=$as_save_IFS
2755  test -z "$as_dir" && as_dir=.
2756    for ac_exec_ext in '' $ac_executable_extensions; do
2757  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758    ac_cv_prog_ac_ct_CC="gcc"
2759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760    break 2
2761  fi
2762done
2763  done
2764IFS=$as_save_IFS
2765
2766fi
2767fi
2768ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769if test -n "$ac_ct_CC"; then
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2771$as_echo "$ac_ct_CC" >&6; }
2772else
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774$as_echo "no" >&6; }
2775fi
2776
2777  if test "x$ac_ct_CC" = x; then
2778    CC=""
2779  else
2780    case $cross_compiling:$ac_tool_warned in
2781yes:)
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784ac_tool_warned=yes ;;
2785esac
2786    CC=$ac_ct_CC
2787  fi
2788else
2789  CC="$ac_cv_prog_CC"
2790fi
2791
2792if test -z "$CC"; then
2793          if test -n "$ac_tool_prefix"; then
2794    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2795set dummy ${ac_tool_prefix}cc; ac_word=$2
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797$as_echo_n "checking for $ac_word... " >&6; }
2798if ${ac_cv_prog_CC+:} false; then :
2799  $as_echo_n "(cached) " >&6
2800else
2801  if test -n "$CC"; then
2802  ac_cv_prog_CC="$CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807  IFS=$as_save_IFS
2808  test -z "$as_dir" && as_dir=.
2809    for ac_exec_ext in '' $ac_executable_extensions; do
2810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811    ac_cv_prog_CC="${ac_tool_prefix}cc"
2812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813    break 2
2814  fi
2815done
2816  done
2817IFS=$as_save_IFS
2818
2819fi
2820fi
2821CC=$ac_cv_prog_CC
2822if test -n "$CC"; then
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824$as_echo "$CC" >&6; }
2825else
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
2828fi
2829
2830
2831  fi
2832fi
2833if test -z "$CC"; then
2834  # Extract the first word of "cc", so it can be a program name with args.
2835set dummy cc; ac_word=$2
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837$as_echo_n "checking for $ac_word... " >&6; }
2838if ${ac_cv_prog_CC+:} false; then :
2839  $as_echo_n "(cached) " >&6
2840else
2841  if test -n "$CC"; then
2842  ac_cv_prog_CC="$CC" # Let the user override the test.
2843else
2844  ac_prog_rejected=no
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848  IFS=$as_save_IFS
2849  test -z "$as_dir" && as_dir=.
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2853       ac_prog_rejected=yes
2854       continue
2855     fi
2856    ac_cv_prog_CC="cc"
2857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858    break 2
2859  fi
2860done
2861  done
2862IFS=$as_save_IFS
2863
2864if test $ac_prog_rejected = yes; then
2865  # We found a bogon in the path, so make sure we never use it.
2866  set dummy $ac_cv_prog_CC
2867  shift
2868  if test $# != 0; then
2869    # We chose a different compiler from the bogus one.
2870    # However, it has the same basename, so the bogon will be chosen
2871    # first if we set CC to just the basename; use the full file name.
2872    shift
2873    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2874  fi
2875fi
2876fi
2877fi
2878CC=$ac_cv_prog_CC
2879if test -n "$CC"; then
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881$as_echo "$CC" >&6; }
2882else
2883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884$as_echo "no" >&6; }
2885fi
2886
2887
2888fi
2889if test -z "$CC"; then
2890  if test -n "$ac_tool_prefix"; then
2891  for ac_prog in cl.exe
2892  do
2893    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2894set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896$as_echo_n "checking for $ac_word... " >&6; }
2897if ${ac_cv_prog_CC+:} false; then :
2898  $as_echo_n "(cached) " >&6
2899else
2900  if test -n "$CC"; then
2901  ac_cv_prog_CC="$CC" # Let the user override the test.
2902else
2903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904for as_dir in $PATH
2905do
2906  IFS=$as_save_IFS
2907  test -z "$as_dir" && as_dir=.
2908    for ac_exec_ext in '' $ac_executable_extensions; do
2909  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912    break 2
2913  fi
2914done
2915  done
2916IFS=$as_save_IFS
2917
2918fi
2919fi
2920CC=$ac_cv_prog_CC
2921if test -n "$CC"; then
2922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923$as_echo "$CC" >&6; }
2924else
2925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926$as_echo "no" >&6; }
2927fi
2928
2929
2930    test -n "$CC" && break
2931  done
2932fi
2933if test -z "$CC"; then
2934  ac_ct_CC=$CC
2935  for ac_prog in cl.exe
2936do
2937  # Extract the first word of "$ac_prog", so it can be a program name with args.
2938set dummy $ac_prog; ac_word=$2
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if ${ac_cv_prog_ac_ct_CC+:} false; then :
2942  $as_echo_n "(cached) " >&6
2943else
2944  if test -n "$ac_ct_CC"; then
2945  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950  IFS=$as_save_IFS
2951  test -z "$as_dir" && as_dir=.
2952    for ac_exec_ext in '' $ac_executable_extensions; do
2953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954    ac_cv_prog_ac_ct_CC="$ac_prog"
2955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956    break 2
2957  fi
2958done
2959  done
2960IFS=$as_save_IFS
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2967$as_echo "$ac_ct_CC" >&6; }
2968else
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
2971fi
2972
2973
2974  test -n "$ac_ct_CC" && break
2975done
2976
2977  if test "x$ac_ct_CC" = x; then
2978    CC=""
2979  else
2980    case $cross_compiling:$ac_tool_warned in
2981yes:)
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984ac_tool_warned=yes ;;
2985esac
2986    CC=$ac_ct_CC
2987  fi
2988fi
2989
2990fi
2991
2992
2993test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995as_fn_error $? "no acceptable C compiler found in \$PATH
2996See \`config.log' for more details" "$LINENO" 5; }
2997
2998# Provide some information about the compiler.
2999$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3000set X $ac_compile
3001ac_compiler=$2
3002for ac_option in --version -v -V -qversion; do
3003  { { ac_try="$ac_compiler $ac_option >&5"
3004case "(($ac_try" in
3005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006  *) ac_try_echo=$ac_try;;
3007esac
3008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3009$as_echo "$ac_try_echo"; } >&5
3010  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3011  ac_status=$?
3012  if test -s conftest.err; then
3013    sed '10a\
3014... rest of stderr output deleted ...
3015         10q' conftest.err >conftest.er1
3016    cat conftest.er1 >&5
3017  fi
3018  rm -f conftest.er1 conftest.err
3019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020  test $ac_status = 0; }
3021done
3022
3023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024/* end confdefs.h.  */
3025
3026int
3027main ()
3028{
3029
3030  ;
3031  return 0;
3032}
3033_ACEOF
3034ac_clean_files_save=$ac_clean_files
3035ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3036# Try to create an executable without -o first, disregard a.out.
3037# It will help us diagnose broken compilers, and finding out an intuition
3038# of exeext.
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3040$as_echo_n "checking whether the C compiler works... " >&6; }
3041ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3042
3043# The possible output files:
3044ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3045
3046ac_rmfiles=
3047for ac_file in $ac_files
3048do
3049  case $ac_file in
3050    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3051    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3052  esac
3053done
3054rm -f $ac_rmfiles
3055
3056if { { ac_try="$ac_link_default"
3057case "(($ac_try" in
3058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059  *) ac_try_echo=$ac_try;;
3060esac
3061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062$as_echo "$ac_try_echo"; } >&5
3063  (eval "$ac_link_default") 2>&5
3064  ac_status=$?
3065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066  test $ac_status = 0; }; then :
3067  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3068# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3069# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3070# so that the user can short-circuit this test for compilers unknown to
3071# Autoconf.
3072for ac_file in $ac_files ''
3073do
3074  test -f "$ac_file" || continue
3075  case $ac_file in
3076    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3077	;;
3078    [ab].out )
3079	# We found the default executable, but exeext='' is most
3080	# certainly right.
3081	break;;
3082    *.* )
3083	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3084	then :; else
3085	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086	fi
3087	# We set ac_cv_exeext here because the later test for it is not
3088	# safe: cross compilers may not add the suffix if given an `-o'
3089	# argument, so we may need to know it at that point already.
3090	# Even if this section looks crufty: it has the advantage of
3091	# actually working.
3092	break;;
3093    * )
3094	break;;
3095  esac
3096done
3097test "$ac_cv_exeext" = no && ac_cv_exeext=
3098
3099else
3100  ac_file=''
3101fi
3102if test -z "$ac_file"; then :
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104$as_echo "no" >&6; }
3105$as_echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110as_fn_error 77 "C compiler cannot create executables
3111See \`config.log' for more details" "$LINENO" 5; }
3112else
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3114$as_echo "yes" >&6; }
3115fi
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3117$as_echo_n "checking for C compiler default output file name... " >&6; }
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3119$as_echo "$ac_file" >&6; }
3120ac_exeext=$ac_cv_exeext
3121
3122rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3123ac_clean_files=$ac_clean_files_save
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3125$as_echo_n "checking for suffix of executables... " >&6; }
3126if { { ac_try="$ac_link"
3127case "(($ac_try" in
3128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129  *) ac_try_echo=$ac_try;;
3130esac
3131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132$as_echo "$ac_try_echo"; } >&5
3133  (eval "$ac_link") 2>&5
3134  ac_status=$?
3135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136  test $ac_status = 0; }; then :
3137  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3138# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3139# work properly (i.e., refer to `conftest.exe'), while it won't with
3140# `rm'.
3141for ac_file in conftest.exe conftest conftest.*; do
3142  test -f "$ac_file" || continue
3143  case $ac_file in
3144    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3145    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3146	  break;;
3147    * ) break;;
3148  esac
3149done
3150else
3151  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3154See \`config.log' for more details" "$LINENO" 5; }
3155fi
3156rm -f conftest conftest$ac_cv_exeext
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3158$as_echo "$ac_cv_exeext" >&6; }
3159
3160rm -f conftest.$ac_ext
3161EXEEXT=$ac_cv_exeext
3162ac_exeext=$EXEEXT
3163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164/* end confdefs.h.  */
3165#include <stdio.h>
3166int
3167main ()
3168{
3169FILE *f = fopen ("conftest.out", "w");
3170 return ferror (f) || fclose (f) != 0;
3171
3172  ;
3173  return 0;
3174}
3175_ACEOF
3176ac_clean_files="$ac_clean_files conftest.out"
3177# Check that the compiler produces executables we can run.  If not, either
3178# the compiler is broken, or we cross compile.
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3180$as_echo_n "checking whether we are cross compiling... " >&6; }
3181if test "$cross_compiling" != yes; then
3182  { { ac_try="$ac_link"
3183case "(($ac_try" in
3184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185  *) ac_try_echo=$ac_try;;
3186esac
3187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188$as_echo "$ac_try_echo"; } >&5
3189  (eval "$ac_link") 2>&5
3190  ac_status=$?
3191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192  test $ac_status = 0; }
3193  if { ac_try='./conftest$ac_cv_exeext'
3194  { { case "(($ac_try" in
3195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196  *) ac_try_echo=$ac_try;;
3197esac
3198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199$as_echo "$ac_try_echo"; } >&5
3200  (eval "$ac_try") 2>&5
3201  ac_status=$?
3202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203  test $ac_status = 0; }; }; then
3204    cross_compiling=no
3205  else
3206    if test "$cross_compiling" = maybe; then
3207	cross_compiling=yes
3208    else
3209	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211as_fn_error $? "cannot run C compiled programs.
3212If you meant to cross compile, use \`--host'.
3213See \`config.log' for more details" "$LINENO" 5; }
3214    fi
3215  fi
3216fi
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3218$as_echo "$cross_compiling" >&6; }
3219
3220rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3221ac_clean_files=$ac_clean_files_save
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3223$as_echo_n "checking for suffix of object files... " >&6; }
3224if ${ac_cv_objext+:} false; then :
3225  $as_echo_n "(cached) " >&6
3226else
3227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228/* end confdefs.h.  */
3229
3230int
3231main ()
3232{
3233
3234  ;
3235  return 0;
3236}
3237_ACEOF
3238rm -f conftest.o conftest.obj
3239if { { ac_try="$ac_compile"
3240case "(($ac_try" in
3241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242  *) ac_try_echo=$ac_try;;
3243esac
3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245$as_echo "$ac_try_echo"; } >&5
3246  (eval "$ac_compile") 2>&5
3247  ac_status=$?
3248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249  test $ac_status = 0; }; then :
3250  for ac_file in conftest.o conftest.obj conftest.*; do
3251  test -f "$ac_file" || continue;
3252  case $ac_file in
3253    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3254    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3255       break;;
3256  esac
3257done
3258else
3259  $as_echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264as_fn_error $? "cannot compute suffix of object files: cannot compile
3265See \`config.log' for more details" "$LINENO" 5; }
3266fi
3267rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268fi
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3270$as_echo "$ac_cv_objext" >&6; }
3271OBJEXT=$ac_cv_objext
3272ac_objext=$OBJEXT
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3274$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3275if ${ac_cv_c_compiler_gnu+:} false; then :
3276  $as_echo_n "(cached) " >&6
3277else
3278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279/* end confdefs.h.  */
3280
3281int
3282main ()
3283{
3284#ifndef __GNUC__
3285       choke me
3286#endif
3287
3288  ;
3289  return 0;
3290}
3291_ACEOF
3292if ac_fn_c_try_compile "$LINENO"; then :
3293  ac_compiler_gnu=yes
3294else
3295  ac_compiler_gnu=no
3296fi
3297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298ac_cv_c_compiler_gnu=$ac_compiler_gnu
3299
3300fi
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3302$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3303if test $ac_compiler_gnu = yes; then
3304  GCC=yes
3305else
3306  GCC=
3307fi
3308ac_test_CFLAGS=${CFLAGS+set}
3309ac_save_CFLAGS=$CFLAGS
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3311$as_echo_n "checking whether $CC accepts -g... " >&6; }
3312if ${ac_cv_prog_cc_g+:} false; then :
3313  $as_echo_n "(cached) " >&6
3314else
3315  ac_save_c_werror_flag=$ac_c_werror_flag
3316   ac_c_werror_flag=yes
3317   ac_cv_prog_cc_g=no
3318   CFLAGS="-g"
3319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320/* end confdefs.h.  */
3321
3322int
3323main ()
3324{
3325
3326  ;
3327  return 0;
3328}
3329_ACEOF
3330if ac_fn_c_try_compile "$LINENO"; then :
3331  ac_cv_prog_cc_g=yes
3332else
3333  CFLAGS=""
3334      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335/* end confdefs.h.  */
3336
3337int
3338main ()
3339{
3340
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345if ac_fn_c_try_compile "$LINENO"; then :
3346
3347else
3348  ac_c_werror_flag=$ac_save_c_werror_flag
3349	 CFLAGS="-g"
3350	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h.  */
3352
3353int
3354main ()
3355{
3356
3357  ;
3358  return 0;
3359}
3360_ACEOF
3361if ac_fn_c_try_compile "$LINENO"; then :
3362  ac_cv_prog_cc_g=yes
3363fi
3364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365fi
3366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367fi
3368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369   ac_c_werror_flag=$ac_save_c_werror_flag
3370fi
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3372$as_echo "$ac_cv_prog_cc_g" >&6; }
3373if test "$ac_test_CFLAGS" = set; then
3374  CFLAGS=$ac_save_CFLAGS
3375elif test $ac_cv_prog_cc_g = yes; then
3376  if test "$GCC" = yes; then
3377    CFLAGS="-g -O2"
3378  else
3379    CFLAGS="-g"
3380  fi
3381else
3382  if test "$GCC" = yes; then
3383    CFLAGS="-O2"
3384  else
3385    CFLAGS=
3386  fi
3387fi
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3389$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3390if ${ac_cv_prog_cc_c89+:} false; then :
3391  $as_echo_n "(cached) " >&6
3392else
3393  ac_cv_prog_cc_c89=no
3394ac_save_CC=$CC
3395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397#include <stdarg.h>
3398#include <stdio.h>
3399#include <sys/types.h>
3400#include <sys/stat.h>
3401/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3402struct buf { int x; };
3403FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404static char *e (p, i)
3405     char **p;
3406     int i;
3407{
3408  return p[i];
3409}
3410static char *f (char * (*g) (char **, int), char **p, ...)
3411{
3412  char *s;
3413  va_list v;
3414  va_start (v,p);
3415  s = g (p, va_arg (v,int));
3416  va_end (v);
3417  return s;
3418}
3419
3420/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3421   function prototypes and stuff, but not '\xHH' hex character constants.
3422   These don't provoke an error unfortunately, instead are silently treated
3423   as 'x'.  The following induces an error, until -std is added to get
3424   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3425   array size at least.  It's necessary to write '\x00'==0 to get something
3426   that's true only with -std.  */
3427int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428
3429/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3430   inside strings and character constants.  */
3431#define FOO(x) 'x'
3432int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3433
3434int test (int i, double x);
3435struct s1 {int (*f) (int a);};
3436struct s2 {int (*f) (double a);};
3437int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438int argc;
3439char **argv;
3440int
3441main ()
3442{
3443return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3444  ;
3445  return 0;
3446}
3447_ACEOF
3448for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3449	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450do
3451  CC="$ac_save_CC $ac_arg"
3452  if ac_fn_c_try_compile "$LINENO"; then :
3453  ac_cv_prog_cc_c89=$ac_arg
3454fi
3455rm -f core conftest.err conftest.$ac_objext
3456  test "x$ac_cv_prog_cc_c89" != "xno" && break
3457done
3458rm -f conftest.$ac_ext
3459CC=$ac_save_CC
3460
3461fi
3462# AC_CACHE_VAL
3463case "x$ac_cv_prog_cc_c89" in
3464  x)
3465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3466$as_echo "none needed" >&6; } ;;
3467  xno)
3468    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3469$as_echo "unsupported" >&6; } ;;
3470  *)
3471    CC="$CC $ac_cv_prog_cc_c89"
3472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3473$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3474esac
3475if test "x$ac_cv_prog_cc_c89" != xno; then :
3476
3477fi
3478
3479ac_ext=c
3480ac_cpp='$CPP $CPPFLAGS'
3481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
3485
3486ac_ext=c
3487ac_cpp='$CPP $CPPFLAGS'
3488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3492$as_echo_n "checking how to run the C preprocessor... " >&6; }
3493# On Suns, sometimes $CPP names a directory.
3494if test -n "$CPP" && test -d "$CPP"; then
3495  CPP=
3496fi
3497if test -z "$CPP"; then
3498  if ${ac_cv_prog_CPP+:} false; then :
3499  $as_echo_n "(cached) " >&6
3500else
3501      # Double quotes because CPP needs to be expanded
3502    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3503    do
3504      ac_preproc_ok=false
3505for ac_c_preproc_warn_flag in '' yes
3506do
3507  # Use a header file that comes with gcc, so configuring glibc
3508  # with a fresh cross-compiler works.
3509  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3510  # <limits.h> exists even on freestanding compilers.
3511  # On the NeXT, cc -E runs the code through the compiler's parser,
3512  # not just through cpp. "Syntax error" is here to catch this case.
3513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514/* end confdefs.h.  */
3515#ifdef __STDC__
3516# include <limits.h>
3517#else
3518# include <assert.h>
3519#endif
3520		     Syntax error
3521_ACEOF
3522if ac_fn_c_try_cpp "$LINENO"; then :
3523
3524else
3525  # Broken: fails on valid input.
3526continue
3527fi
3528rm -f conftest.err conftest.i conftest.$ac_ext
3529
3530  # OK, works on sane cases.  Now check whether nonexistent headers
3531  # can be detected and how.
3532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h.  */
3534#include <ac_nonexistent.h>
3535_ACEOF
3536if ac_fn_c_try_cpp "$LINENO"; then :
3537  # Broken: success on invalid input.
3538continue
3539else
3540  # Passes both tests.
3541ac_preproc_ok=:
3542break
3543fi
3544rm -f conftest.err conftest.i conftest.$ac_ext
3545
3546done
3547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3548rm -f conftest.i conftest.err conftest.$ac_ext
3549if $ac_preproc_ok; then :
3550  break
3551fi
3552
3553    done
3554    ac_cv_prog_CPP=$CPP
3555
3556fi
3557  CPP=$ac_cv_prog_CPP
3558else
3559  ac_cv_prog_CPP=$CPP
3560fi
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3562$as_echo "$CPP" >&6; }
3563ac_preproc_ok=false
3564for ac_c_preproc_warn_flag in '' yes
3565do
3566  # Use a header file that comes with gcc, so configuring glibc
3567  # with a fresh cross-compiler works.
3568  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569  # <limits.h> exists even on freestanding compilers.
3570  # On the NeXT, cc -E runs the code through the compiler's parser,
3571  # not just through cpp. "Syntax error" is here to catch this case.
3572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573/* end confdefs.h.  */
3574#ifdef __STDC__
3575# include <limits.h>
3576#else
3577# include <assert.h>
3578#endif
3579		     Syntax error
3580_ACEOF
3581if ac_fn_c_try_cpp "$LINENO"; then :
3582
3583else
3584  # Broken: fails on valid input.
3585continue
3586fi
3587rm -f conftest.err conftest.i conftest.$ac_ext
3588
3589  # OK, works on sane cases.  Now check whether nonexistent headers
3590  # can be detected and how.
3591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h.  */
3593#include <ac_nonexistent.h>
3594_ACEOF
3595if ac_fn_c_try_cpp "$LINENO"; then :
3596  # Broken: success on invalid input.
3597continue
3598else
3599  # Passes both tests.
3600ac_preproc_ok=:
3601break
3602fi
3603rm -f conftest.err conftest.i conftest.$ac_ext
3604
3605done
3606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3607rm -f conftest.i conftest.err conftest.$ac_ext
3608if $ac_preproc_ok; then :
3609
3610else
3611  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3614See \`config.log' for more details" "$LINENO" 5; }
3615fi
3616
3617ac_ext=c
3618ac_cpp='$CPP $CPPFLAGS'
3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3625$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3626if ${ac_cv_path_GREP+:} false; then :
3627  $as_echo_n "(cached) " >&6
3628else
3629  if test -z "$GREP"; then
3630  ac_path_GREP_found=false
3631  # Loop through the user's path and test for each of PROGNAME-LIST
3632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3634do
3635  IFS=$as_save_IFS
3636  test -z "$as_dir" && as_dir=.
3637    for ac_prog in grep ggrep; do
3638    for ac_exec_ext in '' $ac_executable_extensions; do
3639      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3640      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3641# Check for GNU ac_path_GREP and select it if it is found.
3642  # Check for GNU $ac_path_GREP
3643case `"$ac_path_GREP" --version 2>&1` in
3644*GNU*)
3645  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3646*)
3647  ac_count=0
3648  $as_echo_n 0123456789 >"conftest.in"
3649  while :
3650  do
3651    cat "conftest.in" "conftest.in" >"conftest.tmp"
3652    mv "conftest.tmp" "conftest.in"
3653    cp "conftest.in" "conftest.nl"
3654    $as_echo 'GREP' >> "conftest.nl"
3655    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3656    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3657    as_fn_arith $ac_count + 1 && ac_count=$as_val
3658    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3659      # Best one so far, save it but keep looking for a better one
3660      ac_cv_path_GREP="$ac_path_GREP"
3661      ac_path_GREP_max=$ac_count
3662    fi
3663    # 10*(2^10) chars as input seems more than enough
3664    test $ac_count -gt 10 && break
3665  done
3666  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3667esac
3668
3669      $ac_path_GREP_found && break 3
3670    done
3671  done
3672  done
3673IFS=$as_save_IFS
3674  if test -z "$ac_cv_path_GREP"; then
3675    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3676  fi
3677else
3678  ac_cv_path_GREP=$GREP
3679fi
3680
3681fi
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3683$as_echo "$ac_cv_path_GREP" >&6; }
3684 GREP="$ac_cv_path_GREP"
3685
3686
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3688$as_echo_n "checking for egrep... " >&6; }
3689if ${ac_cv_path_EGREP+:} false; then :
3690  $as_echo_n "(cached) " >&6
3691else
3692  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3693   then ac_cv_path_EGREP="$GREP -E"
3694   else
3695     if test -z "$EGREP"; then
3696  ac_path_EGREP_found=false
3697  # Loop through the user's path and test for each of PROGNAME-LIST
3698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3700do
3701  IFS=$as_save_IFS
3702  test -z "$as_dir" && as_dir=.
3703    for ac_prog in egrep; do
3704    for ac_exec_ext in '' $ac_executable_extensions; do
3705      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3706      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3707# Check for GNU ac_path_EGREP and select it if it is found.
3708  # Check for GNU $ac_path_EGREP
3709case `"$ac_path_EGREP" --version 2>&1` in
3710*GNU*)
3711  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3712*)
3713  ac_count=0
3714  $as_echo_n 0123456789 >"conftest.in"
3715  while :
3716  do
3717    cat "conftest.in" "conftest.in" >"conftest.tmp"
3718    mv "conftest.tmp" "conftest.in"
3719    cp "conftest.in" "conftest.nl"
3720    $as_echo 'EGREP' >> "conftest.nl"
3721    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3722    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3723    as_fn_arith $ac_count + 1 && ac_count=$as_val
3724    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3725      # Best one so far, save it but keep looking for a better one
3726      ac_cv_path_EGREP="$ac_path_EGREP"
3727      ac_path_EGREP_max=$ac_count
3728    fi
3729    # 10*(2^10) chars as input seems more than enough
3730    test $ac_count -gt 10 && break
3731  done
3732  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3733esac
3734
3735      $ac_path_EGREP_found && break 3
3736    done
3737  done
3738  done
3739IFS=$as_save_IFS
3740  if test -z "$ac_cv_path_EGREP"; then
3741    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3742  fi
3743else
3744  ac_cv_path_EGREP=$EGREP
3745fi
3746
3747   fi
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3750$as_echo "$ac_cv_path_EGREP" >&6; }
3751 EGREP="$ac_cv_path_EGREP"
3752
3753
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3755$as_echo_n "checking for ANSI C header files... " >&6; }
3756if ${ac_cv_header_stdc+:} false; then :
3757  $as_echo_n "(cached) " >&6
3758else
3759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h.  */
3761#include <stdlib.h>
3762#include <stdarg.h>
3763#include <string.h>
3764#include <float.h>
3765
3766int
3767main ()
3768{
3769
3770  ;
3771  return 0;
3772}
3773_ACEOF
3774if ac_fn_c_try_compile "$LINENO"; then :
3775  ac_cv_header_stdc=yes
3776else
3777  ac_cv_header_stdc=no
3778fi
3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780
3781if test $ac_cv_header_stdc = yes; then
3782  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h.  */
3785#include <string.h>
3786
3787_ACEOF
3788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789  $EGREP "memchr" >/dev/null 2>&1; then :
3790
3791else
3792  ac_cv_header_stdc=no
3793fi
3794rm -f conftest*
3795
3796fi
3797
3798if test $ac_cv_header_stdc = yes; then
3799  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801/* end confdefs.h.  */
3802#include <stdlib.h>
3803
3804_ACEOF
3805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3806  $EGREP "free" >/dev/null 2>&1; then :
3807
3808else
3809  ac_cv_header_stdc=no
3810fi
3811rm -f conftest*
3812
3813fi
3814
3815if test $ac_cv_header_stdc = yes; then
3816  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3817  if test "$cross_compiling" = yes; then :
3818  :
3819else
3820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h.  */
3822#include <ctype.h>
3823#include <stdlib.h>
3824#if ((' ' & 0x0FF) == 0x020)
3825# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3826# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3827#else
3828# define ISLOWER(c) \
3829		   (('a' <= (c) && (c) <= 'i') \
3830		     || ('j' <= (c) && (c) <= 'r') \
3831		     || ('s' <= (c) && (c) <= 'z'))
3832# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3833#endif
3834
3835#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3836int
3837main ()
3838{
3839  int i;
3840  for (i = 0; i < 256; i++)
3841    if (XOR (islower (i), ISLOWER (i))
3842	|| toupper (i) != TOUPPER (i))
3843      return 2;
3844  return 0;
3845}
3846_ACEOF
3847if ac_fn_c_try_run "$LINENO"; then :
3848
3849else
3850  ac_cv_header_stdc=no
3851fi
3852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3853  conftest.$ac_objext conftest.beam conftest.$ac_ext
3854fi
3855
3856fi
3857fi
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3859$as_echo "$ac_cv_header_stdc" >&6; }
3860if test $ac_cv_header_stdc = yes; then
3861
3862$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3863
3864fi
3865
3866# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3867for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3868		  inttypes.h stdint.h unistd.h
3869do :
3870  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3871ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3872"
3873if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3874  cat >>confdefs.h <<_ACEOF
3875#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3876_ACEOF
3877
3878fi
3879
3880done
3881
3882
3883
3884  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3885if test "x$ac_cv_header_minix_config_h" = xyes; then :
3886  MINIX=yes
3887else
3888  MINIX=
3889fi
3890
3891
3892  if test "$MINIX" = yes; then
3893
3894$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3895
3896
3897$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3898
3899
3900$as_echo "#define _MINIX 1" >>confdefs.h
3901
3902  fi
3903
3904
3905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3906$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3907if ${ac_cv_safe_to_define___extensions__+:} false; then :
3908  $as_echo_n "(cached) " >&6
3909else
3910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h.  */
3912
3913#	  define __EXTENSIONS__ 1
3914	  $ac_includes_default
3915int
3916main ()
3917{
3918
3919  ;
3920  return 0;
3921}
3922_ACEOF
3923if ac_fn_c_try_compile "$LINENO"; then :
3924  ac_cv_safe_to_define___extensions__=yes
3925else
3926  ac_cv_safe_to_define___extensions__=no
3927fi
3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3931$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3932  test $ac_cv_safe_to_define___extensions__ = yes &&
3933    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3934
3935  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3936
3937  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3938
3939  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3940
3941  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3942
3943
3944
3945# Initialize Automake
3946am__api_version='1.11'
3947
3948# Find a good install program.  We prefer a C program (faster),
3949# so one script is as good as another.  But avoid the broken or
3950# incompatible versions:
3951# SysV /etc/install, /usr/sbin/install
3952# SunOS /usr/etc/install
3953# IRIX /sbin/install
3954# AIX /bin/install
3955# AmigaOS /C/install, which installs bootblocks on floppy discs
3956# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3957# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3958# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3959# OS/2's system install, which has a completely different semantic
3960# ./install, which can be erroneously created by make from ./install.sh.
3961# Reject install programs that cannot install multiple files.
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3963$as_echo_n "checking for a BSD-compatible install... " >&6; }
3964if test -z "$INSTALL"; then
3965if ${ac_cv_path_install+:} false; then :
3966  $as_echo_n "(cached) " >&6
3967else
3968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH
3970do
3971  IFS=$as_save_IFS
3972  test -z "$as_dir" && as_dir=.
3973    # Account for people who put trailing slashes in PATH elements.
3974case $as_dir/ in #((
3975  ./ | .// | /[cC]/* | \
3976  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3977  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3978  /usr/ucb/* ) ;;
3979  *)
3980    # OSF1 and SCO ODT 3.0 have their own names for install.
3981    # Don't use installbsd from OSF since it installs stuff as root
3982    # by default.
3983    for ac_prog in ginstall scoinst install; do
3984      for ac_exec_ext in '' $ac_executable_extensions; do
3985	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3986	  if test $ac_prog = install &&
3987	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3988	    # AIX install.  It has an incompatible calling convention.
3989	    :
3990	  elif test $ac_prog = install &&
3991	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3992	    # program-specific install script used by HP pwplus--don't use.
3993	    :
3994	  else
3995	    rm -rf conftest.one conftest.two conftest.dir
3996	    echo one > conftest.one
3997	    echo two > conftest.two
3998	    mkdir conftest.dir
3999	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4000	      test -s conftest.one && test -s conftest.two &&
4001	      test -s conftest.dir/conftest.one &&
4002	      test -s conftest.dir/conftest.two
4003	    then
4004	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4005	      break 3
4006	    fi
4007	  fi
4008	fi
4009      done
4010    done
4011    ;;
4012esac
4013
4014  done
4015IFS=$as_save_IFS
4016
4017rm -rf conftest.one conftest.two conftest.dir
4018
4019fi
4020  if test "${ac_cv_path_install+set}" = set; then
4021    INSTALL=$ac_cv_path_install
4022  else
4023    # As a last resort, use the slow shell script.  Don't cache a
4024    # value for INSTALL within a source directory, because that will
4025    # break other packages using the cache if that directory is
4026    # removed, or if the value is a relative name.
4027    INSTALL=$ac_install_sh
4028  fi
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4031$as_echo "$INSTALL" >&6; }
4032
4033# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4034# It thinks the first close brace ends the variable substitution.
4035test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4036
4037test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4038
4039test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4040
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4042$as_echo_n "checking whether build environment is sane... " >&6; }
4043# Just in case
4044sleep 1
4045echo timestamp > conftest.file
4046# Reject unsafe characters in $srcdir or the absolute working directory
4047# name.  Accept space and tab only in the latter.
4048am_lf='
4049'
4050case `pwd` in
4051  *[\\\"\#\$\&\'\`$am_lf]*)
4052    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4053esac
4054case $srcdir in
4055  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4056    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4057esac
4058
4059# Do `set' in a subshell so we don't clobber the current shell's
4060# arguments.  Must try -L first in case configure is actually a
4061# symlink; some systems play weird games with the mod time of symlinks
4062# (eg FreeBSD returns the mod time of the symlink's containing
4063# directory).
4064if (
4065   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4066   if test "$*" = "X"; then
4067      # -L didn't work.
4068      set X `ls -t "$srcdir/configure" conftest.file`
4069   fi
4070   rm -f conftest.file
4071   if test "$*" != "X $srcdir/configure conftest.file" \
4072      && test "$*" != "X conftest.file $srcdir/configure"; then
4073
4074      # If neither matched, then we have a broken ls.  This can happen
4075      # if, for instance, CONFIG_SHELL is bash and it inherits a
4076      # broken ls alias from the environment.  This has actually
4077      # happened.  Such a system could not be considered "sane".
4078      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4079alias in your environment" "$LINENO" 5
4080   fi
4081
4082   test "$2" = conftest.file
4083   )
4084then
4085   # Ok.
4086   :
4087else
4088   as_fn_error $? "newly created file is older than distributed files!
4089Check your system clock" "$LINENO" 5
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4092$as_echo "yes" >&6; }
4093test "$program_prefix" != NONE &&
4094  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4095# Use a double $ so make ignores it.
4096test "$program_suffix" != NONE &&
4097  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4098# Double any \ or $.
4099# By default was `s,x,x', remove it if useless.
4100ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4101program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4102
4103# expand $ac_aux_dir to an absolute path
4104am_aux_dir=`cd $ac_aux_dir && pwd`
4105
4106if test x"${MISSING+set}" != xset; then
4107  case $am_aux_dir in
4108  *\ * | *\	*)
4109    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4110  *)
4111    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4112  esac
4113fi
4114# Use eval to expand $SHELL
4115if eval "$MISSING --run true"; then
4116  am_missing_run="$MISSING --run "
4117else
4118  am_missing_run=
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4120$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4121fi
4122
4123if test x"${install_sh}" != xset; then
4124  case $am_aux_dir in
4125  *\ * | *\	*)
4126    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4127  *)
4128    install_sh="\${SHELL} $am_aux_dir/install-sh"
4129  esac
4130fi
4131
4132# Installed binaries are usually stripped using `strip' when the user
4133# run `make install-strip'.  However `strip' might not be the right
4134# tool to use in cross-compilation environments, therefore Automake
4135# will honor the `STRIP' environment variable to overrule this program.
4136if test "$cross_compiling" != no; then
4137  if test -n "$ac_tool_prefix"; then
4138  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4139set dummy ${ac_tool_prefix}strip; ac_word=$2
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141$as_echo_n "checking for $ac_word... " >&6; }
4142if ${ac_cv_prog_STRIP+:} false; then :
4143  $as_echo_n "(cached) " >&6
4144else
4145  if test -n "$STRIP"; then
4146  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4147else
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151  IFS=$as_save_IFS
4152  test -z "$as_dir" && as_dir=.
4153    for ac_exec_ext in '' $ac_executable_extensions; do
4154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157    break 2
4158  fi
4159done
4160  done
4161IFS=$as_save_IFS
4162
4163fi
4164fi
4165STRIP=$ac_cv_prog_STRIP
4166if test -n "$STRIP"; then
4167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4168$as_echo "$STRIP" >&6; }
4169else
4170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171$as_echo "no" >&6; }
4172fi
4173
4174
4175fi
4176if test -z "$ac_cv_prog_STRIP"; then
4177  ac_ct_STRIP=$STRIP
4178  # Extract the first word of "strip", so it can be a program name with args.
4179set dummy strip; ac_word=$2
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181$as_echo_n "checking for $ac_word... " >&6; }
4182if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4183  $as_echo_n "(cached) " >&6
4184else
4185  if test -n "$ac_ct_STRIP"; then
4186  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4187else
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191  IFS=$as_save_IFS
4192  test -z "$as_dir" && as_dir=.
4193    for ac_exec_ext in '' $ac_executable_extensions; do
4194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4195    ac_cv_prog_ac_ct_STRIP="strip"
4196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197    break 2
4198  fi
4199done
4200  done
4201IFS=$as_save_IFS
4202
4203fi
4204fi
4205ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4206if test -n "$ac_ct_STRIP"; then
4207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4208$as_echo "$ac_ct_STRIP" >&6; }
4209else
4210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211$as_echo "no" >&6; }
4212fi
4213
4214  if test "x$ac_ct_STRIP" = x; then
4215    STRIP=":"
4216  else
4217    case $cross_compiling:$ac_tool_warned in
4218yes:)
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221ac_tool_warned=yes ;;
4222esac
4223    STRIP=$ac_ct_STRIP
4224  fi
4225else
4226  STRIP="$ac_cv_prog_STRIP"
4227fi
4228
4229fi
4230INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4231
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4233$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4234if test -z "$MKDIR_P"; then
4235  if ${ac_cv_path_mkdir+:} false; then :
4236  $as_echo_n "(cached) " >&6
4237else
4238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4240do
4241  IFS=$as_save_IFS
4242  test -z "$as_dir" && as_dir=.
4243    for ac_prog in mkdir gmkdir; do
4244	 for ac_exec_ext in '' $ac_executable_extensions; do
4245	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4246	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4247	     'mkdir (GNU coreutils) '* | \
4248	     'mkdir (coreutils) '* | \
4249	     'mkdir (fileutils) '4.1*)
4250	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4251	       break 3;;
4252	   esac
4253	 done
4254       done
4255  done
4256IFS=$as_save_IFS
4257
4258fi
4259
4260  test -d ./--version && rmdir ./--version
4261  if test "${ac_cv_path_mkdir+set}" = set; then
4262    MKDIR_P="$ac_cv_path_mkdir -p"
4263  else
4264    # As a last resort, use the slow shell script.  Don't cache a
4265    # value for MKDIR_P within a source directory, because that will
4266    # break other packages using the cache if that directory is
4267    # removed, or if the value is a relative name.
4268    MKDIR_P="$ac_install_sh -d"
4269  fi
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4272$as_echo "$MKDIR_P" >&6; }
4273
4274mkdir_p="$MKDIR_P"
4275case $mkdir_p in
4276  [\\/$]* | ?:[\\/]*) ;;
4277  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4278esac
4279
4280for ac_prog in gawk mawk nawk awk
4281do
4282  # Extract the first word of "$ac_prog", so it can be a program name with args.
4283set dummy $ac_prog; ac_word=$2
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285$as_echo_n "checking for $ac_word... " >&6; }
4286if ${ac_cv_prog_AWK+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  if test -n "$AWK"; then
4290  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4291else
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295  IFS=$as_save_IFS
4296  test -z "$as_dir" && as_dir=.
4297    for ac_exec_ext in '' $ac_executable_extensions; do
4298  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299    ac_cv_prog_AWK="$ac_prog"
4300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301    break 2
4302  fi
4303done
4304  done
4305IFS=$as_save_IFS
4306
4307fi
4308fi
4309AWK=$ac_cv_prog_AWK
4310if test -n "$AWK"; then
4311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4312$as_echo "$AWK" >&6; }
4313else
4314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315$as_echo "no" >&6; }
4316fi
4317
4318
4319  test -n "$AWK" && break
4320done
4321
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4323$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4324set x ${MAKE-make}
4325ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4326if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4327  $as_echo_n "(cached) " >&6
4328else
4329  cat >conftest.make <<\_ACEOF
4330SHELL = /bin/sh
4331all:
4332	@echo '@@@%%%=$(MAKE)=@@@%%%'
4333_ACEOF
4334# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4335case `${MAKE-make} -f conftest.make 2>/dev/null` in
4336  *@@@%%%=?*=@@@%%%*)
4337    eval ac_cv_prog_make_${ac_make}_set=yes;;
4338  *)
4339    eval ac_cv_prog_make_${ac_make}_set=no;;
4340esac
4341rm -f conftest.make
4342fi
4343if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4345$as_echo "yes" >&6; }
4346  SET_MAKE=
4347else
4348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349$as_echo "no" >&6; }
4350  SET_MAKE="MAKE=${MAKE-make}"
4351fi
4352
4353rm -rf .tst 2>/dev/null
4354mkdir .tst 2>/dev/null
4355if test -d .tst; then
4356  am__leading_dot=.
4357else
4358  am__leading_dot=_
4359fi
4360rmdir .tst 2>/dev/null
4361
4362DEPDIR="${am__leading_dot}deps"
4363
4364ac_config_commands="$ac_config_commands depfiles"
4365
4366
4367am_make=${MAKE-make}
4368cat > confinc << 'END'
4369am__doit:
4370	@echo this is the am__doit target
4371.PHONY: am__doit
4372END
4373# If we don't find an include directive, just comment out the code.
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4375$as_echo_n "checking for style of include used by $am_make... " >&6; }
4376am__include="#"
4377am__quote=
4378_am_result=none
4379# First try GNU make style include.
4380echo "include confinc" > confmf
4381# Ignore all kinds of additional output from `make'.
4382case `$am_make -s -f confmf 2> /dev/null` in #(
4383*the\ am__doit\ target*)
4384  am__include=include
4385  am__quote=
4386  _am_result=GNU
4387  ;;
4388esac
4389# Now try BSD make style include.
4390if test "$am__include" = "#"; then
4391   echo '.include "confinc"' > confmf
4392   case `$am_make -s -f confmf 2> /dev/null` in #(
4393   *the\ am__doit\ target*)
4394     am__include=.include
4395     am__quote="\""
4396     _am_result=BSD
4397     ;;
4398   esac
4399fi
4400
4401
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4403$as_echo "$_am_result" >&6; }
4404rm -f confinc confmf
4405
4406# Check whether --enable-dependency-tracking was given.
4407if test "${enable_dependency_tracking+set}" = set; then :
4408  enableval=$enable_dependency_tracking;
4409fi
4410
4411if test "x$enable_dependency_tracking" != xno; then
4412  am_depcomp="$ac_aux_dir/depcomp"
4413  AMDEPBACKSLASH='\'
4414fi
4415 if test "x$enable_dependency_tracking" != xno; then
4416  AMDEP_TRUE=
4417  AMDEP_FALSE='#'
4418else
4419  AMDEP_TRUE='#'
4420  AMDEP_FALSE=
4421fi
4422
4423
4424if test "`cd $srcdir && pwd`" != "`pwd`"; then
4425  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4426  # is not polluted with repeated "-I."
4427  am__isrc=' -I$(srcdir)'
4428  # test to see if srcdir already configured
4429  if test -f $srcdir/config.status; then
4430    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4431  fi
4432fi
4433
4434# test whether we have cygpath
4435if test -z "$CYGPATH_W"; then
4436  if (cygpath --version) >/dev/null 2>/dev/null; then
4437    CYGPATH_W='cygpath -w'
4438  else
4439    CYGPATH_W=echo
4440  fi
4441fi
4442
4443
4444# Define the identity of the package.
4445 PACKAGE='libX11'
4446 VERSION='1.4.3'
4447
4448
4449cat >>confdefs.h <<_ACEOF
4450#define PACKAGE "$PACKAGE"
4451_ACEOF
4452
4453
4454cat >>confdefs.h <<_ACEOF
4455#define VERSION "$VERSION"
4456_ACEOF
4457
4458# Some tools Automake needs.
4459
4460ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4461
4462
4463AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4464
4465
4466AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4467
4468
4469AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4470
4471
4472MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4473
4474# We need awk for the "check" target.  The system "awk" is bad on
4475# some platforms.
4476# Always define AMTAR for backward compatibility.
4477
4478AMTAR=${AMTAR-"${am_missing_run}tar"}
4479
4480am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4481
4482
4483
4484
4485depcc="$CC"   am_compiler_list=
4486
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4488$as_echo_n "checking dependency style of $depcc... " >&6; }
4489if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4490  $as_echo_n "(cached) " >&6
4491else
4492  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4493  # We make a subdir and do the tests there.  Otherwise we can end up
4494  # making bogus files that we don't know about and never remove.  For
4495  # instance it was reported that on HP-UX the gcc test will end up
4496  # making a dummy file named `D' -- because `-MD' means `put the output
4497  # in D'.
4498  mkdir conftest.dir
4499  # Copy depcomp to subdir because otherwise we won't find it if we're
4500  # using a relative directory.
4501  cp "$am_depcomp" conftest.dir
4502  cd conftest.dir
4503  # We will build objects and dependencies in a subdirectory because
4504  # it helps to detect inapplicable dependency modes.  For instance
4505  # both Tru64's cc and ICC support -MD to output dependencies as a
4506  # side effect of compilation, but ICC will put the dependencies in
4507  # the current directory while Tru64 will put them in the object
4508  # directory.
4509  mkdir sub
4510
4511  am_cv_CC_dependencies_compiler_type=none
4512  if test "$am_compiler_list" = ""; then
4513     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4514  fi
4515  am__universal=false
4516  case " $depcc " in #(
4517     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4518     esac
4519
4520  for depmode in $am_compiler_list; do
4521    # Setup a source with many dependencies, because some compilers
4522    # like to wrap large dependency lists on column 80 (with \), and
4523    # we should not choose a depcomp mode which is confused by this.
4524    #
4525    # We need to recreate these files for each test, as the compiler may
4526    # overwrite some of them when testing with obscure command lines.
4527    # This happens at least with the AIX C compiler.
4528    : > sub/conftest.c
4529    for i in 1 2 3 4 5 6; do
4530      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4531      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4532      # Solaris 8's {/usr,}/bin/sh.
4533      touch sub/conftst$i.h
4534    done
4535    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4536
4537    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4538    # mode.  It turns out that the SunPro C++ compiler does not properly
4539    # handle `-M -o', and we need to detect this.  Also, some Intel
4540    # versions had trouble with output in subdirs
4541    am__obj=sub/conftest.${OBJEXT-o}
4542    am__minus_obj="-o $am__obj"
4543    case $depmode in
4544    gcc)
4545      # This depmode causes a compiler race in universal mode.
4546      test "$am__universal" = false || continue
4547      ;;
4548    nosideeffect)
4549      # after this tag, mechanisms are not by side-effect, so they'll
4550      # only be used when explicitly requested
4551      if test "x$enable_dependency_tracking" = xyes; then
4552	continue
4553      else
4554	break
4555      fi
4556      ;;
4557    msvisualcpp | msvcmsys)
4558      # This compiler won't grok `-c -o', but also, the minuso test has
4559      # not run yet.  These depmodes are late enough in the game, and
4560      # so weak that their functioning should not be impacted.
4561      am__obj=conftest.${OBJEXT-o}
4562      am__minus_obj=
4563      ;;
4564    none) break ;;
4565    esac
4566    if depmode=$depmode \
4567       source=sub/conftest.c object=$am__obj \
4568       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4569       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4570         >/dev/null 2>conftest.err &&
4571       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4572       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4573       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4574       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4575      # icc doesn't choke on unknown options, it will just issue warnings
4576      # or remarks (even with -Werror).  So we grep stderr for any message
4577      # that says an option was ignored or not supported.
4578      # When given -MP, icc 7.0 and 7.1 complain thusly:
4579      #   icc: Command line warning: ignoring option '-M'; no argument required
4580      # The diagnosis changed in icc 8.0:
4581      #   icc: Command line remark: option '-MP' not supported
4582      if (grep 'ignoring option' conftest.err ||
4583          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4584        am_cv_CC_dependencies_compiler_type=$depmode
4585        break
4586      fi
4587    fi
4588  done
4589
4590  cd ..
4591  rm -rf conftest.dir
4592else
4593  am_cv_CC_dependencies_compiler_type=none
4594fi
4595
4596fi
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4598$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4599CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4600
4601 if
4602  test "x$enable_dependency_tracking" != xno \
4603  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4604  am__fastdepCC_TRUE=
4605  am__fastdepCC_FALSE='#'
4606else
4607  am__fastdepCC_TRUE='#'
4608  am__fastdepCC_FALSE=
4609fi
4610
4611
4612
4613
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4615$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4616    # Check whether --enable-maintainer-mode was given.
4617if test "${enable_maintainer_mode+set}" = set; then :
4618  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4619else
4620  USE_MAINTAINER_MODE=no
4621fi
4622
4623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4624$as_echo "$USE_MAINTAINER_MODE" >&6; }
4625   if test $USE_MAINTAINER_MODE = yes; then
4626  MAINTAINER_MODE_TRUE=
4627  MAINTAINER_MODE_FALSE='#'
4628else
4629  MAINTAINER_MODE_TRUE='#'
4630  MAINTAINER_MODE_FALSE=
4631fi
4632
4633  MAINT=$MAINTAINER_MODE_TRUE
4634
4635
4636
4637# Initialize libtool
4638case `pwd` in
4639  *\ * | *\	*)
4640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4641$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4642esac
4643
4644
4645
4646macro_version='2.4'
4647macro_revision='1.3293'
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661ltmain="$ac_aux_dir/ltmain.sh"
4662
4663# Backslashify metacharacters that are still active within
4664# double-quoted strings.
4665sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4666
4667# Same as above, but do not quote variable references.
4668double_quote_subst='s/\(["`\\]\)/\\\1/g'
4669
4670# Sed substitution to delay expansion of an escaped shell variable in a
4671# double_quote_subst'ed string.
4672delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4673
4674# Sed substitution to delay expansion of an escaped single quote.
4675delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4676
4677# Sed substitution to avoid accidental globbing in evaled expressions
4678no_glob_subst='s/\*/\\\*/g'
4679
4680ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4681ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4682ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4685$as_echo_n "checking how to print strings... " >&6; }
4686# Test print first, because it will be a builtin if present.
4687if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4688   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4689  ECHO='print -r --'
4690elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4691  ECHO='printf %s\n'
4692else
4693  # Use this function as a fallback that always works.
4694  func_fallback_echo ()
4695  {
4696    eval 'cat <<_LTECHO_EOF
4697$1
4698_LTECHO_EOF'
4699  }
4700  ECHO='func_fallback_echo'
4701fi
4702
4703# func_echo_all arg...
4704# Invoke $ECHO with all args, space-separated.
4705func_echo_all ()
4706{
4707    $ECHO ""
4708}
4709
4710case "$ECHO" in
4711  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4712$as_echo "printf" >&6; } ;;
4713  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4714$as_echo "print -r" >&6; } ;;
4715  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4716$as_echo "cat" >&6; } ;;
4717esac
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4733$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4734if ${ac_cv_path_SED+:} false; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4738     for ac_i in 1 2 3 4 5 6 7; do
4739       ac_script="$ac_script$as_nl$ac_script"
4740     done
4741     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4742     { ac_script=; unset ac_script;}
4743     if test -z "$SED"; then
4744  ac_path_SED_found=false
4745  # Loop through the user's path and test for each of PROGNAME-LIST
4746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749  IFS=$as_save_IFS
4750  test -z "$as_dir" && as_dir=.
4751    for ac_prog in sed gsed; do
4752    for ac_exec_ext in '' $ac_executable_extensions; do
4753      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4754      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4755# Check for GNU ac_path_SED and select it if it is found.
4756  # Check for GNU $ac_path_SED
4757case `"$ac_path_SED" --version 2>&1` in
4758*GNU*)
4759  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4760*)
4761  ac_count=0
4762  $as_echo_n 0123456789 >"conftest.in"
4763  while :
4764  do
4765    cat "conftest.in" "conftest.in" >"conftest.tmp"
4766    mv "conftest.tmp" "conftest.in"
4767    cp "conftest.in" "conftest.nl"
4768    $as_echo '' >> "conftest.nl"
4769    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771    as_fn_arith $ac_count + 1 && ac_count=$as_val
4772    if test $ac_count -gt ${ac_path_SED_max-0}; then
4773      # Best one so far, save it but keep looking for a better one
4774      ac_cv_path_SED="$ac_path_SED"
4775      ac_path_SED_max=$ac_count
4776    fi
4777    # 10*(2^10) chars as input seems more than enough
4778    test $ac_count -gt 10 && break
4779  done
4780  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781esac
4782
4783      $ac_path_SED_found && break 3
4784    done
4785  done
4786  done
4787IFS=$as_save_IFS
4788  if test -z "$ac_cv_path_SED"; then
4789    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4790  fi
4791else
4792  ac_cv_path_SED=$SED
4793fi
4794
4795fi
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4797$as_echo "$ac_cv_path_SED" >&6; }
4798 SED="$ac_cv_path_SED"
4799  rm -f conftest.sed
4800
4801test -z "$SED" && SED=sed
4802Xsed="$SED -e 1s/^X//"
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4815$as_echo_n "checking for fgrep... " >&6; }
4816if ${ac_cv_path_FGREP+:} false; then :
4817  $as_echo_n "(cached) " >&6
4818else
4819  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4820   then ac_cv_path_FGREP="$GREP -F"
4821   else
4822     if test -z "$FGREP"; then
4823  ac_path_FGREP_found=false
4824  # Loop through the user's path and test for each of PROGNAME-LIST
4825  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4827do
4828  IFS=$as_save_IFS
4829  test -z "$as_dir" && as_dir=.
4830    for ac_prog in fgrep; do
4831    for ac_exec_ext in '' $ac_executable_extensions; do
4832      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4833      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4834# Check for GNU ac_path_FGREP and select it if it is found.
4835  # Check for GNU $ac_path_FGREP
4836case `"$ac_path_FGREP" --version 2>&1` in
4837*GNU*)
4838  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4839*)
4840  ac_count=0
4841  $as_echo_n 0123456789 >"conftest.in"
4842  while :
4843  do
4844    cat "conftest.in" "conftest.in" >"conftest.tmp"
4845    mv "conftest.tmp" "conftest.in"
4846    cp "conftest.in" "conftest.nl"
4847    $as_echo 'FGREP' >> "conftest.nl"
4848    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850    as_fn_arith $ac_count + 1 && ac_count=$as_val
4851    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4852      # Best one so far, save it but keep looking for a better one
4853      ac_cv_path_FGREP="$ac_path_FGREP"
4854      ac_path_FGREP_max=$ac_count
4855    fi
4856    # 10*(2^10) chars as input seems more than enough
4857    test $ac_count -gt 10 && break
4858  done
4859  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860esac
4861
4862      $ac_path_FGREP_found && break 3
4863    done
4864  done
4865  done
4866IFS=$as_save_IFS
4867  if test -z "$ac_cv_path_FGREP"; then
4868    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869  fi
4870else
4871  ac_cv_path_FGREP=$FGREP
4872fi
4873
4874   fi
4875fi
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4877$as_echo "$ac_cv_path_FGREP" >&6; }
4878 FGREP="$ac_cv_path_FGREP"
4879
4880
4881test -z "$GREP" && GREP=grep
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901# Check whether --with-gnu-ld was given.
4902if test "${with_gnu_ld+set}" = set; then :
4903  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4904else
4905  with_gnu_ld=no
4906fi
4907
4908ac_prog=ld
4909if test "$GCC" = yes; then
4910  # Check if gcc -print-prog-name=ld gives a path.
4911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4912$as_echo_n "checking for ld used by $CC... " >&6; }
4913  case $host in
4914  *-*-mingw*)
4915    # gcc leaves a trailing carriage return which upsets mingw
4916    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4917  *)
4918    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4919  esac
4920  case $ac_prog in
4921    # Accept absolute paths.
4922    [\\/]* | ?:[\\/]*)
4923      re_direlt='/[^/][^/]*/\.\./'
4924      # Canonicalize the pathname of ld
4925      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4926      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4927	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4928      done
4929      test -z "$LD" && LD="$ac_prog"
4930      ;;
4931  "")
4932    # If it fails, then pretend we aren't using GCC.
4933    ac_prog=ld
4934    ;;
4935  *)
4936    # If it is relative, then search for the first ld in PATH.
4937    with_gnu_ld=unknown
4938    ;;
4939  esac
4940elif test "$with_gnu_ld" = yes; then
4941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4942$as_echo_n "checking for GNU ld... " >&6; }
4943else
4944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4945$as_echo_n "checking for non-GNU ld... " >&6; }
4946fi
4947if ${lt_cv_path_LD+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  if test -z "$LD"; then
4951  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4952  for ac_dir in $PATH; do
4953    IFS="$lt_save_ifs"
4954    test -z "$ac_dir" && ac_dir=.
4955    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4956      lt_cv_path_LD="$ac_dir/$ac_prog"
4957      # Check to see if the program is GNU ld.  I'd rather use --version,
4958      # but apparently some variants of GNU ld only accept -v.
4959      # Break only if it was the GNU/non-GNU ld that we prefer.
4960      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4961      *GNU* | *'with BFD'*)
4962	test "$with_gnu_ld" != no && break
4963	;;
4964      *)
4965	test "$with_gnu_ld" != yes && break
4966	;;
4967      esac
4968    fi
4969  done
4970  IFS="$lt_save_ifs"
4971else
4972  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4973fi
4974fi
4975
4976LD="$lt_cv_path_LD"
4977if test -n "$LD"; then
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4979$as_echo "$LD" >&6; }
4980else
4981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
4983fi
4984test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4986$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4987if ${lt_cv_prog_gnu_ld+:} false; then :
4988  $as_echo_n "(cached) " >&6
4989else
4990  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4991case `$LD -v 2>&1 </dev/null` in
4992*GNU* | *'with BFD'*)
4993  lt_cv_prog_gnu_ld=yes
4994  ;;
4995*)
4996  lt_cv_prog_gnu_ld=no
4997  ;;
4998esac
4999fi
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5001$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5002with_gnu_ld=$lt_cv_prog_gnu_ld
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5013$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5014if ${lt_cv_path_NM+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  if test -n "$NM"; then
5018  # Let the user override the test.
5019  lt_cv_path_NM="$NM"
5020else
5021  lt_nm_to_check="${ac_tool_prefix}nm"
5022  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5023    lt_nm_to_check="$lt_nm_to_check nm"
5024  fi
5025  for lt_tmp_nm in $lt_nm_to_check; do
5026    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5027    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5028      IFS="$lt_save_ifs"
5029      test -z "$ac_dir" && ac_dir=.
5030      tmp_nm="$ac_dir/$lt_tmp_nm"
5031      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5032	# Check to see if the nm accepts a BSD-compat flag.
5033	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5034	#   nm: unknown option "B" ignored
5035	# Tru64's nm complains that /dev/null is an invalid object file
5036	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5037	*/dev/null* | *'Invalid file or object type'*)
5038	  lt_cv_path_NM="$tmp_nm -B"
5039	  break
5040	  ;;
5041	*)
5042	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5043	  */dev/null*)
5044	    lt_cv_path_NM="$tmp_nm -p"
5045	    break
5046	    ;;
5047	  *)
5048	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5049	    continue # so that we can try to find one that supports BSD flags
5050	    ;;
5051	  esac
5052	  ;;
5053	esac
5054      fi
5055    done
5056    IFS="$lt_save_ifs"
5057  done
5058  : ${lt_cv_path_NM=no}
5059fi
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5062$as_echo "$lt_cv_path_NM" >&6; }
5063if test "$lt_cv_path_NM" != "no"; then
5064  NM="$lt_cv_path_NM"
5065else
5066  # Didn't find any BSD compatible name lister, look for dumpbin.
5067  if test -n "$DUMPBIN"; then :
5068    # Let the user override the test.
5069  else
5070    if test -n "$ac_tool_prefix"; then
5071  for ac_prog in dumpbin "link -dump"
5072  do
5073    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076$as_echo_n "checking for $ac_word... " >&6; }
5077if ${ac_cv_prog_DUMPBIN+:} false; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080  if test -n "$DUMPBIN"; then
5081  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5082else
5083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084for as_dir in $PATH
5085do
5086  IFS=$as_save_IFS
5087  test -z "$as_dir" && as_dir=.
5088    for ac_exec_ext in '' $ac_executable_extensions; do
5089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092    break 2
5093  fi
5094done
5095  done
5096IFS=$as_save_IFS
5097
5098fi
5099fi
5100DUMPBIN=$ac_cv_prog_DUMPBIN
5101if test -n "$DUMPBIN"; then
5102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5103$as_echo "$DUMPBIN" >&6; }
5104else
5105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106$as_echo "no" >&6; }
5107fi
5108
5109
5110    test -n "$DUMPBIN" && break
5111  done
5112fi
5113if test -z "$DUMPBIN"; then
5114  ac_ct_DUMPBIN=$DUMPBIN
5115  for ac_prog in dumpbin "link -dump"
5116do
5117  # Extract the first word of "$ac_prog", so it can be a program name with args.
5118set dummy $ac_prog; ac_word=$2
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120$as_echo_n "checking for $ac_word... " >&6; }
5121if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5122  $as_echo_n "(cached) " >&6
5123else
5124  if test -n "$ac_ct_DUMPBIN"; then
5125  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5126else
5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130  IFS=$as_save_IFS
5131  test -z "$as_dir" && as_dir=.
5132    for ac_exec_ext in '' $ac_executable_extensions; do
5133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136    break 2
5137  fi
5138done
5139  done
5140IFS=$as_save_IFS
5141
5142fi
5143fi
5144ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5145if test -n "$ac_ct_DUMPBIN"; then
5146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5147$as_echo "$ac_ct_DUMPBIN" >&6; }
5148else
5149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150$as_echo "no" >&6; }
5151fi
5152
5153
5154  test -n "$ac_ct_DUMPBIN" && break
5155done
5156
5157  if test "x$ac_ct_DUMPBIN" = x; then
5158    DUMPBIN=":"
5159  else
5160    case $cross_compiling:$ac_tool_warned in
5161yes:)
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164ac_tool_warned=yes ;;
5165esac
5166    DUMPBIN=$ac_ct_DUMPBIN
5167  fi
5168fi
5169
5170    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5171    *COFF*)
5172      DUMPBIN="$DUMPBIN -symbols"
5173      ;;
5174    *)
5175      DUMPBIN=:
5176      ;;
5177    esac
5178  fi
5179
5180  if test "$DUMPBIN" != ":"; then
5181    NM="$DUMPBIN"
5182  fi
5183fi
5184test -z "$NM" && NM=nm
5185
5186
5187
5188
5189
5190
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5192$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5193if ${lt_cv_nm_interface+:} false; then :
5194  $as_echo_n "(cached) " >&6
5195else
5196  lt_cv_nm_interface="BSD nm"
5197  echo "int some_variable = 0;" > conftest.$ac_ext
5198  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5199  (eval "$ac_compile" 2>conftest.err)
5200  cat conftest.err >&5
5201  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5202  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5203  cat conftest.err >&5
5204  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5205  cat conftest.out >&5
5206  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5207    lt_cv_nm_interface="MS dumpbin"
5208  fi
5209  rm -f conftest*
5210fi
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5212$as_echo "$lt_cv_nm_interface" >&6; }
5213
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5215$as_echo_n "checking whether ln -s works... " >&6; }
5216LN_S=$as_ln_s
5217if test "$LN_S" = "ln -s"; then
5218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5219$as_echo "yes" >&6; }
5220else
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5222$as_echo "no, using $LN_S" >&6; }
5223fi
5224
5225# find the maximum length of command line arguments
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5227$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5228if ${lt_cv_sys_max_cmd_len+:} false; then :
5229  $as_echo_n "(cached) " >&6
5230else
5231    i=0
5232  teststring="ABCD"
5233
5234  case $build_os in
5235  msdosdjgpp*)
5236    # On DJGPP, this test can blow up pretty badly due to problems in libc
5237    # (any single argument exceeding 2000 bytes causes a buffer overrun
5238    # during glob expansion).  Even if it were fixed, the result of this
5239    # check would be larger than it should be.
5240    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5241    ;;
5242
5243  gnu*)
5244    # Under GNU Hurd, this test is not required because there is
5245    # no limit to the length of command line arguments.
5246    # Libtool will interpret -1 as no limit whatsoever
5247    lt_cv_sys_max_cmd_len=-1;
5248    ;;
5249
5250  cygwin* | mingw* | cegcc*)
5251    # On Win9x/ME, this test blows up -- it succeeds, but takes
5252    # about 5 minutes as the teststring grows exponentially.
5253    # Worse, since 9x/ME are not pre-emptively multitasking,
5254    # you end up with a "frozen" computer, even though with patience
5255    # the test eventually succeeds (with a max line length of 256k).
5256    # Instead, let's just punt: use the minimum linelength reported by
5257    # all of the supported platforms: 8192 (on NT/2K/XP).
5258    lt_cv_sys_max_cmd_len=8192;
5259    ;;
5260
5261  mint*)
5262    # On MiNT this can take a long time and run out of memory.
5263    lt_cv_sys_max_cmd_len=8192;
5264    ;;
5265
5266  amigaos*)
5267    # On AmigaOS with pdksh, this test takes hours, literally.
5268    # So we just punt and use a minimum line length of 8192.
5269    lt_cv_sys_max_cmd_len=8192;
5270    ;;
5271
5272  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5273    # This has been around since 386BSD, at least.  Likely further.
5274    if test -x /sbin/sysctl; then
5275      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5276    elif test -x /usr/sbin/sysctl; then
5277      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5278    else
5279      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5280    fi
5281    # And add a safety zone
5282    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5283    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5284    ;;
5285
5286  interix*)
5287    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5288    lt_cv_sys_max_cmd_len=196608
5289    ;;
5290
5291  osf*)
5292    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5293    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5294    # nice to cause kernel panics so lets avoid the loop below.
5295    # First set a reasonable default.
5296    lt_cv_sys_max_cmd_len=16384
5297    #
5298    if test -x /sbin/sysconfig; then
5299      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5300        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5301      esac
5302    fi
5303    ;;
5304  sco3.2v5*)
5305    lt_cv_sys_max_cmd_len=102400
5306    ;;
5307  sysv5* | sco5v6* | sysv4.2uw2*)
5308    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5309    if test -n "$kargmax"; then
5310      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5311    else
5312      lt_cv_sys_max_cmd_len=32768
5313    fi
5314    ;;
5315  *)
5316    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5317    if test -n "$lt_cv_sys_max_cmd_len"; then
5318      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5319      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5320    else
5321      # Make teststring a little bigger before we do anything with it.
5322      # a 1K string should be a reasonable start.
5323      for i in 1 2 3 4 5 6 7 8 ; do
5324        teststring=$teststring$teststring
5325      done
5326      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5327      # If test is not a shell built-in, we'll probably end up computing a
5328      # maximum length that is only half of the actual maximum length, but
5329      # we can't tell.
5330      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5331	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5332	      test $i != 17 # 1/2 MB should be enough
5333      do
5334        i=`expr $i + 1`
5335        teststring=$teststring$teststring
5336      done
5337      # Only check the string length outside the loop.
5338      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5339      teststring=
5340      # Add a significant safety factor because C++ compilers can tack on
5341      # massive amounts of additional arguments before passing them to the
5342      # linker.  It appears as though 1/2 is a usable value.
5343      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5344    fi
5345    ;;
5346  esac
5347
5348fi
5349
5350if test -n $lt_cv_sys_max_cmd_len ; then
5351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5352$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5353else
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5355$as_echo "none" >&6; }
5356fi
5357max_cmd_len=$lt_cv_sys_max_cmd_len
5358
5359
5360
5361
5362
5363
5364: ${CP="cp -f"}
5365: ${MV="mv -f"}
5366: ${RM="rm -f"}
5367
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5369$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5370# Try some XSI features
5371xsi_shell=no
5372( _lt_dummy="a/b/c"
5373  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5374      = c,a/b,b/c, \
5375    && eval 'test $(( 1 + 1 )) -eq 2 \
5376    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5377  && xsi_shell=yes
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5379$as_echo "$xsi_shell" >&6; }
5380
5381
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5383$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5384lt_shell_append=no
5385( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5386    >/dev/null 2>&1 \
5387  && lt_shell_append=yes
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5389$as_echo "$lt_shell_append" >&6; }
5390
5391
5392if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5393  lt_unset=unset
5394else
5395  lt_unset=false
5396fi
5397
5398
5399
5400
5401
5402# test EBCDIC or ASCII
5403case `echo X|tr X '\101'` in
5404 A) # ASCII based system
5405    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5406  lt_SP2NL='tr \040 \012'
5407  lt_NL2SP='tr \015\012 \040\040'
5408  ;;
5409 *) # EBCDIC based system
5410  lt_SP2NL='tr \100 \n'
5411  lt_NL2SP='tr \r\n \100\100'
5412  ;;
5413esac
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5424$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5425if ${lt_cv_to_host_file_cmd+:} false; then :
5426  $as_echo_n "(cached) " >&6
5427else
5428  case $host in
5429  *-*-mingw* )
5430    case $build in
5431      *-*-mingw* ) # actually msys
5432        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5433        ;;
5434      *-*-cygwin* )
5435        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5436        ;;
5437      * ) # otherwise, assume *nix
5438        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5439        ;;
5440    esac
5441    ;;
5442  *-*-cygwin* )
5443    case $build in
5444      *-*-mingw* ) # actually msys
5445        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5446        ;;
5447      *-*-cygwin* )
5448        lt_cv_to_host_file_cmd=func_convert_file_noop
5449        ;;
5450      * ) # otherwise, assume *nix
5451        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5452        ;;
5453    esac
5454    ;;
5455  * ) # unhandled hosts (and "normal" native builds)
5456    lt_cv_to_host_file_cmd=func_convert_file_noop
5457    ;;
5458esac
5459
5460fi
5461
5462to_host_file_cmd=$lt_cv_to_host_file_cmd
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5464$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5465
5466
5467
5468
5469
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5471$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5472if ${lt_cv_to_tool_file_cmd+:} false; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475  #assume ordinary cross tools, or native build.
5476lt_cv_to_tool_file_cmd=func_convert_file_noop
5477case $host in
5478  *-*-mingw* )
5479    case $build in
5480      *-*-mingw* ) # actually msys
5481        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5482        ;;
5483    esac
5484    ;;
5485esac
5486
5487fi
5488
5489to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5491$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5492
5493
5494
5495
5496
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5498$as_echo_n "checking for $LD option to reload object files... " >&6; }
5499if ${lt_cv_ld_reload_flag+:} false; then :
5500  $as_echo_n "(cached) " >&6
5501else
5502  lt_cv_ld_reload_flag='-r'
5503fi
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5505$as_echo "$lt_cv_ld_reload_flag" >&6; }
5506reload_flag=$lt_cv_ld_reload_flag
5507case $reload_flag in
5508"" | " "*) ;;
5509*) reload_flag=" $reload_flag" ;;
5510esac
5511reload_cmds='$LD$reload_flag -o $output$reload_objs'
5512case $host_os in
5513  cygwin* | mingw* | pw32* | cegcc*)
5514    if test "$GCC" != yes; then
5515      reload_cmds=false
5516    fi
5517    ;;
5518  darwin*)
5519    if test "$GCC" = yes; then
5520      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5521    else
5522      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5523    fi
5524    ;;
5525esac
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535if test -n "$ac_tool_prefix"; then
5536  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5537set dummy ${ac_tool_prefix}objdump; ac_word=$2
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539$as_echo_n "checking for $ac_word... " >&6; }
5540if ${ac_cv_prog_OBJDUMP+:} false; then :
5541  $as_echo_n "(cached) " >&6
5542else
5543  if test -n "$OBJDUMP"; then
5544  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5545else
5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549  IFS=$as_save_IFS
5550  test -z "$as_dir" && as_dir=.
5551    for ac_exec_ext in '' $ac_executable_extensions; do
5552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555    break 2
5556  fi
5557done
5558  done
5559IFS=$as_save_IFS
5560
5561fi
5562fi
5563OBJDUMP=$ac_cv_prog_OBJDUMP
5564if test -n "$OBJDUMP"; then
5565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5566$as_echo "$OBJDUMP" >&6; }
5567else
5568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569$as_echo "no" >&6; }
5570fi
5571
5572
5573fi
5574if test -z "$ac_cv_prog_OBJDUMP"; then
5575  ac_ct_OBJDUMP=$OBJDUMP
5576  # Extract the first word of "objdump", so it can be a program name with args.
5577set dummy objdump; ac_word=$2
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579$as_echo_n "checking for $ac_word... " >&6; }
5580if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5581  $as_echo_n "(cached) " >&6
5582else
5583  if test -n "$ac_ct_OBJDUMP"; then
5584  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5585else
5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589  IFS=$as_save_IFS
5590  test -z "$as_dir" && as_dir=.
5591    for ac_exec_ext in '' $ac_executable_extensions; do
5592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5593    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595    break 2
5596  fi
5597done
5598  done
5599IFS=$as_save_IFS
5600
5601fi
5602fi
5603ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5604if test -n "$ac_ct_OBJDUMP"; then
5605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5606$as_echo "$ac_ct_OBJDUMP" >&6; }
5607else
5608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609$as_echo "no" >&6; }
5610fi
5611
5612  if test "x$ac_ct_OBJDUMP" = x; then
5613    OBJDUMP="false"
5614  else
5615    case $cross_compiling:$ac_tool_warned in
5616yes:)
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5619ac_tool_warned=yes ;;
5620esac
5621    OBJDUMP=$ac_ct_OBJDUMP
5622  fi
5623else
5624  OBJDUMP="$ac_cv_prog_OBJDUMP"
5625fi
5626
5627test -z "$OBJDUMP" && OBJDUMP=objdump
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5638$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5639if ${lt_cv_deplibs_check_method+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642  lt_cv_file_magic_cmd='$MAGIC_CMD'
5643lt_cv_file_magic_test_file=
5644lt_cv_deplibs_check_method='unknown'
5645# Need to set the preceding variable on all platforms that support
5646# interlibrary dependencies.
5647# 'none' -- dependencies not supported.
5648# `unknown' -- same as none, but documents that we really don't know.
5649# 'pass_all' -- all dependencies passed with no checks.
5650# 'test_compile' -- check by making test program.
5651# 'file_magic [[regex]]' -- check by looking for files in library path
5652# which responds to the $file_magic_cmd with a given extended regex.
5653# If you have `file' or equivalent on your system and you're not sure
5654# whether `pass_all' will *always* work, you probably want this one.
5655
5656case $host_os in
5657aix[4-9]*)
5658  lt_cv_deplibs_check_method=pass_all
5659  ;;
5660
5661beos*)
5662  lt_cv_deplibs_check_method=pass_all
5663  ;;
5664
5665bsdi[45]*)
5666  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5667  lt_cv_file_magic_cmd='/usr/bin/file -L'
5668  lt_cv_file_magic_test_file=/shlib/libc.so
5669  ;;
5670
5671cygwin*)
5672  # func_win32_libid is a shell function defined in ltmain.sh
5673  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5674  lt_cv_file_magic_cmd='func_win32_libid'
5675  ;;
5676
5677mingw* | pw32*)
5678  # Base MSYS/MinGW do not provide the 'file' command needed by
5679  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5680  # unless we find 'file', for example because we are cross-compiling.
5681  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5682  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5683    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5684    lt_cv_file_magic_cmd='func_win32_libid'
5685  else
5686    # Keep this pattern in sync with the one in func_win32_libid.
5687    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5688    lt_cv_file_magic_cmd='$OBJDUMP -f'
5689  fi
5690  ;;
5691
5692cegcc*)
5693  # use the weaker test based on 'objdump'. See mingw*.
5694  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5695  lt_cv_file_magic_cmd='$OBJDUMP -f'
5696  ;;
5697
5698darwin* | rhapsody*)
5699  lt_cv_deplibs_check_method=pass_all
5700  ;;
5701
5702freebsd* | dragonfly*)
5703  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5704    case $host_cpu in
5705    i*86 )
5706      # Not sure whether the presence of OpenBSD here was a mistake.
5707      # Let's accept both of them until this is cleared up.
5708      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5709      lt_cv_file_magic_cmd=/usr/bin/file
5710      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5711      ;;
5712    esac
5713  else
5714    lt_cv_deplibs_check_method=pass_all
5715  fi
5716  ;;
5717
5718gnu*)
5719  lt_cv_deplibs_check_method=pass_all
5720  ;;
5721
5722haiku*)
5723  lt_cv_deplibs_check_method=pass_all
5724  ;;
5725
5726hpux10.20* | hpux11*)
5727  lt_cv_file_magic_cmd=/usr/bin/file
5728  case $host_cpu in
5729  ia64*)
5730    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5731    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5732    ;;
5733  hppa*64*)
5734    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]'
5735    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5736    ;;
5737  *)
5738    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5739    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5740    ;;
5741  esac
5742  ;;
5743
5744interix[3-9]*)
5745  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5746  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5747  ;;
5748
5749irix5* | irix6* | nonstopux*)
5750  case $LD in
5751  *-32|*"-32 ") libmagic=32-bit;;
5752  *-n32|*"-n32 ") libmagic=N32;;
5753  *-64|*"-64 ") libmagic=64-bit;;
5754  *) libmagic=never-match;;
5755  esac
5756  lt_cv_deplibs_check_method=pass_all
5757  ;;
5758
5759# This must be Linux ELF.
5760linux* | k*bsd*-gnu | kopensolaris*-gnu)
5761  lt_cv_deplibs_check_method=pass_all
5762  ;;
5763
5764netbsd*)
5765  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5766    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5767  else
5768    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5769  fi
5770  ;;
5771
5772newos6*)
5773  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5774  lt_cv_file_magic_cmd=/usr/bin/file
5775  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5776  ;;
5777
5778*nto* | *qnx*)
5779  lt_cv_deplibs_check_method=pass_all
5780  ;;
5781
5782openbsd*)
5783  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5784    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5785  else
5786    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5787  fi
5788  ;;
5789
5790osf3* | osf4* | osf5*)
5791  lt_cv_deplibs_check_method=pass_all
5792  ;;
5793
5794rdos*)
5795  lt_cv_deplibs_check_method=pass_all
5796  ;;
5797
5798solaris*)
5799  lt_cv_deplibs_check_method=pass_all
5800  ;;
5801
5802sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5803  lt_cv_deplibs_check_method=pass_all
5804  ;;
5805
5806sysv4 | sysv4.3*)
5807  case $host_vendor in
5808  motorola)
5809    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]'
5810    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5811    ;;
5812  ncr)
5813    lt_cv_deplibs_check_method=pass_all
5814    ;;
5815  sequent)
5816    lt_cv_file_magic_cmd='/bin/file'
5817    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5818    ;;
5819  sni)
5820    lt_cv_file_magic_cmd='/bin/file'
5821    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5822    lt_cv_file_magic_test_file=/lib/libc.so
5823    ;;
5824  siemens)
5825    lt_cv_deplibs_check_method=pass_all
5826    ;;
5827  pc)
5828    lt_cv_deplibs_check_method=pass_all
5829    ;;
5830  esac
5831  ;;
5832
5833tpf*)
5834  lt_cv_deplibs_check_method=pass_all
5835  ;;
5836esac
5837
5838fi
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5840$as_echo "$lt_cv_deplibs_check_method" >&6; }
5841
5842file_magic_glob=
5843want_nocaseglob=no
5844if test "$build" = "$host"; then
5845  case $host_os in
5846  mingw* | pw32*)
5847    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5848      want_nocaseglob=yes
5849    else
5850      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5851    fi
5852    ;;
5853  esac
5854fi
5855
5856file_magic_cmd=$lt_cv_file_magic_cmd
5857deplibs_check_method=$lt_cv_deplibs_check_method
5858test -z "$deplibs_check_method" && deplibs_check_method=unknown
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881if test -n "$ac_tool_prefix"; then
5882  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5883set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885$as_echo_n "checking for $ac_word... " >&6; }
5886if ${ac_cv_prog_DLLTOOL+:} false; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  if test -n "$DLLTOOL"; then
5890  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895  IFS=$as_save_IFS
5896  test -z "$as_dir" && as_dir=.
5897    for ac_exec_ext in '' $ac_executable_extensions; do
5898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5899    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901    break 2
5902  fi
5903done
5904  done
5905IFS=$as_save_IFS
5906
5907fi
5908fi
5909DLLTOOL=$ac_cv_prog_DLLTOOL
5910if test -n "$DLLTOOL"; then
5911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5912$as_echo "$DLLTOOL" >&6; }
5913else
5914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915$as_echo "no" >&6; }
5916fi
5917
5918
5919fi
5920if test -z "$ac_cv_prog_DLLTOOL"; then
5921  ac_ct_DLLTOOL=$DLLTOOL
5922  # Extract the first word of "dlltool", so it can be a program name with args.
5923set dummy dlltool; ac_word=$2
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925$as_echo_n "checking for $ac_word... " >&6; }
5926if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  if test -n "$ac_ct_DLLTOOL"; then
5930  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935  IFS=$as_save_IFS
5936  test -z "$as_dir" && as_dir=.
5937    for ac_exec_ext in '' $ac_executable_extensions; do
5938  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941    break 2
5942  fi
5943done
5944  done
5945IFS=$as_save_IFS
5946
5947fi
5948fi
5949ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5950if test -n "$ac_ct_DLLTOOL"; then
5951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5952$as_echo "$ac_ct_DLLTOOL" >&6; }
5953else
5954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957
5958  if test "x$ac_ct_DLLTOOL" = x; then
5959    DLLTOOL="false"
5960  else
5961    case $cross_compiling:$ac_tool_warned in
5962yes:)
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5965ac_tool_warned=yes ;;
5966esac
5967    DLLTOOL=$ac_ct_DLLTOOL
5968  fi
5969else
5970  DLLTOOL="$ac_cv_prog_DLLTOOL"
5971fi
5972
5973test -z "$DLLTOOL" && DLLTOOL=dlltool
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5985$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5986if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5987  $as_echo_n "(cached) " >&6
5988else
5989  lt_cv_sharedlib_from_linklib_cmd='unknown'
5990
5991case $host_os in
5992cygwin* | mingw* | pw32* | cegcc*)
5993  # two different shell functions defined in ltmain.sh
5994  # decide which to use based on capabilities of $DLLTOOL
5995  case `$DLLTOOL --help 2>&1` in
5996  *--identify-strict*)
5997    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5998    ;;
5999  *)
6000    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6001    ;;
6002  esac
6003  ;;
6004*)
6005  # fallback: assume linklib IS sharedlib
6006  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6007  ;;
6008esac
6009
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6012$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6013sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6014test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6015
6016
6017
6018
6019
6020
6021
6022if test -n "$ac_tool_prefix"; then
6023  for ac_prog in ar
6024  do
6025    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028$as_echo_n "checking for $ac_word... " >&6; }
6029if ${ac_cv_prog_AR+:} false; then :
6030  $as_echo_n "(cached) " >&6
6031else
6032  if test -n "$AR"; then
6033  ac_cv_prog_AR="$AR" # Let the user override the test.
6034else
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038  IFS=$as_save_IFS
6039  test -z "$as_dir" && as_dir=.
6040    for ac_exec_ext in '' $ac_executable_extensions; do
6041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044    break 2
6045  fi
6046done
6047  done
6048IFS=$as_save_IFS
6049
6050fi
6051fi
6052AR=$ac_cv_prog_AR
6053if test -n "$AR"; then
6054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6055$as_echo "$AR" >&6; }
6056else
6057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058$as_echo "no" >&6; }
6059fi
6060
6061
6062    test -n "$AR" && break
6063  done
6064fi
6065if test -z "$AR"; then
6066  ac_ct_AR=$AR
6067  for ac_prog in ar
6068do
6069  # Extract the first word of "$ac_prog", so it can be a program name with args.
6070set dummy $ac_prog; ac_word=$2
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072$as_echo_n "checking for $ac_word... " >&6; }
6073if ${ac_cv_prog_ac_ct_AR+:} false; then :
6074  $as_echo_n "(cached) " >&6
6075else
6076  if test -n "$ac_ct_AR"; then
6077  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6078else
6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080for as_dir in $PATH
6081do
6082  IFS=$as_save_IFS
6083  test -z "$as_dir" && as_dir=.
6084    for ac_exec_ext in '' $ac_executable_extensions; do
6085  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086    ac_cv_prog_ac_ct_AR="$ac_prog"
6087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088    break 2
6089  fi
6090done
6091  done
6092IFS=$as_save_IFS
6093
6094fi
6095fi
6096ac_ct_AR=$ac_cv_prog_ac_ct_AR
6097if test -n "$ac_ct_AR"; then
6098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6099$as_echo "$ac_ct_AR" >&6; }
6100else
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102$as_echo "no" >&6; }
6103fi
6104
6105
6106  test -n "$ac_ct_AR" && break
6107done
6108
6109  if test "x$ac_ct_AR" = x; then
6110    AR="false"
6111  else
6112    case $cross_compiling:$ac_tool_warned in
6113yes:)
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6116ac_tool_warned=yes ;;
6117esac
6118    AR=$ac_ct_AR
6119  fi
6120fi
6121
6122: ${AR=ar}
6123: ${AR_FLAGS=cru}
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6136$as_echo_n "checking for archiver @FILE support... " >&6; }
6137if ${lt_cv_ar_at_file+:} false; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140  lt_cv_ar_at_file=no
6141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h.  */
6143
6144int
6145main ()
6146{
6147
6148  ;
6149  return 0;
6150}
6151_ACEOF
6152if ac_fn_c_try_compile "$LINENO"; then :
6153  echo conftest.$ac_objext > conftest.lst
6154      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6155      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6156  (eval $lt_ar_try) 2>&5
6157  ac_status=$?
6158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6159  test $ac_status = 0; }
6160      if test "$ac_status" -eq 0; then
6161	# Ensure the archiver fails upon bogus file names.
6162	rm -f conftest.$ac_objext libconftest.a
6163	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6164  (eval $lt_ar_try) 2>&5
6165  ac_status=$?
6166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167  test $ac_status = 0; }
6168	if test "$ac_status" -ne 0; then
6169          lt_cv_ar_at_file=@
6170        fi
6171      fi
6172      rm -f conftest.* libconftest.a
6173
6174fi
6175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176
6177fi
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6179$as_echo "$lt_cv_ar_at_file" >&6; }
6180
6181if test "x$lt_cv_ar_at_file" = xno; then
6182  archiver_list_spec=
6183else
6184  archiver_list_spec=$lt_cv_ar_at_file
6185fi
6186
6187
6188
6189
6190
6191
6192
6193if test -n "$ac_tool_prefix"; then
6194  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6195set dummy ${ac_tool_prefix}strip; ac_word=$2
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197$as_echo_n "checking for $ac_word... " >&6; }
6198if ${ac_cv_prog_STRIP+:} false; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  if test -n "$STRIP"; then
6202  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6203else
6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205for as_dir in $PATH
6206do
6207  IFS=$as_save_IFS
6208  test -z "$as_dir" && as_dir=.
6209    for ac_exec_ext in '' $ac_executable_extensions; do
6210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213    break 2
6214  fi
6215done
6216  done
6217IFS=$as_save_IFS
6218
6219fi
6220fi
6221STRIP=$ac_cv_prog_STRIP
6222if test -n "$STRIP"; then
6223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6224$as_echo "$STRIP" >&6; }
6225else
6226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227$as_echo "no" >&6; }
6228fi
6229
6230
6231fi
6232if test -z "$ac_cv_prog_STRIP"; then
6233  ac_ct_STRIP=$STRIP
6234  # Extract the first word of "strip", so it can be a program name with args.
6235set dummy strip; ac_word=$2
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237$as_echo_n "checking for $ac_word... " >&6; }
6238if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6239  $as_echo_n "(cached) " >&6
6240else
6241  if test -n "$ac_ct_STRIP"; then
6242  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6243else
6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245for as_dir in $PATH
6246do
6247  IFS=$as_save_IFS
6248  test -z "$as_dir" && as_dir=.
6249    for ac_exec_ext in '' $ac_executable_extensions; do
6250  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251    ac_cv_prog_ac_ct_STRIP="strip"
6252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253    break 2
6254  fi
6255done
6256  done
6257IFS=$as_save_IFS
6258
6259fi
6260fi
6261ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6262if test -n "$ac_ct_STRIP"; then
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6264$as_echo "$ac_ct_STRIP" >&6; }
6265else
6266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267$as_echo "no" >&6; }
6268fi
6269
6270  if test "x$ac_ct_STRIP" = x; then
6271    STRIP=":"
6272  else
6273    case $cross_compiling:$ac_tool_warned in
6274yes:)
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277ac_tool_warned=yes ;;
6278esac
6279    STRIP=$ac_ct_STRIP
6280  fi
6281else
6282  STRIP="$ac_cv_prog_STRIP"
6283fi
6284
6285test -z "$STRIP" && STRIP=:
6286
6287
6288
6289
6290
6291
6292if test -n "$ac_tool_prefix"; then
6293  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6294set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296$as_echo_n "checking for $ac_word... " >&6; }
6297if ${ac_cv_prog_RANLIB+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  if test -n "$RANLIB"; then
6301  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306  IFS=$as_save_IFS
6307  test -z "$as_dir" && as_dir=.
6308    for ac_exec_ext in '' $ac_executable_extensions; do
6309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312    break 2
6313  fi
6314done
6315  done
6316IFS=$as_save_IFS
6317
6318fi
6319fi
6320RANLIB=$ac_cv_prog_RANLIB
6321if test -n "$RANLIB"; then
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6323$as_echo "$RANLIB" >&6; }
6324else
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326$as_echo "no" >&6; }
6327fi
6328
6329
6330fi
6331if test -z "$ac_cv_prog_RANLIB"; then
6332  ac_ct_RANLIB=$RANLIB
6333  # Extract the first word of "ranlib", so it can be a program name with args.
6334set dummy ranlib; ac_word=$2
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336$as_echo_n "checking for $ac_word... " >&6; }
6337if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340  if test -n "$ac_ct_RANLIB"; then
6341  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346  IFS=$as_save_IFS
6347  test -z "$as_dir" && as_dir=.
6348    for ac_exec_ext in '' $ac_executable_extensions; do
6349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350    ac_cv_prog_ac_ct_RANLIB="ranlib"
6351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352    break 2
6353  fi
6354done
6355  done
6356IFS=$as_save_IFS
6357
6358fi
6359fi
6360ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6361if test -n "$ac_ct_RANLIB"; then
6362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6363$as_echo "$ac_ct_RANLIB" >&6; }
6364else
6365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366$as_echo "no" >&6; }
6367fi
6368
6369  if test "x$ac_ct_RANLIB" = x; then
6370    RANLIB=":"
6371  else
6372    case $cross_compiling:$ac_tool_warned in
6373yes:)
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376ac_tool_warned=yes ;;
6377esac
6378    RANLIB=$ac_ct_RANLIB
6379  fi
6380else
6381  RANLIB="$ac_cv_prog_RANLIB"
6382fi
6383
6384test -z "$RANLIB" && RANLIB=:
6385
6386
6387
6388
6389
6390
6391# Determine commands to create old-style static archives.
6392old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6393old_postinstall_cmds='chmod 644 $oldlib'
6394old_postuninstall_cmds=
6395
6396if test -n "$RANLIB"; then
6397  case $host_os in
6398  openbsd*)
6399    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6400    ;;
6401  *)
6402    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6403    ;;
6404  esac
6405  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6406fi
6407
6408case $host_os in
6409  darwin*)
6410    lock_old_archive_extraction=yes ;;
6411  *)
6412    lock_old_archive_extraction=no ;;
6413esac
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453# If no C compiler was specified, use CC.
6454LTCC=${LTCC-"$CC"}
6455
6456# If no C compiler flags were specified, use CFLAGS.
6457LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6458
6459# Allow CC to be a program name with arguments.
6460compiler=$CC
6461
6462
6463# Check for command to grab the raw symbol name followed by C symbol from nm.
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6465$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6466if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6467  $as_echo_n "(cached) " >&6
6468else
6469
6470# These are sane defaults that work on at least a few old systems.
6471# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6472
6473# Character class describing NM global symbol codes.
6474symcode='[BCDEGRST]'
6475
6476# Regexp to match symbols that can be accessed directly from C.
6477sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6478
6479# Define system-specific variables.
6480case $host_os in
6481aix*)
6482  symcode='[BCDT]'
6483  ;;
6484cygwin* | mingw* | pw32* | cegcc*)
6485  symcode='[ABCDGISTW]'
6486  ;;
6487hpux*)
6488  if test "$host_cpu" = ia64; then
6489    symcode='[ABCDEGRST]'
6490  fi
6491  ;;
6492irix* | nonstopux*)
6493  symcode='[BCDEGRST]'
6494  ;;
6495osf*)
6496  symcode='[BCDEGQRST]'
6497  ;;
6498solaris*)
6499  symcode='[BDRT]'
6500  ;;
6501sco3.2v5*)
6502  symcode='[DT]'
6503  ;;
6504sysv4.2uw2*)
6505  symcode='[DT]'
6506  ;;
6507sysv5* | sco5v6* | unixware* | OpenUNIX*)
6508  symcode='[ABDT]'
6509  ;;
6510sysv4)
6511  symcode='[DFNSTU]'
6512  ;;
6513esac
6514
6515# If we're using GNU nm, then use its standard symbol codes.
6516case `$NM -V 2>&1` in
6517*GNU* | *'with BFD'*)
6518  symcode='[ABCDGIRSTW]' ;;
6519esac
6520
6521# Transform an extracted symbol line into a proper C declaration.
6522# Some systems (esp. on ia64) link data and code symbols differently,
6523# so use this general approach.
6524lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6525
6526# Transform an extracted symbol line into symbol name and symbol address
6527lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6528lt_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'"
6529
6530# Handle CRLF in mingw tool chain
6531opt_cr=
6532case $build_os in
6533mingw*)
6534  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6535  ;;
6536esac
6537
6538# Try without a prefix underscore, then with it.
6539for ac_symprfx in "" "_"; do
6540
6541  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6542  symxfrm="\\1 $ac_symprfx\\2 \\2"
6543
6544  # Write the raw and C identifiers.
6545  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6546    # Fake it for dumpbin and say T for any non-static function
6547    # and D for any global variable.
6548    # Also find C++ and __fastcall symbols from MSVC++,
6549    # which start with @ or ?.
6550    lt_cv_sys_global_symbol_pipe="$AWK '"\
6551"     {last_section=section; section=\$ 3};"\
6552"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6553"     \$ 0!~/External *\|/{next};"\
6554"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6555"     {if(hide[section]) next};"\
6556"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6557"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6558"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6559"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6560"     ' prfx=^$ac_symprfx"
6561  else
6562    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6563  fi
6564  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6565
6566  # Check to see that the pipe works correctly.
6567  pipe_works=no
6568
6569  rm -f conftest*
6570  cat > conftest.$ac_ext <<_LT_EOF
6571#ifdef __cplusplus
6572extern "C" {
6573#endif
6574char nm_test_var;
6575void nm_test_func(void);
6576void nm_test_func(void){}
6577#ifdef __cplusplus
6578}
6579#endif
6580int main(){nm_test_var='a';nm_test_func();return(0);}
6581_LT_EOF
6582
6583  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6584  (eval $ac_compile) 2>&5
6585  ac_status=$?
6586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6587  test $ac_status = 0; }; then
6588    # Now try to grab the symbols.
6589    nlist=conftest.nm
6590    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6591  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6592  ac_status=$?
6593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6594  test $ac_status = 0; } && test -s "$nlist"; then
6595      # Try sorting and uniquifying the output.
6596      if sort "$nlist" | uniq > "$nlist"T; then
6597	mv -f "$nlist"T "$nlist"
6598      else
6599	rm -f "$nlist"T
6600      fi
6601
6602      # Make sure that we snagged all the symbols we need.
6603      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6604	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6605	  cat <<_LT_EOF > conftest.$ac_ext
6606/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6607#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6608/* DATA imports from DLLs on WIN32 con't be const, because runtime
6609   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6610# define LT_DLSYM_CONST
6611#elif defined(__osf__)
6612/* This system does not cope well with relocations in const data.  */
6613# define LT_DLSYM_CONST
6614#else
6615# define LT_DLSYM_CONST const
6616#endif
6617
6618#ifdef __cplusplus
6619extern "C" {
6620#endif
6621
6622_LT_EOF
6623	  # Now generate the symbol file.
6624	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6625
6626	  cat <<_LT_EOF >> conftest.$ac_ext
6627
6628/* The mapping between symbol names and symbols.  */
6629LT_DLSYM_CONST struct {
6630  const char *name;
6631  void       *address;
6632}
6633lt__PROGRAM__LTX_preloaded_symbols[] =
6634{
6635  { "@PROGRAM@", (void *) 0 },
6636_LT_EOF
6637	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6638	  cat <<\_LT_EOF >> conftest.$ac_ext
6639  {0, (void *) 0}
6640};
6641
6642/* This works around a problem in FreeBSD linker */
6643#ifdef FREEBSD_WORKAROUND
6644static const void *lt_preloaded_setup() {
6645  return lt__PROGRAM__LTX_preloaded_symbols;
6646}
6647#endif
6648
6649#ifdef __cplusplus
6650}
6651#endif
6652_LT_EOF
6653	  # Now try linking the two files.
6654	  mv conftest.$ac_objext conftstm.$ac_objext
6655	  lt_globsym_save_LIBS=$LIBS
6656	  lt_globsym_save_CFLAGS=$CFLAGS
6657	  LIBS="conftstm.$ac_objext"
6658	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6659	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6660  (eval $ac_link) 2>&5
6661  ac_status=$?
6662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6663  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6664	    pipe_works=yes
6665	  fi
6666	  LIBS=$lt_globsym_save_LIBS
6667	  CFLAGS=$lt_globsym_save_CFLAGS
6668	else
6669	  echo "cannot find nm_test_func in $nlist" >&5
6670	fi
6671      else
6672	echo "cannot find nm_test_var in $nlist" >&5
6673      fi
6674    else
6675      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6676    fi
6677  else
6678    echo "$progname: failed program was:" >&5
6679    cat conftest.$ac_ext >&5
6680  fi
6681  rm -rf conftest* conftst*
6682
6683  # Do not use the global_symbol_pipe unless it works.
6684  if test "$pipe_works" = yes; then
6685    break
6686  else
6687    lt_cv_sys_global_symbol_pipe=
6688  fi
6689done
6690
6691fi
6692
6693if test -z "$lt_cv_sys_global_symbol_pipe"; then
6694  lt_cv_sys_global_symbol_to_cdecl=
6695fi
6696if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6698$as_echo "failed" >&6; }
6699else
6700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6701$as_echo "ok" >&6; }
6702fi
6703
6704# Response file support.
6705if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6706  nm_file_list_spec='@'
6707elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6708  nm_file_list_spec='@'
6709fi
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6738$as_echo_n "checking for sysroot... " >&6; }
6739
6740# Check whether --with-sysroot was given.
6741if test "${with_sysroot+set}" = set; then :
6742  withval=$with_sysroot;
6743else
6744  with_sysroot=no
6745fi
6746
6747
6748lt_sysroot=
6749case ${with_sysroot} in #(
6750 yes)
6751   if test "$GCC" = yes; then
6752     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6753   fi
6754   ;; #(
6755 /*)
6756   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6757   ;; #(
6758 no|'')
6759   ;; #(
6760 *)
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6762$as_echo "${with_sysroot}" >&6; }
6763   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6764   ;;
6765esac
6766
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6768$as_echo "${lt_sysroot:-no}" >&6; }
6769
6770
6771
6772
6773
6774# Check whether --enable-libtool-lock was given.
6775if test "${enable_libtool_lock+set}" = set; then :
6776  enableval=$enable_libtool_lock;
6777fi
6778
6779test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6780
6781# Some flags need to be propagated to the compiler or linker for good
6782# libtool support.
6783case $host in
6784ia64-*-hpux*)
6785  # Find out which ABI we are using.
6786  echo 'int i;' > conftest.$ac_ext
6787  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788  (eval $ac_compile) 2>&5
6789  ac_status=$?
6790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791  test $ac_status = 0; }; then
6792    case `/usr/bin/file conftest.$ac_objext` in
6793      *ELF-32*)
6794	HPUX_IA64_MODE="32"
6795	;;
6796      *ELF-64*)
6797	HPUX_IA64_MODE="64"
6798	;;
6799    esac
6800  fi
6801  rm -rf conftest*
6802  ;;
6803*-*-irix6*)
6804  # Find out which ABI we are using.
6805  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6806  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807  (eval $ac_compile) 2>&5
6808  ac_status=$?
6809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810  test $ac_status = 0; }; then
6811    if test "$lt_cv_prog_gnu_ld" = yes; then
6812      case `/usr/bin/file conftest.$ac_objext` in
6813	*32-bit*)
6814	  LD="${LD-ld} -melf32bsmip"
6815	  ;;
6816	*N32*)
6817	  LD="${LD-ld} -melf32bmipn32"
6818	  ;;
6819	*64-bit*)
6820	  LD="${LD-ld} -melf64bmip"
6821	;;
6822      esac
6823    else
6824      case `/usr/bin/file conftest.$ac_objext` in
6825	*32-bit*)
6826	  LD="${LD-ld} -32"
6827	  ;;
6828	*N32*)
6829	  LD="${LD-ld} -n32"
6830	  ;;
6831	*64-bit*)
6832	  LD="${LD-ld} -64"
6833	  ;;
6834      esac
6835    fi
6836  fi
6837  rm -rf conftest*
6838  ;;
6839
6840x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6841s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6842  # Find out which ABI we are using.
6843  echo 'int i;' > conftest.$ac_ext
6844  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845  (eval $ac_compile) 2>&5
6846  ac_status=$?
6847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848  test $ac_status = 0; }; then
6849    case `/usr/bin/file conftest.o` in
6850      *32-bit*)
6851	case $host in
6852	  x86_64-*kfreebsd*-gnu)
6853	    LD="${LD-ld} -m elf_i386_fbsd"
6854	    ;;
6855	  x86_64-*linux*)
6856	    LD="${LD-ld} -m elf_i386"
6857	    ;;
6858	  ppc64-*linux*|powerpc64-*linux*)
6859	    LD="${LD-ld} -m elf32ppclinux"
6860	    ;;
6861	  s390x-*linux*)
6862	    LD="${LD-ld} -m elf_s390"
6863	    ;;
6864	  sparc64-*linux*)
6865	    LD="${LD-ld} -m elf32_sparc"
6866	    ;;
6867	esac
6868	;;
6869      *64-bit*)
6870	case $host in
6871	  x86_64-*kfreebsd*-gnu)
6872	    LD="${LD-ld} -m elf_x86_64_fbsd"
6873	    ;;
6874	  x86_64-*linux*)
6875	    LD="${LD-ld} -m elf_x86_64"
6876	    ;;
6877	  ppc*-*linux*|powerpc*-*linux*)
6878	    LD="${LD-ld} -m elf64ppc"
6879	    ;;
6880	  s390*-*linux*|s390*-*tpf*)
6881	    LD="${LD-ld} -m elf64_s390"
6882	    ;;
6883	  sparc*-*linux*)
6884	    LD="${LD-ld} -m elf64_sparc"
6885	    ;;
6886	esac
6887	;;
6888    esac
6889  fi
6890  rm -rf conftest*
6891  ;;
6892
6893*-*-sco3.2v5*)
6894  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6895  SAVE_CFLAGS="$CFLAGS"
6896  CFLAGS="$CFLAGS -belf"
6897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6898$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6899if ${lt_cv_cc_needs_belf+:} false; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  ac_ext=c
6903ac_cpp='$CPP $CPPFLAGS'
6904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906ac_compiler_gnu=$ac_cv_c_compiler_gnu
6907
6908     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909/* end confdefs.h.  */
6910
6911int
6912main ()
6913{
6914
6915  ;
6916  return 0;
6917}
6918_ACEOF
6919if ac_fn_c_try_link "$LINENO"; then :
6920  lt_cv_cc_needs_belf=yes
6921else
6922  lt_cv_cc_needs_belf=no
6923fi
6924rm -f core conftest.err conftest.$ac_objext \
6925    conftest$ac_exeext conftest.$ac_ext
6926     ac_ext=c
6927ac_cpp='$CPP $CPPFLAGS'
6928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930ac_compiler_gnu=$ac_cv_c_compiler_gnu
6931
6932fi
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6934$as_echo "$lt_cv_cc_needs_belf" >&6; }
6935  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6936    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6937    CFLAGS="$SAVE_CFLAGS"
6938  fi
6939  ;;
6940sparc*-*solaris*)
6941  # Find out which ABI we are using.
6942  echo 'int i;' > conftest.$ac_ext
6943  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6944  (eval $ac_compile) 2>&5
6945  ac_status=$?
6946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6947  test $ac_status = 0; }; then
6948    case `/usr/bin/file conftest.o` in
6949    *64-bit*)
6950      case $lt_cv_prog_gnu_ld in
6951      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6952      *)
6953	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6954	  LD="${LD-ld} -64"
6955	fi
6956	;;
6957      esac
6958      ;;
6959    esac
6960  fi
6961  rm -rf conftest*
6962  ;;
6963esac
6964
6965need_locks="$enable_libtool_lock"
6966
6967if test -n "$ac_tool_prefix"; then
6968  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6969set dummy ${ac_tool_prefix}mt; ac_word=$2
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971$as_echo_n "checking for $ac_word... " >&6; }
6972if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6973  $as_echo_n "(cached) " >&6
6974else
6975  if test -n "$MANIFEST_TOOL"; then
6976  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981  IFS=$as_save_IFS
6982  test -z "$as_dir" && as_dir=.
6983    for ac_exec_ext in '' $ac_executable_extensions; do
6984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987    break 2
6988  fi
6989done
6990  done
6991IFS=$as_save_IFS
6992
6993fi
6994fi
6995MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6996if test -n "$MANIFEST_TOOL"; then
6997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6998$as_echo "$MANIFEST_TOOL" >&6; }
6999else
7000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001$as_echo "no" >&6; }
7002fi
7003
7004
7005fi
7006if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7007  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7008  # Extract the first word of "mt", so it can be a program name with args.
7009set dummy mt; ac_word=$2
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011$as_echo_n "checking for $ac_word... " >&6; }
7012if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7013  $as_echo_n "(cached) " >&6
7014else
7015  if test -n "$ac_ct_MANIFEST_TOOL"; then
7016  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021  IFS=$as_save_IFS
7022  test -z "$as_dir" && as_dir=.
7023    for ac_exec_ext in '' $ac_executable_extensions; do
7024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027    break 2
7028  fi
7029done
7030  done
7031IFS=$as_save_IFS
7032
7033fi
7034fi
7035ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7036if test -n "$ac_ct_MANIFEST_TOOL"; then
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7038$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7039else
7040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041$as_echo "no" >&6; }
7042fi
7043
7044  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7045    MANIFEST_TOOL=":"
7046  else
7047    case $cross_compiling:$ac_tool_warned in
7048yes:)
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051ac_tool_warned=yes ;;
7052esac
7053    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7054  fi
7055else
7056  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7057fi
7058
7059test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7061$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7062if ${lt_cv_path_mainfest_tool+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  lt_cv_path_mainfest_tool=no
7066  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7067  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7068  cat conftest.err >&5
7069  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7070    lt_cv_path_mainfest_tool=yes
7071  fi
7072  rm -f conftest*
7073fi
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7075$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7076if test "x$lt_cv_path_mainfest_tool" != xyes; then
7077  MANIFEST_TOOL=:
7078fi
7079
7080
7081
7082
7083
7084
7085  case $host_os in
7086    rhapsody* | darwin*)
7087    if test -n "$ac_tool_prefix"; then
7088  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7089set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091$as_echo_n "checking for $ac_word... " >&6; }
7092if ${ac_cv_prog_DSYMUTIL+:} false; then :
7093  $as_echo_n "(cached) " >&6
7094else
7095  if test -n "$DSYMUTIL"; then
7096  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101  IFS=$as_save_IFS
7102  test -z "$as_dir" && as_dir=.
7103    for ac_exec_ext in '' $ac_executable_extensions; do
7104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7105    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107    break 2
7108  fi
7109done
7110  done
7111IFS=$as_save_IFS
7112
7113fi
7114fi
7115DSYMUTIL=$ac_cv_prog_DSYMUTIL
7116if test -n "$DSYMUTIL"; then
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7118$as_echo "$DSYMUTIL" >&6; }
7119else
7120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121$as_echo "no" >&6; }
7122fi
7123
7124
7125fi
7126if test -z "$ac_cv_prog_DSYMUTIL"; then
7127  ac_ct_DSYMUTIL=$DSYMUTIL
7128  # Extract the first word of "dsymutil", so it can be a program name with args.
7129set dummy dsymutil; ac_word=$2
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131$as_echo_n "checking for $ac_word... " >&6; }
7132if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  if test -n "$ac_ct_DSYMUTIL"; then
7136  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7137else
7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141  IFS=$as_save_IFS
7142  test -z "$as_dir" && as_dir=.
7143    for ac_exec_ext in '' $ac_executable_extensions; do
7144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147    break 2
7148  fi
7149done
7150  done
7151IFS=$as_save_IFS
7152
7153fi
7154fi
7155ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7156if test -n "$ac_ct_DSYMUTIL"; then
7157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7158$as_echo "$ac_ct_DSYMUTIL" >&6; }
7159else
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161$as_echo "no" >&6; }
7162fi
7163
7164  if test "x$ac_ct_DSYMUTIL" = x; then
7165    DSYMUTIL=":"
7166  else
7167    case $cross_compiling:$ac_tool_warned in
7168yes:)
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171ac_tool_warned=yes ;;
7172esac
7173    DSYMUTIL=$ac_ct_DSYMUTIL
7174  fi
7175else
7176  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7177fi
7178
7179    if test -n "$ac_tool_prefix"; then
7180  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7181set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183$as_echo_n "checking for $ac_word... " >&6; }
7184if ${ac_cv_prog_NMEDIT+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187  if test -n "$NMEDIT"; then
7188  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7189else
7190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193  IFS=$as_save_IFS
7194  test -z "$as_dir" && as_dir=.
7195    for ac_exec_ext in '' $ac_executable_extensions; do
7196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7197    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199    break 2
7200  fi
7201done
7202  done
7203IFS=$as_save_IFS
7204
7205fi
7206fi
7207NMEDIT=$ac_cv_prog_NMEDIT
7208if test -n "$NMEDIT"; then
7209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7210$as_echo "$NMEDIT" >&6; }
7211else
7212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213$as_echo "no" >&6; }
7214fi
7215
7216
7217fi
7218if test -z "$ac_cv_prog_NMEDIT"; then
7219  ac_ct_NMEDIT=$NMEDIT
7220  # Extract the first word of "nmedit", so it can be a program name with args.
7221set dummy nmedit; ac_word=$2
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223$as_echo_n "checking for $ac_word... " >&6; }
7224if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  if test -n "$ac_ct_NMEDIT"; then
7228  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233  IFS=$as_save_IFS
7234  test -z "$as_dir" && as_dir=.
7235    for ac_exec_ext in '' $ac_executable_extensions; do
7236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7237    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239    break 2
7240  fi
7241done
7242  done
7243IFS=$as_save_IFS
7244
7245fi
7246fi
7247ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7248if test -n "$ac_ct_NMEDIT"; then
7249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7250$as_echo "$ac_ct_NMEDIT" >&6; }
7251else
7252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253$as_echo "no" >&6; }
7254fi
7255
7256  if test "x$ac_ct_NMEDIT" = x; then
7257    NMEDIT=":"
7258  else
7259    case $cross_compiling:$ac_tool_warned in
7260yes:)
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263ac_tool_warned=yes ;;
7264esac
7265    NMEDIT=$ac_ct_NMEDIT
7266  fi
7267else
7268  NMEDIT="$ac_cv_prog_NMEDIT"
7269fi
7270
7271    if test -n "$ac_tool_prefix"; then
7272  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7273set dummy ${ac_tool_prefix}lipo; ac_word=$2
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275$as_echo_n "checking for $ac_word... " >&6; }
7276if ${ac_cv_prog_LIPO+:} false; then :
7277  $as_echo_n "(cached) " >&6
7278else
7279  if test -n "$LIPO"; then
7280  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7281else
7282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283for as_dir in $PATH
7284do
7285  IFS=$as_save_IFS
7286  test -z "$as_dir" && as_dir=.
7287    for ac_exec_ext in '' $ac_executable_extensions; do
7288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7289    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291    break 2
7292  fi
7293done
7294  done
7295IFS=$as_save_IFS
7296
7297fi
7298fi
7299LIPO=$ac_cv_prog_LIPO
7300if test -n "$LIPO"; then
7301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7302$as_echo "$LIPO" >&6; }
7303else
7304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305$as_echo "no" >&6; }
7306fi
7307
7308
7309fi
7310if test -z "$ac_cv_prog_LIPO"; then
7311  ac_ct_LIPO=$LIPO
7312  # Extract the first word of "lipo", so it can be a program name with args.
7313set dummy lipo; ac_word=$2
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315$as_echo_n "checking for $ac_word... " >&6; }
7316if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7317  $as_echo_n "(cached) " >&6
7318else
7319  if test -n "$ac_ct_LIPO"; then
7320  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7321else
7322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325  IFS=$as_save_IFS
7326  test -z "$as_dir" && as_dir=.
7327    for ac_exec_ext in '' $ac_executable_extensions; do
7328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329    ac_cv_prog_ac_ct_LIPO="lipo"
7330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331    break 2
7332  fi
7333done
7334  done
7335IFS=$as_save_IFS
7336
7337fi
7338fi
7339ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7340if test -n "$ac_ct_LIPO"; then
7341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7342$as_echo "$ac_ct_LIPO" >&6; }
7343else
7344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345$as_echo "no" >&6; }
7346fi
7347
7348  if test "x$ac_ct_LIPO" = x; then
7349    LIPO=":"
7350  else
7351    case $cross_compiling:$ac_tool_warned in
7352yes:)
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7355ac_tool_warned=yes ;;
7356esac
7357    LIPO=$ac_ct_LIPO
7358  fi
7359else
7360  LIPO="$ac_cv_prog_LIPO"
7361fi
7362
7363    if test -n "$ac_tool_prefix"; then
7364  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7365set dummy ${ac_tool_prefix}otool; ac_word=$2
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367$as_echo_n "checking for $ac_word... " >&6; }
7368if ${ac_cv_prog_OTOOL+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  if test -n "$OTOOL"; then
7372  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7373else
7374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH
7376do
7377  IFS=$as_save_IFS
7378  test -z "$as_dir" && as_dir=.
7379    for ac_exec_ext in '' $ac_executable_extensions; do
7380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383    break 2
7384  fi
7385done
7386  done
7387IFS=$as_save_IFS
7388
7389fi
7390fi
7391OTOOL=$ac_cv_prog_OTOOL
7392if test -n "$OTOOL"; then
7393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7394$as_echo "$OTOOL" >&6; }
7395else
7396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397$as_echo "no" >&6; }
7398fi
7399
7400
7401fi
7402if test -z "$ac_cv_prog_OTOOL"; then
7403  ac_ct_OTOOL=$OTOOL
7404  # Extract the first word of "otool", so it can be a program name with args.
7405set dummy otool; ac_word=$2
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
7408if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7409  $as_echo_n "(cached) " >&6
7410else
7411  if test -n "$ac_ct_OTOOL"; then
7412  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417  IFS=$as_save_IFS
7418  test -z "$as_dir" && as_dir=.
7419    for ac_exec_ext in '' $ac_executable_extensions; do
7420  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421    ac_cv_prog_ac_ct_OTOOL="otool"
7422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423    break 2
7424  fi
7425done
7426  done
7427IFS=$as_save_IFS
7428
7429fi
7430fi
7431ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7432if test -n "$ac_ct_OTOOL"; then
7433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7434$as_echo "$ac_ct_OTOOL" >&6; }
7435else
7436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
7438fi
7439
7440  if test "x$ac_ct_OTOOL" = x; then
7441    OTOOL=":"
7442  else
7443    case $cross_compiling:$ac_tool_warned in
7444yes:)
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447ac_tool_warned=yes ;;
7448esac
7449    OTOOL=$ac_ct_OTOOL
7450  fi
7451else
7452  OTOOL="$ac_cv_prog_OTOOL"
7453fi
7454
7455    if test -n "$ac_tool_prefix"; then
7456  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7457set dummy ${ac_tool_prefix}otool64; ac_word=$2
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459$as_echo_n "checking for $ac_word... " >&6; }
7460if ${ac_cv_prog_OTOOL64+:} false; then :
7461  $as_echo_n "(cached) " >&6
7462else
7463  if test -n "$OTOOL64"; then
7464  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7465else
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469  IFS=$as_save_IFS
7470  test -z "$as_dir" && as_dir=.
7471    for ac_exec_ext in '' $ac_executable_extensions; do
7472  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475    break 2
7476  fi
7477done
7478  done
7479IFS=$as_save_IFS
7480
7481fi
7482fi
7483OTOOL64=$ac_cv_prog_OTOOL64
7484if test -n "$OTOOL64"; then
7485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7486$as_echo "$OTOOL64" >&6; }
7487else
7488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489$as_echo "no" >&6; }
7490fi
7491
7492
7493fi
7494if test -z "$ac_cv_prog_OTOOL64"; then
7495  ac_ct_OTOOL64=$OTOOL64
7496  # Extract the first word of "otool64", so it can be a program name with args.
7497set dummy otool64; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7501  $as_echo_n "(cached) " >&6
7502else
7503  if test -n "$ac_ct_OTOOL64"; then
7504  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509  IFS=$as_save_IFS
7510  test -z "$as_dir" && as_dir=.
7511    for ac_exec_ext in '' $ac_executable_extensions; do
7512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513    ac_cv_prog_ac_ct_OTOOL64="otool64"
7514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515    break 2
7516  fi
7517done
7518  done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7524if test -n "$ac_ct_OTOOL64"; then
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7526$as_echo "$ac_ct_OTOOL64" >&6; }
7527else
7528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532  if test "x$ac_ct_OTOOL64" = x; then
7533    OTOOL64=":"
7534  else
7535    case $cross_compiling:$ac_tool_warned in
7536yes:)
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539ac_tool_warned=yes ;;
7540esac
7541    OTOOL64=$ac_ct_OTOOL64
7542  fi
7543else
7544  OTOOL64="$ac_cv_prog_OTOOL64"
7545fi
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7574$as_echo_n "checking for -single_module linker flag... " >&6; }
7575if ${lt_cv_apple_cc_single_mod+:} false; then :
7576  $as_echo_n "(cached) " >&6
7577else
7578  lt_cv_apple_cc_single_mod=no
7579      if test -z "${LT_MULTI_MODULE}"; then
7580	# By default we will add the -single_module flag. You can override
7581	# by either setting the environment variable LT_MULTI_MODULE
7582	# non-empty at configure time, or by adding -multi_module to the
7583	# link flags.
7584	rm -rf libconftest.dylib*
7585	echo "int foo(void){return 1;}" > conftest.c
7586	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7587-dynamiclib -Wl,-single_module conftest.c" >&5
7588	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7589	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7590        _lt_result=$?
7591	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7592	  lt_cv_apple_cc_single_mod=yes
7593	else
7594	  cat conftest.err >&5
7595	fi
7596	rm -rf libconftest.dylib*
7597	rm -f conftest.*
7598      fi
7599fi
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7601$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7602    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7603$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7604if ${lt_cv_ld_exported_symbols_list+:} false; then :
7605  $as_echo_n "(cached) " >&6
7606else
7607  lt_cv_ld_exported_symbols_list=no
7608      save_LDFLAGS=$LDFLAGS
7609      echo "_main" > conftest.sym
7610      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7611      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h.  */
7613
7614int
7615main ()
7616{
7617
7618  ;
7619  return 0;
7620}
7621_ACEOF
7622if ac_fn_c_try_link "$LINENO"; then :
7623  lt_cv_ld_exported_symbols_list=yes
7624else
7625  lt_cv_ld_exported_symbols_list=no
7626fi
7627rm -f core conftest.err conftest.$ac_objext \
7628    conftest$ac_exeext conftest.$ac_ext
7629	LDFLAGS="$save_LDFLAGS"
7630
7631fi
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7633$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7635$as_echo_n "checking for -force_load linker flag... " >&6; }
7636if ${lt_cv_ld_force_load+:} false; then :
7637  $as_echo_n "(cached) " >&6
7638else
7639  lt_cv_ld_force_load=no
7640      cat > conftest.c << _LT_EOF
7641int forced_loaded() { return 2;}
7642_LT_EOF
7643      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7644      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7645      echo "$AR cru libconftest.a conftest.o" >&5
7646      $AR cru libconftest.a conftest.o 2>&5
7647      echo "$RANLIB libconftest.a" >&5
7648      $RANLIB libconftest.a 2>&5
7649      cat > conftest.c << _LT_EOF
7650int main() { return 0;}
7651_LT_EOF
7652      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7653      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7654      _lt_result=$?
7655      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7656	lt_cv_ld_force_load=yes
7657      else
7658	cat conftest.err >&5
7659      fi
7660        rm -f conftest.err libconftest.a conftest conftest.c
7661        rm -rf conftest.dSYM
7662
7663fi
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7665$as_echo "$lt_cv_ld_force_load" >&6; }
7666    case $host_os in
7667    rhapsody* | darwin1.[012])
7668      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7669    darwin1.*)
7670      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7671    darwin*) # darwin 5.x on
7672      # if running on 10.5 or later, the deployment target defaults
7673      # to the OS version, if on x86, and 10.4, the deployment
7674      # target defaults to 10.4. Don't you love it?
7675      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7676	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7677	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7678	10.[012]*)
7679	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7680	10.*)
7681	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7682      esac
7683    ;;
7684  esac
7685    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7686      _lt_dar_single_mod='$single_module'
7687    fi
7688    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7689      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7690    else
7691      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7692    fi
7693    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7694      _lt_dsymutil='~$DSYMUTIL $lib || :'
7695    else
7696      _lt_dsymutil=
7697    fi
7698    ;;
7699  esac
7700
7701for ac_header in dlfcn.h
7702do :
7703  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7704"
7705if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7706  cat >>confdefs.h <<_ACEOF
7707#define HAVE_DLFCN_H 1
7708_ACEOF
7709
7710fi
7711
7712done
7713
7714
7715
7716
7717
7718# Set options
7719
7720
7721
7722        enable_dlopen=no
7723
7724
7725  enable_win32_dll=no
7726
7727
7728            # Check whether --enable-shared was given.
7729if test "${enable_shared+set}" = set; then :
7730  enableval=$enable_shared; p=${PACKAGE-default}
7731    case $enableval in
7732    yes) enable_shared=yes ;;
7733    no) enable_shared=no ;;
7734    *)
7735      enable_shared=no
7736      # Look at the argument we got.  We use all the common list separators.
7737      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7738      for pkg in $enableval; do
7739	IFS="$lt_save_ifs"
7740	if test "X$pkg" = "X$p"; then
7741	  enable_shared=yes
7742	fi
7743      done
7744      IFS="$lt_save_ifs"
7745      ;;
7746    esac
7747else
7748  enable_shared=yes
7749fi
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759  # Check whether --enable-static was given.
7760if test "${enable_static+set}" = set; then :
7761  enableval=$enable_static; p=${PACKAGE-default}
7762    case $enableval in
7763    yes) enable_static=yes ;;
7764    no) enable_static=no ;;
7765    *)
7766     enable_static=no
7767      # Look at the argument we got.  We use all the common list separators.
7768      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7769      for pkg in $enableval; do
7770	IFS="$lt_save_ifs"
7771	if test "X$pkg" = "X$p"; then
7772	  enable_static=yes
7773	fi
7774      done
7775      IFS="$lt_save_ifs"
7776      ;;
7777    esac
7778else
7779  enable_static=yes
7780fi
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791# Check whether --with-pic was given.
7792if test "${with_pic+set}" = set; then :
7793  withval=$with_pic; pic_mode="$withval"
7794else
7795  pic_mode=default
7796fi
7797
7798
7799test -z "$pic_mode" && pic_mode=default
7800
7801
7802
7803
7804
7805
7806
7807  # Check whether --enable-fast-install was given.
7808if test "${enable_fast_install+set}" = set; then :
7809  enableval=$enable_fast_install; p=${PACKAGE-default}
7810    case $enableval in
7811    yes) enable_fast_install=yes ;;
7812    no) enable_fast_install=no ;;
7813    *)
7814      enable_fast_install=no
7815      # Look at the argument we got.  We use all the common list separators.
7816      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7817      for pkg in $enableval; do
7818	IFS="$lt_save_ifs"
7819	if test "X$pkg" = "X$p"; then
7820	  enable_fast_install=yes
7821	fi
7822      done
7823      IFS="$lt_save_ifs"
7824      ;;
7825    esac
7826else
7827  enable_fast_install=yes
7828fi
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840# This can be used to rebuild libtool when needed
7841LIBTOOL_DEPS="$ltmain"
7842
7843# Always use our own libtool.
7844LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871test -z "$LN_S" && LN_S="ln -s"
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886if test -n "${ZSH_VERSION+set}" ; then
7887   setopt NO_GLOB_SUBST
7888fi
7889
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7891$as_echo_n "checking for objdir... " >&6; }
7892if ${lt_cv_objdir+:} false; then :
7893  $as_echo_n "(cached) " >&6
7894else
7895  rm -f .libs 2>/dev/null
7896mkdir .libs 2>/dev/null
7897if test -d .libs; then
7898  lt_cv_objdir=.libs
7899else
7900  # MS-DOS does not allow filenames that begin with a dot.
7901  lt_cv_objdir=_libs
7902fi
7903rmdir .libs 2>/dev/null
7904fi
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7906$as_echo "$lt_cv_objdir" >&6; }
7907objdir=$lt_cv_objdir
7908
7909
7910
7911
7912
7913cat >>confdefs.h <<_ACEOF
7914#define LT_OBJDIR "$lt_cv_objdir/"
7915_ACEOF
7916
7917
7918
7919
7920case $host_os in
7921aix3*)
7922  # AIX sometimes has problems with the GCC collect2 program.  For some
7923  # reason, if we set the COLLECT_NAMES environment variable, the problems
7924  # vanish in a puff of smoke.
7925  if test "X${COLLECT_NAMES+set}" != Xset; then
7926    COLLECT_NAMES=
7927    export COLLECT_NAMES
7928  fi
7929  ;;
7930esac
7931
7932# Global variables:
7933ofile=libtool
7934can_build_shared=yes
7935
7936# All known linkers require a `.a' archive for static linking (except MSVC,
7937# which needs '.lib').
7938libext=a
7939
7940with_gnu_ld="$lt_cv_prog_gnu_ld"
7941
7942old_CC="$CC"
7943old_CFLAGS="$CFLAGS"
7944
7945# Set sane defaults for various variables
7946test -z "$CC" && CC=cc
7947test -z "$LTCC" && LTCC=$CC
7948test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7949test -z "$LD" && LD=ld
7950test -z "$ac_objext" && ac_objext=o
7951
7952for cc_temp in $compiler""; do
7953  case $cc_temp in
7954    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7955    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7956    \-*) ;;
7957    *) break;;
7958  esac
7959done
7960cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7961
7962
7963# Only perform the check for file, if the check method requires it
7964test -z "$MAGIC_CMD" && MAGIC_CMD=file
7965case $deplibs_check_method in
7966file_magic*)
7967  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7969$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7970if ${lt_cv_path_MAGIC_CMD+:} false; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  case $MAGIC_CMD in
7974[\\/*] |  ?:[\\/]*)
7975  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7976  ;;
7977*)
7978  lt_save_MAGIC_CMD="$MAGIC_CMD"
7979  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7980  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7981  for ac_dir in $ac_dummy; do
7982    IFS="$lt_save_ifs"
7983    test -z "$ac_dir" && ac_dir=.
7984    if test -f $ac_dir/${ac_tool_prefix}file; then
7985      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7986      if test -n "$file_magic_test_file"; then
7987	case $deplibs_check_method in
7988	"file_magic "*)
7989	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7990	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7991	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7992	    $EGREP "$file_magic_regex" > /dev/null; then
7993	    :
7994	  else
7995	    cat <<_LT_EOF 1>&2
7996
7997*** Warning: the command libtool uses to detect shared libraries,
7998*** $file_magic_cmd, produces output that libtool cannot recognize.
7999*** The result is that libtool may fail to recognize shared libraries
8000*** as such.  This will affect the creation of libtool libraries that
8001*** depend on shared libraries, but programs linked with such libtool
8002*** libraries will work regardless of this problem.  Nevertheless, you
8003*** may want to report the problem to your system manager and/or to
8004*** bug-libtool@gnu.org
8005
8006_LT_EOF
8007	  fi ;;
8008	esac
8009      fi
8010      break
8011    fi
8012  done
8013  IFS="$lt_save_ifs"
8014  MAGIC_CMD="$lt_save_MAGIC_CMD"
8015  ;;
8016esac
8017fi
8018
8019MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8020if test -n "$MAGIC_CMD"; then
8021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8022$as_echo "$MAGIC_CMD" >&6; }
8023else
8024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025$as_echo "no" >&6; }
8026fi
8027
8028
8029
8030
8031
8032if test -z "$lt_cv_path_MAGIC_CMD"; then
8033  if test -n "$ac_tool_prefix"; then
8034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8035$as_echo_n "checking for file... " >&6; }
8036if ${lt_cv_path_MAGIC_CMD+:} false; then :
8037  $as_echo_n "(cached) " >&6
8038else
8039  case $MAGIC_CMD in
8040[\\/*] |  ?:[\\/]*)
8041  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8042  ;;
8043*)
8044  lt_save_MAGIC_CMD="$MAGIC_CMD"
8045  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8046  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8047  for ac_dir in $ac_dummy; do
8048    IFS="$lt_save_ifs"
8049    test -z "$ac_dir" && ac_dir=.
8050    if test -f $ac_dir/file; then
8051      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8052      if test -n "$file_magic_test_file"; then
8053	case $deplibs_check_method in
8054	"file_magic "*)
8055	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8056	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8057	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8058	    $EGREP "$file_magic_regex" > /dev/null; then
8059	    :
8060	  else
8061	    cat <<_LT_EOF 1>&2
8062
8063*** Warning: the command libtool uses to detect shared libraries,
8064*** $file_magic_cmd, produces output that libtool cannot recognize.
8065*** The result is that libtool may fail to recognize shared libraries
8066*** as such.  This will affect the creation of libtool libraries that
8067*** depend on shared libraries, but programs linked with such libtool
8068*** libraries will work regardless of this problem.  Nevertheless, you
8069*** may want to report the problem to your system manager and/or to
8070*** bug-libtool@gnu.org
8071
8072_LT_EOF
8073	  fi ;;
8074	esac
8075      fi
8076      break
8077    fi
8078  done
8079  IFS="$lt_save_ifs"
8080  MAGIC_CMD="$lt_save_MAGIC_CMD"
8081  ;;
8082esac
8083fi
8084
8085MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8086if test -n "$MAGIC_CMD"; then
8087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8088$as_echo "$MAGIC_CMD" >&6; }
8089else
8090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091$as_echo "no" >&6; }
8092fi
8093
8094
8095  else
8096    MAGIC_CMD=:
8097  fi
8098fi
8099
8100  fi
8101  ;;
8102esac
8103
8104# Use C for the default configuration in the libtool script
8105
8106lt_save_CC="$CC"
8107ac_ext=c
8108ac_cpp='$CPP $CPPFLAGS'
8109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112
8113
8114# Source file extension for C test sources.
8115ac_ext=c
8116
8117# Object file extension for compiled C test sources.
8118objext=o
8119objext=$objext
8120
8121# Code to be used in simple compile tests
8122lt_simple_compile_test_code="int some_variable = 0;"
8123
8124# Code to be used in simple link tests
8125lt_simple_link_test_code='int main(){return(0);}'
8126
8127
8128
8129
8130
8131
8132
8133# If no C compiler was specified, use CC.
8134LTCC=${LTCC-"$CC"}
8135
8136# If no C compiler flags were specified, use CFLAGS.
8137LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8138
8139# Allow CC to be a program name with arguments.
8140compiler=$CC
8141
8142# Save the default compiler, since it gets overwritten when the other
8143# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8144compiler_DEFAULT=$CC
8145
8146# save warnings/boilerplate of simple test code
8147ac_outfile=conftest.$ac_objext
8148echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8149eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8150_lt_compiler_boilerplate=`cat conftest.err`
8151$RM conftest*
8152
8153ac_outfile=conftest.$ac_objext
8154echo "$lt_simple_link_test_code" >conftest.$ac_ext
8155eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8156_lt_linker_boilerplate=`cat conftest.err`
8157$RM -r conftest*
8158
8159
8160if test -n "$compiler"; then
8161
8162lt_prog_compiler_no_builtin_flag=
8163
8164if test "$GCC" = yes; then
8165  case $cc_basename in
8166  nvcc*)
8167    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8168  *)
8169    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8170  esac
8171
8172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8173$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8174if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  lt_cv_prog_compiler_rtti_exceptions=no
8178   ac_outfile=conftest.$ac_objext
8179   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8180   lt_compiler_flag="-fno-rtti -fno-exceptions"
8181   # Insert the option either (1) after the last *FLAGS variable, or
8182   # (2) before a word containing "conftest.", or (3) at the end.
8183   # Note that $ac_compile itself does not contain backslashes and begins
8184   # with a dollar sign (not a hyphen), so the echo should work correctly.
8185   # The option is referenced via a variable to avoid confusing sed.
8186   lt_compile=`echo "$ac_compile" | $SED \
8187   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8188   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8189   -e 's:$: $lt_compiler_flag:'`
8190   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8191   (eval "$lt_compile" 2>conftest.err)
8192   ac_status=$?
8193   cat conftest.err >&5
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   if (exit $ac_status) && test -s "$ac_outfile"; then
8196     # The compiler can only warn and ignore the option if not recognized
8197     # So say no if there are warnings other than the usual output.
8198     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8199     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8200     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8201       lt_cv_prog_compiler_rtti_exceptions=yes
8202     fi
8203   fi
8204   $RM conftest*
8205
8206fi
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8208$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8209
8210if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8211    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8212else
8213    :
8214fi
8215
8216fi
8217
8218
8219
8220
8221
8222
8223  lt_prog_compiler_wl=
8224lt_prog_compiler_pic=
8225lt_prog_compiler_static=
8226
8227
8228  if test "$GCC" = yes; then
8229    lt_prog_compiler_wl='-Wl,'
8230    lt_prog_compiler_static='-static'
8231
8232    case $host_os in
8233      aix*)
8234      # All AIX code is PIC.
8235      if test "$host_cpu" = ia64; then
8236	# AIX 5 now supports IA64 processor
8237	lt_prog_compiler_static='-Bstatic'
8238      fi
8239      ;;
8240
8241    amigaos*)
8242      case $host_cpu in
8243      powerpc)
8244            # see comment about AmigaOS4 .so support
8245            lt_prog_compiler_pic='-fPIC'
8246        ;;
8247      m68k)
8248            # FIXME: we need at least 68020 code to build shared libraries, but
8249            # adding the `-m68020' flag to GCC prevents building anything better,
8250            # like `-m68040'.
8251            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8252        ;;
8253      esac
8254      ;;
8255
8256    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8257      # PIC is the default for these OSes.
8258      ;;
8259
8260    mingw* | cygwin* | pw32* | os2* | cegcc*)
8261      # This hack is so that the source file can tell whether it is being
8262      # built for inclusion in a dll (and should export symbols for example).
8263      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8264      # (--disable-auto-import) libraries
8265      lt_prog_compiler_pic='-DDLL_EXPORT'
8266      ;;
8267
8268    darwin* | rhapsody*)
8269      # PIC is the default on this platform
8270      # Common symbols not allowed in MH_DYLIB files
8271      lt_prog_compiler_pic='-fno-common'
8272      ;;
8273
8274    haiku*)
8275      # PIC is the default for Haiku.
8276      # The "-static" flag exists, but is broken.
8277      lt_prog_compiler_static=
8278      ;;
8279
8280    hpux*)
8281      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8282      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8283      # sets the default TLS model and affects inlining.
8284      case $host_cpu in
8285      hppa*64*)
8286	# +Z the default
8287	;;
8288      *)
8289	lt_prog_compiler_pic='-fPIC'
8290	;;
8291      esac
8292      ;;
8293
8294    interix[3-9]*)
8295      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8296      # Instead, we relocate shared libraries at runtime.
8297      ;;
8298
8299    msdosdjgpp*)
8300      # Just because we use GCC doesn't mean we suddenly get shared libraries
8301      # on systems that don't support them.
8302      lt_prog_compiler_can_build_shared=no
8303      enable_shared=no
8304      ;;
8305
8306    *nto* | *qnx*)
8307      # QNX uses GNU C++, but need to define -shared option too, otherwise
8308      # it will coredump.
8309      lt_prog_compiler_pic='-fPIC -shared'
8310      ;;
8311
8312    sysv4*MP*)
8313      if test -d /usr/nec; then
8314	lt_prog_compiler_pic=-Kconform_pic
8315      fi
8316      ;;
8317
8318    *)
8319      lt_prog_compiler_pic='-fPIC'
8320      ;;
8321    esac
8322
8323    case $cc_basename in
8324    nvcc*) # Cuda Compiler Driver 2.2
8325      lt_prog_compiler_wl='-Xlinker '
8326      lt_prog_compiler_pic='-Xcompiler -fPIC'
8327      ;;
8328    esac
8329  else
8330    # PORTME Check for flag to pass linker flags through the system compiler.
8331    case $host_os in
8332    aix*)
8333      lt_prog_compiler_wl='-Wl,'
8334      if test "$host_cpu" = ia64; then
8335	# AIX 5 now supports IA64 processor
8336	lt_prog_compiler_static='-Bstatic'
8337      else
8338	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8339      fi
8340      ;;
8341
8342    mingw* | cygwin* | pw32* | os2* | cegcc*)
8343      # This hack is so that the source file can tell whether it is being
8344      # built for inclusion in a dll (and should export symbols for example).
8345      lt_prog_compiler_pic='-DDLL_EXPORT'
8346      ;;
8347
8348    hpux9* | hpux10* | hpux11*)
8349      lt_prog_compiler_wl='-Wl,'
8350      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8351      # not for PA HP-UX.
8352      case $host_cpu in
8353      hppa*64*|ia64*)
8354	# +Z the default
8355	;;
8356      *)
8357	lt_prog_compiler_pic='+Z'
8358	;;
8359      esac
8360      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8361      lt_prog_compiler_static='${wl}-a ${wl}archive'
8362      ;;
8363
8364    irix5* | irix6* | nonstopux*)
8365      lt_prog_compiler_wl='-Wl,'
8366      # PIC (with -KPIC) is the default.
8367      lt_prog_compiler_static='-non_shared'
8368      ;;
8369
8370    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8371      case $cc_basename in
8372      # old Intel for x86_64 which still supported -KPIC.
8373      ecc*)
8374	lt_prog_compiler_wl='-Wl,'
8375	lt_prog_compiler_pic='-KPIC'
8376	lt_prog_compiler_static='-static'
8377        ;;
8378      # icc used to be incompatible with GCC.
8379      # ICC 10 doesn't accept -KPIC any more.
8380      icc* | ifort*)
8381	lt_prog_compiler_wl='-Wl,'
8382	lt_prog_compiler_pic='-fPIC'
8383	lt_prog_compiler_static='-static'
8384        ;;
8385      # Lahey Fortran 8.1.
8386      lf95*)
8387	lt_prog_compiler_wl='-Wl,'
8388	lt_prog_compiler_pic='--shared'
8389	lt_prog_compiler_static='--static'
8390	;;
8391      nagfor*)
8392	# NAG Fortran compiler
8393	lt_prog_compiler_wl='-Wl,-Wl,,'
8394	lt_prog_compiler_pic='-PIC'
8395	lt_prog_compiler_static='-Bstatic'
8396	;;
8397      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8398        # Portland Group compilers (*not* the Pentium gcc compiler,
8399	# which looks to be a dead project)
8400	lt_prog_compiler_wl='-Wl,'
8401	lt_prog_compiler_pic='-fpic'
8402	lt_prog_compiler_static='-Bstatic'
8403        ;;
8404      ccc*)
8405        lt_prog_compiler_wl='-Wl,'
8406        # All Alpha code is PIC.
8407        lt_prog_compiler_static='-non_shared'
8408        ;;
8409      xl* | bgxl* | bgf* | mpixl*)
8410	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8411	lt_prog_compiler_wl='-Wl,'
8412	lt_prog_compiler_pic='-qpic'
8413	lt_prog_compiler_static='-qstaticlink'
8414	;;
8415      *)
8416	case `$CC -V 2>&1 | sed 5q` in
8417	*Sun\ F* | *Sun*Fortran*)
8418	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8419	  lt_prog_compiler_pic='-KPIC'
8420	  lt_prog_compiler_static='-Bstatic'
8421	  lt_prog_compiler_wl=''
8422	  ;;
8423	*Sun\ C*)
8424	  # Sun C 5.9
8425	  lt_prog_compiler_pic='-KPIC'
8426	  lt_prog_compiler_static='-Bstatic'
8427	  lt_prog_compiler_wl='-Wl,'
8428	  ;;
8429	esac
8430	;;
8431      esac
8432      ;;
8433
8434    newsos6)
8435      lt_prog_compiler_pic='-KPIC'
8436      lt_prog_compiler_static='-Bstatic'
8437      ;;
8438
8439    *nto* | *qnx*)
8440      # QNX uses GNU C++, but need to define -shared option too, otherwise
8441      # it will coredump.
8442      lt_prog_compiler_pic='-fPIC -shared'
8443      ;;
8444
8445    osf3* | osf4* | osf5*)
8446      lt_prog_compiler_wl='-Wl,'
8447      # All OSF/1 code is PIC.
8448      lt_prog_compiler_static='-non_shared'
8449      ;;
8450
8451    rdos*)
8452      lt_prog_compiler_static='-non_shared'
8453      ;;
8454
8455    solaris*)
8456      lt_prog_compiler_pic='-KPIC'
8457      lt_prog_compiler_static='-Bstatic'
8458      case $cc_basename in
8459      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8460	lt_prog_compiler_wl='-Qoption ld ';;
8461      *)
8462	lt_prog_compiler_wl='-Wl,';;
8463      esac
8464      ;;
8465
8466    sunos4*)
8467      lt_prog_compiler_wl='-Qoption ld '
8468      lt_prog_compiler_pic='-PIC'
8469      lt_prog_compiler_static='-Bstatic'
8470      ;;
8471
8472    sysv4 | sysv4.2uw2* | sysv4.3*)
8473      lt_prog_compiler_wl='-Wl,'
8474      lt_prog_compiler_pic='-KPIC'
8475      lt_prog_compiler_static='-Bstatic'
8476      ;;
8477
8478    sysv4*MP*)
8479      if test -d /usr/nec ;then
8480	lt_prog_compiler_pic='-Kconform_pic'
8481	lt_prog_compiler_static='-Bstatic'
8482      fi
8483      ;;
8484
8485    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8486      lt_prog_compiler_wl='-Wl,'
8487      lt_prog_compiler_pic='-KPIC'
8488      lt_prog_compiler_static='-Bstatic'
8489      ;;
8490
8491    unicos*)
8492      lt_prog_compiler_wl='-Wl,'
8493      lt_prog_compiler_can_build_shared=no
8494      ;;
8495
8496    uts4*)
8497      lt_prog_compiler_pic='-pic'
8498      lt_prog_compiler_static='-Bstatic'
8499      ;;
8500
8501    *)
8502      lt_prog_compiler_can_build_shared=no
8503      ;;
8504    esac
8505  fi
8506
8507case $host_os in
8508  # For platforms which do not support PIC, -DPIC is meaningless:
8509  *djgpp*)
8510    lt_prog_compiler_pic=
8511    ;;
8512  *)
8513    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8514    ;;
8515esac
8516
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8518$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8519if ${lt_cv_prog_compiler_pic+:} false; then :
8520  $as_echo_n "(cached) " >&6
8521else
8522  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8523fi
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8525$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8526lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8527
8528#
8529# Check to make sure the PIC flag actually works.
8530#
8531if test -n "$lt_prog_compiler_pic"; then
8532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8533$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8534if ${lt_cv_prog_compiler_pic_works+:} false; then :
8535  $as_echo_n "(cached) " >&6
8536else
8537  lt_cv_prog_compiler_pic_works=no
8538   ac_outfile=conftest.$ac_objext
8539   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8540   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8541   # Insert the option either (1) after the last *FLAGS variable, or
8542   # (2) before a word containing "conftest.", or (3) at the end.
8543   # Note that $ac_compile itself does not contain backslashes and begins
8544   # with a dollar sign (not a hyphen), so the echo should work correctly.
8545   # The option is referenced via a variable to avoid confusing sed.
8546   lt_compile=`echo "$ac_compile" | $SED \
8547   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8548   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8549   -e 's:$: $lt_compiler_flag:'`
8550   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8551   (eval "$lt_compile" 2>conftest.err)
8552   ac_status=$?
8553   cat conftest.err >&5
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   if (exit $ac_status) && test -s "$ac_outfile"; then
8556     # The compiler can only warn and ignore the option if not recognized
8557     # So say no if there are warnings other than the usual output.
8558     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8559     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8561       lt_cv_prog_compiler_pic_works=yes
8562     fi
8563   fi
8564   $RM conftest*
8565
8566fi
8567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8568$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8569
8570if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8571    case $lt_prog_compiler_pic in
8572     "" | " "*) ;;
8573     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8574     esac
8575else
8576    lt_prog_compiler_pic=
8577     lt_prog_compiler_can_build_shared=no
8578fi
8579
8580fi
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592#
8593# Check to make sure the static flag actually works.
8594#
8595wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8597$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8598if ${lt_cv_prog_compiler_static_works+:} false; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  lt_cv_prog_compiler_static_works=no
8602   save_LDFLAGS="$LDFLAGS"
8603   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8604   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8605   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8606     # The linker can only warn and ignore the option if not recognized
8607     # So say no if there are warnings
8608     if test -s conftest.err; then
8609       # Append any errors to the config.log.
8610       cat conftest.err 1>&5
8611       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8612       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8613       if diff conftest.exp conftest.er2 >/dev/null; then
8614         lt_cv_prog_compiler_static_works=yes
8615       fi
8616     else
8617       lt_cv_prog_compiler_static_works=yes
8618     fi
8619   fi
8620   $RM -r conftest*
8621   LDFLAGS="$save_LDFLAGS"
8622
8623fi
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8625$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8626
8627if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8628    :
8629else
8630    lt_prog_compiler_static=
8631fi
8632
8633
8634
8635
8636
8637
8638
8639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8640$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8641if ${lt_cv_prog_compiler_c_o+:} false; then :
8642  $as_echo_n "(cached) " >&6
8643else
8644  lt_cv_prog_compiler_c_o=no
8645   $RM -r conftest 2>/dev/null
8646   mkdir conftest
8647   cd conftest
8648   mkdir out
8649   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8650
8651   lt_compiler_flag="-o out/conftest2.$ac_objext"
8652   # Insert the option either (1) after the last *FLAGS variable, or
8653   # (2) before a word containing "conftest.", or (3) at the end.
8654   # Note that $ac_compile itself does not contain backslashes and begins
8655   # with a dollar sign (not a hyphen), so the echo should work correctly.
8656   lt_compile=`echo "$ac_compile" | $SED \
8657   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8658   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8659   -e 's:$: $lt_compiler_flag:'`
8660   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8661   (eval "$lt_compile" 2>out/conftest.err)
8662   ac_status=$?
8663   cat out/conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8666   then
8667     # The compiler can only warn and ignore the option if not recognized
8668     # So say no if there are warnings
8669     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8670     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8671     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8672       lt_cv_prog_compiler_c_o=yes
8673     fi
8674   fi
8675   chmod u+w . 2>&5
8676   $RM conftest*
8677   # SGI C++ compiler will create directory out/ii_files/ for
8678   # template instantiation
8679   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8680   $RM out/* && rmdir out
8681   cd ..
8682   $RM -r conftest
8683   $RM conftest*
8684
8685fi
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8687$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8688
8689
8690
8691
8692
8693
8694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8695$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8696if ${lt_cv_prog_compiler_c_o+:} false; then :
8697  $as_echo_n "(cached) " >&6
8698else
8699  lt_cv_prog_compiler_c_o=no
8700   $RM -r conftest 2>/dev/null
8701   mkdir conftest
8702   cd conftest
8703   mkdir out
8704   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8705
8706   lt_compiler_flag="-o out/conftest2.$ac_objext"
8707   # Insert the option either (1) after the last *FLAGS variable, or
8708   # (2) before a word containing "conftest.", or (3) at the end.
8709   # Note that $ac_compile itself does not contain backslashes and begins
8710   # with a dollar sign (not a hyphen), so the echo should work correctly.
8711   lt_compile=`echo "$ac_compile" | $SED \
8712   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8713   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8714   -e 's:$: $lt_compiler_flag:'`
8715   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8716   (eval "$lt_compile" 2>out/conftest.err)
8717   ac_status=$?
8718   cat out/conftest.err >&5
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8721   then
8722     # The compiler can only warn and ignore the option if not recognized
8723     # So say no if there are warnings
8724     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8725     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8726     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8727       lt_cv_prog_compiler_c_o=yes
8728     fi
8729   fi
8730   chmod u+w . 2>&5
8731   $RM conftest*
8732   # SGI C++ compiler will create directory out/ii_files/ for
8733   # template instantiation
8734   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8735   $RM out/* && rmdir out
8736   cd ..
8737   $RM -r conftest
8738   $RM conftest*
8739
8740fi
8741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8742$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8743
8744
8745
8746
8747hard_links="nottested"
8748if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8749  # do not overwrite the value of need_locks provided by the user
8750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8751$as_echo_n "checking if we can lock with hard links... " >&6; }
8752  hard_links=yes
8753  $RM conftest*
8754  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8755  touch conftest.a
8756  ln conftest.a conftest.b 2>&5 || hard_links=no
8757  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8759$as_echo "$hard_links" >&6; }
8760  if test "$hard_links" = no; then
8761    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8762$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8763    need_locks=warn
8764  fi
8765else
8766  need_locks=no
8767fi
8768
8769
8770
8771
8772
8773
8774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8775$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8776
8777  runpath_var=
8778  allow_undefined_flag=
8779  always_export_symbols=no
8780  archive_cmds=
8781  archive_expsym_cmds=
8782  compiler_needs_object=no
8783  enable_shared_with_static_runtimes=no
8784  export_dynamic_flag_spec=
8785  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8786  hardcode_automatic=no
8787  hardcode_direct=no
8788  hardcode_direct_absolute=no
8789  hardcode_libdir_flag_spec=
8790  hardcode_libdir_flag_spec_ld=
8791  hardcode_libdir_separator=
8792  hardcode_minus_L=no
8793  hardcode_shlibpath_var=unsupported
8794  inherit_rpath=no
8795  link_all_deplibs=unknown
8796  module_cmds=
8797  module_expsym_cmds=
8798  old_archive_from_new_cmds=
8799  old_archive_from_expsyms_cmds=
8800  thread_safe_flag_spec=
8801  whole_archive_flag_spec=
8802  # include_expsyms should be a list of space-separated symbols to be *always*
8803  # included in the symbol list
8804  include_expsyms=
8805  # exclude_expsyms can be an extended regexp of symbols to exclude
8806  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8807  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8808  # as well as any symbol that contains `d'.
8809  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8810  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8811  # platforms (ab)use it in PIC code, but their linkers get confused if
8812  # the symbol is explicitly referenced.  Since portable code cannot
8813  # rely on this symbol name, it's probably fine to never include it in
8814  # preloaded symbol tables.
8815  # Exclude shared library initialization/finalization symbols.
8816  extract_expsyms_cmds=
8817
8818  case $host_os in
8819  cygwin* | mingw* | pw32* | cegcc*)
8820    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8821    # When not using gcc, we currently assume that we are using
8822    # Microsoft Visual C++.
8823    if test "$GCC" != yes; then
8824      with_gnu_ld=no
8825    fi
8826    ;;
8827  interix*)
8828    # we just hope/assume this is gcc and not c89 (= MSVC++)
8829    with_gnu_ld=yes
8830    ;;
8831  openbsd*)
8832    with_gnu_ld=no
8833    ;;
8834  esac
8835
8836  ld_shlibs=yes
8837
8838  # On some targets, GNU ld is compatible enough with the native linker
8839  # that we're better off using the native interface for both.
8840  lt_use_gnu_ld_interface=no
8841  if test "$with_gnu_ld" = yes; then
8842    case $host_os in
8843      aix*)
8844	# The AIX port of GNU ld has always aspired to compatibility
8845	# with the native linker.  However, as the warning in the GNU ld
8846	# block says, versions before 2.19.5* couldn't really create working
8847	# shared libraries, regardless of the interface used.
8848	case `$LD -v 2>&1` in
8849	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8850	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8851	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8852	  *)
8853	    lt_use_gnu_ld_interface=yes
8854	    ;;
8855	esac
8856	;;
8857      *)
8858	lt_use_gnu_ld_interface=yes
8859	;;
8860    esac
8861  fi
8862
8863  if test "$lt_use_gnu_ld_interface" = yes; then
8864    # If archive_cmds runs LD, not CC, wlarc should be empty
8865    wlarc='${wl}'
8866
8867    # Set some defaults for GNU ld with shared library support. These
8868    # are reset later if shared libraries are not supported. Putting them
8869    # here allows them to be overridden if necessary.
8870    runpath_var=LD_RUN_PATH
8871    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8872    export_dynamic_flag_spec='${wl}--export-dynamic'
8873    # ancient GNU ld didn't support --whole-archive et. al.
8874    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8875      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8876    else
8877      whole_archive_flag_spec=
8878    fi
8879    supports_anon_versioning=no
8880    case `$LD -v 2>&1` in
8881      *GNU\ gold*) supports_anon_versioning=yes ;;
8882      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8883      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8884      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8885      *\ 2.11.*) ;; # other 2.11 versions
8886      *) supports_anon_versioning=yes ;;
8887    esac
8888
8889    # See if GNU ld supports shared libraries.
8890    case $host_os in
8891    aix[3-9]*)
8892      # On AIX/PPC, the GNU linker is very broken
8893      if test "$host_cpu" != ia64; then
8894	ld_shlibs=no
8895	cat <<_LT_EOF 1>&2
8896
8897*** Warning: the GNU linker, at least up to release 2.19, is reported
8898*** to be unable to reliably create shared libraries on AIX.
8899*** Therefore, libtool is disabling shared libraries support.  If you
8900*** really care for shared libraries, you may want to install binutils
8901*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8902*** You will then need to restart the configuration process.
8903
8904_LT_EOF
8905      fi
8906      ;;
8907
8908    amigaos*)
8909      case $host_cpu in
8910      powerpc)
8911            # see comment about AmigaOS4 .so support
8912            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8913            archive_expsym_cmds=''
8914        ;;
8915      m68k)
8916            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)'
8917            hardcode_libdir_flag_spec='-L$libdir'
8918            hardcode_minus_L=yes
8919        ;;
8920      esac
8921      ;;
8922
8923    beos*)
8924      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8925	allow_undefined_flag=unsupported
8926	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8927	# support --undefined.  This deserves some investigation.  FIXME
8928	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929      else
8930	ld_shlibs=no
8931      fi
8932      ;;
8933
8934    cygwin* | mingw* | pw32* | cegcc*)
8935      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8936      # as there is no search path for DLLs.
8937      hardcode_libdir_flag_spec='-L$libdir'
8938      export_dynamic_flag_spec='${wl}--export-all-symbols'
8939      allow_undefined_flag=unsupported
8940      always_export_symbols=no
8941      enable_shared_with_static_runtimes=yes
8942      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'
8943      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8944
8945      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8946        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8947	# If the export-symbols file already is a .def file (1st line
8948	# is EXPORTS), use it as is; otherwise, prepend...
8949	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8950	  cp $export_symbols $output_objdir/$soname.def;
8951	else
8952	  echo EXPORTS > $output_objdir/$soname.def;
8953	  cat $export_symbols >> $output_objdir/$soname.def;
8954	fi~
8955	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8956      else
8957	ld_shlibs=no
8958      fi
8959      ;;
8960
8961    haiku*)
8962      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963      link_all_deplibs=yes
8964      ;;
8965
8966    interix[3-9]*)
8967      hardcode_direct=no
8968      hardcode_shlibpath_var=no
8969      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8970      export_dynamic_flag_spec='${wl}-E'
8971      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8972      # Instead, shared libraries are loaded at an image base (0x10000000 by
8973      # default) and relocated if they conflict, which is a slow very memory
8974      # consuming and fragmenting process.  To avoid this, we pick a random,
8975      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8976      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8977      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8978      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'
8979      ;;
8980
8981    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8982      tmp_diet=no
8983      if test "$host_os" = linux-dietlibc; then
8984	case $cc_basename in
8985	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8986	esac
8987      fi
8988      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8989	 && test "$tmp_diet" = no
8990      then
8991	tmp_addflag=' $pic_flag'
8992	tmp_sharedflag='-shared'
8993	case $cc_basename,$host_cpu in
8994        pgcc*)				# Portland Group C compiler
8995	  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'
8996	  tmp_addflag=' $pic_flag'
8997	  ;;
8998	pgf77* | pgf90* | pgf95* | pgfortran*)
8999					# Portland Group f77 and f90 compilers
9000	  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'
9001	  tmp_addflag=' $pic_flag -Mnomain' ;;
9002	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9003	  tmp_addflag=' -i_dynamic' ;;
9004	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9005	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9006	ifc* | ifort*)			# Intel Fortran compiler
9007	  tmp_addflag=' -nofor_main' ;;
9008	lf95*)				# Lahey Fortran 8.1
9009	  whole_archive_flag_spec=
9010	  tmp_sharedflag='--shared' ;;
9011	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9012	  tmp_sharedflag='-qmkshrobj'
9013	  tmp_addflag= ;;
9014	nvcc*)	# Cuda Compiler Driver 2.2
9015	  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'
9016	  compiler_needs_object=yes
9017	  ;;
9018	esac
9019	case `$CC -V 2>&1 | sed 5q` in
9020	*Sun\ C*)			# Sun C 5.9
9021	  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'
9022	  compiler_needs_object=yes
9023	  tmp_sharedflag='-G' ;;
9024	*Sun\ F*)			# Sun Fortran 8.3
9025	  tmp_sharedflag='-G' ;;
9026	esac
9027	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028
9029        if test "x$supports_anon_versioning" = xyes; then
9030          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9031	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9032	    echo "local: *; };" >> $output_objdir/$libname.ver~
9033	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9034        fi
9035
9036	case $cc_basename in
9037	xlf* | bgf* | bgxlf* | mpixlf*)
9038	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9039	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9040	  hardcode_libdir_flag_spec=
9041	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9042	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9043	  if test "x$supports_anon_versioning" = xyes; then
9044	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9045	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9046	      echo "local: *; };" >> $output_objdir/$libname.ver~
9047	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9048	  fi
9049	  ;;
9050	esac
9051      else
9052        ld_shlibs=no
9053      fi
9054      ;;
9055
9056    netbsd*)
9057      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9058	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9059	wlarc=
9060      else
9061	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9062	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9063      fi
9064      ;;
9065
9066    solaris*)
9067      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9068	ld_shlibs=no
9069	cat <<_LT_EOF 1>&2
9070
9071*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9072*** create shared libraries on Solaris systems.  Therefore, libtool
9073*** is disabling shared libraries support.  We urge you to upgrade GNU
9074*** binutils to release 2.9.1 or newer.  Another option is to modify
9075*** your PATH or compiler configuration so that the native linker is
9076*** used, and then restart.
9077
9078_LT_EOF
9079      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9080	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082      else
9083	ld_shlibs=no
9084      fi
9085      ;;
9086
9087    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9088      case `$LD -v 2>&1` in
9089        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9090	ld_shlibs=no
9091	cat <<_LT_EOF 1>&2
9092
9093*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9094*** reliably create shared libraries on SCO systems.  Therefore, libtool
9095*** is disabling shared libraries support.  We urge you to upgrade GNU
9096*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9097*** your PATH or compiler configuration so that the native linker is
9098*** used, and then restart.
9099
9100_LT_EOF
9101	;;
9102	*)
9103	  # For security reasons, it is highly recommended that you always
9104	  # use absolute paths for naming shared libraries, and exclude the
9105	  # DT_RUNPATH tag from executables and libraries.  But doing so
9106	  # requires that you compile everything twice, which is a pain.
9107	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9108	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9109	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9111	  else
9112	    ld_shlibs=no
9113	  fi
9114	;;
9115      esac
9116      ;;
9117
9118    sunos4*)
9119      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9120      wlarc=
9121      hardcode_direct=yes
9122      hardcode_shlibpath_var=no
9123      ;;
9124
9125    *)
9126      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9127	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9129      else
9130	ld_shlibs=no
9131      fi
9132      ;;
9133    esac
9134
9135    if test "$ld_shlibs" = no; then
9136      runpath_var=
9137      hardcode_libdir_flag_spec=
9138      export_dynamic_flag_spec=
9139      whole_archive_flag_spec=
9140    fi
9141  else
9142    # PORTME fill in a description of your system's linker (not GNU ld)
9143    case $host_os in
9144    aix3*)
9145      allow_undefined_flag=unsupported
9146      always_export_symbols=yes
9147      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'
9148      # Note: this linker hardcodes the directories in LIBPATH if there
9149      # are no directories specified by -L.
9150      hardcode_minus_L=yes
9151      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9152	# Neither direct hardcoding nor static linking is supported with a
9153	# broken collect2.
9154	hardcode_direct=unsupported
9155      fi
9156      ;;
9157
9158    aix[4-9]*)
9159      if test "$host_cpu" = ia64; then
9160	# On IA64, the linker does run time linking by default, so we don't
9161	# have to do anything special.
9162	aix_use_runtimelinking=no
9163	exp_sym_flag='-Bexport'
9164	no_entry_flag=""
9165      else
9166	# If we're using GNU nm, then we don't want the "-C" option.
9167	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9168	# Also, AIX nm treats weak defined symbols like other global
9169	# defined symbols, whereas GNU nm marks them as "W".
9170	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9171	  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'
9172	else
9173	  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'
9174	fi
9175	aix_use_runtimelinking=no
9176
9177	# Test if we are trying to use run time linking or normal
9178	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9179	# need to do runtime linking.
9180	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9181	  for ld_flag in $LDFLAGS; do
9182	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9183	    aix_use_runtimelinking=yes
9184	    break
9185	  fi
9186	  done
9187	  ;;
9188	esac
9189
9190	exp_sym_flag='-bexport'
9191	no_entry_flag='-bnoentry'
9192      fi
9193
9194      # When large executables or shared objects are built, AIX ld can
9195      # have problems creating the table of contents.  If linking a library
9196      # or program results in "error TOC overflow" add -mminimal-toc to
9197      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9198      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9199
9200      archive_cmds=''
9201      hardcode_direct=yes
9202      hardcode_direct_absolute=yes
9203      hardcode_libdir_separator=':'
9204      link_all_deplibs=yes
9205      file_list_spec='${wl}-f,'
9206
9207      if test "$GCC" = yes; then
9208	case $host_os in aix4.[012]|aix4.[012].*)
9209	# We only want to do this on AIX 4.2 and lower, the check
9210	# below for broken collect2 doesn't work under 4.3+
9211	  collect2name=`${CC} -print-prog-name=collect2`
9212	  if test -f "$collect2name" &&
9213	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9214	  then
9215	  # We have reworked collect2
9216	  :
9217	  else
9218	  # We have old collect2
9219	  hardcode_direct=unsupported
9220	  # It fails to find uninstalled libraries when the uninstalled
9221	  # path is not listed in the libpath.  Setting hardcode_minus_L
9222	  # to unsupported forces relinking
9223	  hardcode_minus_L=yes
9224	  hardcode_libdir_flag_spec='-L$libdir'
9225	  hardcode_libdir_separator=
9226	  fi
9227	  ;;
9228	esac
9229	shared_flag='-shared'
9230	if test "$aix_use_runtimelinking" = yes; then
9231	  shared_flag="$shared_flag "'${wl}-G'
9232	fi
9233      else
9234	# not using gcc
9235	if test "$host_cpu" = ia64; then
9236	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9237	# chokes on -Wl,-G. The following line is correct:
9238	  shared_flag='-G'
9239	else
9240	  if test "$aix_use_runtimelinking" = yes; then
9241	    shared_flag='${wl}-G'
9242	  else
9243	    shared_flag='${wl}-bM:SRE'
9244	  fi
9245	fi
9246      fi
9247
9248      export_dynamic_flag_spec='${wl}-bexpall'
9249      # It seems that -bexpall does not export symbols beginning with
9250      # underscore (_), so it is better to generate a list of symbols to export.
9251      always_export_symbols=yes
9252      if test "$aix_use_runtimelinking" = yes; then
9253	# Warning - without using the other runtime loading flags (-brtl),
9254	# -berok will link without error, but may produce a broken library.
9255	allow_undefined_flag='-berok'
9256        # Determine the default libpath from the value encoded in an
9257        # empty executable.
9258        if test "${lt_cv_aix_libpath+set}" = set; then
9259  aix_libpath=$lt_cv_aix_libpath
9260else
9261  if ${lt_cv_aix_libpath_+:} false; then :
9262  $as_echo_n "(cached) " >&6
9263else
9264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h.  */
9266
9267int
9268main ()
9269{
9270
9271  ;
9272  return 0;
9273}
9274_ACEOF
9275if ac_fn_c_try_link "$LINENO"; then :
9276
9277  lt_aix_libpath_sed='
9278      /Import File Strings/,/^$/ {
9279	  /^0/ {
9280	      s/^0  *\([^ ]*\) *$/\1/
9281	      p
9282	  }
9283      }'
9284  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9285  # Check for a 64-bit object if we didn't find anything.
9286  if test -z "$lt_cv_aix_libpath_"; then
9287    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9288  fi
9289fi
9290rm -f core conftest.err conftest.$ac_objext \
9291    conftest$ac_exeext conftest.$ac_ext
9292  if test -z "$lt_cv_aix_libpath_"; then
9293    lt_cv_aix_libpath_="/usr/lib:/lib"
9294  fi
9295
9296fi
9297
9298  aix_libpath=$lt_cv_aix_libpath_
9299fi
9300
9301        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9302        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"
9303      else
9304	if test "$host_cpu" = ia64; then
9305	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9306	  allow_undefined_flag="-z nodefs"
9307	  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"
9308	else
9309	 # Determine the default libpath from the value encoded in an
9310	 # empty executable.
9311	 if test "${lt_cv_aix_libpath+set}" = set; then
9312  aix_libpath=$lt_cv_aix_libpath
9313else
9314  if ${lt_cv_aix_libpath_+:} false; then :
9315  $as_echo_n "(cached) " >&6
9316else
9317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318/* end confdefs.h.  */
9319
9320int
9321main ()
9322{
9323
9324  ;
9325  return 0;
9326}
9327_ACEOF
9328if ac_fn_c_try_link "$LINENO"; then :
9329
9330  lt_aix_libpath_sed='
9331      /Import File Strings/,/^$/ {
9332	  /^0/ {
9333	      s/^0  *\([^ ]*\) *$/\1/
9334	      p
9335	  }
9336      }'
9337  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9338  # Check for a 64-bit object if we didn't find anything.
9339  if test -z "$lt_cv_aix_libpath_"; then
9340    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9341  fi
9342fi
9343rm -f core conftest.err conftest.$ac_objext \
9344    conftest$ac_exeext conftest.$ac_ext
9345  if test -z "$lt_cv_aix_libpath_"; then
9346    lt_cv_aix_libpath_="/usr/lib:/lib"
9347  fi
9348
9349fi
9350
9351  aix_libpath=$lt_cv_aix_libpath_
9352fi
9353
9354	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9355	  # Warning - without using the other run time loading flags,
9356	  # -berok will link without error, but may produce a broken library.
9357	  no_undefined_flag=' ${wl}-bernotok'
9358	  allow_undefined_flag=' ${wl}-berok'
9359	  if test "$with_gnu_ld" = yes; then
9360	    # We only use this code for GNU lds that support --whole-archive.
9361	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9362	  else
9363	    # Exported symbols can be pulled into shared objects from archives
9364	    whole_archive_flag_spec='$convenience'
9365	  fi
9366	  archive_cmds_need_lc=yes
9367	  # This is similar to how AIX traditionally builds its shared libraries.
9368	  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'
9369	fi
9370      fi
9371      ;;
9372
9373    amigaos*)
9374      case $host_cpu in
9375      powerpc)
9376            # see comment about AmigaOS4 .so support
9377            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9378            archive_expsym_cmds=''
9379        ;;
9380      m68k)
9381            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)'
9382            hardcode_libdir_flag_spec='-L$libdir'
9383            hardcode_minus_L=yes
9384        ;;
9385      esac
9386      ;;
9387
9388    bsdi[45]*)
9389      export_dynamic_flag_spec=-rdynamic
9390      ;;
9391
9392    cygwin* | mingw* | pw32* | cegcc*)
9393      # When not using gcc, we currently assume that we are using
9394      # Microsoft Visual C++.
9395      # hardcode_libdir_flag_spec is actually meaningless, as there is
9396      # no search path for DLLs.
9397      case $cc_basename in
9398      cl*)
9399	# Native MSVC
9400	hardcode_libdir_flag_spec=' '
9401	allow_undefined_flag=unsupported
9402	always_export_symbols=yes
9403	file_list_spec='@'
9404	# Tell ltmain to make .lib files, not .a files.
9405	libext=lib
9406	# Tell ltmain to make .dll files, not .so files.
9407	shrext_cmds=".dll"
9408	# FIXME: Setting linknames here is a bad hack.
9409	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9410	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9411	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9412	  else
9413	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9414	  fi~
9415	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9416	  linknames='
9417	# The linker will not automatically build a static lib if we build a DLL.
9418	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9419	enable_shared_with_static_runtimes=yes
9420	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9421	# Don't use ranlib
9422	old_postinstall_cmds='chmod 644 $oldlib'
9423	postlink_cmds='lt_outputfile="@OUTPUT@"~
9424	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9425	  case $lt_outputfile in
9426	    *.exe|*.EXE) ;;
9427	    *)
9428	      lt_outputfile="$lt_outputfile.exe"
9429	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9430	      ;;
9431	  esac~
9432	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9433	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9434	    $RM "$lt_outputfile.manifest";
9435	  fi'
9436	;;
9437      *)
9438	# Assume MSVC wrapper
9439	hardcode_libdir_flag_spec=' '
9440	allow_undefined_flag=unsupported
9441	# Tell ltmain to make .lib files, not .a files.
9442	libext=lib
9443	# Tell ltmain to make .dll files, not .so files.
9444	shrext_cmds=".dll"
9445	# FIXME: Setting linknames here is a bad hack.
9446	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9447	# The linker will automatically build a .lib file if we build a DLL.
9448	old_archive_from_new_cmds='true'
9449	# FIXME: Should let the user specify the lib program.
9450	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9451	enable_shared_with_static_runtimes=yes
9452	;;
9453      esac
9454      ;;
9455
9456    darwin* | rhapsody*)
9457
9458
9459  archive_cmds_need_lc=no
9460  hardcode_direct=no
9461  hardcode_automatic=yes
9462  hardcode_shlibpath_var=unsupported
9463  if test "$lt_cv_ld_force_load" = "yes"; then
9464    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\"`'
9465  else
9466    whole_archive_flag_spec=''
9467  fi
9468  link_all_deplibs=yes
9469  allow_undefined_flag="$_lt_dar_allow_undefined"
9470  case $cc_basename in
9471     ifort*) _lt_dar_can_shared=yes ;;
9472     *) _lt_dar_can_shared=$GCC ;;
9473  esac
9474  if test "$_lt_dar_can_shared" = "yes"; then
9475    output_verbose_link_cmd=func_echo_all
9476    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9477    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9478    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}"
9479    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}"
9480
9481  else
9482  ld_shlibs=no
9483  fi
9484
9485      ;;
9486
9487    dgux*)
9488      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489      hardcode_libdir_flag_spec='-L$libdir'
9490      hardcode_shlibpath_var=no
9491      ;;
9492
9493    freebsd1*)
9494      ld_shlibs=no
9495      ;;
9496
9497    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9498    # support.  Future versions do this automatically, but an explicit c++rt0.o
9499    # does not break anything, and helps significantly (at the cost of a little
9500    # extra space).
9501    freebsd2.2*)
9502      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9503      hardcode_libdir_flag_spec='-R$libdir'
9504      hardcode_direct=yes
9505      hardcode_shlibpath_var=no
9506      ;;
9507
9508    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9509    freebsd2*)
9510      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9511      hardcode_direct=yes
9512      hardcode_minus_L=yes
9513      hardcode_shlibpath_var=no
9514      ;;
9515
9516    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9517    freebsd* | dragonfly*)
9518      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9519      hardcode_libdir_flag_spec='-R$libdir'
9520      hardcode_direct=yes
9521      hardcode_shlibpath_var=no
9522      ;;
9523
9524    hpux9*)
9525      if test "$GCC" = yes; then
9526	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'
9527      else
9528	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'
9529      fi
9530      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9531      hardcode_libdir_separator=:
9532      hardcode_direct=yes
9533
9534      # hardcode_minus_L: Not really in the search PATH,
9535      # but as the default location of the library.
9536      hardcode_minus_L=yes
9537      export_dynamic_flag_spec='${wl}-E'
9538      ;;
9539
9540    hpux10*)
9541      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9542	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9543      else
9544	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9545      fi
9546      if test "$with_gnu_ld" = no; then
9547	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9548	hardcode_libdir_flag_spec_ld='+b $libdir'
9549	hardcode_libdir_separator=:
9550	hardcode_direct=yes
9551	hardcode_direct_absolute=yes
9552	export_dynamic_flag_spec='${wl}-E'
9553	# hardcode_minus_L: Not really in the search PATH,
9554	# but as the default location of the library.
9555	hardcode_minus_L=yes
9556      fi
9557      ;;
9558
9559    hpux11*)
9560      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9561	case $host_cpu in
9562	hppa*64*)
9563	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9564	  ;;
9565	ia64*)
9566	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9567	  ;;
9568	*)
9569	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9570	  ;;
9571	esac
9572      else
9573	case $host_cpu in
9574	hppa*64*)
9575	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9576	  ;;
9577	ia64*)
9578	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9579	  ;;
9580	*)
9581
9582	  # Older versions of the 11.00 compiler do not understand -b yet
9583	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9584	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9585$as_echo_n "checking if $CC understands -b... " >&6; }
9586if ${lt_cv_prog_compiler__b+:} false; then :
9587  $as_echo_n "(cached) " >&6
9588else
9589  lt_cv_prog_compiler__b=no
9590   save_LDFLAGS="$LDFLAGS"
9591   LDFLAGS="$LDFLAGS -b"
9592   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9593   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9594     # The linker can only warn and ignore the option if not recognized
9595     # So say no if there are warnings
9596     if test -s conftest.err; then
9597       # Append any errors to the config.log.
9598       cat conftest.err 1>&5
9599       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9600       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9601       if diff conftest.exp conftest.er2 >/dev/null; then
9602         lt_cv_prog_compiler__b=yes
9603       fi
9604     else
9605       lt_cv_prog_compiler__b=yes
9606     fi
9607   fi
9608   $RM -r conftest*
9609   LDFLAGS="$save_LDFLAGS"
9610
9611fi
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9613$as_echo "$lt_cv_prog_compiler__b" >&6; }
9614
9615if test x"$lt_cv_prog_compiler__b" = xyes; then
9616    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9617else
9618    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9619fi
9620
9621	  ;;
9622	esac
9623      fi
9624      if test "$with_gnu_ld" = no; then
9625	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9626	hardcode_libdir_separator=:
9627
9628	case $host_cpu in
9629	hppa*64*|ia64*)
9630	  hardcode_direct=no
9631	  hardcode_shlibpath_var=no
9632	  ;;
9633	*)
9634	  hardcode_direct=yes
9635	  hardcode_direct_absolute=yes
9636	  export_dynamic_flag_spec='${wl}-E'
9637
9638	  # hardcode_minus_L: Not really in the search PATH,
9639	  # but as the default location of the library.
9640	  hardcode_minus_L=yes
9641	  ;;
9642	esac
9643      fi
9644      ;;
9645
9646    irix5* | irix6* | nonstopux*)
9647      if test "$GCC" = yes; then
9648	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'
9649	# Try to use the -exported_symbol ld option, if it does not
9650	# work, assume that -exports_file does not work either and
9651	# implicitly export all symbols.
9652	# This should be the same for all languages, so no per-tag cache variable.
9653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9654$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9655if ${lt_cv_irix_exported_symbol+:} false; then :
9656  $as_echo_n "(cached) " >&6
9657else
9658  save_LDFLAGS="$LDFLAGS"
9659	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9660	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661/* end confdefs.h.  */
9662int foo (void) { return 0; }
9663_ACEOF
9664if ac_fn_c_try_link "$LINENO"; then :
9665  lt_cv_irix_exported_symbol=yes
9666else
9667  lt_cv_irix_exported_symbol=no
9668fi
9669rm -f core conftest.err conftest.$ac_objext \
9670    conftest$ac_exeext conftest.$ac_ext
9671           LDFLAGS="$save_LDFLAGS"
9672fi
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9674$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9675	if test "$lt_cv_irix_exported_symbol" = yes; then
9676          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'
9677	fi
9678      else
9679	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'
9680	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'
9681      fi
9682      archive_cmds_need_lc='no'
9683      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9684      hardcode_libdir_separator=:
9685      inherit_rpath=yes
9686      link_all_deplibs=yes
9687      ;;
9688
9689    netbsd*)
9690      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9691	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9692      else
9693	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9694      fi
9695      hardcode_libdir_flag_spec='-R$libdir'
9696      hardcode_direct=yes
9697      hardcode_shlibpath_var=no
9698      ;;
9699
9700    newsos6)
9701      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702      hardcode_direct=yes
9703      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9704      hardcode_libdir_separator=:
9705      hardcode_shlibpath_var=no
9706      ;;
9707
9708    *nto* | *qnx*)
9709      ;;
9710
9711    openbsd*)
9712      if test -f /usr/libexec/ld.so; then
9713	hardcode_direct=yes
9714	hardcode_shlibpath_var=no
9715	hardcode_direct_absolute=yes
9716	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9717	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9718	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9719	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9720	  export_dynamic_flag_spec='${wl}-E'
9721	else
9722	  case $host_os in
9723	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9724	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9725	     hardcode_libdir_flag_spec='-R$libdir'
9726	     ;;
9727	   *)
9728	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9729	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9730	     ;;
9731	  esac
9732	fi
9733      else
9734	ld_shlibs=no
9735      fi
9736      ;;
9737
9738    os2*)
9739      hardcode_libdir_flag_spec='-L$libdir'
9740      hardcode_minus_L=yes
9741      allow_undefined_flag=unsupported
9742      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'
9743      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9744      ;;
9745
9746    osf3*)
9747      if test "$GCC" = yes; then
9748	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9749	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'
9750      else
9751	allow_undefined_flag=' -expect_unresolved \*'
9752	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'
9753      fi
9754      archive_cmds_need_lc='no'
9755      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9756      hardcode_libdir_separator=:
9757      ;;
9758
9759    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9760      if test "$GCC" = yes; then
9761	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9762	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'
9763	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9764      else
9765	allow_undefined_flag=' -expect_unresolved \*'
9766	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'
9767	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~
9768	$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'
9769
9770	# Both c and cxx compiler support -rpath directly
9771	hardcode_libdir_flag_spec='-rpath $libdir'
9772      fi
9773      archive_cmds_need_lc='no'
9774      hardcode_libdir_separator=:
9775      ;;
9776
9777    solaris*)
9778      no_undefined_flag=' -z defs'
9779      if test "$GCC" = yes; then
9780	wlarc='${wl}'
9781	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9782	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9783	  $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'
9784      else
9785	case `$CC -V 2>&1` in
9786	*"Compilers 5.0"*)
9787	  wlarc=''
9788	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9790	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9791	  ;;
9792	*)
9793	  wlarc='${wl}'
9794	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9795	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9796	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9797	  ;;
9798	esac
9799      fi
9800      hardcode_libdir_flag_spec='-R$libdir'
9801      hardcode_shlibpath_var=no
9802      case $host_os in
9803      solaris2.[0-5] | solaris2.[0-5].*) ;;
9804      *)
9805	# The compiler driver will combine and reorder linker options,
9806	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9807	# but is careful enough not to reorder.
9808	# Supported since Solaris 2.6 (maybe 2.5.1?)
9809	if test "$GCC" = yes; then
9810	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9811	else
9812	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9813	fi
9814	;;
9815      esac
9816      link_all_deplibs=yes
9817      ;;
9818
9819    sunos4*)
9820      if test "x$host_vendor" = xsequent; then
9821	# Use $CC to link under sequent, because it throws in some extra .o
9822	# files that make .init and .fini sections work.
9823	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9824      else
9825	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9826      fi
9827      hardcode_libdir_flag_spec='-L$libdir'
9828      hardcode_direct=yes
9829      hardcode_minus_L=yes
9830      hardcode_shlibpath_var=no
9831      ;;
9832
9833    sysv4)
9834      case $host_vendor in
9835	sni)
9836	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9837	  hardcode_direct=yes # is this really true???
9838	;;
9839	siemens)
9840	  ## LD is ld it makes a PLAMLIB
9841	  ## CC just makes a GrossModule.
9842	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9843	  reload_cmds='$CC -r -o $output$reload_objs'
9844	  hardcode_direct=no
9845        ;;
9846	motorola)
9847	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9849	;;
9850      esac
9851      runpath_var='LD_RUN_PATH'
9852      hardcode_shlibpath_var=no
9853      ;;
9854
9855    sysv4.3*)
9856      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857      hardcode_shlibpath_var=no
9858      export_dynamic_flag_spec='-Bexport'
9859      ;;
9860
9861    sysv4*MP*)
9862      if test -d /usr/nec; then
9863	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864	hardcode_shlibpath_var=no
9865	runpath_var=LD_RUN_PATH
9866	hardcode_runpath_var=yes
9867	ld_shlibs=yes
9868      fi
9869      ;;
9870
9871    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9872      no_undefined_flag='${wl}-z,text'
9873      archive_cmds_need_lc=no
9874      hardcode_shlibpath_var=no
9875      runpath_var='LD_RUN_PATH'
9876
9877      if test "$GCC" = yes; then
9878	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9879	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9880      else
9881	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9882	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9883      fi
9884      ;;
9885
9886    sysv5* | sco3.2v5* | sco5v6*)
9887      # Note: We can NOT use -z defs as we might desire, because we do not
9888      # link with -lc, and that would cause any symbols used from libc to
9889      # always be unresolved, which means just about no library would
9890      # ever link correctly.  If we're not using GNU ld we use -z text
9891      # though, which does catch some bad symbols but isn't as heavy-handed
9892      # as -z defs.
9893      no_undefined_flag='${wl}-z,text'
9894      allow_undefined_flag='${wl}-z,nodefs'
9895      archive_cmds_need_lc=no
9896      hardcode_shlibpath_var=no
9897      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9898      hardcode_libdir_separator=':'
9899      link_all_deplibs=yes
9900      export_dynamic_flag_spec='${wl}-Bexport'
9901      runpath_var='LD_RUN_PATH'
9902
9903      if test "$GCC" = yes; then
9904	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9905	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9906      else
9907	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9908	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9909      fi
9910      ;;
9911
9912    uts4*)
9913      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914      hardcode_libdir_flag_spec='-L$libdir'
9915      hardcode_shlibpath_var=no
9916      ;;
9917
9918    *)
9919      ld_shlibs=no
9920      ;;
9921    esac
9922
9923    if test x$host_vendor = xsni; then
9924      case $host in
9925      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9926	export_dynamic_flag_spec='${wl}-Blargedynsym'
9927	;;
9928      esac
9929    fi
9930  fi
9931
9932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9933$as_echo "$ld_shlibs" >&6; }
9934test "$ld_shlibs" = no && can_build_shared=no
9935
9936with_gnu_ld=$with_gnu_ld
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952#
9953# Do we need to explicitly link libc?
9954#
9955case "x$archive_cmds_need_lc" in
9956x|xyes)
9957  # Assume -lc should be added
9958  archive_cmds_need_lc=yes
9959
9960  if test "$enable_shared" = yes && test "$GCC" = yes; then
9961    case $archive_cmds in
9962    *'~'*)
9963      # FIXME: we may have to deal with multi-command sequences.
9964      ;;
9965    '$CC '*)
9966      # Test whether the compiler implicitly links with -lc since on some
9967      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9968      # to ld, don't add -lc before -lgcc.
9969      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9970$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9971if ${lt_cv_archive_cmds_need_lc+:} false; then :
9972  $as_echo_n "(cached) " >&6
9973else
9974  $RM conftest*
9975	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9976
9977	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9978  (eval $ac_compile) 2>&5
9979  ac_status=$?
9980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9981  test $ac_status = 0; } 2>conftest.err; then
9982	  soname=conftest
9983	  lib=conftest
9984	  libobjs=conftest.$ac_objext
9985	  deplibs=
9986	  wl=$lt_prog_compiler_wl
9987	  pic_flag=$lt_prog_compiler_pic
9988	  compiler_flags=-v
9989	  linker_flags=-v
9990	  verstring=
9991	  output_objdir=.
9992	  libname=conftest
9993	  lt_save_allow_undefined_flag=$allow_undefined_flag
9994	  allow_undefined_flag=
9995	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9996  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9997  ac_status=$?
9998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9999  test $ac_status = 0; }
10000	  then
10001	    lt_cv_archive_cmds_need_lc=no
10002	  else
10003	    lt_cv_archive_cmds_need_lc=yes
10004	  fi
10005	  allow_undefined_flag=$lt_save_allow_undefined_flag
10006	else
10007	  cat conftest.err 1>&5
10008	fi
10009	$RM conftest*
10010
10011fi
10012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10013$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10014      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10015      ;;
10016    esac
10017  fi
10018  ;;
10019esac
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10178$as_echo_n "checking dynamic linker characteristics... " >&6; }
10179
10180if test "$GCC" = yes; then
10181  case $host_os in
10182    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10183    *) lt_awk_arg="/^libraries:/" ;;
10184  esac
10185  case $host_os in
10186    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10187    *) lt_sed_strip_eq="s,=/,/,g" ;;
10188  esac
10189  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10190  case $lt_search_path_spec in
10191  *\;*)
10192    # if the path contains ";" then we assume it to be the separator
10193    # otherwise default to the standard path separator (i.e. ":") - it is
10194    # assumed that no part of a normal pathname contains ";" but that should
10195    # okay in the real world where ";" in dirpaths is itself problematic.
10196    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10197    ;;
10198  *)
10199    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10200    ;;
10201  esac
10202  # Ok, now we have the path, separated by spaces, we can step through it
10203  # and add multilib dir if necessary.
10204  lt_tmp_lt_search_path_spec=
10205  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10206  for lt_sys_path in $lt_search_path_spec; do
10207    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10208      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10209    else
10210      test -d "$lt_sys_path" && \
10211	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10212    fi
10213  done
10214  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10215BEGIN {RS=" "; FS="/|\n";} {
10216  lt_foo="";
10217  lt_count=0;
10218  for (lt_i = NF; lt_i > 0; lt_i--) {
10219    if ($lt_i != "" && $lt_i != ".") {
10220      if ($lt_i == "..") {
10221        lt_count++;
10222      } else {
10223        if (lt_count == 0) {
10224          lt_foo="/" $lt_i lt_foo;
10225        } else {
10226          lt_count--;
10227        }
10228      }
10229    }
10230  }
10231  if (lt_foo != "") { lt_freq[lt_foo]++; }
10232  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10233}'`
10234  # AWK program above erroneously prepends '/' to C:/dos/paths
10235  # for these hosts.
10236  case $host_os in
10237    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10238      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10239  esac
10240  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10241else
10242  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10243fi
10244library_names_spec=
10245libname_spec='lib$name'
10246soname_spec=
10247shrext_cmds=".so"
10248postinstall_cmds=
10249postuninstall_cmds=
10250finish_cmds=
10251finish_eval=
10252shlibpath_var=
10253shlibpath_overrides_runpath=unknown
10254version_type=none
10255dynamic_linker="$host_os ld.so"
10256sys_lib_dlsearch_path_spec="/lib /usr/lib"
10257need_lib_prefix=unknown
10258hardcode_into_libs=no
10259
10260# when you set need_version to no, make sure it does not cause -set_version
10261# flags to be left without arguments
10262need_version=unknown
10263
10264case $host_os in
10265aix3*)
10266  version_type=linux
10267  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10268  shlibpath_var=LIBPATH
10269
10270  # AIX 3 has no versioning support, so we append a major version to the name.
10271  soname_spec='${libname}${release}${shared_ext}$major'
10272  ;;
10273
10274aix[4-9]*)
10275  version_type=linux
10276  need_lib_prefix=no
10277  need_version=no
10278  hardcode_into_libs=yes
10279  if test "$host_cpu" = ia64; then
10280    # AIX 5 supports IA64
10281    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10282    shlibpath_var=LD_LIBRARY_PATH
10283  else
10284    # With GCC up to 2.95.x, collect2 would create an import file
10285    # for dependence libraries.  The import file would start with
10286    # the line `#! .'.  This would cause the generated library to
10287    # depend on `.', always an invalid library.  This was fixed in
10288    # development snapshots of GCC prior to 3.0.
10289    case $host_os in
10290      aix4 | aix4.[01] | aix4.[01].*)
10291      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10292	   echo ' yes '
10293	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10294	:
10295      else
10296	can_build_shared=no
10297      fi
10298      ;;
10299    esac
10300    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10301    # soname into executable. Probably we can add versioning support to
10302    # collect2, so additional links can be useful in future.
10303    if test "$aix_use_runtimelinking" = yes; then
10304      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10305      # instead of lib<name>.a to let people know that these are not
10306      # typical AIX shared libraries.
10307      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308    else
10309      # We preserve .a as extension for shared libraries through AIX4.2
10310      # and later when we are not doing run time linking.
10311      library_names_spec='${libname}${release}.a $libname.a'
10312      soname_spec='${libname}${release}${shared_ext}$major'
10313    fi
10314    shlibpath_var=LIBPATH
10315  fi
10316  ;;
10317
10318amigaos*)
10319  case $host_cpu in
10320  powerpc)
10321    # Since July 2007 AmigaOS4 officially supports .so libraries.
10322    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10323    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324    ;;
10325  m68k)
10326    library_names_spec='$libname.ixlibrary $libname.a'
10327    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10328    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'
10329    ;;
10330  esac
10331  ;;
10332
10333beos*)
10334  library_names_spec='${libname}${shared_ext}'
10335  dynamic_linker="$host_os ld.so"
10336  shlibpath_var=LIBRARY_PATH
10337  ;;
10338
10339bsdi[45]*)
10340  version_type=linux
10341  need_version=no
10342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343  soname_spec='${libname}${release}${shared_ext}$major'
10344  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10345  shlibpath_var=LD_LIBRARY_PATH
10346  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10347  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10348  # the default ld.so.conf also contains /usr/contrib/lib and
10349  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10350  # libtool to hard-code these into programs
10351  ;;
10352
10353cygwin* | mingw* | pw32* | cegcc*)
10354  version_type=windows
10355  shrext_cmds=".dll"
10356  need_version=no
10357  need_lib_prefix=no
10358
10359  case $GCC,$cc_basename in
10360  yes,*)
10361    # gcc
10362    library_names_spec='$libname.dll.a'
10363    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10364    postinstall_cmds='base_file=`basename \${file}`~
10365      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10366      dldir=$destdir/`dirname \$dlpath`~
10367      test -d \$dldir || mkdir -p \$dldir~
10368      $install_prog $dir/$dlname \$dldir/$dlname~
10369      chmod a+x \$dldir/$dlname~
10370      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10371        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10372      fi'
10373    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10374      dlpath=$dir/\$dldll~
10375       $RM \$dlpath'
10376    shlibpath_overrides_runpath=yes
10377
10378    case $host_os in
10379    cygwin*)
10380      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10381      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10382
10383      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10384      ;;
10385    mingw* | cegcc*)
10386      # MinGW DLLs use traditional 'lib' prefix
10387      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10388      ;;
10389    pw32*)
10390      # pw32 DLLs use 'pw' prefix rather than 'lib'
10391      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10392      ;;
10393    esac
10394    dynamic_linker='Win32 ld.exe'
10395    ;;
10396
10397  *,cl*)
10398    # Native MSVC
10399    libname_spec='$name'
10400    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10401    library_names_spec='${libname}.dll.lib'
10402
10403    case $build_os in
10404    mingw*)
10405      sys_lib_search_path_spec=
10406      lt_save_ifs=$IFS
10407      IFS=';'
10408      for lt_path in $LIB
10409      do
10410        IFS=$lt_save_ifs
10411        # Let DOS variable expansion print the short 8.3 style file name.
10412        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10413        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10414      done
10415      IFS=$lt_save_ifs
10416      # Convert to MSYS style.
10417      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10418      ;;
10419    cygwin*)
10420      # Convert to unix form, then to dos form, then back to unix form
10421      # but this time dos style (no spaces!) so that the unix form looks
10422      # like /cygdrive/c/PROGRA~1:/cygdr...
10423      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10424      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10425      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10426      ;;
10427    *)
10428      sys_lib_search_path_spec="$LIB"
10429      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10430        # It is most probably a Windows format PATH.
10431        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10432      else
10433        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10434      fi
10435      # FIXME: find the short name or the path components, as spaces are
10436      # common. (e.g. "Program Files" -> "PROGRA~1")
10437      ;;
10438    esac
10439
10440    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10441    postinstall_cmds='base_file=`basename \${file}`~
10442      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10443      dldir=$destdir/`dirname \$dlpath`~
10444      test -d \$dldir || mkdir -p \$dldir~
10445      $install_prog $dir/$dlname \$dldir/$dlname'
10446    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10447      dlpath=$dir/\$dldll~
10448       $RM \$dlpath'
10449    shlibpath_overrides_runpath=yes
10450    dynamic_linker='Win32 link.exe'
10451    ;;
10452
10453  *)
10454    # Assume MSVC wrapper
10455    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10456    dynamic_linker='Win32 ld.exe'
10457    ;;
10458  esac
10459  # FIXME: first we should search . and the directory the executable is in
10460  shlibpath_var=PATH
10461  ;;
10462
10463darwin* | rhapsody*)
10464  dynamic_linker="$host_os dyld"
10465  version_type=darwin
10466  need_lib_prefix=no
10467  need_version=no
10468  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10469  soname_spec='${libname}${release}${major}$shared_ext'
10470  shlibpath_overrides_runpath=yes
10471  shlibpath_var=DYLD_LIBRARY_PATH
10472  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10473
10474  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10475  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10476  ;;
10477
10478dgux*)
10479  version_type=linux
10480  need_lib_prefix=no
10481  need_version=no
10482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10483  soname_spec='${libname}${release}${shared_ext}$major'
10484  shlibpath_var=LD_LIBRARY_PATH
10485  ;;
10486
10487freebsd1*)
10488  dynamic_linker=no
10489  ;;
10490
10491freebsd* | dragonfly*)
10492  # DragonFly does not have aout.  When/if they implement a new
10493  # versioning mechanism, adjust this.
10494  if test -x /usr/bin/objformat; then
10495    objformat=`/usr/bin/objformat`
10496  else
10497    case $host_os in
10498    freebsd[123]*) objformat=aout ;;
10499    *) objformat=elf ;;
10500    esac
10501  fi
10502  version_type=freebsd-$objformat
10503  case $version_type in
10504    freebsd-elf*)
10505      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10506      need_version=no
10507      need_lib_prefix=no
10508      ;;
10509    freebsd-*)
10510      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10511      need_version=yes
10512      ;;
10513  esac
10514  shlibpath_var=LD_LIBRARY_PATH
10515  case $host_os in
10516  freebsd2*)
10517    shlibpath_overrides_runpath=yes
10518    ;;
10519  freebsd3.[01]* | freebsdelf3.[01]*)
10520    shlibpath_overrides_runpath=yes
10521    hardcode_into_libs=yes
10522    ;;
10523  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10524  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10525    shlibpath_overrides_runpath=no
10526    hardcode_into_libs=yes
10527    ;;
10528  *) # from 4.6 on, and DragonFly
10529    shlibpath_overrides_runpath=yes
10530    hardcode_into_libs=yes
10531    ;;
10532  esac
10533  ;;
10534
10535gnu*)
10536  version_type=linux
10537  need_lib_prefix=no
10538  need_version=no
10539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10540  soname_spec='${libname}${release}${shared_ext}$major'
10541  shlibpath_var=LD_LIBRARY_PATH
10542  hardcode_into_libs=yes
10543  ;;
10544
10545haiku*)
10546  version_type=linux
10547  need_lib_prefix=no
10548  need_version=no
10549  dynamic_linker="$host_os runtime_loader"
10550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10551  soname_spec='${libname}${release}${shared_ext}$major'
10552  shlibpath_var=LIBRARY_PATH
10553  shlibpath_overrides_runpath=yes
10554  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10555  hardcode_into_libs=yes
10556  ;;
10557
10558hpux9* | hpux10* | hpux11*)
10559  # Give a soname corresponding to the major version so that dld.sl refuses to
10560  # link against other versions.
10561  version_type=sunos
10562  need_lib_prefix=no
10563  need_version=no
10564  case $host_cpu in
10565  ia64*)
10566    shrext_cmds='.so'
10567    hardcode_into_libs=yes
10568    dynamic_linker="$host_os dld.so"
10569    shlibpath_var=LD_LIBRARY_PATH
10570    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10571    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572    soname_spec='${libname}${release}${shared_ext}$major'
10573    if test "X$HPUX_IA64_MODE" = X32; then
10574      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10575    else
10576      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10577    fi
10578    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10579    ;;
10580  hppa*64*)
10581    shrext_cmds='.sl'
10582    hardcode_into_libs=yes
10583    dynamic_linker="$host_os dld.sl"
10584    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10585    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587    soname_spec='${libname}${release}${shared_ext}$major'
10588    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10589    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10590    ;;
10591  *)
10592    shrext_cmds='.sl'
10593    dynamic_linker="$host_os dld.sl"
10594    shlibpath_var=SHLIB_PATH
10595    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10596    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597    soname_spec='${libname}${release}${shared_ext}$major'
10598    ;;
10599  esac
10600  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10601  postinstall_cmds='chmod 555 $lib'
10602  # or fails outright, so override atomically:
10603  install_override_mode=555
10604  ;;
10605
10606interix[3-9]*)
10607  version_type=linux
10608  need_lib_prefix=no
10609  need_version=no
10610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10611  soname_spec='${libname}${release}${shared_ext}$major'
10612  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10613  shlibpath_var=LD_LIBRARY_PATH
10614  shlibpath_overrides_runpath=no
10615  hardcode_into_libs=yes
10616  ;;
10617
10618irix5* | irix6* | nonstopux*)
10619  case $host_os in
10620    nonstopux*) version_type=nonstopux ;;
10621    *)
10622	if test "$lt_cv_prog_gnu_ld" = yes; then
10623		version_type=linux
10624	else
10625		version_type=irix
10626	fi ;;
10627  esac
10628  need_lib_prefix=no
10629  need_version=no
10630  soname_spec='${libname}${release}${shared_ext}$major'
10631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10632  case $host_os in
10633  irix5* | nonstopux*)
10634    libsuff= shlibsuff=
10635    ;;
10636  *)
10637    case $LD in # libtool.m4 will add one of these switches to LD
10638    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10639      libsuff= shlibsuff= libmagic=32-bit;;
10640    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10641      libsuff=32 shlibsuff=N32 libmagic=N32;;
10642    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10643      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10644    *) libsuff= shlibsuff= libmagic=never-match;;
10645    esac
10646    ;;
10647  esac
10648  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10649  shlibpath_overrides_runpath=no
10650  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10651  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10652  hardcode_into_libs=yes
10653  ;;
10654
10655# No shared lib support for Linux oldld, aout, or coff.
10656linux*oldld* | linux*aout* | linux*coff*)
10657  dynamic_linker=no
10658  ;;
10659
10660# This must be Linux ELF.
10661linux* | k*bsd*-gnu | kopensolaris*-gnu)
10662  version_type=linux
10663  need_lib_prefix=no
10664  need_version=no
10665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666  soname_spec='${libname}${release}${shared_ext}$major'
10667  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10668  shlibpath_var=LD_LIBRARY_PATH
10669  shlibpath_overrides_runpath=no
10670
10671  # Some binutils ld are patched to set DT_RUNPATH
10672  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10673  $as_echo_n "(cached) " >&6
10674else
10675  lt_cv_shlibpath_overrides_runpath=no
10676    save_LDFLAGS=$LDFLAGS
10677    save_libdir=$libdir
10678    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10679	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10680    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681/* end confdefs.h.  */
10682
10683int
10684main ()
10685{
10686
10687  ;
10688  return 0;
10689}
10690_ACEOF
10691if ac_fn_c_try_link "$LINENO"; then :
10692  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10693  lt_cv_shlibpath_overrides_runpath=yes
10694fi
10695fi
10696rm -f core conftest.err conftest.$ac_objext \
10697    conftest$ac_exeext conftest.$ac_ext
10698    LDFLAGS=$save_LDFLAGS
10699    libdir=$save_libdir
10700
10701fi
10702
10703  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10704
10705  # This implies no fast_install, which is unacceptable.
10706  # Some rework will be needed to allow for fast_install
10707  # before this can be enabled.
10708  hardcode_into_libs=yes
10709
10710  # Append ld.so.conf contents to the search path
10711  if test -f /etc/ld.so.conf; then
10712    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' ' '`
10713    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10714  fi
10715
10716  # We used to test for /lib/ld.so.1 and disable shared libraries on
10717  # powerpc, because MkLinux only supported shared libraries with the
10718  # GNU dynamic linker.  Since this was broken with cross compilers,
10719  # most powerpc-linux boxes support dynamic linking these days and
10720  # people can always --disable-shared, the test was removed, and we
10721  # assume the GNU/Linux dynamic linker is in use.
10722  dynamic_linker='GNU/Linux ld.so'
10723  ;;
10724
10725netbsd*)
10726  version_type=sunos
10727  need_lib_prefix=no
10728  need_version=no
10729  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10730    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10731    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10732    dynamic_linker='NetBSD (a.out) ld.so'
10733  else
10734    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10735    soname_spec='${libname}${release}${shared_ext}$major'
10736    dynamic_linker='NetBSD ld.elf_so'
10737  fi
10738  shlibpath_var=LD_LIBRARY_PATH
10739  shlibpath_overrides_runpath=yes
10740  hardcode_into_libs=yes
10741  ;;
10742
10743newsos6)
10744  version_type=linux
10745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746  shlibpath_var=LD_LIBRARY_PATH
10747  shlibpath_overrides_runpath=yes
10748  ;;
10749
10750*nto* | *qnx*)
10751  version_type=qnx
10752  need_lib_prefix=no
10753  need_version=no
10754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755  soname_spec='${libname}${release}${shared_ext}$major'
10756  shlibpath_var=LD_LIBRARY_PATH
10757  shlibpath_overrides_runpath=no
10758  hardcode_into_libs=yes
10759  dynamic_linker='ldqnx.so'
10760  ;;
10761
10762openbsd*)
10763  version_type=sunos
10764  sys_lib_dlsearch_path_spec="/usr/lib"
10765  need_lib_prefix=no
10766  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10767  case $host_os in
10768    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10769    *)				need_version=no  ;;
10770  esac
10771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10772  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10773  shlibpath_var=LD_LIBRARY_PATH
10774  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10775    case $host_os in
10776      openbsd2.[89] | openbsd2.[89].*)
10777	shlibpath_overrides_runpath=no
10778	;;
10779      *)
10780	shlibpath_overrides_runpath=yes
10781	;;
10782      esac
10783  else
10784    shlibpath_overrides_runpath=yes
10785  fi
10786  ;;
10787
10788os2*)
10789  libname_spec='$name'
10790  shrext_cmds=".dll"
10791  need_lib_prefix=no
10792  library_names_spec='$libname${shared_ext} $libname.a'
10793  dynamic_linker='OS/2 ld.exe'
10794  shlibpath_var=LIBPATH
10795  ;;
10796
10797osf3* | osf4* | osf5*)
10798  version_type=osf
10799  need_lib_prefix=no
10800  need_version=no
10801  soname_spec='${libname}${release}${shared_ext}$major'
10802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803  shlibpath_var=LD_LIBRARY_PATH
10804  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10805  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10806  ;;
10807
10808rdos*)
10809  dynamic_linker=no
10810  ;;
10811
10812solaris*)
10813  version_type=linux
10814  need_lib_prefix=no
10815  need_version=no
10816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817  soname_spec='${libname}${release}${shared_ext}$major'
10818  shlibpath_var=LD_LIBRARY_PATH
10819  shlibpath_overrides_runpath=yes
10820  hardcode_into_libs=yes
10821  # ldd complains unless libraries are executable
10822  postinstall_cmds='chmod +x $lib'
10823  ;;
10824
10825sunos4*)
10826  version_type=sunos
10827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10828  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10829  shlibpath_var=LD_LIBRARY_PATH
10830  shlibpath_overrides_runpath=yes
10831  if test "$with_gnu_ld" = yes; then
10832    need_lib_prefix=no
10833  fi
10834  need_version=yes
10835  ;;
10836
10837sysv4 | sysv4.3*)
10838  version_type=linux
10839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840  soname_spec='${libname}${release}${shared_ext}$major'
10841  shlibpath_var=LD_LIBRARY_PATH
10842  case $host_vendor in
10843    sni)
10844      shlibpath_overrides_runpath=no
10845      need_lib_prefix=no
10846      runpath_var=LD_RUN_PATH
10847      ;;
10848    siemens)
10849      need_lib_prefix=no
10850      ;;
10851    motorola)
10852      need_lib_prefix=no
10853      need_version=no
10854      shlibpath_overrides_runpath=no
10855      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10856      ;;
10857  esac
10858  ;;
10859
10860sysv4*MP*)
10861  if test -d /usr/nec ;then
10862    version_type=linux
10863    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10864    soname_spec='$libname${shared_ext}.$major'
10865    shlibpath_var=LD_LIBRARY_PATH
10866  fi
10867  ;;
10868
10869sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10870  version_type=freebsd-elf
10871  need_lib_prefix=no
10872  need_version=no
10873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10874  soname_spec='${libname}${release}${shared_ext}$major'
10875  shlibpath_var=LD_LIBRARY_PATH
10876  shlibpath_overrides_runpath=yes
10877  hardcode_into_libs=yes
10878  if test "$with_gnu_ld" = yes; then
10879    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10880  else
10881    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10882    case $host_os in
10883      sco3.2v5*)
10884        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10885	;;
10886    esac
10887  fi
10888  sys_lib_dlsearch_path_spec='/usr/lib'
10889  ;;
10890
10891tpf*)
10892  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10893  version_type=linux
10894  need_lib_prefix=no
10895  need_version=no
10896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897  shlibpath_var=LD_LIBRARY_PATH
10898  shlibpath_overrides_runpath=no
10899  hardcode_into_libs=yes
10900  ;;
10901
10902uts4*)
10903  version_type=linux
10904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905  soname_spec='${libname}${release}${shared_ext}$major'
10906  shlibpath_var=LD_LIBRARY_PATH
10907  ;;
10908
10909*)
10910  dynamic_linker=no
10911  ;;
10912esac
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10914$as_echo "$dynamic_linker" >&6; }
10915test "$dynamic_linker" = no && can_build_shared=no
10916
10917variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10918if test "$GCC" = yes; then
10919  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10920fi
10921
10922if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10923  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10924fi
10925if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10926  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10927fi
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11021$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11022hardcode_action=
11023if test -n "$hardcode_libdir_flag_spec" ||
11024   test -n "$runpath_var" ||
11025   test "X$hardcode_automatic" = "Xyes" ; then
11026
11027  # We can hardcode non-existent directories.
11028  if test "$hardcode_direct" != no &&
11029     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11030     # have to relink, otherwise we might link with an installed library
11031     # when we should be linking with a yet-to-be-installed one
11032     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11033     test "$hardcode_minus_L" != no; then
11034    # Linking always hardcodes the temporary library directory.
11035    hardcode_action=relink
11036  else
11037    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11038    hardcode_action=immediate
11039  fi
11040else
11041  # We cannot hardcode anything, or else we can only hardcode existing
11042  # directories.
11043  hardcode_action=unsupported
11044fi
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11046$as_echo "$hardcode_action" >&6; }
11047
11048if test "$hardcode_action" = relink ||
11049   test "$inherit_rpath" = yes; then
11050  # Fast installation is not supported
11051  enable_fast_install=no
11052elif test "$shlibpath_overrides_runpath" = yes ||
11053     test "$enable_shared" = no; then
11054  # Fast installation is not necessary
11055  enable_fast_install=needless
11056fi
11057
11058
11059
11060
11061
11062
11063  if test "x$enable_dlopen" != xyes; then
11064  enable_dlopen=unknown
11065  enable_dlopen_self=unknown
11066  enable_dlopen_self_static=unknown
11067else
11068  lt_cv_dlopen=no
11069  lt_cv_dlopen_libs=
11070
11071  case $host_os in
11072  beos*)
11073    lt_cv_dlopen="load_add_on"
11074    lt_cv_dlopen_libs=
11075    lt_cv_dlopen_self=yes
11076    ;;
11077
11078  mingw* | pw32* | cegcc*)
11079    lt_cv_dlopen="LoadLibrary"
11080    lt_cv_dlopen_libs=
11081    ;;
11082
11083  cygwin*)
11084    lt_cv_dlopen="dlopen"
11085    lt_cv_dlopen_libs=
11086    ;;
11087
11088  darwin*)
11089  # if libdl is installed we need to link against it
11090    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11091$as_echo_n "checking for dlopen in -ldl... " >&6; }
11092if ${ac_cv_lib_dl_dlopen+:} false; then :
11093  $as_echo_n "(cached) " >&6
11094else
11095  ac_check_lib_save_LIBS=$LIBS
11096LIBS="-ldl  $LIBS"
11097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098/* end confdefs.h.  */
11099
11100/* Override any GCC internal prototype to avoid an error.
11101   Use char because int might match the return type of a GCC
11102   builtin and then its argument prototype would still apply.  */
11103#ifdef __cplusplus
11104extern "C"
11105#endif
11106char dlopen ();
11107int
11108main ()
11109{
11110return dlopen ();
11111  ;
11112  return 0;
11113}
11114_ACEOF
11115if ac_fn_c_try_link "$LINENO"; then :
11116  ac_cv_lib_dl_dlopen=yes
11117else
11118  ac_cv_lib_dl_dlopen=no
11119fi
11120rm -f core conftest.err conftest.$ac_objext \
11121    conftest$ac_exeext conftest.$ac_ext
11122LIBS=$ac_check_lib_save_LIBS
11123fi
11124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11125$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11126if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11127  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11128else
11129
11130    lt_cv_dlopen="dyld"
11131    lt_cv_dlopen_libs=
11132    lt_cv_dlopen_self=yes
11133
11134fi
11135
11136    ;;
11137
11138  *)
11139    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11140if test "x$ac_cv_func_shl_load" = xyes; then :
11141  lt_cv_dlopen="shl_load"
11142else
11143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11144$as_echo_n "checking for shl_load in -ldld... " >&6; }
11145if ${ac_cv_lib_dld_shl_load+:} false; then :
11146  $as_echo_n "(cached) " >&6
11147else
11148  ac_check_lib_save_LIBS=$LIBS
11149LIBS="-ldld  $LIBS"
11150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151/* end confdefs.h.  */
11152
11153/* Override any GCC internal prototype to avoid an error.
11154   Use char because int might match the return type of a GCC
11155   builtin and then its argument prototype would still apply.  */
11156#ifdef __cplusplus
11157extern "C"
11158#endif
11159char shl_load ();
11160int
11161main ()
11162{
11163return shl_load ();
11164  ;
11165  return 0;
11166}
11167_ACEOF
11168if ac_fn_c_try_link "$LINENO"; then :
11169  ac_cv_lib_dld_shl_load=yes
11170else
11171  ac_cv_lib_dld_shl_load=no
11172fi
11173rm -f core conftest.err conftest.$ac_objext \
11174    conftest$ac_exeext conftest.$ac_ext
11175LIBS=$ac_check_lib_save_LIBS
11176fi
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11178$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11179if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11180  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11181else
11182  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11183if test "x$ac_cv_func_dlopen" = xyes; then :
11184  lt_cv_dlopen="dlopen"
11185else
11186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11187$as_echo_n "checking for dlopen in -ldl... " >&6; }
11188if ${ac_cv_lib_dl_dlopen+:} false; then :
11189  $as_echo_n "(cached) " >&6
11190else
11191  ac_check_lib_save_LIBS=$LIBS
11192LIBS="-ldl  $LIBS"
11193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11194/* end confdefs.h.  */
11195
11196/* Override any GCC internal prototype to avoid an error.
11197   Use char because int might match the return type of a GCC
11198   builtin and then its argument prototype would still apply.  */
11199#ifdef __cplusplus
11200extern "C"
11201#endif
11202char dlopen ();
11203int
11204main ()
11205{
11206return dlopen ();
11207  ;
11208  return 0;
11209}
11210_ACEOF
11211if ac_fn_c_try_link "$LINENO"; then :
11212  ac_cv_lib_dl_dlopen=yes
11213else
11214  ac_cv_lib_dl_dlopen=no
11215fi
11216rm -f core conftest.err conftest.$ac_objext \
11217    conftest$ac_exeext conftest.$ac_ext
11218LIBS=$ac_check_lib_save_LIBS
11219fi
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11221$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11222if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11223  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11224else
11225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11226$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11227if ${ac_cv_lib_svld_dlopen+:} false; then :
11228  $as_echo_n "(cached) " >&6
11229else
11230  ac_check_lib_save_LIBS=$LIBS
11231LIBS="-lsvld  $LIBS"
11232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233/* end confdefs.h.  */
11234
11235/* Override any GCC internal prototype to avoid an error.
11236   Use char because int might match the return type of a GCC
11237   builtin and then its argument prototype would still apply.  */
11238#ifdef __cplusplus
11239extern "C"
11240#endif
11241char dlopen ();
11242int
11243main ()
11244{
11245return dlopen ();
11246  ;
11247  return 0;
11248}
11249_ACEOF
11250if ac_fn_c_try_link "$LINENO"; then :
11251  ac_cv_lib_svld_dlopen=yes
11252else
11253  ac_cv_lib_svld_dlopen=no
11254fi
11255rm -f core conftest.err conftest.$ac_objext \
11256    conftest$ac_exeext conftest.$ac_ext
11257LIBS=$ac_check_lib_save_LIBS
11258fi
11259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11260$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11261if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11262  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11263else
11264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11265$as_echo_n "checking for dld_link in -ldld... " >&6; }
11266if ${ac_cv_lib_dld_dld_link+:} false; then :
11267  $as_echo_n "(cached) " >&6
11268else
11269  ac_check_lib_save_LIBS=$LIBS
11270LIBS="-ldld  $LIBS"
11271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272/* end confdefs.h.  */
11273
11274/* Override any GCC internal prototype to avoid an error.
11275   Use char because int might match the return type of a GCC
11276   builtin and then its argument prototype would still apply.  */
11277#ifdef __cplusplus
11278extern "C"
11279#endif
11280char dld_link ();
11281int
11282main ()
11283{
11284return dld_link ();
11285  ;
11286  return 0;
11287}
11288_ACEOF
11289if ac_fn_c_try_link "$LINENO"; then :
11290  ac_cv_lib_dld_dld_link=yes
11291else
11292  ac_cv_lib_dld_dld_link=no
11293fi
11294rm -f core conftest.err conftest.$ac_objext \
11295    conftest$ac_exeext conftest.$ac_ext
11296LIBS=$ac_check_lib_save_LIBS
11297fi
11298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11299$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11300if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11301  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11302fi
11303
11304
11305fi
11306
11307
11308fi
11309
11310
11311fi
11312
11313
11314fi
11315
11316
11317fi
11318
11319    ;;
11320  esac
11321
11322  if test "x$lt_cv_dlopen" != xno; then
11323    enable_dlopen=yes
11324  else
11325    enable_dlopen=no
11326  fi
11327
11328  case $lt_cv_dlopen in
11329  dlopen)
11330    save_CPPFLAGS="$CPPFLAGS"
11331    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11332
11333    save_LDFLAGS="$LDFLAGS"
11334    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11335
11336    save_LIBS="$LIBS"
11337    LIBS="$lt_cv_dlopen_libs $LIBS"
11338
11339    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11340$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11341if ${lt_cv_dlopen_self+:} false; then :
11342  $as_echo_n "(cached) " >&6
11343else
11344  	  if test "$cross_compiling" = yes; then :
11345  lt_cv_dlopen_self=cross
11346else
11347  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11348  lt_status=$lt_dlunknown
11349  cat > conftest.$ac_ext <<_LT_EOF
11350#line $LINENO "configure"
11351#include "confdefs.h"
11352
11353#if HAVE_DLFCN_H
11354#include <dlfcn.h>
11355#endif
11356
11357#include <stdio.h>
11358
11359#ifdef RTLD_GLOBAL
11360#  define LT_DLGLOBAL		RTLD_GLOBAL
11361#else
11362#  ifdef DL_GLOBAL
11363#    define LT_DLGLOBAL		DL_GLOBAL
11364#  else
11365#    define LT_DLGLOBAL		0
11366#  endif
11367#endif
11368
11369/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11370   find out it does not work in some platform. */
11371#ifndef LT_DLLAZY_OR_NOW
11372#  ifdef RTLD_LAZY
11373#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11374#  else
11375#    ifdef DL_LAZY
11376#      define LT_DLLAZY_OR_NOW		DL_LAZY
11377#    else
11378#      ifdef RTLD_NOW
11379#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11380#      else
11381#        ifdef DL_NOW
11382#          define LT_DLLAZY_OR_NOW	DL_NOW
11383#        else
11384#          define LT_DLLAZY_OR_NOW	0
11385#        endif
11386#      endif
11387#    endif
11388#  endif
11389#endif
11390
11391/* When -fvisbility=hidden is used, assume the code has been annotated
11392   correspondingly for the symbols needed.  */
11393#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11394int fnord () __attribute__((visibility("default")));
11395#endif
11396
11397int fnord () { return 42; }
11398int main ()
11399{
11400  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11401  int status = $lt_dlunknown;
11402
11403  if (self)
11404    {
11405      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11406      else
11407        {
11408	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11409          else puts (dlerror ());
11410	}
11411      /* dlclose (self); */
11412    }
11413  else
11414    puts (dlerror ());
11415
11416  return status;
11417}
11418_LT_EOF
11419  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11420  (eval $ac_link) 2>&5
11421  ac_status=$?
11422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11423  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11424    (./conftest; exit; ) >&5 2>/dev/null
11425    lt_status=$?
11426    case x$lt_status in
11427      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11428      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11429      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11430    esac
11431  else :
11432    # compilation failed
11433    lt_cv_dlopen_self=no
11434  fi
11435fi
11436rm -fr conftest*
11437
11438
11439fi
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11441$as_echo "$lt_cv_dlopen_self" >&6; }
11442
11443    if test "x$lt_cv_dlopen_self" = xyes; then
11444      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11445      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11446$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11447if ${lt_cv_dlopen_self_static+:} false; then :
11448  $as_echo_n "(cached) " >&6
11449else
11450  	  if test "$cross_compiling" = yes; then :
11451  lt_cv_dlopen_self_static=cross
11452else
11453  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11454  lt_status=$lt_dlunknown
11455  cat > conftest.$ac_ext <<_LT_EOF
11456#line $LINENO "configure"
11457#include "confdefs.h"
11458
11459#if HAVE_DLFCN_H
11460#include <dlfcn.h>
11461#endif
11462
11463#include <stdio.h>
11464
11465#ifdef RTLD_GLOBAL
11466#  define LT_DLGLOBAL		RTLD_GLOBAL
11467#else
11468#  ifdef DL_GLOBAL
11469#    define LT_DLGLOBAL		DL_GLOBAL
11470#  else
11471#    define LT_DLGLOBAL		0
11472#  endif
11473#endif
11474
11475/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11476   find out it does not work in some platform. */
11477#ifndef LT_DLLAZY_OR_NOW
11478#  ifdef RTLD_LAZY
11479#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11480#  else
11481#    ifdef DL_LAZY
11482#      define LT_DLLAZY_OR_NOW		DL_LAZY
11483#    else
11484#      ifdef RTLD_NOW
11485#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11486#      else
11487#        ifdef DL_NOW
11488#          define LT_DLLAZY_OR_NOW	DL_NOW
11489#        else
11490#          define LT_DLLAZY_OR_NOW	0
11491#        endif
11492#      endif
11493#    endif
11494#  endif
11495#endif
11496
11497/* When -fvisbility=hidden is used, assume the code has been annotated
11498   correspondingly for the symbols needed.  */
11499#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11500int fnord () __attribute__((visibility("default")));
11501#endif
11502
11503int fnord () { return 42; }
11504int main ()
11505{
11506  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11507  int status = $lt_dlunknown;
11508
11509  if (self)
11510    {
11511      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11512      else
11513        {
11514	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11515          else puts (dlerror ());
11516	}
11517      /* dlclose (self); */
11518    }
11519  else
11520    puts (dlerror ());
11521
11522  return status;
11523}
11524_LT_EOF
11525  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11526  (eval $ac_link) 2>&5
11527  ac_status=$?
11528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11529  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11530    (./conftest; exit; ) >&5 2>/dev/null
11531    lt_status=$?
11532    case x$lt_status in
11533      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11534      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11535      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11536    esac
11537  else :
11538    # compilation failed
11539    lt_cv_dlopen_self_static=no
11540  fi
11541fi
11542rm -fr conftest*
11543
11544
11545fi
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11547$as_echo "$lt_cv_dlopen_self_static" >&6; }
11548    fi
11549
11550    CPPFLAGS="$save_CPPFLAGS"
11551    LDFLAGS="$save_LDFLAGS"
11552    LIBS="$save_LIBS"
11553    ;;
11554  esac
11555
11556  case $lt_cv_dlopen_self in
11557  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11558  *) enable_dlopen_self=unknown ;;
11559  esac
11560
11561  case $lt_cv_dlopen_self_static in
11562  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11563  *) enable_dlopen_self_static=unknown ;;
11564  esac
11565fi
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583striplib=
11584old_striplib=
11585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11586$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11587if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11588  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11589  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11591$as_echo "yes" >&6; }
11592else
11593# FIXME - insert some real tests, host_os isn't really good enough
11594  case $host_os in
11595  darwin*)
11596    if test -n "$STRIP" ; then
11597      striplib="$STRIP -x"
11598      old_striplib="$STRIP -S"
11599      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11600$as_echo "yes" >&6; }
11601    else
11602      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603$as_echo "no" >&6; }
11604    fi
11605    ;;
11606  *)
11607    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608$as_echo "no" >&6; }
11609    ;;
11610  esac
11611fi
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624  # Report which library types will actually be built
11625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11626$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11628$as_echo "$can_build_shared" >&6; }
11629
11630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11631$as_echo_n "checking whether to build shared libraries... " >&6; }
11632  test "$can_build_shared" = "no" && enable_shared=no
11633
11634  # On AIX, shared libraries and static libraries use the same namespace, and
11635  # are all built from PIC.
11636  case $host_os in
11637  aix3*)
11638    test "$enable_shared" = yes && enable_static=no
11639    if test -n "$RANLIB"; then
11640      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11641      postinstall_cmds='$RANLIB $lib'
11642    fi
11643    ;;
11644
11645  aix[4-9]*)
11646    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11647      test "$enable_shared" = yes && enable_static=no
11648    fi
11649    ;;
11650  esac
11651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11652$as_echo "$enable_shared" >&6; }
11653
11654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11655$as_echo_n "checking whether to build static libraries... " >&6; }
11656  # Make sure either enable_shared or enable_static is yes.
11657  test "$enable_shared" = yes || enable_static=yes
11658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11659$as_echo "$enable_static" >&6; }
11660
11661
11662
11663
11664fi
11665ac_ext=c
11666ac_cpp='$CPP $CPPFLAGS'
11667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11669ac_compiler_gnu=$ac_cv_c_compiler_gnu
11670
11671CC="$lt_save_CC"
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685        ac_config_commands="$ac_config_commands libtool"
11686
11687
11688
11689
11690# Only expand once:
11691
11692
11693
11694# Require xorg-macros minimum of 1.12 for DocBook external references
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11707$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11708if ${ac_cv_prog_cc_c99+:} false; then :
11709  $as_echo_n "(cached) " >&6
11710else
11711  ac_cv_prog_cc_c99=no
11712ac_save_CC=$CC
11713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714/* end confdefs.h.  */
11715#include <stdarg.h>
11716#include <stdbool.h>
11717#include <stdlib.h>
11718#include <wchar.h>
11719#include <stdio.h>
11720
11721// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11722#define debug(...) fprintf (stderr, __VA_ARGS__)
11723#define showlist(...) puts (#__VA_ARGS__)
11724#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11725static void
11726test_varargs_macros (void)
11727{
11728  int x = 1234;
11729  int y = 5678;
11730  debug ("Flag");
11731  debug ("X = %d\n", x);
11732  showlist (The first, second, and third items.);
11733  report (x>y, "x is %d but y is %d", x, y);
11734}
11735
11736// Check long long types.
11737#define BIG64 18446744073709551615ull
11738#define BIG32 4294967295ul
11739#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11740#if !BIG_OK
11741  your preprocessor is broken;
11742#endif
11743#if BIG_OK
11744#else
11745  your preprocessor is broken;
11746#endif
11747static long long int bignum = -9223372036854775807LL;
11748static unsigned long long int ubignum = BIG64;
11749
11750struct incomplete_array
11751{
11752  int datasize;
11753  double data[];
11754};
11755
11756struct named_init {
11757  int number;
11758  const wchar_t *name;
11759  double average;
11760};
11761
11762typedef const char *ccp;
11763
11764static inline int
11765test_restrict (ccp restrict text)
11766{
11767  // See if C++-style comments work.
11768  // Iterate through items via the restricted pointer.
11769  // Also check for declarations in for loops.
11770  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11771    continue;
11772  return 0;
11773}
11774
11775// Check varargs and va_copy.
11776static void
11777test_varargs (const char *format, ...)
11778{
11779  va_list args;
11780  va_start (args, format);
11781  va_list args_copy;
11782  va_copy (args_copy, args);
11783
11784  const char *str;
11785  int number;
11786  float fnumber;
11787
11788  while (*format)
11789    {
11790      switch (*format++)
11791	{
11792	case 's': // string
11793	  str = va_arg (args_copy, const char *);
11794	  break;
11795	case 'd': // int
11796	  number = va_arg (args_copy, int);
11797	  break;
11798	case 'f': // float
11799	  fnumber = va_arg (args_copy, double);
11800	  break;
11801	default:
11802	  break;
11803	}
11804    }
11805  va_end (args_copy);
11806  va_end (args);
11807}
11808
11809int
11810main ()
11811{
11812
11813  // Check bool.
11814  _Bool success = false;
11815
11816  // Check restrict.
11817  if (test_restrict ("String literal") == 0)
11818    success = true;
11819  char *restrict newvar = "Another string";
11820
11821  // Check varargs.
11822  test_varargs ("s, d' f .", "string", 65, 34.234);
11823  test_varargs_macros ();
11824
11825  // Check flexible array members.
11826  struct incomplete_array *ia =
11827    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11828  ia->datasize = 10;
11829  for (int i = 0; i < ia->datasize; ++i)
11830    ia->data[i] = i * 1.234;
11831
11832  // Check named initializers.
11833  struct named_init ni = {
11834    .number = 34,
11835    .name = L"Test wide string",
11836    .average = 543.34343,
11837  };
11838
11839  ni.number = 58;
11840
11841  int dynamic_array[ni.number];
11842  dynamic_array[ni.number - 1] = 543;
11843
11844  // work around unused variable warnings
11845  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11846	  || dynamic_array[ni.number - 1] != 543);
11847
11848  ;
11849  return 0;
11850}
11851_ACEOF
11852for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11853do
11854  CC="$ac_save_CC $ac_arg"
11855  if ac_fn_c_try_compile "$LINENO"; then :
11856  ac_cv_prog_cc_c99=$ac_arg
11857fi
11858rm -f core conftest.err conftest.$ac_objext
11859  test "x$ac_cv_prog_cc_c99" != "xno" && break
11860done
11861rm -f conftest.$ac_ext
11862CC=$ac_save_CC
11863
11864fi
11865# AC_CACHE_VAL
11866case "x$ac_cv_prog_cc_c99" in
11867  x)
11868    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11869$as_echo "none needed" >&6; } ;;
11870  xno)
11871    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11872$as_echo "unsupported" >&6; } ;;
11873  *)
11874    CC="$CC $ac_cv_prog_cc_c99"
11875    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11876$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11877esac
11878if test "x$ac_cv_prog_cc_c99" != xno; then :
11879
11880fi
11881
11882
11883
11884
11885if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11886	if test -n "$ac_tool_prefix"; then
11887  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11888set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
11891if ${ac_cv_path_PKG_CONFIG+:} false; then :
11892  $as_echo_n "(cached) " >&6
11893else
11894  case $PKG_CONFIG in
11895  [\\/]* | ?:[\\/]*)
11896  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11897  ;;
11898  *)
11899  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900for as_dir in $PATH
11901do
11902  IFS=$as_save_IFS
11903  test -z "$as_dir" && as_dir=.
11904    for ac_exec_ext in '' $ac_executable_extensions; do
11905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11906    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908    break 2
11909  fi
11910done
11911  done
11912IFS=$as_save_IFS
11913
11914  ;;
11915esac
11916fi
11917PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11918if test -n "$PKG_CONFIG"; then
11919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11920$as_echo "$PKG_CONFIG" >&6; }
11921else
11922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923$as_echo "no" >&6; }
11924fi
11925
11926
11927fi
11928if test -z "$ac_cv_path_PKG_CONFIG"; then
11929  ac_pt_PKG_CONFIG=$PKG_CONFIG
11930  # Extract the first word of "pkg-config", so it can be a program name with args.
11931set dummy pkg-config; ac_word=$2
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933$as_echo_n "checking for $ac_word... " >&6; }
11934if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11935  $as_echo_n "(cached) " >&6
11936else
11937  case $ac_pt_PKG_CONFIG in
11938  [\\/]* | ?:[\\/]*)
11939  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11940  ;;
11941  *)
11942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11943for as_dir in $PATH
11944do
11945  IFS=$as_save_IFS
11946  test -z "$as_dir" && as_dir=.
11947    for ac_exec_ext in '' $ac_executable_extensions; do
11948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11949    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951    break 2
11952  fi
11953done
11954  done
11955IFS=$as_save_IFS
11956
11957  ;;
11958esac
11959fi
11960ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11961if test -n "$ac_pt_PKG_CONFIG"; then
11962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11963$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11964else
11965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966$as_echo "no" >&6; }
11967fi
11968
11969  if test "x$ac_pt_PKG_CONFIG" = x; then
11970    PKG_CONFIG=""
11971  else
11972    case $cross_compiling:$ac_tool_warned in
11973yes:)
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11976ac_tool_warned=yes ;;
11977esac
11978    PKG_CONFIG=$ac_pt_PKG_CONFIG
11979  fi
11980else
11981  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11982fi
11983
11984fi
11985if test -n "$PKG_CONFIG"; then
11986	_pkg_min_version=0.9.0
11987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11988$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11989	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11990		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11991$as_echo "yes" >&6; }
11992	else
11993		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994$as_echo "no" >&6; }
11995		PKG_CONFIG=""
11996	fi
11997
11998fi
11999
12000
12001
12002
12003if  test "x$GCC" = xyes ; then
12004    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
12005-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
12006-Wbad-function-cast -Wformat=2"
12007    case `$CC -dumpversion` in
12008    3.4.* | 4.*)
12009	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
12010	;;
12011    esac
12012else
12013    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12014if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12015  SUNCC="yes"
12016else
12017  SUNCC="no"
12018fi
12019
12020    if test "x$SUNCC" = "xyes"; then
12021	CWARNFLAGS="-v"
12022    fi
12023fi
12024
12025
12026
12027# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
12028
12029
12030
12031# Check whether --enable-strict-compilation was given.
12032if test "${enable_strict_compilation+set}" = set; then :
12033  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12034else
12035  STRICT_COMPILE=no
12036fi
12037
12038if test "x$STRICT_COMPILE" = "xyes"; then
12039	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12040if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12041  SUNCC="yes"
12042else
12043  SUNCC="no"
12044fi
12045
12046	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12047if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12048  INTELCC="yes"
12049else
12050  INTELCC="no"
12051fi
12052
12053	if test "x$GCC" = xyes ; then
12054		STRICT_CFLAGS="-pedantic -Werror"
12055	elif test "x$SUNCC" = "xyes"; then
12056		STRICT_CFLAGS="-errwarn"
12057    elif test "x$INTELCC" = "xyes"; then
12058		STRICT_CFLAGS="-Werror"
12059	fi
12060fi
12061CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12062
12063
12064
12065
12066cat >>confdefs.h <<_ACEOF
12067#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12068_ACEOF
12069
12070	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12071	if test "x$PVM" = "x"; then
12072		PVM="0"
12073	fi
12074
12075cat >>confdefs.h <<_ACEOF
12076#define PACKAGE_VERSION_MINOR $PVM
12077_ACEOF
12078
12079	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12080	if test "x$PVP" = "x"; then
12081		PVP="0"
12082	fi
12083
12084cat >>confdefs.h <<_ACEOF
12085#define PACKAGE_VERSION_PATCHLEVEL $PVP
12086_ACEOF
12087
12088
12089
12090CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
12091mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12092|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
12093echo 'git directory not found: installing possibly empty changelog.' >&2)"
12094
12095
12096
12097
12098macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12099INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12100mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12101|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
12102echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
12103
12104
12105
12106
12107
12108
12109if test x$APP_MAN_SUFFIX = x    ; then
12110    APP_MAN_SUFFIX=1
12111fi
12112if test x$APP_MAN_DIR = x    ; then
12113    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12114fi
12115
12116if test x$LIB_MAN_SUFFIX = x    ; then
12117    LIB_MAN_SUFFIX=3
12118fi
12119if test x$LIB_MAN_DIR = x    ; then
12120    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12121fi
12122
12123if test x$FILE_MAN_SUFFIX = x    ; then
12124    case $host_os in
12125	solaris*)	FILE_MAN_SUFFIX=4  ;;
12126	*)		FILE_MAN_SUFFIX=5  ;;
12127    esac
12128fi
12129if test x$FILE_MAN_DIR = x    ; then
12130    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12131fi
12132
12133if test x$MISC_MAN_SUFFIX = x    ; then
12134    case $host_os in
12135	solaris*)	MISC_MAN_SUFFIX=5  ;;
12136	*)		MISC_MAN_SUFFIX=7  ;;
12137    esac
12138fi
12139if test x$MISC_MAN_DIR = x    ; then
12140    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12141fi
12142
12143if test x$DRIVER_MAN_SUFFIX = x    ; then
12144    case $host_os in
12145	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
12146	*)		DRIVER_MAN_SUFFIX=4  ;;
12147    esac
12148fi
12149if test x$DRIVER_MAN_DIR = x    ; then
12150    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12151fi
12152
12153if test x$ADMIN_MAN_SUFFIX = x    ; then
12154    case $host_os in
12155	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
12156	*)		ADMIN_MAN_SUFFIX=8  ;;
12157    esac
12158fi
12159if test x$ADMIN_MAN_DIR = x    ; then
12160    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12161fi
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177XORG_MAN_PAGE="X Version 11"
12178
12179MAN_SUBSTS="\
12180	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12181	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12182	-e 's|__xservername__|Xorg|g' \
12183	-e 's|__xconfigfile__|xorg.conf|g' \
12184	-e 's|__projectroot__|\$(prefix)|g' \
12185	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12186	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12187	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12188	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12189	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12190	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12191	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12192
12193
12194
12195# Check whether --enable-silent-rules was given.
12196if test "${enable_silent_rules+set}" = set; then :
12197  enableval=$enable_silent_rules;
12198fi
12199
12200case $enable_silent_rules in
12201yes) AM_DEFAULT_VERBOSITY=0;;
12202no)  AM_DEFAULT_VERBOSITY=1;;
12203*)   AM_DEFAULT_VERBOSITY=0;;
12204esac
12205AM_BACKSLASH='\'
12206
12207
12208
12209
12210# Check whether --enable-specs was given.
12211if test "${enable_specs+set}" = set; then :
12212  enableval=$enable_specs; build_specs=$enableval
12213else
12214  build_specs=yes
12215fi
12216
12217
12218 if test x$build_specs = xyes; then
12219  ENABLE_SPECS_TRUE=
12220  ENABLE_SPECS_FALSE='#'
12221else
12222  ENABLE_SPECS_TRUE='#'
12223  ENABLE_SPECS_FALSE=
12224fi
12225
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
12227$as_echo_n "checking whether to build functional specifications... " >&6; }
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
12229$as_echo "$build_specs" >&6; }
12230
12231
12232
12233
12234
12235# Check whether --with-xmlto was given.
12236if test "${with_xmlto+set}" = set; then :
12237  withval=$with_xmlto; use_xmlto=$withval
12238else
12239  use_xmlto=auto
12240fi
12241
12242
12243
12244if test "x$use_xmlto" = x"auto"; then
12245   # Extract the first word of "xmlto", so it can be a program name with args.
12246set dummy xmlto; ac_word=$2
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248$as_echo_n "checking for $ac_word... " >&6; }
12249if ${ac_cv_path_XMLTO+:} false; then :
12250  $as_echo_n "(cached) " >&6
12251else
12252  case $XMLTO in
12253  [\\/]* | ?:[\\/]*)
12254  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12255  ;;
12256  *)
12257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258for as_dir in $PATH
12259do
12260  IFS=$as_save_IFS
12261  test -z "$as_dir" && as_dir=.
12262    for ac_exec_ext in '' $ac_executable_extensions; do
12263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12264    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12266    break 2
12267  fi
12268done
12269  done
12270IFS=$as_save_IFS
12271
12272  ;;
12273esac
12274fi
12275XMLTO=$ac_cv_path_XMLTO
12276if test -n "$XMLTO"; then
12277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12278$as_echo "$XMLTO" >&6; }
12279else
12280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281$as_echo "no" >&6; }
12282fi
12283
12284
12285   if test "x$XMLTO" = "x"; then
12286        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
12287$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
12288	have_xmlto=no
12289   else
12290        have_xmlto=yes
12291   fi
12292elif test "x$use_xmlto" = x"yes" ; then
12293   # Extract the first word of "xmlto", so it can be a program name with args.
12294set dummy xmlto; ac_word=$2
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296$as_echo_n "checking for $ac_word... " >&6; }
12297if ${ac_cv_path_XMLTO+:} false; then :
12298  $as_echo_n "(cached) " >&6
12299else
12300  case $XMLTO in
12301  [\\/]* | ?:[\\/]*)
12302  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12303  ;;
12304  *)
12305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308  IFS=$as_save_IFS
12309  test -z "$as_dir" && as_dir=.
12310    for ac_exec_ext in '' $ac_executable_extensions; do
12311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314    break 2
12315  fi
12316done
12317  done
12318IFS=$as_save_IFS
12319
12320  ;;
12321esac
12322fi
12323XMLTO=$ac_cv_path_XMLTO
12324if test -n "$XMLTO"; then
12325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12326$as_echo "$XMLTO" >&6; }
12327else
12328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329$as_echo "no" >&6; }
12330fi
12331
12332
12333   if test "x$XMLTO" = "x"; then
12334        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
12335   fi
12336   have_xmlto=yes
12337elif test "x$use_xmlto" = x"no" ; then
12338   if test "x$XMLTO" != "x"; then
12339      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
12340$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
12341   fi
12342   have_xmlto=no
12343else
12344   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
12345fi
12346
12347# Test for a minimum version of xmlto, if provided.
12348if test "$have_xmlto" = yes; then
12349    # scrape the xmlto version
12350    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
12351$as_echo_n "checking the xmlto version... " >&6; }
12352    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
12353    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
12354$as_echo "$xmlto_version" >&6; }
12355    as_arg_v1=$xmlto_version
12356as_arg_v2=0.0.22
12357awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12358case $? in #(
12359  1) :
12360    if test "x$use_xmlto" = xauto; then
12361            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
12362$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
12363            have_xmlto=no
12364        else
12365            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
12366        fi ;; #(
12367  0) :
12368     ;; #(
12369  2) :
12370     ;; #(
12371  *) :
12372     ;;
12373esac
12374fi
12375
12376# Test for the ability of xmlto to generate a text target
12377have_xmlto_text=no
12378cat > conftest.xml << "EOF"
12379EOF
12380if test "$have_xmlto" = yes; then :
12381  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
12382  have_xmlto_text=yes
12383else
12384  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
12385$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
12386fi
12387fi
12388rm -f conftest.xml
12389 if test $have_xmlto_text = yes; then
12390  HAVE_XMLTO_TEXT_TRUE=
12391  HAVE_XMLTO_TEXT_FALSE='#'
12392else
12393  HAVE_XMLTO_TEXT_TRUE='#'
12394  HAVE_XMLTO_TEXT_FALSE=
12395fi
12396
12397 if test "$have_xmlto" = yes; then
12398  HAVE_XMLTO_TRUE=
12399  HAVE_XMLTO_FALSE='#'
12400else
12401  HAVE_XMLTO_TRUE='#'
12402  HAVE_XMLTO_FALSE=
12403fi
12404
12405
12406
12407
12408
12409
12410# Check whether --with-fop was given.
12411if test "${with_fop+set}" = set; then :
12412  withval=$with_fop; use_fop=$withval
12413else
12414  use_fop=no
12415fi
12416
12417
12418
12419if test "x$use_fop" = x"auto"; then
12420   # Extract the first word of "fop", so it can be a program name with args.
12421set dummy fop; ac_word=$2
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12423$as_echo_n "checking for $ac_word... " >&6; }
12424if ${ac_cv_path_FOP+:} false; then :
12425  $as_echo_n "(cached) " >&6
12426else
12427  case $FOP in
12428  [\\/]* | ?:[\\/]*)
12429  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12430  ;;
12431  *)
12432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433for as_dir in $PATH
12434do
12435  IFS=$as_save_IFS
12436  test -z "$as_dir" && as_dir=.
12437    for ac_exec_ext in '' $ac_executable_extensions; do
12438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12439    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12441    break 2
12442  fi
12443done
12444  done
12445IFS=$as_save_IFS
12446
12447  ;;
12448esac
12449fi
12450FOP=$ac_cv_path_FOP
12451if test -n "$FOP"; then
12452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12453$as_echo "$FOP" >&6; }
12454else
12455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456$as_echo "no" >&6; }
12457fi
12458
12459
12460   if test "x$FOP" = "x"; then
12461        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
12462$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
12463	have_fop=no
12464   else
12465        have_fop=yes
12466   fi
12467elif test "x$use_fop" = x"yes" ; then
12468   # Extract the first word of "fop", so it can be a program name with args.
12469set dummy fop; ac_word=$2
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471$as_echo_n "checking for $ac_word... " >&6; }
12472if ${ac_cv_path_FOP+:} false; then :
12473  $as_echo_n "(cached) " >&6
12474else
12475  case $FOP in
12476  [\\/]* | ?:[\\/]*)
12477  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12478  ;;
12479  *)
12480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481for as_dir in $PATH
12482do
12483  IFS=$as_save_IFS
12484  test -z "$as_dir" && as_dir=.
12485    for ac_exec_ext in '' $ac_executable_extensions; do
12486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489    break 2
12490  fi
12491done
12492  done
12493IFS=$as_save_IFS
12494
12495  ;;
12496esac
12497fi
12498FOP=$ac_cv_path_FOP
12499if test -n "$FOP"; then
12500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12501$as_echo "$FOP" >&6; }
12502else
12503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504$as_echo "no" >&6; }
12505fi
12506
12507
12508   if test "x$FOP" = "x"; then
12509        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
12510   fi
12511   have_fop=yes
12512elif test "x$use_fop" = x"no" ; then
12513   if test "x$FOP" != "x"; then
12514      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
12515$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
12516   fi
12517   have_fop=no
12518else
12519   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
12520fi
12521 if test "$have_fop" = yes; then
12522  HAVE_FOP_TRUE=
12523  HAVE_FOP_FALSE='#'
12524else
12525  HAVE_FOP_TRUE='#'
12526  HAVE_FOP_FALSE=
12527fi
12528
12529
12530
12531
12532
12533
12534# Check whether --with-xsltproc was given.
12535if test "${with_xsltproc+set}" = set; then :
12536  withval=$with_xsltproc; use_xsltproc=$withval
12537else
12538  use_xsltproc=auto
12539fi
12540
12541
12542
12543if test "x$use_xsltproc" = x"auto"; then
12544   # Extract the first word of "xsltproc", so it can be a program name with args.
12545set dummy xsltproc; ac_word=$2
12546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547$as_echo_n "checking for $ac_word... " >&6; }
12548if ${ac_cv_path_XSLTPROC+:} false; then :
12549  $as_echo_n "(cached) " >&6
12550else
12551  case $XSLTPROC in
12552  [\\/]* | ?:[\\/]*)
12553  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12554  ;;
12555  *)
12556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557for as_dir in $PATH
12558do
12559  IFS=$as_save_IFS
12560  test -z "$as_dir" && as_dir=.
12561    for ac_exec_ext in '' $ac_executable_extensions; do
12562  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12563    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565    break 2
12566  fi
12567done
12568  done
12569IFS=$as_save_IFS
12570
12571  ;;
12572esac
12573fi
12574XSLTPROC=$ac_cv_path_XSLTPROC
12575if test -n "$XSLTPROC"; then
12576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12577$as_echo "$XSLTPROC" >&6; }
12578else
12579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580$as_echo "no" >&6; }
12581fi
12582
12583
12584   if test "x$XSLTPROC" = "x"; then
12585        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
12586$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
12587	have_xsltproc=no
12588   else
12589        have_xsltproc=yes
12590   fi
12591elif test "x$use_xsltproc" = x"yes" ; then
12592   # Extract the first word of "xsltproc", so it can be a program name with args.
12593set dummy xsltproc; ac_word=$2
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595$as_echo_n "checking for $ac_word... " >&6; }
12596if ${ac_cv_path_XSLTPROC+:} false; then :
12597  $as_echo_n "(cached) " >&6
12598else
12599  case $XSLTPROC in
12600  [\\/]* | ?:[\\/]*)
12601  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12602  ;;
12603  *)
12604  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605for as_dir in $PATH
12606do
12607  IFS=$as_save_IFS
12608  test -z "$as_dir" && as_dir=.
12609    for ac_exec_ext in '' $ac_executable_extensions; do
12610  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12611    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613    break 2
12614  fi
12615done
12616  done
12617IFS=$as_save_IFS
12618
12619  ;;
12620esac
12621fi
12622XSLTPROC=$ac_cv_path_XSLTPROC
12623if test -n "$XSLTPROC"; then
12624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12625$as_echo "$XSLTPROC" >&6; }
12626else
12627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628$as_echo "no" >&6; }
12629fi
12630
12631
12632   if test "x$XSLTPROC" = "x"; then
12633        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
12634   fi
12635   have_xsltproc=yes
12636elif test "x$use_xsltproc" = x"no" ; then
12637   if test "x$XSLTPROC" != "x"; then
12638      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
12639$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
12640   fi
12641   have_xsltproc=no
12642else
12643   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
12644fi
12645
12646# Checking for minimum version is not implemented
12647# but we want to keep the interface consistent with other commands
12648
12649
12650 if test "$have_xsltproc" = yes; then
12651  HAVE_XSLTPROC_TRUE=
12652  HAVE_XSLTPROC_FALSE='#'
12653else
12654  HAVE_XSLTPROC_TRUE='#'
12655  HAVE_XSLTPROC_FALSE=
12656fi
12657
12658
12659
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5
12661$as_echo_n "checking for X.Org SGML entities >= 1.7... " >&6; }
12662XORG_SGML_PATH=
12663if test -n "$PKG_CONFIG" && \
12664    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5
12665  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5
12666  ac_status=$?
12667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12668  test $ac_status = 0; }; then
12669  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
12670else
12671  :
12672
12673fi
12674
12675# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
12676# the path and the name of the doc stylesheet
12677if test "x$XORG_SGML_PATH" != "x" ; then
12678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
12679$as_echo "$XORG_SGML_PATH" >&6; }
12680   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
12681   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
12682else
12683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684$as_echo "no" >&6; }
12685fi
12686
12687
12688
12689
12690 if test "x$XSL_STYLESHEET" != "x"; then
12691  HAVE_STYLESHEETS_TRUE=
12692  HAVE_STYLESHEETS_FALSE='#'
12693else
12694  HAVE_STYLESHEETS_TRUE='#'
12695  HAVE_STYLESHEETS_FALSE=
12696fi
12697
12698
12699
12700
12701for ac_prog in cpp
12702do
12703  # Extract the first word of "$ac_prog", so it can be a program name with args.
12704set dummy $ac_prog; ac_word=$2
12705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706$as_echo_n "checking for $ac_word... " >&6; }
12707if ${ac_cv_path_RAWCPP+:} false; then :
12708  $as_echo_n "(cached) " >&6
12709else
12710  case $RAWCPP in
12711  [\\/]* | ?:[\\/]*)
12712  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12713  ;;
12714  *)
12715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12717for as_dir in $as_dummy
12718do
12719  IFS=$as_save_IFS
12720  test -z "$as_dir" && as_dir=.
12721    for ac_exec_ext in '' $ac_executable_extensions; do
12722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12723    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725    break 2
12726  fi
12727done
12728  done
12729IFS=$as_save_IFS
12730
12731  ;;
12732esac
12733fi
12734RAWCPP=$ac_cv_path_RAWCPP
12735if test -n "$RAWCPP"; then
12736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
12737$as_echo "$RAWCPP" >&6; }
12738else
12739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740$as_echo "no" >&6; }
12741fi
12742
12743
12744  test -n "$RAWCPP" && break
12745done
12746test -n "$RAWCPP" || RAWCPP="${CPP}"
12747
12748
12749# Check for flag to avoid builtin definitions - assumes unix is predefined,
12750# which is not the best choice for supporting other OS'es, but covers most
12751# of the ones we need for now.
12752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
12753$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
12754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755/* end confdefs.h.  */
12756Does cpp redefine unix ?
12757_ACEOF
12758if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12759	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760$as_echo "no" >&6; }
12761else
12762	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12763		RAWCPPFLAGS=-undef
12764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12765$as_echo "yes" >&6; }
12766	# under Cygwin unix is still defined even with -undef
12767	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12768		RAWCPPFLAGS="-undef -ansi"
12769		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
12770$as_echo "yes, with -ansi" >&6; }
12771	else
12772		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
12773	fi
12774fi
12775rm -f conftest.$ac_ext
12776
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
12778$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
12779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780/* end confdefs.h.  */
12781Does cpp preserve   "whitespace"?
12782_ACEOF
12783if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12784	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785$as_echo "no" >&6; }
12786else
12787	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12788		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12789		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12790$as_echo "yes" >&6; }
12791	else
12792		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
12793	fi
12794fi
12795rm -f conftest.$ac_ext
12796
12797
12798
12799# Required when PKG_CHECK_MODULES called within an if statement
12800
12801
12802if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12803	if test -n "$ac_tool_prefix"; then
12804  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12805set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807$as_echo_n "checking for $ac_word... " >&6; }
12808if ${ac_cv_path_PKG_CONFIG+:} false; then :
12809  $as_echo_n "(cached) " >&6
12810else
12811  case $PKG_CONFIG in
12812  [\\/]* | ?:[\\/]*)
12813  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12814  ;;
12815  *)
12816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817for as_dir in $PATH
12818do
12819  IFS=$as_save_IFS
12820  test -z "$as_dir" && as_dir=.
12821    for ac_exec_ext in '' $ac_executable_extensions; do
12822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12823    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825    break 2
12826  fi
12827done
12828  done
12829IFS=$as_save_IFS
12830
12831  ;;
12832esac
12833fi
12834PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12835if test -n "$PKG_CONFIG"; then
12836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12837$as_echo "$PKG_CONFIG" >&6; }
12838else
12839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840$as_echo "no" >&6; }
12841fi
12842
12843
12844fi
12845if test -z "$ac_cv_path_PKG_CONFIG"; then
12846  ac_pt_PKG_CONFIG=$PKG_CONFIG
12847  # Extract the first word of "pkg-config", so it can be a program name with args.
12848set dummy pkg-config; ac_word=$2
12849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850$as_echo_n "checking for $ac_word... " >&6; }
12851if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12852  $as_echo_n "(cached) " >&6
12853else
12854  case $ac_pt_PKG_CONFIG in
12855  [\\/]* | ?:[\\/]*)
12856  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12857  ;;
12858  *)
12859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860for as_dir in $PATH
12861do
12862  IFS=$as_save_IFS
12863  test -z "$as_dir" && as_dir=.
12864    for ac_exec_ext in '' $ac_executable_extensions; do
12865  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12866    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868    break 2
12869  fi
12870done
12871  done
12872IFS=$as_save_IFS
12873
12874  ;;
12875esac
12876fi
12877ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12878if test -n "$ac_pt_PKG_CONFIG"; then
12879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12880$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12881else
12882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
12884fi
12885
12886  if test "x$ac_pt_PKG_CONFIG" = x; then
12887    PKG_CONFIG=""
12888  else
12889    case $cross_compiling:$ac_tool_warned in
12890yes:)
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12893ac_tool_warned=yes ;;
12894esac
12895    PKG_CONFIG=$ac_pt_PKG_CONFIG
12896  fi
12897else
12898  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12899fi
12900
12901fi
12902if test -n "$PKG_CONFIG"; then
12903	_pkg_min_version=0.9.0
12904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12905$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12906	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12907		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12908$as_echo "yes" >&6; }
12909	else
12910		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
12912		PKG_CONFIG=""
12913	fi
12914
12915fi
12916
12917if test x"$CC_FOR_BUILD" = x; then
12918	if test x"$cross_compiling" = xyes; then
12919	       for ac_prog in gcc cc
12920do
12921  # Extract the first word of "$ac_prog", so it can be a program name with args.
12922set dummy $ac_prog; ac_word=$2
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924$as_echo_n "checking for $ac_word... " >&6; }
12925if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
12926  $as_echo_n "(cached) " >&6
12927else
12928  if test -n "$CC_FOR_BUILD"; then
12929  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
12930else
12931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12932for as_dir in $PATH
12933do
12934  IFS=$as_save_IFS
12935  test -z "$as_dir" && as_dir=.
12936    for ac_exec_ext in '' $ac_executable_extensions; do
12937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12938    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
12939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12940    break 2
12941  fi
12942done
12943  done
12944IFS=$as_save_IFS
12945
12946fi
12947fi
12948CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
12949if test -n "$CC_FOR_BUILD"; then
12950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
12951$as_echo "$CC_FOR_BUILD" >&6; }
12952else
12953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954$as_echo "no" >&6; }
12955fi
12956
12957
12958  test -n "$CC_FOR_BUILD" && break
12959done
12960
12961	else
12962	       CC_FOR_BUILD="$CC"
12963	fi
12964fi
12965
12966
12967if test x"$CPPFLAGS_FOR_BUILD" = x; then
12968	if test ! x"$cross_compiling" = xyes; then
12969		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
12970	fi
12971fi
12972
12973
12974if test x"$CFLAGS_FOR_BUILD" = x; then
12975	if test ! x"$cross_compiling" = xyes; then
12976		CFLAGS_FOR_BUILD=${CFLAGS}
12977	fi
12978fi
12979
12980
12981if test x"$LDFLAGS_FOR_BUILD" = x; then
12982	if test ! x"$cross_compiling" = xyes; then
12983		LDFLAGS_FOR_BUILD=${LDFLAGS}
12984	fi
12985fi
12986
12987
12988# Find perl for "make check" tests in nls/Makefile.am
12989
12990# Check whether --with-perl was given.
12991if test "${with_perl+set}" = set; then :
12992  withval=$with_perl; PERL=$withval ; { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl" >&5
12993$as_echo_n "checking perl... " >&6; } ;
12994	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (from --with-perl) $PERL" >&5
12995$as_echo "(from --with-perl) $PERL" >&6; }
12996else
12997  for ac_prog in perl
12998do
12999  # Extract the first word of "$ac_prog", so it can be a program name with args.
13000set dummy $ac_prog; ac_word=$2
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002$as_echo_n "checking for $ac_word... " >&6; }
13003if ${ac_cv_prog_PERL+:} false; then :
13004  $as_echo_n "(cached) " >&6
13005else
13006  if test -n "$PERL"; then
13007  ac_cv_prog_PERL="$PERL" # Let the user override the test.
13008else
13009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010for as_dir in $PATH
13011do
13012  IFS=$as_save_IFS
13013  test -z "$as_dir" && as_dir=.
13014    for ac_exec_ext in '' $ac_executable_extensions; do
13015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13016    ac_cv_prog_PERL="$ac_prog"
13017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018    break 2
13019  fi
13020done
13021  done
13022IFS=$as_save_IFS
13023
13024fi
13025fi
13026PERL=$ac_cv_prog_PERL
13027if test -n "$PERL"; then
13028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13029$as_echo "$PERL" >&6; }
13030else
13031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032$as_echo "no" >&6; }
13033fi
13034
13035
13036  test -n "$PERL" && break
13037done
13038test -n "$PERL" || PERL="no"
13039
13040fi
13041
13042 if test x$PERL != xno; then
13043  HAVE_PERL_TRUE=
13044  HAVE_PERL_FALSE='#'
13045else
13046  HAVE_PERL_TRUE='#'
13047  HAVE_PERL_FALSE=
13048fi
13049
13050
13051# Checks for pkg-config packages
13052
13053# Always required
13054X11_REQUIRES='xproto >= 7.0.13 xextproto xtrans xcb >= 1.1.92'
13055X11_EXTRA_DEPS="xcb >= 1.1.92"
13056
13057
13058
13059if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13060	if test -n "$ac_tool_prefix"; then
13061  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13062set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064$as_echo_n "checking for $ac_word... " >&6; }
13065if ${ac_cv_path_PKG_CONFIG+:} false; then :
13066  $as_echo_n "(cached) " >&6
13067else
13068  case $PKG_CONFIG in
13069  [\\/]* | ?:[\\/]*)
13070  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13071  ;;
13072  *)
13073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074for as_dir in $PATH
13075do
13076  IFS=$as_save_IFS
13077  test -z "$as_dir" && as_dir=.
13078    for ac_exec_ext in '' $ac_executable_extensions; do
13079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13080    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082    break 2
13083  fi
13084done
13085  done
13086IFS=$as_save_IFS
13087
13088  ;;
13089esac
13090fi
13091PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13092if test -n "$PKG_CONFIG"; then
13093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13094$as_echo "$PKG_CONFIG" >&6; }
13095else
13096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097$as_echo "no" >&6; }
13098fi
13099
13100
13101fi
13102if test -z "$ac_cv_path_PKG_CONFIG"; then
13103  ac_pt_PKG_CONFIG=$PKG_CONFIG
13104  # Extract the first word of "pkg-config", so it can be a program name with args.
13105set dummy pkg-config; ac_word=$2
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107$as_echo_n "checking for $ac_word... " >&6; }
13108if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13109  $as_echo_n "(cached) " >&6
13110else
13111  case $ac_pt_PKG_CONFIG in
13112  [\\/]* | ?:[\\/]*)
13113  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13114  ;;
13115  *)
13116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117for as_dir in $PATH
13118do
13119  IFS=$as_save_IFS
13120  test -z "$as_dir" && as_dir=.
13121    for ac_exec_ext in '' $ac_executable_extensions; do
13122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13123    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13125    break 2
13126  fi
13127done
13128  done
13129IFS=$as_save_IFS
13130
13131  ;;
13132esac
13133fi
13134ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13135if test -n "$ac_pt_PKG_CONFIG"; then
13136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13137$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13138else
13139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140$as_echo "no" >&6; }
13141fi
13142
13143  if test "x$ac_pt_PKG_CONFIG" = x; then
13144    PKG_CONFIG=""
13145  else
13146    case $cross_compiling:$ac_tool_warned in
13147yes:)
13148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13150ac_tool_warned=yes ;;
13151esac
13152    PKG_CONFIG=$ac_pt_PKG_CONFIG
13153  fi
13154else
13155  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13156fi
13157
13158fi
13159if test -n "$PKG_CONFIG"; then
13160	_pkg_min_version=0.9.0
13161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13162$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13163	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13164		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13165$as_echo "yes" >&6; }
13166	else
13167		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168$as_echo "no" >&6; }
13169		PKG_CONFIG=""
13170	fi
13171
13172fi
13173
13174
13175
13176# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
13177# was not expanded, since libX11 with no transport types is rather useless.
13178#
13179# If you're seeing an error here, be sure you installed the lib/xtrans module
13180# first and if it's not in the default location, that you set the ACLOCAL
13181# environment variable to find it, such as:
13182#	ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
13183
13184
13185# Transport selection macro from xtrans.m4
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13187$as_echo_n "checking return type of signal handlers... " >&6; }
13188if ${ac_cv_type_signal+:} false; then :
13189  $as_echo_n "(cached) " >&6
13190else
13191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192/* end confdefs.h.  */
13193#include <sys/types.h>
13194#include <signal.h>
13195
13196int
13197main ()
13198{
13199return *(signal (0, 0)) (0) == 1;
13200  ;
13201  return 0;
13202}
13203_ACEOF
13204if ac_fn_c_try_compile "$LINENO"; then :
13205  ac_cv_type_signal=int
13206else
13207  ac_cv_type_signal=void
13208fi
13209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210fi
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13212$as_echo "$ac_cv_type_signal" >&6; }
13213
13214cat >>confdefs.h <<_ACEOF
13215#define RETSIGTYPE $ac_cv_type_signal
13216_ACEOF
13217
13218
13219
13220
13221
13222 case $host_os in
13223	mingw*)	unixdef="no"   ;;
13224	*)	unixdef="yes"  ;;
13225 esac
13226 # Check whether --enable-unix-transport was given.
13227if test "${enable_unix_transport+set}" = set; then :
13228  enableval=$enable_unix_transport; UNIXCONN=$enableval
13229else
13230  UNIXCONN=$unixdef
13231fi
13232
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
13234$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
13235 if test "$UNIXCONN" = "yes"; then
13236
13237$as_echo "#define UNIXCONN 1" >>confdefs.h
13238
13239 fi
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
13241$as_echo "$UNIXCONN" >&6; }
13242 # Check whether --enable-tcp-transport was given.
13243if test "${enable_tcp_transport+set}" = set; then :
13244  enableval=$enable_tcp_transport; TCPCONN=$enableval
13245else
13246  TCPCONN=yes
13247fi
13248
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
13250$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
13252$as_echo "$TCPCONN" >&6; }
13253 if test "$TCPCONN" = "yes"; then
13254
13255$as_echo "#define TCPCONN 1" >>confdefs.h
13256
13257
13258 # SVR4 hides these in libraries other than libc
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13260$as_echo_n "checking for library containing socket... " >&6; }
13261if ${ac_cv_search_socket+:} false; then :
13262  $as_echo_n "(cached) " >&6
13263else
13264  ac_func_search_save_LIBS=$LIBS
13265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266/* end confdefs.h.  */
13267
13268/* Override any GCC internal prototype to avoid an error.
13269   Use char because int might match the return type of a GCC
13270   builtin and then its argument prototype would still apply.  */
13271#ifdef __cplusplus
13272extern "C"
13273#endif
13274char socket ();
13275int
13276main ()
13277{
13278return socket ();
13279  ;
13280  return 0;
13281}
13282_ACEOF
13283for ac_lib in '' socket; do
13284  if test -z "$ac_lib"; then
13285    ac_res="none required"
13286  else
13287    ac_res=-l$ac_lib
13288    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13289  fi
13290  if ac_fn_c_try_link "$LINENO"; then :
13291  ac_cv_search_socket=$ac_res
13292fi
13293rm -f core conftest.err conftest.$ac_objext \
13294    conftest$ac_exeext
13295  if ${ac_cv_search_socket+:} false; then :
13296  break
13297fi
13298done
13299if ${ac_cv_search_socket+:} false; then :
13300
13301else
13302  ac_cv_search_socket=no
13303fi
13304rm conftest.$ac_ext
13305LIBS=$ac_func_search_save_LIBS
13306fi
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13308$as_echo "$ac_cv_search_socket" >&6; }
13309ac_res=$ac_cv_search_socket
13310if test "$ac_res" != no; then :
13311  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13312
13313fi
13314
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13316$as_echo_n "checking for library containing gethostbyname... " >&6; }
13317if ${ac_cv_search_gethostbyname+:} false; then :
13318  $as_echo_n "(cached) " >&6
13319else
13320  ac_func_search_save_LIBS=$LIBS
13321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322/* end confdefs.h.  */
13323
13324/* Override any GCC internal prototype to avoid an error.
13325   Use char because int might match the return type of a GCC
13326   builtin and then its argument prototype would still apply.  */
13327#ifdef __cplusplus
13328extern "C"
13329#endif
13330char gethostbyname ();
13331int
13332main ()
13333{
13334return gethostbyname ();
13335  ;
13336  return 0;
13337}
13338_ACEOF
13339for ac_lib in '' nsl; do
13340  if test -z "$ac_lib"; then
13341    ac_res="none required"
13342  else
13343    ac_res=-l$ac_lib
13344    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13345  fi
13346  if ac_fn_c_try_link "$LINENO"; then :
13347  ac_cv_search_gethostbyname=$ac_res
13348fi
13349rm -f core conftest.err conftest.$ac_objext \
13350    conftest$ac_exeext
13351  if ${ac_cv_search_gethostbyname+:} false; then :
13352  break
13353fi
13354done
13355if ${ac_cv_search_gethostbyname+:} false; then :
13356
13357else
13358  ac_cv_search_gethostbyname=no
13359fi
13360rm conftest.$ac_ext
13361LIBS=$ac_func_search_save_LIBS
13362fi
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13364$as_echo "$ac_cv_search_gethostbyname" >&6; }
13365ac_res=$ac_cv_search_gethostbyname
13366if test "$ac_res" != no; then :
13367  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13368
13369fi
13370
13371 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
13372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
13373$as_echo_n "checking for main in -lws2_32... " >&6; }
13374if ${ac_cv_lib_ws2_32_main+:} false; then :
13375  $as_echo_n "(cached) " >&6
13376else
13377  ac_check_lib_save_LIBS=$LIBS
13378LIBS="-lws2_32  $LIBS"
13379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380/* end confdefs.h.  */
13381
13382
13383int
13384main ()
13385{
13386return main ();
13387  ;
13388  return 0;
13389}
13390_ACEOF
13391if ac_fn_c_try_link "$LINENO"; then :
13392  ac_cv_lib_ws2_32_main=yes
13393else
13394  ac_cv_lib_ws2_32_main=no
13395fi
13396rm -f core conftest.err conftest.$ac_objext \
13397    conftest$ac_exeext conftest.$ac_ext
13398LIBS=$ac_check_lib_save_LIBS
13399fi
13400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
13401$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
13402if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
13403  cat >>confdefs.h <<_ACEOF
13404#define HAVE_LIBWS2_32 1
13405_ACEOF
13406
13407  LIBS="-lws2_32 $LIBS"
13408
13409fi
13410ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
13411
13412 fi
13413
13414 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
13415 # Check whether --enable-ipv6 was given.
13416if test "${enable_ipv6+set}" = set; then :
13417  enableval=$enable_ipv6; IPV6CONN=$enableval
13418else
13419  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13420if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13421  IPV6CONN=yes
13422else
13423  IPV6CONN=no
13424fi
13425
13426fi
13427
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
13429$as_echo_n "checking if IPv6 support should be built... " >&6; }
13430 if test "$IPV6CONN" = "yes"; then
13431
13432$as_echo "#define IPv6 1" >>confdefs.h
13433
13434 fi
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
13436$as_echo "$IPV6CONN" >&6; }
13437
13438 # 4.3BSD-Reno added a new member to struct sockaddr_in
13439 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
13440#include <sys/types.h>
13441#include <sys/socket.h>
13442#include <netinet/in.h>
13443
13444"
13445if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13446
13447$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
13448
13449fi
13450
13451
13452 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
13453 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13454$ac_includes_default
13455#include <sys/socket.h>
13456"
13457if test "x$ac_cv_type_socklen_t" = xyes; then :
13458
13459cat >>confdefs.h <<_ACEOF
13460#define HAVE_SOCKLEN_T 1
13461_ACEOF
13462
13463
13464fi
13465
13466
13467
13468 fi
13469 case $host_os in
13470	solaris*|sco*|sysv4*)	localdef="yes" ;;
13471	*)			localdef="no"  ;;
13472 esac
13473 # Check whether --enable-local-transport was given.
13474if test "${enable_local_transport+set}" = set; then :
13475  enableval=$enable_local_transport; LOCALCONN=$enableval
13476else
13477  LOCALCONN=$localdef
13478fi
13479
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
13481$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
13483$as_echo "$LOCALCONN" >&6; }
13484 if test "$LOCALCONN" = "yes"; then
13485
13486$as_echo "#define LOCALCONN 1" >>confdefs.h
13487
13488 fi
13489
13490
13491
13492# Secure RPC detection macro from xtrans.m4
13493
13494 # Check whether --enable-secure-rpc was given.
13495if test "${enable_secure_rpc+set}" = set; then :
13496  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
13497else
13498  SECURE_RPC="try"
13499fi
13500
13501
13502 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
13503	FOUND_SECURE_RPC="no"
13504	for ac_func in authdes_seccreate authdes_create
13505do :
13506  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13507ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13508if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13509  cat >>confdefs.h <<_ACEOF
13510#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13511_ACEOF
13512 FOUND_SECURE_RPC="yes"
13513fi
13514done
13515
13516	if test "x$FOUND_SECURE_RPC" = "xno" ; then
13517		if test "x$SECURE_RPC" = "xyes" ; then
13518	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
13519		fi
13520		SECURE_RPC="no"
13521	else
13522				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
13523$as_echo_n "checking for library containing getsecretkey... " >&6; }
13524if ${ac_cv_search_getsecretkey+:} false; then :
13525  $as_echo_n "(cached) " >&6
13526else
13527  ac_func_search_save_LIBS=$LIBS
13528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529/* end confdefs.h.  */
13530
13531/* Override any GCC internal prototype to avoid an error.
13532   Use char because int might match the return type of a GCC
13533   builtin and then its argument prototype would still apply.  */
13534#ifdef __cplusplus
13535extern "C"
13536#endif
13537char getsecretkey ();
13538int
13539main ()
13540{
13541return getsecretkey ();
13542  ;
13543  return 0;
13544}
13545_ACEOF
13546for ac_lib in '' rpcsvc; do
13547  if test -z "$ac_lib"; then
13548    ac_res="none required"
13549  else
13550    ac_res=-l$ac_lib
13551    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13552  fi
13553  if ac_fn_c_try_link "$LINENO"; then :
13554  ac_cv_search_getsecretkey=$ac_res
13555fi
13556rm -f core conftest.err conftest.$ac_objext \
13557    conftest$ac_exeext
13558  if ${ac_cv_search_getsecretkey+:} false; then :
13559  break
13560fi
13561done
13562if ${ac_cv_search_getsecretkey+:} false; then :
13563
13564else
13565  ac_cv_search_getsecretkey=no
13566fi
13567rm conftest.$ac_ext
13568LIBS=$ac_func_search_save_LIBS
13569fi
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
13571$as_echo "$ac_cv_search_getsecretkey" >&6; }
13572ac_res=$ac_cv_search_getsecretkey
13573if test "$ac_res" != no; then :
13574  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13575
13576fi
13577
13578		SECURE_RPC="yes"
13579	fi
13580 fi
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
13582$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
13583 if test "x$SECURE_RPC" = "xyes" ; then
13584
13585$as_echo "#define SECURE_RPC 1" >>confdefs.h
13586
13587 fi
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
13589$as_echo "$SECURE_RPC" >&6; }
13590
13591
13592# Preferred order to try transports for local connections
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what order to try transports in for local connections" >&5
13594$as_echo_n "checking what order to try transports in for local connections... " >&6; }
13595DEFAULT_LOCAL_TRANS=""
13596case $host_os in
13597	solaris*)
13598		# On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were
13599		# faster than Unix domain sockets, but on Solaris 10 & later,
13600		# Unix domain sockets are faster now.
13601		if test "$UNIXCONN" = "yes" ; then
13602			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13603				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13604			fi
13605			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS"
13606		fi
13607		if test "$LOCALCONN" = "yes" ; then
13608			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13609				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13610			fi
13611			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS"
13612		fi
13613		if test "$TCPCONN" = "yes" ; then
13614			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13615				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13616			fi
13617			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
13618		fi
13619		;;
13620	linux*)
13621		# LOCAL_TRANS is used for abstract sockets.
13622		if test "$UNIXCONN" = "yes" ; then
13623			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13624				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13625			fi
13626			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS,UNIX_TRANS"
13627		fi
13628		if test "$TCPCONN" = "yes" ; then
13629			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13630				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13631			fi
13632			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
13633		fi
13634		;;
13635	*)
13636		if test "$LOCALCONN" = "yes" ; then
13637			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13638				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13639			fi
13640			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS"
13641		fi
13642		if test "$UNIXCONN" = "yes" ; then
13643			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13644				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13645			fi
13646			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS"
13647		fi
13648		if test "$TCPCONN" = "yes" ; then
13649			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13650				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13651			fi
13652			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
13653		fi
13654		;;
13655esac
13656
13657
13658# Check whether --with-local-transport-order was given.
13659if test "${with_local_transport_order+set}" = set; then :
13660  withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval
13661else
13662  LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS
13663fi
13664
13665
13666cat >>confdefs.h <<_ACEOF
13667#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST
13668_ACEOF
13669
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCAL_TRANSPORT_LIST" >&5
13671$as_echo "$LOCAL_TRANSPORT_LIST" >&6; }
13672
13673# Check for dlopen
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
13675$as_echo_n "checking if run-time linking is supported... " >&6; }
13676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13677$as_echo_n "checking for library containing dlopen... " >&6; }
13678if ${ac_cv_search_dlopen+:} false; then :
13679  $as_echo_n "(cached) " >&6
13680else
13681  ac_func_search_save_LIBS=$LIBS
13682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683/* end confdefs.h.  */
13684
13685/* Override any GCC internal prototype to avoid an error.
13686   Use char because int might match the return type of a GCC
13687   builtin and then its argument prototype would still apply.  */
13688#ifdef __cplusplus
13689extern "C"
13690#endif
13691char dlopen ();
13692int
13693main ()
13694{
13695return dlopen ();
13696  ;
13697  return 0;
13698}
13699_ACEOF
13700for ac_lib in '' dl svld; do
13701  if test -z "$ac_lib"; then
13702    ac_res="none required"
13703  else
13704    ac_res=-l$ac_lib
13705    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13706  fi
13707  if ac_fn_c_try_link "$LINENO"; then :
13708  ac_cv_search_dlopen=$ac_res
13709fi
13710rm -f core conftest.err conftest.$ac_objext \
13711    conftest$ac_exeext
13712  if ${ac_cv_search_dlopen+:} false; then :
13713  break
13714fi
13715done
13716if ${ac_cv_search_dlopen+:} false; then :
13717
13718else
13719  ac_cv_search_dlopen=no
13720fi
13721rm conftest.$ac_ext
13722LIBS=$ac_func_search_save_LIBS
13723fi
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13725$as_echo "$ac_cv_search_dlopen" >&6; }
13726ac_res=$ac_cv_search_dlopen
13727if test "$ac_res" != no; then :
13728  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13729
13730fi
13731
13732if test "x$ac_cv_search_dlopen" = xno; then
13733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
13734$as_echo_n "checking for library containing shl_load... " >&6; }
13735if ${ac_cv_search_shl_load+:} false; then :
13736  $as_echo_n "(cached) " >&6
13737else
13738  ac_func_search_save_LIBS=$LIBS
13739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740/* end confdefs.h.  */
13741
13742/* Override any GCC internal prototype to avoid an error.
13743   Use char because int might match the return type of a GCC
13744   builtin and then its argument prototype would still apply.  */
13745#ifdef __cplusplus
13746extern "C"
13747#endif
13748char shl_load ();
13749int
13750main ()
13751{
13752return shl_load ();
13753  ;
13754  return 0;
13755}
13756_ACEOF
13757for ac_lib in '' dld; do
13758  if test -z "$ac_lib"; then
13759    ac_res="none required"
13760  else
13761    ac_res=-l$ac_lib
13762    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13763  fi
13764  if ac_fn_c_try_link "$LINENO"; then :
13765  ac_cv_search_shl_load=$ac_res
13766fi
13767rm -f core conftest.err conftest.$ac_objext \
13768    conftest$ac_exeext
13769  if ${ac_cv_search_shl_load+:} false; then :
13770  break
13771fi
13772done
13773if ${ac_cv_search_shl_load+:} false; then :
13774
13775else
13776  ac_cv_search_shl_load=no
13777fi
13778rm conftest.$ac_ext
13779LIBS=$ac_func_search_save_LIBS
13780fi
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
13782$as_echo "$ac_cv_search_shl_load" >&6; }
13783ac_res=$ac_cv_search_shl_load
13784if test "$ac_res" != no; then :
13785  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13786
13787fi
13788
13789	if test "x$ac_cv_search_shl_load" != xno; then
13790
13791$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13792
13793		for ac_header in dl.h
13794do :
13795  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13796if test "x$ac_cv_header_dl_h" = xyes; then :
13797  cat >>confdefs.h <<_ACEOF
13798#define HAVE_DL_H 1
13799_ACEOF
13800
13801fi
13802
13803done
13804
13805	fi
13806else
13807
13808$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13809
13810	for ac_header in dlfcn.h
13811do :
13812  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13813if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13814  cat >>confdefs.h <<_ACEOF
13815#define HAVE_DLFCN_H 1
13816_ACEOF
13817
13818fi
13819
13820done
13821
13822fi
13823if test x$ac_cv_header_dlcfn_h -o x$ac_cv_header_dl_h; then
13824	HAVE_LOADABLE_MODULES=yes
13825else
13826	HAVE_LOADABLE_MODULES=no
13827fi
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
13829$as_echo "$HAVE_LOADABLE_MODULES" >&6; }
13830
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
13832$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; }
13833# Check whether --enable-loadable-i18n was given.
13834if test "${enable_loadable_i18n+set}" = set; then :
13835  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
13836else
13837  XLIB_LOADABLE_I18N="no"
13838fi
13839
13840if test x$XLIB_LOADABLE_I18N = xyes; then
13841	if test x$HAVE_LOADABLE_MODULES = xno; then
13842		as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
13843	fi
13844
13845$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h
13846
13847	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
13848
13849fi
13850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
13851$as_echo "$XLIB_LOADABLE_I18N" >&6; }
13852
13853 if test x$XLIB_LOADABLE_I18N = xyes; then
13854  XLIB_LOADABLE_I18N_TRUE=
13855  XLIB_LOADABLE_I18N_FALSE='#'
13856else
13857  XLIB_LOADABLE_I18N_TRUE='#'
13858  XLIB_LOADABLE_I18N_FALSE=
13859fi
13860
13861
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
13863$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; }
13864# Check whether --enable-loadable-xcursor was given.
13865if test "${enable_loadable_xcursor+set}" = set; then :
13866  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
13867else
13868  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
13869fi
13870
13871if test x$XLIB_LOADABLE_XCURSOR = xyes; then
13872
13873$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
13874
13875fi
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
13877$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; }
13878
13879# Checks for header files.
13880for ac_header in sys/select.h
13881do :
13882  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
13883if test "x$ac_cv_header_sys_select_h" = xyes; then :
13884  cat >>confdefs.h <<_ACEOF
13885#define HAVE_SYS_SELECT_H 1
13886_ACEOF
13887
13888fi
13889
13890done
13891
13892
13893# Checks for typedefs, structures, and compiler characteristics.
13894
13895# Checks for library functions.
13896for ac_func in strtol
13897do :
13898  ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
13899if test "x$ac_cv_func_strtol" = xyes; then :
13900  cat >>confdefs.h <<_ACEOF
13901#define HAVE_STRTOL 1
13902_ACEOF
13903
13904fi
13905done
13906
13907# Used in lcFile.c (see also --enable-xlocaledir settings below)
13908XLOCALEDIR_IS_SAFE="no"
13909ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
13910if test "x$ac_cv_func_issetugid" = xyes; then :
13911  XLOCALEDIR_IS_SAFE="yes"
13912
13913$as_echo "#define HASSETUGID 1" >>confdefs.h
13914
13915fi
13916
13917ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
13918if test "x$ac_cv_func_getresuid" = xyes; then :
13919  XLOCALEDIR_IS_SAFE="yes"
13920
13921$as_echo "#define HASGETRESUID 1" >>confdefs.h
13922
13923fi
13924
13925# Used in Font.c
13926ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
13927if test "x$ac_cv_func_shmat" = xyes; then :
13928
13929$as_echo "#define HAS_SHM 1" >>confdefs.h
13930
13931fi
13932
13933
13934# Checks for system services
13935# AC_PATH_XTRA
13936
13937# arch specific things
13938WCHAR32="1"
13939case $host_os in
13940  os2*) os2="true" ; WCHAR32="0" ;;
13941  *) ;;
13942esac
13943
13944
13945 if test x$os2 = xtrue; then
13946  OS2_TRUE=
13947  OS2_FALSE='#'
13948else
13949  OS2_TRUE='#'
13950  OS2_FALSE=
13951fi
13952
13953
13954
13955# Check whether --with-launchd was given.
13956if test "${with_launchd+set}" = set; then :
13957  withval=$with_launchd; LAUNCHD=$withval
13958else
13959  LAUNCHD=auto
13960fi
13961
13962if test "x$LAUNCHD" = xauto; then
13963	unset LAUNCHD
13964	# Extract the first word of "launchd", so it can be a program name with args.
13965set dummy launchd; ac_word=$2
13966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13967$as_echo_n "checking for $ac_word... " >&6; }
13968if ${ac_cv_prog_LAUNCHD+:} false; then :
13969  $as_echo_n "(cached) " >&6
13970else
13971  if test -n "$LAUNCHD"; then
13972  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
13973else
13974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13975for as_dir in $PATH$PATH_SEPARATOR/sbin
13976do
13977  IFS=$as_save_IFS
13978  test -z "$as_dir" && as_dir=.
13979    for ac_exec_ext in '' $ac_executable_extensions; do
13980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13981    ac_cv_prog_LAUNCHD="yes"
13982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13983    break 2
13984  fi
13985done
13986  done
13987IFS=$as_save_IFS
13988
13989  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
13990fi
13991fi
13992LAUNCHD=$ac_cv_prog_LAUNCHD
13993if test -n "$LAUNCHD"; then
13994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
13995$as_echo "$LAUNCHD" >&6; }
13996else
13997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998$as_echo "no" >&6; }
13999fi
14000
14001
14002fi
14003
14004if test "x$LAUNCHD" = xyes ; then
14005
14006$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
14007
14008
14009$as_echo "#define TRANS_REOPEN 1" >>confdefs.h
14010
14011fi
14012
14013# Check whether --enable-xthreads was given.
14014if test "${enable_xthreads+set}" = set; then :
14015  enableval=$enable_xthreads; xthreads=$enableval
14016else
14017  xthreads=yes
14018fi
14019
14020
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
14022$as_echo_n "checking for getpwuid_r in -lc... " >&6; }
14023if ${ac_cv_lib_c_getpwuid_r+:} false; then :
14024  $as_echo_n "(cached) " >&6
14025else
14026  ac_check_lib_save_LIBS=$LIBS
14027LIBS="-lc  $LIBS"
14028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029/* end confdefs.h.  */
14030
14031/* Override any GCC internal prototype to avoid an error.
14032   Use char because int might match the return type of a GCC
14033   builtin and then its argument prototype would still apply.  */
14034#ifdef __cplusplus
14035extern "C"
14036#endif
14037char getpwuid_r ();
14038int
14039main ()
14040{
14041return getpwuid_r ();
14042  ;
14043  return 0;
14044}
14045_ACEOF
14046if ac_fn_c_try_link "$LINENO"; then :
14047  ac_cv_lib_c_getpwuid_r=yes
14048else
14049  ac_cv_lib_c_getpwuid_r=no
14050fi
14051rm -f core conftest.err conftest.$ac_objext \
14052    conftest$ac_exeext conftest.$ac_ext
14053LIBS=$ac_check_lib_save_LIBS
14054fi
14055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
14056$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; }
14057if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then :
14058  mtsafeapi="yes"
14059else
14060  mtsafeapi="no"
14061fi
14062
14063
14064case x$xthreads in
14065xyes)
14066
14067$as_echo "#define XTHREADS 1" >>confdefs.h
14068
14069	if test x$mtsafeapi = xyes
14070	then
14071
14072$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h
14073
14074	fi
14075	;;
14076*)
14077	;;
14078esac
14079
14080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
14081$as_echo_n "checking for pthread_self in -lc... " >&6; }
14082if ${ac_cv_lib_c_pthread_self+:} false; then :
14083  $as_echo_n "(cached) " >&6
14084else
14085  ac_check_lib_save_LIBS=$LIBS
14086LIBS="-lc  $LIBS"
14087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088/* end confdefs.h.  */
14089
14090/* Override any GCC internal prototype to avoid an error.
14091   Use char because int might match the return type of a GCC
14092   builtin and then its argument prototype would still apply.  */
14093#ifdef __cplusplus
14094extern "C"
14095#endif
14096char pthread_self ();
14097int
14098main ()
14099{
14100return pthread_self ();
14101  ;
14102  return 0;
14103}
14104_ACEOF
14105if ac_fn_c_try_link "$LINENO"; then :
14106  ac_cv_lib_c_pthread_self=yes
14107else
14108  ac_cv_lib_c_pthread_self=no
14109fi
14110rm -f core conftest.err conftest.$ac_objext \
14111    conftest$ac_exeext conftest.$ac_ext
14112LIBS=$ac_check_lib_save_LIBS
14113fi
14114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
14115$as_echo "$ac_cv_lib_c_pthread_self" >&6; }
14116if test "x$ac_cv_lib_c_pthread_self" = xyes; then :
14117  thrstubs="no"
14118else
14119  thrstubs="yes"
14120fi
14121
14122 if test x$thrstubs = xyes; then
14123  THRSTUBS_TRUE=
14124  THRSTUBS_FALSE='#'
14125else
14126  THRSTUBS_TRUE='#'
14127  THRSTUBS_FALSE=
14128fi
14129
14130
14131# XXX incomplete, please fill this in
14132if test x$xthreads = xyes ; then
14133    case $host_os in
14134    linux*|openbsd*|gnu*|k*bsd*-gnu)
14135        XTHREADLIB=-lpthread ;;
14136    netbsd*)
14137	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
14138	XTHREADLIB="-lpthread" ;;
14139    freebsd*)
14140        XTHREAD_CFLAGS="-D_THREAD_SAFE"
14141        XTHREADLIB="-pthread" ;;
14142    dragonfly*)
14143        XTHREADLIB="-pthread" ;;
14144    solaris*)
14145	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
14146    esac
14147fi
14148
14149
14150
14151ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
14152if test "x$ac_cv_func_poll" = xyes; then :
14153
14154$as_echo "#define USE_POLL 1" >>confdefs.h
14155
14156fi
14157
14158
14159#
14160# Find keysymdef.h
14161#
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
14163$as_echo_n "checking keysym definitions... " >&6; }
14164KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
14165FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
14166for i in $FILES; do
14167    if test -f "$KEYSYMDEFDIR/$i"; then
14168            KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
14169    elif test "x$i" = "xkeysymdef.h"; then
14170	    as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
14171    fi
14172done
14173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
14174$as_echo "$KEYSYMDEFS" >&6; }
14175
14176
14177 if test xfalse = xtrue; then
14178  UDC_TRUE=
14179  UDC_FALSE='#'
14180else
14181  UDC_TRUE='#'
14182  UDC_FALSE=
14183fi
14184
14185
14186# Check whether --enable-xcms was given.
14187if test "${enable_xcms+set}" = set; then :
14188  enableval=$enable_xcms; XCMS=$enableval
14189else
14190  XCMS=yes
14191fi
14192
14193 if test x$XCMS = xyes ; then
14194  XCMS_TRUE=
14195  XCMS_FALSE='#'
14196else
14197  XCMS_TRUE='#'
14198  XCMS_FALSE=
14199fi
14200
14201if test x"$XCMS" = "xyes"; then
14202
14203$as_echo "#define XCMS 1" >>confdefs.h
14204
14205fi
14206
14207# Check whether --enable-xlocale was given.
14208if test "${enable_xlocale+set}" = set; then :
14209  enableval=$enable_xlocale; XLOCALE=$enableval
14210else
14211  XLOCALE=yes
14212fi
14213
14214
14215 if  test x$XLOCALE = xyes ; then
14216  XLOCALE_TRUE=
14217  XLOCALE_FALSE='#'
14218else
14219  XLOCALE_TRUE='#'
14220  XLOCALE_FALSE=
14221fi
14222
14223if test x"$XLOCALE" = "xyes"; then
14224
14225$as_echo "#define XLOCALE 1" >>confdefs.h
14226
14227fi
14228
14229# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
14230# don't have either issetugid() or getresuid(), and you need to protect
14231# clients that are setgid or setuid to an id other than 0.
14232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
14233$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; }
14234# Check whether --enable-xlocaledir was given.
14235if test "${enable_xlocaledir+set}" = set; then :
14236  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
14237else
14238  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
14239fi
14240
14241if test "x$ENABLE_XLOCALEDIR" = "xno"; then
14242
14243$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h
14244
14245fi
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
14247$as_echo "$ENABLE_XLOCALEDIR" >&6; }
14248
14249# Check whether --enable-xf86bigfont was given.
14250if test "${enable_xf86bigfont+set}" = set; then :
14251  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
14252else
14253  XF86BIGFONT="yes"
14254fi
14255
14256if test "x$XF86BIGFONT" = "xyes"; then
14257
14258pkg_failed=no
14259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
14260$as_echo_n "checking for BIGFONT... " >&6; }
14261
14262if test -n "$BIGFONT_CFLAGS"; then
14263    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
14264 elif test -n "$PKG_CONFIG"; then
14265    if test -n "$PKG_CONFIG" && \
14266    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
14267  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
14268  ac_status=$?
14269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14270  test $ac_status = 0; }; then
14271  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
14272else
14273  pkg_failed=yes
14274fi
14275 else
14276    pkg_failed=untried
14277fi
14278if test -n "$BIGFONT_LIBS"; then
14279    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
14280 elif test -n "$PKG_CONFIG"; then
14281    if test -n "$PKG_CONFIG" && \
14282    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
14283  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
14284  ac_status=$?
14285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286  test $ac_status = 0; }; then
14287  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
14288else
14289  pkg_failed=yes
14290fi
14291 else
14292    pkg_failed=untried
14293fi
14294
14295
14296
14297if test $pkg_failed = yes; then
14298
14299if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14300        _pkg_short_errors_supported=yes
14301else
14302        _pkg_short_errors_supported=no
14303fi
14304        if test $_pkg_short_errors_supported = yes; then
14305	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto >= 1.2.0" 2>&1`
14306        else
14307	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto >= 1.2.0" 2>&1`
14308        fi
14309	# Put the nasty error message in config.log where it belongs
14310	echo "$BIGFONT_PKG_ERRORS" >&5
14311
14312	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313$as_echo "no" >&6; }
14314                XF86BIGFONT="no"
14315elif test $pkg_failed = untried; then
14316	XF86BIGFONT="no"
14317else
14318	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
14319	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
14320        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14321$as_echo "yes" >&6; }
14322
14323$as_echo "#define XF86BIGFONT 1" >>confdefs.h
14324
14325fi
14326fi
14327
14328# Check whether --enable-xkb was given.
14329if test "${enable_xkb+set}" = set; then :
14330  enableval=$enable_xkb; XKB=$enableval
14331else
14332  XKB=yes
14333fi
14334
14335
14336 if  test x$XKB = xyes ; then
14337  XKB_TRUE=
14338  XKB_FALSE='#'
14339else
14340  XKB_TRUE='#'
14341  XKB_FALSE=
14342fi
14343
14344if test x"$XKB" = "xyes"; then
14345   XKBPROTO_REQUIRES="kbproto"
14346   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
14347
14348$as_echo "#define XKB 1" >>confdefs.h
14349
14350else
14351   XKBPROTO_REQUIRES=""
14352fi
14353
14354
14355
14356
14357
14358  for ac_header in $ac_header_list
14359do :
14360  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14361ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14362"
14363if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14364  cat >>confdefs.h <<_ACEOF
14365#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14366_ACEOF
14367
14368fi
14369
14370done
14371
14372
14373
14374
14375
14376
14377
14378
14379for ac_func in getpagesize
14380do :
14381  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14382if test "x$ac_cv_func_getpagesize" = xyes; then :
14383  cat >>confdefs.h <<_ACEOF
14384#define HAVE_GETPAGESIZE 1
14385_ACEOF
14386
14387fi
14388done
14389
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14391$as_echo_n "checking for working mmap... " >&6; }
14392if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14393  $as_echo_n "(cached) " >&6
14394else
14395  if test "$cross_compiling" = yes; then :
14396  ac_cv_func_mmap_fixed_mapped=no
14397else
14398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399/* end confdefs.h.  */
14400$ac_includes_default
14401/* malloc might have been renamed as rpl_malloc. */
14402#undef malloc
14403
14404/* Thanks to Mike Haertel and Jim Avera for this test.
14405   Here is a matrix of mmap possibilities:
14406	mmap private not fixed
14407	mmap private fixed at somewhere currently unmapped
14408	mmap private fixed at somewhere already mapped
14409	mmap shared not fixed
14410	mmap shared fixed at somewhere currently unmapped
14411	mmap shared fixed at somewhere already mapped
14412   For private mappings, we should verify that changes cannot be read()
14413   back from the file, nor mmap's back from the file at a different
14414   address.  (There have been systems where private was not correctly
14415   implemented like the infamous i386 svr4.0, and systems where the
14416   VM page cache was not coherent with the file system buffer cache
14417   like early versions of FreeBSD and possibly contemporary NetBSD.)
14418   For shared mappings, we should conversely verify that changes get
14419   propagated back to all the places they're supposed to be.
14420
14421   Grep wants private fixed already mapped.
14422   The main things grep needs to know about mmap are:
14423   * does it exist and is it safe to write into the mmap'd area
14424   * how to use it (BSD variants)  */
14425
14426#include <fcntl.h>
14427#include <sys/mman.h>
14428
14429#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14430char *malloc ();
14431#endif
14432
14433/* This mess was copied from the GNU getpagesize.h.  */
14434#ifndef HAVE_GETPAGESIZE
14435# ifdef _SC_PAGESIZE
14436#  define getpagesize() sysconf(_SC_PAGESIZE)
14437# else /* no _SC_PAGESIZE */
14438#  ifdef HAVE_SYS_PARAM_H
14439#   include <sys/param.h>
14440#   ifdef EXEC_PAGESIZE
14441#    define getpagesize() EXEC_PAGESIZE
14442#   else /* no EXEC_PAGESIZE */
14443#    ifdef NBPG
14444#     define getpagesize() NBPG * CLSIZE
14445#     ifndef CLSIZE
14446#      define CLSIZE 1
14447#     endif /* no CLSIZE */
14448#    else /* no NBPG */
14449#     ifdef NBPC
14450#      define getpagesize() NBPC
14451#     else /* no NBPC */
14452#      ifdef PAGESIZE
14453#       define getpagesize() PAGESIZE
14454#      endif /* PAGESIZE */
14455#     endif /* no NBPC */
14456#    endif /* no NBPG */
14457#   endif /* no EXEC_PAGESIZE */
14458#  else /* no HAVE_SYS_PARAM_H */
14459#   define getpagesize() 8192	/* punt totally */
14460#  endif /* no HAVE_SYS_PARAM_H */
14461# endif /* no _SC_PAGESIZE */
14462
14463#endif /* no HAVE_GETPAGESIZE */
14464
14465int
14466main ()
14467{
14468  char *data, *data2, *data3;
14469  const char *cdata2;
14470  int i, pagesize;
14471  int fd, fd2;
14472
14473  pagesize = getpagesize ();
14474
14475  /* First, make a file with some known garbage in it. */
14476  data = (char *) malloc (pagesize);
14477  if (!data)
14478    return 1;
14479  for (i = 0; i < pagesize; ++i)
14480    *(data + i) = rand ();
14481  umask (0);
14482  fd = creat ("conftest.mmap", 0600);
14483  if (fd < 0)
14484    return 2;
14485  if (write (fd, data, pagesize) != pagesize)
14486    return 3;
14487  close (fd);
14488
14489  /* Next, check that the tail of a page is zero-filled.  File must have
14490     non-zero length, otherwise we risk SIGBUS for entire page.  */
14491  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14492  if (fd2 < 0)
14493    return 4;
14494  cdata2 = "";
14495  if (write (fd2, cdata2, 1) != 1)
14496    return 5;
14497  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14498  if (data2 == MAP_FAILED)
14499    return 6;
14500  for (i = 0; i < pagesize; ++i)
14501    if (*(data2 + i))
14502      return 7;
14503  close (fd2);
14504  if (munmap (data2, pagesize))
14505    return 8;
14506
14507  /* Next, try to mmap the file at a fixed address which already has
14508     something else allocated at it.  If we can, also make sure that
14509     we see the same garbage.  */
14510  fd = open ("conftest.mmap", O_RDWR);
14511  if (fd < 0)
14512    return 9;
14513  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14514		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
14515    return 10;
14516  for (i = 0; i < pagesize; ++i)
14517    if (*(data + i) != *(data2 + i))
14518      return 11;
14519
14520  /* Finally, make sure that changes to the mapped area do not
14521     percolate back to the file as seen by read().  (This is a bug on
14522     some variants of i386 svr4.0.)  */
14523  for (i = 0; i < pagesize; ++i)
14524    *(data2 + i) = *(data2 + i) + 1;
14525  data3 = (char *) malloc (pagesize);
14526  if (!data3)
14527    return 12;
14528  if (read (fd, data3, pagesize) != pagesize)
14529    return 13;
14530  for (i = 0; i < pagesize; ++i)
14531    if (*(data + i) != *(data3 + i))
14532      return 14;
14533  close (fd);
14534  return 0;
14535}
14536_ACEOF
14537if ac_fn_c_try_run "$LINENO"; then :
14538  ac_cv_func_mmap_fixed_mapped=yes
14539else
14540  ac_cv_func_mmap_fixed_mapped=no
14541fi
14542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14543  conftest.$ac_objext conftest.beam conftest.$ac_ext
14544fi
14545
14546fi
14547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14548$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14549if test $ac_cv_func_mmap_fixed_mapped = yes; then
14550
14551$as_echo "#define HAVE_MMAP 1" >>confdefs.h
14552
14553fi
14554rm -f conftest.mmap conftest.txt
14555
14556composecache_default=$ac_cv_func_mmap_fixed_mapped
14557ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
14558if test "x$ac_cv_func_nl_langinfo" = xyes; then :
14559
14560else
14561  composecache_default=no
14562fi
14563
14564# Check whether --enable-composecache was given.
14565if test "${enable_composecache+set}" = set; then :
14566  enableval=$enable_composecache; COMPOSECACHE=$enableval
14567else
14568  COMPOSECACHE=$composecache_default
14569fi
14570
14571if test x"$COMPOSECACHE" = "xyes"; then
14572
14573$as_echo "#define COMPOSECACHE 1" >>confdefs.h
14574
14575fi
14576
14577# Allow checking code with lint, sparse, etc.
14578
14579
14580
14581
14582
14583# Check whether --with-lint was given.
14584if test "${with_lint+set}" = set; then :
14585  withval=$with_lint; use_lint=$withval
14586else
14587  use_lint=no
14588fi
14589
14590
14591# Obtain platform specific info like program name and options
14592# The lint program on FreeBSD and NetBSD is different from the one on Solaris
14593case $host_os in
14594  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
14595	lint_name=splint
14596	lint_options="-badflag"
14597	;;
14598  *freebsd* | *netbsd*)
14599	lint_name=lint
14600	lint_options="-u -b"
14601	;;
14602  *solaris*)
14603	lint_name=lint
14604	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
14605	;;
14606esac
14607
14608# Test for the presence of the program (either guessed by the code or spelled out by the user)
14609if test "x$use_lint" = x"yes" ; then
14610   # Extract the first word of "$lint_name", so it can be a program name with args.
14611set dummy $lint_name; ac_word=$2
14612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14613$as_echo_n "checking for $ac_word... " >&6; }
14614if ${ac_cv_path_LINT+:} false; then :
14615  $as_echo_n "(cached) " >&6
14616else
14617  case $LINT in
14618  [\\/]* | ?:[\\/]*)
14619  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
14620  ;;
14621  *)
14622  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623for as_dir in $PATH
14624do
14625  IFS=$as_save_IFS
14626  test -z "$as_dir" && as_dir=.
14627    for ac_exec_ext in '' $ac_executable_extensions; do
14628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14629    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
14630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14631    break 2
14632  fi
14633done
14634  done
14635IFS=$as_save_IFS
14636
14637  ;;
14638esac
14639fi
14640LINT=$ac_cv_path_LINT
14641if test -n "$LINT"; then
14642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
14643$as_echo "$LINT" >&6; }
14644else
14645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646$as_echo "no" >&6; }
14647fi
14648
14649
14650   if test "x$LINT" = "x"; then
14651        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
14652   fi
14653elif test "x$use_lint" = x"no" ; then
14654   if test "x$LINT" != "x"; then
14655      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
14656$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
14657   fi
14658else
14659   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
14660fi
14661
14662# User supplied flags override default flags
14663if test "x$LINT_FLAGS" != "x"; then
14664   lint_options=$LINT_FLAGS
14665fi
14666
14667LINT_FLAGS=$lint_options
14668
14669 if test "x$LINT" != x; then
14670  LINT_TRUE=
14671  LINT_FALSE='#'
14672else
14673  LINT_TRUE='#'
14674  LINT_FALSE=
14675fi
14676
14677
14678
14679
14680
14681# Check whether --enable-lint-library was given.
14682if test "${enable_lint_library+set}" = set; then :
14683  enableval=$enable_lint_library; make_lint_lib=$enableval
14684else
14685  make_lint_lib=no
14686fi
14687
14688
14689if test "x$make_lint_lib" = x"yes" ; then
14690   LINTLIB=llib-lX11.ln
14691   if test "x$LINT" = "x"; then
14692        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
14693   fi
14694elif test "x$make_lint_lib" != x"no" ; then
14695   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
14696fi
14697
14698
14699 if test x$make_lint_lib != xno; then
14700  MAKE_LINT_LIB_TRUE=
14701  MAKE_LINT_LIB_FALSE='#'
14702else
14703  MAKE_LINT_LIB_TRUE='#'
14704  MAKE_LINT_LIB_FALSE=
14705fi
14706
14707
14708
14709
14710X11_DATADIR="${datadir}/X11"
14711
14712  prefix_NONE=
14713  exec_prefix_NONE=
14714  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14715  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14716  eval ax_define_dir="\"$X11_DATADIR\""
14717  eval ax_define_dir="\"$ax_define_dir\""
14718  X11_DATADIR="$ax_define_dir"
14719
14720
14721cat >>confdefs.h <<_ACEOF
14722#define X11_DATADIR "$ax_define_dir"
14723_ACEOF
14724
14725  test "$prefix_NONE" && prefix=NONE
14726  test "$exec_prefix_NONE" && exec_prefix=NONE
14727
14728
14729
14730X11_LIBDIR="${libdir}/X11"
14731
14732  prefix_NONE=
14733  exec_prefix_NONE=
14734  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14735  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14736  eval ax_define_dir="\"$X11_LIBDIR\""
14737  eval ax_define_dir="\"$ax_define_dir\""
14738  X11_LIBDIR="$ax_define_dir"
14739
14740
14741cat >>confdefs.h <<_ACEOF
14742#define X11_LIBDIR "$ax_define_dir"
14743_ACEOF
14744
14745  test "$prefix_NONE" && prefix=NONE
14746  test "$exec_prefix_NONE" && exec_prefix=NONE
14747
14748
14749
14750
14751pkg_failed=no
14752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
14753$as_echo_n "checking for X11... " >&6; }
14754
14755if test -n "$X11_CFLAGS"; then
14756    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
14757 elif test -n "$PKG_CONFIG"; then
14758    if test -n "$PKG_CONFIG" && \
14759    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
14760  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
14761  ac_status=$?
14762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14763  test $ac_status = 0; }; then
14764  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
14765else
14766  pkg_failed=yes
14767fi
14768 else
14769    pkg_failed=untried
14770fi
14771if test -n "$X11_LIBS"; then
14772    pkg_cv_X11_LIBS="$X11_LIBS"
14773 elif test -n "$PKG_CONFIG"; then
14774    if test -n "$PKG_CONFIG" && \
14775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
14776  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
14777  ac_status=$?
14778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14779  test $ac_status = 0; }; then
14780  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
14781else
14782  pkg_failed=yes
14783fi
14784 else
14785    pkg_failed=untried
14786fi
14787
14788
14789
14790if test $pkg_failed = yes; then
14791
14792if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14793        _pkg_short_errors_supported=yes
14794else
14795        _pkg_short_errors_supported=no
14796fi
14797        if test $_pkg_short_errors_supported = yes; then
14798	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_REQUIRES" 2>&1`
14799        else
14800	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_REQUIRES" 2>&1`
14801        fi
14802	# Put the nasty error message in config.log where it belongs
14803	echo "$X11_PKG_ERRORS" >&5
14804
14805	as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
14806
14807$X11_PKG_ERRORS
14808
14809Consider adjusting the PKG_CONFIG_PATH environment variable if you
14810installed software in a non-standard prefix.
14811
14812Alternatively, you may set the environment variables X11_CFLAGS
14813and X11_LIBS to avoid the need to call pkg-config.
14814See the pkg-config man page for more details.
14815" "$LINENO" 5
14816elif test $pkg_failed = untried; then
14817	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14819as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14820is in your PATH or set the PKG_CONFIG environment variable to the full
14821path to pkg-config.
14822
14823Alternatively, you may set the environment variables X11_CFLAGS
14824and X11_LIBS to avoid the need to call pkg-config.
14825See the pkg-config man page for more details.
14826
14827To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14828See \`config.log' for more details" "$LINENO" 5; }
14829else
14830	X11_CFLAGS=$pkg_cv_X11_CFLAGS
14831	X11_LIBS=$pkg_cv_X11_LIBS
14832        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14833$as_echo "yes" >&6; }
14834	:
14835fi
14836X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
14837
14838#
14839# Yes, it would be nice to put the locale data in
14840# /usr/share, but the locale stuff includes loadable
14841# libraries which must be located in the same directory
14842# as the other locale data, so for now, everything lives
14843# in ${libdir}
14844#
14845
14846X11_LOCALEDATADIR="${X11_DATADIR}/locale"
14847
14848  prefix_NONE=
14849  exec_prefix_NONE=
14850  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14851  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14852  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
14853  eval ax_define_dir="\"$ax_define_dir\""
14854  XLOCALEDATADIR="$ax_define_dir"
14855
14856
14857cat >>confdefs.h <<_ACEOF
14858#define XLOCALEDATADIR "$ax_define_dir"
14859_ACEOF
14860
14861  test "$prefix_NONE" && prefix=NONE
14862  test "$exec_prefix_NONE" && exec_prefix=NONE
14863
14864
14865
14866
14867# Check whether --with-locale-lib-dir was given.
14868if test "${with_locale_lib_dir+set}" = set; then :
14869  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
14870else
14871   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
14872fi
14873
14874
14875  prefix_NONE=
14876  exec_prefix_NONE=
14877  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14878  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14879  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
14880  eval ax_define_dir="\"$ax_define_dir\""
14881  XLOCALELIBDIR="$ax_define_dir"
14882
14883
14884cat >>confdefs.h <<_ACEOF
14885#define XLOCALELIBDIR "$ax_define_dir"
14886_ACEOF
14887
14888  test "$prefix_NONE" && prefix=NONE
14889  test "$exec_prefix_NONE" && exec_prefix=NONE
14890
14891
14892
14893X11_LOCALEDIR="${X11_LOCALEDATADIR}"
14894
14895  prefix_NONE=
14896  exec_prefix_NONE=
14897  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14898  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14899  eval ax_define_dir="\"$X11_LOCALEDIR\""
14900  eval ax_define_dir="\"$ax_define_dir\""
14901  XLOCALEDIR="$ax_define_dir"
14902
14903
14904cat >>confdefs.h <<_ACEOF
14905#define XLOCALEDIR "$ax_define_dir"
14906_ACEOF
14907
14908  test "$prefix_NONE" && prefix=NONE
14909  test "$exec_prefix_NONE" && exec_prefix=NONE
14910
14911
14912
14913XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
14914
14915  prefix_NONE=
14916  exec_prefix_NONE=
14917  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14918  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14919  eval ax_define_dir="\"$XKEYSYMDB\""
14920  eval ax_define_dir="\"$ax_define_dir\""
14921  XKEYSYMDB="$ax_define_dir"
14922
14923
14924cat >>confdefs.h <<_ACEOF
14925#define XKEYSYMDB "$ax_define_dir"
14926_ACEOF
14927
14928  test "$prefix_NONE" && prefix=NONE
14929  test "$exec_prefix_NONE" && exec_prefix=NONE
14930
14931
14932XERRORDB="${X11_DATADIR}/XErrorDB"
14933
14934  prefix_NONE=
14935  exec_prefix_NONE=
14936  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14937  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14938  eval ax_define_dir="\"$XERRORDB\""
14939  eval ax_define_dir="\"$ax_define_dir\""
14940  XERRORDB="$ax_define_dir"
14941
14942
14943cat >>confdefs.h <<_ACEOF
14944#define XERRORDB "$ax_define_dir"
14945_ACEOF
14946
14947  test "$prefix_NONE" && prefix=NONE
14948  test "$exec_prefix_NONE" && exec_prefix=NONE
14949
14950
14951
14952# Check whether --enable-malloc0returnsnull was given.
14953if test "${enable_malloc0returnsnull+set}" = set; then :
14954  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
14955else
14956  MALLOC_ZERO_RETURNS_NULL=auto
14957fi
14958
14959
14960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
14961$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
14962if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
14963	if test "$cross_compiling" = yes; then :
14964  MALLOC_ZERO_RETURNS_NULL=yes
14965else
14966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967/* end confdefs.h.  */
14968
14969#include <stdlib.h>
14970
14971int
14972main ()
14973{
14974
14975    char *m0, *r0, *c0, *p;
14976    m0 = malloc(0);
14977    p = malloc(10);
14978    r0 = realloc(p,0);
14979    c0 = calloc(0,10);
14980    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
14981
14982  ;
14983  return 0;
14984}
14985_ACEOF
14986if ac_fn_c_try_run "$LINENO"; then :
14987  MALLOC_ZERO_RETURNS_NULL=yes
14988else
14989  MALLOC_ZERO_RETURNS_NULL=no
14990fi
14991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14992  conftest.$ac_objext conftest.beam conftest.$ac_ext
14993fi
14994
14995fi
14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
14997$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
14998
14999if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
15000	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
15001	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
15002	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
15003else
15004	MALLOC_ZERO_CFLAGS=""
15005	XMALLOC_ZERO_CFLAGS=""
15006	XTMALLOC_ZERO_CFLAGS=""
15007fi
15008
15009
15010
15011
15012
15013
15014ac_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"
15015
15016cat >confcache <<\_ACEOF
15017# This file is a shell script that caches the results of configure
15018# tests run on this system so they can be shared between configure
15019# scripts and configure runs, see configure's option --config-cache.
15020# It is not useful on other systems.  If it contains results you don't
15021# want to keep, you may remove or edit it.
15022#
15023# config.status only pays attention to the cache file if you give it
15024# the --recheck option to rerun configure.
15025#
15026# `ac_cv_env_foo' variables (set or unset) will be overridden when
15027# loading this file, other *unset* `ac_cv_foo' will be assigned the
15028# following values.
15029
15030_ACEOF
15031
15032# The following way of writing the cache mishandles newlines in values,
15033# but we know of no workaround that is simple, portable, and efficient.
15034# So, we kill variables containing newlines.
15035# Ultrix sh set writes to stderr and can't be redirected directly,
15036# and sets the high bit in the cache file unless we assign to the vars.
15037(
15038  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15039    eval ac_val=\$$ac_var
15040    case $ac_val in #(
15041    *${as_nl}*)
15042      case $ac_var in #(
15043      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15044$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15045      esac
15046      case $ac_var in #(
15047      _ | IFS | as_nl) ;; #(
15048      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15049      *) { eval $ac_var=; unset $ac_var;} ;;
15050      esac ;;
15051    esac
15052  done
15053
15054  (set) 2>&1 |
15055    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15056    *${as_nl}ac_space=\ *)
15057      # `set' does not quote correctly, so add quotes: double-quote
15058      # substitution turns \\\\ into \\, and sed turns \\ into \.
15059      sed -n \
15060	"s/'/'\\\\''/g;
15061	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15062      ;; #(
15063    *)
15064      # `set' quotes correctly as required by POSIX, so do not add quotes.
15065      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15066      ;;
15067    esac |
15068    sort
15069) |
15070  sed '
15071     /^ac_cv_env_/b end
15072     t clear
15073     :clear
15074     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15075     t end
15076     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15077     :end' >>confcache
15078if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15079  if test -w "$cache_file"; then
15080    if test "x$cache_file" != "x/dev/null"; then
15081      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15082$as_echo "$as_me: updating cache $cache_file" >&6;}
15083      if test ! -f "$cache_file" || test -h "$cache_file"; then
15084	cat confcache >"$cache_file"
15085      else
15086        case $cache_file in #(
15087        */* | ?:*)
15088	  mv -f confcache "$cache_file"$$ &&
15089	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15090        *)
15091	  mv -f confcache "$cache_file" ;;
15092	esac
15093      fi
15094    fi
15095  else
15096    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15097$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15098  fi
15099fi
15100rm -f confcache
15101
15102test "x$prefix" = xNONE && prefix=$ac_default_prefix
15103# Let make expand exec_prefix.
15104test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15105
15106DEFS=-DHAVE_CONFIG_H
15107
15108ac_libobjs=
15109ac_ltlibobjs=
15110U=
15111for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15112  # 1. Remove the extension, and $U if already installed.
15113  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15114  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15115  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15116  #    will be set to the directory where LIBOBJS objects are built.
15117  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15118  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15119done
15120LIBOBJS=$ac_libobjs
15121
15122LTLIBOBJS=$ac_ltlibobjs
15123
15124
15125if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15126  as_fn_error $? "conditional \"AMDEP\" was never defined.
15127Usually this means the macro was only invoked conditionally." "$LINENO" 5
15128fi
15129if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15130  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15131Usually this means the macro was only invoked conditionally." "$LINENO" 5
15132fi
15133 if test -n "$EXEEXT"; then
15134  am__EXEEXT_TRUE=
15135  am__EXEEXT_FALSE='#'
15136else
15137  am__EXEEXT_TRUE='#'
15138  am__EXEEXT_FALSE=
15139fi
15140
15141if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15142  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15143Usually this means the macro was only invoked conditionally." "$LINENO" 5
15144fi
15145if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
15146  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
15147Usually this means the macro was only invoked conditionally." "$LINENO" 5
15148fi
15149if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
15150  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
15151Usually this means the macro was only invoked conditionally." "$LINENO" 5
15152fi
15153if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
15154  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
15155Usually this means the macro was only invoked conditionally." "$LINENO" 5
15156fi
15157if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
15158  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
15159Usually this means the macro was only invoked conditionally." "$LINENO" 5
15160fi
15161if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
15162  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
15163Usually this means the macro was only invoked conditionally." "$LINENO" 5
15164fi
15165if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
15166  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
15167Usually this means the macro was only invoked conditionally." "$LINENO" 5
15168fi
15169if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
15170  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
15171Usually this means the macro was only invoked conditionally." "$LINENO" 5
15172fi
15173if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
15174  as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
15175Usually this means the macro was only invoked conditionally." "$LINENO" 5
15176fi
15177if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
15178  as_fn_error $? "conditional \"OS2\" was never defined.
15179Usually this means the macro was only invoked conditionally." "$LINENO" 5
15180fi
15181if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
15182  as_fn_error $? "conditional \"THRSTUBS\" was never defined.
15183Usually this means the macro was only invoked conditionally." "$LINENO" 5
15184fi
15185if test -z "${UDC_TRUE}" && test -z "${UDC_FALSE}"; then
15186  as_fn_error $? "conditional \"UDC\" was never defined.
15187Usually this means the macro was only invoked conditionally." "$LINENO" 5
15188fi
15189if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
15190  as_fn_error $? "conditional \"XCMS\" was never defined.
15191Usually this means the macro was only invoked conditionally." "$LINENO" 5
15192fi
15193if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
15194  as_fn_error $? "conditional \"XLOCALE\" was never defined.
15195Usually this means the macro was only invoked conditionally." "$LINENO" 5
15196fi
15197if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
15198  as_fn_error $? "conditional \"XKB\" was never defined.
15199Usually this means the macro was only invoked conditionally." "$LINENO" 5
15200fi
15201if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
15202  as_fn_error $? "conditional \"LINT\" was never defined.
15203Usually this means the macro was only invoked conditionally." "$LINENO" 5
15204fi
15205if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
15206  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
15207Usually this means the macro was only invoked conditionally." "$LINENO" 5
15208fi
15209
15210: "${CONFIG_STATUS=./config.status}"
15211ac_write_fail=0
15212ac_clean_files_save=$ac_clean_files
15213ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15214{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15215$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15216as_write_fail=0
15217cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15218#! $SHELL
15219# Generated by $as_me.
15220# Run this file to recreate the current configuration.
15221# Compiler output produced by configure, useful for debugging
15222# configure, is in config.log if it exists.
15223
15224debug=false
15225ac_cs_recheck=false
15226ac_cs_silent=false
15227
15228SHELL=\${CONFIG_SHELL-$SHELL}
15229export SHELL
15230_ASEOF
15231cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15232## -------------------- ##
15233## M4sh Initialization. ##
15234## -------------------- ##
15235
15236# Be more Bourne compatible
15237DUALCASE=1; export DUALCASE # for MKS sh
15238if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15239  emulate sh
15240  NULLCMD=:
15241  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15242  # is contrary to our usage.  Disable this feature.
15243  alias -g '${1+"$@"}'='"$@"'
15244  setopt NO_GLOB_SUBST
15245else
15246  case `(set -o) 2>/dev/null` in #(
15247  *posix*) :
15248    set -o posix ;; #(
15249  *) :
15250     ;;
15251esac
15252fi
15253
15254
15255as_nl='
15256'
15257export as_nl
15258# Printing a long string crashes Solaris 7 /usr/bin/printf.
15259as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15260as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15261as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15262# Prefer a ksh shell builtin over an external printf program on Solaris,
15263# but without wasting forks for bash or zsh.
15264if test -z "$BASH_VERSION$ZSH_VERSION" \
15265    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15266  as_echo='print -r --'
15267  as_echo_n='print -rn --'
15268elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15269  as_echo='printf %s\n'
15270  as_echo_n='printf %s'
15271else
15272  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15273    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15274    as_echo_n='/usr/ucb/echo -n'
15275  else
15276    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15277    as_echo_n_body='eval
15278      arg=$1;
15279      case $arg in #(
15280      *"$as_nl"*)
15281	expr "X$arg" : "X\\(.*\\)$as_nl";
15282	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15283      esac;
15284      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15285    '
15286    export as_echo_n_body
15287    as_echo_n='sh -c $as_echo_n_body as_echo'
15288  fi
15289  export as_echo_body
15290  as_echo='sh -c $as_echo_body as_echo'
15291fi
15292
15293# The user is always right.
15294if test "${PATH_SEPARATOR+set}" != set; then
15295  PATH_SEPARATOR=:
15296  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15297    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15298      PATH_SEPARATOR=';'
15299  }
15300fi
15301
15302
15303# IFS
15304# We need space, tab and new line, in precisely that order.  Quoting is
15305# there to prevent editors from complaining about space-tab.
15306# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15307# splitting by setting IFS to empty value.)
15308IFS=" ""	$as_nl"
15309
15310# Find who we are.  Look in the path if we contain no directory separator.
15311as_myself=
15312case $0 in #((
15313  *[\\/]* ) as_myself=$0 ;;
15314  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15315for as_dir in $PATH
15316do
15317  IFS=$as_save_IFS
15318  test -z "$as_dir" && as_dir=.
15319    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15320  done
15321IFS=$as_save_IFS
15322
15323     ;;
15324esac
15325# We did not find ourselves, most probably we were run as `sh COMMAND'
15326# in which case we are not to be found in the path.
15327if test "x$as_myself" = x; then
15328  as_myself=$0
15329fi
15330if test ! -f "$as_myself"; then
15331  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15332  exit 1
15333fi
15334
15335# Unset variables that we do not need and which cause bugs (e.g. in
15336# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15337# suppresses any "Segmentation fault" message there.  '((' could
15338# trigger a bug in pdksh 5.2.14.
15339for as_var in BASH_ENV ENV MAIL MAILPATH
15340do eval test x\${$as_var+set} = xset \
15341  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15342done
15343PS1='$ '
15344PS2='> '
15345PS4='+ '
15346
15347# NLS nuisances.
15348LC_ALL=C
15349export LC_ALL
15350LANGUAGE=C
15351export LANGUAGE
15352
15353# CDPATH.
15354(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15355
15356
15357# as_fn_error STATUS ERROR [LINENO LOG_FD]
15358# ----------------------------------------
15359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15361# script with STATUS, using 1 if that was 0.
15362as_fn_error ()
15363{
15364  as_status=$1; test $as_status -eq 0 && as_status=1
15365  if test "$4"; then
15366    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15367    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15368  fi
15369  $as_echo "$as_me: error: $2" >&2
15370  as_fn_exit $as_status
15371} # as_fn_error
15372
15373
15374# as_fn_set_status STATUS
15375# -----------------------
15376# Set $? to STATUS, without forking.
15377as_fn_set_status ()
15378{
15379  return $1
15380} # as_fn_set_status
15381
15382# as_fn_exit STATUS
15383# -----------------
15384# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15385as_fn_exit ()
15386{
15387  set +e
15388  as_fn_set_status $1
15389  exit $1
15390} # as_fn_exit
15391
15392# as_fn_unset VAR
15393# ---------------
15394# Portably unset VAR.
15395as_fn_unset ()
15396{
15397  { eval $1=; unset $1;}
15398}
15399as_unset=as_fn_unset
15400# as_fn_append VAR VALUE
15401# ----------------------
15402# Append the text in VALUE to the end of the definition contained in VAR. Take
15403# advantage of any shell optimizations that allow amortized linear growth over
15404# repeated appends, instead of the typical quadratic growth present in naive
15405# implementations.
15406if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15407  eval 'as_fn_append ()
15408  {
15409    eval $1+=\$2
15410  }'
15411else
15412  as_fn_append ()
15413  {
15414    eval $1=\$$1\$2
15415  }
15416fi # as_fn_append
15417
15418# as_fn_arith ARG...
15419# ------------------
15420# Perform arithmetic evaluation on the ARGs, and store the result in the
15421# global $as_val. Take advantage of shells that can avoid forks. The arguments
15422# must be portable across $(()) and expr.
15423if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15424  eval 'as_fn_arith ()
15425  {
15426    as_val=$(( $* ))
15427  }'
15428else
15429  as_fn_arith ()
15430  {
15431    as_val=`expr "$@" || test $? -eq 1`
15432  }
15433fi # as_fn_arith
15434
15435
15436if expr a : '\(a\)' >/dev/null 2>&1 &&
15437   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15438  as_expr=expr
15439else
15440  as_expr=false
15441fi
15442
15443if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15444  as_basename=basename
15445else
15446  as_basename=false
15447fi
15448
15449if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15450  as_dirname=dirname
15451else
15452  as_dirname=false
15453fi
15454
15455as_me=`$as_basename -- "$0" ||
15456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15457	 X"$0" : 'X\(//\)$' \| \
15458	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15459$as_echo X/"$0" |
15460    sed '/^.*\/\([^/][^/]*\)\/*$/{
15461	    s//\1/
15462	    q
15463	  }
15464	  /^X\/\(\/\/\)$/{
15465	    s//\1/
15466	    q
15467	  }
15468	  /^X\/\(\/\).*/{
15469	    s//\1/
15470	    q
15471	  }
15472	  s/.*/./; q'`
15473
15474# Avoid depending upon Character Ranges.
15475as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15477as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15478as_cr_digits='0123456789'
15479as_cr_alnum=$as_cr_Letters$as_cr_digits
15480
15481ECHO_C= ECHO_N= ECHO_T=
15482case `echo -n x` in #(((((
15483-n*)
15484  case `echo 'xy\c'` in
15485  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15486  xy)  ECHO_C='\c';;
15487  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15488       ECHO_T='	';;
15489  esac;;
15490*)
15491  ECHO_N='-n';;
15492esac
15493
15494rm -f conf$$ conf$$.exe conf$$.file
15495if test -d conf$$.dir; then
15496  rm -f conf$$.dir/conf$$.file
15497else
15498  rm -f conf$$.dir
15499  mkdir conf$$.dir 2>/dev/null
15500fi
15501if (echo >conf$$.file) 2>/dev/null; then
15502  if ln -s conf$$.file conf$$ 2>/dev/null; then
15503    as_ln_s='ln -s'
15504    # ... but there are two gotchas:
15505    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15506    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15507    # In both cases, we have to default to `cp -p'.
15508    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15509      as_ln_s='cp -p'
15510  elif ln conf$$.file conf$$ 2>/dev/null; then
15511    as_ln_s=ln
15512  else
15513    as_ln_s='cp -p'
15514  fi
15515else
15516  as_ln_s='cp -p'
15517fi
15518rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15519rmdir conf$$.dir 2>/dev/null
15520
15521
15522# as_fn_mkdir_p
15523# -------------
15524# Create "$as_dir" as a directory, including parents if necessary.
15525as_fn_mkdir_p ()
15526{
15527
15528  case $as_dir in #(
15529  -*) as_dir=./$as_dir;;
15530  esac
15531  test -d "$as_dir" || eval $as_mkdir_p || {
15532    as_dirs=
15533    while :; do
15534      case $as_dir in #(
15535      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15536      *) as_qdir=$as_dir;;
15537      esac
15538      as_dirs="'$as_qdir' $as_dirs"
15539      as_dir=`$as_dirname -- "$as_dir" ||
15540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15541	 X"$as_dir" : 'X\(//\)[^/]' \| \
15542	 X"$as_dir" : 'X\(//\)$' \| \
15543	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15544$as_echo X"$as_dir" |
15545    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15546	    s//\1/
15547	    q
15548	  }
15549	  /^X\(\/\/\)[^/].*/{
15550	    s//\1/
15551	    q
15552	  }
15553	  /^X\(\/\/\)$/{
15554	    s//\1/
15555	    q
15556	  }
15557	  /^X\(\/\).*/{
15558	    s//\1/
15559	    q
15560	  }
15561	  s/.*/./; q'`
15562      test -d "$as_dir" && break
15563    done
15564    test -z "$as_dirs" || eval "mkdir $as_dirs"
15565  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15566
15567
15568} # as_fn_mkdir_p
15569if mkdir -p . 2>/dev/null; then
15570  as_mkdir_p='mkdir -p "$as_dir"'
15571else
15572  test -d ./-p && rmdir ./-p
15573  as_mkdir_p=false
15574fi
15575
15576if test -x / >/dev/null 2>&1; then
15577  as_test_x='test -x'
15578else
15579  if ls -dL / >/dev/null 2>&1; then
15580    as_ls_L_option=L
15581  else
15582    as_ls_L_option=
15583  fi
15584  as_test_x='
15585    eval sh -c '\''
15586      if test -d "$1"; then
15587	test -d "$1/.";
15588      else
15589	case $1 in #(
15590	-*)set "./$1";;
15591	esac;
15592	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15593	???[sx]*):;;*)false;;esac;fi
15594    '\'' sh
15595  '
15596fi
15597as_executable_p=$as_test_x
15598
15599# Sed expression to map a string onto a valid CPP name.
15600as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15601
15602# Sed expression to map a string onto a valid variable name.
15603as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15604
15605
15606exec 6>&1
15607## ----------------------------------- ##
15608## Main body of $CONFIG_STATUS script. ##
15609## ----------------------------------- ##
15610_ASEOF
15611test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15612
15613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15614# Save the log message, to keep $0 and so on meaningful, and to
15615# report actual input values of CONFIG_FILES etc. instead of their
15616# values after options handling.
15617ac_log="
15618This file was extended by libX11 $as_me 1.4.3, which was
15619generated by GNU Autoconf 2.68.  Invocation command line was
15620
15621  CONFIG_FILES    = $CONFIG_FILES
15622  CONFIG_HEADERS  = $CONFIG_HEADERS
15623  CONFIG_LINKS    = $CONFIG_LINKS
15624  CONFIG_COMMANDS = $CONFIG_COMMANDS
15625  $ $0 $@
15626
15627on `(hostname || uname -n) 2>/dev/null | sed 1q`
15628"
15629
15630_ACEOF
15631
15632case $ac_config_files in *"
15633"*) set x $ac_config_files; shift; ac_config_files=$*;;
15634esac
15635
15636case $ac_config_headers in *"
15637"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15638esac
15639
15640
15641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15642# Files that config.status was made for.
15643config_files="$ac_config_files"
15644config_headers="$ac_config_headers"
15645config_commands="$ac_config_commands"
15646
15647_ACEOF
15648
15649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650ac_cs_usage="\
15651\`$as_me' instantiates files and other configuration actions
15652from templates according to the current configuration.  Unless the files
15653and actions are specified as TAGs, all are instantiated by default.
15654
15655Usage: $0 [OPTION]... [TAG]...
15656
15657  -h, --help       print this help, then exit
15658  -V, --version    print version number and configuration settings, then exit
15659      --config     print configuration, then exit
15660  -q, --quiet, --silent
15661                   do not print progress messages
15662  -d, --debug      don't remove temporary files
15663      --recheck    update $as_me by reconfiguring in the same conditions
15664      --file=FILE[:TEMPLATE]
15665                   instantiate the configuration file FILE
15666      --header=FILE[:TEMPLATE]
15667                   instantiate the configuration header FILE
15668
15669Configuration files:
15670$config_files
15671
15672Configuration headers:
15673$config_headers
15674
15675Configuration commands:
15676$config_commands
15677
15678Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
15679
15680_ACEOF
15681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15682ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15683ac_cs_version="\\
15684libX11 config.status 1.4.3
15685configured by $0, generated by GNU Autoconf 2.68,
15686  with options \\"\$ac_cs_config\\"
15687
15688Copyright (C) 2010 Free Software Foundation, Inc.
15689This config.status script is free software; the Free Software Foundation
15690gives unlimited permission to copy, distribute and modify it."
15691
15692ac_pwd='$ac_pwd'
15693srcdir='$srcdir'
15694INSTALL='$INSTALL'
15695MKDIR_P='$MKDIR_P'
15696AWK='$AWK'
15697test -n "\$AWK" || AWK=awk
15698_ACEOF
15699
15700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15701# The default lists apply if the user does not specify any file.
15702ac_need_defaults=:
15703while test $# != 0
15704do
15705  case $1 in
15706  --*=?*)
15707    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15708    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15709    ac_shift=:
15710    ;;
15711  --*=)
15712    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15713    ac_optarg=
15714    ac_shift=:
15715    ;;
15716  *)
15717    ac_option=$1
15718    ac_optarg=$2
15719    ac_shift=shift
15720    ;;
15721  esac
15722
15723  case $ac_option in
15724  # Handling of the options.
15725  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15726    ac_cs_recheck=: ;;
15727  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15728    $as_echo "$ac_cs_version"; exit ;;
15729  --config | --confi | --conf | --con | --co | --c )
15730    $as_echo "$ac_cs_config"; exit ;;
15731  --debug | --debu | --deb | --de | --d | -d )
15732    debug=: ;;
15733  --file | --fil | --fi | --f )
15734    $ac_shift
15735    case $ac_optarg in
15736    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15737    '') as_fn_error $? "missing file argument" ;;
15738    esac
15739    as_fn_append CONFIG_FILES " '$ac_optarg'"
15740    ac_need_defaults=false;;
15741  --header | --heade | --head | --hea )
15742    $ac_shift
15743    case $ac_optarg in
15744    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15745    esac
15746    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15747    ac_need_defaults=false;;
15748  --he | --h)
15749    # Conflict between --help and --header
15750    as_fn_error $? "ambiguous option: \`$1'
15751Try \`$0 --help' for more information.";;
15752  --help | --hel | -h )
15753    $as_echo "$ac_cs_usage"; exit ;;
15754  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15755  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15756    ac_cs_silent=: ;;
15757
15758  # This is an error.
15759  -*) as_fn_error $? "unrecognized option: \`$1'
15760Try \`$0 --help' for more information." ;;
15761
15762  *) as_fn_append ac_config_targets " $1"
15763     ac_need_defaults=false ;;
15764
15765  esac
15766  shift
15767done
15768
15769ac_configure_extra_args=
15770
15771if $ac_cs_silent; then
15772  exec 6>/dev/null
15773  ac_configure_extra_args="$ac_configure_extra_args --silent"
15774fi
15775
15776_ACEOF
15777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15778if \$ac_cs_recheck; then
15779  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15780  shift
15781  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15782  CONFIG_SHELL='$SHELL'
15783  export CONFIG_SHELL
15784  exec "\$@"
15785fi
15786
15787_ACEOF
15788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15789exec 5>>config.log
15790{
15791  echo
15792  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15793## Running $as_me. ##
15794_ASBOX
15795  $as_echo "$ac_log"
15796} >&5
15797
15798_ACEOF
15799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15800#
15801# INIT-COMMANDS
15802#
15803AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15804
15805
15806# The HP-UX ksh and POSIX shell print the target directory to stdout
15807# if CDPATH is set.
15808(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15809
15810sed_quote_subst='$sed_quote_subst'
15811double_quote_subst='$double_quote_subst'
15812delay_variable_subst='$delay_variable_subst'
15813macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15814macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15815enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15816enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15817pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15818enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15819SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15820ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15821host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15822host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15823host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15824build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15825build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15826build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15827SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15828Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15829GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15830EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15831FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15832LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15833NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15834LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15835max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15836ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15837exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15838lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15839lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15840lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15841lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15842lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15843reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15844reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15845OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15846deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15847file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15848file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15849want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15850DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15851sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15852AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15853AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15854archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15855STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15856RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15857old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15858old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15859old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15860lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15861CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15862CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15863compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15864GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15865lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15866lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15867lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15868lt_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"`'
15869nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15870lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15871objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15872MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15873lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15874lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15875lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15876lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15877lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15878need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15879MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15880DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15881NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15882LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15883OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15884OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15885libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15886shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15887extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15888archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15889enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15890export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15891whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15892compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15893old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15894old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15895archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15896archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15897module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15898module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15899with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15900allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15901no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15902hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15903hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15904hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15905hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15906hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15907hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15908hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15909hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15910inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15911link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15912always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15913export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15914exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15915include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15916prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15917postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15918file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15919variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15920need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15921need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15922version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15923runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15924shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15925shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15926libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15927library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15928soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15929install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15930postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15931postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15932finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15933finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15934hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15935sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15936sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15937hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15938enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15939enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15940enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15941old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15942striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15943
15944LTCC='$LTCC'
15945LTCFLAGS='$LTCFLAGS'
15946compiler='$compiler_DEFAULT'
15947
15948# A function that is used when there is no print builtin or printf.
15949func_fallback_echo ()
15950{
15951  eval 'cat <<_LTECHO_EOF
15952\$1
15953_LTECHO_EOF'
15954}
15955
15956# Quote evaled strings.
15957for var in SHELL \
15958ECHO \
15959SED \
15960GREP \
15961EGREP \
15962FGREP \
15963LD \
15964NM \
15965LN_S \
15966lt_SP2NL \
15967lt_NL2SP \
15968reload_flag \
15969OBJDUMP \
15970deplibs_check_method \
15971file_magic_cmd \
15972file_magic_glob \
15973want_nocaseglob \
15974DLLTOOL \
15975sharedlib_from_linklib_cmd \
15976AR \
15977AR_FLAGS \
15978archiver_list_spec \
15979STRIP \
15980RANLIB \
15981CC \
15982CFLAGS \
15983compiler \
15984lt_cv_sys_global_symbol_pipe \
15985lt_cv_sys_global_symbol_to_cdecl \
15986lt_cv_sys_global_symbol_to_c_name_address \
15987lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15988nm_file_list_spec \
15989lt_prog_compiler_no_builtin_flag \
15990lt_prog_compiler_pic \
15991lt_prog_compiler_wl \
15992lt_prog_compiler_static \
15993lt_cv_prog_compiler_c_o \
15994need_locks \
15995MANIFEST_TOOL \
15996DSYMUTIL \
15997NMEDIT \
15998LIPO \
15999OTOOL \
16000OTOOL64 \
16001shrext_cmds \
16002export_dynamic_flag_spec \
16003whole_archive_flag_spec \
16004compiler_needs_object \
16005with_gnu_ld \
16006allow_undefined_flag \
16007no_undefined_flag \
16008hardcode_libdir_flag_spec \
16009hardcode_libdir_flag_spec_ld \
16010hardcode_libdir_separator \
16011exclude_expsyms \
16012include_expsyms \
16013file_list_spec \
16014variables_saved_for_relink \
16015libname_spec \
16016library_names_spec \
16017soname_spec \
16018install_override_mode \
16019finish_eval \
16020old_striplib \
16021striplib; do
16022    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16023    *[\\\\\\\`\\"\\\$]*)
16024      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16025      ;;
16026    *)
16027      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16028      ;;
16029    esac
16030done
16031
16032# Double-quote double-evaled strings.
16033for var in reload_cmds \
16034old_postinstall_cmds \
16035old_postuninstall_cmds \
16036old_archive_cmds \
16037extract_expsyms_cmds \
16038old_archive_from_new_cmds \
16039old_archive_from_expsyms_cmds \
16040archive_cmds \
16041archive_expsym_cmds \
16042module_cmds \
16043module_expsym_cmds \
16044export_symbols_cmds \
16045prelink_cmds \
16046postlink_cmds \
16047postinstall_cmds \
16048postuninstall_cmds \
16049finish_cmds \
16050sys_lib_search_path_spec \
16051sys_lib_dlsearch_path_spec; do
16052    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16053    *[\\\\\\\`\\"\\\$]*)
16054      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16055      ;;
16056    *)
16057      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16058      ;;
16059    esac
16060done
16061
16062ac_aux_dir='$ac_aux_dir'
16063xsi_shell='$xsi_shell'
16064lt_shell_append='$lt_shell_append'
16065
16066# See if we are running on zsh, and set the options which allow our
16067# commands through without removal of \ escapes INIT.
16068if test -n "\${ZSH_VERSION+set}" ; then
16069   setopt NO_GLOB_SUBST
16070fi
16071
16072
16073    PACKAGE='$PACKAGE'
16074    VERSION='$VERSION'
16075    TIMESTAMP='$TIMESTAMP'
16076    RM='$RM'
16077    ofile='$ofile'
16078
16079
16080
16081
16082_ACEOF
16083
16084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16085
16086# Handling of arguments.
16087for ac_config_target in $ac_config_targets
16088do
16089  case $ac_config_target in
16090    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16091    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
16092    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16093    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16094    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16095    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16096    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16097    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
16098    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16099    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
16100    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
16101    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
16102    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16103    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
16104    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
16105    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
16106    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
16107    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
16108    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
16109    "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;;
16110    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
16111    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
16112    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
16113    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
16114    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
16115    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
16116    "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
16117    "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
16118    "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
16119    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
16120    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
16121    "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
16122    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
16123    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
16124
16125  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16126  esac
16127done
16128
16129
16130# If the user did not use the arguments to specify the items to instantiate,
16131# then the envvar interface is used.  Set only those that are not.
16132# We use the long form for the default assignment because of an extremely
16133# bizarre bug on SunOS 4.1.3.
16134if $ac_need_defaults; then
16135  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16136  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16137  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16138fi
16139
16140# Have a temporary directory for convenience.  Make it in the build tree
16141# simply because there is no reason against having it here, and in addition,
16142# creating and moving files from /tmp can sometimes cause problems.
16143# Hook for its removal unless debugging.
16144# Note that there is a small window in which the directory will not be cleaned:
16145# after its creation but before its name has been assigned to `$tmp'.
16146$debug ||
16147{
16148  tmp= ac_tmp=
16149  trap 'exit_status=$?
16150  : "${ac_tmp:=$tmp}"
16151  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16152' 0
16153  trap 'as_fn_exit 1' 1 2 13 15
16154}
16155# Create a (secure) tmp directory for tmp files.
16156
16157{
16158  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16159  test -d "$tmp"
16160}  ||
16161{
16162  tmp=./conf$$-$RANDOM
16163  (umask 077 && mkdir "$tmp")
16164} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16165ac_tmp=$tmp
16166
16167# Set up the scripts for CONFIG_FILES section.
16168# No need to generate them if there are no CONFIG_FILES.
16169# This happens for instance with `./config.status config.h'.
16170if test -n "$CONFIG_FILES"; then
16171
16172
16173ac_cr=`echo X | tr X '\015'`
16174# On cygwin, bash can eat \r inside `` if the user requested igncr.
16175# But we know of no other shell where ac_cr would be empty at this
16176# point, so we can use a bashism as a fallback.
16177if test "x$ac_cr" = x; then
16178  eval ac_cr=\$\'\\r\'
16179fi
16180ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16181if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16182  ac_cs_awk_cr='\\r'
16183else
16184  ac_cs_awk_cr=$ac_cr
16185fi
16186
16187echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16188_ACEOF
16189
16190
16191{
16192  echo "cat >conf$$subs.awk <<_ACEOF" &&
16193  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16194  echo "_ACEOF"
16195} >conf$$subs.sh ||
16196  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16197ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16198ac_delim='%!_!# '
16199for ac_last_try in false false false false false :; do
16200  . ./conf$$subs.sh ||
16201    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16202
16203  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16204  if test $ac_delim_n = $ac_delim_num; then
16205    break
16206  elif $ac_last_try; then
16207    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16208  else
16209    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16210  fi
16211done
16212rm -f conf$$subs.sh
16213
16214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16215cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16216_ACEOF
16217sed -n '
16218h
16219s/^/S["/; s/!.*/"]=/
16220p
16221g
16222s/^[^!]*!//
16223:repl
16224t repl
16225s/'"$ac_delim"'$//
16226t delim
16227:nl
16228h
16229s/\(.\{148\}\)..*/\1/
16230t more1
16231s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16232p
16233n
16234b repl
16235:more1
16236s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16237p
16238g
16239s/.\{148\}//
16240t nl
16241:delim
16242h
16243s/\(.\{148\}\)..*/\1/
16244t more2
16245s/["\\]/\\&/g; s/^/"/; s/$/"/
16246p
16247b
16248:more2
16249s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16250p
16251g
16252s/.\{148\}//
16253t delim
16254' <conf$$subs.awk | sed '
16255/^[^""]/{
16256  N
16257  s/\n//
16258}
16259' >>$CONFIG_STATUS || ac_write_fail=1
16260rm -f conf$$subs.awk
16261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16262_ACAWK
16263cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16264  for (key in S) S_is_set[key] = 1
16265  FS = ""
16266
16267}
16268{
16269  line = $ 0
16270  nfields = split(line, field, "@")
16271  substed = 0
16272  len = length(field[1])
16273  for (i = 2; i < nfields; i++) {
16274    key = field[i]
16275    keylen = length(key)
16276    if (S_is_set[key]) {
16277      value = S[key]
16278      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16279      len += length(value) + length(field[++i])
16280      substed = 1
16281    } else
16282      len += 1 + keylen
16283  }
16284
16285  print line
16286}
16287
16288_ACAWK
16289_ACEOF
16290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16291if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16292  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16293else
16294  cat
16295fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16296  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16297_ACEOF
16298
16299# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16300# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16301# trailing colons and then remove the whole line if VPATH becomes empty
16302# (actually we leave an empty line to preserve line numbers).
16303if test "x$srcdir" = x.; then
16304  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16305h
16306s///
16307s/^/:/
16308s/[	 ]*$/:/
16309s/:\$(srcdir):/:/g
16310s/:\${srcdir}:/:/g
16311s/:@srcdir@:/:/g
16312s/^:*//
16313s/:*$//
16314x
16315s/\(=[	 ]*\).*/\1/
16316G
16317s/\n//
16318s/^[^=]*=[	 ]*$//
16319}'
16320fi
16321
16322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16323fi # test -n "$CONFIG_FILES"
16324
16325# Set up the scripts for CONFIG_HEADERS section.
16326# No need to generate them if there are no CONFIG_HEADERS.
16327# This happens for instance with `./config.status Makefile'.
16328if test -n "$CONFIG_HEADERS"; then
16329cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16330BEGIN {
16331_ACEOF
16332
16333# Transform confdefs.h into an awk script `defines.awk', embedded as
16334# here-document in config.status, that substitutes the proper values into
16335# config.h.in to produce config.h.
16336
16337# Create a delimiter string that does not exist in confdefs.h, to ease
16338# handling of long lines.
16339ac_delim='%!_!# '
16340for ac_last_try in false false :; do
16341  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16342  if test -z "$ac_tt"; then
16343    break
16344  elif $ac_last_try; then
16345    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16346  else
16347    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16348  fi
16349done
16350
16351# For the awk script, D is an array of macro values keyed by name,
16352# likewise P contains macro parameters if any.  Preserve backslash
16353# newline sequences.
16354
16355ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16356sed -n '
16357s/.\{148\}/&'"$ac_delim"'/g
16358t rset
16359:rset
16360s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16361t def
16362d
16363:def
16364s/\\$//
16365t bsnl
16366s/["\\]/\\&/g
16367s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16368D["\1"]=" \3"/p
16369s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16370d
16371:bsnl
16372s/["\\]/\\&/g
16373s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16374D["\1"]=" \3\\\\\\n"\\/p
16375t cont
16376s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16377t cont
16378d
16379:cont
16380n
16381s/.\{148\}/&'"$ac_delim"'/g
16382t clear
16383:clear
16384s/\\$//
16385t bsnlc
16386s/["\\]/\\&/g; s/^/"/; s/$/"/p
16387d
16388:bsnlc
16389s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16390b cont
16391' <confdefs.h | sed '
16392s/'"$ac_delim"'/"\\\
16393"/g' >>$CONFIG_STATUS || ac_write_fail=1
16394
16395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16396  for (key in D) D_is_set[key] = 1
16397  FS = ""
16398}
16399/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16400  line = \$ 0
16401  split(line, arg, " ")
16402  if (arg[1] == "#") {
16403    defundef = arg[2]
16404    mac1 = arg[3]
16405  } else {
16406    defundef = substr(arg[1], 2)
16407    mac1 = arg[2]
16408  }
16409  split(mac1, mac2, "(") #)
16410  macro = mac2[1]
16411  prefix = substr(line, 1, index(line, defundef) - 1)
16412  if (D_is_set[macro]) {
16413    # Preserve the white space surrounding the "#".
16414    print prefix "define", macro P[macro] D[macro]
16415    next
16416  } else {
16417    # Replace #undef with comments.  This is necessary, for example,
16418    # in the case of _POSIX_SOURCE, which is predefined and required
16419    # on some systems where configure will not decide to define it.
16420    if (defundef == "undef") {
16421      print "/*", prefix defundef, macro, "*/"
16422      next
16423    }
16424  }
16425}
16426{ print }
16427_ACAWK
16428_ACEOF
16429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16430  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16431fi # test -n "$CONFIG_HEADERS"
16432
16433
16434eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16435shift
16436for ac_tag
16437do
16438  case $ac_tag in
16439  :[FHLC]) ac_mode=$ac_tag; continue;;
16440  esac
16441  case $ac_mode$ac_tag in
16442  :[FHL]*:*);;
16443  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16444  :[FH]-) ac_tag=-:-;;
16445  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16446  esac
16447  ac_save_IFS=$IFS
16448  IFS=:
16449  set x $ac_tag
16450  IFS=$ac_save_IFS
16451  shift
16452  ac_file=$1
16453  shift
16454
16455  case $ac_mode in
16456  :L) ac_source=$1;;
16457  :[FH])
16458    ac_file_inputs=
16459    for ac_f
16460    do
16461      case $ac_f in
16462      -) ac_f="$ac_tmp/stdin";;
16463      *) # Look for the file first in the build tree, then in the source tree
16464	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16465	 # because $ac_f cannot contain `:'.
16466	 test -f "$ac_f" ||
16467	   case $ac_f in
16468	   [\\/$]*) false;;
16469	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16470	   esac ||
16471	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16472      esac
16473      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16474      as_fn_append ac_file_inputs " '$ac_f'"
16475    done
16476
16477    # Let's still pretend it is `configure' which instantiates (i.e., don't
16478    # use $as_me), people would be surprised to read:
16479    #    /* config.h.  Generated by config.status.  */
16480    configure_input='Generated from '`
16481	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16482	`' by configure.'
16483    if test x"$ac_file" != x-; then
16484      configure_input="$ac_file.  $configure_input"
16485      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16486$as_echo "$as_me: creating $ac_file" >&6;}
16487    fi
16488    # Neutralize special characters interpreted by sed in replacement strings.
16489    case $configure_input in #(
16490    *\&* | *\|* | *\\* )
16491       ac_sed_conf_input=`$as_echo "$configure_input" |
16492       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16493    *) ac_sed_conf_input=$configure_input;;
16494    esac
16495
16496    case $ac_tag in
16497    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16498      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16499    esac
16500    ;;
16501  esac
16502
16503  ac_dir=`$as_dirname -- "$ac_file" ||
16504$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16505	 X"$ac_file" : 'X\(//\)[^/]' \| \
16506	 X"$ac_file" : 'X\(//\)$' \| \
16507	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16508$as_echo X"$ac_file" |
16509    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16510	    s//\1/
16511	    q
16512	  }
16513	  /^X\(\/\/\)[^/].*/{
16514	    s//\1/
16515	    q
16516	  }
16517	  /^X\(\/\/\)$/{
16518	    s//\1/
16519	    q
16520	  }
16521	  /^X\(\/\).*/{
16522	    s//\1/
16523	    q
16524	  }
16525	  s/.*/./; q'`
16526  as_dir="$ac_dir"; as_fn_mkdir_p
16527  ac_builddir=.
16528
16529case "$ac_dir" in
16530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16531*)
16532  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16533  # A ".." for each directory in $ac_dir_suffix.
16534  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16535  case $ac_top_builddir_sub in
16536  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16537  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16538  esac ;;
16539esac
16540ac_abs_top_builddir=$ac_pwd
16541ac_abs_builddir=$ac_pwd$ac_dir_suffix
16542# for backward compatibility:
16543ac_top_builddir=$ac_top_build_prefix
16544
16545case $srcdir in
16546  .)  # We are building in place.
16547    ac_srcdir=.
16548    ac_top_srcdir=$ac_top_builddir_sub
16549    ac_abs_top_srcdir=$ac_pwd ;;
16550  [\\/]* | ?:[\\/]* )  # Absolute name.
16551    ac_srcdir=$srcdir$ac_dir_suffix;
16552    ac_top_srcdir=$srcdir
16553    ac_abs_top_srcdir=$srcdir ;;
16554  *) # Relative name.
16555    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16556    ac_top_srcdir=$ac_top_build_prefix$srcdir
16557    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16558esac
16559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16560
16561
16562  case $ac_mode in
16563  :F)
16564  #
16565  # CONFIG_FILE
16566  #
16567
16568  case $INSTALL in
16569  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16570  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16571  esac
16572  ac_MKDIR_P=$MKDIR_P
16573  case $MKDIR_P in
16574  [\\/$]* | ?:[\\/]* ) ;;
16575  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16576  esac
16577_ACEOF
16578
16579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16580# If the template does not know about datarootdir, expand it.
16581# FIXME: This hack should be removed a few years after 2.60.
16582ac_datarootdir_hack=; ac_datarootdir_seen=
16583ac_sed_dataroot='
16584/datarootdir/ {
16585  p
16586  q
16587}
16588/@datadir@/p
16589/@docdir@/p
16590/@infodir@/p
16591/@localedir@/p
16592/@mandir@/p'
16593case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16594*datarootdir*) ac_datarootdir_seen=yes;;
16595*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16596  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16597$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16598_ACEOF
16599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16600  ac_datarootdir_hack='
16601  s&@datadir@&$datadir&g
16602  s&@docdir@&$docdir&g
16603  s&@infodir@&$infodir&g
16604  s&@localedir@&$localedir&g
16605  s&@mandir@&$mandir&g
16606  s&\\\${datarootdir}&$datarootdir&g' ;;
16607esac
16608_ACEOF
16609
16610# Neutralize VPATH when `$srcdir' = `.'.
16611# Shell code in configure.ac might set extrasub.
16612# FIXME: do we really want to maintain this feature?
16613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16614ac_sed_extra="$ac_vpsub
16615$extrasub
16616_ACEOF
16617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16618:t
16619/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16620s|@configure_input@|$ac_sed_conf_input|;t t
16621s&@top_builddir@&$ac_top_builddir_sub&;t t
16622s&@top_build_prefix@&$ac_top_build_prefix&;t t
16623s&@srcdir@&$ac_srcdir&;t t
16624s&@abs_srcdir@&$ac_abs_srcdir&;t t
16625s&@top_srcdir@&$ac_top_srcdir&;t t
16626s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16627s&@builddir@&$ac_builddir&;t t
16628s&@abs_builddir@&$ac_abs_builddir&;t t
16629s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16630s&@INSTALL@&$ac_INSTALL&;t t
16631s&@MKDIR_P@&$ac_MKDIR_P&;t t
16632$ac_datarootdir_hack
16633"
16634eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16635  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16636
16637test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16638  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16639  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16640      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16641  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16642which seems to be undefined.  Please make sure it is defined" >&5
16643$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16644which seems to be undefined.  Please make sure it is defined" >&2;}
16645
16646  rm -f "$ac_tmp/stdin"
16647  case $ac_file in
16648  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16649  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16650  esac \
16651  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16652 ;;
16653  :H)
16654  #
16655  # CONFIG_HEADER
16656  #
16657  if test x"$ac_file" != x-; then
16658    {
16659      $as_echo "/* $configure_input  */" \
16660      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16661    } >"$ac_tmp/config.h" \
16662      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16663    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16664      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16665$as_echo "$as_me: $ac_file is unchanged" >&6;}
16666    else
16667      rm -f "$ac_file"
16668      mv "$ac_tmp/config.h" "$ac_file" \
16669	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16670    fi
16671  else
16672    $as_echo "/* $configure_input  */" \
16673      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16674      || as_fn_error $? "could not create -" "$LINENO" 5
16675  fi
16676# Compute "$ac_file"'s index in $config_headers.
16677_am_arg="$ac_file"
16678_am_stamp_count=1
16679for _am_header in $config_headers :; do
16680  case $_am_header in
16681    $_am_arg | $_am_arg:* )
16682      break ;;
16683    * )
16684      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16685  esac
16686done
16687echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16688$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16689	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16690	 X"$_am_arg" : 'X\(//\)$' \| \
16691	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16692$as_echo X"$_am_arg" |
16693    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16694	    s//\1/
16695	    q
16696	  }
16697	  /^X\(\/\/\)[^/].*/{
16698	    s//\1/
16699	    q
16700	  }
16701	  /^X\(\/\/\)$/{
16702	    s//\1/
16703	    q
16704	  }
16705	  /^X\(\/\).*/{
16706	    s//\1/
16707	    q
16708	  }
16709	  s/.*/./; q'`/stamp-h$_am_stamp_count
16710 ;;
16711
16712  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16713$as_echo "$as_me: executing $ac_file commands" >&6;}
16714 ;;
16715  esac
16716
16717
16718  case $ac_file$ac_mode in
16719    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16720  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16721  # are listed without --file.  Let's play safe and only enable the eval
16722  # if we detect the quoting.
16723  case $CONFIG_FILES in
16724  *\'*) eval set x "$CONFIG_FILES" ;;
16725  *)   set x $CONFIG_FILES ;;
16726  esac
16727  shift
16728  for mf
16729  do
16730    # Strip MF so we end up with the name of the file.
16731    mf=`echo "$mf" | sed -e 's/:.*$//'`
16732    # Check whether this is an Automake generated Makefile or not.
16733    # We used to match only the files named `Makefile.in', but
16734    # some people rename them; so instead we look at the file content.
16735    # Grep'ing the first line is not enough: some people post-process
16736    # each Makefile.in and add a new line on top of each file to say so.
16737    # Grep'ing the whole file is not good either: AIX grep has a line
16738    # limit of 2048, but all sed's we know have understand at least 4000.
16739    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16740      dirpart=`$as_dirname -- "$mf" ||
16741$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16742	 X"$mf" : 'X\(//\)[^/]' \| \
16743	 X"$mf" : 'X\(//\)$' \| \
16744	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16745$as_echo X"$mf" |
16746    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16747	    s//\1/
16748	    q
16749	  }
16750	  /^X\(\/\/\)[^/].*/{
16751	    s//\1/
16752	    q
16753	  }
16754	  /^X\(\/\/\)$/{
16755	    s//\1/
16756	    q
16757	  }
16758	  /^X\(\/\).*/{
16759	    s//\1/
16760	    q
16761	  }
16762	  s/.*/./; q'`
16763    else
16764      continue
16765    fi
16766    # Extract the definition of DEPDIR, am__include, and am__quote
16767    # from the Makefile without running `make'.
16768    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16769    test -z "$DEPDIR" && continue
16770    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16771    test -z "am__include" && continue
16772    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16773    # When using ansi2knr, U may be empty or an underscore; expand it
16774    U=`sed -n 's/^U = //p' < "$mf"`
16775    # Find all dependency output files, they are included files with
16776    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16777    # simplest approach to changing $(DEPDIR) to its actual value in the
16778    # expansion.
16779    for file in `sed -n "
16780      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16781	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16782      # Make sure the directory exists.
16783      test -f "$dirpart/$file" && continue
16784      fdir=`$as_dirname -- "$file" ||
16785$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16786	 X"$file" : 'X\(//\)[^/]' \| \
16787	 X"$file" : 'X\(//\)$' \| \
16788	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16789$as_echo X"$file" |
16790    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16791	    s//\1/
16792	    q
16793	  }
16794	  /^X\(\/\/\)[^/].*/{
16795	    s//\1/
16796	    q
16797	  }
16798	  /^X\(\/\/\)$/{
16799	    s//\1/
16800	    q
16801	  }
16802	  /^X\(\/\).*/{
16803	    s//\1/
16804	    q
16805	  }
16806	  s/.*/./; q'`
16807      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16808      # echo "creating $dirpart/$file"
16809      echo '# dummy' > "$dirpart/$file"
16810    done
16811  done
16812}
16813 ;;
16814    "libtool":C)
16815
16816    # See if we are running on zsh, and set the options which allow our
16817    # commands through without removal of \ escapes.
16818    if test -n "${ZSH_VERSION+set}" ; then
16819      setopt NO_GLOB_SUBST
16820    fi
16821
16822    cfgfile="${ofile}T"
16823    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16824    $RM "$cfgfile"
16825
16826    cat <<_LT_EOF >> "$cfgfile"
16827#! $SHELL
16828
16829# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16830# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16831# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16832# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16833#
16834#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16835#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16836#                 Inc.
16837#   Written by Gordon Matzigkeit, 1996
16838#
16839#   This file is part of GNU Libtool.
16840#
16841# GNU Libtool is free software; you can redistribute it and/or
16842# modify it under the terms of the GNU General Public License as
16843# published by the Free Software Foundation; either version 2 of
16844# the License, or (at your option) any later version.
16845#
16846# As a special exception to the GNU General Public License,
16847# if you distribute this file as part of a program or library that
16848# is built using GNU Libtool, you may include this file under the
16849# same distribution terms that you use for the rest of that program.
16850#
16851# GNU Libtool is distributed in the hope that it will be useful,
16852# but WITHOUT ANY WARRANTY; without even the implied warranty of
16853# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16854# GNU General Public License for more details.
16855#
16856# You should have received a copy of the GNU General Public License
16857# along with GNU Libtool; see the file COPYING.  If not, a copy
16858# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16859# obtained by writing to the Free Software Foundation, Inc.,
16860# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16861
16862
16863# The names of the tagged configurations supported by this script.
16864available_tags=""
16865
16866# ### BEGIN LIBTOOL CONFIG
16867
16868# Which release of libtool.m4 was used?
16869macro_version=$macro_version
16870macro_revision=$macro_revision
16871
16872# Whether or not to build shared libraries.
16873build_libtool_libs=$enable_shared
16874
16875# Whether or not to build static libraries.
16876build_old_libs=$enable_static
16877
16878# What type of objects to build.
16879pic_mode=$pic_mode
16880
16881# Whether or not to optimize for fast installation.
16882fast_install=$enable_fast_install
16883
16884# Shell to use when invoking shell scripts.
16885SHELL=$lt_SHELL
16886
16887# An echo program that protects backslashes.
16888ECHO=$lt_ECHO
16889
16890# The host system.
16891host_alias=$host_alias
16892host=$host
16893host_os=$host_os
16894
16895# The build system.
16896build_alias=$build_alias
16897build=$build
16898build_os=$build_os
16899
16900# A sed program that does not truncate output.
16901SED=$lt_SED
16902
16903# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16904Xsed="\$SED -e 1s/^X//"
16905
16906# A grep program that handles long lines.
16907GREP=$lt_GREP
16908
16909# An ERE matcher.
16910EGREP=$lt_EGREP
16911
16912# A literal string matcher.
16913FGREP=$lt_FGREP
16914
16915# A BSD- or MS-compatible name lister.
16916NM=$lt_NM
16917
16918# Whether we need soft or hard links.
16919LN_S=$lt_LN_S
16920
16921# What is the maximum length of a command?
16922max_cmd_len=$max_cmd_len
16923
16924# Object file suffix (normally "o").
16925objext=$ac_objext
16926
16927# Executable file suffix (normally "").
16928exeext=$exeext
16929
16930# whether the shell understands "unset".
16931lt_unset=$lt_unset
16932
16933# turn spaces into newlines.
16934SP2NL=$lt_lt_SP2NL
16935
16936# turn newlines into spaces.
16937NL2SP=$lt_lt_NL2SP
16938
16939# convert \$build file names to \$host format.
16940to_host_file_cmd=$lt_cv_to_host_file_cmd
16941
16942# convert \$build files to toolchain format.
16943to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16944
16945# An object symbol dumper.
16946OBJDUMP=$lt_OBJDUMP
16947
16948# Method to check whether dependent libraries are shared objects.
16949deplibs_check_method=$lt_deplibs_check_method
16950
16951# Command to use when deplibs_check_method = "file_magic".
16952file_magic_cmd=$lt_file_magic_cmd
16953
16954# How to find potential files when deplibs_check_method = "file_magic".
16955file_magic_glob=$lt_file_magic_glob
16956
16957# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16958want_nocaseglob=$lt_want_nocaseglob
16959
16960# DLL creation program.
16961DLLTOOL=$lt_DLLTOOL
16962
16963# Command to associate shared and link libraries.
16964sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16965
16966# The archiver.
16967AR=$lt_AR
16968
16969# Flags to create an archive.
16970AR_FLAGS=$lt_AR_FLAGS
16971
16972# How to feed a file listing to the archiver.
16973archiver_list_spec=$lt_archiver_list_spec
16974
16975# A symbol stripping program.
16976STRIP=$lt_STRIP
16977
16978# Commands used to install an old-style archive.
16979RANLIB=$lt_RANLIB
16980old_postinstall_cmds=$lt_old_postinstall_cmds
16981old_postuninstall_cmds=$lt_old_postuninstall_cmds
16982
16983# Whether to use a lock for old archive extraction.
16984lock_old_archive_extraction=$lock_old_archive_extraction
16985
16986# A C compiler.
16987LTCC=$lt_CC
16988
16989# LTCC compiler flags.
16990LTCFLAGS=$lt_CFLAGS
16991
16992# Take the output of nm and produce a listing of raw symbols and C names.
16993global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16994
16995# Transform the output of nm in a proper C declaration.
16996global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16997
16998# Transform the output of nm in a C name address pair.
16999global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17000
17001# Transform the output of nm in a C name address pair when lib prefix is needed.
17002global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17003
17004# Specify filename containing input files for \$NM.
17005nm_file_list_spec=$lt_nm_file_list_spec
17006
17007# The root where to search for dependent libraries,and in which our libraries should be installed.
17008lt_sysroot=$lt_sysroot
17009
17010# The name of the directory that contains temporary libtool files.
17011objdir=$objdir
17012
17013# Used to examine libraries when file_magic_cmd begins with "file".
17014MAGIC_CMD=$MAGIC_CMD
17015
17016# Must we lock files when doing compilation?
17017need_locks=$lt_need_locks
17018
17019# Manifest tool.
17020MANIFEST_TOOL=$lt_MANIFEST_TOOL
17021
17022# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17023DSYMUTIL=$lt_DSYMUTIL
17024
17025# Tool to change global to local symbols on Mac OS X.
17026NMEDIT=$lt_NMEDIT
17027
17028# Tool to manipulate fat objects and archives on Mac OS X.
17029LIPO=$lt_LIPO
17030
17031# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17032OTOOL=$lt_OTOOL
17033
17034# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17035OTOOL64=$lt_OTOOL64
17036
17037# Old archive suffix (normally "a").
17038libext=$libext
17039
17040# Shared library suffix (normally ".so").
17041shrext_cmds=$lt_shrext_cmds
17042
17043# The commands to extract the exported symbol list from a shared archive.
17044extract_expsyms_cmds=$lt_extract_expsyms_cmds
17045
17046# Variables whose values should be saved in libtool wrapper scripts and
17047# restored at link time.
17048variables_saved_for_relink=$lt_variables_saved_for_relink
17049
17050# Do we need the "lib" prefix for modules?
17051need_lib_prefix=$need_lib_prefix
17052
17053# Do we need a version for libraries?
17054need_version=$need_version
17055
17056# Library versioning type.
17057version_type=$version_type
17058
17059# Shared library runtime path variable.
17060runpath_var=$runpath_var
17061
17062# Shared library path variable.
17063shlibpath_var=$shlibpath_var
17064
17065# Is shlibpath searched before the hard-coded library search path?
17066shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17067
17068# Format of library name prefix.
17069libname_spec=$lt_libname_spec
17070
17071# List of archive names.  First name is the real one, the rest are links.
17072# The last name is the one that the linker finds with -lNAME
17073library_names_spec=$lt_library_names_spec
17074
17075# The coded name of the library, if different from the real name.
17076soname_spec=$lt_soname_spec
17077
17078# Permission mode override for installation of shared libraries.
17079install_override_mode=$lt_install_override_mode
17080
17081# Command to use after installation of a shared archive.
17082postinstall_cmds=$lt_postinstall_cmds
17083
17084# Command to use after uninstallation of a shared archive.
17085postuninstall_cmds=$lt_postuninstall_cmds
17086
17087# Commands used to finish a libtool library installation in a directory.
17088finish_cmds=$lt_finish_cmds
17089
17090# As "finish_cmds", except a single script fragment to be evaled but
17091# not shown.
17092finish_eval=$lt_finish_eval
17093
17094# Whether we should hardcode library paths into libraries.
17095hardcode_into_libs=$hardcode_into_libs
17096
17097# Compile-time system search path for libraries.
17098sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17099
17100# Run-time system search path for libraries.
17101sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17102
17103# Whether dlopen is supported.
17104dlopen_support=$enable_dlopen
17105
17106# Whether dlopen of programs is supported.
17107dlopen_self=$enable_dlopen_self
17108
17109# Whether dlopen of statically linked programs is supported.
17110dlopen_self_static=$enable_dlopen_self_static
17111
17112# Commands to strip libraries.
17113old_striplib=$lt_old_striplib
17114striplib=$lt_striplib
17115
17116
17117# The linker used to build libraries.
17118LD=$lt_LD
17119
17120# How to create reloadable object files.
17121reload_flag=$lt_reload_flag
17122reload_cmds=$lt_reload_cmds
17123
17124# Commands used to build an old-style archive.
17125old_archive_cmds=$lt_old_archive_cmds
17126
17127# A language specific compiler.
17128CC=$lt_compiler
17129
17130# Is the compiler the GNU compiler?
17131with_gcc=$GCC
17132
17133# Compiler flag to turn off builtin functions.
17134no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17135
17136# Additional compiler flags for building library objects.
17137pic_flag=$lt_lt_prog_compiler_pic
17138
17139# How to pass a linker flag through the compiler.
17140wl=$lt_lt_prog_compiler_wl
17141
17142# Compiler flag to prevent dynamic linking.
17143link_static_flag=$lt_lt_prog_compiler_static
17144
17145# Does compiler simultaneously support -c and -o options?
17146compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17147
17148# Whether or not to add -lc for building shared libraries.
17149build_libtool_need_lc=$archive_cmds_need_lc
17150
17151# Whether or not to disallow shared libs when runtime libs are static.
17152allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17153
17154# Compiler flag to allow reflexive dlopens.
17155export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17156
17157# Compiler flag to generate shared objects directly from archives.
17158whole_archive_flag_spec=$lt_whole_archive_flag_spec
17159
17160# Whether the compiler copes with passing no objects directly.
17161compiler_needs_object=$lt_compiler_needs_object
17162
17163# Create an old-style archive from a shared archive.
17164old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17165
17166# Create a temporary old-style archive to link instead of a shared archive.
17167old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17168
17169# Commands used to build a shared archive.
17170archive_cmds=$lt_archive_cmds
17171archive_expsym_cmds=$lt_archive_expsym_cmds
17172
17173# Commands used to build a loadable module if different from building
17174# a shared archive.
17175module_cmds=$lt_module_cmds
17176module_expsym_cmds=$lt_module_expsym_cmds
17177
17178# Whether we are building with GNU ld or not.
17179with_gnu_ld=$lt_with_gnu_ld
17180
17181# Flag that allows shared libraries with undefined symbols to be built.
17182allow_undefined_flag=$lt_allow_undefined_flag
17183
17184# Flag that enforces no undefined symbols.
17185no_undefined_flag=$lt_no_undefined_flag
17186
17187# Flag to hardcode \$libdir into a binary during linking.
17188# This must work even if \$libdir does not exist
17189hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17190
17191# If ld is used when linking, flag to hardcode \$libdir into a binary
17192# during linking.  This must work even if \$libdir does not exist.
17193hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17194
17195# Whether we need a single "-rpath" flag with a separated argument.
17196hardcode_libdir_separator=$lt_hardcode_libdir_separator
17197
17198# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17199# DIR into the resulting binary.
17200hardcode_direct=$hardcode_direct
17201
17202# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17203# DIR into the resulting binary and the resulting library dependency is
17204# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17205# library is relocated.
17206hardcode_direct_absolute=$hardcode_direct_absolute
17207
17208# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17209# into the resulting binary.
17210hardcode_minus_L=$hardcode_minus_L
17211
17212# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17213# into the resulting binary.
17214hardcode_shlibpath_var=$hardcode_shlibpath_var
17215
17216# Set to "yes" if building a shared library automatically hardcodes DIR
17217# into the library and all subsequent libraries and executables linked
17218# against it.
17219hardcode_automatic=$hardcode_automatic
17220
17221# Set to yes if linker adds runtime paths of dependent libraries
17222# to runtime path list.
17223inherit_rpath=$inherit_rpath
17224
17225# Whether libtool must link a program against all its dependency libraries.
17226link_all_deplibs=$link_all_deplibs
17227
17228# Set to "yes" if exported symbols are required.
17229always_export_symbols=$always_export_symbols
17230
17231# The commands to list exported symbols.
17232export_symbols_cmds=$lt_export_symbols_cmds
17233
17234# Symbols that should not be listed in the preloaded symbols.
17235exclude_expsyms=$lt_exclude_expsyms
17236
17237# Symbols that must always be exported.
17238include_expsyms=$lt_include_expsyms
17239
17240# Commands necessary for linking programs (against libraries) with templates.
17241prelink_cmds=$lt_prelink_cmds
17242
17243# Commands necessary for finishing linking programs.
17244postlink_cmds=$lt_postlink_cmds
17245
17246# Specify filename containing input files.
17247file_list_spec=$lt_file_list_spec
17248
17249# How to hardcode a shared library path into an executable.
17250hardcode_action=$hardcode_action
17251
17252# ### END LIBTOOL CONFIG
17253
17254_LT_EOF
17255
17256  case $host_os in
17257  aix3*)
17258    cat <<\_LT_EOF >> "$cfgfile"
17259# AIX sometimes has problems with the GCC collect2 program.  For some
17260# reason, if we set the COLLECT_NAMES environment variable, the problems
17261# vanish in a puff of smoke.
17262if test "X${COLLECT_NAMES+set}" != Xset; then
17263  COLLECT_NAMES=
17264  export COLLECT_NAMES
17265fi
17266_LT_EOF
17267    ;;
17268  esac
17269
17270
17271ltmain="$ac_aux_dir/ltmain.sh"
17272
17273
17274  # We use sed instead of cat because bash on DJGPP gets confused if
17275  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17276  # text mode, it properly converts lines to CR/LF.  This bash problem
17277  # is reportedly fixed, but why not run on old versions too?
17278  sed '$q' "$ltmain" >> "$cfgfile" \
17279     || (rm -f "$cfgfile"; exit 1)
17280
17281  if test x"$xsi_shell" = xyes; then
17282  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17283func_dirname ()\
17284{\
17285\    case ${1} in\
17286\      */*) func_dirname_result="${1%/*}${2}" ;;\
17287\      *  ) func_dirname_result="${3}" ;;\
17288\    esac\
17289} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17290  && mv -f "$cfgfile.tmp" "$cfgfile" \
17291    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17292test 0 -eq $? || _lt_function_replace_fail=:
17293
17294
17295  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17296func_basename ()\
17297{\
17298\    func_basename_result="${1##*/}"\
17299} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17300  && mv -f "$cfgfile.tmp" "$cfgfile" \
17301    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17302test 0 -eq $? || _lt_function_replace_fail=:
17303
17304
17305  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17306func_dirname_and_basename ()\
17307{\
17308\    case ${1} in\
17309\      */*) func_dirname_result="${1%/*}${2}" ;;\
17310\      *  ) func_dirname_result="${3}" ;;\
17311\    esac\
17312\    func_basename_result="${1##*/}"\
17313} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17314  && mv -f "$cfgfile.tmp" "$cfgfile" \
17315    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17316test 0 -eq $? || _lt_function_replace_fail=:
17317
17318
17319  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17320func_stripname ()\
17321{\
17322\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17323\    # positional parameters, so assign one to ordinary parameter first.\
17324\    func_stripname_result=${3}\
17325\    func_stripname_result=${func_stripname_result#"${1}"}\
17326\    func_stripname_result=${func_stripname_result%"${2}"}\
17327} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17328  && mv -f "$cfgfile.tmp" "$cfgfile" \
17329    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17330test 0 -eq $? || _lt_function_replace_fail=:
17331
17332
17333  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17334func_split_long_opt ()\
17335{\
17336\    func_split_long_opt_name=${1%%=*}\
17337\    func_split_long_opt_arg=${1#*=}\
17338} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17339  && mv -f "$cfgfile.tmp" "$cfgfile" \
17340    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17341test 0 -eq $? || _lt_function_replace_fail=:
17342
17343
17344  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17345func_split_short_opt ()\
17346{\
17347\    func_split_short_opt_arg=${1#??}\
17348\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17349} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17350  && mv -f "$cfgfile.tmp" "$cfgfile" \
17351    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17352test 0 -eq $? || _lt_function_replace_fail=:
17353
17354
17355  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17356func_lo2o ()\
17357{\
17358\    case ${1} in\
17359\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17360\      *)    func_lo2o_result=${1} ;;\
17361\    esac\
17362} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17363  && mv -f "$cfgfile.tmp" "$cfgfile" \
17364    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17365test 0 -eq $? || _lt_function_replace_fail=:
17366
17367
17368  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17369func_xform ()\
17370{\
17371    func_xform_result=${1%.*}.lo\
17372} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17373  && mv -f "$cfgfile.tmp" "$cfgfile" \
17374    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17375test 0 -eq $? || _lt_function_replace_fail=:
17376
17377
17378  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17379func_arith ()\
17380{\
17381    func_arith_result=$(( $* ))\
17382} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17383  && mv -f "$cfgfile.tmp" "$cfgfile" \
17384    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17385test 0 -eq $? || _lt_function_replace_fail=:
17386
17387
17388  sed -e '/^func_len ()$/,/^} # func_len /c\
17389func_len ()\
17390{\
17391    func_len_result=${#1}\
17392} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17393  && mv -f "$cfgfile.tmp" "$cfgfile" \
17394    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17395test 0 -eq $? || _lt_function_replace_fail=:
17396
17397fi
17398
17399if test x"$lt_shell_append" = xyes; then
17400  sed -e '/^func_append ()$/,/^} # func_append /c\
17401func_append ()\
17402{\
17403    eval "${1}+=\\${2}"\
17404} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17405  && mv -f "$cfgfile.tmp" "$cfgfile" \
17406    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17407test 0 -eq $? || _lt_function_replace_fail=:
17408
17409
17410  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17411func_append_quoted ()\
17412{\
17413\    func_quote_for_eval "${2}"\
17414\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17415} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17416  && mv -f "$cfgfile.tmp" "$cfgfile" \
17417    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17418test 0 -eq $? || _lt_function_replace_fail=:
17419
17420
17421  # Save a `func_append' function call where possible by direct use of '+='
17422  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17423    && mv -f "$cfgfile.tmp" "$cfgfile" \
17424      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17425  test 0 -eq $? || _lt_function_replace_fail=:
17426else
17427  # Save a `func_append' function call even when '+=' is not available
17428  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17429    && mv -f "$cfgfile.tmp" "$cfgfile" \
17430      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17431  test 0 -eq $? || _lt_function_replace_fail=:
17432fi
17433
17434if test x"$_lt_function_replace_fail" = x":"; then
17435  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17436$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17437fi
17438
17439
17440   mv -f "$cfgfile" "$ofile" ||
17441    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17442  chmod +x "$ofile"
17443
17444 ;;
17445
17446  esac
17447done # for ac_tag
17448
17449
17450as_fn_exit 0
17451_ACEOF
17452ac_clean_files=$ac_clean_files_save
17453
17454test $ac_write_fail = 0 ||
17455  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17456
17457
17458# configure is writing to config.log, and then calls config.status.
17459# config.status does its own redirection, appending to config.log.
17460# Unfortunately, on DOS this fails, as config.log is still kept open
17461# by configure, so config.status won't be able to write to it; its
17462# output is simply discarded.  So we exec the FD to /dev/null,
17463# effectively closing config.log, so it can be properly (re)opened and
17464# appended to by config.status.  When coming back to configure, we
17465# need to make the FD available again.
17466if test "$no_create" != yes; then
17467  ac_cs_success=:
17468  ac_config_status_args=
17469  test "$silent" = yes &&
17470    ac_config_status_args="$ac_config_status_args --quiet"
17471  exec 5>/dev/null
17472  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17473  exec 5>>config.log
17474  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17475  # would make configure fail if this is the last instruction.
17476  $ac_cs_success || as_fn_exit 1
17477fi
17478if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17479  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17480$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17481fi
17482
17483
17484echo ""
17485echo "X11 will be built with the following settings:"
17486echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
17487echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
17488echo " Threading support:                       "$xthreads
17489echo " Use Threads safe API:                    "$mtsafeapi
17490echo " Threads stubs in libX11:                 "$thrstubs
17491echo " XCMS:                                    "$XCMS
17492echo " Internationalization support:            "$XLOCALE
17493echo " XF86BigFont support:                     "$XF86BIGFONT
17494echo " XKB support:                             "$XKB
17495echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
17496echo " Compose table cache enabled:             "$COMPOSECACHE
17497echo " Functional specs building enabled:       "$build_specs
17498echo ""
17499