configure revision 88de56cc
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for libX11 1.3.4.
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 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235$0: about your system, including any error possibly output
236$0: before this message. Then install a modern shell, or
237$0: manually run the script under such a shell if you do
238$0: have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in #(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617	   test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629	   test "X$echo_testing_string" = "X$echo_test_string"; then
630	  # Cool, printf works
631	  :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633	     test "X$echo_testing_string" = 'X\t' &&
634	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635	     test "X$echo_testing_string" = "X$echo_test_string"; then
636	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637	  export CONFIG_SHELL
638	  SHELL="$CONFIG_SHELL"
639	  export SHELL
640	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	     test "X$echo_testing_string" = 'X\t' &&
643	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	     test "X$echo_testing_string" = "X$echo_test_string"; then
645	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647	  # maybe with a smaller string...
648	  prev=:
649
650	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652	    then
653	      break
654	    fi
655	    prev="$cmd"
656	  done
657
658	  if test "$prev" != 'sed 50q "$0"'; then
659	    echo_test_string=`eval $prev`
660	    export echo_test_string
661	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662	  else
663	    # Oops.  We lost completely, so just stick with echo.
664	    ECHO=echo
665	  fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='libX11'
704PACKAGE_TARNAME='libX11'
705PACKAGE_VERSION='1.3.4'
706PACKAGE_STRING='libX11 1.3.4'
707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708PACKAGE_URL=''
709
710ac_unique_file="Makefile.am"
711# Factoring default headers for most tests.
712ac_includes_default="\
713#include <stdio.h>
714#ifdef HAVE_SYS_TYPES_H
715# include <sys/types.h>
716#endif
717#ifdef HAVE_SYS_STAT_H
718# include <sys/stat.h>
719#endif
720#ifdef STDC_HEADERS
721# include <stdlib.h>
722# include <stddef.h>
723#else
724# ifdef HAVE_STDLIB_H
725#  include <stdlib.h>
726# endif
727#endif
728#ifdef HAVE_STRING_H
729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730#  include <memory.h>
731# endif
732# include <string.h>
733#endif
734#ifdef HAVE_STRINGS_H
735# include <strings.h>
736#endif
737#ifdef HAVE_INTTYPES_H
738# include <inttypes.h>
739#endif
740#ifdef HAVE_STDINT_H
741# include <stdint.h>
742#endif
743#ifdef HAVE_UNISTD_H
744# include <unistd.h>
745#endif"
746
747ac_header_list=
748ac_subst_vars='am__EXEEXT_FALSE
749am__EXEEXT_TRUE
750LTLIBOBJS
751LIBOBJS
752XTMALLOC_ZERO_CFLAGS
753XMALLOC_ZERO_CFLAGS
754MALLOC_ZERO_CFLAGS
755XERRORDB
756XKEYSYMDB
757X11_LOCALEDIR
758XLOCALEDIR
759X11_LOCALELIBDIR
760XLOCALELIBDIR
761X11_LOCALEDATADIR
762XLOCALEDATADIR
763X11_LIBS
764X11_CFLAGS
765X11_LIBDIR
766X11_DATADIR
767MAKE_LINT_LIB_FALSE
768MAKE_LINT_LIB_TRUE
769LINTLIB
770LINT_FALSE
771LINT_TRUE
772LINT_FLAGS
773LINT
774XKBPROTO_REQUIRES
775XKB_FALSE
776XKB_TRUE
777MANPAGES_FALSE
778MANPAGES_TRUE
779BIGFONT_LIBS
780BIGFONT_CFLAGS
781XLOCALE_FALSE
782XLOCALE_TRUE
783XCMS_FALSE
784XCMS_TRUE
785UDC_FALSE
786UDC_TRUE
787KEYSYMDEF
788XTHREAD_CFLAGS
789XTHREADLIB
790THRSTUBS_FALSE
791THRSTUBS_TRUE
792LAUNCHD
793OS2_FALSE
794OS2_TRUE
795WCHAR32
796XLIB_LOADABLE_I18N_FALSE
797XLIB_LOADABLE_I18N_TRUE
798I18N_MODULE_LIBS
799X11_EXTRA_DEPS
800XDMCP_LIBS
801XDMCP_CFLAGS
802XCB_FALSE
803XCB_TRUE
804HAVE_PERL_FALSE
805HAVE_PERL_TRUE
806PERL
807RAWCPPFLAGS
808RAWCPP
809LDFLAGS_FOR_BUILD
810CFLAGS_FOR_BUILD
811CPPFLAGS_FOR_BUILD
812CC_FOR_BUILD
813LTCXXCOMPILE
814LTCOMPILE
815DOLT_BASH
816OTOOL64
817OTOOL
818LIPO
819NMEDIT
820DSYMUTIL
821lt_ECHO
822RANLIB
823AR
824OBJDUMP
825LN_S
826NM
827ac_ct_DUMPBIN
828DUMPBIN
829LD
830FGREP
831SED
832LIBTOOL
833HAVE_PS2PDF_FALSE
834HAVE_PS2PDF_TRUE
835PS2PDF
836HAVE_GROFF_MM_FALSE
837HAVE_GROFF_MM_TRUE
838HAVE_GROFF_MS_FALSE
839HAVE_GROFF_MS_TRUE
840HAVE_GROFF_FALSE
841HAVE_GROFF_TRUE
842GROFF
843ENABLE_SPECS_FALSE
844ENABLE_SPECS_TRUE
845AM_BACKSLASH
846AM_DEFAULT_VERBOSITY
847MAN_SUBSTS
848XORG_MAN_PAGE
849ADMIN_MAN_DIR
850DRIVER_MAN_DIR
851MISC_MAN_DIR
852FILE_MAN_DIR
853LIB_MAN_DIR
854APP_MAN_DIR
855ADMIN_MAN_SUFFIX
856DRIVER_MAN_SUFFIX
857MISC_MAN_SUFFIX
858FILE_MAN_SUFFIX
859LIB_MAN_SUFFIX
860APP_MAN_SUFFIX
861INSTALL_CMD
862PKG_CONFIG
863CHANGELOG_CMD
864CWARNFLAGS
865EGREP
866GREP
867CPP
868am__fastdepCC_FALSE
869am__fastdepCC_TRUE
870CCDEPMODE
871AMDEPBACKSLASH
872AMDEP_FALSE
873AMDEP_TRUE
874am__quote
875am__include
876DEPDIR
877OBJEXT
878EXEEXT
879ac_ct_CC
880CPPFLAGS
881LDFLAGS
882CFLAGS
883CC
884MAINT
885MAINTAINER_MODE_FALSE
886MAINTAINER_MODE_TRUE
887am__untar
888am__tar
889AMTAR
890am__leading_dot
891SET_MAKE
892AWK
893mkdir_p
894MKDIR_P
895INSTALL_STRIP_PROGRAM
896STRIP
897install_sh
898MAKEINFO
899AUTOHEADER
900AUTOMAKE
901AUTOCONF
902ACLOCAL
903VERSION
904PACKAGE
905CYGPATH_W
906am__isrc
907INSTALL_DATA
908INSTALL_SCRIPT
909INSTALL_PROGRAM
910host_os
911host_vendor
912host_cpu
913host
914build_os
915build_vendor
916build_cpu
917build
918target_alias
919host_alias
920build_alias
921LIBS
922ECHO_T
923ECHO_N
924ECHO_C
925DEFS
926mandir
927localedir
928libdir
929psdir
930pdfdir
931dvidir
932htmldir
933infodir
934docdir
935oldincludedir
936includedir
937localstatedir
938sharedstatedir
939sysconfdir
940datadir
941datarootdir
942libexecdir
943sbindir
944bindir
945program_transform_name
946prefix
947exec_prefix
948PACKAGE_URL
949PACKAGE_BUGREPORT
950PACKAGE_STRING
951PACKAGE_VERSION
952PACKAGE_TARNAME
953PACKAGE_NAME
954PATH_SEPARATOR
955SHELL'
956ac_subst_files=''
957ac_user_opts='
958enable_option_checking
959enable_maintainer_mode
960enable_dependency_tracking
961enable_strict_compilation
962with_release_version
963enable_silent_rules
964enable_specs
965with_groff
966with_ps2pdf
967enable_shared
968enable_static
969with_pic
970enable_fast_install
971with_gnu_ld
972enable_libtool_lock
973with_perl
974with_xcb
975enable_unix_transport
976enable_tcp_transport
977enable_ipv6
978enable_local_transport
979enable_secure_rpc
980with_local_transport_order
981enable_loadable_i18n
982enable_loadable_xcursor
983with_launchd
984enable_xthreads
985enable_xcms
986enable_xlocale
987enable_xlocaledir
988enable_xf86bigfont
989enable_xkb
990enable_man_pages
991enable_composecache
992with_lint
993enable_lint_library
994with_locale_lib_dir
995enable_malloc0returnsnull
996'
997      ac_precious_vars='build_alias
998host_alias
999target_alias
1000CC
1001CFLAGS
1002LDFLAGS
1003LIBS
1004CPPFLAGS
1005CPP
1006PKG_CONFIG
1007GROFF
1008PS2PDF
1009XDMCP_CFLAGS
1010XDMCP_LIBS
1011BIGFONT_CFLAGS
1012BIGFONT_LIBS
1013X11_CFLAGS
1014X11_LIBS'
1015
1016
1017# Initialize some variables set by options.
1018ac_init_help=
1019ac_init_version=false
1020ac_unrecognized_opts=
1021ac_unrecognized_sep=
1022# The variables have the same names as the options, with
1023# dashes changed to underlines.
1024cache_file=/dev/null
1025exec_prefix=NONE
1026no_create=
1027no_recursion=
1028prefix=NONE
1029program_prefix=NONE
1030program_suffix=NONE
1031program_transform_name=s,x,x,
1032silent=
1033site=
1034srcdir=
1035verbose=
1036x_includes=NONE
1037x_libraries=NONE
1038
1039# Installation directory options.
1040# These are left unexpanded so users can "make install exec_prefix=/foo"
1041# and all the variables that are supposed to be based on exec_prefix
1042# by default will actually change.
1043# Use braces instead of parens because sh, perl, etc. also accept them.
1044# (The list follows the same order as the GNU Coding Standards.)
1045bindir='${exec_prefix}/bin'
1046sbindir='${exec_prefix}/sbin'
1047libexecdir='${exec_prefix}/libexec'
1048datarootdir='${prefix}/share'
1049datadir='${datarootdir}'
1050sysconfdir='${prefix}/etc'
1051sharedstatedir='${prefix}/com'
1052localstatedir='${prefix}/var'
1053includedir='${prefix}/include'
1054oldincludedir='/usr/include'
1055docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1056infodir='${datarootdir}/info'
1057htmldir='${docdir}'
1058dvidir='${docdir}'
1059pdfdir='${docdir}'
1060psdir='${docdir}'
1061libdir='${exec_prefix}/lib'
1062localedir='${datarootdir}/locale'
1063mandir='${datarootdir}/man'
1064
1065ac_prev=
1066ac_dashdash=
1067for ac_option
1068do
1069  # If the previous option needs an argument, assign it.
1070  if test -n "$ac_prev"; then
1071    eval $ac_prev=\$ac_option
1072    ac_prev=
1073    continue
1074  fi
1075
1076  case $ac_option in
1077  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1078  *)	ac_optarg=yes ;;
1079  esac
1080
1081  # Accept the important Cygnus configure options, so we can diagnose typos.
1082
1083  case $ac_dashdash$ac_option in
1084  --)
1085    ac_dashdash=yes ;;
1086
1087  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1088    ac_prev=bindir ;;
1089  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1090    bindir=$ac_optarg ;;
1091
1092  -build | --build | --buil | --bui | --bu)
1093    ac_prev=build_alias ;;
1094  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1095    build_alias=$ac_optarg ;;
1096
1097  -cache-file | --cache-file | --cache-fil | --cache-fi \
1098  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1099    ac_prev=cache_file ;;
1100  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1101  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1102    cache_file=$ac_optarg ;;
1103
1104  --config-cache | -C)
1105    cache_file=config.cache ;;
1106
1107  -datadir | --datadir | --datadi | --datad)
1108    ac_prev=datadir ;;
1109  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1110    datadir=$ac_optarg ;;
1111
1112  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1113  | --dataroo | --dataro | --datar)
1114    ac_prev=datarootdir ;;
1115  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1116  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1117    datarootdir=$ac_optarg ;;
1118
1119  -disable-* | --disable-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error "invalid feature name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"enable_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval enable_$ac_useropt=no ;;
1134
1135  -docdir | --docdir | --docdi | --doc | --do)
1136    ac_prev=docdir ;;
1137  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1138    docdir=$ac_optarg ;;
1139
1140  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1141    ac_prev=dvidir ;;
1142  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1143    dvidir=$ac_optarg ;;
1144
1145  -enable-* | --enable-*)
1146    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1147    # Reject names that are not valid shell variable names.
1148    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149      as_fn_error "invalid feature name: $ac_useropt"
1150    ac_useropt_orig=$ac_useropt
1151    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152    case $ac_user_opts in
1153      *"
1154"enable_$ac_useropt"
1155"*) ;;
1156      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1157	 ac_unrecognized_sep=', ';;
1158    esac
1159    eval enable_$ac_useropt=\$ac_optarg ;;
1160
1161  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1162  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1163  | --exec | --exe | --ex)
1164    ac_prev=exec_prefix ;;
1165  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1166  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1167  | --exec=* | --exe=* | --ex=*)
1168    exec_prefix=$ac_optarg ;;
1169
1170  -gas | --gas | --ga | --g)
1171    # Obsolete; use --with-gas.
1172    with_gas=yes ;;
1173
1174  -help | --help | --hel | --he | -h)
1175    ac_init_help=long ;;
1176  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1177    ac_init_help=recursive ;;
1178  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1179    ac_init_help=short ;;
1180
1181  -host | --host | --hos | --ho)
1182    ac_prev=host_alias ;;
1183  -host=* | --host=* | --hos=* | --ho=*)
1184    host_alias=$ac_optarg ;;
1185
1186  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1187    ac_prev=htmldir ;;
1188  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1189  | --ht=*)
1190    htmldir=$ac_optarg ;;
1191
1192  -includedir | --includedir | --includedi | --included | --include \
1193  | --includ | --inclu | --incl | --inc)
1194    ac_prev=includedir ;;
1195  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1196  | --includ=* | --inclu=* | --incl=* | --inc=*)
1197    includedir=$ac_optarg ;;
1198
1199  -infodir | --infodir | --infodi | --infod | --info | --inf)
1200    ac_prev=infodir ;;
1201  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1202    infodir=$ac_optarg ;;
1203
1204  -libdir | --libdir | --libdi | --libd)
1205    ac_prev=libdir ;;
1206  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1207    libdir=$ac_optarg ;;
1208
1209  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1210  | --libexe | --libex | --libe)
1211    ac_prev=libexecdir ;;
1212  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1213  | --libexe=* | --libex=* | --libe=*)
1214    libexecdir=$ac_optarg ;;
1215
1216  -localedir | --localedir | --localedi | --localed | --locale)
1217    ac_prev=localedir ;;
1218  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1219    localedir=$ac_optarg ;;
1220
1221  -localstatedir | --localstatedir | --localstatedi | --localstated \
1222  | --localstate | --localstat | --localsta | --localst | --locals)
1223    ac_prev=localstatedir ;;
1224  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1225  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1226    localstatedir=$ac_optarg ;;
1227
1228  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1229    ac_prev=mandir ;;
1230  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1231    mandir=$ac_optarg ;;
1232
1233  -nfp | --nfp | --nf)
1234    # Obsolete; use --without-fp.
1235    with_fp=no ;;
1236
1237  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1238  | --no-cr | --no-c | -n)
1239    no_create=yes ;;
1240
1241  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1242  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1243    no_recursion=yes ;;
1244
1245  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1246  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1247  | --oldin | --oldi | --old | --ol | --o)
1248    ac_prev=oldincludedir ;;
1249  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1250  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1251  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1252    oldincludedir=$ac_optarg ;;
1253
1254  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1255    ac_prev=prefix ;;
1256  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1257    prefix=$ac_optarg ;;
1258
1259  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1260  | --program-pre | --program-pr | --program-p)
1261    ac_prev=program_prefix ;;
1262  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1263  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1264    program_prefix=$ac_optarg ;;
1265
1266  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1267  | --program-suf | --program-su | --program-s)
1268    ac_prev=program_suffix ;;
1269  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1270  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1271    program_suffix=$ac_optarg ;;
1272
1273  -program-transform-name | --program-transform-name \
1274  | --program-transform-nam | --program-transform-na \
1275  | --program-transform-n | --program-transform- \
1276  | --program-transform | --program-transfor \
1277  | --program-transfo | --program-transf \
1278  | --program-trans | --program-tran \
1279  | --progr-tra | --program-tr | --program-t)
1280    ac_prev=program_transform_name ;;
1281  -program-transform-name=* | --program-transform-name=* \
1282  | --program-transform-nam=* | --program-transform-na=* \
1283  | --program-transform-n=* | --program-transform-=* \
1284  | --program-transform=* | --program-transfor=* \
1285  | --program-transfo=* | --program-transf=* \
1286  | --program-trans=* | --program-tran=* \
1287  | --progr-tra=* | --program-tr=* | --program-t=*)
1288    program_transform_name=$ac_optarg ;;
1289
1290  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1291    ac_prev=pdfdir ;;
1292  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1293    pdfdir=$ac_optarg ;;
1294
1295  -psdir | --psdir | --psdi | --psd | --ps)
1296    ac_prev=psdir ;;
1297  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1298    psdir=$ac_optarg ;;
1299
1300  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1301  | -silent | --silent | --silen | --sile | --sil)
1302    silent=yes ;;
1303
1304  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1305    ac_prev=sbindir ;;
1306  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1307  | --sbi=* | --sb=*)
1308    sbindir=$ac_optarg ;;
1309
1310  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1311  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1312  | --sharedst | --shareds | --shared | --share | --shar \
1313  | --sha | --sh)
1314    ac_prev=sharedstatedir ;;
1315  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1316  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1317  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1318  | --sha=* | --sh=*)
1319    sharedstatedir=$ac_optarg ;;
1320
1321  -site | --site | --sit)
1322    ac_prev=site ;;
1323  -site=* | --site=* | --sit=*)
1324    site=$ac_optarg ;;
1325
1326  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1327    ac_prev=srcdir ;;
1328  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1329    srcdir=$ac_optarg ;;
1330
1331  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1332  | --syscon | --sysco | --sysc | --sys | --sy)
1333    ac_prev=sysconfdir ;;
1334  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1335  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1336    sysconfdir=$ac_optarg ;;
1337
1338  -target | --target | --targe | --targ | --tar | --ta | --t)
1339    ac_prev=target_alias ;;
1340  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1341    target_alias=$ac_optarg ;;
1342
1343  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1344    verbose=yes ;;
1345
1346  -version | --version | --versio | --versi | --vers | -V)
1347    ac_init_version=: ;;
1348
1349  -with-* | --with-*)
1350    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1351    # Reject names that are not valid shell variable names.
1352    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353      as_fn_error "invalid package name: $ac_useropt"
1354    ac_useropt_orig=$ac_useropt
1355    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356    case $ac_user_opts in
1357      *"
1358"with_$ac_useropt"
1359"*) ;;
1360      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1361	 ac_unrecognized_sep=', ';;
1362    esac
1363    eval with_$ac_useropt=\$ac_optarg ;;
1364
1365  -without-* | --without-*)
1366    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1367    # Reject names that are not valid shell variable names.
1368    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1369      as_fn_error "invalid package name: $ac_useropt"
1370    ac_useropt_orig=$ac_useropt
1371    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1372    case $ac_user_opts in
1373      *"
1374"with_$ac_useropt"
1375"*) ;;
1376      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1377	 ac_unrecognized_sep=', ';;
1378    esac
1379    eval with_$ac_useropt=no ;;
1380
1381  --x)
1382    # Obsolete; use --with-x.
1383    with_x=yes ;;
1384
1385  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1386  | --x-incl | --x-inc | --x-in | --x-i)
1387    ac_prev=x_includes ;;
1388  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1389  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1390    x_includes=$ac_optarg ;;
1391
1392  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1393  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1394    ac_prev=x_libraries ;;
1395  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1396  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1397    x_libraries=$ac_optarg ;;
1398
1399  -*) as_fn_error "unrecognized option: \`$ac_option'
1400Try \`$0 --help' for more information."
1401    ;;
1402
1403  *=*)
1404    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1405    # Reject names that are not valid shell variable names.
1406    case $ac_envvar in #(
1407      '' | [0-9]* | *[!_$as_cr_alnum]* )
1408      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1409    esac
1410    eval $ac_envvar=\$ac_optarg
1411    export $ac_envvar ;;
1412
1413  *)
1414    # FIXME: should be removed in autoconf 3.0.
1415    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1416    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1417      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1418    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1419    ;;
1420
1421  esac
1422done
1423
1424if test -n "$ac_prev"; then
1425  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1426  as_fn_error "missing argument to $ac_option"
1427fi
1428
1429if test -n "$ac_unrecognized_opts"; then
1430  case $enable_option_checking in
1431    no) ;;
1432    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1433    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1434  esac
1435fi
1436
1437# Check all directory arguments for consistency.
1438for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1439		datadir sysconfdir sharedstatedir localstatedir includedir \
1440		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1441		libdir localedir mandir
1442do
1443  eval ac_val=\$$ac_var
1444  # Remove trailing slashes.
1445  case $ac_val in
1446    */ )
1447      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1448      eval $ac_var=\$ac_val;;
1449  esac
1450  # Be sure to have absolute directory names.
1451  case $ac_val in
1452    [\\/$]* | ?:[\\/]* )  continue;;
1453    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1454  esac
1455  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1456done
1457
1458# There might be people who depend on the old broken behavior: `$host'
1459# used to hold the argument of --host etc.
1460# FIXME: To remove some day.
1461build=$build_alias
1462host=$host_alias
1463target=$target_alias
1464
1465# FIXME: To remove some day.
1466if test "x$host_alias" != x; then
1467  if test "x$build_alias" = x; then
1468    cross_compiling=maybe
1469    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1470    If a cross compiler is detected then cross compile mode will be used." >&2
1471  elif test "x$build_alias" != "x$host_alias"; then
1472    cross_compiling=yes
1473  fi
1474fi
1475
1476ac_tool_prefix=
1477test -n "$host_alias" && ac_tool_prefix=$host_alias-
1478
1479test "$silent" = yes && exec 6>/dev/null
1480
1481
1482ac_pwd=`pwd` && test -n "$ac_pwd" &&
1483ac_ls_di=`ls -di .` &&
1484ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1485  as_fn_error "working directory cannot be determined"
1486test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487  as_fn_error "pwd does not report name of working directory"
1488
1489
1490# Find the source files, if location was not specified.
1491if test -z "$srcdir"; then
1492  ac_srcdir_defaulted=yes
1493  # Try the directory containing this script, then the parent directory.
1494  ac_confdir=`$as_dirname -- "$as_myself" ||
1495$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1496	 X"$as_myself" : 'X\(//\)[^/]' \| \
1497	 X"$as_myself" : 'X\(//\)$' \| \
1498	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1499$as_echo X"$as_myself" |
1500    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501	    s//\1/
1502	    q
1503	  }
1504	  /^X\(\/\/\)[^/].*/{
1505	    s//\1/
1506	    q
1507	  }
1508	  /^X\(\/\/\)$/{
1509	    s//\1/
1510	    q
1511	  }
1512	  /^X\(\/\).*/{
1513	    s//\1/
1514	    q
1515	  }
1516	  s/.*/./; q'`
1517  srcdir=$ac_confdir
1518  if test ! -r "$srcdir/$ac_unique_file"; then
1519    srcdir=..
1520  fi
1521else
1522  ac_srcdir_defaulted=no
1523fi
1524if test ! -r "$srcdir/$ac_unique_file"; then
1525  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1526  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1527fi
1528ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1529ac_abs_confdir=`(
1530	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1531	pwd)`
1532# When building in place, set srcdir=.
1533if test "$ac_abs_confdir" = "$ac_pwd"; then
1534  srcdir=.
1535fi
1536# Remove unnecessary trailing slashes from srcdir.
1537# Double slashes in file names in object file debugging info
1538# mess up M-x gdb in Emacs.
1539case $srcdir in
1540*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1541esac
1542for ac_var in $ac_precious_vars; do
1543  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1544  eval ac_env_${ac_var}_value=\$${ac_var}
1545  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1546  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1547done
1548
1549#
1550# Report the --help message.
1551#
1552if test "$ac_init_help" = "long"; then
1553  # Omit some internal or obsolete options to make the list less imposing.
1554  # This message is too long to be a string in the A/UX 3.1 sh.
1555  cat <<_ACEOF
1556\`configure' configures libX11 1.3.4 to adapt to many kinds of systems.
1557
1558Usage: $0 [OPTION]... [VAR=VALUE]...
1559
1560To assign environment variables (e.g., CC, CFLAGS...), specify them as
1561VAR=VALUE.  See below for descriptions of some of the useful variables.
1562
1563Defaults for the options are specified in brackets.
1564
1565Configuration:
1566  -h, --help              display this help and exit
1567      --help=short        display options specific to this package
1568      --help=recursive    display the short help of all the included packages
1569  -V, --version           display version information and exit
1570  -q, --quiet, --silent   do not print \`checking...' messages
1571      --cache-file=FILE   cache test results in FILE [disabled]
1572  -C, --config-cache      alias for \`--cache-file=config.cache'
1573  -n, --no-create         do not create output files
1574      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1575
1576Installation directories:
1577  --prefix=PREFIX         install architecture-independent files in PREFIX
1578                          [$ac_default_prefix]
1579  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1580                          [PREFIX]
1581
1582By default, \`make install' will install all the files in
1583\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1584an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1585for instance \`--prefix=\$HOME'.
1586
1587For better control, use the options below.
1588
1589Fine tuning of the installation directories:
1590  --bindir=DIR            user executables [EPREFIX/bin]
1591  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1592  --libexecdir=DIR        program executables [EPREFIX/libexec]
1593  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1594  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1595  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1596  --libdir=DIR            object code libraries [EPREFIX/lib]
1597  --includedir=DIR        C header files [PREFIX/include]
1598  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1599  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1600  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1601  --infodir=DIR           info documentation [DATAROOTDIR/info]
1602  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1603  --mandir=DIR            man documentation [DATAROOTDIR/man]
1604  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1605  --htmldir=DIR           html documentation [DOCDIR]
1606  --dvidir=DIR            dvi documentation [DOCDIR]
1607  --pdfdir=DIR            pdf documentation [DOCDIR]
1608  --psdir=DIR             ps documentation [DOCDIR]
1609_ACEOF
1610
1611  cat <<\_ACEOF
1612
1613Program names:
1614  --program-prefix=PREFIX            prepend PREFIX to installed program names
1615  --program-suffix=SUFFIX            append SUFFIX to installed program names
1616  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1617
1618System types:
1619  --build=BUILD     configure for building on BUILD [guessed]
1620  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1621_ACEOF
1622fi
1623
1624if test -n "$ac_init_help"; then
1625  case $ac_init_help in
1626     short | recursive ) echo "Configuration of libX11 1.3.4:";;
1627   esac
1628  cat <<\_ACEOF
1629
1630Optional Features:
1631  --disable-option-checking  ignore unrecognized --enable/--with options
1632  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1633  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1634  --enable-maintainer-mode  enable make rules and dependencies not useful
1635			  (and sometimes confusing) to the casual installer
1636  --disable-dependency-tracking  speeds up one-time build
1637  --enable-dependency-tracking   do not reject slow dependency extractors
1638  --enable-strict-compilation
1639                          Enable all warnings from compiler and make them
1640                          errors (default: disabled)
1641  --enable-silent-rules          less verbose build output (undo: `make V=1')
1642  --disable-silent-rules         verbose build output (undo: `make V=0')
1643  --enable-specs          Enable building the specs (default: yes)
1644  --enable-shared[=PKGS]  build shared libraries [default=yes]
1645  --enable-static[=PKGS]  build static libraries [default=yes]
1646  --enable-fast-install[=PKGS]
1647                          optimize for fast installation [default=yes]
1648  --disable-libtool-lock  avoid locking (might break parallel builds)
1649  --enable-unix-transport Enable UNIX domain socket transport
1650  --enable-tcp-transport  Enable TCP socket transport
1651  --enable-ipv6           Enable IPv6 support
1652  --enable-local-transport
1653                          Enable os-specific local transport
1654  --enable-secure-rpc     Enable Secure RPC
1655  --enable-loadable-i18n  Controls loadable i18n module support
1656  --disable-loadable-xcursor
1657                          Controls loadable xcursor library support
1658  --disable-xthreads      Disable Xlib support for Multithreading
1659  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1660  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1661  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1662  --disable-xf86bigfont   Disable XF86BigFont extension support
1663  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1664  --enable-man-pages=section
1665                          Choose manual section for installing man pages
1666  --disable-composecache  Disable compose table cache support
1667  --enable-lint-library   Create lint library (default: disabled)
1668  --enable-malloc0returnsnull
1669                          malloc(0) returns NULL (default: auto)
1670
1671Optional Packages:
1672  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1673  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1674  --with-release-version=STRING
1675                          Use release version string in package name
1676  --with-groff            Use groff to regenerate documentation (default: yes,
1677                          if installed)
1678  --with-ps2pdf           Use ps2pdf to regenerate documentation (default:
1679                          yes, if installed)
1680  --with-pic              try to use only PIC/non-PIC objects [default=use
1681                          both]
1682  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1683  --with-perl=<path>      path to perl interpreter for build-time tests
1684  --with-xcb              use XCB for low-level protocol implementation
1685  --with-local-transport-order=LIST
1686                          preference sorted list of transport types to try for
1687                          local connections
1688  --with-launchd          Build with support for Apple's launchd (default:
1689                          auto)
1690  --with-lint             Use a lint-style source code checker (default:
1691                          disabled)
1692  --with-locale-lib-dir=DIR
1693                          Directory where locale libraries files are installed
1694                          (default: $libdir/X11/locale)
1695
1696Some influential environment variables:
1697  CC          C compiler command
1698  CFLAGS      C compiler flags
1699  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1700              nonstandard directory <lib dir>
1701  LIBS        libraries to pass to the linker, e.g. -l<library>
1702  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1703              you have headers in a nonstandard directory <include dir>
1704  CPP         C preprocessor
1705  PKG_CONFIG  path to pkg-config utility
1706  GROFF       Path to groff command
1707  PS2PDF      Path to ps2pdf command
1708  XDMCP_CFLAGS
1709              C compiler flags for XDMCP, overriding pkg-config
1710  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1711  BIGFONT_CFLAGS
1712              C compiler flags for BIGFONT, overriding pkg-config
1713  BIGFONT_LIBS
1714              linker flags for BIGFONT, overriding pkg-config
1715  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1716  X11_LIBS    linker flags for X11, overriding pkg-config
1717
1718Use these variables to override the choices made by `configure' or to help
1719it to find libraries and programs with nonstandard names/locations.
1720
1721Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1722_ACEOF
1723ac_status=$?
1724fi
1725
1726if test "$ac_init_help" = "recursive"; then
1727  # If there are subdirs, report their specific --help.
1728  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1729    test -d "$ac_dir" ||
1730      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1731      continue
1732    ac_builddir=.
1733
1734case "$ac_dir" in
1735.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736*)
1737  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738  # A ".." for each directory in $ac_dir_suffix.
1739  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740  case $ac_top_builddir_sub in
1741  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743  esac ;;
1744esac
1745ac_abs_top_builddir=$ac_pwd
1746ac_abs_builddir=$ac_pwd$ac_dir_suffix
1747# for backward compatibility:
1748ac_top_builddir=$ac_top_build_prefix
1749
1750case $srcdir in
1751  .)  # We are building in place.
1752    ac_srcdir=.
1753    ac_top_srcdir=$ac_top_builddir_sub
1754    ac_abs_top_srcdir=$ac_pwd ;;
1755  [\\/]* | ?:[\\/]* )  # Absolute name.
1756    ac_srcdir=$srcdir$ac_dir_suffix;
1757    ac_top_srcdir=$srcdir
1758    ac_abs_top_srcdir=$srcdir ;;
1759  *) # Relative name.
1760    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761    ac_top_srcdir=$ac_top_build_prefix$srcdir
1762    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1763esac
1764ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1765
1766    cd "$ac_dir" || { ac_status=$?; continue; }
1767    # Check for guested configure.
1768    if test -f "$ac_srcdir/configure.gnu"; then
1769      echo &&
1770      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771    elif test -f "$ac_srcdir/configure"; then
1772      echo &&
1773      $SHELL "$ac_srcdir/configure" --help=recursive
1774    else
1775      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1776    fi || ac_status=$?
1777    cd "$ac_pwd" || { ac_status=$?; break; }
1778  done
1779fi
1780
1781test -n "$ac_init_help" && exit $ac_status
1782if $ac_init_version; then
1783  cat <<\_ACEOF
1784libX11 configure 1.3.4
1785generated by GNU Autoconf 2.65
1786
1787Copyright (C) 2009 Free Software Foundation, Inc.
1788This configure script is free software; the Free Software Foundation
1789gives unlimited permission to copy, distribute and modify it.
1790_ACEOF
1791  exit
1792fi
1793
1794## ------------------------ ##
1795## Autoconf initialization. ##
1796## ------------------------ ##
1797
1798# ac_fn_c_try_compile LINENO
1799# --------------------------
1800# Try to compile conftest.$ac_ext, and return whether this succeeded.
1801ac_fn_c_try_compile ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  rm -f conftest.$ac_objext
1805  if { { ac_try="$ac_compile"
1806case "(($ac_try" in
1807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808  *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812  (eval "$ac_compile") 2>conftest.err
1813  ac_status=$?
1814  if test -s conftest.err; then
1815    grep -v '^ *+' conftest.err >conftest.er1
1816    cat conftest.er1 >&5
1817    mv -f conftest.er1 conftest.err
1818  fi
1819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820  test $ac_status = 0; } && {
1821	 test -z "$ac_c_werror_flag" ||
1822	 test ! -s conftest.err
1823       } && test -s conftest.$ac_objext; then :
1824  ac_retval=0
1825else
1826  $as_echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829	ac_retval=1
1830fi
1831  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832  as_fn_set_status $ac_retval
1833
1834} # ac_fn_c_try_compile
1835
1836# ac_fn_c_try_cpp LINENO
1837# ----------------------
1838# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839ac_fn_c_try_cpp ()
1840{
1841  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842  if { { ac_try="$ac_cpp conftest.$ac_ext"
1843case "(($ac_try" in
1844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845  *) ac_try_echo=$ac_try;;
1846esac
1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848$as_echo "$ac_try_echo"; } >&5
1849  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850  ac_status=$?
1851  if test -s conftest.err; then
1852    grep -v '^ *+' conftest.err >conftest.er1
1853    cat conftest.er1 >&5
1854    mv -f conftest.er1 conftest.err
1855  fi
1856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857  test $ac_status = 0; } >/dev/null && {
1858	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859	 test ! -s conftest.err
1860       }; then :
1861  ac_retval=0
1862else
1863  $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866    ac_retval=1
1867fi
1868  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869  as_fn_set_status $ac_retval
1870
1871} # ac_fn_c_try_cpp
1872
1873# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874# -------------------------------------------------------
1875# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876# the include files in INCLUDES and setting the cache variable VAR
1877# accordingly.
1878ac_fn_c_check_header_mongrel ()
1879{
1880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885  $as_echo_n "(cached) " >&6
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890else
1891  # Is the header compilable?
1892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893$as_echo_n "checking $2 usability... " >&6; }
1894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h.  */
1896$4
1897#include <$2>
1898_ACEOF
1899if ac_fn_c_try_compile "$LINENO"; then :
1900  ac_header_compiler=yes
1901else
1902  ac_header_compiler=no
1903fi
1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906$as_echo "$ac_header_compiler" >&6; }
1907
1908# Is the header present?
1909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910$as_echo_n "checking $2 presence... " >&6; }
1911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h.  */
1913#include <$2>
1914_ACEOF
1915if ac_fn_c_try_cpp "$LINENO"; then :
1916  ac_header_preproc=yes
1917else
1918  ac_header_preproc=no
1919fi
1920rm -f conftest.err conftest.$ac_ext
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922$as_echo "$ac_header_preproc" >&6; }
1923
1924# So?  What about this header?
1925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1926  yes:no: )
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931    ;;
1932  no:yes:* )
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1936$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1937    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1940$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943( cat <<\_ASBOX
1944## ---------------------------------------------------------------------- ##
1945## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1946## ---------------------------------------------------------------------- ##
1947_ASBOX
1948     ) | sed "s/^/$as_me: WARNING:     /" >&2
1949    ;;
1950esac
1951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
1953if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954  $as_echo_n "(cached) " >&6
1955else
1956  eval "$3=\$ac_header_compiler"
1957fi
1958eval ac_res=\$$3
1959	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960$as_echo "$ac_res" >&6; }
1961fi
1962  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963
1964} # ac_fn_c_check_header_mongrel
1965
1966# ac_fn_c_try_run LINENO
1967# ----------------------
1968# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969# that executables *can* be run.
1970ac_fn_c_try_run ()
1971{
1972  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973  if { { ac_try="$ac_link"
1974case "(($ac_try" in
1975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976  *) ac_try_echo=$ac_try;;
1977esac
1978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979$as_echo "$ac_try_echo"; } >&5
1980  (eval "$ac_link") 2>&5
1981  ac_status=$?
1982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984  { { case "(($ac_try" in
1985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986  *) ac_try_echo=$ac_try;;
1987esac
1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989$as_echo "$ac_try_echo"; } >&5
1990  (eval "$ac_try") 2>&5
1991  ac_status=$?
1992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993  test $ac_status = 0; }; }; then :
1994  ac_retval=0
1995else
1996  $as_echo "$as_me: program exited with status $ac_status" >&5
1997       $as_echo "$as_me: failed program was:" >&5
1998sed 's/^/| /' conftest.$ac_ext >&5
1999
2000       ac_retval=$ac_status
2001fi
2002  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004  as_fn_set_status $ac_retval
2005
2006} # ac_fn_c_try_run
2007
2008# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009# -------------------------------------------------------
2010# Tests whether HEADER exists and can be compiled using the include files in
2011# INCLUDES, setting the cache variable VAR accordingly.
2012ac_fn_c_check_header_compile ()
2013{
2014  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
2017if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018  $as_echo_n "(cached) " >&6
2019else
2020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h.  */
2022$4
2023#include <$2>
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026  eval "$3=yes"
2027else
2028  eval "$3=no"
2029fi
2030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032eval ac_res=\$$3
2033	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034$as_echo "$ac_res" >&6; }
2035  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
2037} # ac_fn_c_check_header_compile
2038
2039# ac_fn_c_check_decl LINENO SYMBOL VAR
2040# ------------------------------------
2041# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2042ac_fn_c_check_decl ()
2043{
2044  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2046$as_echo_n "checking whether $2 is declared... " >&6; }
2047if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2048  $as_echo_n "(cached) " >&6
2049else
2050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h.  */
2052$4
2053int
2054main ()
2055{
2056#ifndef $2
2057  (void) $2;
2058#endif
2059
2060  ;
2061  return 0;
2062}
2063_ACEOF
2064if ac_fn_c_try_compile "$LINENO"; then :
2065  eval "$3=yes"
2066else
2067  eval "$3=no"
2068fi
2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070fi
2071eval ac_res=\$$3
2072	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073$as_echo "$ac_res" >&6; }
2074  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075
2076} # ac_fn_c_check_decl
2077
2078# ac_fn_c_try_link LINENO
2079# -----------------------
2080# Try to link conftest.$ac_ext, and return whether this succeeded.
2081ac_fn_c_try_link ()
2082{
2083  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084  rm -f conftest.$ac_objext conftest$ac_exeext
2085  if { { ac_try="$ac_link"
2086case "(($ac_try" in
2087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088  *) ac_try_echo=$ac_try;;
2089esac
2090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091$as_echo "$ac_try_echo"; } >&5
2092  (eval "$ac_link") 2>conftest.err
2093  ac_status=$?
2094  if test -s conftest.err; then
2095    grep -v '^ *+' conftest.err >conftest.er1
2096    cat conftest.er1 >&5
2097    mv -f conftest.er1 conftest.err
2098  fi
2099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100  test $ac_status = 0; } && {
2101	 test -z "$ac_c_werror_flag" ||
2102	 test ! -s conftest.err
2103       } && test -s conftest$ac_exeext && {
2104	 test "$cross_compiling" = yes ||
2105	 $as_test_x conftest$ac_exeext
2106       }; then :
2107  ac_retval=0
2108else
2109  $as_echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112	ac_retval=1
2113fi
2114  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2115  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2116  # interfere with the next link command; also delete a directory that is
2117  # left behind by Apple's compiler.  We do this before executing the actions.
2118  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2119  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120  as_fn_set_status $ac_retval
2121
2122} # ac_fn_c_try_link
2123
2124# ac_fn_c_check_func LINENO FUNC VAR
2125# ----------------------------------
2126# Tests whether FUNC exists, setting the cache variable VAR accordingly
2127ac_fn_c_check_func ()
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" >&5
2131$as_echo_n "checking for $2... " >&6; }
2132if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133  $as_echo_n "(cached) " >&6
2134else
2135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h.  */
2137/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2138   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2139#define $2 innocuous_$2
2140
2141/* System header to define __stub macros and hopefully few prototypes,
2142    which can conflict with char $2 (); below.
2143    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2144    <limits.h> exists even on freestanding compilers.  */
2145
2146#ifdef __STDC__
2147# include <limits.h>
2148#else
2149# include <assert.h>
2150#endif
2151
2152#undef $2
2153
2154/* Override any GCC internal prototype to avoid an error.
2155   Use char because int might match the return type of a GCC
2156   builtin and then its argument prototype would still apply.  */
2157#ifdef __cplusplus
2158extern "C"
2159#endif
2160char $2 ();
2161/* The GNU C library defines this for functions which it implements
2162    to always fail with ENOSYS.  Some functions are actually named
2163    something starting with __ and the normal name is an alias.  */
2164#if defined __stub_$2 || defined __stub___$2
2165choke me
2166#endif
2167
2168int
2169main ()
2170{
2171return $2 ();
2172  ;
2173  return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_link "$LINENO"; then :
2177  eval "$3=yes"
2178else
2179  eval "$3=no"
2180fi
2181rm -f core conftest.err conftest.$ac_objext \
2182    conftest$ac_exeext conftest.$ac_ext
2183fi
2184eval ac_res=\$$3
2185	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186$as_echo "$ac_res" >&6; }
2187  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2188
2189} # ac_fn_c_check_func
2190
2191# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2192# ----------------------------------------------------
2193# Tries to find if the field MEMBER exists in type AGGR, after including
2194# INCLUDES, setting cache variable VAR accordingly.
2195ac_fn_c_check_member ()
2196{
2197  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2199$as_echo_n "checking for $2.$3... " >&6; }
2200if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2201  $as_echo_n "(cached) " >&6
2202else
2203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h.  */
2205$5
2206int
2207main ()
2208{
2209static $2 ac_aggr;
2210if (ac_aggr.$3)
2211return 0;
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"; then :
2217  eval "$4=yes"
2218else
2219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h.  */
2221$5
2222int
2223main ()
2224{
2225static $2 ac_aggr;
2226if (sizeof ac_aggr.$3)
2227return 0;
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233  eval "$4=yes"
2234else
2235  eval "$4=no"
2236fi
2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238fi
2239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240fi
2241eval ac_res=\$$4
2242	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243$as_echo "$ac_res" >&6; }
2244  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2245
2246} # ac_fn_c_check_member
2247
2248# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2249# -------------------------------------------
2250# Tests whether TYPE exists after having included INCLUDES, setting cache
2251# variable VAR accordingly.
2252ac_fn_c_check_type ()
2253{
2254  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256$as_echo_n "checking for $2... " >&6; }
2257if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2258  $as_echo_n "(cached) " >&6
2259else
2260  eval "$3=no"
2261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262/* end confdefs.h.  */
2263$4
2264int
2265main ()
2266{
2267if (sizeof ($2))
2268	 return 0;
2269  ;
2270  return 0;
2271}
2272_ACEOF
2273if ac_fn_c_try_compile "$LINENO"; then :
2274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275/* end confdefs.h.  */
2276$4
2277int
2278main ()
2279{
2280if (sizeof (($2)))
2281	    return 0;
2282  ;
2283  return 0;
2284}
2285_ACEOF
2286if ac_fn_c_try_compile "$LINENO"; then :
2287
2288else
2289  eval "$3=yes"
2290fi
2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292fi
2293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294fi
2295eval ac_res=\$$3
2296	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297$as_echo "$ac_res" >&6; }
2298  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2299
2300} # ac_fn_c_check_type
2301cat >config.log <<_ACEOF
2302This file contains any messages produced by compilers while
2303running configure, to aid debugging if configure makes a mistake.
2304
2305It was created by libX11 $as_me 1.3.4, which was
2306generated by GNU Autoconf 2.65.  Invocation command line was
2307
2308  $ $0 $@
2309
2310_ACEOF
2311exec 5>>config.log
2312{
2313cat <<_ASUNAME
2314## --------- ##
2315## Platform. ##
2316## --------- ##
2317
2318hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2319uname -m = `(uname -m) 2>/dev/null || echo unknown`
2320uname -r = `(uname -r) 2>/dev/null || echo unknown`
2321uname -s = `(uname -s) 2>/dev/null || echo unknown`
2322uname -v = `(uname -v) 2>/dev/null || echo unknown`
2323
2324/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2325/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2326
2327/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2328/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2329/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2330/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2331/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2332/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2333/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2334
2335_ASUNAME
2336
2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340  IFS=$as_save_IFS
2341  test -z "$as_dir" && as_dir=.
2342    $as_echo "PATH: $as_dir"
2343  done
2344IFS=$as_save_IFS
2345
2346} >&5
2347
2348cat >&5 <<_ACEOF
2349
2350
2351## ----------- ##
2352## Core tests. ##
2353## ----------- ##
2354
2355_ACEOF
2356
2357
2358# Keep a trace of the command line.
2359# Strip out --no-create and --no-recursion so they do not pile up.
2360# Strip out --silent because we don't want to record it for future runs.
2361# Also quote any args containing shell meta-characters.
2362# Make two passes to allow for proper duplicate-argument suppression.
2363ac_configure_args=
2364ac_configure_args0=
2365ac_configure_args1=
2366ac_must_keep_next=false
2367for ac_pass in 1 2
2368do
2369  for ac_arg
2370  do
2371    case $ac_arg in
2372    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2373    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2374    | -silent | --silent | --silen | --sile | --sil)
2375      continue ;;
2376    *\'*)
2377      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2378    esac
2379    case $ac_pass in
2380    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2381    2)
2382      as_fn_append ac_configure_args1 " '$ac_arg'"
2383      if test $ac_must_keep_next = true; then
2384	ac_must_keep_next=false # Got value, back to normal.
2385      else
2386	case $ac_arg in
2387	  *=* | --config-cache | -C | -disable-* | --disable-* \
2388	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2389	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2390	  | -with-* | --with-* | -without-* | --without-* | --x)
2391	    case "$ac_configure_args0 " in
2392	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2393	    esac
2394	    ;;
2395	  -* ) ac_must_keep_next=true ;;
2396	esac
2397      fi
2398      as_fn_append ac_configure_args " '$ac_arg'"
2399      ;;
2400    esac
2401  done
2402done
2403{ ac_configure_args0=; unset ac_configure_args0;}
2404{ ac_configure_args1=; unset ac_configure_args1;}
2405
2406# When interrupted or exit'd, cleanup temporary files, and complete
2407# config.log.  We remove comments because anyway the quotes in there
2408# would cause problems or look ugly.
2409# WARNING: Use '\'' to represent an apostrophe within the trap.
2410# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2411trap 'exit_status=$?
2412  # Save into config.log some information that might help in debugging.
2413  {
2414    echo
2415
2416    cat <<\_ASBOX
2417## ---------------- ##
2418## Cache variables. ##
2419## ---------------- ##
2420_ASBOX
2421    echo
2422    # The following way of writing the cache mishandles newlines in values,
2423(
2424  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425    eval ac_val=\$$ac_var
2426    case $ac_val in #(
2427    *${as_nl}*)
2428      case $ac_var in #(
2429      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431      esac
2432      case $ac_var in #(
2433      _ | IFS | as_nl) ;; #(
2434      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435      *) { eval $ac_var=; unset $ac_var;} ;;
2436      esac ;;
2437    esac
2438  done
2439  (set) 2>&1 |
2440    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441    *${as_nl}ac_space=\ *)
2442      sed -n \
2443	"s/'\''/'\''\\\\'\'''\''/g;
2444	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445      ;; #(
2446    *)
2447      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448      ;;
2449    esac |
2450    sort
2451)
2452    echo
2453
2454    cat <<\_ASBOX
2455## ----------------- ##
2456## Output variables. ##
2457## ----------------- ##
2458_ASBOX
2459    echo
2460    for ac_var in $ac_subst_vars
2461    do
2462      eval ac_val=\$$ac_var
2463      case $ac_val in
2464      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465      esac
2466      $as_echo "$ac_var='\''$ac_val'\''"
2467    done | sort
2468    echo
2469
2470    if test -n "$ac_subst_files"; then
2471      cat <<\_ASBOX
2472## ------------------- ##
2473## File substitutions. ##
2474## ------------------- ##
2475_ASBOX
2476      echo
2477      for ac_var in $ac_subst_files
2478      do
2479	eval ac_val=\$$ac_var
2480	case $ac_val in
2481	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482	esac
2483	$as_echo "$ac_var='\''$ac_val'\''"
2484      done | sort
2485      echo
2486    fi
2487
2488    if test -s confdefs.h; then
2489      cat <<\_ASBOX
2490## ----------- ##
2491## confdefs.h. ##
2492## ----------- ##
2493_ASBOX
2494      echo
2495      cat confdefs.h
2496      echo
2497    fi
2498    test "$ac_signal" != 0 &&
2499      $as_echo "$as_me: caught signal $ac_signal"
2500    $as_echo "$as_me: exit $exit_status"
2501  } >&5
2502  rm -f core *.core core.conftest.* &&
2503    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2504    exit $exit_status
2505' 0
2506for ac_signal in 1 2 13 15; do
2507  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2508done
2509ac_signal=0
2510
2511# confdefs.h avoids OS command line length limits that DEFS can exceed.
2512rm -f -r conftest* confdefs.h
2513
2514$as_echo "/* confdefs.h */" > confdefs.h
2515
2516# Predefined preprocessor variables.
2517
2518cat >>confdefs.h <<_ACEOF
2519#define PACKAGE_NAME "$PACKAGE_NAME"
2520_ACEOF
2521
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2524_ACEOF
2525
2526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_VERSION "$PACKAGE_VERSION"
2528_ACEOF
2529
2530cat >>confdefs.h <<_ACEOF
2531#define PACKAGE_STRING "$PACKAGE_STRING"
2532_ACEOF
2533
2534cat >>confdefs.h <<_ACEOF
2535#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2536_ACEOF
2537
2538cat >>confdefs.h <<_ACEOF
2539#define PACKAGE_URL "$PACKAGE_URL"
2540_ACEOF
2541
2542
2543# Let the site file select an alternate cache file if it wants to.
2544# Prefer an explicitly selected file to automatically selected ones.
2545ac_site_file1=NONE
2546ac_site_file2=NONE
2547if test -n "$CONFIG_SITE"; then
2548  ac_site_file1=$CONFIG_SITE
2549elif test "x$prefix" != xNONE; then
2550  ac_site_file1=$prefix/share/config.site
2551  ac_site_file2=$prefix/etc/config.site
2552else
2553  ac_site_file1=$ac_default_prefix/share/config.site
2554  ac_site_file2=$ac_default_prefix/etc/config.site
2555fi
2556for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2557do
2558  test "x$ac_site_file" = xNONE && continue
2559  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2560    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2561$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2562    sed 's/^/| /' "$ac_site_file" >&5
2563    . "$ac_site_file"
2564  fi
2565done
2566
2567if test -r "$cache_file"; then
2568  # Some versions of bash will fail to source /dev/null (special files
2569  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2570  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2571    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2572$as_echo "$as_me: loading cache $cache_file" >&6;}
2573    case $cache_file in
2574      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2575      *)                      . "./$cache_file";;
2576    esac
2577  fi
2578else
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2580$as_echo "$as_me: creating cache $cache_file" >&6;}
2581  >$cache_file
2582fi
2583
2584as_fn_append ac_header_list " stdlib.h"
2585as_fn_append ac_header_list " unistd.h"
2586as_fn_append ac_header_list " sys/param.h"
2587# Check that the precious variables saved in the cache have kept the same
2588# value.
2589ac_cache_corrupted=false
2590for ac_var in $ac_precious_vars; do
2591  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2592  eval ac_new_set=\$ac_env_${ac_var}_set
2593  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2594  eval ac_new_val=\$ac_env_${ac_var}_value
2595  case $ac_old_set,$ac_new_set in
2596    set,)
2597      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2598$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2599      ac_cache_corrupted=: ;;
2600    ,set)
2601      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2602$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2603      ac_cache_corrupted=: ;;
2604    ,);;
2605    *)
2606      if test "x$ac_old_val" != "x$ac_new_val"; then
2607	# differences in whitespace do not lead to failure.
2608	ac_old_val_w=`echo x $ac_old_val`
2609	ac_new_val_w=`echo x $ac_new_val`
2610	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2611	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2612$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2613	  ac_cache_corrupted=:
2614	else
2615	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2616$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2617	  eval $ac_var=\$ac_old_val
2618	fi
2619	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2620$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2621	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2622$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2623      fi;;
2624  esac
2625  # Pass precious variables to config.status.
2626  if test "$ac_new_set" = set; then
2627    case $ac_new_val in
2628    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2629    *) ac_arg=$ac_var=$ac_new_val ;;
2630    esac
2631    case " $ac_configure_args " in
2632      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2633      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2634    esac
2635  fi
2636done
2637if $ac_cache_corrupted; then
2638  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2641$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2642  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2643fi
2644## -------------------- ##
2645## Main body of script. ##
2646## -------------------- ##
2647
2648ac_ext=c
2649ac_cpp='$CPP $CPPFLAGS'
2650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653
2654
2655
2656
2657ac_aux_dir=
2658for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2659  for ac_t in install-sh install.sh shtool; do
2660    if test -f "$ac_dir/$ac_t"; then
2661      ac_aux_dir=$ac_dir
2662      ac_install_sh="$ac_aux_dir/$ac_t -c"
2663      break 2
2664    fi
2665  done
2666done
2667if test -z "$ac_aux_dir"; then
2668  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2669fi
2670
2671# These three variables are undocumented and unsupported,
2672# and are intended to be withdrawn in a future Autoconf release.
2673# They can cause serious problems if a builder's source tree is in a directory
2674# whose full name contains unusual characters.
2675ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2676ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2677ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2678
2679
2680# Make sure we can run config.sub.
2681$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2682  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2683
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2685$as_echo_n "checking build system type... " >&6; }
2686if test "${ac_cv_build+set}" = set; then :
2687  $as_echo_n "(cached) " >&6
2688else
2689  ac_build_alias=$build_alias
2690test "x$ac_build_alias" = x &&
2691  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2692test "x$ac_build_alias" = x &&
2693  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2694ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2695  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2696
2697fi
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2699$as_echo "$ac_cv_build" >&6; }
2700case $ac_cv_build in
2701*-*-*) ;;
2702*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2703esac
2704build=$ac_cv_build
2705ac_save_IFS=$IFS; IFS='-'
2706set x $ac_cv_build
2707shift
2708build_cpu=$1
2709build_vendor=$2
2710shift; shift
2711# Remember, the first character of IFS is used to create $*,
2712# except with old shells:
2713build_os=$*
2714IFS=$ac_save_IFS
2715case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2716
2717
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2719$as_echo_n "checking host system type... " >&6; }
2720if test "${ac_cv_host+set}" = set; then :
2721  $as_echo_n "(cached) " >&6
2722else
2723  if test "x$host_alias" = x; then
2724  ac_cv_host=$ac_cv_build
2725else
2726  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2727    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2728fi
2729
2730fi
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2732$as_echo "$ac_cv_host" >&6; }
2733case $ac_cv_host in
2734*-*-*) ;;
2735*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2736esac
2737host=$ac_cv_host
2738ac_save_IFS=$IFS; IFS='-'
2739set x $ac_cv_host
2740shift
2741host_cpu=$1
2742host_vendor=$2
2743shift; shift
2744# Remember, the first character of IFS is used to create $*,
2745# except with old shells:
2746host_os=$*
2747IFS=$ac_save_IFS
2748case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2749
2750
2751
2752am__api_version='1.11'
2753
2754# Find a good install program.  We prefer a C program (faster),
2755# so one script is as good as another.  But avoid the broken or
2756# incompatible versions:
2757# SysV /etc/install, /usr/sbin/install
2758# SunOS /usr/etc/install
2759# IRIX /sbin/install
2760# AIX /bin/install
2761# AmigaOS /C/install, which installs bootblocks on floppy discs
2762# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2763# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2764# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2765# OS/2's system install, which has a completely different semantic
2766# ./install, which can be erroneously created by make from ./install.sh.
2767# Reject install programs that cannot install multiple files.
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2769$as_echo_n "checking for a BSD-compatible install... " >&6; }
2770if test -z "$INSTALL"; then
2771if test "${ac_cv_path_install+set}" = set; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777  IFS=$as_save_IFS
2778  test -z "$as_dir" && as_dir=.
2779    # Account for people who put trailing slashes in PATH elements.
2780case $as_dir/ in #((
2781  ./ | .// | /[cC]/* | \
2782  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2783  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2784  /usr/ucb/* ) ;;
2785  *)
2786    # OSF1 and SCO ODT 3.0 have their own names for install.
2787    # Don't use installbsd from OSF since it installs stuff as root
2788    # by default.
2789    for ac_prog in ginstall scoinst install; do
2790      for ac_exec_ext in '' $ac_executable_extensions; do
2791	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2792	  if test $ac_prog = install &&
2793	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2794	    # AIX install.  It has an incompatible calling convention.
2795	    :
2796	  elif test $ac_prog = install &&
2797	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2798	    # program-specific install script used by HP pwplus--don't use.
2799	    :
2800	  else
2801	    rm -rf conftest.one conftest.two conftest.dir
2802	    echo one > conftest.one
2803	    echo two > conftest.two
2804	    mkdir conftest.dir
2805	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2806	      test -s conftest.one && test -s conftest.two &&
2807	      test -s conftest.dir/conftest.one &&
2808	      test -s conftest.dir/conftest.two
2809	    then
2810	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2811	      break 3
2812	    fi
2813	  fi
2814	fi
2815      done
2816    done
2817    ;;
2818esac
2819
2820  done
2821IFS=$as_save_IFS
2822
2823rm -rf conftest.one conftest.two conftest.dir
2824
2825fi
2826  if test "${ac_cv_path_install+set}" = set; then
2827    INSTALL=$ac_cv_path_install
2828  else
2829    # As a last resort, use the slow shell script.  Don't cache a
2830    # value for INSTALL within a source directory, because that will
2831    # break other packages using the cache if that directory is
2832    # removed, or if the value is a relative name.
2833    INSTALL=$ac_install_sh
2834  fi
2835fi
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2837$as_echo "$INSTALL" >&6; }
2838
2839# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2840# It thinks the first close brace ends the variable substitution.
2841test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2842
2843test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2844
2845test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2846
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2848$as_echo_n "checking whether build environment is sane... " >&6; }
2849# Just in case
2850sleep 1
2851echo timestamp > conftest.file
2852# Reject unsafe characters in $srcdir or the absolute working directory
2853# name.  Accept space and tab only in the latter.
2854am_lf='
2855'
2856case `pwd` in
2857  *[\\\"\#\$\&\'\`$am_lf]*)
2858    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2859esac
2860case $srcdir in
2861  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2862    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2863esac
2864
2865# Do `set' in a subshell so we don't clobber the current shell's
2866# arguments.  Must try -L first in case configure is actually a
2867# symlink; some systems play weird games with the mod time of symlinks
2868# (eg FreeBSD returns the mod time of the symlink's containing
2869# directory).
2870if (
2871   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2872   if test "$*" = "X"; then
2873      # -L didn't work.
2874      set X `ls -t "$srcdir/configure" conftest.file`
2875   fi
2876   rm -f conftest.file
2877   if test "$*" != "X $srcdir/configure conftest.file" \
2878      && test "$*" != "X conftest.file $srcdir/configure"; then
2879
2880      # If neither matched, then we have a broken ls.  This can happen
2881      # if, for instance, CONFIG_SHELL is bash and it inherits a
2882      # broken ls alias from the environment.  This has actually
2883      # happened.  Such a system could not be considered "sane".
2884      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2885alias in your environment" "$LINENO" 5
2886   fi
2887
2888   test "$2" = conftest.file
2889   )
2890then
2891   # Ok.
2892   :
2893else
2894   as_fn_error "newly created file is older than distributed files!
2895Check your system clock" "$LINENO" 5
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2898$as_echo "yes" >&6; }
2899test "$program_prefix" != NONE &&
2900  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2901# Use a double $ so make ignores it.
2902test "$program_suffix" != NONE &&
2903  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2904# Double any \ or $.
2905# By default was `s,x,x', remove it if useless.
2906ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2907program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2908
2909# expand $ac_aux_dir to an absolute path
2910am_aux_dir=`cd $ac_aux_dir && pwd`
2911
2912if test x"${MISSING+set}" != xset; then
2913  case $am_aux_dir in
2914  *\ * | *\	*)
2915    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2916  *)
2917    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2918  esac
2919fi
2920# Use eval to expand $SHELL
2921if eval "$MISSING --run true"; then
2922  am_missing_run="$MISSING --run "
2923else
2924  am_missing_run=
2925  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2926$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2927fi
2928
2929if test x"${install_sh}" != xset; then
2930  case $am_aux_dir in
2931  *\ * | *\	*)
2932    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2933  *)
2934    install_sh="\${SHELL} $am_aux_dir/install-sh"
2935  esac
2936fi
2937
2938# Installed binaries are usually stripped using `strip' when the user
2939# run `make install-strip'.  However `strip' might not be the right
2940# tool to use in cross-compilation environments, therefore Automake
2941# will honor the `STRIP' environment variable to overrule this program.
2942if test "$cross_compiling" != no; then
2943  if test -n "$ac_tool_prefix"; then
2944  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2945set dummy ${ac_tool_prefix}strip; ac_word=$2
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947$as_echo_n "checking for $ac_word... " >&6; }
2948if test "${ac_cv_prog_STRIP+set}" = set; then :
2949  $as_echo_n "(cached) " >&6
2950else
2951  if test -n "$STRIP"; then
2952  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959    for ac_exec_ext in '' $ac_executable_extensions; do
2960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966  done
2967IFS=$as_save_IFS
2968
2969fi
2970fi
2971STRIP=$ac_cv_prog_STRIP
2972if test -n "$STRIP"; then
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2974$as_echo "$STRIP" >&6; }
2975else
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978fi
2979
2980
2981fi
2982if test -z "$ac_cv_prog_STRIP"; then
2983  ac_ct_STRIP=$STRIP
2984  # Extract the first word of "strip", so it can be a program name with args.
2985set dummy strip; ac_word=$2
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2989  $as_echo_n "(cached) " >&6
2990else
2991  if test -n "$ac_ct_STRIP"; then
2992  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997  IFS=$as_save_IFS
2998  test -z "$as_dir" && as_dir=.
2999    for ac_exec_ext in '' $ac_executable_extensions; do
3000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001    ac_cv_prog_ac_ct_STRIP="strip"
3002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003    break 2
3004  fi
3005done
3006  done
3007IFS=$as_save_IFS
3008
3009fi
3010fi
3011ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3012if test -n "$ac_ct_STRIP"; then
3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3014$as_echo "$ac_ct_STRIP" >&6; }
3015else
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017$as_echo "no" >&6; }
3018fi
3019
3020  if test "x$ac_ct_STRIP" = x; then
3021    STRIP=":"
3022  else
3023    case $cross_compiling:$ac_tool_warned in
3024yes:)
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027ac_tool_warned=yes ;;
3028esac
3029    STRIP=$ac_ct_STRIP
3030  fi
3031else
3032  STRIP="$ac_cv_prog_STRIP"
3033fi
3034
3035fi
3036INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3037
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3039$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3040if test -z "$MKDIR_P"; then
3041  if test "${ac_cv_path_mkdir+set}" = set; then :
3042  $as_echo_n "(cached) " >&6
3043else
3044  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3046do
3047  IFS=$as_save_IFS
3048  test -z "$as_dir" && as_dir=.
3049    for ac_prog in mkdir gmkdir; do
3050	 for ac_exec_ext in '' $ac_executable_extensions; do
3051	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3052	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3053	     'mkdir (GNU coreutils) '* | \
3054	     'mkdir (coreutils) '* | \
3055	     'mkdir (fileutils) '4.1*)
3056	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3057	       break 3;;
3058	   esac
3059	 done
3060       done
3061  done
3062IFS=$as_save_IFS
3063
3064fi
3065
3066  test -d ./--version && rmdir ./--version
3067  if test "${ac_cv_path_mkdir+set}" = set; then
3068    MKDIR_P="$ac_cv_path_mkdir -p"
3069  else
3070    # As a last resort, use the slow shell script.  Don't cache a
3071    # value for MKDIR_P within a source directory, because that will
3072    # break other packages using the cache if that directory is
3073    # removed, or if the value is a relative name.
3074    MKDIR_P="$ac_install_sh -d"
3075  fi
3076fi
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3078$as_echo "$MKDIR_P" >&6; }
3079
3080mkdir_p="$MKDIR_P"
3081case $mkdir_p in
3082  [\\/$]* | ?:[\\/]*) ;;
3083  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3084esac
3085
3086for ac_prog in gawk mawk nawk awk
3087do
3088  # Extract the first word of "$ac_prog", so it can be a program name with args.
3089set dummy $ac_prog; ac_word=$2
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091$as_echo_n "checking for $ac_word... " >&6; }
3092if test "${ac_cv_prog_AWK+set}" = set; then :
3093  $as_echo_n "(cached) " >&6
3094else
3095  if test -n "$AWK"; then
3096  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3097else
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101  IFS=$as_save_IFS
3102  test -z "$as_dir" && as_dir=.
3103    for ac_exec_ext in '' $ac_executable_extensions; do
3104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105    ac_cv_prog_AWK="$ac_prog"
3106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107    break 2
3108  fi
3109done
3110  done
3111IFS=$as_save_IFS
3112
3113fi
3114fi
3115AWK=$ac_cv_prog_AWK
3116if test -n "$AWK"; then
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3118$as_echo "$AWK" >&6; }
3119else
3120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121$as_echo "no" >&6; }
3122fi
3123
3124
3125  test -n "$AWK" && break
3126done
3127
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3129$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3130set x ${MAKE-make}
3131ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3132if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3133  $as_echo_n "(cached) " >&6
3134else
3135  cat >conftest.make <<\_ACEOF
3136SHELL = /bin/sh
3137all:
3138	@echo '@@@%%%=$(MAKE)=@@@%%%'
3139_ACEOF
3140# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3141case `${MAKE-make} -f conftest.make 2>/dev/null` in
3142  *@@@%%%=?*=@@@%%%*)
3143    eval ac_cv_prog_make_${ac_make}_set=yes;;
3144  *)
3145    eval ac_cv_prog_make_${ac_make}_set=no;;
3146esac
3147rm -f conftest.make
3148fi
3149if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3151$as_echo "yes" >&6; }
3152  SET_MAKE=
3153else
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155$as_echo "no" >&6; }
3156  SET_MAKE="MAKE=${MAKE-make}"
3157fi
3158
3159rm -rf .tst 2>/dev/null
3160mkdir .tst 2>/dev/null
3161if test -d .tst; then
3162  am__leading_dot=.
3163else
3164  am__leading_dot=_
3165fi
3166rmdir .tst 2>/dev/null
3167
3168if test "`cd $srcdir && pwd`" != "`pwd`"; then
3169  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3170  # is not polluted with repeated "-I."
3171  am__isrc=' -I$(srcdir)'
3172  # test to see if srcdir already configured
3173  if test -f $srcdir/config.status; then
3174    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3175  fi
3176fi
3177
3178# test whether we have cygpath
3179if test -z "$CYGPATH_W"; then
3180  if (cygpath --version) >/dev/null 2>/dev/null; then
3181    CYGPATH_W='cygpath -w'
3182  else
3183    CYGPATH_W=echo
3184  fi
3185fi
3186
3187
3188# Define the identity of the package.
3189 PACKAGE='libX11'
3190 VERSION='1.3.4'
3191
3192
3193cat >>confdefs.h <<_ACEOF
3194#define PACKAGE "$PACKAGE"
3195_ACEOF
3196
3197
3198cat >>confdefs.h <<_ACEOF
3199#define VERSION "$VERSION"
3200_ACEOF
3201
3202# Some tools Automake needs.
3203
3204ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3205
3206
3207AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3208
3209
3210AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3211
3212
3213AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3214
3215
3216MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3217
3218# We need awk for the "check" target.  The system "awk" is bad on
3219# some platforms.
3220# Always define AMTAR for backward compatibility.
3221
3222AMTAR=${AMTAR-"${am_missing_run}tar"}
3223
3224am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3225
3226
3227
3228
3229
3230
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3232$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3233    # Check whether --enable-maintainer-mode was given.
3234if test "${enable_maintainer_mode+set}" = set; then :
3235  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3236else
3237  USE_MAINTAINER_MODE=no
3238fi
3239
3240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3241$as_echo "$USE_MAINTAINER_MODE" >&6; }
3242   if test $USE_MAINTAINER_MODE = yes; then
3243  MAINTAINER_MODE_TRUE=
3244  MAINTAINER_MODE_FALSE='#'
3245else
3246  MAINTAINER_MODE_TRUE='#'
3247  MAINTAINER_MODE_FALSE=
3248fi
3249
3250  MAINT=$MAINTAINER_MODE_TRUE
3251
3252
3253ac_config_headers="$ac_config_headers src/config.h"
3254
3255ac_config_headers="$ac_config_headers include/X11/XlibConf.h"
3256
3257
3258# Require xorg-macros: XORG_DEFAULT_OPTIONS
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3272# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3273# to avoid autoconf errors.
3274DEPDIR="${am__leading_dot}deps"
3275
3276ac_config_commands="$ac_config_commands depfiles"
3277
3278
3279am_make=${MAKE-make}
3280cat > confinc << 'END'
3281am__doit:
3282	@echo this is the am__doit target
3283.PHONY: am__doit
3284END
3285# If we don't find an include directive, just comment out the code.
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3287$as_echo_n "checking for style of include used by $am_make... " >&6; }
3288am__include="#"
3289am__quote=
3290_am_result=none
3291# First try GNU make style include.
3292echo "include confinc" > confmf
3293# Ignore all kinds of additional output from `make'.
3294case `$am_make -s -f confmf 2> /dev/null` in #(
3295*the\ am__doit\ target*)
3296  am__include=include
3297  am__quote=
3298  _am_result=GNU
3299  ;;
3300esac
3301# Now try BSD make style include.
3302if test "$am__include" = "#"; then
3303   echo '.include "confinc"' > confmf
3304   case `$am_make -s -f confmf 2> /dev/null` in #(
3305   *the\ am__doit\ target*)
3306     am__include=.include
3307     am__quote="\""
3308     _am_result=BSD
3309     ;;
3310   esac
3311fi
3312
3313
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3315$as_echo "$_am_result" >&6; }
3316rm -f confinc confmf
3317
3318# Check whether --enable-dependency-tracking was given.
3319if test "${enable_dependency_tracking+set}" = set; then :
3320  enableval=$enable_dependency_tracking;
3321fi
3322
3323if test "x$enable_dependency_tracking" != xno; then
3324  am_depcomp="$ac_aux_dir/depcomp"
3325  AMDEPBACKSLASH='\'
3326fi
3327 if test "x$enable_dependency_tracking" != xno; then
3328  AMDEP_TRUE=
3329  AMDEP_FALSE='#'
3330else
3331  AMDEP_TRUE='#'
3332  AMDEP_FALSE=
3333fi
3334
3335
3336ac_ext=c
3337ac_cpp='$CPP $CPPFLAGS'
3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341if test -n "$ac_tool_prefix"; then
3342  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3343set dummy ${ac_tool_prefix}gcc; ac_word=$2
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345$as_echo_n "checking for $ac_word... " >&6; }
3346if test "${ac_cv_prog_CC+set}" = set; then :
3347  $as_echo_n "(cached) " >&6
3348else
3349  if test -n "$CC"; then
3350  ac_cv_prog_CC="$CC" # Let the user override the test.
3351else
3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in $PATH
3354do
3355  IFS=$as_save_IFS
3356  test -z "$as_dir" && as_dir=.
3357    for ac_exec_ext in '' $ac_executable_extensions; do
3358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361    break 2
3362  fi
3363done
3364  done
3365IFS=$as_save_IFS
3366
3367fi
3368fi
3369CC=$ac_cv_prog_CC
3370if test -n "$CC"; then
3371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372$as_echo "$CC" >&6; }
3373else
3374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375$as_echo "no" >&6; }
3376fi
3377
3378
3379fi
3380if test -z "$ac_cv_prog_CC"; then
3381  ac_ct_CC=$CC
3382  # Extract the first word of "gcc", so it can be a program name with args.
3383set dummy gcc; ac_word=$2
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385$as_echo_n "checking for $ac_word... " >&6; }
3386if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3387  $as_echo_n "(cached) " >&6
3388else
3389  if test -n "$ac_ct_CC"; then
3390  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3391else
3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395  IFS=$as_save_IFS
3396  test -z "$as_dir" && as_dir=.
3397    for ac_exec_ext in '' $ac_executable_extensions; do
3398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399    ac_cv_prog_ac_ct_CC="gcc"
3400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401    break 2
3402  fi
3403done
3404  done
3405IFS=$as_save_IFS
3406
3407fi
3408fi
3409ac_ct_CC=$ac_cv_prog_ac_ct_CC
3410if test -n "$ac_ct_CC"; then
3411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3412$as_echo "$ac_ct_CC" >&6; }
3413else
3414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415$as_echo "no" >&6; }
3416fi
3417
3418  if test "x$ac_ct_CC" = x; then
3419    CC=""
3420  else
3421    case $cross_compiling:$ac_tool_warned in
3422yes:)
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3425ac_tool_warned=yes ;;
3426esac
3427    CC=$ac_ct_CC
3428  fi
3429else
3430  CC="$ac_cv_prog_CC"
3431fi
3432
3433if test -z "$CC"; then
3434          if test -n "$ac_tool_prefix"; then
3435    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3436set dummy ${ac_tool_prefix}cc; ac_word=$2
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438$as_echo_n "checking for $ac_word... " >&6; }
3439if test "${ac_cv_prog_CC+set}" = set; then :
3440  $as_echo_n "(cached) " >&6
3441else
3442  if test -n "$CC"; then
3443  ac_cv_prog_CC="$CC" # Let the user override the test.
3444else
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448  IFS=$as_save_IFS
3449  test -z "$as_dir" && as_dir=.
3450    for ac_exec_ext in '' $ac_executable_extensions; do
3451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452    ac_cv_prog_CC="${ac_tool_prefix}cc"
3453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457  done
3458IFS=$as_save_IFS
3459
3460fi
3461fi
3462CC=$ac_cv_prog_CC
3463if test -n "$CC"; then
3464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465$as_echo "$CC" >&6; }
3466else
3467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468$as_echo "no" >&6; }
3469fi
3470
3471
3472  fi
3473fi
3474if test -z "$CC"; then
3475  # Extract the first word of "cc", so it can be a program name with args.
3476set dummy cc; ac_word=$2
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478$as_echo_n "checking for $ac_word... " >&6; }
3479if test "${ac_cv_prog_CC+set}" = set; then :
3480  $as_echo_n "(cached) " >&6
3481else
3482  if test -n "$CC"; then
3483  ac_cv_prog_CC="$CC" # Let the user override the test.
3484else
3485  ac_prog_rejected=no
3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH
3488do
3489  IFS=$as_save_IFS
3490  test -z "$as_dir" && as_dir=.
3491    for ac_exec_ext in '' $ac_executable_extensions; do
3492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3493    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3494       ac_prog_rejected=yes
3495       continue
3496     fi
3497    ac_cv_prog_CC="cc"
3498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499    break 2
3500  fi
3501done
3502  done
3503IFS=$as_save_IFS
3504
3505if test $ac_prog_rejected = yes; then
3506  # We found a bogon in the path, so make sure we never use it.
3507  set dummy $ac_cv_prog_CC
3508  shift
3509  if test $# != 0; then
3510    # We chose a different compiler from the bogus one.
3511    # However, it has the same basename, so the bogon will be chosen
3512    # first if we set CC to just the basename; use the full file name.
3513    shift
3514    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3515  fi
3516fi
3517fi
3518fi
3519CC=$ac_cv_prog_CC
3520if test -n "$CC"; then
3521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3522$as_echo "$CC" >&6; }
3523else
3524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525$as_echo "no" >&6; }
3526fi
3527
3528
3529fi
3530if test -z "$CC"; then
3531  if test -n "$ac_tool_prefix"; then
3532  for ac_prog in cl.exe
3533  do
3534    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3535set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537$as_echo_n "checking for $ac_word... " >&6; }
3538if test "${ac_cv_prog_CC+set}" = set; then :
3539  $as_echo_n "(cached) " >&6
3540else
3541  if test -n "$CC"; then
3542  ac_cv_prog_CC="$CC" # Let the user override the test.
3543else
3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545for as_dir in $PATH
3546do
3547  IFS=$as_save_IFS
3548  test -z "$as_dir" && as_dir=.
3549    for ac_exec_ext in '' $ac_executable_extensions; do
3550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553    break 2
3554  fi
3555done
3556  done
3557IFS=$as_save_IFS
3558
3559fi
3560fi
3561CC=$ac_cv_prog_CC
3562if test -n "$CC"; then
3563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564$as_echo "$CC" >&6; }
3565else
3566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567$as_echo "no" >&6; }
3568fi
3569
3570
3571    test -n "$CC" && break
3572  done
3573fi
3574if test -z "$CC"; then
3575  ac_ct_CC=$CC
3576  for ac_prog in cl.exe
3577do
3578  # Extract the first word of "$ac_prog", so it can be a program name with args.
3579set dummy $ac_prog; ac_word=$2
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581$as_echo_n "checking for $ac_word... " >&6; }
3582if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3583  $as_echo_n "(cached) " >&6
3584else
3585  if test -n "$ac_ct_CC"; then
3586  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587else
3588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589for as_dir in $PATH
3590do
3591  IFS=$as_save_IFS
3592  test -z "$as_dir" && as_dir=.
3593    for ac_exec_ext in '' $ac_executable_extensions; do
3594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3595    ac_cv_prog_ac_ct_CC="$ac_prog"
3596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597    break 2
3598  fi
3599done
3600  done
3601IFS=$as_save_IFS
3602
3603fi
3604fi
3605ac_ct_CC=$ac_cv_prog_ac_ct_CC
3606if test -n "$ac_ct_CC"; then
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3608$as_echo "$ac_ct_CC" >&6; }
3609else
3610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611$as_echo "no" >&6; }
3612fi
3613
3614
3615  test -n "$ac_ct_CC" && break
3616done
3617
3618  if test "x$ac_ct_CC" = x; then
3619    CC=""
3620  else
3621    case $cross_compiling:$ac_tool_warned in
3622yes:)
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625ac_tool_warned=yes ;;
3626esac
3627    CC=$ac_ct_CC
3628  fi
3629fi
3630
3631fi
3632
3633
3634test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636as_fn_error "no acceptable C compiler found in \$PATH
3637See \`config.log' for more details." "$LINENO" 5; }
3638
3639# Provide some information about the compiler.
3640$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3641set X $ac_compile
3642ac_compiler=$2
3643for ac_option in --version -v -V -qversion; do
3644  { { ac_try="$ac_compiler $ac_option >&5"
3645case "(($ac_try" in
3646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647  *) ac_try_echo=$ac_try;;
3648esac
3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650$as_echo "$ac_try_echo"; } >&5
3651  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3652  ac_status=$?
3653  if test -s conftest.err; then
3654    sed '10a\
3655... rest of stderr output deleted ...
3656         10q' conftest.err >conftest.er1
3657    cat conftest.er1 >&5
3658  fi
3659  rm -f conftest.er1 conftest.err
3660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661  test $ac_status = 0; }
3662done
3663
3664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h.  */
3666
3667int
3668main ()
3669{
3670
3671  ;
3672  return 0;
3673}
3674_ACEOF
3675ac_clean_files_save=$ac_clean_files
3676ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3677# Try to create an executable without -o first, disregard a.out.
3678# It will help us diagnose broken compilers, and finding out an intuition
3679# of exeext.
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3681$as_echo_n "checking whether the C compiler works... " >&6; }
3682ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3683
3684# The possible output files:
3685ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3686
3687ac_rmfiles=
3688for ac_file in $ac_files
3689do
3690  case $ac_file in
3691    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3692    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3693  esac
3694done
3695rm -f $ac_rmfiles
3696
3697if { { ac_try="$ac_link_default"
3698case "(($ac_try" in
3699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700  *) ac_try_echo=$ac_try;;
3701esac
3702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703$as_echo "$ac_try_echo"; } >&5
3704  (eval "$ac_link_default") 2>&5
3705  ac_status=$?
3706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707  test $ac_status = 0; }; then :
3708  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3709# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3710# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3711# so that the user can short-circuit this test for compilers unknown to
3712# Autoconf.
3713for ac_file in $ac_files ''
3714do
3715  test -f "$ac_file" || continue
3716  case $ac_file in
3717    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3718	;;
3719    [ab].out )
3720	# We found the default executable, but exeext='' is most
3721	# certainly right.
3722	break;;
3723    *.* )
3724	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3725	then :; else
3726	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3727	fi
3728	# We set ac_cv_exeext here because the later test for it is not
3729	# safe: cross compilers may not add the suffix if given an `-o'
3730	# argument, so we may need to know it at that point already.
3731	# Even if this section looks crufty: it has the advantage of
3732	# actually working.
3733	break;;
3734    * )
3735	break;;
3736  esac
3737done
3738test "$ac_cv_exeext" = no && ac_cv_exeext=
3739
3740else
3741  ac_file=''
3742fi
3743if test -z "$ac_file"; then :
3744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745$as_echo "no" >&6; }
3746$as_echo "$as_me: failed program was:" >&5
3747sed 's/^/| /' conftest.$ac_ext >&5
3748
3749{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751{ as_fn_set_status 77
3752as_fn_error "C compiler cannot create executables
3753See \`config.log' for more details." "$LINENO" 5; }; }
3754else
3755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3756$as_echo "yes" >&6; }
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3759$as_echo_n "checking for C compiler default output file name... " >&6; }
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3761$as_echo "$ac_file" >&6; }
3762ac_exeext=$ac_cv_exeext
3763
3764rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3765ac_clean_files=$ac_clean_files_save
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3767$as_echo_n "checking for suffix of executables... " >&6; }
3768if { { ac_try="$ac_link"
3769case "(($ac_try" in
3770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771  *) ac_try_echo=$ac_try;;
3772esac
3773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774$as_echo "$ac_try_echo"; } >&5
3775  (eval "$ac_link") 2>&5
3776  ac_status=$?
3777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778  test $ac_status = 0; }; then :
3779  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3780# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3781# work properly (i.e., refer to `conftest.exe'), while it won't with
3782# `rm'.
3783for ac_file in conftest.exe conftest conftest.*; do
3784  test -f "$ac_file" || continue
3785  case $ac_file in
3786    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3787    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3788	  break;;
3789    * ) break;;
3790  esac
3791done
3792else
3793  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795as_fn_error "cannot compute suffix of executables: cannot compile and link
3796See \`config.log' for more details." "$LINENO" 5; }
3797fi
3798rm -f conftest conftest$ac_cv_exeext
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3800$as_echo "$ac_cv_exeext" >&6; }
3801
3802rm -f conftest.$ac_ext
3803EXEEXT=$ac_cv_exeext
3804ac_exeext=$EXEEXT
3805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806/* end confdefs.h.  */
3807#include <stdio.h>
3808int
3809main ()
3810{
3811FILE *f = fopen ("conftest.out", "w");
3812 return ferror (f) || fclose (f) != 0;
3813
3814  ;
3815  return 0;
3816}
3817_ACEOF
3818ac_clean_files="$ac_clean_files conftest.out"
3819# Check that the compiler produces executables we can run.  If not, either
3820# the compiler is broken, or we cross compile.
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3822$as_echo_n "checking whether we are cross compiling... " >&6; }
3823if test "$cross_compiling" != yes; then
3824  { { ac_try="$ac_link"
3825case "(($ac_try" in
3826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827  *) ac_try_echo=$ac_try;;
3828esac
3829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830$as_echo "$ac_try_echo"; } >&5
3831  (eval "$ac_link") 2>&5
3832  ac_status=$?
3833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834  test $ac_status = 0; }
3835  if { ac_try='./conftest$ac_cv_exeext'
3836  { { case "(($ac_try" in
3837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838  *) ac_try_echo=$ac_try;;
3839esac
3840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841$as_echo "$ac_try_echo"; } >&5
3842  (eval "$ac_try") 2>&5
3843  ac_status=$?
3844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845  test $ac_status = 0; }; }; then
3846    cross_compiling=no
3847  else
3848    if test "$cross_compiling" = maybe; then
3849	cross_compiling=yes
3850    else
3851	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853as_fn_error "cannot run C compiled programs.
3854If you meant to cross compile, use \`--host'.
3855See \`config.log' for more details." "$LINENO" 5; }
3856    fi
3857  fi
3858fi
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3860$as_echo "$cross_compiling" >&6; }
3861
3862rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3863ac_clean_files=$ac_clean_files_save
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3865$as_echo_n "checking for suffix of object files... " >&6; }
3866if test "${ac_cv_objext+set}" = set; then :
3867  $as_echo_n "(cached) " >&6
3868else
3869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h.  */
3871
3872int
3873main ()
3874{
3875
3876  ;
3877  return 0;
3878}
3879_ACEOF
3880rm -f conftest.o conftest.obj
3881if { { ac_try="$ac_compile"
3882case "(($ac_try" in
3883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884  *) ac_try_echo=$ac_try;;
3885esac
3886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887$as_echo "$ac_try_echo"; } >&5
3888  (eval "$ac_compile") 2>&5
3889  ac_status=$?
3890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891  test $ac_status = 0; }; then :
3892  for ac_file in conftest.o conftest.obj conftest.*; do
3893  test -f "$ac_file" || continue;
3894  case $ac_file in
3895    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3896    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3897       break;;
3898  esac
3899done
3900else
3901  $as_echo "$as_me: failed program was:" >&5
3902sed 's/^/| /' conftest.$ac_ext >&5
3903
3904{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906as_fn_error "cannot compute suffix of object files: cannot compile
3907See \`config.log' for more details." "$LINENO" 5; }
3908fi
3909rm -f conftest.$ac_cv_objext conftest.$ac_ext
3910fi
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3912$as_echo "$ac_cv_objext" >&6; }
3913OBJEXT=$ac_cv_objext
3914ac_objext=$OBJEXT
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3916$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3917if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3918  $as_echo_n "(cached) " >&6
3919else
3920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921/* end confdefs.h.  */
3922
3923int
3924main ()
3925{
3926#ifndef __GNUC__
3927       choke me
3928#endif
3929
3930  ;
3931  return 0;
3932}
3933_ACEOF
3934if ac_fn_c_try_compile "$LINENO"; then :
3935  ac_compiler_gnu=yes
3936else
3937  ac_compiler_gnu=no
3938fi
3939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940ac_cv_c_compiler_gnu=$ac_compiler_gnu
3941
3942fi
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3944$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3945if test $ac_compiler_gnu = yes; then
3946  GCC=yes
3947else
3948  GCC=
3949fi
3950ac_test_CFLAGS=${CFLAGS+set}
3951ac_save_CFLAGS=$CFLAGS
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3953$as_echo_n "checking whether $CC accepts -g... " >&6; }
3954if test "${ac_cv_prog_cc_g+set}" = set; then :
3955  $as_echo_n "(cached) " >&6
3956else
3957  ac_save_c_werror_flag=$ac_c_werror_flag
3958   ac_c_werror_flag=yes
3959   ac_cv_prog_cc_g=no
3960   CFLAGS="-g"
3961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h.  */
3963
3964int
3965main ()
3966{
3967
3968  ;
3969  return 0;
3970}
3971_ACEOF
3972if ac_fn_c_try_compile "$LINENO"; then :
3973  ac_cv_prog_cc_g=yes
3974else
3975  CFLAGS=""
3976      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h.  */
3978
3979int
3980main ()
3981{
3982
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987if ac_fn_c_try_compile "$LINENO"; then :
3988
3989else
3990  ac_c_werror_flag=$ac_save_c_werror_flag
3991	 CFLAGS="-g"
3992	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h.  */
3994
3995int
3996main ()
3997{
3998
3999  ;
4000  return 0;
4001}
4002_ACEOF
4003if ac_fn_c_try_compile "$LINENO"; then :
4004  ac_cv_prog_cc_g=yes
4005fi
4006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007fi
4008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009fi
4010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011   ac_c_werror_flag=$ac_save_c_werror_flag
4012fi
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4014$as_echo "$ac_cv_prog_cc_g" >&6; }
4015if test "$ac_test_CFLAGS" = set; then
4016  CFLAGS=$ac_save_CFLAGS
4017elif test $ac_cv_prog_cc_g = yes; then
4018  if test "$GCC" = yes; then
4019    CFLAGS="-g -O2"
4020  else
4021    CFLAGS="-g"
4022  fi
4023else
4024  if test "$GCC" = yes; then
4025    CFLAGS="-O2"
4026  else
4027    CFLAGS=
4028  fi
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4031$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4032if test "${ac_cv_prog_cc_c89+set}" = set; then :
4033  $as_echo_n "(cached) " >&6
4034else
4035  ac_cv_prog_cc_c89=no
4036ac_save_CC=$CC
4037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h.  */
4039#include <stdarg.h>
4040#include <stdio.h>
4041#include <sys/types.h>
4042#include <sys/stat.h>
4043/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4044struct buf { int x; };
4045FILE * (*rcsopen) (struct buf *, struct stat *, int);
4046static char *e (p, i)
4047     char **p;
4048     int i;
4049{
4050  return p[i];
4051}
4052static char *f (char * (*g) (char **, int), char **p, ...)
4053{
4054  char *s;
4055  va_list v;
4056  va_start (v,p);
4057  s = g (p, va_arg (v,int));
4058  va_end (v);
4059  return s;
4060}
4061
4062/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4063   function prototypes and stuff, but not '\xHH' hex character constants.
4064   These don't provoke an error unfortunately, instead are silently treated
4065   as 'x'.  The following induces an error, until -std is added to get
4066   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4067   array size at least.  It's necessary to write '\x00'==0 to get something
4068   that's true only with -std.  */
4069int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4070
4071/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4072   inside strings and character constants.  */
4073#define FOO(x) 'x'
4074int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4075
4076int test (int i, double x);
4077struct s1 {int (*f) (int a);};
4078struct s2 {int (*f) (double a);};
4079int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080int argc;
4081char **argv;
4082int
4083main ()
4084{
4085return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4086  ;
4087  return 0;
4088}
4089_ACEOF
4090for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4091	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4092do
4093  CC="$ac_save_CC $ac_arg"
4094  if ac_fn_c_try_compile "$LINENO"; then :
4095  ac_cv_prog_cc_c89=$ac_arg
4096fi
4097rm -f core conftest.err conftest.$ac_objext
4098  test "x$ac_cv_prog_cc_c89" != "xno" && break
4099done
4100rm -f conftest.$ac_ext
4101CC=$ac_save_CC
4102
4103fi
4104# AC_CACHE_VAL
4105case "x$ac_cv_prog_cc_c89" in
4106  x)
4107    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4108$as_echo "none needed" >&6; } ;;
4109  xno)
4110    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4111$as_echo "unsupported" >&6; } ;;
4112  *)
4113    CC="$CC $ac_cv_prog_cc_c89"
4114    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4115$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4116esac
4117if test "x$ac_cv_prog_cc_c89" != xno; then :
4118
4119fi
4120
4121ac_ext=c
4122ac_cpp='$CPP $CPPFLAGS'
4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126
4127depcc="$CC"   am_compiler_list=
4128
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4130$as_echo_n "checking dependency style of $depcc... " >&6; }
4131if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4132  $as_echo_n "(cached) " >&6
4133else
4134  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4135  # We make a subdir and do the tests there.  Otherwise we can end up
4136  # making bogus files that we don't know about and never remove.  For
4137  # instance it was reported that on HP-UX the gcc test will end up
4138  # making a dummy file named `D' -- because `-MD' means `put the output
4139  # in D'.
4140  mkdir conftest.dir
4141  # Copy depcomp to subdir because otherwise we won't find it if we're
4142  # using a relative directory.
4143  cp "$am_depcomp" conftest.dir
4144  cd conftest.dir
4145  # We will build objects and dependencies in a subdirectory because
4146  # it helps to detect inapplicable dependency modes.  For instance
4147  # both Tru64's cc and ICC support -MD to output dependencies as a
4148  # side effect of compilation, but ICC will put the dependencies in
4149  # the current directory while Tru64 will put them in the object
4150  # directory.
4151  mkdir sub
4152
4153  am_cv_CC_dependencies_compiler_type=none
4154  if test "$am_compiler_list" = ""; then
4155     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4156  fi
4157  am__universal=false
4158  case " $depcc " in #(
4159     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4160     esac
4161
4162  for depmode in $am_compiler_list; do
4163    # Setup a source with many dependencies, because some compilers
4164    # like to wrap large dependency lists on column 80 (with \), and
4165    # we should not choose a depcomp mode which is confused by this.
4166    #
4167    # We need to recreate these files for each test, as the compiler may
4168    # overwrite some of them when testing with obscure command lines.
4169    # This happens at least with the AIX C compiler.
4170    : > sub/conftest.c
4171    for i in 1 2 3 4 5 6; do
4172      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4173      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4174      # Solaris 8's {/usr,}/bin/sh.
4175      touch sub/conftst$i.h
4176    done
4177    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4178
4179    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4180    # mode.  It turns out that the SunPro C++ compiler does not properly
4181    # handle `-M -o', and we need to detect this.  Also, some Intel
4182    # versions had trouble with output in subdirs
4183    am__obj=sub/conftest.${OBJEXT-o}
4184    am__minus_obj="-o $am__obj"
4185    case $depmode in
4186    gcc)
4187      # This depmode causes a compiler race in universal mode.
4188      test "$am__universal" = false || continue
4189      ;;
4190    nosideeffect)
4191      # after this tag, mechanisms are not by side-effect, so they'll
4192      # only be used when explicitly requested
4193      if test "x$enable_dependency_tracking" = xyes; then
4194	continue
4195      else
4196	break
4197      fi
4198      ;;
4199    msvisualcpp | msvcmsys)
4200      # This compiler won't grok `-c -o', but also, the minuso test has
4201      # not run yet.  These depmodes are late enough in the game, and
4202      # so weak that their functioning should not be impacted.
4203      am__obj=conftest.${OBJEXT-o}
4204      am__minus_obj=
4205      ;;
4206    none) break ;;
4207    esac
4208    if depmode=$depmode \
4209       source=sub/conftest.c object=$am__obj \
4210       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4211       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4212         >/dev/null 2>conftest.err &&
4213       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4214       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4215       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4216       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4217      # icc doesn't choke on unknown options, it will just issue warnings
4218      # or remarks (even with -Werror).  So we grep stderr for any message
4219      # that says an option was ignored or not supported.
4220      # When given -MP, icc 7.0 and 7.1 complain thusly:
4221      #   icc: Command line warning: ignoring option '-M'; no argument required
4222      # The diagnosis changed in icc 8.0:
4223      #   icc: Command line remark: option '-MP' not supported
4224      if (grep 'ignoring option' conftest.err ||
4225          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4226        am_cv_CC_dependencies_compiler_type=$depmode
4227        break
4228      fi
4229    fi
4230  done
4231
4232  cd ..
4233  rm -rf conftest.dir
4234else
4235  am_cv_CC_dependencies_compiler_type=none
4236fi
4237
4238fi
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4240$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4241CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4242
4243 if
4244  test "x$enable_dependency_tracking" != xno \
4245  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4246  am__fastdepCC_TRUE=
4247  am__fastdepCC_FALSE='#'
4248else
4249  am__fastdepCC_TRUE='#'
4250  am__fastdepCC_FALSE=
4251fi
4252
4253
4254
4255ac_ext=c
4256ac_cpp='$CPP $CPPFLAGS'
4257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4261$as_echo_n "checking how to run the C preprocessor... " >&6; }
4262# On Suns, sometimes $CPP names a directory.
4263if test -n "$CPP" && test -d "$CPP"; then
4264  CPP=
4265fi
4266if test -z "$CPP"; then
4267  if test "${ac_cv_prog_CPP+set}" = set; then :
4268  $as_echo_n "(cached) " >&6
4269else
4270      # Double quotes because CPP needs to be expanded
4271    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4272    do
4273      ac_preproc_ok=false
4274for ac_c_preproc_warn_flag in '' yes
4275do
4276  # Use a header file that comes with gcc, so configuring glibc
4277  # with a fresh cross-compiler works.
4278  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4279  # <limits.h> exists even on freestanding compilers.
4280  # On the NeXT, cc -E runs the code through the compiler's parser,
4281  # not just through cpp. "Syntax error" is here to catch this case.
4282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284#ifdef __STDC__
4285# include <limits.h>
4286#else
4287# include <assert.h>
4288#endif
4289		     Syntax error
4290_ACEOF
4291if ac_fn_c_try_cpp "$LINENO"; then :
4292
4293else
4294  # Broken: fails on valid input.
4295continue
4296fi
4297rm -f conftest.err conftest.$ac_ext
4298
4299  # OK, works on sane cases.  Now check whether nonexistent headers
4300  # can be detected and how.
4301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h.  */
4303#include <ac_nonexistent.h>
4304_ACEOF
4305if ac_fn_c_try_cpp "$LINENO"; then :
4306  # Broken: success on invalid input.
4307continue
4308else
4309  # Passes both tests.
4310ac_preproc_ok=:
4311break
4312fi
4313rm -f conftest.err conftest.$ac_ext
4314
4315done
4316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4317rm -f conftest.err conftest.$ac_ext
4318if $ac_preproc_ok; then :
4319  break
4320fi
4321
4322    done
4323    ac_cv_prog_CPP=$CPP
4324
4325fi
4326  CPP=$ac_cv_prog_CPP
4327else
4328  ac_cv_prog_CPP=$CPP
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4331$as_echo "$CPP" >&6; }
4332ac_preproc_ok=false
4333for ac_c_preproc_warn_flag in '' yes
4334do
4335  # Use a header file that comes with gcc, so configuring glibc
4336  # with a fresh cross-compiler works.
4337  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4338  # <limits.h> exists even on freestanding compilers.
4339  # On the NeXT, cc -E runs the code through the compiler's parser,
4340  # not just through cpp. "Syntax error" is here to catch this case.
4341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342/* end confdefs.h.  */
4343#ifdef __STDC__
4344# include <limits.h>
4345#else
4346# include <assert.h>
4347#endif
4348		     Syntax error
4349_ACEOF
4350if ac_fn_c_try_cpp "$LINENO"; then :
4351
4352else
4353  # Broken: fails on valid input.
4354continue
4355fi
4356rm -f conftest.err conftest.$ac_ext
4357
4358  # OK, works on sane cases.  Now check whether nonexistent headers
4359  # can be detected and how.
4360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361/* end confdefs.h.  */
4362#include <ac_nonexistent.h>
4363_ACEOF
4364if ac_fn_c_try_cpp "$LINENO"; then :
4365  # Broken: success on invalid input.
4366continue
4367else
4368  # Passes both tests.
4369ac_preproc_ok=:
4370break
4371fi
4372rm -f conftest.err conftest.$ac_ext
4373
4374done
4375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4376rm -f conftest.err conftest.$ac_ext
4377if $ac_preproc_ok; then :
4378
4379else
4380  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4382as_fn_error "C preprocessor \"$CPP\" fails sanity check
4383See \`config.log' for more details." "$LINENO" 5; }
4384fi
4385
4386ac_ext=c
4387ac_cpp='$CPP $CPPFLAGS'
4388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391
4392
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4394$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4395if test "${ac_cv_path_GREP+set}" = set; then :
4396  $as_echo_n "(cached) " >&6
4397else
4398  if test -z "$GREP"; then
4399  ac_path_GREP_found=false
4400  # Loop through the user's path and test for each of PROGNAME-LIST
4401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4403do
4404  IFS=$as_save_IFS
4405  test -z "$as_dir" && as_dir=.
4406    for ac_prog in grep ggrep; do
4407    for ac_exec_ext in '' $ac_executable_extensions; do
4408      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4409      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4410# Check for GNU ac_path_GREP and select it if it is found.
4411  # Check for GNU $ac_path_GREP
4412case `"$ac_path_GREP" --version 2>&1` in
4413*GNU*)
4414  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4415*)
4416  ac_count=0
4417  $as_echo_n 0123456789 >"conftest.in"
4418  while :
4419  do
4420    cat "conftest.in" "conftest.in" >"conftest.tmp"
4421    mv "conftest.tmp" "conftest.in"
4422    cp "conftest.in" "conftest.nl"
4423    $as_echo 'GREP' >> "conftest.nl"
4424    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4425    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4426    as_fn_arith $ac_count + 1 && ac_count=$as_val
4427    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4428      # Best one so far, save it but keep looking for a better one
4429      ac_cv_path_GREP="$ac_path_GREP"
4430      ac_path_GREP_max=$ac_count
4431    fi
4432    # 10*(2^10) chars as input seems more than enough
4433    test $ac_count -gt 10 && break
4434  done
4435  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4436esac
4437
4438      $ac_path_GREP_found && break 3
4439    done
4440  done
4441  done
4442IFS=$as_save_IFS
4443  if test -z "$ac_cv_path_GREP"; then
4444    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4445  fi
4446else
4447  ac_cv_path_GREP=$GREP
4448fi
4449
4450fi
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4452$as_echo "$ac_cv_path_GREP" >&6; }
4453 GREP="$ac_cv_path_GREP"
4454
4455
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4457$as_echo_n "checking for egrep... " >&6; }
4458if test "${ac_cv_path_EGREP+set}" = set; then :
4459  $as_echo_n "(cached) " >&6
4460else
4461  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4462   then ac_cv_path_EGREP="$GREP -E"
4463   else
4464     if test -z "$EGREP"; then
4465  ac_path_EGREP_found=false
4466  # Loop through the user's path and test for each of PROGNAME-LIST
4467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469do
4470  IFS=$as_save_IFS
4471  test -z "$as_dir" && as_dir=.
4472    for ac_prog in egrep; do
4473    for ac_exec_ext in '' $ac_executable_extensions; do
4474      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4475      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4476# Check for GNU ac_path_EGREP and select it if it is found.
4477  # Check for GNU $ac_path_EGREP
4478case `"$ac_path_EGREP" --version 2>&1` in
4479*GNU*)
4480  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4481*)
4482  ac_count=0
4483  $as_echo_n 0123456789 >"conftest.in"
4484  while :
4485  do
4486    cat "conftest.in" "conftest.in" >"conftest.tmp"
4487    mv "conftest.tmp" "conftest.in"
4488    cp "conftest.in" "conftest.nl"
4489    $as_echo 'EGREP' >> "conftest.nl"
4490    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492    as_fn_arith $ac_count + 1 && ac_count=$as_val
4493    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4494      # Best one so far, save it but keep looking for a better one
4495      ac_cv_path_EGREP="$ac_path_EGREP"
4496      ac_path_EGREP_max=$ac_count
4497    fi
4498    # 10*(2^10) chars as input seems more than enough
4499    test $ac_count -gt 10 && break
4500  done
4501  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502esac
4503
4504      $ac_path_EGREP_found && break 3
4505    done
4506  done
4507  done
4508IFS=$as_save_IFS
4509  if test -z "$ac_cv_path_EGREP"; then
4510    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4511  fi
4512else
4513  ac_cv_path_EGREP=$EGREP
4514fi
4515
4516   fi
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4519$as_echo "$ac_cv_path_EGREP" >&6; }
4520 EGREP="$ac_cv_path_EGREP"
4521
4522
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4524$as_echo_n "checking for ANSI C header files... " >&6; }
4525if test "${ac_cv_header_stdc+set}" = set; then :
4526  $as_echo_n "(cached) " >&6
4527else
4528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529/* end confdefs.h.  */
4530#include <stdlib.h>
4531#include <stdarg.h>
4532#include <string.h>
4533#include <float.h>
4534
4535int
4536main ()
4537{
4538
4539  ;
4540  return 0;
4541}
4542_ACEOF
4543if ac_fn_c_try_compile "$LINENO"; then :
4544  ac_cv_header_stdc=yes
4545else
4546  ac_cv_header_stdc=no
4547fi
4548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549
4550if test $ac_cv_header_stdc = yes; then
4551  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h.  */
4554#include <string.h>
4555
4556_ACEOF
4557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4558  $EGREP "memchr" >/dev/null 2>&1; then :
4559
4560else
4561  ac_cv_header_stdc=no
4562fi
4563rm -f conftest*
4564
4565fi
4566
4567if test $ac_cv_header_stdc = yes; then
4568  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h.  */
4571#include <stdlib.h>
4572
4573_ACEOF
4574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4575  $EGREP "free" >/dev/null 2>&1; then :
4576
4577else
4578  ac_cv_header_stdc=no
4579fi
4580rm -f conftest*
4581
4582fi
4583
4584if test $ac_cv_header_stdc = yes; then
4585  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4586  if test "$cross_compiling" = yes; then :
4587  :
4588else
4589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h.  */
4591#include <ctype.h>
4592#include <stdlib.h>
4593#if ((' ' & 0x0FF) == 0x020)
4594# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4595# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4596#else
4597# define ISLOWER(c) \
4598		   (('a' <= (c) && (c) <= 'i') \
4599		     || ('j' <= (c) && (c) <= 'r') \
4600		     || ('s' <= (c) && (c) <= 'z'))
4601# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4602#endif
4603
4604#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4605int
4606main ()
4607{
4608  int i;
4609  for (i = 0; i < 256; i++)
4610    if (XOR (islower (i), ISLOWER (i))
4611	|| toupper (i) != TOUPPER (i))
4612      return 2;
4613  return 0;
4614}
4615_ACEOF
4616if ac_fn_c_try_run "$LINENO"; then :
4617
4618else
4619  ac_cv_header_stdc=no
4620fi
4621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4622  conftest.$ac_objext conftest.beam conftest.$ac_ext
4623fi
4624
4625fi
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4628$as_echo "$ac_cv_header_stdc" >&6; }
4629if test $ac_cv_header_stdc = yes; then
4630
4631$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4632
4633fi
4634
4635# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4636for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4637		  inttypes.h stdint.h unistd.h
4638do :
4639  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4640ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4641"
4642eval as_val=\$$as_ac_Header
4643   if test "x$as_val" = x""yes; then :
4644  cat >>confdefs.h <<_ACEOF
4645#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4646_ACEOF
4647
4648fi
4649
4650done
4651
4652
4653
4654  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4655if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4656  MINIX=yes
4657else
4658  MINIX=
4659fi
4660
4661
4662  if test "$MINIX" = yes; then
4663
4664$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4665
4666
4667$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4668
4669
4670$as_echo "#define _MINIX 1" >>confdefs.h
4671
4672  fi
4673
4674
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4676$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4677if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h.  */
4682
4683#	  define __EXTENSIONS__ 1
4684	  $ac_includes_default
4685int
4686main ()
4687{
4688
4689  ;
4690  return 0;
4691}
4692_ACEOF
4693if ac_fn_c_try_compile "$LINENO"; then :
4694  ac_cv_safe_to_define___extensions__=yes
4695else
4696  ac_cv_safe_to_define___extensions__=no
4697fi
4698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699fi
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4701$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4702  test $ac_cv_safe_to_define___extensions__ = yes &&
4703    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4704
4705  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4706
4707  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4708
4709  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4710
4711  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4712
4713
4714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4715$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4716if test "${ac_cv_prog_cc_c99+set}" = set; then :
4717  $as_echo_n "(cached) " >&6
4718else
4719  ac_cv_prog_cc_c99=no
4720ac_save_CC=$CC
4721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722/* end confdefs.h.  */
4723#include <stdarg.h>
4724#include <stdbool.h>
4725#include <stdlib.h>
4726#include <wchar.h>
4727#include <stdio.h>
4728
4729// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4730#define debug(...) fprintf (stderr, __VA_ARGS__)
4731#define showlist(...) puts (#__VA_ARGS__)
4732#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4733static void
4734test_varargs_macros (void)
4735{
4736  int x = 1234;
4737  int y = 5678;
4738  debug ("Flag");
4739  debug ("X = %d\n", x);
4740  showlist (The first, second, and third items.);
4741  report (x>y, "x is %d but y is %d", x, y);
4742}
4743
4744// Check long long types.
4745#define BIG64 18446744073709551615ull
4746#define BIG32 4294967295ul
4747#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4748#if !BIG_OK
4749  your preprocessor is broken;
4750#endif
4751#if BIG_OK
4752#else
4753  your preprocessor is broken;
4754#endif
4755static long long int bignum = -9223372036854775807LL;
4756static unsigned long long int ubignum = BIG64;
4757
4758struct incomplete_array
4759{
4760  int datasize;
4761  double data[];
4762};
4763
4764struct named_init {
4765  int number;
4766  const wchar_t *name;
4767  double average;
4768};
4769
4770typedef const char *ccp;
4771
4772static inline int
4773test_restrict (ccp restrict text)
4774{
4775  // See if C++-style comments work.
4776  // Iterate through items via the restricted pointer.
4777  // Also check for declarations in for loops.
4778  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4779    continue;
4780  return 0;
4781}
4782
4783// Check varargs and va_copy.
4784static void
4785test_varargs (const char *format, ...)
4786{
4787  va_list args;
4788  va_start (args, format);
4789  va_list args_copy;
4790  va_copy (args_copy, args);
4791
4792  const char *str;
4793  int number;
4794  float fnumber;
4795
4796  while (*format)
4797    {
4798      switch (*format++)
4799	{
4800	case 's': // string
4801	  str = va_arg (args_copy, const char *);
4802	  break;
4803	case 'd': // int
4804	  number = va_arg (args_copy, int);
4805	  break;
4806	case 'f': // float
4807	  fnumber = va_arg (args_copy, double);
4808	  break;
4809	default:
4810	  break;
4811	}
4812    }
4813  va_end (args_copy);
4814  va_end (args);
4815}
4816
4817int
4818main ()
4819{
4820
4821  // Check bool.
4822  _Bool success = false;
4823
4824  // Check restrict.
4825  if (test_restrict ("String literal") == 0)
4826    success = true;
4827  char *restrict newvar = "Another string";
4828
4829  // Check varargs.
4830  test_varargs ("s, d' f .", "string", 65, 34.234);
4831  test_varargs_macros ();
4832
4833  // Check flexible array members.
4834  struct incomplete_array *ia =
4835    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4836  ia->datasize = 10;
4837  for (int i = 0; i < ia->datasize; ++i)
4838    ia->data[i] = i * 1.234;
4839
4840  // Check named initializers.
4841  struct named_init ni = {
4842    .number = 34,
4843    .name = L"Test wide string",
4844    .average = 543.34343,
4845  };
4846
4847  ni.number = 58;
4848
4849  int dynamic_array[ni.number];
4850  dynamic_array[ni.number - 1] = 543;
4851
4852  // work around unused variable warnings
4853  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4854	  || dynamic_array[ni.number - 1] != 543);
4855
4856  ;
4857  return 0;
4858}
4859_ACEOF
4860for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4861do
4862  CC="$ac_save_CC $ac_arg"
4863  if ac_fn_c_try_compile "$LINENO"; then :
4864  ac_cv_prog_cc_c99=$ac_arg
4865fi
4866rm -f core conftest.err conftest.$ac_objext
4867  test "x$ac_cv_prog_cc_c99" != "xno" && break
4868done
4869rm -f conftest.$ac_ext
4870CC=$ac_save_CC
4871
4872fi
4873# AC_CACHE_VAL
4874case "x$ac_cv_prog_cc_c99" in
4875  x)
4876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4877$as_echo "none needed" >&6; } ;;
4878  xno)
4879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4880$as_echo "unsupported" >&6; } ;;
4881  *)
4882    CC="$CC $ac_cv_prog_cc_c99"
4883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4884$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4885esac
4886if test "x$ac_cv_prog_cc_c99" != xno; then :
4887
4888fi
4889
4890
4891
4892
4893if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4894	if test -n "$ac_tool_prefix"; then
4895  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4896set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898$as_echo_n "checking for $ac_word... " >&6; }
4899if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4900  $as_echo_n "(cached) " >&6
4901else
4902  case $PKG_CONFIG in
4903  [\\/]* | ?:[\\/]*)
4904  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4905  ;;
4906  *)
4907  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910  IFS=$as_save_IFS
4911  test -z "$as_dir" && as_dir=.
4912    for ac_exec_ext in '' $ac_executable_extensions; do
4913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916    break 2
4917  fi
4918done
4919  done
4920IFS=$as_save_IFS
4921
4922  ;;
4923esac
4924fi
4925PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4926if test -n "$PKG_CONFIG"; then
4927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4928$as_echo "$PKG_CONFIG" >&6; }
4929else
4930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931$as_echo "no" >&6; }
4932fi
4933
4934
4935fi
4936if test -z "$ac_cv_path_PKG_CONFIG"; then
4937  ac_pt_PKG_CONFIG=$PKG_CONFIG
4938  # Extract the first word of "pkg-config", so it can be a program name with args.
4939set dummy pkg-config; ac_word=$2
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941$as_echo_n "checking for $ac_word... " >&6; }
4942if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  case $ac_pt_PKG_CONFIG in
4946  [\\/]* | ?:[\\/]*)
4947  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4948  ;;
4949  *)
4950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953  IFS=$as_save_IFS
4954  test -z "$as_dir" && as_dir=.
4955    for ac_exec_ext in '' $ac_executable_extensions; do
4956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959    break 2
4960  fi
4961done
4962  done
4963IFS=$as_save_IFS
4964
4965  ;;
4966esac
4967fi
4968ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4969if test -n "$ac_pt_PKG_CONFIG"; then
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4971$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4972else
4973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976
4977  if test "x$ac_pt_PKG_CONFIG" = x; then
4978    PKG_CONFIG=""
4979  else
4980    case $cross_compiling:$ac_tool_warned in
4981yes:)
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984ac_tool_warned=yes ;;
4985esac
4986    PKG_CONFIG=$ac_pt_PKG_CONFIG
4987  fi
4988else
4989  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4990fi
4991
4992fi
4993if test -n "$PKG_CONFIG"; then
4994	_pkg_min_version=0.9.0
4995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4996$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4997	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999$as_echo "yes" >&6; }
5000	else
5001		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002$as_echo "no" >&6; }
5003		PKG_CONFIG=""
5004	fi
5005
5006fi
5007
5008
5009
5010if  test "x$GCC" = xyes ; then
5011    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
5012-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
5013-Wbad-function-cast -Wformat=2"
5014    case `$CC -dumpversion` in
5015    3.4.* | 4.*)
5016	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
5017	;;
5018    esac
5019else
5020    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5021if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
5022  SUNCC="yes"
5023else
5024  SUNCC="no"
5025fi
5026
5027    if test "x$SUNCC" = "xyes"; then
5028	CWARNFLAGS="-v"
5029    fi
5030fi
5031
5032
5033
5034
5035
5036
5037
5038# Check whether --enable-strict-compilation was given.
5039if test "${enable_strict_compilation+set}" = set; then :
5040  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
5041else
5042  STRICT_COMPILE=no
5043fi
5044
5045if test "x$STRICT_COMPILE" = "xyes"; then
5046	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5047if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
5048  SUNCC="yes"
5049else
5050  SUNCC="no"
5051fi
5052
5053	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
5054if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
5055  INTELCC="yes"
5056else
5057  INTELCC="no"
5058fi
5059
5060	if test "x$GCC" = xyes ; then
5061		STRICT_CFLAGS="-pedantic -Werror"
5062	elif test "x$SUNCC" = "xyes"; then
5063		STRICT_CFLAGS="-errwarn"
5064    elif test "x$INTELCC" = "xyes"; then
5065		STRICT_CFLAGS="-Werror"
5066	fi
5067fi
5068CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5069
5070
5071
5072
5073# Check whether --with-release-version was given.
5074if test "${with_release_version+set}" = set; then :
5075  withval=$with_release_version; RELEASE_VERSION="$withval"
5076else
5077  RELEASE_VERSION=""
5078fi
5079
5080	if test "x$RELEASE_VERSION" != "x"; then
5081		PACKAGE="$PACKAGE-$RELEASE_VERSION"
5082		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
5083		{ $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
5084$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
5085	fi
5086
5087cat >>confdefs.h <<_ACEOF
5088#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5089_ACEOF
5090
5091	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5092	if test "x$PVM" = "x"; then
5093		PVM="0"
5094	fi
5095
5096cat >>confdefs.h <<_ACEOF
5097#define PACKAGE_VERSION_MINOR $PVM
5098_ACEOF
5099
5100	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5101	if test "x$PVP" = "x"; then
5102		PVP="0"
5103	fi
5104
5105cat >>confdefs.h <<_ACEOF
5106#define PACKAGE_VERSION_PATCHLEVEL $PVP
5107_ACEOF
5108
5109
5110
5111CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5112mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5113|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5114echo 'git directory not found: installing possibly empty changelog.' >&2)"
5115
5116
5117
5118
5119macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5120INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5121mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5122|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5123echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5124
5125
5126
5127
5128
5129if test x$APP_MAN_SUFFIX = x    ; then
5130    APP_MAN_SUFFIX=1
5131fi
5132if test x$APP_MAN_DIR = x    ; then
5133    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5134fi
5135
5136if test x$LIB_MAN_SUFFIX = x    ; then
5137    LIB_MAN_SUFFIX=3
5138fi
5139if test x$LIB_MAN_DIR = x    ; then
5140    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5141fi
5142
5143if test x$FILE_MAN_SUFFIX = x    ; then
5144    case $host_os in
5145	solaris*)	FILE_MAN_SUFFIX=4  ;;
5146	*)		FILE_MAN_SUFFIX=5  ;;
5147    esac
5148fi
5149if test x$FILE_MAN_DIR = x    ; then
5150    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5151fi
5152
5153if test x$MISC_MAN_SUFFIX = x    ; then
5154    case $host_os in
5155	solaris*)	MISC_MAN_SUFFIX=5  ;;
5156	*)		MISC_MAN_SUFFIX=7  ;;
5157    esac
5158fi
5159if test x$MISC_MAN_DIR = x    ; then
5160    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5161fi
5162
5163if test x$DRIVER_MAN_SUFFIX = x    ; then
5164    case $host_os in
5165	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
5166	*)		DRIVER_MAN_SUFFIX=4  ;;
5167    esac
5168fi
5169if test x$DRIVER_MAN_DIR = x    ; then
5170    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5171fi
5172
5173if test x$ADMIN_MAN_SUFFIX = x    ; then
5174    case $host_os in
5175	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
5176	*)		ADMIN_MAN_SUFFIX=8  ;;
5177    esac
5178fi
5179if test x$ADMIN_MAN_DIR = x    ; then
5180    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5181fi
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197XORG_MAN_PAGE="X Version 11"
5198
5199MAN_SUBSTS="\
5200	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5201	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5202	-e 's|__xservername__|Xorg|g' \
5203	-e 's|__xconfigfile__|xorg.conf|g' \
5204	-e 's|__projectroot__|\$(prefix)|g' \
5205	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5206	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5207	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5208	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5209	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5210	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5211
5212
5213
5214# Check whether --enable-silent-rules was given.
5215if test "${enable_silent_rules+set}" = set; then :
5216  enableval=$enable_silent_rules;
5217fi
5218
5219case $enable_silent_rules in
5220yes) AM_DEFAULT_VERBOSITY=0;;
5221no)  AM_DEFAULT_VERBOSITY=1;;
5222*)   AM_DEFAULT_VERBOSITY=0;;
5223esac
5224AM_BACKSLASH='\'
5225
5226
5227
5228spec_default=
5229if test "x$spec_default" = x ; then
5230  spec_default="yes"
5231fi
5232# Check whether --enable-specs was given.
5233if test "${enable_specs+set}" = set; then :
5234  enableval=$enable_specs; build_specs=$enableval
5235else
5236  build_specs=$spec_default
5237fi
5238
5239 if test x$build_specs = xyes; then
5240  ENABLE_SPECS_TRUE=
5241  ENABLE_SPECS_FALSE='#'
5242else
5243  ENABLE_SPECS_TRUE='#'
5244  ENABLE_SPECS_FALSE=
5245fi
5246
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
5248$as_echo_n "checking whether to build functional specifications... " >&6; }
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
5250$as_echo "$build_specs" >&6; }
5251
5252
5253
5254
5255# Check whether --with-groff was given.
5256if test "${with_groff+set}" = set; then :
5257  withval=$with_groff; use_groff=$withval
5258else
5259  use_groff=auto
5260fi
5261
5262
5263if test "x$use_groff" = x"auto"; then
5264   # Extract the first word of "groff", so it can be a program name with args.
5265set dummy groff; ac_word=$2
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267$as_echo_n "checking for $ac_word... " >&6; }
5268if test "${ac_cv_path_GROFF+set}" = set; then :
5269  $as_echo_n "(cached) " >&6
5270else
5271  case $GROFF in
5272  [\\/]* | ?:[\\/]*)
5273  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5274  ;;
5275  *)
5276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279  IFS=$as_save_IFS
5280  test -z "$as_dir" && as_dir=.
5281    for ac_exec_ext in '' $ac_executable_extensions; do
5282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285    break 2
5286  fi
5287done
5288  done
5289IFS=$as_save_IFS
5290
5291  ;;
5292esac
5293fi
5294GROFF=$ac_cv_path_GROFF
5295if test -n "$GROFF"; then
5296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
5297$as_echo "$GROFF" >&6; }
5298else
5299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300$as_echo "no" >&6; }
5301fi
5302
5303
5304   if test "x$GROFF" = "x"; then
5305        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: groff not found - documentation targets will be skipped" >&5
5306$as_echo "$as_me: WARNING: groff not found - documentation targets will be skipped" >&2;}
5307	have_groff=no
5308   else
5309        have_groff=yes
5310   fi
5311elif test "x$use_groff" = x"yes" ; then
5312   # Extract the first word of "groff", so it can be a program name with args.
5313set dummy groff; ac_word=$2
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315$as_echo_n "checking for $ac_word... " >&6; }
5316if test "${ac_cv_path_GROFF+set}" = set; then :
5317  $as_echo_n "(cached) " >&6
5318else
5319  case $GROFF in
5320  [\\/]* | ?:[\\/]*)
5321  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5322  ;;
5323  *)
5324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327  IFS=$as_save_IFS
5328  test -z "$as_dir" && as_dir=.
5329    for ac_exec_ext in '' $ac_executable_extensions; do
5330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333    break 2
5334  fi
5335done
5336  done
5337IFS=$as_save_IFS
5338
5339  ;;
5340esac
5341fi
5342GROFF=$ac_cv_path_GROFF
5343if test -n "$GROFF"; then
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
5345$as_echo "$GROFF" >&6; }
5346else
5347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348$as_echo "no" >&6; }
5349fi
5350
5351
5352   if test "x$GROFF" = "x"; then
5353        as_fn_error "--with-groff=yes specified but groff not found in PATH" "$LINENO" 5
5354   fi
5355   have_groff=yes
5356elif test "x$use_groff" = x"no" ; then
5357   if test "x$GROFF" != "x"; then
5358      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring GROFF environment variable since --with-groff=no was specified" >&5
5359$as_echo "$as_me: WARNING: ignoring GROFF environment variable since --with-groff=no was specified" >&2;}
5360   fi
5361   have_groff=no
5362else
5363   as_fn_error "--with-groff expects 'yes' or 'no'" "$LINENO" 5
5364fi
5365# We have groff, test for the presence of the macro packages
5366if test "x$have_groff" = x"yes"; then
5367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GROFF} -ms macros" >&5
5368$as_echo_n "checking for ${GROFF} -ms macros... " >&6; }
5369    if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then
5370        groff_ms_works=yes
5371    else
5372        groff_ms_works=no
5373    fi
5374    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_ms_works" >&5
5375$as_echo "$groff_ms_works" >&6; }
5376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GROFF} -mm macros" >&5
5377$as_echo_n "checking for ${GROFF} -mm macros... " >&6; }
5378    if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then
5379        groff_mm_works=yes
5380    else
5381        groff_mm_works=no
5382    fi
5383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_mm_works" >&5
5384$as_echo "$groff_mm_works" >&6; }
5385fi
5386 if test "$have_groff" = yes; then
5387  HAVE_GROFF_TRUE=
5388  HAVE_GROFF_FALSE='#'
5389else
5390  HAVE_GROFF_TRUE='#'
5391  HAVE_GROFF_FALSE=
5392fi
5393
5394 if test "$groff_ms_works" = yes; then
5395  HAVE_GROFF_MS_TRUE=
5396  HAVE_GROFF_MS_FALSE='#'
5397else
5398  HAVE_GROFF_MS_TRUE='#'
5399  HAVE_GROFF_MS_FALSE=
5400fi
5401
5402 if test "$groff_mm_works" = yes; then
5403  HAVE_GROFF_MM_TRUE=
5404  HAVE_GROFF_MM_FALSE='#'
5405else
5406  HAVE_GROFF_MM_TRUE='#'
5407  HAVE_GROFF_MM_FALSE=
5408fi
5409
5410
5411
5412
5413
5414# Check whether --with-ps2pdf was given.
5415if test "${with_ps2pdf+set}" = set; then :
5416  withval=$with_ps2pdf; use_ps2pdf=$withval
5417else
5418  use_ps2pdf=auto
5419fi
5420
5421
5422if test "x$use_ps2pdf" = x"auto"; then
5423   # Extract the first word of "ps2pdf", so it can be a program name with args.
5424set dummy ps2pdf; ac_word=$2
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426$as_echo_n "checking for $ac_word... " >&6; }
5427if test "${ac_cv_path_PS2PDF+set}" = set; then :
5428  $as_echo_n "(cached) " >&6
5429else
5430  case $PS2PDF in
5431  [\\/]* | ?:[\\/]*)
5432  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
5433  ;;
5434  *)
5435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438  IFS=$as_save_IFS
5439  test -z "$as_dir" && as_dir=.
5440    for ac_exec_ext in '' $ac_executable_extensions; do
5441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
5443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444    break 2
5445  fi
5446done
5447  done
5448IFS=$as_save_IFS
5449
5450  ;;
5451esac
5452fi
5453PS2PDF=$ac_cv_path_PS2PDF
5454if test -n "$PS2PDF"; then
5455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
5456$as_echo "$PS2PDF" >&6; }
5457else
5458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459$as_echo "no" >&6; }
5460fi
5461
5462
5463   if test "x$PS2PDF" = "x"; then
5464        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ps2pdf not found - documentation targets will be skipped" >&5
5465$as_echo "$as_me: WARNING: ps2pdf not found - documentation targets will be skipped" >&2;}
5466	have_ps2pdf=no
5467   else
5468        have_ps2pdf=yes
5469   fi
5470elif test "x$use_ps2pdf" = x"yes" ; then
5471   # Extract the first word of "ps2pdf", so it can be a program name with args.
5472set dummy ps2pdf; ac_word=$2
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474$as_echo_n "checking for $ac_word... " >&6; }
5475if test "${ac_cv_path_PS2PDF+set}" = set; then :
5476  $as_echo_n "(cached) " >&6
5477else
5478  case $PS2PDF in
5479  [\\/]* | ?:[\\/]*)
5480  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
5481  ;;
5482  *)
5483  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486  IFS=$as_save_IFS
5487  test -z "$as_dir" && as_dir=.
5488    for ac_exec_ext in '' $ac_executable_extensions; do
5489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
5491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492    break 2
5493  fi
5494done
5495  done
5496IFS=$as_save_IFS
5497
5498  ;;
5499esac
5500fi
5501PS2PDF=$ac_cv_path_PS2PDF
5502if test -n "$PS2PDF"; then
5503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
5504$as_echo "$PS2PDF" >&6; }
5505else
5506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507$as_echo "no" >&6; }
5508fi
5509
5510
5511   if test "x$PS2PDF" = "x"; then
5512        as_fn_error "--with-ps2pdf=yes specified but ps2pdf not found in PATH" "$LINENO" 5
5513   fi
5514   have_ps2pdf=yes
5515elif test "x$use_ps2pdf" = x"no" ; then
5516   if test "x$PS2PDF" != "x"; then
5517      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PS2PDF environment variable since --with-ps2pdf=no was specified" >&5
5518$as_echo "$as_me: WARNING: ignoring PS2PDF environment variable since --with-ps2pdf=no was specified" >&2;}
5519   fi
5520   have_ps2pdf=no
5521else
5522   as_fn_error "--with-ps2pdf expects 'yes' or 'no'" "$LINENO" 5
5523fi
5524 if test "$have_ps2pdf" = yes; then
5525  HAVE_PS2PDF_TRUE=
5526  HAVE_PS2PDF_FALSE='#'
5527else
5528  HAVE_PS2PDF_TRUE='#'
5529  HAVE_PS2PDF_FALSE=
5530fi
5531
5532
5533
5534# Checks for programs.
5535case `pwd` in
5536  *\ * | *\	*)
5537    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5538$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5539esac
5540
5541
5542
5543macro_version='2.2.6b'
5544macro_revision='1.3017'
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558ltmain="$ac_aux_dir/ltmain.sh"
5559
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5561$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5562if test "${ac_cv_path_SED+set}" = set; then :
5563  $as_echo_n "(cached) " >&6
5564else
5565            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5566     for ac_i in 1 2 3 4 5 6 7; do
5567       ac_script="$ac_script$as_nl$ac_script"
5568     done
5569     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5570     { ac_script=; unset ac_script;}
5571     if test -z "$SED"; then
5572  ac_path_SED_found=false
5573  # Loop through the user's path and test for each of PROGNAME-LIST
5574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577  IFS=$as_save_IFS
5578  test -z "$as_dir" && as_dir=.
5579    for ac_prog in sed gsed; do
5580    for ac_exec_ext in '' $ac_executable_extensions; do
5581      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5582      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5583# Check for GNU ac_path_SED and select it if it is found.
5584  # Check for GNU $ac_path_SED
5585case `"$ac_path_SED" --version 2>&1` in
5586*GNU*)
5587  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5588*)
5589  ac_count=0
5590  $as_echo_n 0123456789 >"conftest.in"
5591  while :
5592  do
5593    cat "conftest.in" "conftest.in" >"conftest.tmp"
5594    mv "conftest.tmp" "conftest.in"
5595    cp "conftest.in" "conftest.nl"
5596    $as_echo '' >> "conftest.nl"
5597    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5598    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5599    as_fn_arith $ac_count + 1 && ac_count=$as_val
5600    if test $ac_count -gt ${ac_path_SED_max-0}; then
5601      # Best one so far, save it but keep looking for a better one
5602      ac_cv_path_SED="$ac_path_SED"
5603      ac_path_SED_max=$ac_count
5604    fi
5605    # 10*(2^10) chars as input seems more than enough
5606    test $ac_count -gt 10 && break
5607  done
5608  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5609esac
5610
5611      $ac_path_SED_found && break 3
5612    done
5613  done
5614  done
5615IFS=$as_save_IFS
5616  if test -z "$ac_cv_path_SED"; then
5617    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5618  fi
5619else
5620  ac_cv_path_SED=$SED
5621fi
5622
5623fi
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5625$as_echo "$ac_cv_path_SED" >&6; }
5626 SED="$ac_cv_path_SED"
5627  rm -f conftest.sed
5628
5629test -z "$SED" && SED=sed
5630Xsed="$SED -e 1s/^X//"
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5643$as_echo_n "checking for fgrep... " >&6; }
5644if test "${ac_cv_path_FGREP+set}" = set; then :
5645  $as_echo_n "(cached) " >&6
5646else
5647  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5648   then ac_cv_path_FGREP="$GREP -F"
5649   else
5650     if test -z "$FGREP"; then
5651  ac_path_FGREP_found=false
5652  # Loop through the user's path and test for each of PROGNAME-LIST
5653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5655do
5656  IFS=$as_save_IFS
5657  test -z "$as_dir" && as_dir=.
5658    for ac_prog in fgrep; do
5659    for ac_exec_ext in '' $ac_executable_extensions; do
5660      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5661      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5662# Check for GNU ac_path_FGREP and select it if it is found.
5663  # Check for GNU $ac_path_FGREP
5664case `"$ac_path_FGREP" --version 2>&1` in
5665*GNU*)
5666  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5667*)
5668  ac_count=0
5669  $as_echo_n 0123456789 >"conftest.in"
5670  while :
5671  do
5672    cat "conftest.in" "conftest.in" >"conftest.tmp"
5673    mv "conftest.tmp" "conftest.in"
5674    cp "conftest.in" "conftest.nl"
5675    $as_echo 'FGREP' >> "conftest.nl"
5676    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5677    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5678    as_fn_arith $ac_count + 1 && ac_count=$as_val
5679    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5680      # Best one so far, save it but keep looking for a better one
5681      ac_cv_path_FGREP="$ac_path_FGREP"
5682      ac_path_FGREP_max=$ac_count
5683    fi
5684    # 10*(2^10) chars as input seems more than enough
5685    test $ac_count -gt 10 && break
5686  done
5687  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5688esac
5689
5690      $ac_path_FGREP_found && break 3
5691    done
5692  done
5693  done
5694IFS=$as_save_IFS
5695  if test -z "$ac_cv_path_FGREP"; then
5696    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5697  fi
5698else
5699  ac_cv_path_FGREP=$FGREP
5700fi
5701
5702   fi
5703fi
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5705$as_echo "$ac_cv_path_FGREP" >&6; }
5706 FGREP="$ac_cv_path_FGREP"
5707
5708
5709test -z "$GREP" && GREP=grep
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729# Check whether --with-gnu-ld was given.
5730if test "${with_gnu_ld+set}" = set; then :
5731  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5732else
5733  with_gnu_ld=no
5734fi
5735
5736ac_prog=ld
5737if test "$GCC" = yes; then
5738  # Check if gcc -print-prog-name=ld gives a path.
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5740$as_echo_n "checking for ld used by $CC... " >&6; }
5741  case $host in
5742  *-*-mingw*)
5743    # gcc leaves a trailing carriage return which upsets mingw
5744    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5745  *)
5746    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5747  esac
5748  case $ac_prog in
5749    # Accept absolute paths.
5750    [\\/]* | ?:[\\/]*)
5751      re_direlt='/[^/][^/]*/\.\./'
5752      # Canonicalize the pathname of ld
5753      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5754      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5755	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5756      done
5757      test -z "$LD" && LD="$ac_prog"
5758      ;;
5759  "")
5760    # If it fails, then pretend we aren't using GCC.
5761    ac_prog=ld
5762    ;;
5763  *)
5764    # If it is relative, then search for the first ld in PATH.
5765    with_gnu_ld=unknown
5766    ;;
5767  esac
5768elif test "$with_gnu_ld" = yes; then
5769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5770$as_echo_n "checking for GNU ld... " >&6; }
5771else
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5773$as_echo_n "checking for non-GNU ld... " >&6; }
5774fi
5775if test "${lt_cv_path_LD+set}" = set; then :
5776  $as_echo_n "(cached) " >&6
5777else
5778  if test -z "$LD"; then
5779  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5780  for ac_dir in $PATH; do
5781    IFS="$lt_save_ifs"
5782    test -z "$ac_dir" && ac_dir=.
5783    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5784      lt_cv_path_LD="$ac_dir/$ac_prog"
5785      # Check to see if the program is GNU ld.  I'd rather use --version,
5786      # but apparently some variants of GNU ld only accept -v.
5787      # Break only if it was the GNU/non-GNU ld that we prefer.
5788      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5789      *GNU* | *'with BFD'*)
5790	test "$with_gnu_ld" != no && break
5791	;;
5792      *)
5793	test "$with_gnu_ld" != yes && break
5794	;;
5795      esac
5796    fi
5797  done
5798  IFS="$lt_save_ifs"
5799else
5800  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5801fi
5802fi
5803
5804LD="$lt_cv_path_LD"
5805if test -n "$LD"; then
5806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5807$as_echo "$LD" >&6; }
5808else
5809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810$as_echo "no" >&6; }
5811fi
5812test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5814$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5815if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5816  $as_echo_n "(cached) " >&6
5817else
5818  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5819case `$LD -v 2>&1 </dev/null` in
5820*GNU* | *'with BFD'*)
5821  lt_cv_prog_gnu_ld=yes
5822  ;;
5823*)
5824  lt_cv_prog_gnu_ld=no
5825  ;;
5826esac
5827fi
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5829$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5830with_gnu_ld=$lt_cv_prog_gnu_ld
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5841$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5842if test "${lt_cv_path_NM+set}" = set; then :
5843  $as_echo_n "(cached) " >&6
5844else
5845  if test -n "$NM"; then
5846  # Let the user override the test.
5847  lt_cv_path_NM="$NM"
5848else
5849  lt_nm_to_check="${ac_tool_prefix}nm"
5850  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5851    lt_nm_to_check="$lt_nm_to_check nm"
5852  fi
5853  for lt_tmp_nm in $lt_nm_to_check; do
5854    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5855    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5856      IFS="$lt_save_ifs"
5857      test -z "$ac_dir" && ac_dir=.
5858      tmp_nm="$ac_dir/$lt_tmp_nm"
5859      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5860	# Check to see if the nm accepts a BSD-compat flag.
5861	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5862	#   nm: unknown option "B" ignored
5863	# Tru64's nm complains that /dev/null is an invalid object file
5864	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5865	*/dev/null* | *'Invalid file or object type'*)
5866	  lt_cv_path_NM="$tmp_nm -B"
5867	  break
5868	  ;;
5869	*)
5870	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5871	  */dev/null*)
5872	    lt_cv_path_NM="$tmp_nm -p"
5873	    break
5874	    ;;
5875	  *)
5876	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5877	    continue # so that we can try to find one that supports BSD flags
5878	    ;;
5879	  esac
5880	  ;;
5881	esac
5882      fi
5883    done
5884    IFS="$lt_save_ifs"
5885  done
5886  : ${lt_cv_path_NM=no}
5887fi
5888fi
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5890$as_echo "$lt_cv_path_NM" >&6; }
5891if test "$lt_cv_path_NM" != "no"; then
5892  NM="$lt_cv_path_NM"
5893else
5894  # Didn't find any BSD compatible name lister, look for dumpbin.
5895  if test -n "$ac_tool_prefix"; then
5896  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5897  do
5898    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901$as_echo_n "checking for $ac_word... " >&6; }
5902if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5903  $as_echo_n "(cached) " >&6
5904else
5905  if test -n "$DUMPBIN"; then
5906  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5907else
5908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909for as_dir in $PATH
5910do
5911  IFS=$as_save_IFS
5912  test -z "$as_dir" && as_dir=.
5913    for ac_exec_ext in '' $ac_executable_extensions; do
5914  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917    break 2
5918  fi
5919done
5920  done
5921IFS=$as_save_IFS
5922
5923fi
5924fi
5925DUMPBIN=$ac_cv_prog_DUMPBIN
5926if test -n "$DUMPBIN"; then
5927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5928$as_echo "$DUMPBIN" >&6; }
5929else
5930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931$as_echo "no" >&6; }
5932fi
5933
5934
5935    test -n "$DUMPBIN" && break
5936  done
5937fi
5938if test -z "$DUMPBIN"; then
5939  ac_ct_DUMPBIN=$DUMPBIN
5940  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5941do
5942  # Extract the first word of "$ac_prog", so it can be a program name with args.
5943set dummy $ac_prog; ac_word=$2
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945$as_echo_n "checking for $ac_word... " >&6; }
5946if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5947  $as_echo_n "(cached) " >&6
5948else
5949  if test -n "$ac_ct_DUMPBIN"; then
5950  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5951else
5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH
5954do
5955  IFS=$as_save_IFS
5956  test -z "$as_dir" && as_dir=.
5957    for ac_exec_ext in '' $ac_executable_extensions; do
5958  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961    break 2
5962  fi
5963done
5964  done
5965IFS=$as_save_IFS
5966
5967fi
5968fi
5969ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5970if test -n "$ac_ct_DUMPBIN"; then
5971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5972$as_echo "$ac_ct_DUMPBIN" >&6; }
5973else
5974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975$as_echo "no" >&6; }
5976fi
5977
5978
5979  test -n "$ac_ct_DUMPBIN" && break
5980done
5981
5982  if test "x$ac_ct_DUMPBIN" = x; then
5983    DUMPBIN=":"
5984  else
5985    case $cross_compiling:$ac_tool_warned in
5986yes:)
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989ac_tool_warned=yes ;;
5990esac
5991    DUMPBIN=$ac_ct_DUMPBIN
5992  fi
5993fi
5994
5995
5996  if test "$DUMPBIN" != ":"; then
5997    NM="$DUMPBIN"
5998  fi
5999fi
6000test -z "$NM" && NM=nm
6001
6002
6003
6004
6005
6006
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6008$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6009if test "${lt_cv_nm_interface+set}" = set; then :
6010  $as_echo_n "(cached) " >&6
6011else
6012  lt_cv_nm_interface="BSD nm"
6013  echo "int some_variable = 0;" > conftest.$ac_ext
6014  (eval echo "\"\$as_me:6014: $ac_compile\"" >&5)
6015  (eval "$ac_compile" 2>conftest.err)
6016  cat conftest.err >&5
6017  (eval echo "\"\$as_me:6017: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6018  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6019  cat conftest.err >&5
6020  (eval echo "\"\$as_me:6020: output\"" >&5)
6021  cat conftest.out >&5
6022  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6023    lt_cv_nm_interface="MS dumpbin"
6024  fi
6025  rm -f conftest*
6026fi
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6028$as_echo "$lt_cv_nm_interface" >&6; }
6029
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6031$as_echo_n "checking whether ln -s works... " >&6; }
6032LN_S=$as_ln_s
6033if test "$LN_S" = "ln -s"; then
6034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6035$as_echo "yes" >&6; }
6036else
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6038$as_echo "no, using $LN_S" >&6; }
6039fi
6040
6041# find the maximum length of command line arguments
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6043$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6044if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6045  $as_echo_n "(cached) " >&6
6046else
6047    i=0
6048  teststring="ABCD"
6049
6050  case $build_os in
6051  msdosdjgpp*)
6052    # On DJGPP, this test can blow up pretty badly due to problems in libc
6053    # (any single argument exceeding 2000 bytes causes a buffer overrun
6054    # during glob expansion).  Even if it were fixed, the result of this
6055    # check would be larger than it should be.
6056    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6057    ;;
6058
6059  gnu*)
6060    # Under GNU Hurd, this test is not required because there is
6061    # no limit to the length of command line arguments.
6062    # Libtool will interpret -1 as no limit whatsoever
6063    lt_cv_sys_max_cmd_len=-1;
6064    ;;
6065
6066  cygwin* | mingw* | cegcc*)
6067    # On Win9x/ME, this test blows up -- it succeeds, but takes
6068    # about 5 minutes as the teststring grows exponentially.
6069    # Worse, since 9x/ME are not pre-emptively multitasking,
6070    # you end up with a "frozen" computer, even though with patience
6071    # the test eventually succeeds (with a max line length of 256k).
6072    # Instead, let's just punt: use the minimum linelength reported by
6073    # all of the supported platforms: 8192 (on NT/2K/XP).
6074    lt_cv_sys_max_cmd_len=8192;
6075    ;;
6076
6077  amigaos*)
6078    # On AmigaOS with pdksh, this test takes hours, literally.
6079    # So we just punt and use a minimum line length of 8192.
6080    lt_cv_sys_max_cmd_len=8192;
6081    ;;
6082
6083  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6084    # This has been around since 386BSD, at least.  Likely further.
6085    if test -x /sbin/sysctl; then
6086      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6087    elif test -x /usr/sbin/sysctl; then
6088      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6089    else
6090      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6091    fi
6092    # And add a safety zone
6093    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6094    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6095    ;;
6096
6097  interix*)
6098    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6099    lt_cv_sys_max_cmd_len=196608
6100    ;;
6101
6102  osf*)
6103    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6104    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6105    # nice to cause kernel panics so lets avoid the loop below.
6106    # First set a reasonable default.
6107    lt_cv_sys_max_cmd_len=16384
6108    #
6109    if test -x /sbin/sysconfig; then
6110      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6111        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6112      esac
6113    fi
6114    ;;
6115  sco3.2v5*)
6116    lt_cv_sys_max_cmd_len=102400
6117    ;;
6118  sysv5* | sco5v6* | sysv4.2uw2*)
6119    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6120    if test -n "$kargmax"; then
6121      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6122    else
6123      lt_cv_sys_max_cmd_len=32768
6124    fi
6125    ;;
6126  *)
6127    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6128    if test -n "$lt_cv_sys_max_cmd_len"; then
6129      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6130      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6131    else
6132      # Make teststring a little bigger before we do anything with it.
6133      # a 1K string should be a reasonable start.
6134      for i in 1 2 3 4 5 6 7 8 ; do
6135        teststring=$teststring$teststring
6136      done
6137      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6138      # If test is not a shell built-in, we'll probably end up computing a
6139      # maximum length that is only half of the actual maximum length, but
6140      # we can't tell.
6141      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6142	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6143	      test $i != 17 # 1/2 MB should be enough
6144      do
6145        i=`expr $i + 1`
6146        teststring=$teststring$teststring
6147      done
6148      # Only check the string length outside the loop.
6149      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6150      teststring=
6151      # Add a significant safety factor because C++ compilers can tack on
6152      # massive amounts of additional arguments before passing them to the
6153      # linker.  It appears as though 1/2 is a usable value.
6154      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6155    fi
6156    ;;
6157  esac
6158
6159fi
6160
6161if test -n $lt_cv_sys_max_cmd_len ; then
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6163$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6164else
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6166$as_echo "none" >&6; }
6167fi
6168max_cmd_len=$lt_cv_sys_max_cmd_len
6169
6170
6171
6172
6173
6174
6175: ${CP="cp -f"}
6176: ${MV="mv -f"}
6177: ${RM="rm -f"}
6178
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6180$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6181# Try some XSI features
6182xsi_shell=no
6183( _lt_dummy="a/b/c"
6184  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6185      = c,a/b,, \
6186    && eval 'test $(( 1 + 1 )) -eq 2 \
6187    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6188  && xsi_shell=yes
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6190$as_echo "$xsi_shell" >&6; }
6191
6192
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6194$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6195lt_shell_append=no
6196( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6197    >/dev/null 2>&1 \
6198  && lt_shell_append=yes
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6200$as_echo "$lt_shell_append" >&6; }
6201
6202
6203if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6204  lt_unset=unset
6205else
6206  lt_unset=false
6207fi
6208
6209
6210
6211
6212
6213# test EBCDIC or ASCII
6214case `echo X|tr X '\101'` in
6215 A) # ASCII based system
6216    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6217  lt_SP2NL='tr \040 \012'
6218  lt_NL2SP='tr \015\012 \040\040'
6219  ;;
6220 *) # EBCDIC based system
6221  lt_SP2NL='tr \100 \n'
6222  lt_NL2SP='tr \r\n \100\100'
6223  ;;
6224esac
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6235$as_echo_n "checking for $LD option to reload object files... " >&6; }
6236if test "${lt_cv_ld_reload_flag+set}" = set; then :
6237  $as_echo_n "(cached) " >&6
6238else
6239  lt_cv_ld_reload_flag='-r'
6240fi
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6242$as_echo "$lt_cv_ld_reload_flag" >&6; }
6243reload_flag=$lt_cv_ld_reload_flag
6244case $reload_flag in
6245"" | " "*) ;;
6246*) reload_flag=" $reload_flag" ;;
6247esac
6248reload_cmds='$LD$reload_flag -o $output$reload_objs'
6249case $host_os in
6250  darwin*)
6251    if test "$GCC" = yes; then
6252      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6253    else
6254      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6255    fi
6256    ;;
6257esac
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267if test -n "$ac_tool_prefix"; then
6268  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6269set dummy ${ac_tool_prefix}objdump; ac_word=$2
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271$as_echo_n "checking for $ac_word... " >&6; }
6272if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  if test -n "$OBJDUMP"; then
6276  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6277else
6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281  IFS=$as_save_IFS
6282  test -z "$as_dir" && as_dir=.
6283    for ac_exec_ext in '' $ac_executable_extensions; do
6284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287    break 2
6288  fi
6289done
6290  done
6291IFS=$as_save_IFS
6292
6293fi
6294fi
6295OBJDUMP=$ac_cv_prog_OBJDUMP
6296if test -n "$OBJDUMP"; then
6297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6298$as_echo "$OBJDUMP" >&6; }
6299else
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301$as_echo "no" >&6; }
6302fi
6303
6304
6305fi
6306if test -z "$ac_cv_prog_OBJDUMP"; then
6307  ac_ct_OBJDUMP=$OBJDUMP
6308  # Extract the first word of "objdump", so it can be a program name with args.
6309set dummy objdump; ac_word=$2
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311$as_echo_n "checking for $ac_word... " >&6; }
6312if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6313  $as_echo_n "(cached) " >&6
6314else
6315  if test -n "$ac_ct_OBJDUMP"; then
6316  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6317else
6318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319for as_dir in $PATH
6320do
6321  IFS=$as_save_IFS
6322  test -z "$as_dir" && as_dir=.
6323    for ac_exec_ext in '' $ac_executable_extensions; do
6324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327    break 2
6328  fi
6329done
6330  done
6331IFS=$as_save_IFS
6332
6333fi
6334fi
6335ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6336if test -n "$ac_ct_OBJDUMP"; then
6337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6338$as_echo "$ac_ct_OBJDUMP" >&6; }
6339else
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341$as_echo "no" >&6; }
6342fi
6343
6344  if test "x$ac_ct_OBJDUMP" = x; then
6345    OBJDUMP="false"
6346  else
6347    case $cross_compiling:$ac_tool_warned in
6348yes:)
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351ac_tool_warned=yes ;;
6352esac
6353    OBJDUMP=$ac_ct_OBJDUMP
6354  fi
6355else
6356  OBJDUMP="$ac_cv_prog_OBJDUMP"
6357fi
6358
6359test -z "$OBJDUMP" && OBJDUMP=objdump
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6370$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6371if test "${lt_cv_deplibs_check_method+set}" = set; then :
6372  $as_echo_n "(cached) " >&6
6373else
6374  lt_cv_file_magic_cmd='$MAGIC_CMD'
6375lt_cv_file_magic_test_file=
6376lt_cv_deplibs_check_method='unknown'
6377# Need to set the preceding variable on all platforms that support
6378# interlibrary dependencies.
6379# 'none' -- dependencies not supported.
6380# `unknown' -- same as none, but documents that we really don't know.
6381# 'pass_all' -- all dependencies passed with no checks.
6382# 'test_compile' -- check by making test program.
6383# 'file_magic [[regex]]' -- check by looking for files in library path
6384# which responds to the $file_magic_cmd with a given extended regex.
6385# If you have `file' or equivalent on your system and you're not sure
6386# whether `pass_all' will *always* work, you probably want this one.
6387
6388case $host_os in
6389aix[4-9]*)
6390  lt_cv_deplibs_check_method=pass_all
6391  ;;
6392
6393beos*)
6394  lt_cv_deplibs_check_method=pass_all
6395  ;;
6396
6397bsdi[45]*)
6398  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6399  lt_cv_file_magic_cmd='/usr/bin/file -L'
6400  lt_cv_file_magic_test_file=/shlib/libc.so
6401  ;;
6402
6403cygwin*)
6404  # func_win32_libid is a shell function defined in ltmain.sh
6405  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6406  lt_cv_file_magic_cmd='func_win32_libid'
6407  ;;
6408
6409mingw* | pw32*)
6410  # Base MSYS/MinGW do not provide the 'file' command needed by
6411  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6412  # unless we find 'file', for example because we are cross-compiling.
6413  if ( file / ) >/dev/null 2>&1; then
6414    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6415    lt_cv_file_magic_cmd='func_win32_libid'
6416  else
6417    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6418    lt_cv_file_magic_cmd='$OBJDUMP -f'
6419  fi
6420  ;;
6421
6422cegcc)
6423  # use the weaker test based on 'objdump'. See mingw*.
6424  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6425  lt_cv_file_magic_cmd='$OBJDUMP -f'
6426  ;;
6427
6428darwin* | rhapsody*)
6429  lt_cv_deplibs_check_method=pass_all
6430  ;;
6431
6432freebsd* | dragonfly*)
6433  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6434    case $host_cpu in
6435    i*86 )
6436      # Not sure whether the presence of OpenBSD here was a mistake.
6437      # Let's accept both of them until this is cleared up.
6438      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6439      lt_cv_file_magic_cmd=/usr/bin/file
6440      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6441      ;;
6442    esac
6443  else
6444    lt_cv_deplibs_check_method=pass_all
6445  fi
6446  ;;
6447
6448gnu*)
6449  lt_cv_deplibs_check_method=pass_all
6450  ;;
6451
6452hpux10.20* | hpux11*)
6453  lt_cv_file_magic_cmd=/usr/bin/file
6454  case $host_cpu in
6455  ia64*)
6456    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6457    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6458    ;;
6459  hppa*64*)
6460    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6461    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6462    ;;
6463  *)
6464    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6465    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6466    ;;
6467  esac
6468  ;;
6469
6470interix[3-9]*)
6471  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6472  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6473  ;;
6474
6475irix5* | irix6* | nonstopux*)
6476  case $LD in
6477  *-32|*"-32 ") libmagic=32-bit;;
6478  *-n32|*"-n32 ") libmagic=N32;;
6479  *-64|*"-64 ") libmagic=64-bit;;
6480  *) libmagic=never-match;;
6481  esac
6482  lt_cv_deplibs_check_method=pass_all
6483  ;;
6484
6485# This must be Linux ELF.
6486linux* | k*bsd*-gnu)
6487  lt_cv_deplibs_check_method=pass_all
6488  ;;
6489
6490netbsd*)
6491  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6492    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6493  else
6494    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6495  fi
6496  ;;
6497
6498newos6*)
6499  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6500  lt_cv_file_magic_cmd=/usr/bin/file
6501  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6502  ;;
6503
6504*nto* | *qnx*)
6505  lt_cv_deplibs_check_method=pass_all
6506  ;;
6507
6508openbsd*)
6509  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6510    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6511  else
6512    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6513  fi
6514  ;;
6515
6516osf3* | osf4* | osf5*)
6517  lt_cv_deplibs_check_method=pass_all
6518  ;;
6519
6520rdos*)
6521  lt_cv_deplibs_check_method=pass_all
6522  ;;
6523
6524solaris*)
6525  lt_cv_deplibs_check_method=pass_all
6526  ;;
6527
6528sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6529  lt_cv_deplibs_check_method=pass_all
6530  ;;
6531
6532sysv4 | sysv4.3*)
6533  case $host_vendor in
6534  motorola)
6535    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]'
6536    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6537    ;;
6538  ncr)
6539    lt_cv_deplibs_check_method=pass_all
6540    ;;
6541  sequent)
6542    lt_cv_file_magic_cmd='/bin/file'
6543    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6544    ;;
6545  sni)
6546    lt_cv_file_magic_cmd='/bin/file'
6547    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6548    lt_cv_file_magic_test_file=/lib/libc.so
6549    ;;
6550  siemens)
6551    lt_cv_deplibs_check_method=pass_all
6552    ;;
6553  pc)
6554    lt_cv_deplibs_check_method=pass_all
6555    ;;
6556  esac
6557  ;;
6558
6559tpf*)
6560  lt_cv_deplibs_check_method=pass_all
6561  ;;
6562esac
6563
6564fi
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6566$as_echo "$lt_cv_deplibs_check_method" >&6; }
6567file_magic_cmd=$lt_cv_file_magic_cmd
6568deplibs_check_method=$lt_cv_deplibs_check_method
6569test -z "$deplibs_check_method" && deplibs_check_method=unknown
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582if test -n "$ac_tool_prefix"; then
6583  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6584set dummy ${ac_tool_prefix}ar; ac_word=$2
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586$as_echo_n "checking for $ac_word... " >&6; }
6587if test "${ac_cv_prog_AR+set}" = set; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  if test -n "$AR"; then
6591  ac_cv_prog_AR="$AR" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596  IFS=$as_save_IFS
6597  test -z "$as_dir" && as_dir=.
6598    for ac_exec_ext in '' $ac_executable_extensions; do
6599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600    ac_cv_prog_AR="${ac_tool_prefix}ar"
6601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602    break 2
6603  fi
6604done
6605  done
6606IFS=$as_save_IFS
6607
6608fi
6609fi
6610AR=$ac_cv_prog_AR
6611if test -n "$AR"; then
6612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6613$as_echo "$AR" >&6; }
6614else
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616$as_echo "no" >&6; }
6617fi
6618
6619
6620fi
6621if test -z "$ac_cv_prog_AR"; then
6622  ac_ct_AR=$AR
6623  # Extract the first word of "ar", so it can be a program name with args.
6624set dummy ar; ac_word=$2
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626$as_echo_n "checking for $ac_word... " >&6; }
6627if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6628  $as_echo_n "(cached) " >&6
6629else
6630  if test -n "$ac_ct_AR"; then
6631  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6632else
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636  IFS=$as_save_IFS
6637  test -z "$as_dir" && as_dir=.
6638    for ac_exec_ext in '' $ac_executable_extensions; do
6639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640    ac_cv_prog_ac_ct_AR="ar"
6641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642    break 2
6643  fi
6644done
6645  done
6646IFS=$as_save_IFS
6647
6648fi
6649fi
6650ac_ct_AR=$ac_cv_prog_ac_ct_AR
6651if test -n "$ac_ct_AR"; then
6652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6653$as_echo "$ac_ct_AR" >&6; }
6654else
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656$as_echo "no" >&6; }
6657fi
6658
6659  if test "x$ac_ct_AR" = x; then
6660    AR="false"
6661  else
6662    case $cross_compiling:$ac_tool_warned in
6663yes:)
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6666ac_tool_warned=yes ;;
6667esac
6668    AR=$ac_ct_AR
6669  fi
6670else
6671  AR="$ac_cv_prog_AR"
6672fi
6673
6674test -z "$AR" && AR=ar
6675test -z "$AR_FLAGS" && AR_FLAGS=cru
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687if test -n "$ac_tool_prefix"; then
6688  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}strip; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if test "${ac_cv_prog_STRIP+set}" = set; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  if test -n "$STRIP"; then
6696  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703    for ac_exec_ext in '' $ac_executable_extensions; do
6704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710  done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715STRIP=$ac_cv_prog_STRIP
6716if test -n "$STRIP"; then
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6718$as_echo "$STRIP" >&6; }
6719else
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724
6725fi
6726if test -z "$ac_cv_prog_STRIP"; then
6727  ac_ct_STRIP=$STRIP
6728  # Extract the first word of "strip", so it can be a program name with args.
6729set dummy strip; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  if test -n "$ac_ct_STRIP"; then
6736  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741  IFS=$as_save_IFS
6742  test -z "$as_dir" && as_dir=.
6743    for ac_exec_ext in '' $ac_executable_extensions; do
6744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745    ac_cv_prog_ac_ct_STRIP="strip"
6746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750  done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6756if test -n "$ac_ct_STRIP"; then
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6758$as_echo "$ac_ct_STRIP" >&6; }
6759else
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764  if test "x$ac_ct_STRIP" = x; then
6765    STRIP=":"
6766  else
6767    case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773    STRIP=$ac_ct_STRIP
6774  fi
6775else
6776  STRIP="$ac_cv_prog_STRIP"
6777fi
6778
6779test -z "$STRIP" && STRIP=:
6780
6781
6782
6783
6784
6785
6786if test -n "$ac_tool_prefix"; then
6787  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6788set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790$as_echo_n "checking for $ac_word... " >&6; }
6791if test "${ac_cv_prog_RANLIB+set}" = set; then :
6792  $as_echo_n "(cached) " >&6
6793else
6794  if test -n "$RANLIB"; then
6795  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800  IFS=$as_save_IFS
6801  test -z "$as_dir" && as_dir=.
6802    for ac_exec_ext in '' $ac_executable_extensions; do
6803  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806    break 2
6807  fi
6808done
6809  done
6810IFS=$as_save_IFS
6811
6812fi
6813fi
6814RANLIB=$ac_cv_prog_RANLIB
6815if test -n "$RANLIB"; then
6816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6817$as_echo "$RANLIB" >&6; }
6818else
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
6821fi
6822
6823
6824fi
6825if test -z "$ac_cv_prog_RANLIB"; then
6826  ac_ct_RANLIB=$RANLIB
6827  # Extract the first word of "ranlib", so it can be a program name with args.
6828set dummy ranlib; ac_word=$2
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830$as_echo_n "checking for $ac_word... " >&6; }
6831if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6832  $as_echo_n "(cached) " >&6
6833else
6834  if test -n "$ac_ct_RANLIB"; then
6835  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840  IFS=$as_save_IFS
6841  test -z "$as_dir" && as_dir=.
6842    for ac_exec_ext in '' $ac_executable_extensions; do
6843  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844    ac_cv_prog_ac_ct_RANLIB="ranlib"
6845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846    break 2
6847  fi
6848done
6849  done
6850IFS=$as_save_IFS
6851
6852fi
6853fi
6854ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6855if test -n "$ac_ct_RANLIB"; then
6856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6857$as_echo "$ac_ct_RANLIB" >&6; }
6858else
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860$as_echo "no" >&6; }
6861fi
6862
6863  if test "x$ac_ct_RANLIB" = x; then
6864    RANLIB=":"
6865  else
6866    case $cross_compiling:$ac_tool_warned in
6867yes:)
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870ac_tool_warned=yes ;;
6871esac
6872    RANLIB=$ac_ct_RANLIB
6873  fi
6874else
6875  RANLIB="$ac_cv_prog_RANLIB"
6876fi
6877
6878test -z "$RANLIB" && RANLIB=:
6879
6880
6881
6882
6883
6884
6885# Determine commands to create old-style static archives.
6886old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6887old_postinstall_cmds='chmod 644 $oldlib'
6888old_postuninstall_cmds=
6889
6890if test -n "$RANLIB"; then
6891  case $host_os in
6892  openbsd*)
6893    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6894    ;;
6895  *)
6896    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6897    ;;
6898  esac
6899  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6900fi
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935# If no C compiler was specified, use CC.
6936LTCC=${LTCC-"$CC"}
6937
6938# If no C compiler flags were specified, use CFLAGS.
6939LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6940
6941# Allow CC to be a program name with arguments.
6942compiler=$CC
6943
6944
6945# Check for command to grab the raw symbol name followed by C symbol from nm.
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6947$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6948if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6949  $as_echo_n "(cached) " >&6
6950else
6951
6952# These are sane defaults that work on at least a few old systems.
6953# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6954
6955# Character class describing NM global symbol codes.
6956symcode='[BCDEGRST]'
6957
6958# Regexp to match symbols that can be accessed directly from C.
6959sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6960
6961# Define system-specific variables.
6962case $host_os in
6963aix*)
6964  symcode='[BCDT]'
6965  ;;
6966cygwin* | mingw* | pw32* | cegcc*)
6967  symcode='[ABCDGISTW]'
6968  ;;
6969hpux*)
6970  if test "$host_cpu" = ia64; then
6971    symcode='[ABCDEGRST]'
6972  fi
6973  ;;
6974irix* | nonstopux*)
6975  symcode='[BCDEGRST]'
6976  ;;
6977osf*)
6978  symcode='[BCDEGQRST]'
6979  ;;
6980solaris*)
6981  symcode='[BDRT]'
6982  ;;
6983sco3.2v5*)
6984  symcode='[DT]'
6985  ;;
6986sysv4.2uw2*)
6987  symcode='[DT]'
6988  ;;
6989sysv5* | sco5v6* | unixware* | OpenUNIX*)
6990  symcode='[ABDT]'
6991  ;;
6992sysv4)
6993  symcode='[DFNSTU]'
6994  ;;
6995esac
6996
6997# If we're using GNU nm, then use its standard symbol codes.
6998case `$NM -V 2>&1` in
6999*GNU* | *'with BFD'*)
7000  symcode='[ABCDGIRSTW]' ;;
7001esac
7002
7003# Transform an extracted symbol line into a proper C declaration.
7004# Some systems (esp. on ia64) link data and code symbols differently,
7005# so use this general approach.
7006lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7007
7008# Transform an extracted symbol line into symbol name and symbol address
7009lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7010lt_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'"
7011
7012# Handle CRLF in mingw tool chain
7013opt_cr=
7014case $build_os in
7015mingw*)
7016  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7017  ;;
7018esac
7019
7020# Try without a prefix underscore, then with it.
7021for ac_symprfx in "" "_"; do
7022
7023  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7024  symxfrm="\\1 $ac_symprfx\\2 \\2"
7025
7026  # Write the raw and C identifiers.
7027  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7028    # Fake it for dumpbin and say T for any non-static function
7029    # and D for any global variable.
7030    # Also find C++ and __fastcall symbols from MSVC++,
7031    # which start with @ or ?.
7032    lt_cv_sys_global_symbol_pipe="$AWK '"\
7033"     {last_section=section; section=\$ 3};"\
7034"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7035"     \$ 0!~/External *\|/{next};"\
7036"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7037"     {if(hide[section]) next};"\
7038"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7039"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7040"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7041"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7042"     ' prfx=^$ac_symprfx"
7043  else
7044    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7045  fi
7046
7047  # Check to see that the pipe works correctly.
7048  pipe_works=no
7049
7050  rm -f conftest*
7051  cat > conftest.$ac_ext <<_LT_EOF
7052#ifdef __cplusplus
7053extern "C" {
7054#endif
7055char nm_test_var;
7056void nm_test_func(void);
7057void nm_test_func(void){}
7058#ifdef __cplusplus
7059}
7060#endif
7061int main(){nm_test_var='a';nm_test_func();return(0);}
7062_LT_EOF
7063
7064  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7065  (eval $ac_compile) 2>&5
7066  ac_status=$?
7067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068  test $ac_status = 0; }; then
7069    # Now try to grab the symbols.
7070    nlist=conftest.nm
7071    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7072  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7073  ac_status=$?
7074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7075  test $ac_status = 0; } && test -s "$nlist"; then
7076      # Try sorting and uniquifying the output.
7077      if sort "$nlist" | uniq > "$nlist"T; then
7078	mv -f "$nlist"T "$nlist"
7079      else
7080	rm -f "$nlist"T
7081      fi
7082
7083      # Make sure that we snagged all the symbols we need.
7084      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7085	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7086	  cat <<_LT_EOF > conftest.$ac_ext
7087#ifdef __cplusplus
7088extern "C" {
7089#endif
7090
7091_LT_EOF
7092	  # Now generate the symbol file.
7093	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7094
7095	  cat <<_LT_EOF >> conftest.$ac_ext
7096
7097/* The mapping between symbol names and symbols.  */
7098const struct {
7099  const char *name;
7100  void       *address;
7101}
7102lt__PROGRAM__LTX_preloaded_symbols[] =
7103{
7104  { "@PROGRAM@", (void *) 0 },
7105_LT_EOF
7106	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7107	  cat <<\_LT_EOF >> conftest.$ac_ext
7108  {0, (void *) 0}
7109};
7110
7111/* This works around a problem in FreeBSD linker */
7112#ifdef FREEBSD_WORKAROUND
7113static const void *lt_preloaded_setup() {
7114  return lt__PROGRAM__LTX_preloaded_symbols;
7115}
7116#endif
7117
7118#ifdef __cplusplus
7119}
7120#endif
7121_LT_EOF
7122	  # Now try linking the two files.
7123	  mv conftest.$ac_objext conftstm.$ac_objext
7124	  lt_save_LIBS="$LIBS"
7125	  lt_save_CFLAGS="$CFLAGS"
7126	  LIBS="conftstm.$ac_objext"
7127	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7128	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7129  (eval $ac_link) 2>&5
7130  ac_status=$?
7131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7132  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7133	    pipe_works=yes
7134	  fi
7135	  LIBS="$lt_save_LIBS"
7136	  CFLAGS="$lt_save_CFLAGS"
7137	else
7138	  echo "cannot find nm_test_func in $nlist" >&5
7139	fi
7140      else
7141	echo "cannot find nm_test_var in $nlist" >&5
7142      fi
7143    else
7144      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7145    fi
7146  else
7147    echo "$progname: failed program was:" >&5
7148    cat conftest.$ac_ext >&5
7149  fi
7150  rm -rf conftest* conftst*
7151
7152  # Do not use the global_symbol_pipe unless it works.
7153  if test "$pipe_works" = yes; then
7154    break
7155  else
7156    lt_cv_sys_global_symbol_pipe=
7157  fi
7158done
7159
7160fi
7161
7162if test -z "$lt_cv_sys_global_symbol_pipe"; then
7163  lt_cv_sys_global_symbol_to_cdecl=
7164fi
7165if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7167$as_echo "failed" >&6; }
7168else
7169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7170$as_echo "ok" >&6; }
7171fi
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194# Check whether --enable-libtool-lock was given.
7195if test "${enable_libtool_lock+set}" = set; then :
7196  enableval=$enable_libtool_lock;
7197fi
7198
7199test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7200
7201# Some flags need to be propagated to the compiler or linker for good
7202# libtool support.
7203case $host in
7204ia64-*-hpux*)
7205  # Find out which ABI we are using.
7206  echo 'int i;' > conftest.$ac_ext
7207  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7208  (eval $ac_compile) 2>&5
7209  ac_status=$?
7210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7211  test $ac_status = 0; }; then
7212    case `/usr/bin/file conftest.$ac_objext` in
7213      *ELF-32*)
7214	HPUX_IA64_MODE="32"
7215	;;
7216      *ELF-64*)
7217	HPUX_IA64_MODE="64"
7218	;;
7219    esac
7220  fi
7221  rm -rf conftest*
7222  ;;
7223*-*-irix6*)
7224  # Find out which ABI we are using.
7225  echo '#line 7225 "configure"' > conftest.$ac_ext
7226  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7227  (eval $ac_compile) 2>&5
7228  ac_status=$?
7229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7230  test $ac_status = 0; }; then
7231    if test "$lt_cv_prog_gnu_ld" = yes; then
7232      case `/usr/bin/file conftest.$ac_objext` in
7233	*32-bit*)
7234	  LD="${LD-ld} -melf32bsmip"
7235	  ;;
7236	*N32*)
7237	  LD="${LD-ld} -melf32bmipn32"
7238	  ;;
7239	*64-bit*)
7240	  LD="${LD-ld} -melf64bmip"
7241	;;
7242      esac
7243    else
7244      case `/usr/bin/file conftest.$ac_objext` in
7245	*32-bit*)
7246	  LD="${LD-ld} -32"
7247	  ;;
7248	*N32*)
7249	  LD="${LD-ld} -n32"
7250	  ;;
7251	*64-bit*)
7252	  LD="${LD-ld} -64"
7253	  ;;
7254      esac
7255    fi
7256  fi
7257  rm -rf conftest*
7258  ;;
7259
7260x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7261s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7262  # Find out which ABI we are using.
7263  echo 'int i;' > conftest.$ac_ext
7264  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7265  (eval $ac_compile) 2>&5
7266  ac_status=$?
7267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7268  test $ac_status = 0; }; then
7269    case `/usr/bin/file conftest.o` in
7270      *32-bit*)
7271	case $host in
7272	  x86_64-*kfreebsd*-gnu)
7273	    LD="${LD-ld} -m elf_i386_fbsd"
7274	    ;;
7275	  x86_64-*linux*)
7276	    LD="${LD-ld} -m elf_i386"
7277	    ;;
7278	  ppc64-*linux*|powerpc64-*linux*)
7279	    LD="${LD-ld} -m elf32ppclinux"
7280	    ;;
7281	  s390x-*linux*)
7282	    LD="${LD-ld} -m elf_s390"
7283	    ;;
7284	  sparc64-*linux*)
7285	    LD="${LD-ld} -m elf32_sparc"
7286	    ;;
7287	esac
7288	;;
7289      *64-bit*)
7290	case $host in
7291	  x86_64-*kfreebsd*-gnu)
7292	    LD="${LD-ld} -m elf_x86_64_fbsd"
7293	    ;;
7294	  x86_64-*linux*)
7295	    LD="${LD-ld} -m elf_x86_64"
7296	    ;;
7297	  ppc*-*linux*|powerpc*-*linux*)
7298	    LD="${LD-ld} -m elf64ppc"
7299	    ;;
7300	  s390*-*linux*|s390*-*tpf*)
7301	    LD="${LD-ld} -m elf64_s390"
7302	    ;;
7303	  sparc*-*linux*)
7304	    LD="${LD-ld} -m elf64_sparc"
7305	    ;;
7306	esac
7307	;;
7308    esac
7309  fi
7310  rm -rf conftest*
7311  ;;
7312
7313*-*-sco3.2v5*)
7314  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7315  SAVE_CFLAGS="$CFLAGS"
7316  CFLAGS="$CFLAGS -belf"
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7318$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7319if test "${lt_cv_cc_needs_belf+set}" = set; then :
7320  $as_echo_n "(cached) " >&6
7321else
7322  ac_ext=c
7323ac_cpp='$CPP $CPPFLAGS'
7324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327
7328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329/* end confdefs.h.  */
7330
7331int
7332main ()
7333{
7334
7335  ;
7336  return 0;
7337}
7338_ACEOF
7339if ac_fn_c_try_link "$LINENO"; then :
7340  lt_cv_cc_needs_belf=yes
7341else
7342  lt_cv_cc_needs_belf=no
7343fi
7344rm -f core conftest.err conftest.$ac_objext \
7345    conftest$ac_exeext conftest.$ac_ext
7346     ac_ext=c
7347ac_cpp='$CPP $CPPFLAGS'
7348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7350ac_compiler_gnu=$ac_cv_c_compiler_gnu
7351
7352fi
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7354$as_echo "$lt_cv_cc_needs_belf" >&6; }
7355  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7356    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7357    CFLAGS="$SAVE_CFLAGS"
7358  fi
7359  ;;
7360sparc*-*solaris*)
7361  # Find out which ABI we are using.
7362  echo 'int i;' > conftest.$ac_ext
7363  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364  (eval $ac_compile) 2>&5
7365  ac_status=$?
7366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367  test $ac_status = 0; }; then
7368    case `/usr/bin/file conftest.o` in
7369    *64-bit*)
7370      case $lt_cv_prog_gnu_ld in
7371      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7372      *)
7373	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7374	  LD="${LD-ld} -64"
7375	fi
7376	;;
7377      esac
7378      ;;
7379    esac
7380  fi
7381  rm -rf conftest*
7382  ;;
7383esac
7384
7385need_locks="$enable_libtool_lock"
7386
7387
7388  case $host_os in
7389    rhapsody* | darwin*)
7390    if test -n "$ac_tool_prefix"; then
7391  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7392set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394$as_echo_n "checking for $ac_word... " >&6; }
7395if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7396  $as_echo_n "(cached) " >&6
7397else
7398  if test -n "$DSYMUTIL"; then
7399  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7400else
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404  IFS=$as_save_IFS
7405  test -z "$as_dir" && as_dir=.
7406    for ac_exec_ext in '' $ac_executable_extensions; do
7407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410    break 2
7411  fi
7412done
7413  done
7414IFS=$as_save_IFS
7415
7416fi
7417fi
7418DSYMUTIL=$ac_cv_prog_DSYMUTIL
7419if test -n "$DSYMUTIL"; then
7420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7421$as_echo "$DSYMUTIL" >&6; }
7422else
7423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424$as_echo "no" >&6; }
7425fi
7426
7427
7428fi
7429if test -z "$ac_cv_prog_DSYMUTIL"; then
7430  ac_ct_DSYMUTIL=$DSYMUTIL
7431  # Extract the first word of "dsymutil", so it can be a program name with args.
7432set dummy dsymutil; ac_word=$2
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434$as_echo_n "checking for $ac_word... " >&6; }
7435if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7436  $as_echo_n "(cached) " >&6
7437else
7438  if test -n "$ac_ct_DSYMUTIL"; then
7439  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444  IFS=$as_save_IFS
7445  test -z "$as_dir" && as_dir=.
7446    for ac_exec_ext in '' $ac_executable_extensions; do
7447  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7448    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450    break 2
7451  fi
7452done
7453  done
7454IFS=$as_save_IFS
7455
7456fi
7457fi
7458ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7459if test -n "$ac_ct_DSYMUTIL"; then
7460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7461$as_echo "$ac_ct_DSYMUTIL" >&6; }
7462else
7463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464$as_echo "no" >&6; }
7465fi
7466
7467  if test "x$ac_ct_DSYMUTIL" = x; then
7468    DSYMUTIL=":"
7469  else
7470    case $cross_compiling:$ac_tool_warned in
7471yes:)
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7474ac_tool_warned=yes ;;
7475esac
7476    DSYMUTIL=$ac_ct_DSYMUTIL
7477  fi
7478else
7479  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7480fi
7481
7482    if test -n "$ac_tool_prefix"; then
7483  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7484set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486$as_echo_n "checking for $ac_word... " >&6; }
7487if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7488  $as_echo_n "(cached) " >&6
7489else
7490  if test -n "$NMEDIT"; then
7491  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7492else
7493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494for as_dir in $PATH
7495do
7496  IFS=$as_save_IFS
7497  test -z "$as_dir" && as_dir=.
7498    for ac_exec_ext in '' $ac_executable_extensions; do
7499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7500    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502    break 2
7503  fi
7504done
7505  done
7506IFS=$as_save_IFS
7507
7508fi
7509fi
7510NMEDIT=$ac_cv_prog_NMEDIT
7511if test -n "$NMEDIT"; then
7512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7513$as_echo "$NMEDIT" >&6; }
7514else
7515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516$as_echo "no" >&6; }
7517fi
7518
7519
7520fi
7521if test -z "$ac_cv_prog_NMEDIT"; then
7522  ac_ct_NMEDIT=$NMEDIT
7523  # Extract the first word of "nmedit", so it can be a program name with args.
7524set dummy nmedit; ac_word=$2
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526$as_echo_n "checking for $ac_word... " >&6; }
7527if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7528  $as_echo_n "(cached) " >&6
7529else
7530  if test -n "$ac_ct_NMEDIT"; then
7531  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7532else
7533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534for as_dir in $PATH
7535do
7536  IFS=$as_save_IFS
7537  test -z "$as_dir" && as_dir=.
7538    for ac_exec_ext in '' $ac_executable_extensions; do
7539  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7540    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542    break 2
7543  fi
7544done
7545  done
7546IFS=$as_save_IFS
7547
7548fi
7549fi
7550ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7551if test -n "$ac_ct_NMEDIT"; then
7552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7553$as_echo "$ac_ct_NMEDIT" >&6; }
7554else
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556$as_echo "no" >&6; }
7557fi
7558
7559  if test "x$ac_ct_NMEDIT" = x; then
7560    NMEDIT=":"
7561  else
7562    case $cross_compiling:$ac_tool_warned in
7563yes:)
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566ac_tool_warned=yes ;;
7567esac
7568    NMEDIT=$ac_ct_NMEDIT
7569  fi
7570else
7571  NMEDIT="$ac_cv_prog_NMEDIT"
7572fi
7573
7574    if test -n "$ac_tool_prefix"; then
7575  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7576set dummy ${ac_tool_prefix}lipo; ac_word=$2
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578$as_echo_n "checking for $ac_word... " >&6; }
7579if test "${ac_cv_prog_LIPO+set}" = set; then :
7580  $as_echo_n "(cached) " >&6
7581else
7582  if test -n "$LIPO"; then
7583  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7584else
7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588  IFS=$as_save_IFS
7589  test -z "$as_dir" && as_dir=.
7590    for ac_exec_ext in '' $ac_executable_extensions; do
7591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594    break 2
7595  fi
7596done
7597  done
7598IFS=$as_save_IFS
7599
7600fi
7601fi
7602LIPO=$ac_cv_prog_LIPO
7603if test -n "$LIPO"; then
7604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7605$as_echo "$LIPO" >&6; }
7606else
7607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608$as_echo "no" >&6; }
7609fi
7610
7611
7612fi
7613if test -z "$ac_cv_prog_LIPO"; then
7614  ac_ct_LIPO=$LIPO
7615  # Extract the first word of "lipo", so it can be a program name with args.
7616set dummy lipo; ac_word=$2
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618$as_echo_n "checking for $ac_word... " >&6; }
7619if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7620  $as_echo_n "(cached) " >&6
7621else
7622  if test -n "$ac_ct_LIPO"; then
7623  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7624else
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628  IFS=$as_save_IFS
7629  test -z "$as_dir" && as_dir=.
7630    for ac_exec_ext in '' $ac_executable_extensions; do
7631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632    ac_cv_prog_ac_ct_LIPO="lipo"
7633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634    break 2
7635  fi
7636done
7637  done
7638IFS=$as_save_IFS
7639
7640fi
7641fi
7642ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7643if test -n "$ac_ct_LIPO"; then
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7645$as_echo "$ac_ct_LIPO" >&6; }
7646else
7647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648$as_echo "no" >&6; }
7649fi
7650
7651  if test "x$ac_ct_LIPO" = x; then
7652    LIPO=":"
7653  else
7654    case $cross_compiling:$ac_tool_warned in
7655yes:)
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658ac_tool_warned=yes ;;
7659esac
7660    LIPO=$ac_ct_LIPO
7661  fi
7662else
7663  LIPO="$ac_cv_prog_LIPO"
7664fi
7665
7666    if test -n "$ac_tool_prefix"; then
7667  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7668set dummy ${ac_tool_prefix}otool; ac_word=$2
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670$as_echo_n "checking for $ac_word... " >&6; }
7671if test "${ac_cv_prog_OTOOL+set}" = set; then :
7672  $as_echo_n "(cached) " >&6
7673else
7674  if test -n "$OTOOL"; then
7675  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7676else
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680  IFS=$as_save_IFS
7681  test -z "$as_dir" && as_dir=.
7682    for ac_exec_ext in '' $ac_executable_extensions; do
7683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686    break 2
7687  fi
7688done
7689  done
7690IFS=$as_save_IFS
7691
7692fi
7693fi
7694OTOOL=$ac_cv_prog_OTOOL
7695if test -n "$OTOOL"; then
7696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7697$as_echo "$OTOOL" >&6; }
7698else
7699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
7701fi
7702
7703
7704fi
7705if test -z "$ac_cv_prog_OTOOL"; then
7706  ac_ct_OTOOL=$OTOOL
7707  # Extract the first word of "otool", so it can be a program name with args.
7708set dummy otool; ac_word=$2
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710$as_echo_n "checking for $ac_word... " >&6; }
7711if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  if test -n "$ac_ct_OTOOL"; then
7715  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7716else
7717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720  IFS=$as_save_IFS
7721  test -z "$as_dir" && as_dir=.
7722    for ac_exec_ext in '' $ac_executable_extensions; do
7723  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724    ac_cv_prog_ac_ct_OTOOL="otool"
7725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726    break 2
7727  fi
7728done
7729  done
7730IFS=$as_save_IFS
7731
7732fi
7733fi
7734ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7735if test -n "$ac_ct_OTOOL"; then
7736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7737$as_echo "$ac_ct_OTOOL" >&6; }
7738else
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
7741fi
7742
7743  if test "x$ac_ct_OTOOL" = x; then
7744    OTOOL=":"
7745  else
7746    case $cross_compiling:$ac_tool_warned in
7747yes:)
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750ac_tool_warned=yes ;;
7751esac
7752    OTOOL=$ac_ct_OTOOL
7753  fi
7754else
7755  OTOOL="$ac_cv_prog_OTOOL"
7756fi
7757
7758    if test -n "$ac_tool_prefix"; then
7759  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7760set dummy ${ac_tool_prefix}otool64; ac_word=$2
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762$as_echo_n "checking for $ac_word... " >&6; }
7763if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7764  $as_echo_n "(cached) " >&6
7765else
7766  if test -n "$OTOOL64"; then
7767  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772  IFS=$as_save_IFS
7773  test -z "$as_dir" && as_dir=.
7774    for ac_exec_ext in '' $ac_executable_extensions; do
7775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778    break 2
7779  fi
7780done
7781  done
7782IFS=$as_save_IFS
7783
7784fi
7785fi
7786OTOOL64=$ac_cv_prog_OTOOL64
7787if test -n "$OTOOL64"; then
7788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7789$as_echo "$OTOOL64" >&6; }
7790else
7791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792$as_echo "no" >&6; }
7793fi
7794
7795
7796fi
7797if test -z "$ac_cv_prog_OTOOL64"; then
7798  ac_ct_OTOOL64=$OTOOL64
7799  # Extract the first word of "otool64", so it can be a program name with args.
7800set dummy otool64; ac_word=$2
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802$as_echo_n "checking for $ac_word... " >&6; }
7803if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7804  $as_echo_n "(cached) " >&6
7805else
7806  if test -n "$ac_ct_OTOOL64"; then
7807  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7808else
7809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812  IFS=$as_save_IFS
7813  test -z "$as_dir" && as_dir=.
7814    for ac_exec_ext in '' $ac_executable_extensions; do
7815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7816    ac_cv_prog_ac_ct_OTOOL64="otool64"
7817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818    break 2
7819  fi
7820done
7821  done
7822IFS=$as_save_IFS
7823
7824fi
7825fi
7826ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7827if test -n "$ac_ct_OTOOL64"; then
7828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7829$as_echo "$ac_ct_OTOOL64" >&6; }
7830else
7831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
7833fi
7834
7835  if test "x$ac_ct_OTOOL64" = x; then
7836    OTOOL64=":"
7837  else
7838    case $cross_compiling:$ac_tool_warned in
7839yes:)
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842ac_tool_warned=yes ;;
7843esac
7844    OTOOL64=$ac_ct_OTOOL64
7845  fi
7846else
7847  OTOOL64="$ac_cv_prog_OTOOL64"
7848fi
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7877$as_echo_n "checking for -single_module linker flag... " >&6; }
7878if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  lt_cv_apple_cc_single_mod=no
7882      if test -z "${LT_MULTI_MODULE}"; then
7883	# By default we will add the -single_module flag. You can override
7884	# by either setting the environment variable LT_MULTI_MODULE
7885	# non-empty at configure time, or by adding -multi_module to the
7886	# link flags.
7887	rm -rf libconftest.dylib*
7888	echo "int foo(void){return 1;}" > conftest.c
7889	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7890-dynamiclib -Wl,-single_module conftest.c" >&5
7891	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7892	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7893        _lt_result=$?
7894	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7895	  lt_cv_apple_cc_single_mod=yes
7896	else
7897	  cat conftest.err >&5
7898	fi
7899	rm -rf libconftest.dylib*
7900	rm -f conftest.*
7901      fi
7902fi
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7904$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7905    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7906$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7907if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7908  $as_echo_n "(cached) " >&6
7909else
7910  lt_cv_ld_exported_symbols_list=no
7911      save_LDFLAGS=$LDFLAGS
7912      echo "_main" > conftest.sym
7913      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7914      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915/* end confdefs.h.  */
7916
7917int
7918main ()
7919{
7920
7921  ;
7922  return 0;
7923}
7924_ACEOF
7925if ac_fn_c_try_link "$LINENO"; then :
7926  lt_cv_ld_exported_symbols_list=yes
7927else
7928  lt_cv_ld_exported_symbols_list=no
7929fi
7930rm -f core conftest.err conftest.$ac_objext \
7931    conftest$ac_exeext conftest.$ac_ext
7932	LDFLAGS="$save_LDFLAGS"
7933
7934fi
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7936$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7937    case $host_os in
7938    rhapsody* | darwin1.[012])
7939      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7940    darwin1.*)
7941      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7942    darwin*) # darwin 5.x on
7943      # if running on 10.5 or later, the deployment target defaults
7944      # to the OS version, if on x86, and 10.4, the deployment
7945      # target defaults to 10.4. Don't you love it?
7946      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7947	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7948	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7949	10.[012]*)
7950	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7951	10.*)
7952	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7953      esac
7954    ;;
7955  esac
7956    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7957      _lt_dar_single_mod='$single_module'
7958    fi
7959    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7960      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7961    else
7962      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7963    fi
7964    if test "$DSYMUTIL" != ":"; then
7965      _lt_dsymutil='~$DSYMUTIL $lib || :'
7966    else
7967      _lt_dsymutil=
7968    fi
7969    ;;
7970  esac
7971
7972for ac_header in dlfcn.h
7973do :
7974  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7975"
7976if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7977  cat >>confdefs.h <<_ACEOF
7978#define HAVE_DLFCN_H 1
7979_ACEOF
7980
7981fi
7982
7983done
7984
7985
7986
7987# Set options
7988
7989
7990
7991        enable_dlopen=no
7992
7993
7994  enable_win32_dll=no
7995
7996
7997            # Check whether --enable-shared was given.
7998if test "${enable_shared+set}" = set; then :
7999  enableval=$enable_shared; p=${PACKAGE-default}
8000    case $enableval in
8001    yes) enable_shared=yes ;;
8002    no) enable_shared=no ;;
8003    *)
8004      enable_shared=no
8005      # Look at the argument we got.  We use all the common list separators.
8006      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8007      for pkg in $enableval; do
8008	IFS="$lt_save_ifs"
8009	if test "X$pkg" = "X$p"; then
8010	  enable_shared=yes
8011	fi
8012      done
8013      IFS="$lt_save_ifs"
8014      ;;
8015    esac
8016else
8017  enable_shared=yes
8018fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028  # Check whether --enable-static was given.
8029if test "${enable_static+set}" = set; then :
8030  enableval=$enable_static; p=${PACKAGE-default}
8031    case $enableval in
8032    yes) enable_static=yes ;;
8033    no) enable_static=no ;;
8034    *)
8035     enable_static=no
8036      # Look at the argument we got.  We use all the common list separators.
8037      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8038      for pkg in $enableval; do
8039	IFS="$lt_save_ifs"
8040	if test "X$pkg" = "X$p"; then
8041	  enable_static=yes
8042	fi
8043      done
8044      IFS="$lt_save_ifs"
8045      ;;
8046    esac
8047else
8048  enable_static=yes
8049fi
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060# Check whether --with-pic was given.
8061if test "${with_pic+set}" = set; then :
8062  withval=$with_pic; pic_mode="$withval"
8063else
8064  pic_mode=default
8065fi
8066
8067
8068test -z "$pic_mode" && pic_mode=default
8069
8070
8071
8072
8073
8074
8075
8076  # Check whether --enable-fast-install was given.
8077if test "${enable_fast_install+set}" = set; then :
8078  enableval=$enable_fast_install; p=${PACKAGE-default}
8079    case $enableval in
8080    yes) enable_fast_install=yes ;;
8081    no) enable_fast_install=no ;;
8082    *)
8083      enable_fast_install=no
8084      # Look at the argument we got.  We use all the common list separators.
8085      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8086      for pkg in $enableval; do
8087	IFS="$lt_save_ifs"
8088	if test "X$pkg" = "X$p"; then
8089	  enable_fast_install=yes
8090	fi
8091      done
8092      IFS="$lt_save_ifs"
8093      ;;
8094    esac
8095else
8096  enable_fast_install=yes
8097fi
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109# This can be used to rebuild libtool when needed
8110LIBTOOL_DEPS="$ltmain"
8111
8112# Always use our own libtool.
8113LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139test -z "$LN_S" && LN_S="ln -s"
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154if test -n "${ZSH_VERSION+set}" ; then
8155   setopt NO_GLOB_SUBST
8156fi
8157
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8159$as_echo_n "checking for objdir... " >&6; }
8160if test "${lt_cv_objdir+set}" = set; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  rm -f .libs 2>/dev/null
8164mkdir .libs 2>/dev/null
8165if test -d .libs; then
8166  lt_cv_objdir=.libs
8167else
8168  # MS-DOS does not allow filenames that begin with a dot.
8169  lt_cv_objdir=_libs
8170fi
8171rmdir .libs 2>/dev/null
8172fi
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8174$as_echo "$lt_cv_objdir" >&6; }
8175objdir=$lt_cv_objdir
8176
8177
8178
8179
8180
8181cat >>confdefs.h <<_ACEOF
8182#define LT_OBJDIR "$lt_cv_objdir/"
8183_ACEOF
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201case $host_os in
8202aix3*)
8203  # AIX sometimes has problems with the GCC collect2 program.  For some
8204  # reason, if we set the COLLECT_NAMES environment variable, the problems
8205  # vanish in a puff of smoke.
8206  if test "X${COLLECT_NAMES+set}" != Xset; then
8207    COLLECT_NAMES=
8208    export COLLECT_NAMES
8209  fi
8210  ;;
8211esac
8212
8213# Sed substitution that helps us do robust quoting.  It backslashifies
8214# metacharacters that are still active within double-quoted strings.
8215sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8216
8217# Same as above, but do not quote variable references.
8218double_quote_subst='s/\(["`\\]\)/\\\1/g'
8219
8220# Sed substitution to delay expansion of an escaped shell variable in a
8221# double_quote_subst'ed string.
8222delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8223
8224# Sed substitution to delay expansion of an escaped single quote.
8225delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8226
8227# Sed substitution to avoid accidental globbing in evaled expressions
8228no_glob_subst='s/\*/\\\*/g'
8229
8230# Global variables:
8231ofile=libtool
8232can_build_shared=yes
8233
8234# All known linkers require a `.a' archive for static linking (except MSVC,
8235# which needs '.lib').
8236libext=a
8237
8238with_gnu_ld="$lt_cv_prog_gnu_ld"
8239
8240old_CC="$CC"
8241old_CFLAGS="$CFLAGS"
8242
8243# Set sane defaults for various variables
8244test -z "$CC" && CC=cc
8245test -z "$LTCC" && LTCC=$CC
8246test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8247test -z "$LD" && LD=ld
8248test -z "$ac_objext" && ac_objext=o
8249
8250for cc_temp in $compiler""; do
8251  case $cc_temp in
8252    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8253    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8254    \-*) ;;
8255    *) break;;
8256  esac
8257done
8258cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8259
8260
8261# Only perform the check for file, if the check method requires it
8262test -z "$MAGIC_CMD" && MAGIC_CMD=file
8263case $deplibs_check_method in
8264file_magic*)
8265  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8267$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8268if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271  case $MAGIC_CMD in
8272[\\/*] |  ?:[\\/]*)
8273  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8274  ;;
8275*)
8276  lt_save_MAGIC_CMD="$MAGIC_CMD"
8277  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8278  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8279  for ac_dir in $ac_dummy; do
8280    IFS="$lt_save_ifs"
8281    test -z "$ac_dir" && ac_dir=.
8282    if test -f $ac_dir/${ac_tool_prefix}file; then
8283      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8284      if test -n "$file_magic_test_file"; then
8285	case $deplibs_check_method in
8286	"file_magic "*)
8287	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8288	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8289	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8290	    $EGREP "$file_magic_regex" > /dev/null; then
8291	    :
8292	  else
8293	    cat <<_LT_EOF 1>&2
8294
8295*** Warning: the command libtool uses to detect shared libraries,
8296*** $file_magic_cmd, produces output that libtool cannot recognize.
8297*** The result is that libtool may fail to recognize shared libraries
8298*** as such.  This will affect the creation of libtool libraries that
8299*** depend on shared libraries, but programs linked with such libtool
8300*** libraries will work regardless of this problem.  Nevertheless, you
8301*** may want to report the problem to your system manager and/or to
8302*** bug-libtool@gnu.org
8303
8304_LT_EOF
8305	  fi ;;
8306	esac
8307      fi
8308      break
8309    fi
8310  done
8311  IFS="$lt_save_ifs"
8312  MAGIC_CMD="$lt_save_MAGIC_CMD"
8313  ;;
8314esac
8315fi
8316
8317MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8318if test -n "$MAGIC_CMD"; then
8319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8320$as_echo "$MAGIC_CMD" >&6; }
8321else
8322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323$as_echo "no" >&6; }
8324fi
8325
8326
8327
8328
8329
8330if test -z "$lt_cv_path_MAGIC_CMD"; then
8331  if test -n "$ac_tool_prefix"; then
8332    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8333$as_echo_n "checking for file... " >&6; }
8334if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8335  $as_echo_n "(cached) " >&6
8336else
8337  case $MAGIC_CMD in
8338[\\/*] |  ?:[\\/]*)
8339  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8340  ;;
8341*)
8342  lt_save_MAGIC_CMD="$MAGIC_CMD"
8343  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8344  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8345  for ac_dir in $ac_dummy; do
8346    IFS="$lt_save_ifs"
8347    test -z "$ac_dir" && ac_dir=.
8348    if test -f $ac_dir/file; then
8349      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8350      if test -n "$file_magic_test_file"; then
8351	case $deplibs_check_method in
8352	"file_magic "*)
8353	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8354	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8355	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8356	    $EGREP "$file_magic_regex" > /dev/null; then
8357	    :
8358	  else
8359	    cat <<_LT_EOF 1>&2
8360
8361*** Warning: the command libtool uses to detect shared libraries,
8362*** $file_magic_cmd, produces output that libtool cannot recognize.
8363*** The result is that libtool may fail to recognize shared libraries
8364*** as such.  This will affect the creation of libtool libraries that
8365*** depend on shared libraries, but programs linked with such libtool
8366*** libraries will work regardless of this problem.  Nevertheless, you
8367*** may want to report the problem to your system manager and/or to
8368*** bug-libtool@gnu.org
8369
8370_LT_EOF
8371	  fi ;;
8372	esac
8373      fi
8374      break
8375    fi
8376  done
8377  IFS="$lt_save_ifs"
8378  MAGIC_CMD="$lt_save_MAGIC_CMD"
8379  ;;
8380esac
8381fi
8382
8383MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8384if test -n "$MAGIC_CMD"; then
8385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8386$as_echo "$MAGIC_CMD" >&6; }
8387else
8388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
8390fi
8391
8392
8393  else
8394    MAGIC_CMD=:
8395  fi
8396fi
8397
8398  fi
8399  ;;
8400esac
8401
8402# Use C for the default configuration in the libtool script
8403
8404lt_save_CC="$CC"
8405ac_ext=c
8406ac_cpp='$CPP $CPPFLAGS'
8407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410
8411
8412# Source file extension for C test sources.
8413ac_ext=c
8414
8415# Object file extension for compiled C test sources.
8416objext=o
8417objext=$objext
8418
8419# Code to be used in simple compile tests
8420lt_simple_compile_test_code="int some_variable = 0;"
8421
8422# Code to be used in simple link tests
8423lt_simple_link_test_code='int main(){return(0);}'
8424
8425
8426
8427
8428
8429
8430
8431# If no C compiler was specified, use CC.
8432LTCC=${LTCC-"$CC"}
8433
8434# If no C compiler flags were specified, use CFLAGS.
8435LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8436
8437# Allow CC to be a program name with arguments.
8438compiler=$CC
8439
8440# Save the default compiler, since it gets overwritten when the other
8441# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8442compiler_DEFAULT=$CC
8443
8444# save warnings/boilerplate of simple test code
8445ac_outfile=conftest.$ac_objext
8446echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8447eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8448_lt_compiler_boilerplate=`cat conftest.err`
8449$RM conftest*
8450
8451ac_outfile=conftest.$ac_objext
8452echo "$lt_simple_link_test_code" >conftest.$ac_ext
8453eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8454_lt_linker_boilerplate=`cat conftest.err`
8455$RM -r conftest*
8456
8457
8458if test -n "$compiler"; then
8459
8460lt_prog_compiler_no_builtin_flag=
8461
8462if test "$GCC" = yes; then
8463  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8464
8465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8466$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8467if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8468  $as_echo_n "(cached) " >&6
8469else
8470  lt_cv_prog_compiler_rtti_exceptions=no
8471   ac_outfile=conftest.$ac_objext
8472   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8473   lt_compiler_flag="-fno-rtti -fno-exceptions"
8474   # Insert the option either (1) after the last *FLAGS variable, or
8475   # (2) before a word containing "conftest.", or (3) at the end.
8476   # Note that $ac_compile itself does not contain backslashes and begins
8477   # with a dollar sign (not a hyphen), so the echo should work correctly.
8478   # The option is referenced via a variable to avoid confusing sed.
8479   lt_compile=`echo "$ac_compile" | $SED \
8480   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8481   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8482   -e 's:$: $lt_compiler_flag:'`
8483   (eval echo "\"\$as_me:8483: $lt_compile\"" >&5)
8484   (eval "$lt_compile" 2>conftest.err)
8485   ac_status=$?
8486   cat conftest.err >&5
8487   echo "$as_me:8487: \$? = $ac_status" >&5
8488   if (exit $ac_status) && test -s "$ac_outfile"; then
8489     # The compiler can only warn and ignore the option if not recognized
8490     # So say no if there are warnings other than the usual output.
8491     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8492     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8493     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8494       lt_cv_prog_compiler_rtti_exceptions=yes
8495     fi
8496   fi
8497   $RM conftest*
8498
8499fi
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8501$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8502
8503if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8504    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8505else
8506    :
8507fi
8508
8509fi
8510
8511
8512
8513
8514
8515
8516  lt_prog_compiler_wl=
8517lt_prog_compiler_pic=
8518lt_prog_compiler_static=
8519
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8521$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8522
8523  if test "$GCC" = yes; then
8524    lt_prog_compiler_wl='-Wl,'
8525    lt_prog_compiler_static='-static'
8526
8527    case $host_os in
8528      aix*)
8529      # All AIX code is PIC.
8530      if test "$host_cpu" = ia64; then
8531	# AIX 5 now supports IA64 processor
8532	lt_prog_compiler_static='-Bstatic'
8533      fi
8534      ;;
8535
8536    amigaos*)
8537      case $host_cpu in
8538      powerpc)
8539            # see comment about AmigaOS4 .so support
8540            lt_prog_compiler_pic='-fPIC'
8541        ;;
8542      m68k)
8543            # FIXME: we need at least 68020 code to build shared libraries, but
8544            # adding the `-m68020' flag to GCC prevents building anything better,
8545            # like `-m68040'.
8546            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8547        ;;
8548      esac
8549      ;;
8550
8551    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8552      # PIC is the default for these OSes.
8553      ;;
8554
8555    mingw* | cygwin* | pw32* | os2* | cegcc*)
8556      # This hack is so that the source file can tell whether it is being
8557      # built for inclusion in a dll (and should export symbols for example).
8558      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8559      # (--disable-auto-import) libraries
8560      lt_prog_compiler_pic='-DDLL_EXPORT'
8561      ;;
8562
8563    darwin* | rhapsody*)
8564      # PIC is the default on this platform
8565      # Common symbols not allowed in MH_DYLIB files
8566      lt_prog_compiler_pic='-fno-common'
8567      ;;
8568
8569    hpux*)
8570      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8571      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8572      # sets the default TLS model and affects inlining.
8573      case $host_cpu in
8574      hppa*64*)
8575	# +Z the default
8576	;;
8577      *)
8578	lt_prog_compiler_pic='-fPIC'
8579	;;
8580      esac
8581      ;;
8582
8583    interix[3-9]*)
8584      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8585      # Instead, we relocate shared libraries at runtime.
8586      ;;
8587
8588    msdosdjgpp*)
8589      # Just because we use GCC doesn't mean we suddenly get shared libraries
8590      # on systems that don't support them.
8591      lt_prog_compiler_can_build_shared=no
8592      enable_shared=no
8593      ;;
8594
8595    *nto* | *qnx*)
8596      # QNX uses GNU C++, but need to define -shared option too, otherwise
8597      # it will coredump.
8598      lt_prog_compiler_pic='-fPIC -shared'
8599      ;;
8600
8601    sysv4*MP*)
8602      if test -d /usr/nec; then
8603	lt_prog_compiler_pic=-Kconform_pic
8604      fi
8605      ;;
8606
8607    *)
8608      lt_prog_compiler_pic='-fPIC'
8609      ;;
8610    esac
8611  else
8612    # PORTME Check for flag to pass linker flags through the system compiler.
8613    case $host_os in
8614    aix*)
8615      lt_prog_compiler_wl='-Wl,'
8616      if test "$host_cpu" = ia64; then
8617	# AIX 5 now supports IA64 processor
8618	lt_prog_compiler_static='-Bstatic'
8619      else
8620	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8621      fi
8622      ;;
8623
8624    mingw* | cygwin* | pw32* | os2* | cegcc*)
8625      # This hack is so that the source file can tell whether it is being
8626      # built for inclusion in a dll (and should export symbols for example).
8627      lt_prog_compiler_pic='-DDLL_EXPORT'
8628      ;;
8629
8630    hpux9* | hpux10* | hpux11*)
8631      lt_prog_compiler_wl='-Wl,'
8632      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8633      # not for PA HP-UX.
8634      case $host_cpu in
8635      hppa*64*|ia64*)
8636	# +Z the default
8637	;;
8638      *)
8639	lt_prog_compiler_pic='+Z'
8640	;;
8641      esac
8642      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8643      lt_prog_compiler_static='${wl}-a ${wl}archive'
8644      ;;
8645
8646    irix5* | irix6* | nonstopux*)
8647      lt_prog_compiler_wl='-Wl,'
8648      # PIC (with -KPIC) is the default.
8649      lt_prog_compiler_static='-non_shared'
8650      ;;
8651
8652    linux* | k*bsd*-gnu)
8653      case $cc_basename in
8654      # old Intel for x86_64 which still supported -KPIC.
8655      ecc*)
8656	lt_prog_compiler_wl='-Wl,'
8657	lt_prog_compiler_pic='-KPIC'
8658	lt_prog_compiler_static='-static'
8659        ;;
8660      # icc used to be incompatible with GCC.
8661      # ICC 10 doesn't accept -KPIC any more.
8662      icc* | ifort*)
8663	lt_prog_compiler_wl='-Wl,'
8664	lt_prog_compiler_pic='-fPIC'
8665	lt_prog_compiler_static='-static'
8666        ;;
8667      # Lahey Fortran 8.1.
8668      lf95*)
8669	lt_prog_compiler_wl='-Wl,'
8670	lt_prog_compiler_pic='--shared'
8671	lt_prog_compiler_static='--static'
8672	;;
8673      pgcc* | pgf77* | pgf90* | pgf95*)
8674        # Portland Group compilers (*not* the Pentium gcc compiler,
8675	# which looks to be a dead project)
8676	lt_prog_compiler_wl='-Wl,'
8677	lt_prog_compiler_pic='-fpic'
8678	lt_prog_compiler_static='-Bstatic'
8679        ;;
8680      ccc*)
8681        lt_prog_compiler_wl='-Wl,'
8682        # All Alpha code is PIC.
8683        lt_prog_compiler_static='-non_shared'
8684        ;;
8685      xl*)
8686	# IBM XL C 8.0/Fortran 10.1 on PPC
8687	lt_prog_compiler_wl='-Wl,'
8688	lt_prog_compiler_pic='-qpic'
8689	lt_prog_compiler_static='-qstaticlink'
8690	;;
8691      *)
8692	case `$CC -V 2>&1 | sed 5q` in
8693	*Sun\ C*)
8694	  # Sun C 5.9
8695	  lt_prog_compiler_pic='-KPIC'
8696	  lt_prog_compiler_static='-Bstatic'
8697	  lt_prog_compiler_wl='-Wl,'
8698	  ;;
8699	*Sun\ F*)
8700	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8701	  lt_prog_compiler_pic='-KPIC'
8702	  lt_prog_compiler_static='-Bstatic'
8703	  lt_prog_compiler_wl=''
8704	  ;;
8705	esac
8706	;;
8707      esac
8708      ;;
8709
8710    newsos6)
8711      lt_prog_compiler_pic='-KPIC'
8712      lt_prog_compiler_static='-Bstatic'
8713      ;;
8714
8715    *nto* | *qnx*)
8716      # QNX uses GNU C++, but need to define -shared option too, otherwise
8717      # it will coredump.
8718      lt_prog_compiler_pic='-fPIC -shared'
8719      ;;
8720
8721    osf3* | osf4* | osf5*)
8722      lt_prog_compiler_wl='-Wl,'
8723      # All OSF/1 code is PIC.
8724      lt_prog_compiler_static='-non_shared'
8725      ;;
8726
8727    rdos*)
8728      lt_prog_compiler_static='-non_shared'
8729      ;;
8730
8731    solaris*)
8732      lt_prog_compiler_pic='-KPIC'
8733      lt_prog_compiler_static='-Bstatic'
8734      case $cc_basename in
8735      f77* | f90* | f95*)
8736	lt_prog_compiler_wl='-Qoption ld ';;
8737      *)
8738	lt_prog_compiler_wl='-Wl,';;
8739      esac
8740      ;;
8741
8742    sunos4*)
8743      lt_prog_compiler_wl='-Qoption ld '
8744      lt_prog_compiler_pic='-PIC'
8745      lt_prog_compiler_static='-Bstatic'
8746      ;;
8747
8748    sysv4 | sysv4.2uw2* | sysv4.3*)
8749      lt_prog_compiler_wl='-Wl,'
8750      lt_prog_compiler_pic='-KPIC'
8751      lt_prog_compiler_static='-Bstatic'
8752      ;;
8753
8754    sysv4*MP*)
8755      if test -d /usr/nec ;then
8756	lt_prog_compiler_pic='-Kconform_pic'
8757	lt_prog_compiler_static='-Bstatic'
8758      fi
8759      ;;
8760
8761    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8762      lt_prog_compiler_wl='-Wl,'
8763      lt_prog_compiler_pic='-KPIC'
8764      lt_prog_compiler_static='-Bstatic'
8765      ;;
8766
8767    unicos*)
8768      lt_prog_compiler_wl='-Wl,'
8769      lt_prog_compiler_can_build_shared=no
8770      ;;
8771
8772    uts4*)
8773      lt_prog_compiler_pic='-pic'
8774      lt_prog_compiler_static='-Bstatic'
8775      ;;
8776
8777    *)
8778      lt_prog_compiler_can_build_shared=no
8779      ;;
8780    esac
8781  fi
8782
8783case $host_os in
8784  # For platforms which do not support PIC, -DPIC is meaningless:
8785  *djgpp*)
8786    lt_prog_compiler_pic=
8787    ;;
8788  *)
8789    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8790    ;;
8791esac
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8793$as_echo "$lt_prog_compiler_pic" >&6; }
8794
8795
8796
8797
8798
8799
8800#
8801# Check to make sure the PIC flag actually works.
8802#
8803if test -n "$lt_prog_compiler_pic"; then
8804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8805$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8806if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  lt_cv_prog_compiler_pic_works=no
8810   ac_outfile=conftest.$ac_objext
8811   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8812   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8813   # Insert the option either (1) after the last *FLAGS variable, or
8814   # (2) before a word containing "conftest.", or (3) at the end.
8815   # Note that $ac_compile itself does not contain backslashes and begins
8816   # with a dollar sign (not a hyphen), so the echo should work correctly.
8817   # The option is referenced via a variable to avoid confusing sed.
8818   lt_compile=`echo "$ac_compile" | $SED \
8819   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8820   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8821   -e 's:$: $lt_compiler_flag:'`
8822   (eval echo "\"\$as_me:8822: $lt_compile\"" >&5)
8823   (eval "$lt_compile" 2>conftest.err)
8824   ac_status=$?
8825   cat conftest.err >&5
8826   echo "$as_me:8826: \$? = $ac_status" >&5
8827   if (exit $ac_status) && test -s "$ac_outfile"; then
8828     # The compiler can only warn and ignore the option if not recognized
8829     # So say no if there are warnings other than the usual output.
8830     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8831     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8832     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8833       lt_cv_prog_compiler_pic_works=yes
8834     fi
8835   fi
8836   $RM conftest*
8837
8838fi
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8840$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8841
8842if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8843    case $lt_prog_compiler_pic in
8844     "" | " "*) ;;
8845     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8846     esac
8847else
8848    lt_prog_compiler_pic=
8849     lt_prog_compiler_can_build_shared=no
8850fi
8851
8852fi
8853
8854
8855
8856
8857
8858
8859#
8860# Check to make sure the static flag actually works.
8861#
8862wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8864$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8865if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8866  $as_echo_n "(cached) " >&6
8867else
8868  lt_cv_prog_compiler_static_works=no
8869   save_LDFLAGS="$LDFLAGS"
8870   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8871   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8872   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8873     # The linker can only warn and ignore the option if not recognized
8874     # So say no if there are warnings
8875     if test -s conftest.err; then
8876       # Append any errors to the config.log.
8877       cat conftest.err 1>&5
8878       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8879       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8880       if diff conftest.exp conftest.er2 >/dev/null; then
8881         lt_cv_prog_compiler_static_works=yes
8882       fi
8883     else
8884       lt_cv_prog_compiler_static_works=yes
8885     fi
8886   fi
8887   $RM -r conftest*
8888   LDFLAGS="$save_LDFLAGS"
8889
8890fi
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8892$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8893
8894if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8895    :
8896else
8897    lt_prog_compiler_static=
8898fi
8899
8900
8901
8902
8903
8904
8905
8906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8907$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8908if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8909  $as_echo_n "(cached) " >&6
8910else
8911  lt_cv_prog_compiler_c_o=no
8912   $RM -r conftest 2>/dev/null
8913   mkdir conftest
8914   cd conftest
8915   mkdir out
8916   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8917
8918   lt_compiler_flag="-o out/conftest2.$ac_objext"
8919   # Insert the option either (1) after the last *FLAGS variable, or
8920   # (2) before a word containing "conftest.", or (3) at the end.
8921   # Note that $ac_compile itself does not contain backslashes and begins
8922   # with a dollar sign (not a hyphen), so the echo should work correctly.
8923   lt_compile=`echo "$ac_compile" | $SED \
8924   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8925   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8926   -e 's:$: $lt_compiler_flag:'`
8927   (eval echo "\"\$as_me:8927: $lt_compile\"" >&5)
8928   (eval "$lt_compile" 2>out/conftest.err)
8929   ac_status=$?
8930   cat out/conftest.err >&5
8931   echo "$as_me:8931: \$? = $ac_status" >&5
8932   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8933   then
8934     # The compiler can only warn and ignore the option if not recognized
8935     # So say no if there are warnings
8936     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8937     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8938     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8939       lt_cv_prog_compiler_c_o=yes
8940     fi
8941   fi
8942   chmod u+w . 2>&5
8943   $RM conftest*
8944   # SGI C++ compiler will create directory out/ii_files/ for
8945   # template instantiation
8946   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8947   $RM out/* && rmdir out
8948   cd ..
8949   $RM -r conftest
8950   $RM conftest*
8951
8952fi
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8954$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8955
8956
8957
8958
8959
8960
8961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8962$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8963if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8964  $as_echo_n "(cached) " >&6
8965else
8966  lt_cv_prog_compiler_c_o=no
8967   $RM -r conftest 2>/dev/null
8968   mkdir conftest
8969   cd conftest
8970   mkdir out
8971   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8972
8973   lt_compiler_flag="-o out/conftest2.$ac_objext"
8974   # Insert the option either (1) after the last *FLAGS variable, or
8975   # (2) before a word containing "conftest.", or (3) at the end.
8976   # Note that $ac_compile itself does not contain backslashes and begins
8977   # with a dollar sign (not a hyphen), so the echo should work correctly.
8978   lt_compile=`echo "$ac_compile" | $SED \
8979   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8981   -e 's:$: $lt_compiler_flag:'`
8982   (eval echo "\"\$as_me:8982: $lt_compile\"" >&5)
8983   (eval "$lt_compile" 2>out/conftest.err)
8984   ac_status=$?
8985   cat out/conftest.err >&5
8986   echo "$as_me:8986: \$? = $ac_status" >&5
8987   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8988   then
8989     # The compiler can only warn and ignore the option if not recognized
8990     # So say no if there are warnings
8991     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8992     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8993     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8994       lt_cv_prog_compiler_c_o=yes
8995     fi
8996   fi
8997   chmod u+w . 2>&5
8998   $RM conftest*
8999   # SGI C++ compiler will create directory out/ii_files/ for
9000   # template instantiation
9001   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9002   $RM out/* && rmdir out
9003   cd ..
9004   $RM -r conftest
9005   $RM conftest*
9006
9007fi
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9009$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9010
9011
9012
9013
9014hard_links="nottested"
9015if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9016  # do not overwrite the value of need_locks provided by the user
9017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9018$as_echo_n "checking if we can lock with hard links... " >&6; }
9019  hard_links=yes
9020  $RM conftest*
9021  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9022  touch conftest.a
9023  ln conftest.a conftest.b 2>&5 || hard_links=no
9024  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9026$as_echo "$hard_links" >&6; }
9027  if test "$hard_links" = no; then
9028    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9029$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9030    need_locks=warn
9031  fi
9032else
9033  need_locks=no
9034fi
9035
9036
9037
9038
9039
9040
9041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9042$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9043
9044  runpath_var=
9045  allow_undefined_flag=
9046  always_export_symbols=no
9047  archive_cmds=
9048  archive_expsym_cmds=
9049  compiler_needs_object=no
9050  enable_shared_with_static_runtimes=no
9051  export_dynamic_flag_spec=
9052  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9053  hardcode_automatic=no
9054  hardcode_direct=no
9055  hardcode_direct_absolute=no
9056  hardcode_libdir_flag_spec=
9057  hardcode_libdir_flag_spec_ld=
9058  hardcode_libdir_separator=
9059  hardcode_minus_L=no
9060  hardcode_shlibpath_var=unsupported
9061  inherit_rpath=no
9062  link_all_deplibs=unknown
9063  module_cmds=
9064  module_expsym_cmds=
9065  old_archive_from_new_cmds=
9066  old_archive_from_expsyms_cmds=
9067  thread_safe_flag_spec=
9068  whole_archive_flag_spec=
9069  # include_expsyms should be a list of space-separated symbols to be *always*
9070  # included in the symbol list
9071  include_expsyms=
9072  # exclude_expsyms can be an extended regexp of symbols to exclude
9073  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9074  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9075  # as well as any symbol that contains `d'.
9076  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9077  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9078  # platforms (ab)use it in PIC code, but their linkers get confused if
9079  # the symbol is explicitly referenced.  Since portable code cannot
9080  # rely on this symbol name, it's probably fine to never include it in
9081  # preloaded symbol tables.
9082  # Exclude shared library initialization/finalization symbols.
9083  extract_expsyms_cmds=
9084
9085  case $host_os in
9086  cygwin* | mingw* | pw32* | cegcc*)
9087    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9088    # When not using gcc, we currently assume that we are using
9089    # Microsoft Visual C++.
9090    if test "$GCC" != yes; then
9091      with_gnu_ld=no
9092    fi
9093    ;;
9094  interix*)
9095    # we just hope/assume this is gcc and not c89 (= MSVC++)
9096    with_gnu_ld=yes
9097    ;;
9098  openbsd*)
9099    with_gnu_ld=no
9100    ;;
9101  esac
9102
9103  ld_shlibs=yes
9104  if test "$with_gnu_ld" = yes; then
9105    # If archive_cmds runs LD, not CC, wlarc should be empty
9106    wlarc='${wl}'
9107
9108    # Set some defaults for GNU ld with shared library support. These
9109    # are reset later if shared libraries are not supported. Putting them
9110    # here allows them to be overridden if necessary.
9111    runpath_var=LD_RUN_PATH
9112    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9113    export_dynamic_flag_spec='${wl}--export-dynamic'
9114    # ancient GNU ld didn't support --whole-archive et. al.
9115    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9116      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9117    else
9118      whole_archive_flag_spec=
9119    fi
9120    supports_anon_versioning=no
9121    case `$LD -v 2>&1` in
9122      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9123      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9124      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9125      *\ 2.11.*) ;; # other 2.11 versions
9126      *) supports_anon_versioning=yes ;;
9127    esac
9128
9129    # See if GNU ld supports shared libraries.
9130    case $host_os in
9131    aix[3-9]*)
9132      # On AIX/PPC, the GNU linker is very broken
9133      if test "$host_cpu" != ia64; then
9134	ld_shlibs=no
9135	cat <<_LT_EOF 1>&2
9136
9137*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9138*** to be unable to reliably create shared libraries on AIX.
9139*** Therefore, libtool is disabling shared libraries support.  If you
9140*** really care for shared libraries, you may want to modify your PATH
9141*** so that a non-GNU linker is found, and then restart.
9142
9143_LT_EOF
9144      fi
9145      ;;
9146
9147    amigaos*)
9148      case $host_cpu in
9149      powerpc)
9150            # see comment about AmigaOS4 .so support
9151            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152            archive_expsym_cmds=''
9153        ;;
9154      m68k)
9155            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)'
9156            hardcode_libdir_flag_spec='-L$libdir'
9157            hardcode_minus_L=yes
9158        ;;
9159      esac
9160      ;;
9161
9162    beos*)
9163      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9164	allow_undefined_flag=unsupported
9165	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9166	# support --undefined.  This deserves some investigation.  FIXME
9167	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9168      else
9169	ld_shlibs=no
9170      fi
9171      ;;
9172
9173    cygwin* | mingw* | pw32* | cegcc*)
9174      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9175      # as there is no search path for DLLs.
9176      hardcode_libdir_flag_spec='-L$libdir'
9177      allow_undefined_flag=unsupported
9178      always_export_symbols=no
9179      enable_shared_with_static_runtimes=yes
9180      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9181
9182      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9183        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9184	# If the export-symbols file already is a .def file (1st line
9185	# is EXPORTS), use it as is; otherwise, prepend...
9186	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9187	  cp $export_symbols $output_objdir/$soname.def;
9188	else
9189	  echo EXPORTS > $output_objdir/$soname.def;
9190	  cat $export_symbols >> $output_objdir/$soname.def;
9191	fi~
9192	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9193      else
9194	ld_shlibs=no
9195      fi
9196      ;;
9197
9198    interix[3-9]*)
9199      hardcode_direct=no
9200      hardcode_shlibpath_var=no
9201      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202      export_dynamic_flag_spec='${wl}-E'
9203      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9204      # Instead, shared libraries are loaded at an image base (0x10000000 by
9205      # default) and relocated if they conflict, which is a slow very memory
9206      # consuming and fragmenting process.  To avoid this, we pick a random,
9207      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9208      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9209      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9210      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'
9211      ;;
9212
9213    gnu* | linux* | tpf* | k*bsd*-gnu)
9214      tmp_diet=no
9215      if test "$host_os" = linux-dietlibc; then
9216	case $cc_basename in
9217	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9218	esac
9219      fi
9220      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9221	 && test "$tmp_diet" = no
9222      then
9223	tmp_addflag=
9224	tmp_sharedflag='-shared'
9225	case $cc_basename,$host_cpu in
9226        pgcc*)				# Portland Group C compiler
9227	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9228	  tmp_addflag=' $pic_flag'
9229	  ;;
9230	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9231	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9232	  tmp_addflag=' $pic_flag -Mnomain' ;;
9233	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9234	  tmp_addflag=' -i_dynamic' ;;
9235	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9236	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9237	ifc* | ifort*)			# Intel Fortran compiler
9238	  tmp_addflag=' -nofor_main' ;;
9239	lf95*)				# Lahey Fortran 8.1
9240	  whole_archive_flag_spec=
9241	  tmp_sharedflag='--shared' ;;
9242	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9243	  tmp_sharedflag='-qmkshrobj'
9244	  tmp_addflag= ;;
9245	esac
9246	case `$CC -V 2>&1 | sed 5q` in
9247	*Sun\ C*)			# Sun C 5.9
9248	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9249	  compiler_needs_object=yes
9250	  tmp_sharedflag='-G' ;;
9251	*Sun\ F*)			# Sun Fortran 8.3
9252	  tmp_sharedflag='-G' ;;
9253	esac
9254	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255
9256        if test "x$supports_anon_versioning" = xyes; then
9257          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9258	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9259	    echo "local: *; };" >> $output_objdir/$libname.ver~
9260	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9261        fi
9262
9263	case $cc_basename in
9264	xlf*)
9265	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9266	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9267	  hardcode_libdir_flag_spec=
9268	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9269	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9270	  if test "x$supports_anon_versioning" = xyes; then
9271	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9272	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9273	      echo "local: *; };" >> $output_objdir/$libname.ver~
9274	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9275	  fi
9276	  ;;
9277	esac
9278      else
9279        ld_shlibs=no
9280      fi
9281      ;;
9282
9283    netbsd*)
9284      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9285	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9286	wlarc=
9287      else
9288	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9289	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9290      fi
9291      ;;
9292
9293    solaris*)
9294      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9295	ld_shlibs=no
9296	cat <<_LT_EOF 1>&2
9297
9298*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9299*** create shared libraries on Solaris systems.  Therefore, libtool
9300*** is disabling shared libraries support.  We urge you to upgrade GNU
9301*** binutils to release 2.9.1 or newer.  Another option is to modify
9302*** your PATH or compiler configuration so that the native linker is
9303*** used, and then restart.
9304
9305_LT_EOF
9306      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9307	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9309      else
9310	ld_shlibs=no
9311      fi
9312      ;;
9313
9314    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9315      case `$LD -v 2>&1` in
9316        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9317	ld_shlibs=no
9318	cat <<_LT_EOF 1>&2
9319
9320*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9321*** reliably create shared libraries on SCO systems.  Therefore, libtool
9322*** is disabling shared libraries support.  We urge you to upgrade GNU
9323*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9324*** your PATH or compiler configuration so that the native linker is
9325*** used, and then restart.
9326
9327_LT_EOF
9328	;;
9329	*)
9330	  # For security reasons, it is highly recommended that you always
9331	  # use absolute paths for naming shared libraries, and exclude the
9332	  # DT_RUNPATH tag from executables and libraries.  But doing so
9333	  # requires that you compile everything twice, which is a pain.
9334	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9335	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9338	  else
9339	    ld_shlibs=no
9340	  fi
9341	;;
9342      esac
9343      ;;
9344
9345    sunos4*)
9346      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9347      wlarc=
9348      hardcode_direct=yes
9349      hardcode_shlibpath_var=no
9350      ;;
9351
9352    *)
9353      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9354	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9356      else
9357	ld_shlibs=no
9358      fi
9359      ;;
9360    esac
9361
9362    if test "$ld_shlibs" = no; then
9363      runpath_var=
9364      hardcode_libdir_flag_spec=
9365      export_dynamic_flag_spec=
9366      whole_archive_flag_spec=
9367    fi
9368  else
9369    # PORTME fill in a description of your system's linker (not GNU ld)
9370    case $host_os in
9371    aix3*)
9372      allow_undefined_flag=unsupported
9373      always_export_symbols=yes
9374      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'
9375      # Note: this linker hardcodes the directories in LIBPATH if there
9376      # are no directories specified by -L.
9377      hardcode_minus_L=yes
9378      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9379	# Neither direct hardcoding nor static linking is supported with a
9380	# broken collect2.
9381	hardcode_direct=unsupported
9382      fi
9383      ;;
9384
9385    aix[4-9]*)
9386      if test "$host_cpu" = ia64; then
9387	# On IA64, the linker does run time linking by default, so we don't
9388	# have to do anything special.
9389	aix_use_runtimelinking=no
9390	exp_sym_flag='-Bexport'
9391	no_entry_flag=""
9392      else
9393	# If we're using GNU nm, then we don't want the "-C" option.
9394	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9395	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9396	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9397	else
9398	  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'
9399	fi
9400	aix_use_runtimelinking=no
9401
9402	# Test if we are trying to use run time linking or normal
9403	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9404	# need to do runtime linking.
9405	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9406	  for ld_flag in $LDFLAGS; do
9407	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9408	    aix_use_runtimelinking=yes
9409	    break
9410	  fi
9411	  done
9412	  ;;
9413	esac
9414
9415	exp_sym_flag='-bexport'
9416	no_entry_flag='-bnoentry'
9417      fi
9418
9419      # When large executables or shared objects are built, AIX ld can
9420      # have problems creating the table of contents.  If linking a library
9421      # or program results in "error TOC overflow" add -mminimal-toc to
9422      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9423      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9424
9425      archive_cmds=''
9426      hardcode_direct=yes
9427      hardcode_direct_absolute=yes
9428      hardcode_libdir_separator=':'
9429      link_all_deplibs=yes
9430      file_list_spec='${wl}-f,'
9431
9432      if test "$GCC" = yes; then
9433	case $host_os in aix4.[012]|aix4.[012].*)
9434	# We only want to do this on AIX 4.2 and lower, the check
9435	# below for broken collect2 doesn't work under 4.3+
9436	  collect2name=`${CC} -print-prog-name=collect2`
9437	  if test -f "$collect2name" &&
9438	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9439	  then
9440	  # We have reworked collect2
9441	  :
9442	  else
9443	  # We have old collect2
9444	  hardcode_direct=unsupported
9445	  # It fails to find uninstalled libraries when the uninstalled
9446	  # path is not listed in the libpath.  Setting hardcode_minus_L
9447	  # to unsupported forces relinking
9448	  hardcode_minus_L=yes
9449	  hardcode_libdir_flag_spec='-L$libdir'
9450	  hardcode_libdir_separator=
9451	  fi
9452	  ;;
9453	esac
9454	shared_flag='-shared'
9455	if test "$aix_use_runtimelinking" = yes; then
9456	  shared_flag="$shared_flag "'${wl}-G'
9457	fi
9458      else
9459	# not using gcc
9460	if test "$host_cpu" = ia64; then
9461	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9462	# chokes on -Wl,-G. The following line is correct:
9463	  shared_flag='-G'
9464	else
9465	  if test "$aix_use_runtimelinking" = yes; then
9466	    shared_flag='${wl}-G'
9467	  else
9468	    shared_flag='${wl}-bM:SRE'
9469	  fi
9470	fi
9471      fi
9472
9473      export_dynamic_flag_spec='${wl}-bexpall'
9474      # It seems that -bexpall does not export symbols beginning with
9475      # underscore (_), so it is better to generate a list of symbols to export.
9476      always_export_symbols=yes
9477      if test "$aix_use_runtimelinking" = yes; then
9478	# Warning - without using the other runtime loading flags (-brtl),
9479	# -berok will link without error, but may produce a broken library.
9480	allow_undefined_flag='-berok'
9481        # Determine the default libpath from the value encoded in an
9482        # empty executable.
9483        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h.  */
9485
9486int
9487main ()
9488{
9489
9490  ;
9491  return 0;
9492}
9493_ACEOF
9494if ac_fn_c_try_link "$LINENO"; then :
9495
9496lt_aix_libpath_sed='
9497    /Import File Strings/,/^$/ {
9498	/^0/ {
9499	    s/^0  *\(.*\)$/\1/
9500	    p
9501	}
9502    }'
9503aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9504# Check for a 64-bit object if we didn't find anything.
9505if test -z "$aix_libpath"; then
9506  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9507fi
9508fi
9509rm -f core conftest.err conftest.$ac_objext \
9510    conftest$ac_exeext conftest.$ac_ext
9511if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9512
9513        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9514        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9515      else
9516	if test "$host_cpu" = ia64; then
9517	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9518	  allow_undefined_flag="-z nodefs"
9519	  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"
9520	else
9521	 # Determine the default libpath from the value encoded in an
9522	 # empty executable.
9523	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524/* end confdefs.h.  */
9525
9526int
9527main ()
9528{
9529
9530  ;
9531  return 0;
9532}
9533_ACEOF
9534if ac_fn_c_try_link "$LINENO"; then :
9535
9536lt_aix_libpath_sed='
9537    /Import File Strings/,/^$/ {
9538	/^0/ {
9539	    s/^0  *\(.*\)$/\1/
9540	    p
9541	}
9542    }'
9543aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9544# Check for a 64-bit object if we didn't find anything.
9545if test -z "$aix_libpath"; then
9546  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9547fi
9548fi
9549rm -f core conftest.err conftest.$ac_objext \
9550    conftest$ac_exeext conftest.$ac_ext
9551if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9552
9553	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9554	  # Warning - without using the other run time loading flags,
9555	  # -berok will link without error, but may produce a broken library.
9556	  no_undefined_flag=' ${wl}-bernotok'
9557	  allow_undefined_flag=' ${wl}-berok'
9558	  # Exported symbols can be pulled into shared objects from archives
9559	  whole_archive_flag_spec='$convenience'
9560	  archive_cmds_need_lc=yes
9561	  # This is similar to how AIX traditionally builds its shared libraries.
9562	  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'
9563	fi
9564      fi
9565      ;;
9566
9567    amigaos*)
9568      case $host_cpu in
9569      powerpc)
9570            # see comment about AmigaOS4 .so support
9571            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572            archive_expsym_cmds=''
9573        ;;
9574      m68k)
9575            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)'
9576            hardcode_libdir_flag_spec='-L$libdir'
9577            hardcode_minus_L=yes
9578        ;;
9579      esac
9580      ;;
9581
9582    bsdi[45]*)
9583      export_dynamic_flag_spec=-rdynamic
9584      ;;
9585
9586    cygwin* | mingw* | pw32* | cegcc*)
9587      # When not using gcc, we currently assume that we are using
9588      # Microsoft Visual C++.
9589      # hardcode_libdir_flag_spec is actually meaningless, as there is
9590      # no search path for DLLs.
9591      hardcode_libdir_flag_spec=' '
9592      allow_undefined_flag=unsupported
9593      # Tell ltmain to make .lib files, not .a files.
9594      libext=lib
9595      # Tell ltmain to make .dll files, not .so files.
9596      shrext_cmds=".dll"
9597      # FIXME: Setting linknames here is a bad hack.
9598      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9599      # The linker will automatically build a .lib file if we build a DLL.
9600      old_archive_from_new_cmds='true'
9601      # FIXME: Should let the user specify the lib program.
9602      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9603      fix_srcfile_path='`cygpath -w "$srcfile"`'
9604      enable_shared_with_static_runtimes=yes
9605      ;;
9606
9607    darwin* | rhapsody*)
9608
9609
9610  archive_cmds_need_lc=no
9611  hardcode_direct=no
9612  hardcode_automatic=yes
9613  hardcode_shlibpath_var=unsupported
9614  whole_archive_flag_spec=''
9615  link_all_deplibs=yes
9616  allow_undefined_flag="$_lt_dar_allow_undefined"
9617  case $cc_basename in
9618     ifort*) _lt_dar_can_shared=yes ;;
9619     *) _lt_dar_can_shared=$GCC ;;
9620  esac
9621  if test "$_lt_dar_can_shared" = "yes"; then
9622    output_verbose_link_cmd=echo
9623    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9624    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9625    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}"
9626    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}"
9627
9628  else
9629  ld_shlibs=no
9630  fi
9631
9632      ;;
9633
9634    dgux*)
9635      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9636      hardcode_libdir_flag_spec='-L$libdir'
9637      hardcode_shlibpath_var=no
9638      ;;
9639
9640    freebsd1*)
9641      ld_shlibs=no
9642      ;;
9643
9644    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9645    # support.  Future versions do this automatically, but an explicit c++rt0.o
9646    # does not break anything, and helps significantly (at the cost of a little
9647    # extra space).
9648    freebsd2.2*)
9649      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9650      hardcode_libdir_flag_spec='-R$libdir'
9651      hardcode_direct=yes
9652      hardcode_shlibpath_var=no
9653      ;;
9654
9655    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9656    freebsd2*)
9657      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9658      hardcode_direct=yes
9659      hardcode_minus_L=yes
9660      hardcode_shlibpath_var=no
9661      ;;
9662
9663    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9664    freebsd* | dragonfly*)
9665      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9666      hardcode_libdir_flag_spec='-R$libdir'
9667      hardcode_direct=yes
9668      hardcode_shlibpath_var=no
9669      ;;
9670
9671    hpux9*)
9672      if test "$GCC" = yes; then
9673	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9674      else
9675	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'
9676      fi
9677      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9678      hardcode_libdir_separator=:
9679      hardcode_direct=yes
9680
9681      # hardcode_minus_L: Not really in the search PATH,
9682      # but as the default location of the library.
9683      hardcode_minus_L=yes
9684      export_dynamic_flag_spec='${wl}-E'
9685      ;;
9686
9687    hpux10*)
9688      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9689	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9690      else
9691	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9692      fi
9693      if test "$with_gnu_ld" = no; then
9694	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9695	hardcode_libdir_flag_spec_ld='+b $libdir'
9696	hardcode_libdir_separator=:
9697	hardcode_direct=yes
9698	hardcode_direct_absolute=yes
9699	export_dynamic_flag_spec='${wl}-E'
9700	# hardcode_minus_L: Not really in the search PATH,
9701	# but as the default location of the library.
9702	hardcode_minus_L=yes
9703      fi
9704      ;;
9705
9706    hpux11*)
9707      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9708	case $host_cpu in
9709	hppa*64*)
9710	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9711	  ;;
9712	ia64*)
9713	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9714	  ;;
9715	*)
9716	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9717	  ;;
9718	esac
9719      else
9720	case $host_cpu in
9721	hppa*64*)
9722	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9723	  ;;
9724	ia64*)
9725	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9726	  ;;
9727	*)
9728	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9729	  ;;
9730	esac
9731      fi
9732      if test "$with_gnu_ld" = no; then
9733	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9734	hardcode_libdir_separator=:
9735
9736	case $host_cpu in
9737	hppa*64*|ia64*)
9738	  hardcode_direct=no
9739	  hardcode_shlibpath_var=no
9740	  ;;
9741	*)
9742	  hardcode_direct=yes
9743	  hardcode_direct_absolute=yes
9744	  export_dynamic_flag_spec='${wl}-E'
9745
9746	  # hardcode_minus_L: Not really in the search PATH,
9747	  # but as the default location of the library.
9748	  hardcode_minus_L=yes
9749	  ;;
9750	esac
9751      fi
9752      ;;
9753
9754    irix5* | irix6* | nonstopux*)
9755      if test "$GCC" = yes; then
9756	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9757	# Try to use the -exported_symbol ld option, if it does not
9758	# work, assume that -exports_file does not work either and
9759	# implicitly export all symbols.
9760        save_LDFLAGS="$LDFLAGS"
9761        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9762        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763/* end confdefs.h.  */
9764int foo(void) {}
9765_ACEOF
9766if ac_fn_c_try_link "$LINENO"; then :
9767  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9768
9769fi
9770rm -f core conftest.err conftest.$ac_objext \
9771    conftest$ac_exeext conftest.$ac_ext
9772        LDFLAGS="$save_LDFLAGS"
9773      else
9774	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9775	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9776      fi
9777      archive_cmds_need_lc='no'
9778      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9779      hardcode_libdir_separator=:
9780      inherit_rpath=yes
9781      link_all_deplibs=yes
9782      ;;
9783
9784    netbsd*)
9785      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9786	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9787      else
9788	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9789      fi
9790      hardcode_libdir_flag_spec='-R$libdir'
9791      hardcode_direct=yes
9792      hardcode_shlibpath_var=no
9793      ;;
9794
9795    newsos6)
9796      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9797      hardcode_direct=yes
9798      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9799      hardcode_libdir_separator=:
9800      hardcode_shlibpath_var=no
9801      ;;
9802
9803    *nto* | *qnx*)
9804      ;;
9805
9806    openbsd*)
9807      if test -f /usr/libexec/ld.so; then
9808	hardcode_direct=yes
9809	hardcode_shlibpath_var=no
9810	hardcode_direct_absolute=yes
9811	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9812	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9813	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9814	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9815	  export_dynamic_flag_spec='${wl}-E'
9816	else
9817	  case $host_os in
9818	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9819	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9820	     hardcode_libdir_flag_spec='-R$libdir'
9821	     ;;
9822	   *)
9823	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9824	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9825	     ;;
9826	  esac
9827	fi
9828      else
9829	ld_shlibs=no
9830      fi
9831      ;;
9832
9833    os2*)
9834      hardcode_libdir_flag_spec='-L$libdir'
9835      hardcode_minus_L=yes
9836      allow_undefined_flag=unsupported
9837      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'
9838      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9839      ;;
9840
9841    osf3*)
9842      if test "$GCC" = yes; then
9843	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9844	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9845      else
9846	allow_undefined_flag=' -expect_unresolved \*'
9847	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9848      fi
9849      archive_cmds_need_lc='no'
9850      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9851      hardcode_libdir_separator=:
9852      ;;
9853
9854    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9855      if test "$GCC" = yes; then
9856	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9857	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9858	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9859      else
9860	allow_undefined_flag=' -expect_unresolved \*'
9861	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9862	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~
9863	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9864
9865	# Both c and cxx compiler support -rpath directly
9866	hardcode_libdir_flag_spec='-rpath $libdir'
9867      fi
9868      archive_cmds_need_lc='no'
9869      hardcode_libdir_separator=:
9870      ;;
9871
9872    solaris*)
9873      no_undefined_flag=' -z defs'
9874      if test "$GCC" = yes; then
9875	wlarc='${wl}'
9876	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9877	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9878	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9879      else
9880	case `$CC -V 2>&1` in
9881	*"Compilers 5.0"*)
9882	  wlarc=''
9883	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9884	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9885	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9886	  ;;
9887	*)
9888	  wlarc='${wl}'
9889	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9890	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9891	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9892	  ;;
9893	esac
9894      fi
9895      hardcode_libdir_flag_spec='-R$libdir'
9896      hardcode_shlibpath_var=no
9897      case $host_os in
9898      solaris2.[0-5] | solaris2.[0-5].*) ;;
9899      *)
9900	# The compiler driver will combine and reorder linker options,
9901	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9902	# but is careful enough not to reorder.
9903	# Supported since Solaris 2.6 (maybe 2.5.1?)
9904	if test "$GCC" = yes; then
9905	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9906	else
9907	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9908	fi
9909	;;
9910      esac
9911      link_all_deplibs=yes
9912      ;;
9913
9914    sunos4*)
9915      if test "x$host_vendor" = xsequent; then
9916	# Use $CC to link under sequent, because it throws in some extra .o
9917	# files that make .init and .fini sections work.
9918	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9919      else
9920	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9921      fi
9922      hardcode_libdir_flag_spec='-L$libdir'
9923      hardcode_direct=yes
9924      hardcode_minus_L=yes
9925      hardcode_shlibpath_var=no
9926      ;;
9927
9928    sysv4)
9929      case $host_vendor in
9930	sni)
9931	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9932	  hardcode_direct=yes # is this really true???
9933	;;
9934	siemens)
9935	  ## LD is ld it makes a PLAMLIB
9936	  ## CC just makes a GrossModule.
9937	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9938	  reload_cmds='$CC -r -o $output$reload_objs'
9939	  hardcode_direct=no
9940        ;;
9941	motorola)
9942	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9943	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9944	;;
9945      esac
9946      runpath_var='LD_RUN_PATH'
9947      hardcode_shlibpath_var=no
9948      ;;
9949
9950    sysv4.3*)
9951      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952      hardcode_shlibpath_var=no
9953      export_dynamic_flag_spec='-Bexport'
9954      ;;
9955
9956    sysv4*MP*)
9957      if test -d /usr/nec; then
9958	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9959	hardcode_shlibpath_var=no
9960	runpath_var=LD_RUN_PATH
9961	hardcode_runpath_var=yes
9962	ld_shlibs=yes
9963      fi
9964      ;;
9965
9966    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9967      no_undefined_flag='${wl}-z,text'
9968      archive_cmds_need_lc=no
9969      hardcode_shlibpath_var=no
9970      runpath_var='LD_RUN_PATH'
9971
9972      if test "$GCC" = yes; then
9973	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9974	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9975      else
9976	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9977	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9978      fi
9979      ;;
9980
9981    sysv5* | sco3.2v5* | sco5v6*)
9982      # Note: We can NOT use -z defs as we might desire, because we do not
9983      # link with -lc, and that would cause any symbols used from libc to
9984      # always be unresolved, which means just about no library would
9985      # ever link correctly.  If we're not using GNU ld we use -z text
9986      # though, which does catch some bad symbols but isn't as heavy-handed
9987      # as -z defs.
9988      no_undefined_flag='${wl}-z,text'
9989      allow_undefined_flag='${wl}-z,nodefs'
9990      archive_cmds_need_lc=no
9991      hardcode_shlibpath_var=no
9992      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9993      hardcode_libdir_separator=':'
9994      link_all_deplibs=yes
9995      export_dynamic_flag_spec='${wl}-Bexport'
9996      runpath_var='LD_RUN_PATH'
9997
9998      if test "$GCC" = yes; then
9999	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10001      else
10002	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10003	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10004      fi
10005      ;;
10006
10007    uts4*)
10008      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009      hardcode_libdir_flag_spec='-L$libdir'
10010      hardcode_shlibpath_var=no
10011      ;;
10012
10013    *)
10014      ld_shlibs=no
10015      ;;
10016    esac
10017
10018    if test x$host_vendor = xsni; then
10019      case $host in
10020      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10021	export_dynamic_flag_spec='${wl}-Blargedynsym'
10022	;;
10023      esac
10024    fi
10025  fi
10026
10027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10028$as_echo "$ld_shlibs" >&6; }
10029test "$ld_shlibs" = no && can_build_shared=no
10030
10031with_gnu_ld=$with_gnu_ld
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047#
10048# Do we need to explicitly link libc?
10049#
10050case "x$archive_cmds_need_lc" in
10051x|xyes)
10052  # Assume -lc should be added
10053  archive_cmds_need_lc=yes
10054
10055  if test "$enable_shared" = yes && test "$GCC" = yes; then
10056    case $archive_cmds in
10057    *'~'*)
10058      # FIXME: we may have to deal with multi-command sequences.
10059      ;;
10060    '$CC '*)
10061      # Test whether the compiler implicitly links with -lc since on some
10062      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10063      # to ld, don't add -lc before -lgcc.
10064      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10065$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10066      $RM conftest*
10067      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10068
10069      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10070  (eval $ac_compile) 2>&5
10071  ac_status=$?
10072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10073  test $ac_status = 0; } 2>conftest.err; then
10074        soname=conftest
10075        lib=conftest
10076        libobjs=conftest.$ac_objext
10077        deplibs=
10078        wl=$lt_prog_compiler_wl
10079	pic_flag=$lt_prog_compiler_pic
10080        compiler_flags=-v
10081        linker_flags=-v
10082        verstring=
10083        output_objdir=.
10084        libname=conftest
10085        lt_save_allow_undefined_flag=$allow_undefined_flag
10086        allow_undefined_flag=
10087        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10088  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10089  ac_status=$?
10090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10091  test $ac_status = 0; }
10092        then
10093	  archive_cmds_need_lc=no
10094        else
10095	  archive_cmds_need_lc=yes
10096        fi
10097        allow_undefined_flag=$lt_save_allow_undefined_flag
10098      else
10099        cat conftest.err 1>&5
10100      fi
10101      $RM conftest*
10102      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10103$as_echo "$archive_cmds_need_lc" >&6; }
10104      ;;
10105    esac
10106  fi
10107  ;;
10108esac
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
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10267$as_echo_n "checking dynamic linker characteristics... " >&6; }
10268
10269if test "$GCC" = yes; then
10270  case $host_os in
10271    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10272    *) lt_awk_arg="/^libraries:/" ;;
10273  esac
10274  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10275  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10276    # if the path contains ";" then we assume it to be the separator
10277    # otherwise default to the standard path separator (i.e. ":") - it is
10278    # assumed that no part of a normal pathname contains ";" but that should
10279    # okay in the real world where ";" in dirpaths is itself problematic.
10280    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10281  else
10282    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10283  fi
10284  # Ok, now we have the path, separated by spaces, we can step through it
10285  # and add multilib dir if necessary.
10286  lt_tmp_lt_search_path_spec=
10287  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10288  for lt_sys_path in $lt_search_path_spec; do
10289    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10290      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10291    else
10292      test -d "$lt_sys_path" && \
10293	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10294    fi
10295  done
10296  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10297BEGIN {RS=" "; FS="/|\n";} {
10298  lt_foo="";
10299  lt_count=0;
10300  for (lt_i = NF; lt_i > 0; lt_i--) {
10301    if ($lt_i != "" && $lt_i != ".") {
10302      if ($lt_i == "..") {
10303        lt_count++;
10304      } else {
10305        if (lt_count == 0) {
10306          lt_foo="/" $lt_i lt_foo;
10307        } else {
10308          lt_count--;
10309        }
10310      }
10311    }
10312  }
10313  if (lt_foo != "") { lt_freq[lt_foo]++; }
10314  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10315}'`
10316  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10317else
10318  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10319fi
10320library_names_spec=
10321libname_spec='lib$name'
10322soname_spec=
10323shrext_cmds=".so"
10324postinstall_cmds=
10325postuninstall_cmds=
10326finish_cmds=
10327finish_eval=
10328shlibpath_var=
10329shlibpath_overrides_runpath=unknown
10330version_type=none
10331dynamic_linker="$host_os ld.so"
10332sys_lib_dlsearch_path_spec="/lib /usr/lib"
10333need_lib_prefix=unknown
10334hardcode_into_libs=no
10335
10336# when you set need_version to no, make sure it does not cause -set_version
10337# flags to be left without arguments
10338need_version=unknown
10339
10340case $host_os in
10341aix3*)
10342  version_type=linux
10343  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10344  shlibpath_var=LIBPATH
10345
10346  # AIX 3 has no versioning support, so we append a major version to the name.
10347  soname_spec='${libname}${release}${shared_ext}$major'
10348  ;;
10349
10350aix[4-9]*)
10351  version_type=linux
10352  need_lib_prefix=no
10353  need_version=no
10354  hardcode_into_libs=yes
10355  if test "$host_cpu" = ia64; then
10356    # AIX 5 supports IA64
10357    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10358    shlibpath_var=LD_LIBRARY_PATH
10359  else
10360    # With GCC up to 2.95.x, collect2 would create an import file
10361    # for dependence libraries.  The import file would start with
10362    # the line `#! .'.  This would cause the generated library to
10363    # depend on `.', always an invalid library.  This was fixed in
10364    # development snapshots of GCC prior to 3.0.
10365    case $host_os in
10366      aix4 | aix4.[01] | aix4.[01].*)
10367      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10368	   echo ' yes '
10369	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10370	:
10371      else
10372	can_build_shared=no
10373      fi
10374      ;;
10375    esac
10376    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10377    # soname into executable. Probably we can add versioning support to
10378    # collect2, so additional links can be useful in future.
10379    if test "$aix_use_runtimelinking" = yes; then
10380      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10381      # instead of lib<name>.a to let people know that these are not
10382      # typical AIX shared libraries.
10383      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384    else
10385      # We preserve .a as extension for shared libraries through AIX4.2
10386      # and later when we are not doing run time linking.
10387      library_names_spec='${libname}${release}.a $libname.a'
10388      soname_spec='${libname}${release}${shared_ext}$major'
10389    fi
10390    shlibpath_var=LIBPATH
10391  fi
10392  ;;
10393
10394amigaos*)
10395  case $host_cpu in
10396  powerpc)
10397    # Since July 2007 AmigaOS4 officially supports .so libraries.
10398    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10399    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400    ;;
10401  m68k)
10402    library_names_spec='$libname.ixlibrary $libname.a'
10403    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10404    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10405    ;;
10406  esac
10407  ;;
10408
10409beos*)
10410  library_names_spec='${libname}${shared_ext}'
10411  dynamic_linker="$host_os ld.so"
10412  shlibpath_var=LIBRARY_PATH
10413  ;;
10414
10415bsdi[45]*)
10416  version_type=linux
10417  need_version=no
10418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419  soname_spec='${libname}${release}${shared_ext}$major'
10420  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10421  shlibpath_var=LD_LIBRARY_PATH
10422  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10423  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10424  # the default ld.so.conf also contains /usr/contrib/lib and
10425  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10426  # libtool to hard-code these into programs
10427  ;;
10428
10429cygwin* | mingw* | pw32* | cegcc*)
10430  version_type=windows
10431  shrext_cmds=".dll"
10432  need_version=no
10433  need_lib_prefix=no
10434
10435  case $GCC,$host_os in
10436  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10437    library_names_spec='$libname.dll.a'
10438    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10439    postinstall_cmds='base_file=`basename \${file}`~
10440      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10441      dldir=$destdir/`dirname \$dlpath`~
10442      test -d \$dldir || mkdir -p \$dldir~
10443      $install_prog $dir/$dlname \$dldir/$dlname~
10444      chmod a+x \$dldir/$dlname~
10445      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10446        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10447      fi'
10448    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10449      dlpath=$dir/\$dldll~
10450       $RM \$dlpath'
10451    shlibpath_overrides_runpath=yes
10452
10453    case $host_os in
10454    cygwin*)
10455      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10456      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10457      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10458      ;;
10459    mingw* | cegcc*)
10460      # MinGW DLLs use traditional 'lib' prefix
10461      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10462      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10463      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10464        # It is most probably a Windows format PATH printed by
10465        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10466        # path with ; separators, and with drive letters. We can handle the
10467        # drive letters (cygwin fileutils understands them), so leave them,
10468        # especially as we might pass files found there to a mingw objdump,
10469        # which wouldn't understand a cygwinified path. Ahh.
10470        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10471      else
10472        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10473      fi
10474      ;;
10475    pw32*)
10476      # pw32 DLLs use 'pw' prefix rather than 'lib'
10477      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10478      ;;
10479    esac
10480    ;;
10481
10482  *)
10483    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10484    ;;
10485  esac
10486  dynamic_linker='Win32 ld.exe'
10487  # FIXME: first we should search . and the directory the executable is in
10488  shlibpath_var=PATH
10489  ;;
10490
10491darwin* | rhapsody*)
10492  dynamic_linker="$host_os dyld"
10493  version_type=darwin
10494  need_lib_prefix=no
10495  need_version=no
10496  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10497  soname_spec='${libname}${release}${major}$shared_ext'
10498  shlibpath_overrides_runpath=yes
10499  shlibpath_var=DYLD_LIBRARY_PATH
10500  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10501
10502  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10503  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10504  ;;
10505
10506dgux*)
10507  version_type=linux
10508  need_lib_prefix=no
10509  need_version=no
10510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10511  soname_spec='${libname}${release}${shared_ext}$major'
10512  shlibpath_var=LD_LIBRARY_PATH
10513  ;;
10514
10515freebsd1*)
10516  dynamic_linker=no
10517  ;;
10518
10519freebsd* | dragonfly*)
10520  # DragonFly does not have aout.  When/if they implement a new
10521  # versioning mechanism, adjust this.
10522  if test -x /usr/bin/objformat; then
10523    objformat=`/usr/bin/objformat`
10524  else
10525    case $host_os in
10526    freebsd[123]*) objformat=aout ;;
10527    *) objformat=elf ;;
10528    esac
10529  fi
10530  version_type=freebsd-$objformat
10531  case $version_type in
10532    freebsd-elf*)
10533      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10534      need_version=no
10535      need_lib_prefix=no
10536      ;;
10537    freebsd-*)
10538      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10539      need_version=yes
10540      ;;
10541  esac
10542  shlibpath_var=LD_LIBRARY_PATH
10543  case $host_os in
10544  freebsd2*)
10545    shlibpath_overrides_runpath=yes
10546    ;;
10547  freebsd3.[01]* | freebsdelf3.[01]*)
10548    shlibpath_overrides_runpath=yes
10549    hardcode_into_libs=yes
10550    ;;
10551  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10552  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10553    shlibpath_overrides_runpath=no
10554    hardcode_into_libs=yes
10555    ;;
10556  *) # from 4.6 on, and DragonFly
10557    shlibpath_overrides_runpath=yes
10558    hardcode_into_libs=yes
10559    ;;
10560  esac
10561  ;;
10562
10563gnu*)
10564  version_type=linux
10565  need_lib_prefix=no
10566  need_version=no
10567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10568  soname_spec='${libname}${release}${shared_ext}$major'
10569  shlibpath_var=LD_LIBRARY_PATH
10570  hardcode_into_libs=yes
10571  ;;
10572
10573hpux9* | hpux10* | hpux11*)
10574  # Give a soname corresponding to the major version so that dld.sl refuses to
10575  # link against other versions.
10576  version_type=sunos
10577  need_lib_prefix=no
10578  need_version=no
10579  case $host_cpu in
10580  ia64*)
10581    shrext_cmds='.so'
10582    hardcode_into_libs=yes
10583    dynamic_linker="$host_os dld.so"
10584    shlibpath_var=LD_LIBRARY_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    if test "X$HPUX_IA64_MODE" = X32; then
10589      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10590    else
10591      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10592    fi
10593    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10594    ;;
10595  hppa*64*)
10596    shrext_cmds='.sl'
10597    hardcode_into_libs=yes
10598    dynamic_linker="$host_os dld.sl"
10599    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10600    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10601    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602    soname_spec='${libname}${release}${shared_ext}$major'
10603    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10604    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10605    ;;
10606  *)
10607    shrext_cmds='.sl'
10608    dynamic_linker="$host_os dld.sl"
10609    shlibpath_var=SHLIB_PATH
10610    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10611    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612    soname_spec='${libname}${release}${shared_ext}$major'
10613    ;;
10614  esac
10615  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10616  postinstall_cmds='chmod 555 $lib'
10617  ;;
10618
10619interix[3-9]*)
10620  version_type=linux
10621  need_lib_prefix=no
10622  need_version=no
10623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10624  soname_spec='${libname}${release}${shared_ext}$major'
10625  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10626  shlibpath_var=LD_LIBRARY_PATH
10627  shlibpath_overrides_runpath=no
10628  hardcode_into_libs=yes
10629  ;;
10630
10631irix5* | irix6* | nonstopux*)
10632  case $host_os in
10633    nonstopux*) version_type=nonstopux ;;
10634    *)
10635	if test "$lt_cv_prog_gnu_ld" = yes; then
10636		version_type=linux
10637	else
10638		version_type=irix
10639	fi ;;
10640  esac
10641  need_lib_prefix=no
10642  need_version=no
10643  soname_spec='${libname}${release}${shared_ext}$major'
10644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10645  case $host_os in
10646  irix5* | nonstopux*)
10647    libsuff= shlibsuff=
10648    ;;
10649  *)
10650    case $LD in # libtool.m4 will add one of these switches to LD
10651    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10652      libsuff= shlibsuff= libmagic=32-bit;;
10653    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10654      libsuff=32 shlibsuff=N32 libmagic=N32;;
10655    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10656      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10657    *) libsuff= shlibsuff= libmagic=never-match;;
10658    esac
10659    ;;
10660  esac
10661  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10662  shlibpath_overrides_runpath=no
10663  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10664  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10665  hardcode_into_libs=yes
10666  ;;
10667
10668# No shared lib support for Linux oldld, aout, or coff.
10669linux*oldld* | linux*aout* | linux*coff*)
10670  dynamic_linker=no
10671  ;;
10672
10673# This must be Linux ELF.
10674linux* | k*bsd*-gnu)
10675  version_type=linux
10676  need_lib_prefix=no
10677  need_version=no
10678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679  soname_spec='${libname}${release}${shared_ext}$major'
10680  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10681  shlibpath_var=LD_LIBRARY_PATH
10682  shlibpath_overrides_runpath=no
10683  # Some binutils ld are patched to set DT_RUNPATH
10684  save_LDFLAGS=$LDFLAGS
10685  save_libdir=$libdir
10686  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10687       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689/* end confdefs.h.  */
10690
10691int
10692main ()
10693{
10694
10695  ;
10696  return 0;
10697}
10698_ACEOF
10699if ac_fn_c_try_link "$LINENO"; then :
10700  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10701  shlibpath_overrides_runpath=yes
10702fi
10703fi
10704rm -f core conftest.err conftest.$ac_objext \
10705    conftest$ac_exeext conftest.$ac_ext
10706  LDFLAGS=$save_LDFLAGS
10707  libdir=$save_libdir
10708
10709  # This implies no fast_install, which is unacceptable.
10710  # Some rework will be needed to allow for fast_install
10711  # before this can be enabled.
10712  hardcode_into_libs=yes
10713
10714  # Append ld.so.conf contents to the search path
10715  if test -f /etc/ld.so.conf; then
10716    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;/^$/d' | tr '\n' ' '`
10717    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10718  fi
10719
10720  # We used to test for /lib/ld.so.1 and disable shared libraries on
10721  # powerpc, because MkLinux only supported shared libraries with the
10722  # GNU dynamic linker.  Since this was broken with cross compilers,
10723  # most powerpc-linux boxes support dynamic linking these days and
10724  # people can always --disable-shared, the test was removed, and we
10725  # assume the GNU/Linux dynamic linker is in use.
10726  dynamic_linker='GNU/Linux ld.so'
10727  ;;
10728
10729netbsd*)
10730  version_type=sunos
10731  need_lib_prefix=no
10732  need_version=no
10733  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10734    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10735    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10736    dynamic_linker='NetBSD (a.out) ld.so'
10737  else
10738    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10739    soname_spec='${libname}${release}${shared_ext}$major'
10740    dynamic_linker='NetBSD ld.elf_so'
10741  fi
10742  shlibpath_var=LD_LIBRARY_PATH
10743  shlibpath_overrides_runpath=yes
10744  hardcode_into_libs=yes
10745  ;;
10746
10747newsos6)
10748  version_type=linux
10749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750  shlibpath_var=LD_LIBRARY_PATH
10751  shlibpath_overrides_runpath=yes
10752  ;;
10753
10754*nto* | *qnx*)
10755  version_type=qnx
10756  need_lib_prefix=no
10757  need_version=no
10758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759  soname_spec='${libname}${release}${shared_ext}$major'
10760  shlibpath_var=LD_LIBRARY_PATH
10761  shlibpath_overrides_runpath=no
10762  hardcode_into_libs=yes
10763  dynamic_linker='ldqnx.so'
10764  ;;
10765
10766openbsd*)
10767  version_type=sunos
10768  sys_lib_dlsearch_path_spec="/usr/lib"
10769  need_lib_prefix=no
10770  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10771  case $host_os in
10772    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10773    *)				need_version=no  ;;
10774  esac
10775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10776  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10777  shlibpath_var=LD_LIBRARY_PATH
10778  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10779    case $host_os in
10780      openbsd2.[89] | openbsd2.[89].*)
10781	shlibpath_overrides_runpath=no
10782	;;
10783      *)
10784	shlibpath_overrides_runpath=yes
10785	;;
10786      esac
10787  else
10788    shlibpath_overrides_runpath=yes
10789  fi
10790  ;;
10791
10792os2*)
10793  libname_spec='$name'
10794  shrext_cmds=".dll"
10795  need_lib_prefix=no
10796  library_names_spec='$libname${shared_ext} $libname.a'
10797  dynamic_linker='OS/2 ld.exe'
10798  shlibpath_var=LIBPATH
10799  ;;
10800
10801osf3* | osf4* | osf5*)
10802  version_type=osf
10803  need_lib_prefix=no
10804  need_version=no
10805  soname_spec='${libname}${release}${shared_ext}$major'
10806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807  shlibpath_var=LD_LIBRARY_PATH
10808  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10809  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10810  ;;
10811
10812rdos*)
10813  dynamic_linker=no
10814  ;;
10815
10816solaris*)
10817  version_type=linux
10818  need_lib_prefix=no
10819  need_version=no
10820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821  soname_spec='${libname}${release}${shared_ext}$major'
10822  shlibpath_var=LD_LIBRARY_PATH
10823  shlibpath_overrides_runpath=yes
10824  hardcode_into_libs=yes
10825  # ldd complains unless libraries are executable
10826  postinstall_cmds='chmod +x $lib'
10827  ;;
10828
10829sunos4*)
10830  version_type=sunos
10831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10832  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10833  shlibpath_var=LD_LIBRARY_PATH
10834  shlibpath_overrides_runpath=yes
10835  if test "$with_gnu_ld" = yes; then
10836    need_lib_prefix=no
10837  fi
10838  need_version=yes
10839  ;;
10840
10841sysv4 | sysv4.3*)
10842  version_type=linux
10843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844  soname_spec='${libname}${release}${shared_ext}$major'
10845  shlibpath_var=LD_LIBRARY_PATH
10846  case $host_vendor in
10847    sni)
10848      shlibpath_overrides_runpath=no
10849      need_lib_prefix=no
10850      runpath_var=LD_RUN_PATH
10851      ;;
10852    siemens)
10853      need_lib_prefix=no
10854      ;;
10855    motorola)
10856      need_lib_prefix=no
10857      need_version=no
10858      shlibpath_overrides_runpath=no
10859      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10860      ;;
10861  esac
10862  ;;
10863
10864sysv4*MP*)
10865  if test -d /usr/nec ;then
10866    version_type=linux
10867    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10868    soname_spec='$libname${shared_ext}.$major'
10869    shlibpath_var=LD_LIBRARY_PATH
10870  fi
10871  ;;
10872
10873sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10874  version_type=freebsd-elf
10875  need_lib_prefix=no
10876  need_version=no
10877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10878  soname_spec='${libname}${release}${shared_ext}$major'
10879  shlibpath_var=LD_LIBRARY_PATH
10880  shlibpath_overrides_runpath=yes
10881  hardcode_into_libs=yes
10882  if test "$with_gnu_ld" = yes; then
10883    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10884  else
10885    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10886    case $host_os in
10887      sco3.2v5*)
10888        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10889	;;
10890    esac
10891  fi
10892  sys_lib_dlsearch_path_spec='/usr/lib'
10893  ;;
10894
10895tpf*)
10896  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10897  version_type=linux
10898  need_lib_prefix=no
10899  need_version=no
10900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901  shlibpath_var=LD_LIBRARY_PATH
10902  shlibpath_overrides_runpath=no
10903  hardcode_into_libs=yes
10904  ;;
10905
10906uts4*)
10907  version_type=linux
10908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909  soname_spec='${libname}${release}${shared_ext}$major'
10910  shlibpath_var=LD_LIBRARY_PATH
10911  ;;
10912
10913*)
10914  dynamic_linker=no
10915  ;;
10916esac
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10918$as_echo "$dynamic_linker" >&6; }
10919test "$dynamic_linker" = no && can_build_shared=no
10920
10921variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10922if test "$GCC" = yes; then
10923  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10924fi
10925
10926if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10927  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10928fi
10929if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10930  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10931fi
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11020$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11021hardcode_action=
11022if test -n "$hardcode_libdir_flag_spec" ||
11023   test -n "$runpath_var" ||
11024   test "X$hardcode_automatic" = "Xyes" ; then
11025
11026  # We can hardcode non-existent directories.
11027  if test "$hardcode_direct" != no &&
11028     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11029     # have to relink, otherwise we might link with an installed library
11030     # when we should be linking with a yet-to-be-installed one
11031     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11032     test "$hardcode_minus_L" != no; then
11033    # Linking always hardcodes the temporary library directory.
11034    hardcode_action=relink
11035  else
11036    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11037    hardcode_action=immediate
11038  fi
11039else
11040  # We cannot hardcode anything, or else we can only hardcode existing
11041  # directories.
11042  hardcode_action=unsupported
11043fi
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11045$as_echo "$hardcode_action" >&6; }
11046
11047if test "$hardcode_action" = relink ||
11048   test "$inherit_rpath" = yes; then
11049  # Fast installation is not supported
11050  enable_fast_install=no
11051elif test "$shlibpath_overrides_runpath" = yes ||
11052     test "$enable_shared" = no; then
11053  # Fast installation is not necessary
11054  enable_fast_install=needless
11055fi
11056
11057
11058
11059
11060
11061
11062  if test "x$enable_dlopen" != xyes; then
11063  enable_dlopen=unknown
11064  enable_dlopen_self=unknown
11065  enable_dlopen_self_static=unknown
11066else
11067  lt_cv_dlopen=no
11068  lt_cv_dlopen_libs=
11069
11070  case $host_os in
11071  beos*)
11072    lt_cv_dlopen="load_add_on"
11073    lt_cv_dlopen_libs=
11074    lt_cv_dlopen_self=yes
11075    ;;
11076
11077  mingw* | pw32* | cegcc*)
11078    lt_cv_dlopen="LoadLibrary"
11079    lt_cv_dlopen_libs=
11080    ;;
11081
11082  cygwin*)
11083    lt_cv_dlopen="dlopen"
11084    lt_cv_dlopen_libs=
11085    ;;
11086
11087  darwin*)
11088  # if libdl is installed we need to link against it
11089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11090$as_echo_n "checking for dlopen in -ldl... " >&6; }
11091if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11092  $as_echo_n "(cached) " >&6
11093else
11094  ac_check_lib_save_LIBS=$LIBS
11095LIBS="-ldl  $LIBS"
11096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097/* end confdefs.h.  */
11098
11099/* Override any GCC internal prototype to avoid an error.
11100   Use char because int might match the return type of a GCC
11101   builtin and then its argument prototype would still apply.  */
11102#ifdef __cplusplus
11103extern "C"
11104#endif
11105char dlopen ();
11106int
11107main ()
11108{
11109return dlopen ();
11110  ;
11111  return 0;
11112}
11113_ACEOF
11114if ac_fn_c_try_link "$LINENO"; then :
11115  ac_cv_lib_dl_dlopen=yes
11116else
11117  ac_cv_lib_dl_dlopen=no
11118fi
11119rm -f core conftest.err conftest.$ac_objext \
11120    conftest$ac_exeext conftest.$ac_ext
11121LIBS=$ac_check_lib_save_LIBS
11122fi
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11124$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11125if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11126  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11127else
11128
11129    lt_cv_dlopen="dyld"
11130    lt_cv_dlopen_libs=
11131    lt_cv_dlopen_self=yes
11132
11133fi
11134
11135    ;;
11136
11137  *)
11138    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11139if test "x$ac_cv_func_shl_load" = x""yes; then :
11140  lt_cv_dlopen="shl_load"
11141else
11142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11143$as_echo_n "checking for shl_load in -ldld... " >&6; }
11144if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11145  $as_echo_n "(cached) " >&6
11146else
11147  ac_check_lib_save_LIBS=$LIBS
11148LIBS="-ldld  $LIBS"
11149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150/* end confdefs.h.  */
11151
11152/* Override any GCC internal prototype to avoid an error.
11153   Use char because int might match the return type of a GCC
11154   builtin and then its argument prototype would still apply.  */
11155#ifdef __cplusplus
11156extern "C"
11157#endif
11158char shl_load ();
11159int
11160main ()
11161{
11162return shl_load ();
11163  ;
11164  return 0;
11165}
11166_ACEOF
11167if ac_fn_c_try_link "$LINENO"; then :
11168  ac_cv_lib_dld_shl_load=yes
11169else
11170  ac_cv_lib_dld_shl_load=no
11171fi
11172rm -f core conftest.err conftest.$ac_objext \
11173    conftest$ac_exeext conftest.$ac_ext
11174LIBS=$ac_check_lib_save_LIBS
11175fi
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11177$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11178if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11179  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11180else
11181  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11182if test "x$ac_cv_func_dlopen" = x""yes; then :
11183  lt_cv_dlopen="dlopen"
11184else
11185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11186$as_echo_n "checking for dlopen in -ldl... " >&6; }
11187if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11188  $as_echo_n "(cached) " >&6
11189else
11190  ac_check_lib_save_LIBS=$LIBS
11191LIBS="-ldl  $LIBS"
11192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193/* end confdefs.h.  */
11194
11195/* Override any GCC internal prototype to avoid an error.
11196   Use char because int might match the return type of a GCC
11197   builtin and then its argument prototype would still apply.  */
11198#ifdef __cplusplus
11199extern "C"
11200#endif
11201char dlopen ();
11202int
11203main ()
11204{
11205return dlopen ();
11206  ;
11207  return 0;
11208}
11209_ACEOF
11210if ac_fn_c_try_link "$LINENO"; then :
11211  ac_cv_lib_dl_dlopen=yes
11212else
11213  ac_cv_lib_dl_dlopen=no
11214fi
11215rm -f core conftest.err conftest.$ac_objext \
11216    conftest$ac_exeext conftest.$ac_ext
11217LIBS=$ac_check_lib_save_LIBS
11218fi
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11220$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11221if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11222  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11223else
11224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11225$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11226if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11227  $as_echo_n "(cached) " >&6
11228else
11229  ac_check_lib_save_LIBS=$LIBS
11230LIBS="-lsvld  $LIBS"
11231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232/* end confdefs.h.  */
11233
11234/* Override any GCC internal prototype to avoid an error.
11235   Use char because int might match the return type of a GCC
11236   builtin and then its argument prototype would still apply.  */
11237#ifdef __cplusplus
11238extern "C"
11239#endif
11240char dlopen ();
11241int
11242main ()
11243{
11244return dlopen ();
11245  ;
11246  return 0;
11247}
11248_ACEOF
11249if ac_fn_c_try_link "$LINENO"; then :
11250  ac_cv_lib_svld_dlopen=yes
11251else
11252  ac_cv_lib_svld_dlopen=no
11253fi
11254rm -f core conftest.err conftest.$ac_objext \
11255    conftest$ac_exeext conftest.$ac_ext
11256LIBS=$ac_check_lib_save_LIBS
11257fi
11258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11259$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11260if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11261  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11262else
11263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11264$as_echo_n "checking for dld_link in -ldld... " >&6; }
11265if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11266  $as_echo_n "(cached) " >&6
11267else
11268  ac_check_lib_save_LIBS=$LIBS
11269LIBS="-ldld  $LIBS"
11270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271/* end confdefs.h.  */
11272
11273/* Override any GCC internal prototype to avoid an error.
11274   Use char because int might match the return type of a GCC
11275   builtin and then its argument prototype would still apply.  */
11276#ifdef __cplusplus
11277extern "C"
11278#endif
11279char dld_link ();
11280int
11281main ()
11282{
11283return dld_link ();
11284  ;
11285  return 0;
11286}
11287_ACEOF
11288if ac_fn_c_try_link "$LINENO"; then :
11289  ac_cv_lib_dld_dld_link=yes
11290else
11291  ac_cv_lib_dld_dld_link=no
11292fi
11293rm -f core conftest.err conftest.$ac_objext \
11294    conftest$ac_exeext conftest.$ac_ext
11295LIBS=$ac_check_lib_save_LIBS
11296fi
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11298$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11299if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11300  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11301fi
11302
11303
11304fi
11305
11306
11307fi
11308
11309
11310fi
11311
11312
11313fi
11314
11315
11316fi
11317
11318    ;;
11319  esac
11320
11321  if test "x$lt_cv_dlopen" != xno; then
11322    enable_dlopen=yes
11323  else
11324    enable_dlopen=no
11325  fi
11326
11327  case $lt_cv_dlopen in
11328  dlopen)
11329    save_CPPFLAGS="$CPPFLAGS"
11330    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11331
11332    save_LDFLAGS="$LDFLAGS"
11333    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11334
11335    save_LIBS="$LIBS"
11336    LIBS="$lt_cv_dlopen_libs $LIBS"
11337
11338    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11339$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11340if test "${lt_cv_dlopen_self+set}" = set; then :
11341  $as_echo_n "(cached) " >&6
11342else
11343  	  if test "$cross_compiling" = yes; then :
11344  lt_cv_dlopen_self=cross
11345else
11346  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11347  lt_status=$lt_dlunknown
11348  cat > conftest.$ac_ext <<_LT_EOF
11349#line 11349 "configure"
11350#include "confdefs.h"
11351
11352#if HAVE_DLFCN_H
11353#include <dlfcn.h>
11354#endif
11355
11356#include <stdio.h>
11357
11358#ifdef RTLD_GLOBAL
11359#  define LT_DLGLOBAL		RTLD_GLOBAL
11360#else
11361#  ifdef DL_GLOBAL
11362#    define LT_DLGLOBAL		DL_GLOBAL
11363#  else
11364#    define LT_DLGLOBAL		0
11365#  endif
11366#endif
11367
11368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11369   find out it does not work in some platform. */
11370#ifndef LT_DLLAZY_OR_NOW
11371#  ifdef RTLD_LAZY
11372#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11373#  else
11374#    ifdef DL_LAZY
11375#      define LT_DLLAZY_OR_NOW		DL_LAZY
11376#    else
11377#      ifdef RTLD_NOW
11378#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11379#      else
11380#        ifdef DL_NOW
11381#          define LT_DLLAZY_OR_NOW	DL_NOW
11382#        else
11383#          define LT_DLLAZY_OR_NOW	0
11384#        endif
11385#      endif
11386#    endif
11387#  endif
11388#endif
11389
11390void fnord() { int i=42;}
11391int main ()
11392{
11393  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11394  int status = $lt_dlunknown;
11395
11396  if (self)
11397    {
11398      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11399      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11400      /* dlclose (self); */
11401    }
11402  else
11403    puts (dlerror ());
11404
11405  return status;
11406}
11407_LT_EOF
11408  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11409  (eval $ac_link) 2>&5
11410  ac_status=$?
11411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11412  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11413    (./conftest; exit; ) >&5 2>/dev/null
11414    lt_status=$?
11415    case x$lt_status in
11416      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11417      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11418      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11419    esac
11420  else :
11421    # compilation failed
11422    lt_cv_dlopen_self=no
11423  fi
11424fi
11425rm -fr conftest*
11426
11427
11428fi
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11430$as_echo "$lt_cv_dlopen_self" >&6; }
11431
11432    if test "x$lt_cv_dlopen_self" = xyes; then
11433      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11434      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11435$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11436if test "${lt_cv_dlopen_self_static+set}" = set; then :
11437  $as_echo_n "(cached) " >&6
11438else
11439  	  if test "$cross_compiling" = yes; then :
11440  lt_cv_dlopen_self_static=cross
11441else
11442  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11443  lt_status=$lt_dlunknown
11444  cat > conftest.$ac_ext <<_LT_EOF
11445#line 11445 "configure"
11446#include "confdefs.h"
11447
11448#if HAVE_DLFCN_H
11449#include <dlfcn.h>
11450#endif
11451
11452#include <stdio.h>
11453
11454#ifdef RTLD_GLOBAL
11455#  define LT_DLGLOBAL		RTLD_GLOBAL
11456#else
11457#  ifdef DL_GLOBAL
11458#    define LT_DLGLOBAL		DL_GLOBAL
11459#  else
11460#    define LT_DLGLOBAL		0
11461#  endif
11462#endif
11463
11464/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11465   find out it does not work in some platform. */
11466#ifndef LT_DLLAZY_OR_NOW
11467#  ifdef RTLD_LAZY
11468#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11469#  else
11470#    ifdef DL_LAZY
11471#      define LT_DLLAZY_OR_NOW		DL_LAZY
11472#    else
11473#      ifdef RTLD_NOW
11474#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11475#      else
11476#        ifdef DL_NOW
11477#          define LT_DLLAZY_OR_NOW	DL_NOW
11478#        else
11479#          define LT_DLLAZY_OR_NOW	0
11480#        endif
11481#      endif
11482#    endif
11483#  endif
11484#endif
11485
11486void fnord() { int i=42;}
11487int main ()
11488{
11489  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11490  int status = $lt_dlunknown;
11491
11492  if (self)
11493    {
11494      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11495      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11496      /* dlclose (self); */
11497    }
11498  else
11499    puts (dlerror ());
11500
11501  return status;
11502}
11503_LT_EOF
11504  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11505  (eval $ac_link) 2>&5
11506  ac_status=$?
11507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11509    (./conftest; exit; ) >&5 2>/dev/null
11510    lt_status=$?
11511    case x$lt_status in
11512      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11513      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11514      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11515    esac
11516  else :
11517    # compilation failed
11518    lt_cv_dlopen_self_static=no
11519  fi
11520fi
11521rm -fr conftest*
11522
11523
11524fi
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11526$as_echo "$lt_cv_dlopen_self_static" >&6; }
11527    fi
11528
11529    CPPFLAGS="$save_CPPFLAGS"
11530    LDFLAGS="$save_LDFLAGS"
11531    LIBS="$save_LIBS"
11532    ;;
11533  esac
11534
11535  case $lt_cv_dlopen_self in
11536  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11537  *) enable_dlopen_self=unknown ;;
11538  esac
11539
11540  case $lt_cv_dlopen_self_static in
11541  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11542  *) enable_dlopen_self_static=unknown ;;
11543  esac
11544fi
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562striplib=
11563old_striplib=
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11565$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11566if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11567  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11568  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11570$as_echo "yes" >&6; }
11571else
11572# FIXME - insert some real tests, host_os isn't really good enough
11573  case $host_os in
11574  darwin*)
11575    if test -n "$STRIP" ; then
11576      striplib="$STRIP -x"
11577      old_striplib="$STRIP -S"
11578      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11579$as_echo "yes" >&6; }
11580    else
11581      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582$as_echo "no" >&6; }
11583    fi
11584    ;;
11585  *)
11586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587$as_echo "no" >&6; }
11588    ;;
11589  esac
11590fi
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603  # Report which library types will actually be built
11604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11605$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11607$as_echo "$can_build_shared" >&6; }
11608
11609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11610$as_echo_n "checking whether to build shared libraries... " >&6; }
11611  test "$can_build_shared" = "no" && enable_shared=no
11612
11613  # On AIX, shared libraries and static libraries use the same namespace, and
11614  # are all built from PIC.
11615  case $host_os in
11616  aix3*)
11617    test "$enable_shared" = yes && enable_static=no
11618    if test -n "$RANLIB"; then
11619      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11620      postinstall_cmds='$RANLIB $lib'
11621    fi
11622    ;;
11623
11624  aix[4-9]*)
11625    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11626      test "$enable_shared" = yes && enable_static=no
11627    fi
11628    ;;
11629  esac
11630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11631$as_echo "$enable_shared" >&6; }
11632
11633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11634$as_echo_n "checking whether to build static libraries... " >&6; }
11635  # Make sure either enable_shared or enable_static is yes.
11636  test "$enable_shared" = yes || enable_static=yes
11637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11638$as_echo "$enable_static" >&6; }
11639
11640
11641
11642
11643fi
11644ac_ext=c
11645ac_cpp='$CPP $CPPFLAGS'
11646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11648ac_compiler_gnu=$ac_cv_c_compiler_gnu
11649
11650CC="$lt_save_CC"
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664        ac_config_commands="$ac_config_commands libtool"
11665
11666
11667
11668
11669# Only expand once:
11670
11671
11672
11673
11674# dolt, a replacement for libtool
11675# Josh Triplett <josh@freedesktop.org>
11676# Extract the first word of "bash", so it can be a program name with args.
11677set dummy bash; ac_word=$2
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679$as_echo_n "checking for $ac_word... " >&6; }
11680if test "${ac_cv_path_DOLT_BASH+set}" = set; then :
11681  $as_echo_n "(cached) " >&6
11682else
11683  case $DOLT_BASH in
11684  [\\/]* | ?:[\\/]*)
11685  ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
11686  ;;
11687  *)
11688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689for as_dir in $PATH
11690do
11691  IFS=$as_save_IFS
11692  test -z "$as_dir" && as_dir=.
11693    for ac_exec_ext in '' $ac_executable_extensions; do
11694  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11695    ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
11696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11697    break 2
11698  fi
11699done
11700  done
11701IFS=$as_save_IFS
11702
11703  ;;
11704esac
11705fi
11706DOLT_BASH=$ac_cv_path_DOLT_BASH
11707if test -n "$DOLT_BASH"; then
11708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOLT_BASH" >&5
11709$as_echo "$DOLT_BASH" >&6; }
11710else
11711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712$as_echo "no" >&6; }
11713fi
11714
11715
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5
11717$as_echo_n "checking if dolt supports this host... " >&6; }
11718dolt_supported=yes
11719if test x$DOLT_BASH = x; then
11720    dolt_supported=no
11721fi
11722if test x$GCC != xyes; then
11723    dolt_supported=no
11724fi
11725case $host in
11726i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
11727|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
11728    pic_options='-fPIC'
11729    ;;
11730i?86-pc-cygwin*)
11731    pic_options='-DDLL_EXPORT'
11732    ;;
11733i?86-apple-darwin*)
11734    pic_options='-fno-common'
11735    ;;
11736*)
11737    dolt_supported=no
11738    ;;
11739esac
11740if test x$dolt_supported = xno ; then
11741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, falling back to libtool" >&5
11742$as_echo "no, falling back to libtool" >&6; }
11743    LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
11744    LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
11745else
11746    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, replacing libtool" >&5
11747$as_echo "yes, replacing libtool" >&6; }
11748
11749    cat <<__DOLTCOMPILE__EOF__ >doltcompile
11750#!$DOLT_BASH
11751__DOLTCOMPILE__EOF__
11752    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11753args=("$@")
11754for ((arg=0; arg<${#args[@]}; arg++)) ; do
11755    if test x"${args[$arg]}" = x-o ; then
11756        objarg=$((arg+1))
11757        break
11758    fi
11759done
11760if test x$objarg = x ; then
11761    echo 'Error: no -o on compiler command line' 1>&2
11762    exit 1
11763fi
11764lo="${args[$objarg]}"
11765obj="${lo%.lo}"
11766if test x"$lo" = x"$obj" ; then
11767    echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
11768    exit 1
11769fi
11770objbase="${obj##*/}"
11771__DOLTCOMPILE__EOF__
11772
11773    if test x$enable_shared = xyes; then
11774        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11775libobjdir="${obj%$objbase}.libs"
11776if test ! -d "$libobjdir" ; then
11777    mkdir_out="$(mkdir "$libobjdir" 2>&1)"
11778    mkdir_ret=$?
11779    if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
11780	echo "$mkdir_out" 1>&2
11781        exit $mkdir_ret
11782    fi
11783fi
11784pic_object="$libobjdir/$objbase.o"
11785args[$objarg]="$pic_object"
11786__DOLTCOMPILE__EOF__
11787    cat <<__DOLTCOMPILE__EOF__ >>doltcompile
11788"\${args[@]}" $pic_options -DPIC || exit \$?
11789__DOLTCOMPILE__EOF__
11790    fi
11791
11792    if test x$enable_static = xyes; then
11793        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11794non_pic_object="$obj.o"
11795args[$objarg]="$non_pic_object"
11796__DOLTCOMPILE__EOF__
11797        if test x$enable_shared = xyes; then
11798            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11799"${args[@]}" >/dev/null 2>&1 || exit $?
11800__DOLTCOMPILE__EOF__
11801        else
11802            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11803"${args[@]}" || exit $?
11804__DOLTCOMPILE__EOF__
11805        fi
11806    fi
11807
11808    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11809{
11810echo "# $lo - a libtool object file"
11811echo "# Generated by doltcompile, not libtool"
11812__DOLTCOMPILE__EOF__
11813
11814    if test x$enable_shared = xyes; then
11815        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11816echo "pic_object='.libs/${objbase}.o'"
11817__DOLTCOMPILE__EOF__
11818    else
11819        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11820echo pic_object=none
11821__DOLTCOMPILE__EOF__
11822    fi
11823
11824    if test x$enable_static = xyes; then
11825        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11826echo "non_pic_object='${objbase}.o'"
11827__DOLTCOMPILE__EOF__
11828    else
11829        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11830echo non_pic_object=none
11831__DOLTCOMPILE__EOF__
11832    fi
11833
11834    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11835} > "$lo"
11836__DOLTCOMPILE__EOF__
11837
11838    chmod +x doltcompile
11839    LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
11840    LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
11841
11842    cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
11843#!$DOLT_BASH
11844__DOLTLIBTOOL__EOF__
11845    cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
11846top_builddir_slash="${0%%doltlibtool}"
11847: ${top_builddir_slash:=./}
11848args=()
11849modeok=false
11850tagok=false
11851for arg in "$@"; do
11852    case "$arg" in
11853        --mode=compile) modeok=true ;;
11854        --tag=CC|--tag=CXX) tagok=true ;;
11855        *) args[${#args[@]}]="$arg" ;;
11856    esac
11857done
11858if $modeok && $tagok ; then
11859    . ${top_builddir_slash}doltcompile "${args[@]}"
11860else
11861    exec ${top_builddir_slash}libtool "$@"
11862fi
11863__DOLTLIBTOOL__EOF__
11864
11865    chmod +x doltlibtool
11866    LIBTOOL='$(top_builddir)/doltlibtool'
11867fi
11868
11869
11870# end dolt
11871
11872ac_ext=c
11873ac_cpp='$CPP $CPPFLAGS'
11874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11876ac_compiler_gnu=$ac_cv_c_compiler_gnu
11877if test -n "$ac_tool_prefix"; then
11878  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11879set dummy ${ac_tool_prefix}gcc; ac_word=$2
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11881$as_echo_n "checking for $ac_word... " >&6; }
11882if test "${ac_cv_prog_CC+set}" = set; then :
11883  $as_echo_n "(cached) " >&6
11884else
11885  if test -n "$CC"; then
11886  ac_cv_prog_CC="$CC" # Let the user override the test.
11887else
11888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889for as_dir in $PATH
11890do
11891  IFS=$as_save_IFS
11892  test -z "$as_dir" && as_dir=.
11893    for ac_exec_ext in '' $ac_executable_extensions; do
11894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11895    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11897    break 2
11898  fi
11899done
11900  done
11901IFS=$as_save_IFS
11902
11903fi
11904fi
11905CC=$ac_cv_prog_CC
11906if test -n "$CC"; then
11907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11908$as_echo "$CC" >&6; }
11909else
11910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911$as_echo "no" >&6; }
11912fi
11913
11914
11915fi
11916if test -z "$ac_cv_prog_CC"; then
11917  ac_ct_CC=$CC
11918  # Extract the first word of "gcc", so it can be a program name with args.
11919set dummy gcc; ac_word=$2
11920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11921$as_echo_n "checking for $ac_word... " >&6; }
11922if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11923  $as_echo_n "(cached) " >&6
11924else
11925  if test -n "$ac_ct_CC"; then
11926  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11927else
11928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929for as_dir in $PATH
11930do
11931  IFS=$as_save_IFS
11932  test -z "$as_dir" && as_dir=.
11933    for ac_exec_ext in '' $ac_executable_extensions; do
11934  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11935    ac_cv_prog_ac_ct_CC="gcc"
11936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11937    break 2
11938  fi
11939done
11940  done
11941IFS=$as_save_IFS
11942
11943fi
11944fi
11945ac_ct_CC=$ac_cv_prog_ac_ct_CC
11946if test -n "$ac_ct_CC"; then
11947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11948$as_echo "$ac_ct_CC" >&6; }
11949else
11950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951$as_echo "no" >&6; }
11952fi
11953
11954  if test "x$ac_ct_CC" = x; then
11955    CC=""
11956  else
11957    case $cross_compiling:$ac_tool_warned in
11958yes:)
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11961ac_tool_warned=yes ;;
11962esac
11963    CC=$ac_ct_CC
11964  fi
11965else
11966  CC="$ac_cv_prog_CC"
11967fi
11968
11969if test -z "$CC"; then
11970          if test -n "$ac_tool_prefix"; then
11971    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11972set dummy ${ac_tool_prefix}cc; ac_word=$2
11973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974$as_echo_n "checking for $ac_word... " >&6; }
11975if test "${ac_cv_prog_CC+set}" = set; then :
11976  $as_echo_n "(cached) " >&6
11977else
11978  if test -n "$CC"; then
11979  ac_cv_prog_CC="$CC" # Let the user override the test.
11980else
11981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982for as_dir in $PATH
11983do
11984  IFS=$as_save_IFS
11985  test -z "$as_dir" && as_dir=.
11986    for ac_exec_ext in '' $ac_executable_extensions; do
11987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11988    ac_cv_prog_CC="${ac_tool_prefix}cc"
11989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11990    break 2
11991  fi
11992done
11993  done
11994IFS=$as_save_IFS
11995
11996fi
11997fi
11998CC=$ac_cv_prog_CC
11999if test -n "$CC"; then
12000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12001$as_echo "$CC" >&6; }
12002else
12003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004$as_echo "no" >&6; }
12005fi
12006
12007
12008  fi
12009fi
12010if test -z "$CC"; then
12011  # Extract the first word of "cc", so it can be a program name with args.
12012set dummy cc; ac_word=$2
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12014$as_echo_n "checking for $ac_word... " >&6; }
12015if test "${ac_cv_prog_CC+set}" = set; then :
12016  $as_echo_n "(cached) " >&6
12017else
12018  if test -n "$CC"; then
12019  ac_cv_prog_CC="$CC" # Let the user override the test.
12020else
12021  ac_prog_rejected=no
12022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023for as_dir in $PATH
12024do
12025  IFS=$as_save_IFS
12026  test -z "$as_dir" && as_dir=.
12027    for ac_exec_ext in '' $ac_executable_extensions; do
12028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12030       ac_prog_rejected=yes
12031       continue
12032     fi
12033    ac_cv_prog_CC="cc"
12034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035    break 2
12036  fi
12037done
12038  done
12039IFS=$as_save_IFS
12040
12041if test $ac_prog_rejected = yes; then
12042  # We found a bogon in the path, so make sure we never use it.
12043  set dummy $ac_cv_prog_CC
12044  shift
12045  if test $# != 0; then
12046    # We chose a different compiler from the bogus one.
12047    # However, it has the same basename, so the bogon will be chosen
12048    # first if we set CC to just the basename; use the full file name.
12049    shift
12050    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12051  fi
12052fi
12053fi
12054fi
12055CC=$ac_cv_prog_CC
12056if test -n "$CC"; then
12057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12058$as_echo "$CC" >&6; }
12059else
12060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061$as_echo "no" >&6; }
12062fi
12063
12064
12065fi
12066if test -z "$CC"; then
12067  if test -n "$ac_tool_prefix"; then
12068  for ac_prog in cl.exe
12069  do
12070    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12071set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073$as_echo_n "checking for $ac_word... " >&6; }
12074if test "${ac_cv_prog_CC+set}" = set; then :
12075  $as_echo_n "(cached) " >&6
12076else
12077  if test -n "$CC"; then
12078  ac_cv_prog_CC="$CC" # Let the user override the test.
12079else
12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
12082do
12083  IFS=$as_save_IFS
12084  test -z "$as_dir" && as_dir=.
12085    for ac_exec_ext in '' $ac_executable_extensions; do
12086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12087    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089    break 2
12090  fi
12091done
12092  done
12093IFS=$as_save_IFS
12094
12095fi
12096fi
12097CC=$ac_cv_prog_CC
12098if test -n "$CC"; then
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12100$as_echo "$CC" >&6; }
12101else
12102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
12104fi
12105
12106
12107    test -n "$CC" && break
12108  done
12109fi
12110if test -z "$CC"; then
12111  ac_ct_CC=$CC
12112  for ac_prog in cl.exe
12113do
12114  # Extract the first word of "$ac_prog", so it can be a program name with args.
12115set dummy $ac_prog; ac_word=$2
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12119  $as_echo_n "(cached) " >&6
12120else
12121  if test -n "$ac_ct_CC"; then
12122  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12123else
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127  IFS=$as_save_IFS
12128  test -z "$as_dir" && as_dir=.
12129    for ac_exec_ext in '' $ac_executable_extensions; do
12130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131    ac_cv_prog_ac_ct_CC="$ac_prog"
12132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133    break 2
12134  fi
12135done
12136  done
12137IFS=$as_save_IFS
12138
12139fi
12140fi
12141ac_ct_CC=$ac_cv_prog_ac_ct_CC
12142if test -n "$ac_ct_CC"; then
12143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12144$as_echo "$ac_ct_CC" >&6; }
12145else
12146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148fi
12149
12150
12151  test -n "$ac_ct_CC" && break
12152done
12153
12154  if test "x$ac_ct_CC" = x; then
12155    CC=""
12156  else
12157    case $cross_compiling:$ac_tool_warned in
12158yes:)
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12161ac_tool_warned=yes ;;
12162esac
12163    CC=$ac_ct_CC
12164  fi
12165fi
12166
12167fi
12168
12169
12170test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12172as_fn_error "no acceptable C compiler found in \$PATH
12173See \`config.log' for more details." "$LINENO" 5; }
12174
12175# Provide some information about the compiler.
12176$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12177set X $ac_compile
12178ac_compiler=$2
12179for ac_option in --version -v -V -qversion; do
12180  { { ac_try="$ac_compiler $ac_option >&5"
12181case "(($ac_try" in
12182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183  *) ac_try_echo=$ac_try;;
12184esac
12185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12186$as_echo "$ac_try_echo"; } >&5
12187  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12188  ac_status=$?
12189  if test -s conftest.err; then
12190    sed '10a\
12191... rest of stderr output deleted ...
12192         10q' conftest.err >conftest.er1
12193    cat conftest.er1 >&5
12194  fi
12195  rm -f conftest.er1 conftest.err
12196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12197  test $ac_status = 0; }
12198done
12199
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12201$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12202if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12203  $as_echo_n "(cached) " >&6
12204else
12205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206/* end confdefs.h.  */
12207
12208int
12209main ()
12210{
12211#ifndef __GNUC__
12212       choke me
12213#endif
12214
12215  ;
12216  return 0;
12217}
12218_ACEOF
12219if ac_fn_c_try_compile "$LINENO"; then :
12220  ac_compiler_gnu=yes
12221else
12222  ac_compiler_gnu=no
12223fi
12224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12225ac_cv_c_compiler_gnu=$ac_compiler_gnu
12226
12227fi
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12229$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12230if test $ac_compiler_gnu = yes; then
12231  GCC=yes
12232else
12233  GCC=
12234fi
12235ac_test_CFLAGS=${CFLAGS+set}
12236ac_save_CFLAGS=$CFLAGS
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12238$as_echo_n "checking whether $CC accepts -g... " >&6; }
12239if test "${ac_cv_prog_cc_g+set}" = set; then :
12240  $as_echo_n "(cached) " >&6
12241else
12242  ac_save_c_werror_flag=$ac_c_werror_flag
12243   ac_c_werror_flag=yes
12244   ac_cv_prog_cc_g=no
12245   CFLAGS="-g"
12246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247/* end confdefs.h.  */
12248
12249int
12250main ()
12251{
12252
12253  ;
12254  return 0;
12255}
12256_ACEOF
12257if ac_fn_c_try_compile "$LINENO"; then :
12258  ac_cv_prog_cc_g=yes
12259else
12260  CFLAGS=""
12261      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262/* end confdefs.h.  */
12263
12264int
12265main ()
12266{
12267
12268  ;
12269  return 0;
12270}
12271_ACEOF
12272if ac_fn_c_try_compile "$LINENO"; then :
12273
12274else
12275  ac_c_werror_flag=$ac_save_c_werror_flag
12276	 CFLAGS="-g"
12277	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278/* end confdefs.h.  */
12279
12280int
12281main ()
12282{
12283
12284  ;
12285  return 0;
12286}
12287_ACEOF
12288if ac_fn_c_try_compile "$LINENO"; then :
12289  ac_cv_prog_cc_g=yes
12290fi
12291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292fi
12293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12294fi
12295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296   ac_c_werror_flag=$ac_save_c_werror_flag
12297fi
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12299$as_echo "$ac_cv_prog_cc_g" >&6; }
12300if test "$ac_test_CFLAGS" = set; then
12301  CFLAGS=$ac_save_CFLAGS
12302elif test $ac_cv_prog_cc_g = yes; then
12303  if test "$GCC" = yes; then
12304    CFLAGS="-g -O2"
12305  else
12306    CFLAGS="-g"
12307  fi
12308else
12309  if test "$GCC" = yes; then
12310    CFLAGS="-O2"
12311  else
12312    CFLAGS=
12313  fi
12314fi
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12316$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12317if test "${ac_cv_prog_cc_c89+set}" = set; then :
12318  $as_echo_n "(cached) " >&6
12319else
12320  ac_cv_prog_cc_c89=no
12321ac_save_CC=$CC
12322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323/* end confdefs.h.  */
12324#include <stdarg.h>
12325#include <stdio.h>
12326#include <sys/types.h>
12327#include <sys/stat.h>
12328/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12329struct buf { int x; };
12330FILE * (*rcsopen) (struct buf *, struct stat *, int);
12331static char *e (p, i)
12332     char **p;
12333     int i;
12334{
12335  return p[i];
12336}
12337static char *f (char * (*g) (char **, int), char **p, ...)
12338{
12339  char *s;
12340  va_list v;
12341  va_start (v,p);
12342  s = g (p, va_arg (v,int));
12343  va_end (v);
12344  return s;
12345}
12346
12347/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12348   function prototypes and stuff, but not '\xHH' hex character constants.
12349   These don't provoke an error unfortunately, instead are silently treated
12350   as 'x'.  The following induces an error, until -std is added to get
12351   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12352   array size at least.  It's necessary to write '\x00'==0 to get something
12353   that's true only with -std.  */
12354int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12355
12356/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12357   inside strings and character constants.  */
12358#define FOO(x) 'x'
12359int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12360
12361int test (int i, double x);
12362struct s1 {int (*f) (int a);};
12363struct s2 {int (*f) (double a);};
12364int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12365int argc;
12366char **argv;
12367int
12368main ()
12369{
12370return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12371  ;
12372  return 0;
12373}
12374_ACEOF
12375for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12376	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12377do
12378  CC="$ac_save_CC $ac_arg"
12379  if ac_fn_c_try_compile "$LINENO"; then :
12380  ac_cv_prog_cc_c89=$ac_arg
12381fi
12382rm -f core conftest.err conftest.$ac_objext
12383  test "x$ac_cv_prog_cc_c89" != "xno" && break
12384done
12385rm -f conftest.$ac_ext
12386CC=$ac_save_CC
12387
12388fi
12389# AC_CACHE_VAL
12390case "x$ac_cv_prog_cc_c89" in
12391  x)
12392    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12393$as_echo "none needed" >&6; } ;;
12394  xno)
12395    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12396$as_echo "unsupported" >&6; } ;;
12397  *)
12398    CC="$CC $ac_cv_prog_cc_c89"
12399    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12400$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12401esac
12402if test "x$ac_cv_prog_cc_c89" != xno; then :
12403
12404fi
12405
12406ac_ext=c
12407ac_cpp='$CPP $CPPFLAGS'
12408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12410ac_compiler_gnu=$ac_cv_c_compiler_gnu
12411
12412depcc="$CC"   am_compiler_list=
12413
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12415$as_echo_n "checking dependency style of $depcc... " >&6; }
12416if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12417  $as_echo_n "(cached) " >&6
12418else
12419  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12420  # We make a subdir and do the tests there.  Otherwise we can end up
12421  # making bogus files that we don't know about and never remove.  For
12422  # instance it was reported that on HP-UX the gcc test will end up
12423  # making a dummy file named `D' -- because `-MD' means `put the output
12424  # in D'.
12425  mkdir conftest.dir
12426  # Copy depcomp to subdir because otherwise we won't find it if we're
12427  # using a relative directory.
12428  cp "$am_depcomp" conftest.dir
12429  cd conftest.dir
12430  # We will build objects and dependencies in a subdirectory because
12431  # it helps to detect inapplicable dependency modes.  For instance
12432  # both Tru64's cc and ICC support -MD to output dependencies as a
12433  # side effect of compilation, but ICC will put the dependencies in
12434  # the current directory while Tru64 will put them in the object
12435  # directory.
12436  mkdir sub
12437
12438  am_cv_CC_dependencies_compiler_type=none
12439  if test "$am_compiler_list" = ""; then
12440     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12441  fi
12442  am__universal=false
12443  case " $depcc " in #(
12444     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12445     esac
12446
12447  for depmode in $am_compiler_list; do
12448    # Setup a source with many dependencies, because some compilers
12449    # like to wrap large dependency lists on column 80 (with \), and
12450    # we should not choose a depcomp mode which is confused by this.
12451    #
12452    # We need to recreate these files for each test, as the compiler may
12453    # overwrite some of them when testing with obscure command lines.
12454    # This happens at least with the AIX C compiler.
12455    : > sub/conftest.c
12456    for i in 1 2 3 4 5 6; do
12457      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12458      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12459      # Solaris 8's {/usr,}/bin/sh.
12460      touch sub/conftst$i.h
12461    done
12462    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12463
12464    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12465    # mode.  It turns out that the SunPro C++ compiler does not properly
12466    # handle `-M -o', and we need to detect this.  Also, some Intel
12467    # versions had trouble with output in subdirs
12468    am__obj=sub/conftest.${OBJEXT-o}
12469    am__minus_obj="-o $am__obj"
12470    case $depmode in
12471    gcc)
12472      # This depmode causes a compiler race in universal mode.
12473      test "$am__universal" = false || continue
12474      ;;
12475    nosideeffect)
12476      # after this tag, mechanisms are not by side-effect, so they'll
12477      # only be used when explicitly requested
12478      if test "x$enable_dependency_tracking" = xyes; then
12479	continue
12480      else
12481	break
12482      fi
12483      ;;
12484    msvisualcpp | msvcmsys)
12485      # This compiler won't grok `-c -o', but also, the minuso test has
12486      # not run yet.  These depmodes are late enough in the game, and
12487      # so weak that their functioning should not be impacted.
12488      am__obj=conftest.${OBJEXT-o}
12489      am__minus_obj=
12490      ;;
12491    none) break ;;
12492    esac
12493    if depmode=$depmode \
12494       source=sub/conftest.c object=$am__obj \
12495       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12496       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12497         >/dev/null 2>conftest.err &&
12498       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12499       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12500       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12501       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12502      # icc doesn't choke on unknown options, it will just issue warnings
12503      # or remarks (even with -Werror).  So we grep stderr for any message
12504      # that says an option was ignored or not supported.
12505      # When given -MP, icc 7.0 and 7.1 complain thusly:
12506      #   icc: Command line warning: ignoring option '-M'; no argument required
12507      # The diagnosis changed in icc 8.0:
12508      #   icc: Command line remark: option '-MP' not supported
12509      if (grep 'ignoring option' conftest.err ||
12510          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12511        am_cv_CC_dependencies_compiler_type=$depmode
12512        break
12513      fi
12514    fi
12515  done
12516
12517  cd ..
12518  rm -rf conftest.dir
12519else
12520  am_cv_CC_dependencies_compiler_type=none
12521fi
12522
12523fi
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12525$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12526CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12527
12528 if
12529  test "x$enable_dependency_tracking" != xno \
12530  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12531  am__fastdepCC_TRUE=
12532  am__fastdepCC_FALSE='#'
12533else
12534  am__fastdepCC_TRUE='#'
12535  am__fastdepCC_FALSE=
12536fi
12537
12538
12539
12540
12541if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12542	if test -n "$ac_tool_prefix"; then
12543  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12544set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546$as_echo_n "checking for $ac_word... " >&6; }
12547if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12548  $as_echo_n "(cached) " >&6
12549else
12550  case $PKG_CONFIG in
12551  [\\/]* | ?:[\\/]*)
12552  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12553  ;;
12554  *)
12555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $PATH
12557do
12558  IFS=$as_save_IFS
12559  test -z "$as_dir" && as_dir=.
12560    for ac_exec_ext in '' $ac_executable_extensions; do
12561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564    break 2
12565  fi
12566done
12567  done
12568IFS=$as_save_IFS
12569
12570  ;;
12571esac
12572fi
12573PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12574if test -n "$PKG_CONFIG"; then
12575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12576$as_echo "$PKG_CONFIG" >&6; }
12577else
12578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579$as_echo "no" >&6; }
12580fi
12581
12582
12583fi
12584if test -z "$ac_cv_path_PKG_CONFIG"; then
12585  ac_pt_PKG_CONFIG=$PKG_CONFIG
12586  # Extract the first word of "pkg-config", so it can be a program name with args.
12587set dummy pkg-config; ac_word=$2
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589$as_echo_n "checking for $ac_word... " >&6; }
12590if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12591  $as_echo_n "(cached) " >&6
12592else
12593  case $ac_pt_PKG_CONFIG in
12594  [\\/]* | ?:[\\/]*)
12595  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12596  ;;
12597  *)
12598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599for as_dir in $PATH
12600do
12601  IFS=$as_save_IFS
12602  test -z "$as_dir" && as_dir=.
12603    for ac_exec_ext in '' $ac_executable_extensions; do
12604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12605    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607    break 2
12608  fi
12609done
12610  done
12611IFS=$as_save_IFS
12612
12613  ;;
12614esac
12615fi
12616ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12617if test -n "$ac_pt_PKG_CONFIG"; then
12618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12619$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12620else
12621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622$as_echo "no" >&6; }
12623fi
12624
12625  if test "x$ac_pt_PKG_CONFIG" = x; then
12626    PKG_CONFIG=""
12627  else
12628    case $cross_compiling:$ac_tool_warned in
12629yes:)
12630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12632ac_tool_warned=yes ;;
12633esac
12634    PKG_CONFIG=$ac_pt_PKG_CONFIG
12635  fi
12636else
12637  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12638fi
12639
12640fi
12641if test -n "$PKG_CONFIG"; then
12642	_pkg_min_version=0.9.0
12643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12644$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12645	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12646		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12647$as_echo "yes" >&6; }
12648	else
12649		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650$as_echo "no" >&6; }
12651		PKG_CONFIG=""
12652	fi
12653
12654fi
12655
12656if test x"$CC_FOR_BUILD" = x; then
12657	if test x"$cross_compiling" = xyes; then
12658	       for ac_prog in gcc cc
12659do
12660  # Extract the first word of "$ac_prog", so it can be a program name with args.
12661set dummy $ac_prog; ac_word=$2
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663$as_echo_n "checking for $ac_word... " >&6; }
12664if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then :
12665  $as_echo_n "(cached) " >&6
12666else
12667  if test -n "$CC_FOR_BUILD"; then
12668  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
12669else
12670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671for as_dir in $PATH
12672do
12673  IFS=$as_save_IFS
12674  test -z "$as_dir" && as_dir=.
12675    for ac_exec_ext in '' $ac_executable_extensions; do
12676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12677    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
12678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12679    break 2
12680  fi
12681done
12682  done
12683IFS=$as_save_IFS
12684
12685fi
12686fi
12687CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
12688if test -n "$CC_FOR_BUILD"; then
12689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
12690$as_echo "$CC_FOR_BUILD" >&6; }
12691else
12692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693$as_echo "no" >&6; }
12694fi
12695
12696
12697  test -n "$CC_FOR_BUILD" && break
12698done
12699
12700	else
12701	       CC_FOR_BUILD="$CC"
12702	fi
12703fi
12704
12705
12706if test x"$CPPFLAGS_FOR_BUILD" = x; then
12707	if test ! x"$cross_compiling" = xyes; then
12708		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
12709	fi
12710fi
12711
12712
12713if test x"$CFLAGS_FOR_BUILD" = x; then
12714	if test ! x"$cross_compiling" = xyes; then
12715		CFLAGS_FOR_BUILD=${CFLAGS}
12716	fi
12717fi
12718
12719
12720if test x"$LDFLAGS_FOR_BUILD" = x; then
12721	if test ! x"$cross_compiling" = xyes; then
12722		LDFLAGS_FOR_BUILD=${LDFLAGS}
12723	fi
12724fi
12725
12726
12727
12728
12729for ac_prog in cpp
12730do
12731  # Extract the first word of "$ac_prog", so it can be a program name with args.
12732set dummy $ac_prog; ac_word=$2
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734$as_echo_n "checking for $ac_word... " >&6; }
12735if test "${ac_cv_path_RAWCPP+set}" = set; then :
12736  $as_echo_n "(cached) " >&6
12737else
12738  case $RAWCPP in
12739  [\\/]* | ?:[\\/]*)
12740  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12741  ;;
12742  *)
12743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12745for as_dir in $as_dummy
12746do
12747  IFS=$as_save_IFS
12748  test -z "$as_dir" && as_dir=.
12749    for ac_exec_ext in '' $ac_executable_extensions; do
12750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12751    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753    break 2
12754  fi
12755done
12756  done
12757IFS=$as_save_IFS
12758
12759  ;;
12760esac
12761fi
12762RAWCPP=$ac_cv_path_RAWCPP
12763if test -n "$RAWCPP"; then
12764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
12765$as_echo "$RAWCPP" >&6; }
12766else
12767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768$as_echo "no" >&6; }
12769fi
12770
12771
12772  test -n "$RAWCPP" && break
12773done
12774test -n "$RAWCPP" || RAWCPP="${CPP}"
12775
12776
12777# Check for flag to avoid builtin definitions - assumes unix is predefined,
12778# which is not the best choice for supporting other OS'es, but covers most
12779# of the ones we need for now.
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
12781$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
12782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783/* end confdefs.h.  */
12784Does cpp redefine unix ?
12785_ACEOF
12786if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12787	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788$as_echo "no" >&6; }
12789else
12790	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12791		RAWCPPFLAGS=-undef
12792		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12793$as_echo "yes" >&6; }
12794	# under Cygwin unix is still defined even with -undef
12795	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12796		RAWCPPFLAGS="-undef -ansi"
12797		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
12798$as_echo "yes, with -ansi" >&6; }
12799	else
12800		as_fn_error "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
12801	fi
12802fi
12803rm -f conftest.$ac_ext
12804
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
12806$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
12807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808/* end confdefs.h.  */
12809Does cpp preserve   "whitespace"?
12810_ACEOF
12811if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12812	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813$as_echo "no" >&6; }
12814else
12815	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12816		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12817		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12818$as_echo "yes" >&6; }
12819	else
12820		as_fn_error "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
12821	fi
12822fi
12823rm -f conftest.$ac_ext
12824
12825
12826
12827# Find perl for "make check" tests in nls/localerules.in
12828
12829# Check whether --with-perl was given.
12830if test "${with_perl+set}" = set; then :
12831  withval=$with_perl; PERL=$withval ; { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl" >&5
12832$as_echo_n "checking perl... " >&6; } ;
12833	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (from --with-perl) $PERL" >&5
12834$as_echo "(from --with-perl) $PERL" >&6; }
12835else
12836  for ac_prog in perl
12837do
12838  # Extract the first word of "$ac_prog", so it can be a program name with args.
12839set dummy $ac_prog; ac_word=$2
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841$as_echo_n "checking for $ac_word... " >&6; }
12842if test "${ac_cv_prog_PERL+set}" = set; then :
12843  $as_echo_n "(cached) " >&6
12844else
12845  if test -n "$PERL"; then
12846  ac_cv_prog_PERL="$PERL" # Let the user override the test.
12847else
12848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849for as_dir in $PATH
12850do
12851  IFS=$as_save_IFS
12852  test -z "$as_dir" && as_dir=.
12853    for ac_exec_ext in '' $ac_executable_extensions; do
12854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12855    ac_cv_prog_PERL="$ac_prog"
12856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12857    break 2
12858  fi
12859done
12860  done
12861IFS=$as_save_IFS
12862
12863fi
12864fi
12865PERL=$ac_cv_prog_PERL
12866if test -n "$PERL"; then
12867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12868$as_echo "$PERL" >&6; }
12869else
12870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871$as_echo "no" >&6; }
12872fi
12873
12874
12875  test -n "$PERL" && break
12876done
12877test -n "$PERL" || PERL="no"
12878
12879fi
12880
12881 if test x$PERL != xno; then
12882  HAVE_PERL_TRUE=
12883  HAVE_PERL_FALSE='#'
12884else
12885  HAVE_PERL_TRUE='#'
12886  HAVE_PERL_FALSE=
12887fi
12888
12889
12890# Build with XCB support?
12891
12892# Check whether --with-xcb was given.
12893if test "${with_xcb+set}" = set; then :
12894  withval=$with_xcb; ac_cv_use_xcb=$withval
12895else
12896  ac_cv_use_xcb=yes
12897fi
12898
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use XCB" >&5
12900$as_echo_n "checking whether to use XCB... " >&6; }
12901if test "${ac_cv_use_xcb+set}" = set; then :
12902  $as_echo_n "(cached) " >&6
12903else
12904  ac_cv_use_xcb=yes
12905fi
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_xcb" >&5
12907$as_echo "$ac_cv_use_xcb" >&6; }
12908 if test x$ac_cv_use_xcb != xno; then
12909  XCB_TRUE=
12910  XCB_FALSE='#'
12911else
12912  XCB_TRUE='#'
12913  XCB_FALSE=
12914fi
12915
12916
12917# Checks for pkg-config packages
12918
12919# Always required
12920X11_REQUIRES='xproto >= 7.0.13 xextproto xtrans'
12921
12922
12923
12924if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12925	if test -n "$ac_tool_prefix"; then
12926  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12927set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929$as_echo_n "checking for $ac_word... " >&6; }
12930if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12931  $as_echo_n "(cached) " >&6
12932else
12933  case $PKG_CONFIG in
12934  [\\/]* | ?:[\\/]*)
12935  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12936  ;;
12937  *)
12938  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12939for as_dir in $PATH
12940do
12941  IFS=$as_save_IFS
12942  test -z "$as_dir" && as_dir=.
12943    for ac_exec_ext in '' $ac_executable_extensions; do
12944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12945    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12947    break 2
12948  fi
12949done
12950  done
12951IFS=$as_save_IFS
12952
12953  ;;
12954esac
12955fi
12956PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12957if test -n "$PKG_CONFIG"; then
12958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12959$as_echo "$PKG_CONFIG" >&6; }
12960else
12961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962$as_echo "no" >&6; }
12963fi
12964
12965
12966fi
12967if test -z "$ac_cv_path_PKG_CONFIG"; then
12968  ac_pt_PKG_CONFIG=$PKG_CONFIG
12969  # Extract the first word of "pkg-config", so it can be a program name with args.
12970set dummy pkg-config; ac_word=$2
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12972$as_echo_n "checking for $ac_word... " >&6; }
12973if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12974  $as_echo_n "(cached) " >&6
12975else
12976  case $ac_pt_PKG_CONFIG in
12977  [\\/]* | ?:[\\/]*)
12978  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12979  ;;
12980  *)
12981  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12982for as_dir in $PATH
12983do
12984  IFS=$as_save_IFS
12985  test -z "$as_dir" && as_dir=.
12986    for ac_exec_ext in '' $ac_executable_extensions; do
12987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12988    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12990    break 2
12991  fi
12992done
12993  done
12994IFS=$as_save_IFS
12995
12996  ;;
12997esac
12998fi
12999ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13000if test -n "$ac_pt_PKG_CONFIG"; then
13001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13002$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13003else
13004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005$as_echo "no" >&6; }
13006fi
13007
13008  if test "x$ac_pt_PKG_CONFIG" = x; then
13009    PKG_CONFIG=""
13010  else
13011    case $cross_compiling:$ac_tool_warned in
13012yes:)
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13015ac_tool_warned=yes ;;
13016esac
13017    PKG_CONFIG=$ac_pt_PKG_CONFIG
13018  fi
13019else
13020  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13021fi
13022
13023fi
13024if test -n "$PKG_CONFIG"; then
13025	_pkg_min_version=0.9.0
13026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13027$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13028	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13029		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13030$as_echo "yes" >&6; }
13031	else
13032		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033$as_echo "no" >&6; }
13034		PKG_CONFIG=""
13035	fi
13036
13037fi
13038
13039case "$ac_cv_use_xcb" in
13040no)
13041	X11_REQUIRES="${X11_REQUIRES} xau xcmiscproto bigreqsproto"
13042	X11_EXTRA_DEPS="xau"
13043
13044pkg_failed=no
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
13046$as_echo_n "checking for XDMCP... " >&6; }
13047
13048if test -n "$XDMCP_CFLAGS"; then
13049    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
13050 elif test -n "$PKG_CONFIG"; then
13051    if test -n "$PKG_CONFIG" && \
13052    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
13053  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
13054  ac_status=$?
13055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13056  test $ac_status = 0; }; then
13057  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
13058else
13059  pkg_failed=yes
13060fi
13061 else
13062    pkg_failed=untried
13063fi
13064if test -n "$XDMCP_LIBS"; then
13065    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
13066 elif test -n "$PKG_CONFIG"; then
13067    if test -n "$PKG_CONFIG" && \
13068    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
13069  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
13070  ac_status=$?
13071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13072  test $ac_status = 0; }; then
13073  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
13074else
13075  pkg_failed=yes
13076fi
13077 else
13078    pkg_failed=untried
13079fi
13080
13081
13082
13083if test $pkg_failed = yes; then
13084
13085if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13086        _pkg_short_errors_supported=yes
13087else
13088        _pkg_short_errors_supported=no
13089fi
13090        if test $_pkg_short_errors_supported = yes; then
13091	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1`
13092        else
13093	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1`
13094        fi
13095	# Put the nasty error message in config.log where it belongs
13096	echo "$XDMCP_PKG_ERRORS" >&5
13097
13098	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099$as_echo "no" >&6; }
13100                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101$as_echo "no" >&6; }
13102elif test $pkg_failed = untried; then
13103	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104$as_echo "no" >&6; }
13105else
13106	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
13107	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
13108        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13109$as_echo "yes" >&6; }
13110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
13111$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
13112if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then :
13113  $as_echo_n "(cached) " >&6
13114else
13115  ac_check_lib_save_LIBS=$LIBS
13116LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
13117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118/* end confdefs.h.  */
13119
13120/* Override any GCC internal prototype to avoid an error.
13121   Use char because int might match the return type of a GCC
13122   builtin and then its argument prototype would still apply.  */
13123#ifdef __cplusplus
13124extern "C"
13125#endif
13126char XdmcpWrap ();
13127int
13128main ()
13129{
13130return XdmcpWrap ();
13131  ;
13132  return 0;
13133}
13134_ACEOF
13135if ac_fn_c_try_link "$LINENO"; then :
13136  ac_cv_lib_Xdmcp_XdmcpWrap=yes
13137else
13138  ac_cv_lib_Xdmcp_XdmcpWrap=no
13139fi
13140rm -f core conftest.err conftest.$ac_objext \
13141    conftest$ac_exeext conftest.$ac_ext
13142LIBS=$ac_check_lib_save_LIBS
13143fi
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
13145$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
13146if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then :
13147
13148			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
13149$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
13150if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then :
13151  $as_echo_n "(cached) " >&6
13152else
13153  ac_check_lib_save_LIBS=$LIBS
13154LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
13155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156/* end confdefs.h.  */
13157
13158/* Override any GCC internal prototype to avoid an error.
13159   Use char because int might match the return type of a GCC
13160   builtin and then its argument prototype would still apply.  */
13161#ifdef __cplusplus
13162extern "C"
13163#endif
13164char XdmcpWrap ();
13165int
13166main ()
13167{
13168return XdmcpWrap ();
13169  ;
13170  return 0;
13171}
13172_ACEOF
13173if ac_fn_c_try_link "$LINENO"; then :
13174  ac_cv_lib_Xdmcp_XdmcpWrap=yes
13175else
13176  ac_cv_lib_Xdmcp_XdmcpWrap=no
13177fi
13178rm -f core conftest.err conftest.$ac_objext \
13179    conftest$ac_exeext conftest.$ac_ext
13180LIBS=$ac_check_lib_save_LIBS
13181fi
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
13183$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
13184if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then :
13185  xdmauth="yes"
13186else
13187  xdmauth="no"
13188fi
13189
13190			X11_EXTRA_DEPS="$X11_EXTRA_DEPS xdmcp"
13191
13192else
13193
13194			XDMCP_CFLAGS=
13195			XDMCP_LIBS=
13196
13197fi
13198
13199fi
13200
13201$as_echo "#define USE_XCB 0" >>confdefs.h
13202
13203	;;
13204*)
13205	X11_REQUIRES="${X11_REQUIRES} xcb >= 1.1.92"
13206	X11_EXTRA_DEPS="xcb >= 1.1.92"
13207	xdmauth="no" # XCB handles all auth
13208
13209$as_echo "#define USE_XCB 1" >>confdefs.h
13210
13211	;;
13212esac
13213
13214
13215
13216
13217# Transport selection macro from xtrans.m4
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13219$as_echo_n "checking return type of signal handlers... " >&6; }
13220if test "${ac_cv_type_signal+set}" = set; then :
13221  $as_echo_n "(cached) " >&6
13222else
13223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224/* end confdefs.h.  */
13225#include <sys/types.h>
13226#include <signal.h>
13227
13228int
13229main ()
13230{
13231return *(signal (0, 0)) (0) == 1;
13232  ;
13233  return 0;
13234}
13235_ACEOF
13236if ac_fn_c_try_compile "$LINENO"; then :
13237  ac_cv_type_signal=int
13238else
13239  ac_cv_type_signal=void
13240fi
13241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242fi
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13244$as_echo "$ac_cv_type_signal" >&6; }
13245
13246cat >>confdefs.h <<_ACEOF
13247#define RETSIGTYPE $ac_cv_type_signal
13248_ACEOF
13249
13250
13251
13252
13253
13254 case $host_os in
13255	mingw*)	unixdef="no"   ;;
13256	*)	unixdef="yes"  ;;
13257 esac
13258 # Check whether --enable-unix-transport was given.
13259if test "${enable_unix_transport+set}" = set; then :
13260  enableval=$enable_unix_transport; UNIXCONN=$enableval
13261else
13262  UNIXCONN=$unixdef
13263fi
13264
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
13266$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
13267 if test "$UNIXCONN" = "yes"; then
13268
13269$as_echo "#define UNIXCONN 1" >>confdefs.h
13270
13271 fi
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
13273$as_echo "$UNIXCONN" >&6; }
13274 # Check whether --enable-tcp-transport was given.
13275if test "${enable_tcp_transport+set}" = set; then :
13276  enableval=$enable_tcp_transport; TCPCONN=$enableval
13277else
13278  TCPCONN=yes
13279fi
13280
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
13282$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
13284$as_echo "$TCPCONN" >&6; }
13285 if test "$TCPCONN" = "yes"; then
13286
13287$as_echo "#define TCPCONN 1" >>confdefs.h
13288
13289
13290 # SVR4 hides these in libraries other than libc
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13292$as_echo_n "checking for library containing socket... " >&6; }
13293if test "${ac_cv_search_socket+set}" = set; then :
13294  $as_echo_n "(cached) " >&6
13295else
13296  ac_func_search_save_LIBS=$LIBS
13297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298/* end confdefs.h.  */
13299
13300/* Override any GCC internal prototype to avoid an error.
13301   Use char because int might match the return type of a GCC
13302   builtin and then its argument prototype would still apply.  */
13303#ifdef __cplusplus
13304extern "C"
13305#endif
13306char socket ();
13307int
13308main ()
13309{
13310return socket ();
13311  ;
13312  return 0;
13313}
13314_ACEOF
13315for ac_lib in '' socket; do
13316  if test -z "$ac_lib"; then
13317    ac_res="none required"
13318  else
13319    ac_res=-l$ac_lib
13320    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13321  fi
13322  if ac_fn_c_try_link "$LINENO"; then :
13323  ac_cv_search_socket=$ac_res
13324fi
13325rm -f core conftest.err conftest.$ac_objext \
13326    conftest$ac_exeext
13327  if test "${ac_cv_search_socket+set}" = set; then :
13328  break
13329fi
13330done
13331if test "${ac_cv_search_socket+set}" = set; then :
13332
13333else
13334  ac_cv_search_socket=no
13335fi
13336rm conftest.$ac_ext
13337LIBS=$ac_func_search_save_LIBS
13338fi
13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13340$as_echo "$ac_cv_search_socket" >&6; }
13341ac_res=$ac_cv_search_socket
13342if test "$ac_res" != no; then :
13343  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13344
13345fi
13346
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13348$as_echo_n "checking for library containing gethostbyname... " >&6; }
13349if test "${ac_cv_search_gethostbyname+set}" = set; then :
13350  $as_echo_n "(cached) " >&6
13351else
13352  ac_func_search_save_LIBS=$LIBS
13353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354/* end confdefs.h.  */
13355
13356/* Override any GCC internal prototype to avoid an error.
13357   Use char because int might match the return type of a GCC
13358   builtin and then its argument prototype would still apply.  */
13359#ifdef __cplusplus
13360extern "C"
13361#endif
13362char gethostbyname ();
13363int
13364main ()
13365{
13366return gethostbyname ();
13367  ;
13368  return 0;
13369}
13370_ACEOF
13371for ac_lib in '' nsl; do
13372  if test -z "$ac_lib"; then
13373    ac_res="none required"
13374  else
13375    ac_res=-l$ac_lib
13376    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13377  fi
13378  if ac_fn_c_try_link "$LINENO"; then :
13379  ac_cv_search_gethostbyname=$ac_res
13380fi
13381rm -f core conftest.err conftest.$ac_objext \
13382    conftest$ac_exeext
13383  if test "${ac_cv_search_gethostbyname+set}" = set; then :
13384  break
13385fi
13386done
13387if test "${ac_cv_search_gethostbyname+set}" = set; then :
13388
13389else
13390  ac_cv_search_gethostbyname=no
13391fi
13392rm conftest.$ac_ext
13393LIBS=$ac_func_search_save_LIBS
13394fi
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13396$as_echo "$ac_cv_search_gethostbyname" >&6; }
13397ac_res=$ac_cv_search_gethostbyname
13398if test "$ac_res" != no; then :
13399  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13400
13401fi
13402
13403 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
13404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
13405$as_echo_n "checking for main in -lws2_32... " >&6; }
13406if test "${ac_cv_lib_ws2_32_main+set}" = set; then :
13407  $as_echo_n "(cached) " >&6
13408else
13409  ac_check_lib_save_LIBS=$LIBS
13410LIBS="-lws2_32  $LIBS"
13411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412/* end confdefs.h.  */
13413
13414
13415int
13416main ()
13417{
13418return main ();
13419  ;
13420  return 0;
13421}
13422_ACEOF
13423if ac_fn_c_try_link "$LINENO"; then :
13424  ac_cv_lib_ws2_32_main=yes
13425else
13426  ac_cv_lib_ws2_32_main=no
13427fi
13428rm -f core conftest.err conftest.$ac_objext \
13429    conftest$ac_exeext conftest.$ac_ext
13430LIBS=$ac_check_lib_save_LIBS
13431fi
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
13433$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
13434if test "x$ac_cv_lib_ws2_32_main" = x""yes; then :
13435  cat >>confdefs.h <<_ACEOF
13436#define HAVE_LIBWS2_32 1
13437_ACEOF
13438
13439  LIBS="-lws2_32 $LIBS"
13440
13441fi
13442ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
13443
13444 fi
13445
13446 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
13447 # Check whether --enable-ipv6 was given.
13448if test "${enable_ipv6+set}" = set; then :
13449  enableval=$enable_ipv6; IPV6CONN=$enableval
13450else
13451  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13452if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
13453  IPV6CONN=yes
13454else
13455  IPV6CONN=no
13456fi
13457
13458fi
13459
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
13461$as_echo_n "checking if IPv6 support should be built... " >&6; }
13462 if test "$IPV6CONN" = "yes"; then
13463
13464$as_echo "#define IPv6 1" >>confdefs.h
13465
13466 fi
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
13468$as_echo "$IPV6CONN" >&6; }
13469
13470 # 4.3BSD-Reno added a new member to struct sockaddr_in
13471 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
13472#include <sys/types.h>
13473#include <sys/socket.h>
13474#include <netinet/in.h>
13475
13476"
13477if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
13478
13479$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
13480
13481fi
13482
13483
13484 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
13485 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13486$ac_includes_default
13487#include <sys/socket.h>
13488"
13489if test "x$ac_cv_type_socklen_t" = x""yes; then :
13490
13491cat >>confdefs.h <<_ACEOF
13492#define HAVE_SOCKLEN_T 1
13493_ACEOF
13494
13495
13496fi
13497
13498
13499
13500 fi
13501 case $host_os in
13502	solaris*|sco*|sysv4*)	localdef="yes" ;;
13503	*)			localdef="no"  ;;
13504 esac
13505 # Check whether --enable-local-transport was given.
13506if test "${enable_local_transport+set}" = set; then :
13507  enableval=$enable_local_transport; LOCALCONN=$enableval
13508else
13509  LOCALCONN=$localdef
13510fi
13511
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
13513$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
13515$as_echo "$LOCALCONN" >&6; }
13516 if test "$LOCALCONN" = "yes"; then
13517
13518$as_echo "#define LOCALCONN 1" >>confdefs.h
13519
13520 fi
13521
13522
13523
13524# Secure RPC detection macro from xtrans.m4
13525
13526 # Check whether --enable-secure-rpc was given.
13527if test "${enable_secure_rpc+set}" = set; then :
13528  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
13529else
13530  SECURE_RPC="try"
13531fi
13532
13533
13534 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
13535	FOUND_SECURE_RPC="no"
13536	for ac_func in authdes_seccreate authdes_create
13537do :
13538  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13539ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13540eval as_val=\$$as_ac_var
13541   if test "x$as_val" = x""yes; then :
13542  cat >>confdefs.h <<_ACEOF
13543#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13544_ACEOF
13545 FOUND_SECURE_RPC="yes"
13546fi
13547done
13548
13549	if test "x$FOUND_SECURE_RPC" = "xno" ; then
13550		if test "x$SECURE_RPC" = "xyes" ; then
13551	as_fn_error "Secure RPC requested, but required functions not found" "$LINENO" 5
13552		fi
13553		SECURE_RPC="no"
13554	else
13555				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
13556$as_echo_n "checking for library containing getsecretkey... " >&6; }
13557if test "${ac_cv_search_getsecretkey+set}" = set; then :
13558  $as_echo_n "(cached) " >&6
13559else
13560  ac_func_search_save_LIBS=$LIBS
13561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562/* end confdefs.h.  */
13563
13564/* Override any GCC internal prototype to avoid an error.
13565   Use char because int might match the return type of a GCC
13566   builtin and then its argument prototype would still apply.  */
13567#ifdef __cplusplus
13568extern "C"
13569#endif
13570char getsecretkey ();
13571int
13572main ()
13573{
13574return getsecretkey ();
13575  ;
13576  return 0;
13577}
13578_ACEOF
13579for ac_lib in '' rpcsvc; do
13580  if test -z "$ac_lib"; then
13581    ac_res="none required"
13582  else
13583    ac_res=-l$ac_lib
13584    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13585  fi
13586  if ac_fn_c_try_link "$LINENO"; then :
13587  ac_cv_search_getsecretkey=$ac_res
13588fi
13589rm -f core conftest.err conftest.$ac_objext \
13590    conftest$ac_exeext
13591  if test "${ac_cv_search_getsecretkey+set}" = set; then :
13592  break
13593fi
13594done
13595if test "${ac_cv_search_getsecretkey+set}" = set; then :
13596
13597else
13598  ac_cv_search_getsecretkey=no
13599fi
13600rm conftest.$ac_ext
13601LIBS=$ac_func_search_save_LIBS
13602fi
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
13604$as_echo "$ac_cv_search_getsecretkey" >&6; }
13605ac_res=$ac_cv_search_getsecretkey
13606if test "$ac_res" != no; then :
13607  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13608
13609fi
13610
13611		SECURE_RPC="yes"
13612	fi
13613 fi
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
13615$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
13616 if test "x$SECURE_RPC" = "xyes" ; then
13617
13618$as_echo "#define SECURE_RPC 1" >>confdefs.h
13619
13620 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
13622$as_echo "$SECURE_RPC" >&6; }
13623
13624
13625# Preferred order to try transports for local connections
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what order to try transports in for local connections" >&5
13627$as_echo_n "checking what order to try transports in for local connections... " >&6; }
13628DEFAULT_LOCAL_TRANS=""
13629case $host_os in
13630	solaris*)
13631		# On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were
13632		# faster than Unix domain sockets, but on Solaris 10 & later,
13633		# Unix domain sockets are faster now.
13634		if test "$UNIXCONN" = "yes" ; then
13635			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13636				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13637			fi
13638			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS"
13639		fi
13640		if test "$LOCALCONN" = "yes" ; then
13641			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13642				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13643			fi
13644			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS"
13645		fi
13646		if test "$TCPCONN" = "yes" ; then
13647			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13648				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13649			fi
13650			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
13651		fi
13652		;;
13653	linux*)
13654		# LOCAL_TRANS is used for abstract sockets.
13655		if test "$UNIXCONN" = "yes" ; then
13656			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13657				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13658			fi
13659			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS,UNIX_TRANS"
13660		fi
13661		if test "$TCPCONN" = "yes" ; then
13662			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13663				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13664			fi
13665			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
13666		fi
13667		;;
13668	*)
13669		if test "$LOCALCONN" = "yes" ; then
13670			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13671				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13672			fi
13673			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS"
13674		fi
13675		if test "$UNIXCONN" = "yes" ; then
13676			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13677				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13678			fi
13679			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS"
13680		fi
13681		if test "$TCPCONN" = "yes" ; then
13682			if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
13683				DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
13684			fi
13685			DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
13686		fi
13687		;;
13688esac
13689
13690
13691# Check whether --with-local-transport-order was given.
13692if test "${with_local_transport_order+set}" = set; then :
13693  withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval
13694else
13695  LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS
13696fi
13697
13698
13699cat >>confdefs.h <<_ACEOF
13700#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST
13701_ACEOF
13702
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCAL_TRANSPORT_LIST" >&5
13704$as_echo "$LOCAL_TRANSPORT_LIST" >&6; }
13705
13706# Check for dlopen
13707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
13708$as_echo_n "checking if run-time linking is supported... " >&6; }
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13710$as_echo_n "checking for library containing dlopen... " >&6; }
13711if test "${ac_cv_search_dlopen+set}" = set; then :
13712  $as_echo_n "(cached) " >&6
13713else
13714  ac_func_search_save_LIBS=$LIBS
13715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716/* end confdefs.h.  */
13717
13718/* Override any GCC internal prototype to avoid an error.
13719   Use char because int might match the return type of a GCC
13720   builtin and then its argument prototype would still apply.  */
13721#ifdef __cplusplus
13722extern "C"
13723#endif
13724char dlopen ();
13725int
13726main ()
13727{
13728return dlopen ();
13729  ;
13730  return 0;
13731}
13732_ACEOF
13733for ac_lib in '' dl svld; do
13734  if test -z "$ac_lib"; then
13735    ac_res="none required"
13736  else
13737    ac_res=-l$ac_lib
13738    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13739  fi
13740  if ac_fn_c_try_link "$LINENO"; then :
13741  ac_cv_search_dlopen=$ac_res
13742fi
13743rm -f core conftest.err conftest.$ac_objext \
13744    conftest$ac_exeext
13745  if test "${ac_cv_search_dlopen+set}" = set; then :
13746  break
13747fi
13748done
13749if test "${ac_cv_search_dlopen+set}" = set; then :
13750
13751else
13752  ac_cv_search_dlopen=no
13753fi
13754rm conftest.$ac_ext
13755LIBS=$ac_func_search_save_LIBS
13756fi
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13758$as_echo "$ac_cv_search_dlopen" >&6; }
13759ac_res=$ac_cv_search_dlopen
13760if test "$ac_res" != no; then :
13761  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13762
13763fi
13764
13765if test "x$ac_cv_search_dlopen" = xno; then
13766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
13767$as_echo_n "checking for library containing shl_load... " >&6; }
13768if test "${ac_cv_search_shl_load+set}" = set; then :
13769  $as_echo_n "(cached) " >&6
13770else
13771  ac_func_search_save_LIBS=$LIBS
13772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773/* end confdefs.h.  */
13774
13775/* Override any GCC internal prototype to avoid an error.
13776   Use char because int might match the return type of a GCC
13777   builtin and then its argument prototype would still apply.  */
13778#ifdef __cplusplus
13779extern "C"
13780#endif
13781char shl_load ();
13782int
13783main ()
13784{
13785return shl_load ();
13786  ;
13787  return 0;
13788}
13789_ACEOF
13790for ac_lib in '' dld; do
13791  if test -z "$ac_lib"; then
13792    ac_res="none required"
13793  else
13794    ac_res=-l$ac_lib
13795    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13796  fi
13797  if ac_fn_c_try_link "$LINENO"; then :
13798  ac_cv_search_shl_load=$ac_res
13799fi
13800rm -f core conftest.err conftest.$ac_objext \
13801    conftest$ac_exeext
13802  if test "${ac_cv_search_shl_load+set}" = set; then :
13803  break
13804fi
13805done
13806if test "${ac_cv_search_shl_load+set}" = set; then :
13807
13808else
13809  ac_cv_search_shl_load=no
13810fi
13811rm conftest.$ac_ext
13812LIBS=$ac_func_search_save_LIBS
13813fi
13814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
13815$as_echo "$ac_cv_search_shl_load" >&6; }
13816ac_res=$ac_cv_search_shl_load
13817if test "$ac_res" != no; then :
13818  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13819
13820fi
13821
13822	if test "x$ac_cv_search_shl_load" != xno; then
13823
13824$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13825
13826		for ac_header in dl.h
13827do :
13828  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13829if test "x$ac_cv_header_dl_h" = x""yes; then :
13830  cat >>confdefs.h <<_ACEOF
13831#define HAVE_DL_H 1
13832_ACEOF
13833
13834fi
13835
13836done
13837
13838	fi
13839else
13840
13841$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13842
13843	for ac_header in dlfcn.h
13844do :
13845  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13846if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13847  cat >>confdefs.h <<_ACEOF
13848#define HAVE_DLFCN_H 1
13849_ACEOF
13850
13851fi
13852
13853done
13854
13855fi
13856if test x$ac_cv_header_dlcfn_h -o x$ac_cv_header_dl_h; then
13857	HAVE_LOADABLE_MODULES=yes
13858else
13859	HAVE_LOADABLE_MODULES=no
13860fi
13861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
13862$as_echo "$HAVE_LOADABLE_MODULES" >&6; }
13863
13864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
13865$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; }
13866# Check whether --enable-loadable-i18n was given.
13867if test "${enable_loadable_i18n+set}" = set; then :
13868  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
13869else
13870  XLIB_LOADABLE_I18N="no"
13871fi
13872
13873if test x$XLIB_LOADABLE_I18N = xyes; then
13874	if test x$HAVE_LOADABLE_MODULES = xno; then
13875		as_fn_error "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
13876	fi
13877
13878$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h
13879
13880	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
13881
13882fi
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
13884$as_echo "$XLIB_LOADABLE_I18N" >&6; }
13885
13886 if test x$XLIB_LOADABLE_I18N = xyes; then
13887  XLIB_LOADABLE_I18N_TRUE=
13888  XLIB_LOADABLE_I18N_FALSE='#'
13889else
13890  XLIB_LOADABLE_I18N_TRUE='#'
13891  XLIB_LOADABLE_I18N_FALSE=
13892fi
13893
13894
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
13896$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; }
13897# Check whether --enable-loadable-xcursor was given.
13898if test "${enable_loadable_xcursor+set}" = set; then :
13899  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
13900else
13901  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
13902fi
13903
13904if test x$XLIB_LOADABLE_XCURSOR = xyes; then
13905
13906$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
13907
13908fi
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
13910$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; }
13911
13912# Checks for header files.
13913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13914$as_echo_n "checking for ANSI C header files... " >&6; }
13915if test "${ac_cv_header_stdc+set}" = set; then :
13916  $as_echo_n "(cached) " >&6
13917else
13918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919/* end confdefs.h.  */
13920#include <stdlib.h>
13921#include <stdarg.h>
13922#include <string.h>
13923#include <float.h>
13924
13925int
13926main ()
13927{
13928
13929  ;
13930  return 0;
13931}
13932_ACEOF
13933if ac_fn_c_try_compile "$LINENO"; then :
13934  ac_cv_header_stdc=yes
13935else
13936  ac_cv_header_stdc=no
13937fi
13938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939
13940if test $ac_cv_header_stdc = yes; then
13941  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943/* end confdefs.h.  */
13944#include <string.h>
13945
13946_ACEOF
13947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13948  $EGREP "memchr" >/dev/null 2>&1; then :
13949
13950else
13951  ac_cv_header_stdc=no
13952fi
13953rm -f conftest*
13954
13955fi
13956
13957if test $ac_cv_header_stdc = yes; then
13958  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960/* end confdefs.h.  */
13961#include <stdlib.h>
13962
13963_ACEOF
13964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13965  $EGREP "free" >/dev/null 2>&1; then :
13966
13967else
13968  ac_cv_header_stdc=no
13969fi
13970rm -f conftest*
13971
13972fi
13973
13974if test $ac_cv_header_stdc = yes; then
13975  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13976  if test "$cross_compiling" = yes; then :
13977  :
13978else
13979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980/* end confdefs.h.  */
13981#include <ctype.h>
13982#include <stdlib.h>
13983#if ((' ' & 0x0FF) == 0x020)
13984# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13985# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13986#else
13987# define ISLOWER(c) \
13988		   (('a' <= (c) && (c) <= 'i') \
13989		     || ('j' <= (c) && (c) <= 'r') \
13990		     || ('s' <= (c) && (c) <= 'z'))
13991# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13992#endif
13993
13994#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13995int
13996main ()
13997{
13998  int i;
13999  for (i = 0; i < 256; i++)
14000    if (XOR (islower (i), ISLOWER (i))
14001	|| toupper (i) != TOUPPER (i))
14002      return 2;
14003  return 0;
14004}
14005_ACEOF
14006if ac_fn_c_try_run "$LINENO"; then :
14007
14008else
14009  ac_cv_header_stdc=no
14010fi
14011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14012  conftest.$ac_objext conftest.beam conftest.$ac_ext
14013fi
14014
14015fi
14016fi
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14018$as_echo "$ac_cv_header_stdc" >&6; }
14019if test $ac_cv_header_stdc = yes; then
14020
14021$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14022
14023fi
14024
14025for ac_header in sys/select.h
14026do :
14027  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14028if test "x$ac_cv_header_sys_select_h" = x""yes; then :
14029  cat >>confdefs.h <<_ACEOF
14030#define HAVE_SYS_SELECT_H 1
14031_ACEOF
14032
14033fi
14034
14035done
14036
14037
14038# Checks for typedefs, structures, and compiler characteristics.
14039
14040# Checks for library functions.
14041for ac_func in strtol
14042do :
14043  ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
14044if test "x$ac_cv_func_strtol" = x""yes; then :
14045  cat >>confdefs.h <<_ACEOF
14046#define HAVE_STRTOL 1
14047_ACEOF
14048
14049fi
14050done
14051
14052# Used in lcFile.c (see also --enable-xlocaledir settings below)
14053XLOCALEDIR_IS_SAFE="no"
14054ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
14055if test "x$ac_cv_func_issetugid" = x""yes; then :
14056  XLOCALEDIR_IS_SAFE="yes"
14057
14058$as_echo "#define HASSETUGID 1" >>confdefs.h
14059
14060fi
14061
14062ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
14063if test "x$ac_cv_func_getresuid" = x""yes; then :
14064  XLOCALEDIR_IS_SAFE="yes"
14065
14066$as_echo "#define HASGETRESUID 1" >>confdefs.h
14067
14068fi
14069
14070# Used in Font.c
14071ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
14072if test "x$ac_cv_func_shmat" = x""yes; then :
14073
14074$as_echo "#define HAS_SHM 1" >>confdefs.h
14075
14076fi
14077
14078
14079# Checks for system services
14080
14081# arch specific things
14082WCHAR32="1"
14083case $target_alias in
14084  *os2*) os2="true" ; WCHAR32="0" ;;
14085  *) ;;
14086esac
14087
14088
14089 if test x$os2 = xtrue; then
14090  OS2_TRUE=
14091  OS2_FALSE='#'
14092else
14093  OS2_TRUE='#'
14094  OS2_FALSE=
14095fi
14096
14097
14098
14099# Check whether --with-launchd was given.
14100if test "${with_launchd+set}" = set; then :
14101  withval=$with_launchd; LAUNCHD=$withval
14102else
14103  LAUNCHD=auto
14104fi
14105
14106if test "x$LAUNCHD" = xauto; then
14107	unset LAUNCHD
14108	# Extract the first word of "launchd", so it can be a program name with args.
14109set dummy launchd; ac_word=$2
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14111$as_echo_n "checking for $ac_word... " >&6; }
14112if test "${ac_cv_prog_LAUNCHD+set}" = set; then :
14113  $as_echo_n "(cached) " >&6
14114else
14115  if test -n "$LAUNCHD"; then
14116  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
14117else
14118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119for as_dir in $PATH
14120do
14121  IFS=$as_save_IFS
14122  test -z "$as_dir" && as_dir=.
14123    for ac_exec_ext in '' $ac_executable_extensions; do
14124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14125    ac_cv_prog_LAUNCHD="yes"
14126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14127    break 2
14128  fi
14129done
14130  done
14131IFS=$as_save_IFS
14132
14133  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
14134fi
14135fi
14136LAUNCHD=$ac_cv_prog_LAUNCHD
14137if test -n "$LAUNCHD"; then
14138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
14139$as_echo "$LAUNCHD" >&6; }
14140else
14141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142$as_echo "no" >&6; }
14143fi
14144
14145
14146fi
14147
14148if test "x$LAUNCHD" = xyes ; then
14149
14150$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
14151
14152
14153$as_echo "#define TRANS_REOPEN 1" >>confdefs.h
14154
14155fi
14156
14157# Check whether --enable-xthreads was given.
14158if test "${enable_xthreads+set}" = set; then :
14159  enableval=$enable_xthreads; xthreads=$enableval
14160else
14161  xthreads=yes
14162fi
14163
14164
14165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
14166$as_echo_n "checking for getpwuid_r in -lc... " >&6; }
14167if test "${ac_cv_lib_c_getpwuid_r+set}" = set; then :
14168  $as_echo_n "(cached) " >&6
14169else
14170  ac_check_lib_save_LIBS=$LIBS
14171LIBS="-lc  $LIBS"
14172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173/* end confdefs.h.  */
14174
14175/* Override any GCC internal prototype to avoid an error.
14176   Use char because int might match the return type of a GCC
14177   builtin and then its argument prototype would still apply.  */
14178#ifdef __cplusplus
14179extern "C"
14180#endif
14181char getpwuid_r ();
14182int
14183main ()
14184{
14185return getpwuid_r ();
14186  ;
14187  return 0;
14188}
14189_ACEOF
14190if ac_fn_c_try_link "$LINENO"; then :
14191  ac_cv_lib_c_getpwuid_r=yes
14192else
14193  ac_cv_lib_c_getpwuid_r=no
14194fi
14195rm -f core conftest.err conftest.$ac_objext \
14196    conftest$ac_exeext conftest.$ac_ext
14197LIBS=$ac_check_lib_save_LIBS
14198fi
14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
14200$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; }
14201if test "x$ac_cv_lib_c_getpwuid_r" = x""yes; then :
14202  mtsafeapi="yes"
14203else
14204  mtsafeapi="no"
14205fi
14206
14207
14208case x$xthreads in
14209xyes)
14210
14211$as_echo "#define XTHREADS 1" >>confdefs.h
14212
14213	if test x$mtsafeapi = xyes
14214	then
14215
14216$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h
14217
14218	fi
14219	;;
14220*)
14221	;;
14222esac
14223
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
14225$as_echo_n "checking for pthread_self in -lc... " >&6; }
14226if test "${ac_cv_lib_c_pthread_self+set}" = set; then :
14227  $as_echo_n "(cached) " >&6
14228else
14229  ac_check_lib_save_LIBS=$LIBS
14230LIBS="-lc  $LIBS"
14231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232/* end confdefs.h.  */
14233
14234/* Override any GCC internal prototype to avoid an error.
14235   Use char because int might match the return type of a GCC
14236   builtin and then its argument prototype would still apply.  */
14237#ifdef __cplusplus
14238extern "C"
14239#endif
14240char pthread_self ();
14241int
14242main ()
14243{
14244return pthread_self ();
14245  ;
14246  return 0;
14247}
14248_ACEOF
14249if ac_fn_c_try_link "$LINENO"; then :
14250  ac_cv_lib_c_pthread_self=yes
14251else
14252  ac_cv_lib_c_pthread_self=no
14253fi
14254rm -f core conftest.err conftest.$ac_objext \
14255    conftest$ac_exeext conftest.$ac_ext
14256LIBS=$ac_check_lib_save_LIBS
14257fi
14258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
14259$as_echo "$ac_cv_lib_c_pthread_self" >&6; }
14260if test "x$ac_cv_lib_c_pthread_self" = x""yes; then :
14261  thrstubs="no"
14262else
14263  thrstubs="yes"
14264fi
14265
14266 if test x$thrstubs = xyes; then
14267  THRSTUBS_TRUE=
14268  THRSTUBS_FALSE='#'
14269else
14270  THRSTUBS_TRUE='#'
14271  THRSTUBS_FALSE=
14272fi
14273
14274
14275if test x$xthreads = xyes ; then
14276    case $host_os in
14277    linux*|openbsd*|gnu*|k*bsd*-gnu)
14278        XTHREADLIB=-lpthread ;;
14279    netbsd*)
14280	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
14281	XTHREADLIB="-lpthread" ;;
14282    freebsd*)
14283        XTHREAD_CFLAGS="-D_THREAD_SAFE"
14284        XTHREADLIB="-pthread" ;;
14285    dragonfly*)
14286        XTHREADLIB="-pthread" ;;
14287    solaris*)
14288	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
14289    esac
14290fi
14291
14292
14293
14294case x$xdmauth in
14295xyes)
14296	XDMCP_CFLAGS="$XDMCP_CFLAGS -DHASXDMAUTH"
14297	;;
14298xno)
14299	XDMCP_LIBS=""
14300	;;
14301esac
14302
14303
14304
14305ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
14306if test "x$ac_cv_func_poll" = x""yes; then :
14307
14308$as_echo "#define USE_POLL 1" >>confdefs.h
14309
14310fi
14311
14312
14313#
14314# Find keysymdef.h
14315#
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysymdef.h" >&5
14317$as_echo_n "checking keysymdef.h... " >&6; }
14318dir=`$PKG_CONFIG --variable=includedir xproto`
14319KEYSYMDEF="$dir/X11/keysymdef.h"
14320if test -f "$KEYSYMDEF"; then
14321        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEF" >&5
14322$as_echo "$KEYSYMDEF" >&6; }
14323else
14324	as_fn_error "Cannot find keysymdef.h" "$LINENO" 5
14325fi
14326
14327
14328 if test xfalse = xtrue; then
14329  UDC_TRUE=
14330  UDC_FALSE='#'
14331else
14332  UDC_TRUE='#'
14333  UDC_FALSE=
14334fi
14335
14336
14337# Check whether --enable-xcms was given.
14338if test "${enable_xcms+set}" = set; then :
14339  enableval=$enable_xcms; XCMS=$enableval
14340else
14341  XCMS=yes
14342fi
14343
14344 if test x$XCMS = xyes ; then
14345  XCMS_TRUE=
14346  XCMS_FALSE='#'
14347else
14348  XCMS_TRUE='#'
14349  XCMS_FALSE=
14350fi
14351
14352if test x"$XCMS" = "xyes"; then
14353
14354$as_echo "#define XCMS 1" >>confdefs.h
14355
14356fi
14357
14358# Check whether --enable-xlocale was given.
14359if test "${enable_xlocale+set}" = set; then :
14360  enableval=$enable_xlocale; XLOCALE=$enableval
14361else
14362  XLOCALE=yes
14363fi
14364
14365
14366 if  test x$XLOCALE = xyes ; then
14367  XLOCALE_TRUE=
14368  XLOCALE_FALSE='#'
14369else
14370  XLOCALE_TRUE='#'
14371  XLOCALE_FALSE=
14372fi
14373
14374if test x"$XLOCALE" = "xyes"; then
14375
14376$as_echo "#define XLOCALE 1" >>confdefs.h
14377
14378fi
14379
14380# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
14381# don't have either issetugid() or getresuid(), and you need to protect
14382# clients that are setgid or setuid to an id other than 0.
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
14384$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; }
14385# Check whether --enable-xlocaledir was given.
14386if test "${enable_xlocaledir+set}" = set; then :
14387  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
14388else
14389  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
14390fi
14391
14392if test "x$ENABLE_XLOCALEDIR" = "xno"; then
14393
14394$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h
14395
14396fi
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
14398$as_echo "$ENABLE_XLOCALEDIR" >&6; }
14399
14400# Check whether --enable-xf86bigfont was given.
14401if test "${enable_xf86bigfont+set}" = set; then :
14402  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
14403else
14404  XF86BIGFONT="yes"
14405fi
14406
14407if test "x$XF86BIGFONT" = "xyes"; then
14408
14409pkg_failed=no
14410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
14411$as_echo_n "checking for BIGFONT... " >&6; }
14412
14413if test -n "$BIGFONT_CFLAGS"; then
14414    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
14415 elif test -n "$PKG_CONFIG"; then
14416    if test -n "$PKG_CONFIG" && \
14417    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\""; } >&5
14418  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5
14419  ac_status=$?
14420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14421  test $ac_status = 0; }; then
14422  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto" 2>/dev/null`
14423else
14424  pkg_failed=yes
14425fi
14426 else
14427    pkg_failed=untried
14428fi
14429if test -n "$BIGFONT_LIBS"; then
14430    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
14431 elif test -n "$PKG_CONFIG"; then
14432    if test -n "$PKG_CONFIG" && \
14433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\""; } >&5
14434  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5
14435  ac_status=$?
14436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14437  test $ac_status = 0; }; then
14438  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto" 2>/dev/null`
14439else
14440  pkg_failed=yes
14441fi
14442 else
14443    pkg_failed=untried
14444fi
14445
14446
14447
14448if test $pkg_failed = yes; then
14449
14450if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14451        _pkg_short_errors_supported=yes
14452else
14453        _pkg_short_errors_supported=no
14454fi
14455        if test $_pkg_short_errors_supported = yes; then
14456	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto" 2>&1`
14457        else
14458	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto" 2>&1`
14459        fi
14460	# Put the nasty error message in config.log where it belongs
14461	echo "$BIGFONT_PKG_ERRORS" >&5
14462
14463	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464$as_echo "no" >&6; }
14465                XF86BIGFONT="no"
14466elif test $pkg_failed = untried; then
14467	XF86BIGFONT="no"
14468else
14469	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
14470	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
14471        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14472$as_echo "yes" >&6; }
14473
14474$as_echo "#define XF86BIGFONT 1" >>confdefs.h
14475
14476fi
14477
14478
14479fi
14480
14481# Check whether --enable-xkb was given.
14482if test "${enable_xkb+set}" = set; then :
14483  enableval=$enable_xkb; XKB=$enableval
14484else
14485  XKB=yes
14486fi
14487
14488
14489# Check whether --enable-man-pages was given.
14490if test "${enable_man_pages+set}" = set; then :
14491  enableval=$enable_man_pages; LIBMAN=$enableval
14492else
14493  LIBMAN=yes
14494fi
14495
14496
14497if test "x$LIBMAN" != "xyes"; then
14498	LIB_MAN_SUFFIX=$LIBMAN
14499fi
14500
14501 if  test x$LIBMAN '!=' xno ; then
14502  MANPAGES_TRUE=
14503  MANPAGES_FALSE='#'
14504else
14505  MANPAGES_TRUE='#'
14506  MANPAGES_FALSE=
14507fi
14508
14509
14510 if  test x$XKB = xyes ; then
14511  XKB_TRUE=
14512  XKB_FALSE='#'
14513else
14514  XKB_TRUE='#'
14515  XKB_FALSE=
14516fi
14517
14518if test x"$XKB" = "xyes"; then
14519   XKBPROTO_REQUIRES="kbproto"
14520   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
14521
14522$as_echo "#define XKB 1" >>confdefs.h
14523
14524else
14525   XKBPROTO_REQUIRES=""
14526fi
14527
14528
14529
14530
14531
14532  for ac_header in $ac_header_list
14533do :
14534  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14535ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14536"
14537eval as_val=\$$as_ac_Header
14538   if test "x$as_val" = x""yes; then :
14539  cat >>confdefs.h <<_ACEOF
14540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14541_ACEOF
14542
14543fi
14544
14545done
14546
14547
14548
14549
14550
14551
14552
14553
14554for ac_func in getpagesize
14555do :
14556  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14557if test "x$ac_cv_func_getpagesize" = x""yes; then :
14558  cat >>confdefs.h <<_ACEOF
14559#define HAVE_GETPAGESIZE 1
14560_ACEOF
14561
14562fi
14563done
14564
14565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14566$as_echo_n "checking for working mmap... " >&6; }
14567if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
14568  $as_echo_n "(cached) " >&6
14569else
14570  if test "$cross_compiling" = yes; then :
14571  ac_cv_func_mmap_fixed_mapped=no
14572else
14573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574/* end confdefs.h.  */
14575$ac_includes_default
14576/* malloc might have been renamed as rpl_malloc. */
14577#undef malloc
14578
14579/* Thanks to Mike Haertel and Jim Avera for this test.
14580   Here is a matrix of mmap possibilities:
14581	mmap private not fixed
14582	mmap private fixed at somewhere currently unmapped
14583	mmap private fixed at somewhere already mapped
14584	mmap shared not fixed
14585	mmap shared fixed at somewhere currently unmapped
14586	mmap shared fixed at somewhere already mapped
14587   For private mappings, we should verify that changes cannot be read()
14588   back from the file, nor mmap's back from the file at a different
14589   address.  (There have been systems where private was not correctly
14590   implemented like the infamous i386 svr4.0, and systems where the
14591   VM page cache was not coherent with the file system buffer cache
14592   like early versions of FreeBSD and possibly contemporary NetBSD.)
14593   For shared mappings, we should conversely verify that changes get
14594   propagated back to all the places they're supposed to be.
14595
14596   Grep wants private fixed already mapped.
14597   The main things grep needs to know about mmap are:
14598   * does it exist and is it safe to write into the mmap'd area
14599   * how to use it (BSD variants)  */
14600
14601#include <fcntl.h>
14602#include <sys/mman.h>
14603
14604#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14605char *malloc ();
14606#endif
14607
14608/* This mess was copied from the GNU getpagesize.h.  */
14609#ifndef HAVE_GETPAGESIZE
14610# ifdef _SC_PAGESIZE
14611#  define getpagesize() sysconf(_SC_PAGESIZE)
14612# else /* no _SC_PAGESIZE */
14613#  ifdef HAVE_SYS_PARAM_H
14614#   include <sys/param.h>
14615#   ifdef EXEC_PAGESIZE
14616#    define getpagesize() EXEC_PAGESIZE
14617#   else /* no EXEC_PAGESIZE */
14618#    ifdef NBPG
14619#     define getpagesize() NBPG * CLSIZE
14620#     ifndef CLSIZE
14621#      define CLSIZE 1
14622#     endif /* no CLSIZE */
14623#    else /* no NBPG */
14624#     ifdef NBPC
14625#      define getpagesize() NBPC
14626#     else /* no NBPC */
14627#      ifdef PAGESIZE
14628#       define getpagesize() PAGESIZE
14629#      endif /* PAGESIZE */
14630#     endif /* no NBPC */
14631#    endif /* no NBPG */
14632#   endif /* no EXEC_PAGESIZE */
14633#  else /* no HAVE_SYS_PARAM_H */
14634#   define getpagesize() 8192	/* punt totally */
14635#  endif /* no HAVE_SYS_PARAM_H */
14636# endif /* no _SC_PAGESIZE */
14637
14638#endif /* no HAVE_GETPAGESIZE */
14639
14640int
14641main ()
14642{
14643  char *data, *data2, *data3;
14644  int i, pagesize;
14645  int fd, fd2;
14646
14647  pagesize = getpagesize ();
14648
14649  /* First, make a file with some known garbage in it. */
14650  data = (char *) malloc (pagesize);
14651  if (!data)
14652    return 1;
14653  for (i = 0; i < pagesize; ++i)
14654    *(data + i) = rand ();
14655  umask (0);
14656  fd = creat ("conftest.mmap", 0600);
14657  if (fd < 0)
14658    return 2;
14659  if (write (fd, data, pagesize) != pagesize)
14660    return 3;
14661  close (fd);
14662
14663  /* Next, check that the tail of a page is zero-filled.  File must have
14664     non-zero length, otherwise we risk SIGBUS for entire page.  */
14665  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14666  if (fd2 < 0)
14667    return 4;
14668  data2 = "";
14669  if (write (fd2, data2, 1) != 1)
14670    return 5;
14671  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14672  if (data2 == MAP_FAILED)
14673    return 6;
14674  for (i = 0; i < pagesize; ++i)
14675    if (*(data2 + i))
14676      return 7;
14677  close (fd2);
14678  if (munmap (data2, pagesize))
14679    return 8;
14680
14681  /* Next, try to mmap the file at a fixed address which already has
14682     something else allocated at it.  If we can, also make sure that
14683     we see the same garbage.  */
14684  fd = open ("conftest.mmap", O_RDWR);
14685  if (fd < 0)
14686    return 9;
14687  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14688		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
14689    return 10;
14690  for (i = 0; i < pagesize; ++i)
14691    if (*(data + i) != *(data2 + i))
14692      return 11;
14693
14694  /* Finally, make sure that changes to the mapped area do not
14695     percolate back to the file as seen by read().  (This is a bug on
14696     some variants of i386 svr4.0.)  */
14697  for (i = 0; i < pagesize; ++i)
14698    *(data2 + i) = *(data2 + i) + 1;
14699  data3 = (char *) malloc (pagesize);
14700  if (!data3)
14701    return 12;
14702  if (read (fd, data3, pagesize) != pagesize)
14703    return 13;
14704  for (i = 0; i < pagesize; ++i)
14705    if (*(data + i) != *(data3 + i))
14706      return 14;
14707  close (fd);
14708  return 0;
14709}
14710_ACEOF
14711if ac_fn_c_try_run "$LINENO"; then :
14712  ac_cv_func_mmap_fixed_mapped=yes
14713else
14714  ac_cv_func_mmap_fixed_mapped=no
14715fi
14716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14717  conftest.$ac_objext conftest.beam conftest.$ac_ext
14718fi
14719
14720fi
14721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14722$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14723if test $ac_cv_func_mmap_fixed_mapped = yes; then
14724
14725$as_echo "#define HAVE_MMAP 1" >>confdefs.h
14726
14727fi
14728rm -f conftest.mmap conftest.txt
14729
14730composecache_default=$ac_cv_func_mmap_fixed_mapped
14731ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
14732if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
14733
14734else
14735  composecache_default=no
14736fi
14737
14738# Check whether --enable-composecache was given.
14739if test "${enable_composecache+set}" = set; then :
14740  enableval=$enable_composecache; COMPOSECACHE=$enableval
14741else
14742  COMPOSECACHE=$composecache_default
14743fi
14744
14745if test x"$COMPOSECACHE" = "xyes"; then
14746
14747$as_echo "#define COMPOSECACHE 1" >>confdefs.h
14748
14749fi
14750
14751
14752
14753# Allow checking code with lint, sparse, etc.
14754
14755# Check whether --with-lint was given.
14756if test "${with_lint+set}" = set; then :
14757  withval=$with_lint; use_lint=$withval
14758else
14759  use_lint=no
14760fi
14761
14762if test "x$use_lint" = "xyes" ; then
14763	LINT="lint"
14764else
14765	LINT="$use_lint"
14766fi
14767if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
14768    case $LINT in
14769	lint|*/lint)
14770	    case $host_os in
14771		solaris*)
14772			LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
14773			;;
14774	    esac
14775	    ;;
14776    esac
14777fi
14778
14779
14780
14781 if test x$LINT != xno; then
14782  LINT_TRUE=
14783  LINT_FALSE='#'
14784else
14785  LINT_TRUE='#'
14786  LINT_FALSE=
14787fi
14788
14789
14790
14791
14792
14793# Build lint "library" for more indepth checks of programs calling this library
14794# Check whether --enable-lint-library was given.
14795if test "${enable_lint_library+set}" = set; then :
14796  enableval=$enable_lint_library; make_lint_lib=$enableval
14797else
14798  make_lint_lib=no
14799fi
14800
14801if test "x$make_lint_lib" != "xno" ; then
14802	if test "x$LINT" = "xno" ; then
14803		as_fn_error "Cannot make lint library without --with-lint" "$LINENO" 5
14804	fi
14805	if test "x$make_lint_lib" = "xyes" ; then
14806		LINTLIB=llib-lX11.ln
14807	else
14808		LINTLIB=$make_lint_lib
14809	fi
14810fi
14811
14812 if test x$make_lint_lib != xno; then
14813  MAKE_LINT_LIB_TRUE=
14814  MAKE_LINT_LIB_FALSE='#'
14815else
14816  MAKE_LINT_LIB_TRUE='#'
14817  MAKE_LINT_LIB_FALSE=
14818fi
14819
14820
14821
14822
14823X11_DATADIR="${datadir}/X11"
14824
14825  prefix_NONE=
14826  exec_prefix_NONE=
14827  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14828  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14829  eval ax_define_dir="\"$X11_DATADIR\""
14830  eval ax_define_dir="\"$ax_define_dir\""
14831  X11_DATADIR="$ax_define_dir"
14832
14833
14834cat >>confdefs.h <<_ACEOF
14835#define X11_DATADIR "$ax_define_dir"
14836_ACEOF
14837
14838  test "$prefix_NONE" && prefix=NONE
14839  test "$exec_prefix_NONE" && exec_prefix=NONE
14840
14841
14842
14843X11_LIBDIR="${libdir}/X11"
14844
14845  prefix_NONE=
14846  exec_prefix_NONE=
14847  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14848  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14849  eval ax_define_dir="\"$X11_LIBDIR\""
14850  eval ax_define_dir="\"$ax_define_dir\""
14851  X11_LIBDIR="$ax_define_dir"
14852
14853
14854cat >>confdefs.h <<_ACEOF
14855#define X11_LIBDIR "$ax_define_dir"
14856_ACEOF
14857
14858  test "$prefix_NONE" && prefix=NONE
14859  test "$exec_prefix_NONE" && exec_prefix=NONE
14860
14861
14862
14863
14864pkg_failed=no
14865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
14866$as_echo_n "checking for X11... " >&6; }
14867
14868if test -n "$X11_CFLAGS"; then
14869    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
14870 elif test -n "$PKG_CONFIG"; then
14871    if test -n "$PKG_CONFIG" && \
14872    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
14873  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
14874  ac_status=$?
14875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14876  test $ac_status = 0; }; then
14877  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
14878else
14879  pkg_failed=yes
14880fi
14881 else
14882    pkg_failed=untried
14883fi
14884if test -n "$X11_LIBS"; then
14885    pkg_cv_X11_LIBS="$X11_LIBS"
14886 elif test -n "$PKG_CONFIG"; then
14887    if test -n "$PKG_CONFIG" && \
14888    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
14889  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
14890  ac_status=$?
14891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14892  test $ac_status = 0; }; then
14893  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
14894else
14895  pkg_failed=yes
14896fi
14897 else
14898    pkg_failed=untried
14899fi
14900
14901
14902
14903if test $pkg_failed = yes; then
14904
14905if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14906        _pkg_short_errors_supported=yes
14907else
14908        _pkg_short_errors_supported=no
14909fi
14910        if test $_pkg_short_errors_supported = yes; then
14911	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_REQUIRES" 2>&1`
14912        else
14913	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_REQUIRES" 2>&1`
14914        fi
14915	# Put the nasty error message in config.log where it belongs
14916	echo "$X11_PKG_ERRORS" >&5
14917
14918	as_fn_error "Package requirements ($X11_REQUIRES) were not met:
14919
14920$X11_PKG_ERRORS
14921
14922Consider adjusting the PKG_CONFIG_PATH environment variable if you
14923installed software in a non-standard prefix.
14924
14925Alternatively, you may set the environment variables X11_CFLAGS
14926and X11_LIBS to avoid the need to call pkg-config.
14927See the pkg-config man page for more details.
14928" "$LINENO" 5
14929elif test $pkg_failed = untried; then
14930	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14932as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
14933is in your PATH or set the PKG_CONFIG environment variable to the full
14934path to pkg-config.
14935
14936Alternatively, you may set the environment variables X11_CFLAGS
14937and X11_LIBS to avoid the need to call pkg-config.
14938See the pkg-config man page for more details.
14939
14940To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14941See \`config.log' for more details." "$LINENO" 5; }
14942else
14943	X11_CFLAGS=$pkg_cv_X11_CFLAGS
14944	X11_LIBS=$pkg_cv_X11_LIBS
14945        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14946$as_echo "yes" >&6; }
14947	:
14948fi
14949X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
14950
14951#
14952# Yes, it would be nice to put the locale data in
14953# /usr/share, but the locale stuff includes loadable
14954# libraries which must be located in the same directory
14955# as the other locale data, so for now, everything lives
14956# in ${libdir}
14957#
14958
14959X11_LOCALEDATADIR="${X11_DATADIR}/locale"
14960
14961  prefix_NONE=
14962  exec_prefix_NONE=
14963  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14964  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14965  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
14966  eval ax_define_dir="\"$ax_define_dir\""
14967  XLOCALEDATADIR="$ax_define_dir"
14968
14969
14970cat >>confdefs.h <<_ACEOF
14971#define XLOCALEDATADIR "$ax_define_dir"
14972_ACEOF
14973
14974  test "$prefix_NONE" && prefix=NONE
14975  test "$exec_prefix_NONE" && exec_prefix=NONE
14976
14977
14978
14979
14980# Check whether --with-locale-lib-dir was given.
14981if test "${with_locale_lib_dir+set}" = set; then :
14982  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
14983else
14984   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
14985fi
14986
14987
14988  prefix_NONE=
14989  exec_prefix_NONE=
14990  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14991  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14992  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
14993  eval ax_define_dir="\"$ax_define_dir\""
14994  XLOCALELIBDIR="$ax_define_dir"
14995
14996
14997cat >>confdefs.h <<_ACEOF
14998#define XLOCALELIBDIR "$ax_define_dir"
14999_ACEOF
15000
15001  test "$prefix_NONE" && prefix=NONE
15002  test "$exec_prefix_NONE" && exec_prefix=NONE
15003
15004
15005
15006X11_LOCALEDIR="${X11_LOCALEDATADIR}"
15007
15008  prefix_NONE=
15009  exec_prefix_NONE=
15010  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15011  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15012  eval ax_define_dir="\"$X11_LOCALEDIR\""
15013  eval ax_define_dir="\"$ax_define_dir\""
15014  XLOCALEDIR="$ax_define_dir"
15015
15016
15017cat >>confdefs.h <<_ACEOF
15018#define XLOCALEDIR "$ax_define_dir"
15019_ACEOF
15020
15021  test "$prefix_NONE" && prefix=NONE
15022  test "$exec_prefix_NONE" && exec_prefix=NONE
15023
15024
15025
15026XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
15027
15028  prefix_NONE=
15029  exec_prefix_NONE=
15030  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15031  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15032  eval ax_define_dir="\"$XKEYSYMDB\""
15033  eval ax_define_dir="\"$ax_define_dir\""
15034  XKEYSYMDB="$ax_define_dir"
15035
15036
15037cat >>confdefs.h <<_ACEOF
15038#define XKEYSYMDB "$ax_define_dir"
15039_ACEOF
15040
15041  test "$prefix_NONE" && prefix=NONE
15042  test "$exec_prefix_NONE" && exec_prefix=NONE
15043
15044
15045XERRORDB="${X11_DATADIR}/XErrorDB"
15046
15047  prefix_NONE=
15048  exec_prefix_NONE=
15049  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15050  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15051  eval ax_define_dir="\"$XERRORDB\""
15052  eval ax_define_dir="\"$ax_define_dir\""
15053  XERRORDB="$ax_define_dir"
15054
15055
15056cat >>confdefs.h <<_ACEOF
15057#define XERRORDB "$ax_define_dir"
15058_ACEOF
15059
15060  test "$prefix_NONE" && prefix=NONE
15061  test "$exec_prefix_NONE" && exec_prefix=NONE
15062
15063
15064
15065# Check whether --enable-malloc0returnsnull was given.
15066if test "${enable_malloc0returnsnull+set}" = set; then :
15067  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
15068else
15069  MALLOC_ZERO_RETURNS_NULL=auto
15070fi
15071
15072
15073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
15074$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
15075if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
15076	if test "$cross_compiling" = yes; then :
15077  MALLOC_ZERO_RETURNS_NULL=yes
15078else
15079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080/* end confdefs.h.  */
15081
15082char *malloc();
15083char *realloc();
15084char *calloc();
15085main() {
15086    char *m0, *r0, *c0, *p;
15087    m0 = malloc(0);
15088    p = malloc(10);
15089    r0 = realloc(p,0);
15090    c0 = calloc(0);
15091    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
15092}
15093_ACEOF
15094if ac_fn_c_try_run "$LINENO"; then :
15095  MALLOC_ZERO_RETURNS_NULL=yes
15096else
15097  MALLOC_ZERO_RETURNS_NULL=no
15098fi
15099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15100  conftest.$ac_objext conftest.beam conftest.$ac_ext
15101fi
15102
15103fi
15104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
15105$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
15106
15107if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
15108	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
15109	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
15110	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
15111else
15112	MALLOC_ZERO_CFLAGS=""
15113	XMALLOC_ZERO_CFLAGS=""
15114	XTMALLOC_ZERO_CFLAGS=""
15115fi
15116
15117
15118
15119
15120
15121
15122ac_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 nls/am_ET.UTF-8/Makefile nls/armscii-8/Makefile nls/C/Makefile nls/el_GR.UTF-8/Makefile nls/en_US.UTF-8/Makefile nls/fi_FI.UTF-8/Makefile nls/georgian-academy/Makefile nls/georgian-ps/Makefile nls/ibm-cp1133/Makefile nls/iscii-dev/Makefile nls/isiri-3342/Makefile nls/iso8859-1/Makefile nls/iso8859-10/Makefile nls/iso8859-11/Makefile nls/iso8859-13/Makefile nls/iso8859-14/Makefile nls/iso8859-15/Makefile nls/iso8859-2/Makefile nls/iso8859-3/Makefile nls/iso8859-4/Makefile nls/iso8859-5/Makefile nls/iso8859-6/Makefile nls/iso8859-7/Makefile nls/iso8859-8/Makefile nls/iso8859-9/Makefile nls/iso8859-9e/Makefile nls/ja/Makefile nls/ja.JIS/Makefile nls/ja_JP.UTF-8/Makefile nls/ja.S90/Makefile nls/ja.SJIS/Makefile nls/ja.U90/Makefile nls/ko/Makefile nls/koi8-c/Makefile nls/koi8-r/Makefile nls/koi8-u/Makefile nls/ko_KR.UTF-8/Makefile nls/microsoft-cp1251/Makefile nls/microsoft-cp1255/Makefile nls/microsoft-cp1256/Makefile nls/mulelao-1/Makefile nls/nokhchi-1/Makefile nls/pt_BR.UTF-8/Makefile nls/ru_RU.UTF-8/Makefile nls/tatar-cyr/Makefile nls/th_TH/Makefile nls/th_TH.UTF-8/Makefile nls/tscii-0/Makefile nls/vi_VN.tcvn/Makefile nls/vi_VN.viscii/Makefile nls/zh_CN/Makefile nls/zh_CN.gb18030/Makefile nls/zh_CN.gbk/Makefile nls/zh_CN.UTF-8/Makefile nls/zh_HK.big5/Makefile nls/zh_HK.big5hkscs/Makefile nls/zh_HK.UTF-8/Makefile nls/zh_TW/Makefile nls/zh_TW.big5/Makefile nls/zh_TW.UTF-8/Makefile specs/Makefile specs/i18n/Makefile specs/libX11/Makefile specs/XIM/Makefile x11.pc x11-xcb.pc"
15123
15124cat >confcache <<\_ACEOF
15125# This file is a shell script that caches the results of configure
15126# tests run on this system so they can be shared between configure
15127# scripts and configure runs, see configure's option --config-cache.
15128# It is not useful on other systems.  If it contains results you don't
15129# want to keep, you may remove or edit it.
15130#
15131# config.status only pays attention to the cache file if you give it
15132# the --recheck option to rerun configure.
15133#
15134# `ac_cv_env_foo' variables (set or unset) will be overridden when
15135# loading this file, other *unset* `ac_cv_foo' will be assigned the
15136# following values.
15137
15138_ACEOF
15139
15140# The following way of writing the cache mishandles newlines in values,
15141# but we know of no workaround that is simple, portable, and efficient.
15142# So, we kill variables containing newlines.
15143# Ultrix sh set writes to stderr and can't be redirected directly,
15144# and sets the high bit in the cache file unless we assign to the vars.
15145(
15146  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15147    eval ac_val=\$$ac_var
15148    case $ac_val in #(
15149    *${as_nl}*)
15150      case $ac_var in #(
15151      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15152$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15153      esac
15154      case $ac_var in #(
15155      _ | IFS | as_nl) ;; #(
15156      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15157      *) { eval $ac_var=; unset $ac_var;} ;;
15158      esac ;;
15159    esac
15160  done
15161
15162  (set) 2>&1 |
15163    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15164    *${as_nl}ac_space=\ *)
15165      # `set' does not quote correctly, so add quotes: double-quote
15166      # substitution turns \\\\ into \\, and sed turns \\ into \.
15167      sed -n \
15168	"s/'/'\\\\''/g;
15169	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15170      ;; #(
15171    *)
15172      # `set' quotes correctly as required by POSIX, so do not add quotes.
15173      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15174      ;;
15175    esac |
15176    sort
15177) |
15178  sed '
15179     /^ac_cv_env_/b end
15180     t clear
15181     :clear
15182     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15183     t end
15184     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15185     :end' >>confcache
15186if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15187  if test -w "$cache_file"; then
15188    test "x$cache_file" != "x/dev/null" &&
15189      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15190$as_echo "$as_me: updating cache $cache_file" >&6;}
15191    cat confcache >$cache_file
15192  else
15193    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15194$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15195  fi
15196fi
15197rm -f confcache
15198
15199test "x$prefix" = xNONE && prefix=$ac_default_prefix
15200# Let make expand exec_prefix.
15201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15202
15203DEFS=-DHAVE_CONFIG_H
15204
15205ac_libobjs=
15206ac_ltlibobjs=
15207for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15208  # 1. Remove the extension, and $U if already installed.
15209  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15210  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15211  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15212  #    will be set to the directory where LIBOBJS objects are built.
15213  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15214  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15215done
15216LIBOBJS=$ac_libobjs
15217
15218LTLIBOBJS=$ac_ltlibobjs
15219
15220
15221 if test -n "$EXEEXT"; then
15222  am__EXEEXT_TRUE=
15223  am__EXEEXT_FALSE='#'
15224else
15225  am__EXEEXT_TRUE='#'
15226  am__EXEEXT_FALSE=
15227fi
15228
15229if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15230  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15231Usually this means the macro was only invoked conditionally." "$LINENO" 5
15232fi
15233if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15234  as_fn_error "conditional \"AMDEP\" was never defined.
15235Usually this means the macro was only invoked conditionally." "$LINENO" 5
15236fi
15237if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15238  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15239Usually this means the macro was only invoked conditionally." "$LINENO" 5
15240fi
15241if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
15242  as_fn_error "conditional \"ENABLE_SPECS\" was never defined.
15243Usually this means the macro was only invoked conditionally." "$LINENO" 5
15244fi
15245if test -z "${HAVE_GROFF_TRUE}" && test -z "${HAVE_GROFF_FALSE}"; then
15246  as_fn_error "conditional \"HAVE_GROFF\" was never defined.
15247Usually this means the macro was only invoked conditionally." "$LINENO" 5
15248fi
15249if test -z "${HAVE_GROFF_MS_TRUE}" && test -z "${HAVE_GROFF_MS_FALSE}"; then
15250  as_fn_error "conditional \"HAVE_GROFF_MS\" was never defined.
15251Usually this means the macro was only invoked conditionally." "$LINENO" 5
15252fi
15253if test -z "${HAVE_GROFF_MM_TRUE}" && test -z "${HAVE_GROFF_MM_FALSE}"; then
15254  as_fn_error "conditional \"HAVE_GROFF_MM\" was never defined.
15255Usually this means the macro was only invoked conditionally." "$LINENO" 5
15256fi
15257if test -z "${HAVE_PS2PDF_TRUE}" && test -z "${HAVE_PS2PDF_FALSE}"; then
15258  as_fn_error "conditional \"HAVE_PS2PDF\" was never defined.
15259Usually this means the macro was only invoked conditionally." "$LINENO" 5
15260fi
15261if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15262  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15263Usually this means the macro was only invoked conditionally." "$LINENO" 5
15264fi
15265if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
15266  as_fn_error "conditional \"HAVE_PERL\" was never defined.
15267Usually this means the macro was only invoked conditionally." "$LINENO" 5
15268fi
15269if test -z "${XCB_TRUE}" && test -z "${XCB_FALSE}"; then
15270  as_fn_error "conditional \"XCB\" was never defined.
15271Usually this means the macro was only invoked conditionally." "$LINENO" 5
15272fi
15273if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
15274  as_fn_error "conditional \"XLIB_LOADABLE_I18N\" was never defined.
15275Usually this means the macro was only invoked conditionally." "$LINENO" 5
15276fi
15277if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
15278  as_fn_error "conditional \"OS2\" was never defined.
15279Usually this means the macro was only invoked conditionally." "$LINENO" 5
15280fi
15281if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
15282  as_fn_error "conditional \"THRSTUBS\" was never defined.
15283Usually this means the macro was only invoked conditionally." "$LINENO" 5
15284fi
15285if test -z "${UDC_TRUE}" && test -z "${UDC_FALSE}"; then
15286  as_fn_error "conditional \"UDC\" was never defined.
15287Usually this means the macro was only invoked conditionally." "$LINENO" 5
15288fi
15289if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
15290  as_fn_error "conditional \"XCMS\" was never defined.
15291Usually this means the macro was only invoked conditionally." "$LINENO" 5
15292fi
15293if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
15294  as_fn_error "conditional \"XLOCALE\" was never defined.
15295Usually this means the macro was only invoked conditionally." "$LINENO" 5
15296fi
15297if test -z "${MANPAGES_TRUE}" && test -z "${MANPAGES_FALSE}"; then
15298  as_fn_error "conditional \"MANPAGES\" was never defined.
15299Usually this means the macro was only invoked conditionally." "$LINENO" 5
15300fi
15301if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
15302  as_fn_error "conditional \"XKB\" was never defined.
15303Usually this means the macro was only invoked conditionally." "$LINENO" 5
15304fi
15305if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
15306  as_fn_error "conditional \"LINT\" was never defined.
15307Usually this means the macro was only invoked conditionally." "$LINENO" 5
15308fi
15309if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
15310  as_fn_error "conditional \"MAKE_LINT_LIB\" was never defined.
15311Usually this means the macro was only invoked conditionally." "$LINENO" 5
15312fi
15313
15314: ${CONFIG_STATUS=./config.status}
15315ac_write_fail=0
15316ac_clean_files_save=$ac_clean_files
15317ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15318{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15319$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15320as_write_fail=0
15321cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15322#! $SHELL
15323# Generated by $as_me.
15324# Run this file to recreate the current configuration.
15325# Compiler output produced by configure, useful for debugging
15326# configure, is in config.log if it exists.
15327
15328debug=false
15329ac_cs_recheck=false
15330ac_cs_silent=false
15331
15332SHELL=\${CONFIG_SHELL-$SHELL}
15333export SHELL
15334_ASEOF
15335cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15336## -------------------- ##
15337## M4sh Initialization. ##
15338## -------------------- ##
15339
15340# Be more Bourne compatible
15341DUALCASE=1; export DUALCASE # for MKS sh
15342if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15343  emulate sh
15344  NULLCMD=:
15345  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15346  # is contrary to our usage.  Disable this feature.
15347  alias -g '${1+"$@"}'='"$@"'
15348  setopt NO_GLOB_SUBST
15349else
15350  case `(set -o) 2>/dev/null` in #(
15351  *posix*) :
15352    set -o posix ;; #(
15353  *) :
15354     ;;
15355esac
15356fi
15357
15358
15359as_nl='
15360'
15361export as_nl
15362# Printing a long string crashes Solaris 7 /usr/bin/printf.
15363as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15364as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15365as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15366# Prefer a ksh shell builtin over an external printf program on Solaris,
15367# but without wasting forks for bash or zsh.
15368if test -z "$BASH_VERSION$ZSH_VERSION" \
15369    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15370  as_echo='print -r --'
15371  as_echo_n='print -rn --'
15372elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15373  as_echo='printf %s\n'
15374  as_echo_n='printf %s'
15375else
15376  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15377    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15378    as_echo_n='/usr/ucb/echo -n'
15379  else
15380    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15381    as_echo_n_body='eval
15382      arg=$1;
15383      case $arg in #(
15384      *"$as_nl"*)
15385	expr "X$arg" : "X\\(.*\\)$as_nl";
15386	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15387      esac;
15388      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15389    '
15390    export as_echo_n_body
15391    as_echo_n='sh -c $as_echo_n_body as_echo'
15392  fi
15393  export as_echo_body
15394  as_echo='sh -c $as_echo_body as_echo'
15395fi
15396
15397# The user is always right.
15398if test "${PATH_SEPARATOR+set}" != set; then
15399  PATH_SEPARATOR=:
15400  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15401    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15402      PATH_SEPARATOR=';'
15403  }
15404fi
15405
15406
15407# IFS
15408# We need space, tab and new line, in precisely that order.  Quoting is
15409# there to prevent editors from complaining about space-tab.
15410# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15411# splitting by setting IFS to empty value.)
15412IFS=" ""	$as_nl"
15413
15414# Find who we are.  Look in the path if we contain no directory separator.
15415case $0 in #((
15416  *[\\/]* ) as_myself=$0 ;;
15417  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418for as_dir in $PATH
15419do
15420  IFS=$as_save_IFS
15421  test -z "$as_dir" && as_dir=.
15422    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15423  done
15424IFS=$as_save_IFS
15425
15426     ;;
15427esac
15428# We did not find ourselves, most probably we were run as `sh COMMAND'
15429# in which case we are not to be found in the path.
15430if test "x$as_myself" = x; then
15431  as_myself=$0
15432fi
15433if test ! -f "$as_myself"; then
15434  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15435  exit 1
15436fi
15437
15438# Unset variables that we do not need and which cause bugs (e.g. in
15439# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15440# suppresses any "Segmentation fault" message there.  '((' could
15441# trigger a bug in pdksh 5.2.14.
15442for as_var in BASH_ENV ENV MAIL MAILPATH
15443do eval test x\${$as_var+set} = xset \
15444  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15445done
15446PS1='$ '
15447PS2='> '
15448PS4='+ '
15449
15450# NLS nuisances.
15451LC_ALL=C
15452export LC_ALL
15453LANGUAGE=C
15454export LANGUAGE
15455
15456# CDPATH.
15457(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15458
15459
15460# as_fn_error ERROR [LINENO LOG_FD]
15461# ---------------------------------
15462# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15463# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15464# script with status $?, using 1 if that was 0.
15465as_fn_error ()
15466{
15467  as_status=$?; test $as_status -eq 0 && as_status=1
15468  if test "$3"; then
15469    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15470    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15471  fi
15472  $as_echo "$as_me: error: $1" >&2
15473  as_fn_exit $as_status
15474} # as_fn_error
15475
15476
15477# as_fn_set_status STATUS
15478# -----------------------
15479# Set $? to STATUS, without forking.
15480as_fn_set_status ()
15481{
15482  return $1
15483} # as_fn_set_status
15484
15485# as_fn_exit STATUS
15486# -----------------
15487# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15488as_fn_exit ()
15489{
15490  set +e
15491  as_fn_set_status $1
15492  exit $1
15493} # as_fn_exit
15494
15495# as_fn_unset VAR
15496# ---------------
15497# Portably unset VAR.
15498as_fn_unset ()
15499{
15500  { eval $1=; unset $1;}
15501}
15502as_unset=as_fn_unset
15503# as_fn_append VAR VALUE
15504# ----------------------
15505# Append the text in VALUE to the end of the definition contained in VAR. Take
15506# advantage of any shell optimizations that allow amortized linear growth over
15507# repeated appends, instead of the typical quadratic growth present in naive
15508# implementations.
15509if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15510  eval 'as_fn_append ()
15511  {
15512    eval $1+=\$2
15513  }'
15514else
15515  as_fn_append ()
15516  {
15517    eval $1=\$$1\$2
15518  }
15519fi # as_fn_append
15520
15521# as_fn_arith ARG...
15522# ------------------
15523# Perform arithmetic evaluation on the ARGs, and store the result in the
15524# global $as_val. Take advantage of shells that can avoid forks. The arguments
15525# must be portable across $(()) and expr.
15526if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15527  eval 'as_fn_arith ()
15528  {
15529    as_val=$(( $* ))
15530  }'
15531else
15532  as_fn_arith ()
15533  {
15534    as_val=`expr "$@" || test $? -eq 1`
15535  }
15536fi # as_fn_arith
15537
15538
15539if expr a : '\(a\)' >/dev/null 2>&1 &&
15540   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15541  as_expr=expr
15542else
15543  as_expr=false
15544fi
15545
15546if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15547  as_basename=basename
15548else
15549  as_basename=false
15550fi
15551
15552if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15553  as_dirname=dirname
15554else
15555  as_dirname=false
15556fi
15557
15558as_me=`$as_basename -- "$0" ||
15559$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15560	 X"$0" : 'X\(//\)$' \| \
15561	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15562$as_echo X/"$0" |
15563    sed '/^.*\/\([^/][^/]*\)\/*$/{
15564	    s//\1/
15565	    q
15566	  }
15567	  /^X\/\(\/\/\)$/{
15568	    s//\1/
15569	    q
15570	  }
15571	  /^X\/\(\/\).*/{
15572	    s//\1/
15573	    q
15574	  }
15575	  s/.*/./; q'`
15576
15577# Avoid depending upon Character Ranges.
15578as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15579as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15580as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15581as_cr_digits='0123456789'
15582as_cr_alnum=$as_cr_Letters$as_cr_digits
15583
15584ECHO_C= ECHO_N= ECHO_T=
15585case `echo -n x` in #(((((
15586-n*)
15587  case `echo 'xy\c'` in
15588  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15589  xy)  ECHO_C='\c';;
15590  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15591       ECHO_T='	';;
15592  esac;;
15593*)
15594  ECHO_N='-n';;
15595esac
15596
15597rm -f conf$$ conf$$.exe conf$$.file
15598if test -d conf$$.dir; then
15599  rm -f conf$$.dir/conf$$.file
15600else
15601  rm -f conf$$.dir
15602  mkdir conf$$.dir 2>/dev/null
15603fi
15604if (echo >conf$$.file) 2>/dev/null; then
15605  if ln -s conf$$.file conf$$ 2>/dev/null; then
15606    as_ln_s='ln -s'
15607    # ... but there are two gotchas:
15608    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15609    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15610    # In both cases, we have to default to `cp -p'.
15611    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15612      as_ln_s='cp -p'
15613  elif ln conf$$.file conf$$ 2>/dev/null; then
15614    as_ln_s=ln
15615  else
15616    as_ln_s='cp -p'
15617  fi
15618else
15619  as_ln_s='cp -p'
15620fi
15621rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15622rmdir conf$$.dir 2>/dev/null
15623
15624
15625# as_fn_mkdir_p
15626# -------------
15627# Create "$as_dir" as a directory, including parents if necessary.
15628as_fn_mkdir_p ()
15629{
15630
15631  case $as_dir in #(
15632  -*) as_dir=./$as_dir;;
15633  esac
15634  test -d "$as_dir" || eval $as_mkdir_p || {
15635    as_dirs=
15636    while :; do
15637      case $as_dir in #(
15638      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15639      *) as_qdir=$as_dir;;
15640      esac
15641      as_dirs="'$as_qdir' $as_dirs"
15642      as_dir=`$as_dirname -- "$as_dir" ||
15643$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15644	 X"$as_dir" : 'X\(//\)[^/]' \| \
15645	 X"$as_dir" : 'X\(//\)$' \| \
15646	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15647$as_echo X"$as_dir" |
15648    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15649	    s//\1/
15650	    q
15651	  }
15652	  /^X\(\/\/\)[^/].*/{
15653	    s//\1/
15654	    q
15655	  }
15656	  /^X\(\/\/\)$/{
15657	    s//\1/
15658	    q
15659	  }
15660	  /^X\(\/\).*/{
15661	    s//\1/
15662	    q
15663	  }
15664	  s/.*/./; q'`
15665      test -d "$as_dir" && break
15666    done
15667    test -z "$as_dirs" || eval "mkdir $as_dirs"
15668  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15669
15670
15671} # as_fn_mkdir_p
15672if mkdir -p . 2>/dev/null; then
15673  as_mkdir_p='mkdir -p "$as_dir"'
15674else
15675  test -d ./-p && rmdir ./-p
15676  as_mkdir_p=false
15677fi
15678
15679if test -x / >/dev/null 2>&1; then
15680  as_test_x='test -x'
15681else
15682  if ls -dL / >/dev/null 2>&1; then
15683    as_ls_L_option=L
15684  else
15685    as_ls_L_option=
15686  fi
15687  as_test_x='
15688    eval sh -c '\''
15689      if test -d "$1"; then
15690	test -d "$1/.";
15691      else
15692	case $1 in #(
15693	-*)set "./$1";;
15694	esac;
15695	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15696	???[sx]*):;;*)false;;esac;fi
15697    '\'' sh
15698  '
15699fi
15700as_executable_p=$as_test_x
15701
15702# Sed expression to map a string onto a valid CPP name.
15703as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15704
15705# Sed expression to map a string onto a valid variable name.
15706as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15707
15708
15709exec 6>&1
15710## ----------------------------------- ##
15711## Main body of $CONFIG_STATUS script. ##
15712## ----------------------------------- ##
15713_ASEOF
15714test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15715
15716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15717# Save the log message, to keep $0 and so on meaningful, and to
15718# report actual input values of CONFIG_FILES etc. instead of their
15719# values after options handling.
15720ac_log="
15721This file was extended by libX11 $as_me 1.3.4, which was
15722generated by GNU Autoconf 2.65.  Invocation command line was
15723
15724  CONFIG_FILES    = $CONFIG_FILES
15725  CONFIG_HEADERS  = $CONFIG_HEADERS
15726  CONFIG_LINKS    = $CONFIG_LINKS
15727  CONFIG_COMMANDS = $CONFIG_COMMANDS
15728  $ $0 $@
15729
15730on `(hostname || uname -n) 2>/dev/null | sed 1q`
15731"
15732
15733_ACEOF
15734
15735case $ac_config_files in *"
15736"*) set x $ac_config_files; shift; ac_config_files=$*;;
15737esac
15738
15739case $ac_config_headers in *"
15740"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15741esac
15742
15743
15744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15745# Files that config.status was made for.
15746config_files="$ac_config_files"
15747config_headers="$ac_config_headers"
15748config_commands="$ac_config_commands"
15749
15750_ACEOF
15751
15752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15753ac_cs_usage="\
15754\`$as_me' instantiates files and other configuration actions
15755from templates according to the current configuration.  Unless the files
15756and actions are specified as TAGs, all are instantiated by default.
15757
15758Usage: $0 [OPTION]... [TAG]...
15759
15760  -h, --help       print this help, then exit
15761  -V, --version    print version number and configuration settings, then exit
15762      --config     print configuration, then exit
15763  -q, --quiet, --silent
15764                   do not print progress messages
15765  -d, --debug      don't remove temporary files
15766      --recheck    update $as_me by reconfiguring in the same conditions
15767      --file=FILE[:TEMPLATE]
15768                   instantiate the configuration file FILE
15769      --header=FILE[:TEMPLATE]
15770                   instantiate the configuration header FILE
15771
15772Configuration files:
15773$config_files
15774
15775Configuration headers:
15776$config_headers
15777
15778Configuration commands:
15779$config_commands
15780
15781Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
15782
15783_ACEOF
15784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15785ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15786ac_cs_version="\\
15787libX11 config.status 1.3.4
15788configured by $0, generated by GNU Autoconf 2.65,
15789  with options \\"\$ac_cs_config\\"
15790
15791Copyright (C) 2009 Free Software Foundation, Inc.
15792This config.status script is free software; the Free Software Foundation
15793gives unlimited permission to copy, distribute and modify it."
15794
15795ac_pwd='$ac_pwd'
15796srcdir='$srcdir'
15797INSTALL='$INSTALL'
15798MKDIR_P='$MKDIR_P'
15799AWK='$AWK'
15800test -n "\$AWK" || AWK=awk
15801_ACEOF
15802
15803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15804# The default lists apply if the user does not specify any file.
15805ac_need_defaults=:
15806while test $# != 0
15807do
15808  case $1 in
15809  --*=*)
15810    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15811    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15812    ac_shift=:
15813    ;;
15814  *)
15815    ac_option=$1
15816    ac_optarg=$2
15817    ac_shift=shift
15818    ;;
15819  esac
15820
15821  case $ac_option in
15822  # Handling of the options.
15823  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15824    ac_cs_recheck=: ;;
15825  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15826    $as_echo "$ac_cs_version"; exit ;;
15827  --config | --confi | --conf | --con | --co | --c )
15828    $as_echo "$ac_cs_config"; exit ;;
15829  --debug | --debu | --deb | --de | --d | -d )
15830    debug=: ;;
15831  --file | --fil | --fi | --f )
15832    $ac_shift
15833    case $ac_optarg in
15834    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15835    esac
15836    as_fn_append CONFIG_FILES " '$ac_optarg'"
15837    ac_need_defaults=false;;
15838  --header | --heade | --head | --hea )
15839    $ac_shift
15840    case $ac_optarg in
15841    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15842    esac
15843    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15844    ac_need_defaults=false;;
15845  --he | --h)
15846    # Conflict between --help and --header
15847    as_fn_error "ambiguous option: \`$1'
15848Try \`$0 --help' for more information.";;
15849  --help | --hel | -h )
15850    $as_echo "$ac_cs_usage"; exit ;;
15851  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15852  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15853    ac_cs_silent=: ;;
15854
15855  # This is an error.
15856  -*) as_fn_error "unrecognized option: \`$1'
15857Try \`$0 --help' for more information." ;;
15858
15859  *) as_fn_append ac_config_targets " $1"
15860     ac_need_defaults=false ;;
15861
15862  esac
15863  shift
15864done
15865
15866ac_configure_extra_args=
15867
15868if $ac_cs_silent; then
15869  exec 6>/dev/null
15870  ac_configure_extra_args="$ac_configure_extra_args --silent"
15871fi
15872
15873_ACEOF
15874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15875if \$ac_cs_recheck; then
15876  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15877  shift
15878  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15879  CONFIG_SHELL='$SHELL'
15880  export CONFIG_SHELL
15881  exec "\$@"
15882fi
15883
15884_ACEOF
15885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15886exec 5>>config.log
15887{
15888  echo
15889  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15890## Running $as_me. ##
15891_ASBOX
15892  $as_echo "$ac_log"
15893} >&5
15894
15895_ACEOF
15896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897#
15898# INIT-COMMANDS
15899#
15900AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15901
15902
15903# The HP-UX ksh and POSIX shell print the target directory to stdout
15904# if CDPATH is set.
15905(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15906
15907sed_quote_subst='$sed_quote_subst'
15908double_quote_subst='$double_quote_subst'
15909delay_variable_subst='$delay_variable_subst'
15910macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15911macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15912enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15913enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15914pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15915enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15916host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15917host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15918host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15919build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15920build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15921build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15922SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15923Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15924GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15925EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15926FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15927LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15928NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15929LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15930max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15931ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15932exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15933lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15934lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15935lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15936reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15937reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15938OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15939deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15940file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15941AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15942AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15943STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15944RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15945old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15946old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15947old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15948CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15949CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15950compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15951GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15952lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15953lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15954lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15955lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15956objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15957SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15958ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15959MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15960lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15961lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15962lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15963lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15964lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15965need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15966DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15967NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15968LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15969OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15970OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15971libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15972shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15973extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15974archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15975enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15976export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15977whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15978compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15979old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15980old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15981archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15982archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15983module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15984module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15985with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15986allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15987no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15988hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15989hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15990hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15991hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15992hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15993hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15994hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15995hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15996inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15997link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15998fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15999always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16000export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16001exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16002include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16003prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16004file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16005variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16006need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16007need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16008version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16009runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16010shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16011shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16012libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16013library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16014soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16015postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16016postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16017finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16018finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16019hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16020sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16021sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16022hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16023enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16024enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16025enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16026old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16027striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16028
16029LTCC='$LTCC'
16030LTCFLAGS='$LTCFLAGS'
16031compiler='$compiler_DEFAULT'
16032
16033# Quote evaled strings.
16034for var in SED \
16035GREP \
16036EGREP \
16037FGREP \
16038LD \
16039NM \
16040LN_S \
16041lt_SP2NL \
16042lt_NL2SP \
16043reload_flag \
16044OBJDUMP \
16045deplibs_check_method \
16046file_magic_cmd \
16047AR \
16048AR_FLAGS \
16049STRIP \
16050RANLIB \
16051CC \
16052CFLAGS \
16053compiler \
16054lt_cv_sys_global_symbol_pipe \
16055lt_cv_sys_global_symbol_to_cdecl \
16056lt_cv_sys_global_symbol_to_c_name_address \
16057lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16058SHELL \
16059ECHO \
16060lt_prog_compiler_no_builtin_flag \
16061lt_prog_compiler_wl \
16062lt_prog_compiler_pic \
16063lt_prog_compiler_static \
16064lt_cv_prog_compiler_c_o \
16065need_locks \
16066DSYMUTIL \
16067NMEDIT \
16068LIPO \
16069OTOOL \
16070OTOOL64 \
16071shrext_cmds \
16072export_dynamic_flag_spec \
16073whole_archive_flag_spec \
16074compiler_needs_object \
16075with_gnu_ld \
16076allow_undefined_flag \
16077no_undefined_flag \
16078hardcode_libdir_flag_spec \
16079hardcode_libdir_flag_spec_ld \
16080hardcode_libdir_separator \
16081fix_srcfile_path \
16082exclude_expsyms \
16083include_expsyms \
16084file_list_spec \
16085variables_saved_for_relink \
16086libname_spec \
16087library_names_spec \
16088soname_spec \
16089finish_eval \
16090old_striplib \
16091striplib; do
16092    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16093    *[\\\\\\\`\\"\\\$]*)
16094      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16095      ;;
16096    *)
16097      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16098      ;;
16099    esac
16100done
16101
16102# Double-quote double-evaled strings.
16103for var in reload_cmds \
16104old_postinstall_cmds \
16105old_postuninstall_cmds \
16106old_archive_cmds \
16107extract_expsyms_cmds \
16108old_archive_from_new_cmds \
16109old_archive_from_expsyms_cmds \
16110archive_cmds \
16111archive_expsym_cmds \
16112module_cmds \
16113module_expsym_cmds \
16114export_symbols_cmds \
16115prelink_cmds \
16116postinstall_cmds \
16117postuninstall_cmds \
16118finish_cmds \
16119sys_lib_search_path_spec \
16120sys_lib_dlsearch_path_spec; do
16121    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16122    *[\\\\\\\`\\"\\\$]*)
16123      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16124      ;;
16125    *)
16126      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16127      ;;
16128    esac
16129done
16130
16131# Fix-up fallback echo if it was mangled by the above quoting rules.
16132case \$lt_ECHO in
16133*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16134  ;;
16135esac
16136
16137ac_aux_dir='$ac_aux_dir'
16138xsi_shell='$xsi_shell'
16139lt_shell_append='$lt_shell_append'
16140
16141# See if we are running on zsh, and set the options which allow our
16142# commands through without removal of \ escapes INIT.
16143if test -n "\${ZSH_VERSION+set}" ; then
16144   setopt NO_GLOB_SUBST
16145fi
16146
16147
16148    PACKAGE='$PACKAGE'
16149    VERSION='$VERSION'
16150    TIMESTAMP='$TIMESTAMP'
16151    RM='$RM'
16152    ofile='$ofile'
16153
16154
16155
16156
16157_ACEOF
16158
16159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16160
16161# Handling of arguments.
16162for ac_config_target in $ac_config_targets
16163do
16164  case $ac_config_target in
16165    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16166    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
16167    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16168    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16169    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16170    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16171    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16172    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
16173    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16174    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
16175    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
16176    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
16177    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16178    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
16179    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
16180    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
16181    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
16182    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
16183    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
16184    "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;;
16185    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
16186    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
16187    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
16188    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
16189    "nls/am_ET.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/am_ET.UTF-8/Makefile" ;;
16190    "nls/armscii-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/armscii-8/Makefile" ;;
16191    "nls/C/Makefile") CONFIG_FILES="$CONFIG_FILES nls/C/Makefile" ;;
16192    "nls/el_GR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/el_GR.UTF-8/Makefile" ;;
16193    "nls/en_US.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/en_US.UTF-8/Makefile" ;;
16194    "nls/fi_FI.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/fi_FI.UTF-8/Makefile" ;;
16195    "nls/georgian-academy/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-academy/Makefile" ;;
16196    "nls/georgian-ps/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-ps/Makefile" ;;
16197    "nls/ibm-cp1133/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ibm-cp1133/Makefile" ;;
16198    "nls/iscii-dev/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iscii-dev/Makefile" ;;
16199    "nls/isiri-3342/Makefile") CONFIG_FILES="$CONFIG_FILES nls/isiri-3342/Makefile" ;;
16200    "nls/iso8859-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-1/Makefile" ;;
16201    "nls/iso8859-10/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-10/Makefile" ;;
16202    "nls/iso8859-11/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-11/Makefile" ;;
16203    "nls/iso8859-13/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-13/Makefile" ;;
16204    "nls/iso8859-14/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-14/Makefile" ;;
16205    "nls/iso8859-15/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-15/Makefile" ;;
16206    "nls/iso8859-2/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-2/Makefile" ;;
16207    "nls/iso8859-3/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-3/Makefile" ;;
16208    "nls/iso8859-4/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-4/Makefile" ;;
16209    "nls/iso8859-5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-5/Makefile" ;;
16210    "nls/iso8859-6/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-6/Makefile" ;;
16211    "nls/iso8859-7/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-7/Makefile" ;;
16212    "nls/iso8859-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-8/Makefile" ;;
16213    "nls/iso8859-9/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9/Makefile" ;;
16214    "nls/iso8859-9e/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9e/Makefile" ;;
16215    "nls/ja/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja/Makefile" ;;
16216    "nls/ja.JIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.JIS/Makefile" ;;
16217    "nls/ja_JP.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja_JP.UTF-8/Makefile" ;;
16218    "nls/ja.S90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.S90/Makefile" ;;
16219    "nls/ja.SJIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.SJIS/Makefile" ;;
16220    "nls/ja.U90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.U90/Makefile" ;;
16221    "nls/ko/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko/Makefile" ;;
16222    "nls/koi8-c/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-c/Makefile" ;;
16223    "nls/koi8-r/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-r/Makefile" ;;
16224    "nls/koi8-u/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-u/Makefile" ;;
16225    "nls/ko_KR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko_KR.UTF-8/Makefile" ;;
16226    "nls/microsoft-cp1251/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1251/Makefile" ;;
16227    "nls/microsoft-cp1255/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1255/Makefile" ;;
16228    "nls/microsoft-cp1256/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1256/Makefile" ;;
16229    "nls/mulelao-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/mulelao-1/Makefile" ;;
16230    "nls/nokhchi-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/nokhchi-1/Makefile" ;;
16231    "nls/pt_BR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/pt_BR.UTF-8/Makefile" ;;
16232    "nls/ru_RU.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ru_RU.UTF-8/Makefile" ;;
16233    "nls/tatar-cyr/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tatar-cyr/Makefile" ;;
16234    "nls/th_TH/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH/Makefile" ;;
16235    "nls/th_TH.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH.UTF-8/Makefile" ;;
16236    "nls/tscii-0/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tscii-0/Makefile" ;;
16237    "nls/vi_VN.tcvn/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.tcvn/Makefile" ;;
16238    "nls/vi_VN.viscii/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.viscii/Makefile" ;;
16239    "nls/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN/Makefile" ;;
16240    "nls/zh_CN.gb18030/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gb18030/Makefile" ;;
16241    "nls/zh_CN.gbk/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gbk/Makefile" ;;
16242    "nls/zh_CN.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.UTF-8/Makefile" ;;
16243    "nls/zh_HK.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5/Makefile" ;;
16244    "nls/zh_HK.big5hkscs/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5hkscs/Makefile" ;;
16245    "nls/zh_HK.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.UTF-8/Makefile" ;;
16246    "nls/zh_TW/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW/Makefile" ;;
16247    "nls/zh_TW.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.big5/Makefile" ;;
16248    "nls/zh_TW.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.UTF-8/Makefile" ;;
16249    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
16250    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
16251    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
16252    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
16253    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
16254    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
16255
16256  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16257  esac
16258done
16259
16260
16261# If the user did not use the arguments to specify the items to instantiate,
16262# then the envvar interface is used.  Set only those that are not.
16263# We use the long form for the default assignment because of an extremely
16264# bizarre bug on SunOS 4.1.3.
16265if $ac_need_defaults; then
16266  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16267  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16268  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16269fi
16270
16271# Have a temporary directory for convenience.  Make it in the build tree
16272# simply because there is no reason against having it here, and in addition,
16273# creating and moving files from /tmp can sometimes cause problems.
16274# Hook for its removal unless debugging.
16275# Note that there is a small window in which the directory will not be cleaned:
16276# after its creation but before its name has been assigned to `$tmp'.
16277$debug ||
16278{
16279  tmp=
16280  trap 'exit_status=$?
16281  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16282' 0
16283  trap 'as_fn_exit 1' 1 2 13 15
16284}
16285# Create a (secure) tmp directory for tmp files.
16286
16287{
16288  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16289  test -n "$tmp" && test -d "$tmp"
16290}  ||
16291{
16292  tmp=./conf$$-$RANDOM
16293  (umask 077 && mkdir "$tmp")
16294} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16295
16296# Set up the scripts for CONFIG_FILES section.
16297# No need to generate them if there are no CONFIG_FILES.
16298# This happens for instance with `./config.status config.h'.
16299if test -n "$CONFIG_FILES"; then
16300
16301
16302ac_cr=`echo X | tr X '\015'`
16303# On cygwin, bash can eat \r inside `` if the user requested igncr.
16304# But we know of no other shell where ac_cr would be empty at this
16305# point, so we can use a bashism as a fallback.
16306if test "x$ac_cr" = x; then
16307  eval ac_cr=\$\'\\r\'
16308fi
16309ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16310if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16311  ac_cs_awk_cr='\r'
16312else
16313  ac_cs_awk_cr=$ac_cr
16314fi
16315
16316echo 'BEGIN {' >"$tmp/subs1.awk" &&
16317_ACEOF
16318
16319
16320{
16321  echo "cat >conf$$subs.awk <<_ACEOF" &&
16322  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16323  echo "_ACEOF"
16324} >conf$$subs.sh ||
16325  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16326ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16327ac_delim='%!_!# '
16328for ac_last_try in false false false false false :; do
16329  . ./conf$$subs.sh ||
16330    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16331
16332  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16333  if test $ac_delim_n = $ac_delim_num; then
16334    break
16335  elif $ac_last_try; then
16336    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16337  else
16338    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16339  fi
16340done
16341rm -f conf$$subs.sh
16342
16343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16345_ACEOF
16346sed -n '
16347h
16348s/^/S["/; s/!.*/"]=/
16349p
16350g
16351s/^[^!]*!//
16352:repl
16353t repl
16354s/'"$ac_delim"'$//
16355t delim
16356:nl
16357h
16358s/\(.\{148\}\)..*/\1/
16359t more1
16360s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16361p
16362n
16363b repl
16364:more1
16365s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16366p
16367g
16368s/.\{148\}//
16369t nl
16370:delim
16371h
16372s/\(.\{148\}\)..*/\1/
16373t more2
16374s/["\\]/\\&/g; s/^/"/; s/$/"/
16375p
16376b
16377:more2
16378s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16379p
16380g
16381s/.\{148\}//
16382t delim
16383' <conf$$subs.awk | sed '
16384/^[^""]/{
16385  N
16386  s/\n//
16387}
16388' >>$CONFIG_STATUS || ac_write_fail=1
16389rm -f conf$$subs.awk
16390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16391_ACAWK
16392cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16393  for (key in S) S_is_set[key] = 1
16394  FS = ""
16395
16396}
16397{
16398  line = $ 0
16399  nfields = split(line, field, "@")
16400  substed = 0
16401  len = length(field[1])
16402  for (i = 2; i < nfields; i++) {
16403    key = field[i]
16404    keylen = length(key)
16405    if (S_is_set[key]) {
16406      value = S[key]
16407      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16408      len += length(value) + length(field[++i])
16409      substed = 1
16410    } else
16411      len += 1 + keylen
16412  }
16413
16414  print line
16415}
16416
16417_ACAWK
16418_ACEOF
16419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16420if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16421  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16422else
16423  cat
16424fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16425  || as_fn_error "could not setup config files machinery" "$LINENO" 5
16426_ACEOF
16427
16428# VPATH may cause trouble with some makes, so we remove $(srcdir),
16429# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16430# trailing colons and then remove the whole line if VPATH becomes empty
16431# (actually we leave an empty line to preserve line numbers).
16432if test "x$srcdir" = x.; then
16433  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16434s/:*\$(srcdir):*/:/
16435s/:*\${srcdir}:*/:/
16436s/:*@srcdir@:*/:/
16437s/^\([^=]*=[	 ]*\):*/\1/
16438s/:*$//
16439s/^[^=]*=[	 ]*$//
16440}'
16441fi
16442
16443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16444fi # test -n "$CONFIG_FILES"
16445
16446# Set up the scripts for CONFIG_HEADERS section.
16447# No need to generate them if there are no CONFIG_HEADERS.
16448# This happens for instance with `./config.status Makefile'.
16449if test -n "$CONFIG_HEADERS"; then
16450cat >"$tmp/defines.awk" <<\_ACAWK ||
16451BEGIN {
16452_ACEOF
16453
16454# Transform confdefs.h into an awk script `defines.awk', embedded as
16455# here-document in config.status, that substitutes the proper values into
16456# config.h.in to produce config.h.
16457
16458# Create a delimiter string that does not exist in confdefs.h, to ease
16459# handling of long lines.
16460ac_delim='%!_!# '
16461for ac_last_try in false false :; do
16462  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16463  if test -z "$ac_t"; then
16464    break
16465  elif $ac_last_try; then
16466    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16467  else
16468    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16469  fi
16470done
16471
16472# For the awk script, D is an array of macro values keyed by name,
16473# likewise P contains macro parameters if any.  Preserve backslash
16474# newline sequences.
16475
16476ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16477sed -n '
16478s/.\{148\}/&'"$ac_delim"'/g
16479t rset
16480:rset
16481s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16482t def
16483d
16484:def
16485s/\\$//
16486t bsnl
16487s/["\\]/\\&/g
16488s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16489D["\1"]=" \3"/p
16490s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16491d
16492:bsnl
16493s/["\\]/\\&/g
16494s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16495D["\1"]=" \3\\\\\\n"\\/p
16496t cont
16497s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16498t cont
16499d
16500:cont
16501n
16502s/.\{148\}/&'"$ac_delim"'/g
16503t clear
16504:clear
16505s/\\$//
16506t bsnlc
16507s/["\\]/\\&/g; s/^/"/; s/$/"/p
16508d
16509:bsnlc
16510s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16511b cont
16512' <confdefs.h | sed '
16513s/'"$ac_delim"'/"\\\
16514"/g' >>$CONFIG_STATUS || ac_write_fail=1
16515
16516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16517  for (key in D) D_is_set[key] = 1
16518  FS = ""
16519}
16520/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16521  line = \$ 0
16522  split(line, arg, " ")
16523  if (arg[1] == "#") {
16524    defundef = arg[2]
16525    mac1 = arg[3]
16526  } else {
16527    defundef = substr(arg[1], 2)
16528    mac1 = arg[2]
16529  }
16530  split(mac1, mac2, "(") #)
16531  macro = mac2[1]
16532  prefix = substr(line, 1, index(line, defundef) - 1)
16533  if (D_is_set[macro]) {
16534    # Preserve the white space surrounding the "#".
16535    print prefix "define", macro P[macro] D[macro]
16536    next
16537  } else {
16538    # Replace #undef with comments.  This is necessary, for example,
16539    # in the case of _POSIX_SOURCE, which is predefined and required
16540    # on some systems where configure will not decide to define it.
16541    if (defundef == "undef") {
16542      print "/*", prefix defundef, macro, "*/"
16543      next
16544    }
16545  }
16546}
16547{ print }
16548_ACAWK
16549_ACEOF
16550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16551  as_fn_error "could not setup config headers machinery" "$LINENO" 5
16552fi # test -n "$CONFIG_HEADERS"
16553
16554
16555eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16556shift
16557for ac_tag
16558do
16559  case $ac_tag in
16560  :[FHLC]) ac_mode=$ac_tag; continue;;
16561  esac
16562  case $ac_mode$ac_tag in
16563  :[FHL]*:*);;
16564  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16565  :[FH]-) ac_tag=-:-;;
16566  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16567  esac
16568  ac_save_IFS=$IFS
16569  IFS=:
16570  set x $ac_tag
16571  IFS=$ac_save_IFS
16572  shift
16573  ac_file=$1
16574  shift
16575
16576  case $ac_mode in
16577  :L) ac_source=$1;;
16578  :[FH])
16579    ac_file_inputs=
16580    for ac_f
16581    do
16582      case $ac_f in
16583      -) ac_f="$tmp/stdin";;
16584      *) # Look for the file first in the build tree, then in the source tree
16585	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16586	 # because $ac_f cannot contain `:'.
16587	 test -f "$ac_f" ||
16588	   case $ac_f in
16589	   [\\/$]*) false;;
16590	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16591	   esac ||
16592	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16593      esac
16594      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16595      as_fn_append ac_file_inputs " '$ac_f'"
16596    done
16597
16598    # Let's still pretend it is `configure' which instantiates (i.e., don't
16599    # use $as_me), people would be surprised to read:
16600    #    /* config.h.  Generated by config.status.  */
16601    configure_input='Generated from '`
16602	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16603	`' by configure.'
16604    if test x"$ac_file" != x-; then
16605      configure_input="$ac_file.  $configure_input"
16606      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16607$as_echo "$as_me: creating $ac_file" >&6;}
16608    fi
16609    # Neutralize special characters interpreted by sed in replacement strings.
16610    case $configure_input in #(
16611    *\&* | *\|* | *\\* )
16612       ac_sed_conf_input=`$as_echo "$configure_input" |
16613       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16614    *) ac_sed_conf_input=$configure_input;;
16615    esac
16616
16617    case $ac_tag in
16618    *:-:* | *:-) cat >"$tmp/stdin" \
16619      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16620    esac
16621    ;;
16622  esac
16623
16624  ac_dir=`$as_dirname -- "$ac_file" ||
16625$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16626	 X"$ac_file" : 'X\(//\)[^/]' \| \
16627	 X"$ac_file" : 'X\(//\)$' \| \
16628	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16629$as_echo X"$ac_file" |
16630    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16631	    s//\1/
16632	    q
16633	  }
16634	  /^X\(\/\/\)[^/].*/{
16635	    s//\1/
16636	    q
16637	  }
16638	  /^X\(\/\/\)$/{
16639	    s//\1/
16640	    q
16641	  }
16642	  /^X\(\/\).*/{
16643	    s//\1/
16644	    q
16645	  }
16646	  s/.*/./; q'`
16647  as_dir="$ac_dir"; as_fn_mkdir_p
16648  ac_builddir=.
16649
16650case "$ac_dir" in
16651.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16652*)
16653  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16654  # A ".." for each directory in $ac_dir_suffix.
16655  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16656  case $ac_top_builddir_sub in
16657  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16658  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16659  esac ;;
16660esac
16661ac_abs_top_builddir=$ac_pwd
16662ac_abs_builddir=$ac_pwd$ac_dir_suffix
16663# for backward compatibility:
16664ac_top_builddir=$ac_top_build_prefix
16665
16666case $srcdir in
16667  .)  # We are building in place.
16668    ac_srcdir=.
16669    ac_top_srcdir=$ac_top_builddir_sub
16670    ac_abs_top_srcdir=$ac_pwd ;;
16671  [\\/]* | ?:[\\/]* )  # Absolute name.
16672    ac_srcdir=$srcdir$ac_dir_suffix;
16673    ac_top_srcdir=$srcdir
16674    ac_abs_top_srcdir=$srcdir ;;
16675  *) # Relative name.
16676    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16677    ac_top_srcdir=$ac_top_build_prefix$srcdir
16678    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16679esac
16680ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16681
16682
16683  case $ac_mode in
16684  :F)
16685  #
16686  # CONFIG_FILE
16687  #
16688
16689  case $INSTALL in
16690  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16691  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16692  esac
16693  ac_MKDIR_P=$MKDIR_P
16694  case $MKDIR_P in
16695  [\\/$]* | ?:[\\/]* ) ;;
16696  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16697  esac
16698_ACEOF
16699
16700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16701# If the template does not know about datarootdir, expand it.
16702# FIXME: This hack should be removed a few years after 2.60.
16703ac_datarootdir_hack=; ac_datarootdir_seen=
16704ac_sed_dataroot='
16705/datarootdir/ {
16706  p
16707  q
16708}
16709/@datadir@/p
16710/@docdir@/p
16711/@infodir@/p
16712/@localedir@/p
16713/@mandir@/p'
16714case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16715*datarootdir*) ac_datarootdir_seen=yes;;
16716*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16717  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16718$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16719_ACEOF
16720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16721  ac_datarootdir_hack='
16722  s&@datadir@&$datadir&g
16723  s&@docdir@&$docdir&g
16724  s&@infodir@&$infodir&g
16725  s&@localedir@&$localedir&g
16726  s&@mandir@&$mandir&g
16727  s&\\\${datarootdir}&$datarootdir&g' ;;
16728esac
16729_ACEOF
16730
16731# Neutralize VPATH when `$srcdir' = `.'.
16732# Shell code in configure.ac might set extrasub.
16733# FIXME: do we really want to maintain this feature?
16734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16735ac_sed_extra="$ac_vpsub
16736$extrasub
16737_ACEOF
16738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16739:t
16740/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16741s|@configure_input@|$ac_sed_conf_input|;t t
16742s&@top_builddir@&$ac_top_builddir_sub&;t t
16743s&@top_build_prefix@&$ac_top_build_prefix&;t t
16744s&@srcdir@&$ac_srcdir&;t t
16745s&@abs_srcdir@&$ac_abs_srcdir&;t t
16746s&@top_srcdir@&$ac_top_srcdir&;t t
16747s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16748s&@builddir@&$ac_builddir&;t t
16749s&@abs_builddir@&$ac_abs_builddir&;t t
16750s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16751s&@INSTALL@&$ac_INSTALL&;t t
16752s&@MKDIR_P@&$ac_MKDIR_P&;t t
16753$ac_datarootdir_hack
16754"
16755eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16756  || as_fn_error "could not create $ac_file" "$LINENO" 5
16757
16758test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16759  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16760  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16761  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16762which seems to be undefined.  Please make sure it is defined." >&5
16763$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16764which seems to be undefined.  Please make sure it is defined." >&2;}
16765
16766  rm -f "$tmp/stdin"
16767  case $ac_file in
16768  -) cat "$tmp/out" && rm -f "$tmp/out";;
16769  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16770  esac \
16771  || as_fn_error "could not create $ac_file" "$LINENO" 5
16772 ;;
16773  :H)
16774  #
16775  # CONFIG_HEADER
16776  #
16777  if test x"$ac_file" != x-; then
16778    {
16779      $as_echo "/* $configure_input  */" \
16780      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16781    } >"$tmp/config.h" \
16782      || as_fn_error "could not create $ac_file" "$LINENO" 5
16783    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16784      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16785$as_echo "$as_me: $ac_file is unchanged" >&6;}
16786    else
16787      rm -f "$ac_file"
16788      mv "$tmp/config.h" "$ac_file" \
16789	|| as_fn_error "could not create $ac_file" "$LINENO" 5
16790    fi
16791  else
16792    $as_echo "/* $configure_input  */" \
16793      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16794      || as_fn_error "could not create -" "$LINENO" 5
16795  fi
16796# Compute "$ac_file"'s index in $config_headers.
16797_am_arg="$ac_file"
16798_am_stamp_count=1
16799for _am_header in $config_headers :; do
16800  case $_am_header in
16801    $_am_arg | $_am_arg:* )
16802      break ;;
16803    * )
16804      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16805  esac
16806done
16807echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16808$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16809	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16810	 X"$_am_arg" : 'X\(//\)$' \| \
16811	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16812$as_echo X"$_am_arg" |
16813    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16814	    s//\1/
16815	    q
16816	  }
16817	  /^X\(\/\/\)[^/].*/{
16818	    s//\1/
16819	    q
16820	  }
16821	  /^X\(\/\/\)$/{
16822	    s//\1/
16823	    q
16824	  }
16825	  /^X\(\/\).*/{
16826	    s//\1/
16827	    q
16828	  }
16829	  s/.*/./; q'`/stamp-h$_am_stamp_count
16830 ;;
16831
16832  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16833$as_echo "$as_me: executing $ac_file commands" >&6;}
16834 ;;
16835  esac
16836
16837
16838  case $ac_file$ac_mode in
16839    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16840  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16841  # are listed without --file.  Let's play safe and only enable the eval
16842  # if we detect the quoting.
16843  case $CONFIG_FILES in
16844  *\'*) eval set x "$CONFIG_FILES" ;;
16845  *)   set x $CONFIG_FILES ;;
16846  esac
16847  shift
16848  for mf
16849  do
16850    # Strip MF so we end up with the name of the file.
16851    mf=`echo "$mf" | sed -e 's/:.*$//'`
16852    # Check whether this is an Automake generated Makefile or not.
16853    # We used to match only the files named `Makefile.in', but
16854    # some people rename them; so instead we look at the file content.
16855    # Grep'ing the first line is not enough: some people post-process
16856    # each Makefile.in and add a new line on top of each file to say so.
16857    # Grep'ing the whole file is not good either: AIX grep has a line
16858    # limit of 2048, but all sed's we know have understand at least 4000.
16859    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16860      dirpart=`$as_dirname -- "$mf" ||
16861$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16862	 X"$mf" : 'X\(//\)[^/]' \| \
16863	 X"$mf" : 'X\(//\)$' \| \
16864	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16865$as_echo X"$mf" |
16866    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16867	    s//\1/
16868	    q
16869	  }
16870	  /^X\(\/\/\)[^/].*/{
16871	    s//\1/
16872	    q
16873	  }
16874	  /^X\(\/\/\)$/{
16875	    s//\1/
16876	    q
16877	  }
16878	  /^X\(\/\).*/{
16879	    s//\1/
16880	    q
16881	  }
16882	  s/.*/./; q'`
16883    else
16884      continue
16885    fi
16886    # Extract the definition of DEPDIR, am__include, and am__quote
16887    # from the Makefile without running `make'.
16888    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16889    test -z "$DEPDIR" && continue
16890    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16891    test -z "am__include" && continue
16892    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16893    # When using ansi2knr, U may be empty or an underscore; expand it
16894    U=`sed -n 's/^U = //p' < "$mf"`
16895    # Find all dependency output files, they are included files with
16896    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16897    # simplest approach to changing $(DEPDIR) to its actual value in the
16898    # expansion.
16899    for file in `sed -n "
16900      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16901	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16902      # Make sure the directory exists.
16903      test -f "$dirpart/$file" && continue
16904      fdir=`$as_dirname -- "$file" ||
16905$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16906	 X"$file" : 'X\(//\)[^/]' \| \
16907	 X"$file" : 'X\(//\)$' \| \
16908	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16909$as_echo X"$file" |
16910    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16911	    s//\1/
16912	    q
16913	  }
16914	  /^X\(\/\/\)[^/].*/{
16915	    s//\1/
16916	    q
16917	  }
16918	  /^X\(\/\/\)$/{
16919	    s//\1/
16920	    q
16921	  }
16922	  /^X\(\/\).*/{
16923	    s//\1/
16924	    q
16925	  }
16926	  s/.*/./; q'`
16927      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16928      # echo "creating $dirpart/$file"
16929      echo '# dummy' > "$dirpart/$file"
16930    done
16931  done
16932}
16933 ;;
16934    "libtool":C)
16935
16936    # See if we are running on zsh, and set the options which allow our
16937    # commands through without removal of \ escapes.
16938    if test -n "${ZSH_VERSION+set}" ; then
16939      setopt NO_GLOB_SUBST
16940    fi
16941
16942    cfgfile="${ofile}T"
16943    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16944    $RM "$cfgfile"
16945
16946    cat <<_LT_EOF >> "$cfgfile"
16947#! $SHELL
16948
16949# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16950# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16951# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16952# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16953#
16954#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16955#                 2006, 2007, 2008 Free Software Foundation, Inc.
16956#   Written by Gordon Matzigkeit, 1996
16957#
16958#   This file is part of GNU Libtool.
16959#
16960# GNU Libtool is free software; you can redistribute it and/or
16961# modify it under the terms of the GNU General Public License as
16962# published by the Free Software Foundation; either version 2 of
16963# the License, or (at your option) any later version.
16964#
16965# As a special exception to the GNU General Public License,
16966# if you distribute this file as part of a program or library that
16967# is built using GNU Libtool, you may include this file under the
16968# same distribution terms that you use for the rest of that program.
16969#
16970# GNU Libtool is distributed in the hope that it will be useful,
16971# but WITHOUT ANY WARRANTY; without even the implied warranty of
16972# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16973# GNU General Public License for more details.
16974#
16975# You should have received a copy of the GNU General Public License
16976# along with GNU Libtool; see the file COPYING.  If not, a copy
16977# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16978# obtained by writing to the Free Software Foundation, Inc.,
16979# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16980
16981
16982# The names of the tagged configurations supported by this script.
16983available_tags=""
16984
16985# ### BEGIN LIBTOOL CONFIG
16986
16987# Which release of libtool.m4 was used?
16988macro_version=$macro_version
16989macro_revision=$macro_revision
16990
16991# Whether or not to build shared libraries.
16992build_libtool_libs=$enable_shared
16993
16994# Whether or not to build static libraries.
16995build_old_libs=$enable_static
16996
16997# What type of objects to build.
16998pic_mode=$pic_mode
16999
17000# Whether or not to optimize for fast installation.
17001fast_install=$enable_fast_install
17002
17003# The host system.
17004host_alias=$host_alias
17005host=$host
17006host_os=$host_os
17007
17008# The build system.
17009build_alias=$build_alias
17010build=$build
17011build_os=$build_os
17012
17013# A sed program that does not truncate output.
17014SED=$lt_SED
17015
17016# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17017Xsed="\$SED -e 1s/^X//"
17018
17019# A grep program that handles long lines.
17020GREP=$lt_GREP
17021
17022# An ERE matcher.
17023EGREP=$lt_EGREP
17024
17025# A literal string matcher.
17026FGREP=$lt_FGREP
17027
17028# A BSD- or MS-compatible name lister.
17029NM=$lt_NM
17030
17031# Whether we need soft or hard links.
17032LN_S=$lt_LN_S
17033
17034# What is the maximum length of a command?
17035max_cmd_len=$max_cmd_len
17036
17037# Object file suffix (normally "o").
17038objext=$ac_objext
17039
17040# Executable file suffix (normally "").
17041exeext=$exeext
17042
17043# whether the shell understands "unset".
17044lt_unset=$lt_unset
17045
17046# turn spaces into newlines.
17047SP2NL=$lt_lt_SP2NL
17048
17049# turn newlines into spaces.
17050NL2SP=$lt_lt_NL2SP
17051
17052# How to create reloadable object files.
17053reload_flag=$lt_reload_flag
17054reload_cmds=$lt_reload_cmds
17055
17056# An object symbol dumper.
17057OBJDUMP=$lt_OBJDUMP
17058
17059# Method to check whether dependent libraries are shared objects.
17060deplibs_check_method=$lt_deplibs_check_method
17061
17062# Command to use when deplibs_check_method == "file_magic".
17063file_magic_cmd=$lt_file_magic_cmd
17064
17065# The archiver.
17066AR=$lt_AR
17067AR_FLAGS=$lt_AR_FLAGS
17068
17069# A symbol stripping program.
17070STRIP=$lt_STRIP
17071
17072# Commands used to install an old-style archive.
17073RANLIB=$lt_RANLIB
17074old_postinstall_cmds=$lt_old_postinstall_cmds
17075old_postuninstall_cmds=$lt_old_postuninstall_cmds
17076
17077# A C compiler.
17078LTCC=$lt_CC
17079
17080# LTCC compiler flags.
17081LTCFLAGS=$lt_CFLAGS
17082
17083# Take the output of nm and produce a listing of raw symbols and C names.
17084global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17085
17086# Transform the output of nm in a proper C declaration.
17087global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17088
17089# Transform the output of nm in a C name address pair.
17090global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17091
17092# Transform the output of nm in a C name address pair when lib prefix is needed.
17093global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17094
17095# The name of the directory that contains temporary libtool files.
17096objdir=$objdir
17097
17098# Shell to use when invoking shell scripts.
17099SHELL=$lt_SHELL
17100
17101# An echo program that does not interpret backslashes.
17102ECHO=$lt_ECHO
17103
17104# Used to examine libraries when file_magic_cmd begins with "file".
17105MAGIC_CMD=$MAGIC_CMD
17106
17107# Must we lock files when doing compilation?
17108need_locks=$lt_need_locks
17109
17110# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17111DSYMUTIL=$lt_DSYMUTIL
17112
17113# Tool to change global to local symbols on Mac OS X.
17114NMEDIT=$lt_NMEDIT
17115
17116# Tool to manipulate fat objects and archives on Mac OS X.
17117LIPO=$lt_LIPO
17118
17119# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17120OTOOL=$lt_OTOOL
17121
17122# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17123OTOOL64=$lt_OTOOL64
17124
17125# Old archive suffix (normally "a").
17126libext=$libext
17127
17128# Shared library suffix (normally ".so").
17129shrext_cmds=$lt_shrext_cmds
17130
17131# The commands to extract the exported symbol list from a shared archive.
17132extract_expsyms_cmds=$lt_extract_expsyms_cmds
17133
17134# Variables whose values should be saved in libtool wrapper scripts and
17135# restored at link time.
17136variables_saved_for_relink=$lt_variables_saved_for_relink
17137
17138# Do we need the "lib" prefix for modules?
17139need_lib_prefix=$need_lib_prefix
17140
17141# Do we need a version for libraries?
17142need_version=$need_version
17143
17144# Library versioning type.
17145version_type=$version_type
17146
17147# Shared library runtime path variable.
17148runpath_var=$runpath_var
17149
17150# Shared library path variable.
17151shlibpath_var=$shlibpath_var
17152
17153# Is shlibpath searched before the hard-coded library search path?
17154shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17155
17156# Format of library name prefix.
17157libname_spec=$lt_libname_spec
17158
17159# List of archive names.  First name is the real one, the rest are links.
17160# The last name is the one that the linker finds with -lNAME
17161library_names_spec=$lt_library_names_spec
17162
17163# The coded name of the library, if different from the real name.
17164soname_spec=$lt_soname_spec
17165
17166# Command to use after installation of a shared archive.
17167postinstall_cmds=$lt_postinstall_cmds
17168
17169# Command to use after uninstallation of a shared archive.
17170postuninstall_cmds=$lt_postuninstall_cmds
17171
17172# Commands used to finish a libtool library installation in a directory.
17173finish_cmds=$lt_finish_cmds
17174
17175# As "finish_cmds", except a single script fragment to be evaled but
17176# not shown.
17177finish_eval=$lt_finish_eval
17178
17179# Whether we should hardcode library paths into libraries.
17180hardcode_into_libs=$hardcode_into_libs
17181
17182# Compile-time system search path for libraries.
17183sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17184
17185# Run-time system search path for libraries.
17186sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17187
17188# Whether dlopen is supported.
17189dlopen_support=$enable_dlopen
17190
17191# Whether dlopen of programs is supported.
17192dlopen_self=$enable_dlopen_self
17193
17194# Whether dlopen of statically linked programs is supported.
17195dlopen_self_static=$enable_dlopen_self_static
17196
17197# Commands to strip libraries.
17198old_striplib=$lt_old_striplib
17199striplib=$lt_striplib
17200
17201
17202# The linker used to build libraries.
17203LD=$lt_LD
17204
17205# Commands used to build an old-style archive.
17206old_archive_cmds=$lt_old_archive_cmds
17207
17208# A language specific compiler.
17209CC=$lt_compiler
17210
17211# Is the compiler the GNU compiler?
17212with_gcc=$GCC
17213
17214# Compiler flag to turn off builtin functions.
17215no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17216
17217# How to pass a linker flag through the compiler.
17218wl=$lt_lt_prog_compiler_wl
17219
17220# Additional compiler flags for building library objects.
17221pic_flag=$lt_lt_prog_compiler_pic
17222
17223# Compiler flag to prevent dynamic linking.
17224link_static_flag=$lt_lt_prog_compiler_static
17225
17226# Does compiler simultaneously support -c and -o options?
17227compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17228
17229# Whether or not to add -lc for building shared libraries.
17230build_libtool_need_lc=$archive_cmds_need_lc
17231
17232# Whether or not to disallow shared libs when runtime libs are static.
17233allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17234
17235# Compiler flag to allow reflexive dlopens.
17236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17237
17238# Compiler flag to generate shared objects directly from archives.
17239whole_archive_flag_spec=$lt_whole_archive_flag_spec
17240
17241# Whether the compiler copes with passing no objects directly.
17242compiler_needs_object=$lt_compiler_needs_object
17243
17244# Create an old-style archive from a shared archive.
17245old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17246
17247# Create a temporary old-style archive to link instead of a shared archive.
17248old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17249
17250# Commands used to build a shared archive.
17251archive_cmds=$lt_archive_cmds
17252archive_expsym_cmds=$lt_archive_expsym_cmds
17253
17254# Commands used to build a loadable module if different from building
17255# a shared archive.
17256module_cmds=$lt_module_cmds
17257module_expsym_cmds=$lt_module_expsym_cmds
17258
17259# Whether we are building with GNU ld or not.
17260with_gnu_ld=$lt_with_gnu_ld
17261
17262# Flag that allows shared libraries with undefined symbols to be built.
17263allow_undefined_flag=$lt_allow_undefined_flag
17264
17265# Flag that enforces no undefined symbols.
17266no_undefined_flag=$lt_no_undefined_flag
17267
17268# Flag to hardcode \$libdir into a binary during linking.
17269# This must work even if \$libdir does not exist
17270hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17271
17272# If ld is used when linking, flag to hardcode \$libdir into a binary
17273# during linking.  This must work even if \$libdir does not exist.
17274hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17275
17276# Whether we need a single "-rpath" flag with a separated argument.
17277hardcode_libdir_separator=$lt_hardcode_libdir_separator
17278
17279# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17280# DIR into the resulting binary.
17281hardcode_direct=$hardcode_direct
17282
17283# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17284# DIR into the resulting binary and the resulting library dependency is
17285# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17286# library is relocated.
17287hardcode_direct_absolute=$hardcode_direct_absolute
17288
17289# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17290# into the resulting binary.
17291hardcode_minus_L=$hardcode_minus_L
17292
17293# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17294# into the resulting binary.
17295hardcode_shlibpath_var=$hardcode_shlibpath_var
17296
17297# Set to "yes" if building a shared library automatically hardcodes DIR
17298# into the library and all subsequent libraries and executables linked
17299# against it.
17300hardcode_automatic=$hardcode_automatic
17301
17302# Set to yes if linker adds runtime paths of dependent libraries
17303# to runtime path list.
17304inherit_rpath=$inherit_rpath
17305
17306# Whether libtool must link a program against all its dependency libraries.
17307link_all_deplibs=$link_all_deplibs
17308
17309# Fix the shell variable \$srcfile for the compiler.
17310fix_srcfile_path=$lt_fix_srcfile_path
17311
17312# Set to "yes" if exported symbols are required.
17313always_export_symbols=$always_export_symbols
17314
17315# The commands to list exported symbols.
17316export_symbols_cmds=$lt_export_symbols_cmds
17317
17318# Symbols that should not be listed in the preloaded symbols.
17319exclude_expsyms=$lt_exclude_expsyms
17320
17321# Symbols that must always be exported.
17322include_expsyms=$lt_include_expsyms
17323
17324# Commands necessary for linking programs (against libraries) with templates.
17325prelink_cmds=$lt_prelink_cmds
17326
17327# Specify filename containing input files.
17328file_list_spec=$lt_file_list_spec
17329
17330# How to hardcode a shared library path into an executable.
17331hardcode_action=$hardcode_action
17332
17333# ### END LIBTOOL CONFIG
17334
17335_LT_EOF
17336
17337  case $host_os in
17338  aix3*)
17339    cat <<\_LT_EOF >> "$cfgfile"
17340# AIX sometimes has problems with the GCC collect2 program.  For some
17341# reason, if we set the COLLECT_NAMES environment variable, the problems
17342# vanish in a puff of smoke.
17343if test "X${COLLECT_NAMES+set}" != Xset; then
17344  COLLECT_NAMES=
17345  export COLLECT_NAMES
17346fi
17347_LT_EOF
17348    ;;
17349  esac
17350
17351
17352ltmain="$ac_aux_dir/ltmain.sh"
17353
17354
17355  # We use sed instead of cat because bash on DJGPP gets confused if
17356  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17357  # text mode, it properly converts lines to CR/LF.  This bash problem
17358  # is reportedly fixed, but why not run on old versions too?
17359  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17360    || (rm -f "$cfgfile"; exit 1)
17361
17362  case $xsi_shell in
17363  yes)
17364    cat << \_LT_EOF >> "$cfgfile"
17365
17366# func_dirname file append nondir_replacement
17367# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17368# otherwise set result to NONDIR_REPLACEMENT.
17369func_dirname ()
17370{
17371  case ${1} in
17372    */*) func_dirname_result="${1%/*}${2}" ;;
17373    *  ) func_dirname_result="${3}" ;;
17374  esac
17375}
17376
17377# func_basename file
17378func_basename ()
17379{
17380  func_basename_result="${1##*/}"
17381}
17382
17383# func_dirname_and_basename file append nondir_replacement
17384# perform func_basename and func_dirname in a single function
17385# call:
17386#   dirname:  Compute the dirname of FILE.  If nonempty,
17387#             add APPEND to the result, otherwise set result
17388#             to NONDIR_REPLACEMENT.
17389#             value returned in "$func_dirname_result"
17390#   basename: Compute filename of FILE.
17391#             value retuned in "$func_basename_result"
17392# Implementation must be kept synchronized with func_dirname
17393# and func_basename. For efficiency, we do not delegate to
17394# those functions but instead duplicate the functionality here.
17395func_dirname_and_basename ()
17396{
17397  case ${1} in
17398    */*) func_dirname_result="${1%/*}${2}" ;;
17399    *  ) func_dirname_result="${3}" ;;
17400  esac
17401  func_basename_result="${1##*/}"
17402}
17403
17404# func_stripname prefix suffix name
17405# strip PREFIX and SUFFIX off of NAME.
17406# PREFIX and SUFFIX must not contain globbing or regex special
17407# characters, hashes, percent signs, but SUFFIX may contain a leading
17408# dot (in which case that matches only a dot).
17409func_stripname ()
17410{
17411  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17412  # positional parameters, so assign one to ordinary parameter first.
17413  func_stripname_result=${3}
17414  func_stripname_result=${func_stripname_result#"${1}"}
17415  func_stripname_result=${func_stripname_result%"${2}"}
17416}
17417
17418# func_opt_split
17419func_opt_split ()
17420{
17421  func_opt_split_opt=${1%%=*}
17422  func_opt_split_arg=${1#*=}
17423}
17424
17425# func_lo2o object
17426func_lo2o ()
17427{
17428  case ${1} in
17429    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17430    *)    func_lo2o_result=${1} ;;
17431  esac
17432}
17433
17434# func_xform libobj-or-source
17435func_xform ()
17436{
17437  func_xform_result=${1%.*}.lo
17438}
17439
17440# func_arith arithmetic-term...
17441func_arith ()
17442{
17443  func_arith_result=$(( $* ))
17444}
17445
17446# func_len string
17447# STRING may not start with a hyphen.
17448func_len ()
17449{
17450  func_len_result=${#1}
17451}
17452
17453_LT_EOF
17454    ;;
17455  *) # Bourne compatible functions.
17456    cat << \_LT_EOF >> "$cfgfile"
17457
17458# func_dirname file append nondir_replacement
17459# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17460# otherwise set result to NONDIR_REPLACEMENT.
17461func_dirname ()
17462{
17463  # Extract subdirectory from the argument.
17464  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17465  if test "X$func_dirname_result" = "X${1}"; then
17466    func_dirname_result="${3}"
17467  else
17468    func_dirname_result="$func_dirname_result${2}"
17469  fi
17470}
17471
17472# func_basename file
17473func_basename ()
17474{
17475  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17476}
17477
17478
17479# func_stripname prefix suffix name
17480# strip PREFIX and SUFFIX off of NAME.
17481# PREFIX and SUFFIX must not contain globbing or regex special
17482# characters, hashes, percent signs, but SUFFIX may contain a leading
17483# dot (in which case that matches only a dot).
17484# func_strip_suffix prefix name
17485func_stripname ()
17486{
17487  case ${2} in
17488    .*) func_stripname_result=`$ECHO "X${3}" \
17489           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17490    *)  func_stripname_result=`$ECHO "X${3}" \
17491           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17492  esac
17493}
17494
17495# sed scripts:
17496my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17497my_sed_long_arg='1s/^-[^=]*=//'
17498
17499# func_opt_split
17500func_opt_split ()
17501{
17502  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17503  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17504}
17505
17506# func_lo2o object
17507func_lo2o ()
17508{
17509  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17510}
17511
17512# func_xform libobj-or-source
17513func_xform ()
17514{
17515  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17516}
17517
17518# func_arith arithmetic-term...
17519func_arith ()
17520{
17521  func_arith_result=`expr "$@"`
17522}
17523
17524# func_len string
17525# STRING may not start with a hyphen.
17526func_len ()
17527{
17528  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17529}
17530
17531_LT_EOF
17532esac
17533
17534case $lt_shell_append in
17535  yes)
17536    cat << \_LT_EOF >> "$cfgfile"
17537
17538# func_append var value
17539# Append VALUE to the end of shell variable VAR.
17540func_append ()
17541{
17542  eval "$1+=\$2"
17543}
17544_LT_EOF
17545    ;;
17546  *)
17547    cat << \_LT_EOF >> "$cfgfile"
17548
17549# func_append var value
17550# Append VALUE to the end of shell variable VAR.
17551func_append ()
17552{
17553  eval "$1=\$$1\$2"
17554}
17555
17556_LT_EOF
17557    ;;
17558  esac
17559
17560
17561  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17562    || (rm -f "$cfgfile"; exit 1)
17563
17564  mv -f "$cfgfile" "$ofile" ||
17565    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17566  chmod +x "$ofile"
17567
17568 ;;
17569
17570  esac
17571done # for ac_tag
17572
17573
17574as_fn_exit 0
17575_ACEOF
17576ac_clean_files=$ac_clean_files_save
17577
17578test $ac_write_fail = 0 ||
17579  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17580
17581
17582# configure is writing to config.log, and then calls config.status.
17583# config.status does its own redirection, appending to config.log.
17584# Unfortunately, on DOS this fails, as config.log is still kept open
17585# by configure, so config.status won't be able to write to it; its
17586# output is simply discarded.  So we exec the FD to /dev/null,
17587# effectively closing config.log, so it can be properly (re)opened and
17588# appended to by config.status.  When coming back to configure, we
17589# need to make the FD available again.
17590if test "$no_create" != yes; then
17591  ac_cs_success=:
17592  ac_config_status_args=
17593  test "$silent" = yes &&
17594    ac_config_status_args="$ac_config_status_args --quiet"
17595  exec 5>/dev/null
17596  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17597  exec 5>>config.log
17598  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17599  # would make configure fail if this is the last instruction.
17600  $ac_cs_success || as_fn_exit $?
17601fi
17602if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17603  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17604$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17605fi
17606
17607
17608man_pages_suffix=$LIB_MAN_SUFFIX
17609if test -z "$man_pages_suffix"; then
17610    man_pages_suffix=none
17611fi
17612
17613echo ""
17614echo "X11 will be built with the following settings:"
17615echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
17616echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
17617echo " Use XCB:                                 "$ac_cv_use_xcb
17618echo " Threading support:                       "$xthreads
17619echo " Use Threads safe API:                    "$mtsafeapi
17620echo " Threads stubs in libX11:                 "$thrstubs
17621echo " XCMS:                                    "$XCMS
17622echo " Internationalization support:            "$XLOCALE
17623echo " XF86BigFont support:                     "$XF86BIGFONT
17624echo " XKB support:                             "$XKB
17625echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
17626echo " Manual pages suffix:                     "$man_pages_suffix
17627echo " Compose table cache enabled:             "$COMPOSECACHE
17628echo " Functional specs building enabled:       "$build_specs
17629echo ""
17630