1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="xteddy.c"
580ac_subst_vars='SHELL
581PATH_SEPARATOR
582PACKAGE_NAME
583PACKAGE_TARNAME
584PACKAGE_VERSION
585PACKAGE_STRING
586PACKAGE_BUGREPORT
587exec_prefix
588prefix
589program_transform_name
590bindir
591sbindir
592libexecdir
593datarootdir
594datadir
595sysconfdir
596sharedstatedir
597localstatedir
598includedir
599oldincludedir
600docdir
601infodir
602htmldir
603dvidir
604pdfdir
605psdir
606libdir
607localedir
608mandir
609DEFS
610ECHO_C
611ECHO_N
612ECHO_T
613LIBS
614build_alias
615host_alias
616target_alias
617INSTALL_PROGRAM
618INSTALL_SCRIPT
619INSTALL_DATA
620am__isrc
621CYGPATH_W
622PACKAGE
623VERSION
624ACLOCAL
625AUTOCONF
626AUTOMAKE
627AUTOHEADER
628MAKEINFO
629install_sh
630STRIP
631INSTALL_STRIP_PROGRAM
632mkdir_p
633AWK
634SET_MAKE
635am__leading_dot
636AMTAR
637am__tar
638am__untar
639CC
640CFLAGS
641LDFLAGS
642CPPFLAGS
643ac_ct_CC
644EXEEXT
645OBJEXT
646DEPDIR
647am__include
648am__quote
649AMDEP_TRUE
650AMDEP_FALSE
651AMDEPBACKSLASH
652CCDEPMODE
653am__fastdepCC_TRUE
654am__fastdepCC_FALSE
655XMKMF
656CPP
657X_CFLAGS
658X_PRE_LIBS
659X_LIBS
660X_EXTRA_LIBS
661PKG_CONFIG
662IMLIB2_CFLAGS
663IMLIB2_LIBS
664PIXMAP_PATH
665LIBOBJS
666LTLIBOBJS'
667ac_subst_files=''
668      ac_precious_vars='build_alias
669host_alias
670target_alias
671CC
672CFLAGS
673LDFLAGS
674LIBS
675CPPFLAGS
676XMKMF
677CPP
678PKG_CONFIG
679IMLIB2_CFLAGS
680IMLIB2_LIBS'
681
682
683# Initialize some variables set by options.
684ac_init_help=
685ac_init_version=false
686# The variables have the same names as the options, with
687# dashes changed to underlines.
688cache_file=/dev/null
689exec_prefix=NONE
690no_create=
691no_recursion=
692prefix=NONE
693program_prefix=NONE
694program_suffix=NONE
695program_transform_name=s,x,x,
696silent=
697site=
698srcdir=
699verbose=
700x_includes=NONE
701x_libraries=NONE
702
703# Installation directory options.
704# These are left unexpanded so users can "make install exec_prefix=/foo"
705# and all the variables that are supposed to be based on exec_prefix
706# by default will actually change.
707# Use braces instead of parens because sh, perl, etc. also accept them.
708# (The list follows the same order as the GNU Coding Standards.)
709bindir='${exec_prefix}/bin'
710sbindir='${exec_prefix}/sbin'
711libexecdir='${exec_prefix}/libexec'
712datarootdir='${prefix}/share'
713datadir='${datarootdir}'
714sysconfdir='${prefix}/etc'
715sharedstatedir='${prefix}/com'
716localstatedir='${prefix}/var'
717includedir='${prefix}/include'
718oldincludedir='/usr/include'
719docdir='${datarootdir}/doc/${PACKAGE}'
720infodir='${datarootdir}/info'
721htmldir='${docdir}'
722dvidir='${docdir}'
723pdfdir='${docdir}'
724psdir='${docdir}'
725libdir='${exec_prefix}/lib'
726localedir='${datarootdir}/locale'
727mandir='${datarootdir}/man'
728
729ac_prev=
730ac_dashdash=
731for ac_option
732do
733  # If the previous option needs an argument, assign it.
734  if test -n "$ac_prev"; then
735    eval $ac_prev=\$ac_option
736    ac_prev=
737    continue
738  fi
739
740  case $ac_option in
741  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
742  *)	ac_optarg=yes ;;
743  esac
744
745  # Accept the important Cygnus configure options, so we can diagnose typos.
746
747  case $ac_dashdash$ac_option in
748  --)
749    ac_dashdash=yes ;;
750
751  -bindir | --bindir | --bindi | --bind | --bin | --bi)
752    ac_prev=bindir ;;
753  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
754    bindir=$ac_optarg ;;
755
756  -build | --build | --buil | --bui | --bu)
757    ac_prev=build_alias ;;
758  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
759    build_alias=$ac_optarg ;;
760
761  -cache-file | --cache-file | --cache-fil | --cache-fi \
762  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
763    ac_prev=cache_file ;;
764  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
765  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
766    cache_file=$ac_optarg ;;
767
768  --config-cache | -C)
769    cache_file=config.cache ;;
770
771  -datadir | --datadir | --datadi | --datad)
772    ac_prev=datadir ;;
773  -datadir=* | --datadir=* | --datadi=* | --datad=*)
774    datadir=$ac_optarg ;;
775
776  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
777  | --dataroo | --dataro | --datar)
778    ac_prev=datarootdir ;;
779  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
780  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
781    datarootdir=$ac_optarg ;;
782
783  -disable-* | --disable-*)
784    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
785    # Reject names that are not valid shell variable names.
786    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
787      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
788   { (exit 1); exit 1; }; }
789    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
790    eval enable_$ac_feature=no ;;
791
792  -docdir | --docdir | --docdi | --doc | --do)
793    ac_prev=docdir ;;
794  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
795    docdir=$ac_optarg ;;
796
797  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
798    ac_prev=dvidir ;;
799  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
800    dvidir=$ac_optarg ;;
801
802  -enable-* | --enable-*)
803    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
804    # Reject names that are not valid shell variable names.
805    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
807   { (exit 1); exit 1; }; }
808    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
809    eval enable_$ac_feature=\$ac_optarg ;;
810
811  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
812  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
813  | --exec | --exe | --ex)
814    ac_prev=exec_prefix ;;
815  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
816  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
817  | --exec=* | --exe=* | --ex=*)
818    exec_prefix=$ac_optarg ;;
819
820  -gas | --gas | --ga | --g)
821    # Obsolete; use --with-gas.
822    with_gas=yes ;;
823
824  -help | --help | --hel | --he | -h)
825    ac_init_help=long ;;
826  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
827    ac_init_help=recursive ;;
828  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
829    ac_init_help=short ;;
830
831  -host | --host | --hos | --ho)
832    ac_prev=host_alias ;;
833  -host=* | --host=* | --hos=* | --ho=*)
834    host_alias=$ac_optarg ;;
835
836  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
837    ac_prev=htmldir ;;
838  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
839  | --ht=*)
840    htmldir=$ac_optarg ;;
841
842  -includedir | --includedir | --includedi | --included | --include \
843  | --includ | --inclu | --incl | --inc)
844    ac_prev=includedir ;;
845  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
846  | --includ=* | --inclu=* | --incl=* | --inc=*)
847    includedir=$ac_optarg ;;
848
849  -infodir | --infodir | --infodi | --infod | --info | --inf)
850    ac_prev=infodir ;;
851  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
852    infodir=$ac_optarg ;;
853
854  -libdir | --libdir | --libdi | --libd)
855    ac_prev=libdir ;;
856  -libdir=* | --libdir=* | --libdi=* | --libd=*)
857    libdir=$ac_optarg ;;
858
859  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
860  | --libexe | --libex | --libe)
861    ac_prev=libexecdir ;;
862  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
863  | --libexe=* | --libex=* | --libe=*)
864    libexecdir=$ac_optarg ;;
865
866  -localedir | --localedir | --localedi | --localed | --locale)
867    ac_prev=localedir ;;
868  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
869    localedir=$ac_optarg ;;
870
871  -localstatedir | --localstatedir | --localstatedi | --localstated \
872  | --localstate | --localstat | --localsta | --localst | --locals)
873    ac_prev=localstatedir ;;
874  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
875  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
876    localstatedir=$ac_optarg ;;
877
878  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
879    ac_prev=mandir ;;
880  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
881    mandir=$ac_optarg ;;
882
883  -nfp | --nfp | --nf)
884    # Obsolete; use --without-fp.
885    with_fp=no ;;
886
887  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
888  | --no-cr | --no-c | -n)
889    no_create=yes ;;
890
891  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
892  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
893    no_recursion=yes ;;
894
895  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
896  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
897  | --oldin | --oldi | --old | --ol | --o)
898    ac_prev=oldincludedir ;;
899  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
900  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
901  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
902    oldincludedir=$ac_optarg ;;
903
904  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
905    ac_prev=prefix ;;
906  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
907    prefix=$ac_optarg ;;
908
909  -program-prefix | --program-prefix | --program-prefi | --program-pref \
910  | --program-pre | --program-pr | --program-p)
911    ac_prev=program_prefix ;;
912  -program-prefix=* | --program-prefix=* | --program-prefi=* \
913  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
914    program_prefix=$ac_optarg ;;
915
916  -program-suffix | --program-suffix | --program-suffi | --program-suff \
917  | --program-suf | --program-su | --program-s)
918    ac_prev=program_suffix ;;
919  -program-suffix=* | --program-suffix=* | --program-suffi=* \
920  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
921    program_suffix=$ac_optarg ;;
922
923  -program-transform-name | --program-transform-name \
924  | --program-transform-nam | --program-transform-na \
925  | --program-transform-n | --program-transform- \
926  | --program-transform | --program-transfor \
927  | --program-transfo | --program-transf \
928  | --program-trans | --program-tran \
929  | --progr-tra | --program-tr | --program-t)
930    ac_prev=program_transform_name ;;
931  -program-transform-name=* | --program-transform-name=* \
932  | --program-transform-nam=* | --program-transform-na=* \
933  | --program-transform-n=* | --program-transform-=* \
934  | --program-transform=* | --program-transfor=* \
935  | --program-transfo=* | --program-transf=* \
936  | --program-trans=* | --program-tran=* \
937  | --progr-tra=* | --program-tr=* | --program-t=*)
938    program_transform_name=$ac_optarg ;;
939
940  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
941    ac_prev=pdfdir ;;
942  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
943    pdfdir=$ac_optarg ;;
944
945  -psdir | --psdir | --psdi | --psd | --ps)
946    ac_prev=psdir ;;
947  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
948    psdir=$ac_optarg ;;
949
950  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
951  | -silent | --silent | --silen | --sile | --sil)
952    silent=yes ;;
953
954  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
955    ac_prev=sbindir ;;
956  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
957  | --sbi=* | --sb=*)
958    sbindir=$ac_optarg ;;
959
960  -sharedstatedir | --sharedstatedir | --sharedstatedi \
961  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
962  | --sharedst | --shareds | --shared | --share | --shar \
963  | --sha | --sh)
964    ac_prev=sharedstatedir ;;
965  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
966  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
967  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
968  | --sha=* | --sh=*)
969    sharedstatedir=$ac_optarg ;;
970
971  -site | --site | --sit)
972    ac_prev=site ;;
973  -site=* | --site=* | --sit=*)
974    site=$ac_optarg ;;
975
976  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
977    ac_prev=srcdir ;;
978  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979    srcdir=$ac_optarg ;;
980
981  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
982  | --syscon | --sysco | --sysc | --sys | --sy)
983    ac_prev=sysconfdir ;;
984  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
985  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
986    sysconfdir=$ac_optarg ;;
987
988  -target | --target | --targe | --targ | --tar | --ta | --t)
989    ac_prev=target_alias ;;
990  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
991    target_alias=$ac_optarg ;;
992
993  -v | -verbose | --verbose | --verbos | --verbo | --verb)
994    verbose=yes ;;
995
996  -version | --version | --versio | --versi | --vers | -V)
997    ac_init_version=: ;;
998
999  -with-* | --with-*)
1000    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1001    # Reject names that are not valid shell variable names.
1002    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003      { echo "$as_me: error: invalid package name: $ac_package" >&2
1004   { (exit 1); exit 1; }; }
1005    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1006    eval with_$ac_package=\$ac_optarg ;;
1007
1008  -without-* | --without-*)
1009    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012      { echo "$as_me: error: invalid package name: $ac_package" >&2
1013   { (exit 1); exit 1; }; }
1014    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1015    eval with_$ac_package=no ;;
1016
1017  --x)
1018    # Obsolete; use --with-x.
1019    with_x=yes ;;
1020
1021  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1022  | --x-incl | --x-inc | --x-in | --x-i)
1023    ac_prev=x_includes ;;
1024  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1025  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1026    x_includes=$ac_optarg ;;
1027
1028  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1029  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1030    ac_prev=x_libraries ;;
1031  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1032  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1033    x_libraries=$ac_optarg ;;
1034
1035  -*) { echo "$as_me: error: unrecognized option: $ac_option
1036Try \`$0 --help' for more information." >&2
1037   { (exit 1); exit 1; }; }
1038    ;;
1039
1040  *=*)
1041    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1042    # Reject names that are not valid shell variable names.
1043    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1044      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1045   { (exit 1); exit 1; }; }
1046    eval $ac_envvar=\$ac_optarg
1047    export $ac_envvar ;;
1048
1049  *)
1050    # FIXME: should be removed in autoconf 3.0.
1051    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1052    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1054    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1055    ;;
1056
1057  esac
1058done
1059
1060if test -n "$ac_prev"; then
1061  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1062  { echo "$as_me: error: missing argument to $ac_option" >&2
1063   { (exit 1); exit 1; }; }
1064fi
1065
1066# Be sure to have absolute directory names.
1067for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1068		datadir sysconfdir sharedstatedir localstatedir includedir \
1069		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1070		libdir localedir mandir
1071do
1072  eval ac_val=\$$ac_var
1073  case $ac_val in
1074    [\\/$]* | ?:[\\/]* )  continue;;
1075    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1076  esac
1077  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1078   { (exit 1); exit 1; }; }
1079done
1080
1081# There might be people who depend on the old broken behavior: `$host'
1082# used to hold the argument of --host etc.
1083# FIXME: To remove some day.
1084build=$build_alias
1085host=$host_alias
1086target=$target_alias
1087
1088# FIXME: To remove some day.
1089if test "x$host_alias" != x; then
1090  if test "x$build_alias" = x; then
1091    cross_compiling=maybe
1092    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1093    If a cross compiler is detected then cross compile mode will be used." >&2
1094  elif test "x$build_alias" != "x$host_alias"; then
1095    cross_compiling=yes
1096  fi
1097fi
1098
1099ac_tool_prefix=
1100test -n "$host_alias" && ac_tool_prefix=$host_alias-
1101
1102test "$silent" = yes && exec 6>/dev/null
1103
1104
1105ac_pwd=`pwd` && test -n "$ac_pwd" &&
1106ac_ls_di=`ls -di .` &&
1107ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1108  { echo "$as_me: error: Working directory cannot be determined" >&2
1109   { (exit 1); exit 1; }; }
1110test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1111  { echo "$as_me: error: pwd does not report name of working directory" >&2
1112   { (exit 1); exit 1; }; }
1113
1114
1115# Find the source files, if location was not specified.
1116if test -z "$srcdir"; then
1117  ac_srcdir_defaulted=yes
1118  # Try the directory containing this script, then the parent directory.
1119  ac_confdir=`$as_dirname -- "$0" ||
1120$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1121	 X"$0" : 'X\(//\)[^/]' \| \
1122	 X"$0" : 'X\(//\)$' \| \
1123	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1124echo X"$0" |
1125    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1126	    s//\1/
1127	    q
1128	  }
1129	  /^X\(\/\/\)[^/].*/{
1130	    s//\1/
1131	    q
1132	  }
1133	  /^X\(\/\/\)$/{
1134	    s//\1/
1135	    q
1136	  }
1137	  /^X\(\/\).*/{
1138	    s//\1/
1139	    q
1140	  }
1141	  s/.*/./; q'`
1142  srcdir=$ac_confdir
1143  if test ! -r "$srcdir/$ac_unique_file"; then
1144    srcdir=..
1145  fi
1146else
1147  ac_srcdir_defaulted=no
1148fi
1149if test ! -r "$srcdir/$ac_unique_file"; then
1150  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1151  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1152   { (exit 1); exit 1; }; }
1153fi
1154ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1155ac_abs_confdir=`(
1156	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1157   { (exit 1); exit 1; }; }
1158	pwd)`
1159# When building in place, set srcdir=.
1160if test "$ac_abs_confdir" = "$ac_pwd"; then
1161  srcdir=.
1162fi
1163# Remove unnecessary trailing slashes from srcdir.
1164# Double slashes in file names in object file debugging info
1165# mess up M-x gdb in Emacs.
1166case $srcdir in
1167*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1168esac
1169for ac_var in $ac_precious_vars; do
1170  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1171  eval ac_env_${ac_var}_value=\$${ac_var}
1172  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1173  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1174done
1175
1176#
1177# Report the --help message.
1178#
1179if test "$ac_init_help" = "long"; then
1180  # Omit some internal or obsolete options to make the list less imposing.
1181  # This message is too long to be a string in the A/UX 3.1 sh.
1182  cat <<_ACEOF
1183\`configure' configures this package to adapt to many kinds of systems.
1184
1185Usage: $0 [OPTION]... [VAR=VALUE]...
1186
1187To assign environment variables (e.g., CC, CFLAGS...), specify them as
1188VAR=VALUE.  See below for descriptions of some of the useful variables.
1189
1190Defaults for the options are specified in brackets.
1191
1192Configuration:
1193  -h, --help              display this help and exit
1194      --help=short        display options specific to this package
1195      --help=recursive    display the short help of all the included packages
1196  -V, --version           display version information and exit
1197  -q, --quiet, --silent   do not print \`checking...' messages
1198      --cache-file=FILE   cache test results in FILE [disabled]
1199  -C, --config-cache      alias for \`--cache-file=config.cache'
1200  -n, --no-create         do not create output files
1201      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1202
1203Installation directories:
1204  --prefix=PREFIX         install architecture-independent files in PREFIX
1205			  [$ac_default_prefix]
1206  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1207			  [PREFIX]
1208
1209By default, \`make install' will install all the files in
1210\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1211an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1212for instance \`--prefix=\$HOME'.
1213
1214For better control, use the options below.
1215
1216Fine tuning of the installation directories:
1217  --bindir=DIR           user executables [EPREFIX/bin]
1218  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1219  --libexecdir=DIR       program executables [EPREFIX/libexec]
1220  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1221  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1222  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1223  --libdir=DIR           object code libraries [EPREFIX/lib]
1224  --includedir=DIR       C header files [PREFIX/include]
1225  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1226  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1227  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1228  --infodir=DIR          info documentation [DATAROOTDIR/info]
1229  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1230  --mandir=DIR           man documentation [DATAROOTDIR/man]
1231  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1232  --htmldir=DIR          html documentation [DOCDIR]
1233  --dvidir=DIR           dvi documentation [DOCDIR]
1234  --pdfdir=DIR           pdf documentation [DOCDIR]
1235  --psdir=DIR            ps documentation [DOCDIR]
1236_ACEOF
1237
1238  cat <<\_ACEOF
1239
1240Program names:
1241  --program-prefix=PREFIX            prepend PREFIX to installed program names
1242  --program-suffix=SUFFIX            append SUFFIX to installed program names
1243  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1244
1245X features:
1246  --x-includes=DIR    X include files are in DIR
1247  --x-libraries=DIR   X library files are in DIR
1248_ACEOF
1249fi
1250
1251if test -n "$ac_init_help"; then
1252
1253  cat <<\_ACEOF
1254
1255Optional Features:
1256  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1257  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1258  --disable-dependency-tracking  speeds up one-time build
1259  --enable-dependency-tracking   do not reject slow dependency extractors
1260
1261Optional Packages:
1262  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1263  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1264  --with-x                use the X Window System
1265
1266Some influential environment variables:
1267  CC          C compiler command
1268  CFLAGS      C compiler flags
1269  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1270              nonstandard directory <lib dir>
1271  LIBS        libraries to pass to the linker, e.g. -l<library>
1272  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1273              you have headers in a nonstandard directory <include dir>
1274  XMKMF       Path to xmkmf, Makefile generator for X Window System
1275  CPP         C preprocessor
1276  PKG_CONFIG  path to pkg-config utility
1277  IMLIB2_CFLAGS
1278              C compiler flags for IMLIB2, overriding pkg-config
1279  IMLIB2_LIBS linker flags for IMLIB2, overriding pkg-config
1280
1281Use these variables to override the choices made by `configure' or to help
1282it to find libraries and programs with nonstandard names/locations.
1283
1284_ACEOF
1285ac_status=$?
1286fi
1287
1288if test "$ac_init_help" = "recursive"; then
1289  # If there are subdirs, report their specific --help.
1290  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1291    test -d "$ac_dir" || continue
1292    ac_builddir=.
1293
1294case "$ac_dir" in
1295.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1296*)
1297  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1298  # A ".." for each directory in $ac_dir_suffix.
1299  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1300  case $ac_top_builddir_sub in
1301  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1302  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1303  esac ;;
1304esac
1305ac_abs_top_builddir=$ac_pwd
1306ac_abs_builddir=$ac_pwd$ac_dir_suffix
1307# for backward compatibility:
1308ac_top_builddir=$ac_top_build_prefix
1309
1310case $srcdir in
1311  .)  # We are building in place.
1312    ac_srcdir=.
1313    ac_top_srcdir=$ac_top_builddir_sub
1314    ac_abs_top_srcdir=$ac_pwd ;;
1315  [\\/]* | ?:[\\/]* )  # Absolute name.
1316    ac_srcdir=$srcdir$ac_dir_suffix;
1317    ac_top_srcdir=$srcdir
1318    ac_abs_top_srcdir=$srcdir ;;
1319  *) # Relative name.
1320    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1321    ac_top_srcdir=$ac_top_build_prefix$srcdir
1322    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1323esac
1324ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1325
1326    cd "$ac_dir" || { ac_status=$?; continue; }
1327    # Check for guested configure.
1328    if test -f "$ac_srcdir/configure.gnu"; then
1329      echo &&
1330      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1331    elif test -f "$ac_srcdir/configure"; then
1332      echo &&
1333      $SHELL "$ac_srcdir/configure" --help=recursive
1334    else
1335      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1336    fi || ac_status=$?
1337    cd "$ac_pwd" || { ac_status=$?; break; }
1338  done
1339fi
1340
1341test -n "$ac_init_help" && exit $ac_status
1342if $ac_init_version; then
1343  cat <<\_ACEOF
1344configure
1345generated by GNU Autoconf 2.61
1346
1347Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13482002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1349This configure script is free software; the Free Software Foundation
1350gives unlimited permission to copy, distribute and modify it.
1351_ACEOF
1352  exit
1353fi
1354cat >config.log <<_ACEOF
1355This file contains any messages produced by compilers while
1356running configure, to aid debugging if configure makes a mistake.
1357
1358It was created by $as_me, which was
1359generated by GNU Autoconf 2.61.  Invocation command line was
1360
1361  $ $0 $@
1362
1363_ACEOF
1364exec 5>>config.log
1365{
1366cat <<_ASUNAME
1367## --------- ##
1368## Platform. ##
1369## --------- ##
1370
1371hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1372uname -m = `(uname -m) 2>/dev/null || echo unknown`
1373uname -r = `(uname -r) 2>/dev/null || echo unknown`
1374uname -s = `(uname -s) 2>/dev/null || echo unknown`
1375uname -v = `(uname -v) 2>/dev/null || echo unknown`
1376
1377/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1378/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1379
1380/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1381/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1382/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1383/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1384/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1385/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1386/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1387
1388_ASUNAME
1389
1390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1391for as_dir in $PATH
1392do
1393  IFS=$as_save_IFS
1394  test -z "$as_dir" && as_dir=.
1395  echo "PATH: $as_dir"
1396done
1397IFS=$as_save_IFS
1398
1399} >&5
1400
1401cat >&5 <<_ACEOF
1402
1403
1404## ----------- ##
1405## Core tests. ##
1406## ----------- ##
1407
1408_ACEOF
1409
1410
1411# Keep a trace of the command line.
1412# Strip out --no-create and --no-recursion so they do not pile up.
1413# Strip out --silent because we don't want to record it for future runs.
1414# Also quote any args containing shell meta-characters.
1415# Make two passes to allow for proper duplicate-argument suppression.
1416ac_configure_args=
1417ac_configure_args0=
1418ac_configure_args1=
1419ac_must_keep_next=false
1420for ac_pass in 1 2
1421do
1422  for ac_arg
1423  do
1424    case $ac_arg in
1425    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1426    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1427    | -silent | --silent | --silen | --sile | --sil)
1428      continue ;;
1429    *\'*)
1430      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1431    esac
1432    case $ac_pass in
1433    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1434    2)
1435      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1436      if test $ac_must_keep_next = true; then
1437	ac_must_keep_next=false # Got value, back to normal.
1438      else
1439	case $ac_arg in
1440	  *=* | --config-cache | -C | -disable-* | --disable-* \
1441	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1442	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1443	  | -with-* | --with-* | -without-* | --without-* | --x)
1444	    case "$ac_configure_args0 " in
1445	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1446	    esac
1447	    ;;
1448	  -* ) ac_must_keep_next=true ;;
1449	esac
1450      fi
1451      ac_configure_args="$ac_configure_args '$ac_arg'"
1452      ;;
1453    esac
1454  done
1455done
1456$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1457$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1458
1459# When interrupted or exit'd, cleanup temporary files, and complete
1460# config.log.  We remove comments because anyway the quotes in there
1461# would cause problems or look ugly.
1462# WARNING: Use '\'' to represent an apostrophe within the trap.
1463# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1464trap 'exit_status=$?
1465  # Save into config.log some information that might help in debugging.
1466  {
1467    echo
1468
1469    cat <<\_ASBOX
1470## ---------------- ##
1471## Cache variables. ##
1472## ---------------- ##
1473_ASBOX
1474    echo
1475    # The following way of writing the cache mishandles newlines in values,
1476(
1477  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1478    eval ac_val=\$$ac_var
1479    case $ac_val in #(
1480    *${as_nl}*)
1481      case $ac_var in #(
1482      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1483echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1484      esac
1485      case $ac_var in #(
1486      _ | IFS | as_nl) ;; #(
1487      *) $as_unset $ac_var ;;
1488      esac ;;
1489    esac
1490  done
1491  (set) 2>&1 |
1492    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1493    *${as_nl}ac_space=\ *)
1494      sed -n \
1495	"s/'\''/'\''\\\\'\'''\''/g;
1496	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1497      ;; #(
1498    *)
1499      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1500      ;;
1501    esac |
1502    sort
1503)
1504    echo
1505
1506    cat <<\_ASBOX
1507## ----------------- ##
1508## Output variables. ##
1509## ----------------- ##
1510_ASBOX
1511    echo
1512    for ac_var in $ac_subst_vars
1513    do
1514      eval ac_val=\$$ac_var
1515      case $ac_val in
1516      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1517      esac
1518      echo "$ac_var='\''$ac_val'\''"
1519    done | sort
1520    echo
1521
1522    if test -n "$ac_subst_files"; then
1523      cat <<\_ASBOX
1524## ------------------- ##
1525## File substitutions. ##
1526## ------------------- ##
1527_ASBOX
1528      echo
1529      for ac_var in $ac_subst_files
1530      do
1531	eval ac_val=\$$ac_var
1532	case $ac_val in
1533	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1534	esac
1535	echo "$ac_var='\''$ac_val'\''"
1536      done | sort
1537      echo
1538    fi
1539
1540    if test -s confdefs.h; then
1541      cat <<\_ASBOX
1542## ----------- ##
1543## confdefs.h. ##
1544## ----------- ##
1545_ASBOX
1546      echo
1547      cat confdefs.h
1548      echo
1549    fi
1550    test "$ac_signal" != 0 &&
1551      echo "$as_me: caught signal $ac_signal"
1552    echo "$as_me: exit $exit_status"
1553  } >&5
1554  rm -f core *.core core.conftest.* &&
1555    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1556    exit $exit_status
1557' 0
1558for ac_signal in 1 2 13 15; do
1559  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1560done
1561ac_signal=0
1562
1563# confdefs.h avoids OS command line length limits that DEFS can exceed.
1564rm -f -r conftest* confdefs.h
1565
1566# Predefined preprocessor variables.
1567
1568cat >>confdefs.h <<_ACEOF
1569#define PACKAGE_NAME "$PACKAGE_NAME"
1570_ACEOF
1571
1572
1573cat >>confdefs.h <<_ACEOF
1574#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1575_ACEOF
1576
1577
1578cat >>confdefs.h <<_ACEOF
1579#define PACKAGE_VERSION "$PACKAGE_VERSION"
1580_ACEOF
1581
1582
1583cat >>confdefs.h <<_ACEOF
1584#define PACKAGE_STRING "$PACKAGE_STRING"
1585_ACEOF
1586
1587
1588cat >>confdefs.h <<_ACEOF
1589#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1590_ACEOF
1591
1592
1593# Let the site file select an alternate cache file if it wants to.
1594# Prefer explicitly selected file to automatically selected ones.
1595if test -n "$CONFIG_SITE"; then
1596  set x "$CONFIG_SITE"
1597elif test "x$prefix" != xNONE; then
1598  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1599else
1600  set x "$ac_default_prefix/share/config.site" \
1601	"$ac_default_prefix/etc/config.site"
1602fi
1603shift
1604for ac_site_file
1605do
1606  if test -r "$ac_site_file"; then
1607    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1608echo "$as_me: loading site script $ac_site_file" >&6;}
1609    sed 's/^/| /' "$ac_site_file" >&5
1610    . "$ac_site_file"
1611  fi
1612done
1613
1614if test -r "$cache_file"; then
1615  # Some versions of bash will fail to source /dev/null (special
1616  # files actually), so we avoid doing that.
1617  if test -f "$cache_file"; then
1618    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1619echo "$as_me: loading cache $cache_file" >&6;}
1620    case $cache_file in
1621      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1622      *)                      . "./$cache_file";;
1623    esac
1624  fi
1625else
1626  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1627echo "$as_me: creating cache $cache_file" >&6;}
1628  >$cache_file
1629fi
1630
1631# Check that the precious variables saved in the cache have kept the same
1632# value.
1633ac_cache_corrupted=false
1634for ac_var in $ac_precious_vars; do
1635  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1636  eval ac_new_set=\$ac_env_${ac_var}_set
1637  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1638  eval ac_new_val=\$ac_env_${ac_var}_value
1639  case $ac_old_set,$ac_new_set in
1640    set,)
1641      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1642echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1643      ac_cache_corrupted=: ;;
1644    ,set)
1645      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1646echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1647      ac_cache_corrupted=: ;;
1648    ,);;
1649    *)
1650      if test "x$ac_old_val" != "x$ac_new_val"; then
1651	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1652echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1653	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1654echo "$as_me:   former value:  $ac_old_val" >&2;}
1655	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1656echo "$as_me:   current value: $ac_new_val" >&2;}
1657	ac_cache_corrupted=:
1658      fi;;
1659  esac
1660  # Pass precious variables to config.status.
1661  if test "$ac_new_set" = set; then
1662    case $ac_new_val in
1663    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1664    *) ac_arg=$ac_var=$ac_new_val ;;
1665    esac
1666    case " $ac_configure_args " in
1667      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1668      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1669    esac
1670  fi
1671done
1672if $ac_cache_corrupted; then
1673  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1674echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1675  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1676echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1677   { (exit 1); exit 1; }; }
1678fi
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696ac_ext=c
1697ac_cpp='$CPP $CPPFLAGS'
1698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1700ac_compiler_gnu=$ac_cv_c_compiler_gnu
1701
1702
1703am__api_version='1.10'
1704
1705ac_aux_dir=
1706for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1707  if test -f "$ac_dir/install-sh"; then
1708    ac_aux_dir=$ac_dir
1709    ac_install_sh="$ac_aux_dir/install-sh -c"
1710    break
1711  elif test -f "$ac_dir/install.sh"; then
1712    ac_aux_dir=$ac_dir
1713    ac_install_sh="$ac_aux_dir/install.sh -c"
1714    break
1715  elif test -f "$ac_dir/shtool"; then
1716    ac_aux_dir=$ac_dir
1717    ac_install_sh="$ac_aux_dir/shtool install -c"
1718    break
1719  fi
1720done
1721if test -z "$ac_aux_dir"; then
1722  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1723echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1724   { (exit 1); exit 1; }; }
1725fi
1726
1727# These three variables are undocumented and unsupported,
1728# and are intended to be withdrawn in a future Autoconf release.
1729# They can cause serious problems if a builder's source tree is in a directory
1730# whose full name contains unusual characters.
1731ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1732ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1733ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1734
1735
1736# Find a good install program.  We prefer a C program (faster),
1737# so one script is as good as another.  But avoid the broken or
1738# incompatible versions:
1739# SysV /etc/install, /usr/sbin/install
1740# SunOS /usr/etc/install
1741# IRIX /sbin/install
1742# AIX /bin/install
1743# AmigaOS /C/install, which installs bootblocks on floppy discs
1744# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1745# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1746# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1747# OS/2's system install, which has a completely different semantic
1748# ./install, which can be erroneously created by make from ./install.sh.
1749{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1750echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1751if test -z "$INSTALL"; then
1752if test "${ac_cv_path_install+set}" = set; then
1753  echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756for as_dir in $PATH
1757do
1758  IFS=$as_save_IFS
1759  test -z "$as_dir" && as_dir=.
1760  # Account for people who put trailing slashes in PATH elements.
1761case $as_dir/ in
1762  ./ | .// | /cC/* | \
1763  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1764  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1765  /usr/ucb/* ) ;;
1766  *)
1767    # OSF1 and SCO ODT 3.0 have their own names for install.
1768    # Don't use installbsd from OSF since it installs stuff as root
1769    # by default.
1770    for ac_prog in ginstall scoinst install; do
1771      for ac_exec_ext in '' $ac_executable_extensions; do
1772	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1773	  if test $ac_prog = install &&
1774	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1775	    # AIX install.  It has an incompatible calling convention.
1776	    :
1777	  elif test $ac_prog = install &&
1778	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1779	    # program-specific install script used by HP pwplus--don't use.
1780	    :
1781	  else
1782	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1783	    break 3
1784	  fi
1785	fi
1786      done
1787    done
1788    ;;
1789esac
1790done
1791IFS=$as_save_IFS
1792
1793
1794fi
1795  if test "${ac_cv_path_install+set}" = set; then
1796    INSTALL=$ac_cv_path_install
1797  else
1798    # As a last resort, use the slow shell script.  Don't cache a
1799    # value for INSTALL within a source directory, because that will
1800    # break other packages using the cache if that directory is
1801    # removed, or if the value is a relative name.
1802    INSTALL=$ac_install_sh
1803  fi
1804fi
1805{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1806echo "${ECHO_T}$INSTALL" >&6; }
1807
1808# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1809# It thinks the first close brace ends the variable substitution.
1810test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1811
1812test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1813
1814test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1815
1816{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1817echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1818# Just in case
1819sleep 1
1820echo timestamp > conftest.file
1821# Do `set' in a subshell so we don't clobber the current shell's
1822# arguments.  Must try -L first in case configure is actually a
1823# symlink; some systems play weird games with the mod time of symlinks
1824# (eg FreeBSD returns the mod time of the symlink's containing
1825# directory).
1826if (
1827   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1828   if test "$*" = "X"; then
1829      # -L didn't work.
1830      set X `ls -t $srcdir/configure conftest.file`
1831   fi
1832   rm -f conftest.file
1833   if test "$*" != "X $srcdir/configure conftest.file" \
1834      && test "$*" != "X conftest.file $srcdir/configure"; then
1835
1836      # If neither matched, then we have a broken ls.  This can happen
1837      # if, for instance, CONFIG_SHELL is bash and it inherits a
1838      # broken ls alias from the environment.  This has actually
1839      # happened.  Such a system could not be considered "sane".
1840      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1841alias in your environment" >&5
1842echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1843alias in your environment" >&2;}
1844   { (exit 1); exit 1; }; }
1845   fi
1846
1847   test "$2" = conftest.file
1848   )
1849then
1850   # Ok.
1851   :
1852else
1853   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1854Check your system clock" >&5
1855echo "$as_me: error: newly created file is older than distributed files!
1856Check your system clock" >&2;}
1857   { (exit 1); exit 1; }; }
1858fi
1859{ echo "$as_me:$LINENO: result: yes" >&5
1860echo "${ECHO_T}yes" >&6; }
1861test "$program_prefix" != NONE &&
1862  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1863# Use a double $ so make ignores it.
1864test "$program_suffix" != NONE &&
1865  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1866# Double any \ or $.  echo might interpret backslashes.
1867# By default was `s,x,x', remove it if useless.
1868cat <<\_ACEOF >conftest.sed
1869s/[\\$]/&&/g;s/;s,x,x,$//
1870_ACEOF
1871program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1872rm -f conftest.sed
1873
1874# expand $ac_aux_dir to an absolute path
1875am_aux_dir=`cd $ac_aux_dir && pwd`
1876
1877test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1878# Use eval to expand $SHELL
1879if eval "$MISSING --run true"; then
1880  am_missing_run="$MISSING --run "
1881else
1882  am_missing_run=
1883  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1884echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1885fi
1886
1887{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1888echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1889if test -z "$MKDIR_P"; then
1890  if test "${ac_cv_path_mkdir+set}" = set; then
1891  echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1895do
1896  IFS=$as_save_IFS
1897  test -z "$as_dir" && as_dir=.
1898  for ac_prog in mkdir gmkdir; do
1899	 for ac_exec_ext in '' $ac_executable_extensions; do
1900	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1901	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1902	     'mkdir (GNU coreutils) '* | \
1903	     'mkdir (coreutils) '* | \
1904	     'mkdir (fileutils) '4.1*)
1905	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1906	       break 3;;
1907	   esac
1908	 done
1909       done
1910done
1911IFS=$as_save_IFS
1912
1913fi
1914
1915  if test "${ac_cv_path_mkdir+set}" = set; then
1916    MKDIR_P="$ac_cv_path_mkdir -p"
1917  else
1918    # As a last resort, use the slow shell script.  Don't cache a
1919    # value for MKDIR_P within a source directory, because that will
1920    # break other packages using the cache if that directory is
1921    # removed, or if the value is a relative name.
1922    test -d ./--version && rmdir ./--version
1923    MKDIR_P="$ac_install_sh -d"
1924  fi
1925fi
1926{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1927echo "${ECHO_T}$MKDIR_P" >&6; }
1928
1929mkdir_p="$MKDIR_P"
1930case $mkdir_p in
1931  [\\/$]* | ?:[\\/]*) ;;
1932  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1933esac
1934
1935for ac_prog in gawk mawk nawk awk
1936do
1937  # Extract the first word of "$ac_prog", so it can be a program name with args.
1938set dummy $ac_prog; ac_word=$2
1939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1941if test "${ac_cv_prog_AWK+set}" = set; then
1942  echo $ECHO_N "(cached) $ECHO_C" >&6
1943else
1944  if test -n "$AWK"; then
1945  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1946else
1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948for as_dir in $PATH
1949do
1950  IFS=$as_save_IFS
1951  test -z "$as_dir" && as_dir=.
1952  for ac_exec_ext in '' $ac_executable_extensions; do
1953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1954    ac_cv_prog_AWK="$ac_prog"
1955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956    break 2
1957  fi
1958done
1959done
1960IFS=$as_save_IFS
1961
1962fi
1963fi
1964AWK=$ac_cv_prog_AWK
1965if test -n "$AWK"; then
1966  { echo "$as_me:$LINENO: result: $AWK" >&5
1967echo "${ECHO_T}$AWK" >&6; }
1968else
1969  { echo "$as_me:$LINENO: result: no" >&5
1970echo "${ECHO_T}no" >&6; }
1971fi
1972
1973
1974  test -n "$AWK" && break
1975done
1976
1977{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1978echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1979set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1980if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1981  echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983  cat >conftest.make <<\_ACEOF
1984SHELL = /bin/sh
1985all:
1986	@echo '@@@%%%=$(MAKE)=@@@%%%'
1987_ACEOF
1988# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1989case `${MAKE-make} -f conftest.make 2>/dev/null` in
1990  *@@@%%%=?*=@@@%%%*)
1991    eval ac_cv_prog_make_${ac_make}_set=yes;;
1992  *)
1993    eval ac_cv_prog_make_${ac_make}_set=no;;
1994esac
1995rm -f conftest.make
1996fi
1997if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1998  { echo "$as_me:$LINENO: result: yes" >&5
1999echo "${ECHO_T}yes" >&6; }
2000  SET_MAKE=
2001else
2002  { echo "$as_me:$LINENO: result: no" >&5
2003echo "${ECHO_T}no" >&6; }
2004  SET_MAKE="MAKE=${MAKE-make}"
2005fi
2006
2007rm -rf .tst 2>/dev/null
2008mkdir .tst 2>/dev/null
2009if test -d .tst; then
2010  am__leading_dot=.
2011else
2012  am__leading_dot=_
2013fi
2014rmdir .tst 2>/dev/null
2015
2016if test "`cd $srcdir && pwd`" != "`pwd`"; then
2017  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2018  # is not polluted with repeated "-I."
2019  am__isrc=' -I$(srcdir)'
2020  # test to see if srcdir already configured
2021  if test -f $srcdir/config.status; then
2022    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2023echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2024   { (exit 1); exit 1; }; }
2025  fi
2026fi
2027
2028# test whether we have cygpath
2029if test -z "$CYGPATH_W"; then
2030  if (cygpath --version) >/dev/null 2>/dev/null; then
2031    CYGPATH_W='cygpath -w'
2032  else
2033    CYGPATH_W=echo
2034  fi
2035fi
2036
2037
2038# Define the identity of the package.
2039 PACKAGE=xteddy
2040 VERSION=2.2
2041
2042
2043cat >>confdefs.h <<_ACEOF
2044#define PACKAGE "$PACKAGE"
2045_ACEOF
2046
2047
2048cat >>confdefs.h <<_ACEOF
2049#define VERSION "$VERSION"
2050_ACEOF
2051
2052# Some tools Automake needs.
2053
2054ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2055
2056
2057AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2058
2059
2060AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2061
2062
2063AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2064
2065
2066MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2067
2068install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2069
2070# Installed binaries are usually stripped using `strip' when the user
2071# run `make install-strip'.  However `strip' might not be the right
2072# tool to use in cross-compilation environments, therefore Automake
2073# will honor the `STRIP' environment variable to overrule this program.
2074if test "$cross_compiling" != no; then
2075  if test -n "$ac_tool_prefix"; then
2076  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2077set dummy ${ac_tool_prefix}strip; ac_word=$2
2078{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080if test "${ac_cv_prog_STRIP+set}" = set; then
2081  echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083  if test -n "$STRIP"; then
2084  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2085else
2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089  IFS=$as_save_IFS
2090  test -z "$as_dir" && as_dir=.
2091  for ac_exec_ext in '' $ac_executable_extensions; do
2092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095    break 2
2096  fi
2097done
2098done
2099IFS=$as_save_IFS
2100
2101fi
2102fi
2103STRIP=$ac_cv_prog_STRIP
2104if test -n "$STRIP"; then
2105  { echo "$as_me:$LINENO: result: $STRIP" >&5
2106echo "${ECHO_T}$STRIP" >&6; }
2107else
2108  { echo "$as_me:$LINENO: result: no" >&5
2109echo "${ECHO_T}no" >&6; }
2110fi
2111
2112
2113fi
2114if test -z "$ac_cv_prog_STRIP"; then
2115  ac_ct_STRIP=$STRIP
2116  # Extract the first word of "strip", so it can be a program name with args.
2117set dummy strip; ac_word=$2
2118{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2120if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2121  echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123  if test -n "$ac_ct_STRIP"; then
2124  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2125else
2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129  IFS=$as_save_IFS
2130  test -z "$as_dir" && as_dir=.
2131  for ac_exec_ext in '' $ac_executable_extensions; do
2132  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2133    ac_cv_prog_ac_ct_STRIP="strip"
2134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135    break 2
2136  fi
2137done
2138done
2139IFS=$as_save_IFS
2140
2141fi
2142fi
2143ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2144if test -n "$ac_ct_STRIP"; then
2145  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2146echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2147else
2148  { echo "$as_me:$LINENO: result: no" >&5
2149echo "${ECHO_T}no" >&6; }
2150fi
2151
2152  if test "x$ac_ct_STRIP" = x; then
2153    STRIP=":"
2154  else
2155    case $cross_compiling:$ac_tool_warned in
2156yes:)
2157{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2158whose name does not start with the host triplet.  If you think this
2159configuration is useful to you, please write to autoconf@gnu.org." >&5
2160echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2161whose name does not start with the host triplet.  If you think this
2162configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2163ac_tool_warned=yes ;;
2164esac
2165    STRIP=$ac_ct_STRIP
2166  fi
2167else
2168  STRIP="$ac_cv_prog_STRIP"
2169fi
2170
2171fi
2172INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2173
2174# We need awk for the "check" target.  The system "awk" is bad on
2175# some platforms.
2176# Always define AMTAR for backward compatibility.
2177
2178AMTAR=${AMTAR-"${am_missing_run}tar"}
2179
2180am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2181
2182
2183
2184
2185
2186
2187ac_ext=c
2188ac_cpp='$CPP $CPPFLAGS'
2189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192if test -n "$ac_tool_prefix"; then
2193  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2194set dummy ${ac_tool_prefix}gcc; ac_word=$2
2195{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2197if test "${ac_cv_prog_CC+set}" = set; then
2198  echo $ECHO_N "(cached) $ECHO_C" >&6
2199else
2200  if test -n "$CC"; then
2201  ac_cv_prog_CC="$CC" # Let the user override the test.
2202else
2203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204for as_dir in $PATH
2205do
2206  IFS=$as_save_IFS
2207  test -z "$as_dir" && as_dir=.
2208  for ac_exec_ext in '' $ac_executable_extensions; do
2209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212    break 2
2213  fi
2214done
2215done
2216IFS=$as_save_IFS
2217
2218fi
2219fi
2220CC=$ac_cv_prog_CC
2221if test -n "$CC"; then
2222  { echo "$as_me:$LINENO: result: $CC" >&5
2223echo "${ECHO_T}$CC" >&6; }
2224else
2225  { echo "$as_me:$LINENO: result: no" >&5
2226echo "${ECHO_T}no" >&6; }
2227fi
2228
2229
2230fi
2231if test -z "$ac_cv_prog_CC"; then
2232  ac_ct_CC=$CC
2233  # Extract the first word of "gcc", so it can be a program name with args.
2234set dummy gcc; ac_word=$2
2235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238  echo $ECHO_N "(cached) $ECHO_C" >&6
2239else
2240  if test -n "$ac_ct_CC"; then
2241  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2242else
2243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244for as_dir in $PATH
2245do
2246  IFS=$as_save_IFS
2247  test -z "$as_dir" && as_dir=.
2248  for ac_exec_ext in '' $ac_executable_extensions; do
2249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250    ac_cv_prog_ac_ct_CC="gcc"
2251    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252    break 2
2253  fi
2254done
2255done
2256IFS=$as_save_IFS
2257
2258fi
2259fi
2260ac_ct_CC=$ac_cv_prog_ac_ct_CC
2261if test -n "$ac_ct_CC"; then
2262  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2263echo "${ECHO_T}$ac_ct_CC" >&6; }
2264else
2265  { echo "$as_me:$LINENO: result: no" >&5
2266echo "${ECHO_T}no" >&6; }
2267fi
2268
2269  if test "x$ac_ct_CC" = x; then
2270    CC=""
2271  else
2272    case $cross_compiling:$ac_tool_warned in
2273yes:)
2274{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2275whose name does not start with the host triplet.  If you think this
2276configuration is useful to you, please write to autoconf@gnu.org." >&5
2277echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2278whose name does not start with the host triplet.  If you think this
2279configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2280ac_tool_warned=yes ;;
2281esac
2282    CC=$ac_ct_CC
2283  fi
2284else
2285  CC="$ac_cv_prog_CC"
2286fi
2287
2288if test -z "$CC"; then
2289          if test -n "$ac_tool_prefix"; then
2290    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2291set dummy ${ac_tool_prefix}cc; ac_word=$2
2292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294if test "${ac_cv_prog_CC+set}" = set; then
2295  echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297  if test -n "$CC"; then
2298  ac_cv_prog_CC="$CC" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303  IFS=$as_save_IFS
2304  test -z "$as_dir" && as_dir=.
2305  for ac_exec_ext in '' $ac_executable_extensions; do
2306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307    ac_cv_prog_CC="${ac_tool_prefix}cc"
2308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309    break 2
2310  fi
2311done
2312done
2313IFS=$as_save_IFS
2314
2315fi
2316fi
2317CC=$ac_cv_prog_CC
2318if test -n "$CC"; then
2319  { echo "$as_me:$LINENO: result: $CC" >&5
2320echo "${ECHO_T}$CC" >&6; }
2321else
2322  { echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6; }
2324fi
2325
2326
2327  fi
2328fi
2329if test -z "$CC"; then
2330  # Extract the first word of "cc", so it can be a program name with args.
2331set dummy cc; ac_word=$2
2332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334if test "${ac_cv_prog_CC+set}" = set; then
2335  echo $ECHO_N "(cached) $ECHO_C" >&6
2336else
2337  if test -n "$CC"; then
2338  ac_cv_prog_CC="$CC" # Let the user override the test.
2339else
2340  ac_prog_rejected=no
2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344  IFS=$as_save_IFS
2345  test -z "$as_dir" && as_dir=.
2346  for ac_exec_ext in '' $ac_executable_extensions; do
2347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2349       ac_prog_rejected=yes
2350       continue
2351     fi
2352    ac_cv_prog_CC="cc"
2353    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354    break 2
2355  fi
2356done
2357done
2358IFS=$as_save_IFS
2359
2360if test $ac_prog_rejected = yes; then
2361  # We found a bogon in the path, so make sure we never use it.
2362  set dummy $ac_cv_prog_CC
2363  shift
2364  if test $# != 0; then
2365    # We chose a different compiler from the bogus one.
2366    # However, it has the same basename, so the bogon will be chosen
2367    # first if we set CC to just the basename; use the full file name.
2368    shift
2369    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2370  fi
2371fi
2372fi
2373fi
2374CC=$ac_cv_prog_CC
2375if test -n "$CC"; then
2376  { echo "$as_me:$LINENO: result: $CC" >&5
2377echo "${ECHO_T}$CC" >&6; }
2378else
2379  { echo "$as_me:$LINENO: result: no" >&5
2380echo "${ECHO_T}no" >&6; }
2381fi
2382
2383
2384fi
2385if test -z "$CC"; then
2386  if test -n "$ac_tool_prefix"; then
2387  for ac_prog in cl.exe
2388  do
2389    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2390set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2393if test "${ac_cv_prog_CC+set}" = set; then
2394  echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396  if test -n "$CC"; then
2397  ac_cv_prog_CC="$CC" # Let the user override the test.
2398else
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402  IFS=$as_save_IFS
2403  test -z "$as_dir" && as_dir=.
2404  for ac_exec_ext in '' $ac_executable_extensions; do
2405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408    break 2
2409  fi
2410done
2411done
2412IFS=$as_save_IFS
2413
2414fi
2415fi
2416CC=$ac_cv_prog_CC
2417if test -n "$CC"; then
2418  { echo "$as_me:$LINENO: result: $CC" >&5
2419echo "${ECHO_T}$CC" >&6; }
2420else
2421  { echo "$as_me:$LINENO: result: no" >&5
2422echo "${ECHO_T}no" >&6; }
2423fi
2424
2425
2426    test -n "$CC" && break
2427  done
2428fi
2429if test -z "$CC"; then
2430  ac_ct_CC=$CC
2431  for ac_prog in cl.exe
2432do
2433  # Extract the first word of "$ac_prog", so it can be a program name with args.
2434set dummy $ac_prog; ac_word=$2
2435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438  echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440  if test -n "$ac_ct_CC"; then
2441  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446  IFS=$as_save_IFS
2447  test -z "$as_dir" && as_dir=.
2448  for ac_exec_ext in '' $ac_executable_extensions; do
2449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450    ac_cv_prog_ac_ct_CC="$ac_prog"
2451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452    break 2
2453  fi
2454done
2455done
2456IFS=$as_save_IFS
2457
2458fi
2459fi
2460ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461if test -n "$ac_ct_CC"; then
2462  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463echo "${ECHO_T}$ac_ct_CC" >&6; }
2464else
2465  { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
2467fi
2468
2469
2470  test -n "$ac_ct_CC" && break
2471done
2472
2473  if test "x$ac_ct_CC" = x; then
2474    CC=""
2475  else
2476    case $cross_compiling:$ac_tool_warned in
2477yes:)
2478{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479whose name does not start with the host triplet.  If you think this
2480configuration is useful to you, please write to autoconf@gnu.org." >&5
2481echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482whose name does not start with the host triplet.  If you think this
2483configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484ac_tool_warned=yes ;;
2485esac
2486    CC=$ac_ct_CC
2487  fi
2488fi
2489
2490fi
2491
2492
2493test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2494See \`config.log' for more details." >&5
2495echo "$as_me: error: no acceptable C compiler found in \$PATH
2496See \`config.log' for more details." >&2;}
2497   { (exit 1); exit 1; }; }
2498
2499# Provide some information about the compiler.
2500echo "$as_me:$LINENO: checking for C compiler version" >&5
2501ac_compiler=`set X $ac_compile; echo $2`
2502{ (ac_try="$ac_compiler --version >&5"
2503case "(($ac_try" in
2504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505  *) ac_try_echo=$ac_try;;
2506esac
2507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508  (eval "$ac_compiler --version >&5") 2>&5
2509  ac_status=$?
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); }
2512{ (ac_try="$ac_compiler -v >&5"
2513case "(($ac_try" in
2514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515  *) ac_try_echo=$ac_try;;
2516esac
2517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518  (eval "$ac_compiler -v >&5") 2>&5
2519  ac_status=$?
2520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521  (exit $ac_status); }
2522{ (ac_try="$ac_compiler -V >&5"
2523case "(($ac_try" in
2524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525  *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528  (eval "$ac_compiler -V >&5") 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }
2532
2533cat >conftest.$ac_ext <<_ACEOF
2534/* confdefs.h.  */
2535_ACEOF
2536cat confdefs.h >>conftest.$ac_ext
2537cat >>conftest.$ac_ext <<_ACEOF
2538/* end confdefs.h.  */
2539
2540int
2541main ()
2542{
2543
2544  ;
2545  return 0;
2546}
2547_ACEOF
2548ac_clean_files_save=$ac_clean_files
2549ac_clean_files="$ac_clean_files a.out a.exe b.out"
2550# Try to create an executable without -o first, disregard a.out.
2551# It will help us diagnose broken compilers, and finding out an intuition
2552# of exeext.
2553{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2554echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2555ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2556#
2557# List of possible output files, starting from the most likely.
2558# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2559# only as a last resort.  b.out is created by i960 compilers.
2560ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2561#
2562# The IRIX 6 linker writes into existing files which may not be
2563# executable, retaining their permissions.  Remove them first so a
2564# subsequent execution test works.
2565ac_rmfiles=
2566for ac_file in $ac_files
2567do
2568  case $ac_file in
2569    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2570    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2571  esac
2572done
2573rm -f $ac_rmfiles
2574
2575if { (ac_try="$ac_link_default"
2576case "(($ac_try" in
2577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578  *) ac_try_echo=$ac_try;;
2579esac
2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581  (eval "$ac_link_default") 2>&5
2582  ac_status=$?
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); }; then
2585  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2586# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2587# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2588# so that the user can short-circuit this test for compilers unknown to
2589# Autoconf.
2590for ac_file in $ac_files ''
2591do
2592  test -f "$ac_file" || continue
2593  case $ac_file in
2594    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2595	;;
2596    [ab].out )
2597	# We found the default executable, but exeext='' is most
2598	# certainly right.
2599	break;;
2600    *.* )
2601        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2602	then :; else
2603	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604	fi
2605	# We set ac_cv_exeext here because the later test for it is not
2606	# safe: cross compilers may not add the suffix if given an `-o'
2607	# argument, so we may need to know it at that point already.
2608	# Even if this section looks crufty: it has the advantage of
2609	# actually working.
2610	break;;
2611    * )
2612	break;;
2613  esac
2614done
2615test "$ac_cv_exeext" = no && ac_cv_exeext=
2616
2617else
2618  ac_file=''
2619fi
2620
2621{ echo "$as_me:$LINENO: result: $ac_file" >&5
2622echo "${ECHO_T}$ac_file" >&6; }
2623if test -z "$ac_file"; then
2624  echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
2627{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2628See \`config.log' for more details." >&5
2629echo "$as_me: error: C compiler cannot create executables
2630See \`config.log' for more details." >&2;}
2631   { (exit 77); exit 77; }; }
2632fi
2633
2634ac_exeext=$ac_cv_exeext
2635
2636# Check that the compiler produces executables we can run.  If not, either
2637# the compiler is broken, or we cross compile.
2638{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2639echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2640# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2641# If not cross compiling, check that we can run a simple program.
2642if test "$cross_compiling" != yes; then
2643  if { ac_try='./$ac_file'
2644  { (case "(($ac_try" in
2645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646  *) ac_try_echo=$ac_try;;
2647esac
2648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649  (eval "$ac_try") 2>&5
2650  ac_status=$?
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); }; }; then
2653    cross_compiling=no
2654  else
2655    if test "$cross_compiling" = maybe; then
2656	cross_compiling=yes
2657    else
2658	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2659If you meant to cross compile, use \`--host'.
2660See \`config.log' for more details." >&5
2661echo "$as_me: error: cannot run C compiled programs.
2662If you meant to cross compile, use \`--host'.
2663See \`config.log' for more details." >&2;}
2664   { (exit 1); exit 1; }; }
2665    fi
2666  fi
2667fi
2668{ echo "$as_me:$LINENO: result: yes" >&5
2669echo "${ECHO_T}yes" >&6; }
2670
2671rm -f a.out a.exe conftest$ac_cv_exeext b.out
2672ac_clean_files=$ac_clean_files_save
2673# Check that the compiler produces executables we can run.  If not, either
2674# the compiler is broken, or we cross compile.
2675{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2676echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2677{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2678echo "${ECHO_T}$cross_compiling" >&6; }
2679
2680{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2681echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2682if { (ac_try="$ac_link"
2683case "(($ac_try" in
2684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685  *) ac_try_echo=$ac_try;;
2686esac
2687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688  (eval "$ac_link") 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; then
2692  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2693# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2694# work properly (i.e., refer to `conftest.exe'), while it won't with
2695# `rm'.
2696for ac_file in conftest.exe conftest conftest.*; do
2697  test -f "$ac_file" || continue
2698  case $ac_file in
2699    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2700    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701	  break;;
2702    * ) break;;
2703  esac
2704done
2705else
2706  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2707See \`config.log' for more details." >&5
2708echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2709See \`config.log' for more details." >&2;}
2710   { (exit 1); exit 1; }; }
2711fi
2712
2713rm -f conftest$ac_cv_exeext
2714{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2715echo "${ECHO_T}$ac_cv_exeext" >&6; }
2716
2717rm -f conftest.$ac_ext
2718EXEEXT=$ac_cv_exeext
2719ac_exeext=$EXEEXT
2720{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2721echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2722if test "${ac_cv_objext+set}" = set; then
2723  echo $ECHO_N "(cached) $ECHO_C" >&6
2724else
2725  cat >conftest.$ac_ext <<_ACEOF
2726/* confdefs.h.  */
2727_ACEOF
2728cat confdefs.h >>conftest.$ac_ext
2729cat >>conftest.$ac_ext <<_ACEOF
2730/* end confdefs.h.  */
2731
2732int
2733main ()
2734{
2735
2736  ;
2737  return 0;
2738}
2739_ACEOF
2740rm -f conftest.o conftest.obj
2741if { (ac_try="$ac_compile"
2742case "(($ac_try" in
2743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744  *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747  (eval "$ac_compile") 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; then
2751  for ac_file in conftest.o conftest.obj conftest.*; do
2752  test -f "$ac_file" || continue;
2753  case $ac_file in
2754    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2755    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2756       break;;
2757  esac
2758done
2759else
2760  echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2764See \`config.log' for more details." >&5
2765echo "$as_me: error: cannot compute suffix of object files: cannot compile
2766See \`config.log' for more details." >&2;}
2767   { (exit 1); exit 1; }; }
2768fi
2769
2770rm -f conftest.$ac_cv_objext conftest.$ac_ext
2771fi
2772{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2773echo "${ECHO_T}$ac_cv_objext" >&6; }
2774OBJEXT=$ac_cv_objext
2775ac_objext=$OBJEXT
2776{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2777echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2778if test "${ac_cv_c_compiler_gnu+set}" = set; then
2779  echo $ECHO_N "(cached) $ECHO_C" >&6
2780else
2781  cat >conftest.$ac_ext <<_ACEOF
2782/* confdefs.h.  */
2783_ACEOF
2784cat confdefs.h >>conftest.$ac_ext
2785cat >>conftest.$ac_ext <<_ACEOF
2786/* end confdefs.h.  */
2787
2788int
2789main ()
2790{
2791#ifndef __GNUC__
2792       choke me
2793#endif
2794
2795  ;
2796  return 0;
2797}
2798_ACEOF
2799rm -f conftest.$ac_objext
2800if { (ac_try="$ac_compile"
2801case "(($ac_try" in
2802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803  *) ac_try_echo=$ac_try;;
2804esac
2805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806  (eval "$ac_compile") 2>conftest.er1
2807  ac_status=$?
2808  grep -v '^ *+' conftest.er1 >conftest.err
2809  rm -f conftest.er1
2810  cat conftest.err >&5
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); } && {
2813	 test -z "$ac_c_werror_flag" ||
2814	 test ! -s conftest.err
2815       } && test -s conftest.$ac_objext; then
2816  ac_compiler_gnu=yes
2817else
2818  echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821	ac_compiler_gnu=no
2822fi
2823
2824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825ac_cv_c_compiler_gnu=$ac_compiler_gnu
2826
2827fi
2828{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2829echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2830GCC=`test $ac_compiler_gnu = yes && echo yes`
2831ac_test_CFLAGS=${CFLAGS+set}
2832ac_save_CFLAGS=$CFLAGS
2833{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2834echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2835if test "${ac_cv_prog_cc_g+set}" = set; then
2836  echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
2838  ac_save_c_werror_flag=$ac_c_werror_flag
2839   ac_c_werror_flag=yes
2840   ac_cv_prog_cc_g=no
2841   CFLAGS="-g"
2842   cat >conftest.$ac_ext <<_ACEOF
2843/* confdefs.h.  */
2844_ACEOF
2845cat confdefs.h >>conftest.$ac_ext
2846cat >>conftest.$ac_ext <<_ACEOF
2847/* end confdefs.h.  */
2848
2849int
2850main ()
2851{
2852
2853  ;
2854  return 0;
2855}
2856_ACEOF
2857rm -f conftest.$ac_objext
2858if { (ac_try="$ac_compile"
2859case "(($ac_try" in
2860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861  *) ac_try_echo=$ac_try;;
2862esac
2863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864  (eval "$ac_compile") 2>conftest.er1
2865  ac_status=$?
2866  grep -v '^ *+' conftest.er1 >conftest.err
2867  rm -f conftest.er1
2868  cat conftest.err >&5
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); } && {
2871	 test -z "$ac_c_werror_flag" ||
2872	 test ! -s conftest.err
2873       } && test -s conftest.$ac_objext; then
2874  ac_cv_prog_cc_g=yes
2875else
2876  echo "$as_me: failed program was:" >&5
2877sed 's/^/| /' conftest.$ac_ext >&5
2878
2879	CFLAGS=""
2880      cat >conftest.$ac_ext <<_ACEOF
2881/* confdefs.h.  */
2882_ACEOF
2883cat confdefs.h >>conftest.$ac_ext
2884cat >>conftest.$ac_ext <<_ACEOF
2885/* end confdefs.h.  */
2886
2887int
2888main ()
2889{
2890
2891  ;
2892  return 0;
2893}
2894_ACEOF
2895rm -f conftest.$ac_objext
2896if { (ac_try="$ac_compile"
2897case "(($ac_try" in
2898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899  *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902  (eval "$ac_compile") 2>conftest.er1
2903  ac_status=$?
2904  grep -v '^ *+' conftest.er1 >conftest.err
2905  rm -f conftest.er1
2906  cat conftest.err >&5
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); } && {
2909	 test -z "$ac_c_werror_flag" ||
2910	 test ! -s conftest.err
2911       } && test -s conftest.$ac_objext; then
2912  :
2913else
2914  echo "$as_me: failed program was:" >&5
2915sed 's/^/| /' conftest.$ac_ext >&5
2916
2917	ac_c_werror_flag=$ac_save_c_werror_flag
2918	 CFLAGS="-g"
2919	 cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h.  */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h.  */
2925
2926int
2927main ()
2928{
2929
2930  ;
2931  return 0;
2932}
2933_ACEOF
2934rm -f conftest.$ac_objext
2935if { (ac_try="$ac_compile"
2936case "(($ac_try" in
2937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938  *) ac_try_echo=$ac_try;;
2939esac
2940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941  (eval "$ac_compile") 2>conftest.er1
2942  ac_status=$?
2943  grep -v '^ *+' conftest.er1 >conftest.err
2944  rm -f conftest.er1
2945  cat conftest.err >&5
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); } && {
2948	 test -z "$ac_c_werror_flag" ||
2949	 test ! -s conftest.err
2950       } && test -s conftest.$ac_objext; then
2951  ac_cv_prog_cc_g=yes
2952else
2953  echo "$as_me: failed program was:" >&5
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956
2957fi
2958
2959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960fi
2961
2962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963fi
2964
2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966   ac_c_werror_flag=$ac_save_c_werror_flag
2967fi
2968{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2969echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2970if test "$ac_test_CFLAGS" = set; then
2971  CFLAGS=$ac_save_CFLAGS
2972elif test $ac_cv_prog_cc_g = yes; then
2973  if test "$GCC" = yes; then
2974    CFLAGS="-g -O2"
2975  else
2976    CFLAGS="-g"
2977  fi
2978else
2979  if test "$GCC" = yes; then
2980    CFLAGS="-O2"
2981  else
2982    CFLAGS=
2983  fi
2984fi
2985{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2986echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2987if test "${ac_cv_prog_cc_c89+set}" = set; then
2988  echo $ECHO_N "(cached) $ECHO_C" >&6
2989else
2990  ac_cv_prog_cc_c89=no
2991ac_save_CC=$CC
2992cat >conftest.$ac_ext <<_ACEOF
2993/* confdefs.h.  */
2994_ACEOF
2995cat confdefs.h >>conftest.$ac_ext
2996cat >>conftest.$ac_ext <<_ACEOF
2997/* end confdefs.h.  */
2998#include <stdarg.h>
2999#include <stdio.h>
3000#include <sys/types.h>
3001#include <sys/stat.h>
3002/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3003struct buf { int x; };
3004FILE * (*rcsopen) (struct buf *, struct stat *, int);
3005static char *e (p, i)
3006     char **p;
3007     int i;
3008{
3009  return p[i];
3010}
3011static char *f (char * (*g) (char **, int), char **p, ...)
3012{
3013  char *s;
3014  va_list v;
3015  va_start (v,p);
3016  s = g (p, va_arg (v,int));
3017  va_end (v);
3018  return s;
3019}
3020
3021/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3022   function prototypes and stuff, but not '\xHH' hex character constants.
3023   These don't provoke an error unfortunately, instead are silently treated
3024   as 'x'.  The following induces an error, until -std is added to get
3025   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3026   array size at least.  It's necessary to write '\x00'==0 to get something
3027   that's true only with -std.  */
3028int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3029
3030/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3031   inside strings and character constants.  */
3032#define FOO(x) 'x'
3033int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3034
3035int test (int i, double x);
3036struct s1 {int (*f) (int a);};
3037struct s2 {int (*f) (double a);};
3038int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3039int argc;
3040char **argv;
3041int
3042main ()
3043{
3044return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3045  ;
3046  return 0;
3047}
3048_ACEOF
3049for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3050	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3051do
3052  CC="$ac_save_CC $ac_arg"
3053  rm -f conftest.$ac_objext
3054if { (ac_try="$ac_compile"
3055case "(($ac_try" in
3056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057  *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060  (eval "$ac_compile") 2>conftest.er1
3061  ac_status=$?
3062  grep -v '^ *+' conftest.er1 >conftest.err
3063  rm -f conftest.er1
3064  cat conftest.err >&5
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); } && {
3067	 test -z "$ac_c_werror_flag" ||
3068	 test ! -s conftest.err
3069       } && test -s conftest.$ac_objext; then
3070  ac_cv_prog_cc_c89=$ac_arg
3071else
3072  echo "$as_me: failed program was:" >&5
3073sed 's/^/| /' conftest.$ac_ext >&5
3074
3075
3076fi
3077
3078rm -f core conftest.err conftest.$ac_objext
3079  test "x$ac_cv_prog_cc_c89" != "xno" && break
3080done
3081rm -f conftest.$ac_ext
3082CC=$ac_save_CC
3083
3084fi
3085# AC_CACHE_VAL
3086case "x$ac_cv_prog_cc_c89" in
3087  x)
3088    { echo "$as_me:$LINENO: result: none needed" >&5
3089echo "${ECHO_T}none needed" >&6; } ;;
3090  xno)
3091    { echo "$as_me:$LINENO: result: unsupported" >&5
3092echo "${ECHO_T}unsupported" >&6; } ;;
3093  *)
3094    CC="$CC $ac_cv_prog_cc_c89"
3095    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3096echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3097esac
3098
3099
3100ac_ext=c
3101ac_cpp='$CPP $CPPFLAGS'
3102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105DEPDIR="${am__leading_dot}deps"
3106
3107ac_config_commands="$ac_config_commands depfiles"
3108
3109
3110am_make=${MAKE-make}
3111cat > confinc << 'END'
3112am__doit:
3113	@echo done
3114.PHONY: am__doit
3115END
3116# If we don't find an include directive, just comment out the code.
3117{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3118echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3119am__include="#"
3120am__quote=
3121_am_result=none
3122# First try GNU make style include.
3123echo "include confinc" > confmf
3124# We grep out `Entering directory' and `Leaving directory'
3125# messages which can occur if `w' ends up in MAKEFLAGS.
3126# In particular we don't look at `^make:' because GNU make might
3127# be invoked under some other name (usually "gmake"), in which
3128# case it prints its new name instead of `make'.
3129if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3130   am__include=include
3131   am__quote=
3132   _am_result=GNU
3133fi
3134# Now try BSD make style include.
3135if test "$am__include" = "#"; then
3136   echo '.include "confinc"' > confmf
3137   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3138      am__include=.include
3139      am__quote="\""
3140      _am_result=BSD
3141   fi
3142fi
3143
3144
3145{ echo "$as_me:$LINENO: result: $_am_result" >&5
3146echo "${ECHO_T}$_am_result" >&6; }
3147rm -f confinc confmf
3148
3149# Check whether --enable-dependency-tracking was given.
3150if test "${enable_dependency_tracking+set}" = set; then
3151  enableval=$enable_dependency_tracking;
3152fi
3153
3154if test "x$enable_dependency_tracking" != xno; then
3155  am_depcomp="$ac_aux_dir/depcomp"
3156  AMDEPBACKSLASH='\'
3157fi
3158 if test "x$enable_dependency_tracking" != xno; then
3159  AMDEP_TRUE=
3160  AMDEP_FALSE='#'
3161else
3162  AMDEP_TRUE='#'
3163  AMDEP_FALSE=
3164fi
3165
3166
3167
3168depcc="$CC"   am_compiler_list=
3169
3170{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3171echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3172if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3173  echo $ECHO_N "(cached) $ECHO_C" >&6
3174else
3175  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3176  # We make a subdir and do the tests there.  Otherwise we can end up
3177  # making bogus files that we don't know about and never remove.  For
3178  # instance it was reported that on HP-UX the gcc test will end up
3179  # making a dummy file named `D' -- because `-MD' means `put the output
3180  # in D'.
3181  mkdir conftest.dir
3182  # Copy depcomp to subdir because otherwise we won't find it if we're
3183  # using a relative directory.
3184  cp "$am_depcomp" conftest.dir
3185  cd conftest.dir
3186  # We will build objects and dependencies in a subdirectory because
3187  # it helps to detect inapplicable dependency modes.  For instance
3188  # both Tru64's cc and ICC support -MD to output dependencies as a
3189  # side effect of compilation, but ICC will put the dependencies in
3190  # the current directory while Tru64 will put them in the object
3191  # directory.
3192  mkdir sub
3193
3194  am_cv_CC_dependencies_compiler_type=none
3195  if test "$am_compiler_list" = ""; then
3196     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3197  fi
3198  for depmode in $am_compiler_list; do
3199    # Setup a source with many dependencies, because some compilers
3200    # like to wrap large dependency lists on column 80 (with \), and
3201    # we should not choose a depcomp mode which is confused by this.
3202    #
3203    # We need to recreate these files for each test, as the compiler may
3204    # overwrite some of them when testing with obscure command lines.
3205    # This happens at least with the AIX C compiler.
3206    : > sub/conftest.c
3207    for i in 1 2 3 4 5 6; do
3208      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3209      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3210      # Solaris 8's {/usr,}/bin/sh.
3211      touch sub/conftst$i.h
3212    done
3213    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3214
3215    case $depmode in
3216    nosideeffect)
3217      # after this tag, mechanisms are not by side-effect, so they'll
3218      # only be used when explicitly requested
3219      if test "x$enable_dependency_tracking" = xyes; then
3220	continue
3221      else
3222	break
3223      fi
3224      ;;
3225    none) break ;;
3226    esac
3227    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3228    # mode.  It turns out that the SunPro C++ compiler does not properly
3229    # handle `-M -o', and we need to detect this.
3230    if depmode=$depmode \
3231       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3232       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3233       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3234         >/dev/null 2>conftest.err &&
3235       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3236       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3237       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3238       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3239      # icc doesn't choke on unknown options, it will just issue warnings
3240      # or remarks (even with -Werror).  So we grep stderr for any message
3241      # that says an option was ignored or not supported.
3242      # When given -MP, icc 7.0 and 7.1 complain thusly:
3243      #   icc: Command line warning: ignoring option '-M'; no argument required
3244      # The diagnosis changed in icc 8.0:
3245      #   icc: Command line remark: option '-MP' not supported
3246      if (grep 'ignoring option' conftest.err ||
3247          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3248        am_cv_CC_dependencies_compiler_type=$depmode
3249        break
3250      fi
3251    fi
3252  done
3253
3254  cd ..
3255  rm -rf conftest.dir
3256else
3257  am_cv_CC_dependencies_compiler_type=none
3258fi
3259
3260fi
3261{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3262echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3263CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3264
3265 if
3266  test "x$enable_dependency_tracking" != xno \
3267  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3268  am__fastdepCC_TRUE=
3269  am__fastdepCC_FALSE='#'
3270else
3271  am__fastdepCC_TRUE='#'
3272  am__fastdepCC_FALSE=
3273fi
3274
3275
3276
3277
3278ac_ext=c
3279ac_cpp='$CPP $CPPFLAGS'
3280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3284echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3285# On Suns, sometimes $CPP names a directory.
3286if test -n "$CPP" && test -d "$CPP"; then
3287  CPP=
3288fi
3289if test -z "$CPP"; then
3290  if test "${ac_cv_prog_CPP+set}" = set; then
3291  echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293      # Double quotes because CPP needs to be expanded
3294    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3295    do
3296      ac_preproc_ok=false
3297for ac_c_preproc_warn_flag in '' yes
3298do
3299  # Use a header file that comes with gcc, so configuring glibc
3300  # with a fresh cross-compiler works.
3301  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3302  # <limits.h> exists even on freestanding compilers.
3303  # On the NeXT, cc -E runs the code through the compiler's parser,
3304  # not just through cpp. "Syntax error" is here to catch this case.
3305  cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h.  */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h.  */
3311#ifdef __STDC__
3312# include <limits.h>
3313#else
3314# include <assert.h>
3315#endif
3316		     Syntax error
3317_ACEOF
3318if { (ac_try="$ac_cpp conftest.$ac_ext"
3319case "(($ac_try" in
3320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321  *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3325  ac_status=$?
3326  grep -v '^ *+' conftest.er1 >conftest.err
3327  rm -f conftest.er1
3328  cat conftest.err >&5
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); } >/dev/null && {
3331	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3332	 test ! -s conftest.err
3333       }; then
3334  :
3335else
3336  echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339  # Broken: fails on valid input.
3340continue
3341fi
3342
3343rm -f conftest.err conftest.$ac_ext
3344
3345  # OK, works on sane cases.  Now check whether nonexistent headers
3346  # can be detected and how.
3347  cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h.  */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h.  */
3353#include <ac_nonexistent.h>
3354_ACEOF
3355if { (ac_try="$ac_cpp conftest.$ac_ext"
3356case "(($ac_try" in
3357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358  *) ac_try_echo=$ac_try;;
3359esac
3360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362  ac_status=$?
3363  grep -v '^ *+' conftest.er1 >conftest.err
3364  rm -f conftest.er1
3365  cat conftest.err >&5
3366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367  (exit $ac_status); } >/dev/null && {
3368	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3369	 test ! -s conftest.err
3370       }; then
3371  # Broken: success on invalid input.
3372continue
3373else
3374  echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
3377  # Passes both tests.
3378ac_preproc_ok=:
3379break
3380fi
3381
3382rm -f conftest.err conftest.$ac_ext
3383
3384done
3385# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3386rm -f conftest.err conftest.$ac_ext
3387if $ac_preproc_ok; then
3388  break
3389fi
3390
3391    done
3392    ac_cv_prog_CPP=$CPP
3393
3394fi
3395  CPP=$ac_cv_prog_CPP
3396else
3397  ac_cv_prog_CPP=$CPP
3398fi
3399{ echo "$as_me:$LINENO: result: $CPP" >&5
3400echo "${ECHO_T}$CPP" >&6; }
3401ac_preproc_ok=false
3402for ac_c_preproc_warn_flag in '' yes
3403do
3404  # Use a header file that comes with gcc, so configuring glibc
3405  # with a fresh cross-compiler works.
3406  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3407  # <limits.h> exists even on freestanding compilers.
3408  # On the NeXT, cc -E runs the code through the compiler's parser,
3409  # not just through cpp. "Syntax error" is here to catch this case.
3410  cat >conftest.$ac_ext <<_ACEOF
3411/* confdefs.h.  */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
3415/* end confdefs.h.  */
3416#ifdef __STDC__
3417# include <limits.h>
3418#else
3419# include <assert.h>
3420#endif
3421		     Syntax error
3422_ACEOF
3423if { (ac_try="$ac_cpp conftest.$ac_ext"
3424case "(($ac_try" in
3425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426  *) ac_try_echo=$ac_try;;
3427esac
3428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3430  ac_status=$?
3431  grep -v '^ *+' conftest.er1 >conftest.err
3432  rm -f conftest.er1
3433  cat conftest.err >&5
3434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435  (exit $ac_status); } >/dev/null && {
3436	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3437	 test ! -s conftest.err
3438       }; then
3439  :
3440else
3441  echo "$as_me: failed program was:" >&5
3442sed 's/^/| /' conftest.$ac_ext >&5
3443
3444  # Broken: fails on valid input.
3445continue
3446fi
3447
3448rm -f conftest.err conftest.$ac_ext
3449
3450  # OK, works on sane cases.  Now check whether nonexistent headers
3451  # can be detected and how.
3452  cat >conftest.$ac_ext <<_ACEOF
3453/* confdefs.h.  */
3454_ACEOF
3455cat confdefs.h >>conftest.$ac_ext
3456cat >>conftest.$ac_ext <<_ACEOF
3457/* end confdefs.h.  */
3458#include <ac_nonexistent.h>
3459_ACEOF
3460if { (ac_try="$ac_cpp conftest.$ac_ext"
3461case "(($ac_try" in
3462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463  *) ac_try_echo=$ac_try;;
3464esac
3465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3467  ac_status=$?
3468  grep -v '^ *+' conftest.er1 >conftest.err
3469  rm -f conftest.er1
3470  cat conftest.err >&5
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); } >/dev/null && {
3473	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3474	 test ! -s conftest.err
3475       }; then
3476  # Broken: success on invalid input.
3477continue
3478else
3479  echo "$as_me: failed program was:" >&5
3480sed 's/^/| /' conftest.$ac_ext >&5
3481
3482  # Passes both tests.
3483ac_preproc_ok=:
3484break
3485fi
3486
3487rm -f conftest.err conftest.$ac_ext
3488
3489done
3490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3491rm -f conftest.err conftest.$ac_ext
3492if $ac_preproc_ok; then
3493  :
3494else
3495  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3496See \`config.log' for more details." >&5
3497echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3498See \`config.log' for more details." >&2;}
3499   { (exit 1); exit 1; }; }
3500fi
3501
3502ac_ext=c
3503ac_cpp='$CPP $CPPFLAGS'
3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507
3508
3509{ echo "$as_me:$LINENO: checking for X" >&5
3510echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3511
3512
3513# Check whether --with-x was given.
3514if test "${with_x+set}" = set; then
3515  withval=$with_x;
3516fi
3517
3518# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3519if test "x$with_x" = xno; then
3520  # The user explicitly disabled X.
3521  have_x=disabled
3522else
3523  case $x_includes,$x_libraries in #(
3524    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3525echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3526   { (exit 1); exit 1; }; };; #(
3527    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3528  echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530  # One or both of the vars are not set, and there is no cached value.
3531ac_x_includes=no ac_x_libraries=no
3532rm -f -r conftest.dir
3533if mkdir conftest.dir; then
3534  cd conftest.dir
3535  cat >Imakefile <<'_ACEOF'
3536incroot:
3537	@echo incroot='${INCROOT}'
3538usrlibdir:
3539	@echo usrlibdir='${USRLIBDIR}'
3540libdir:
3541	@echo libdir='${LIBDIR}'
3542_ACEOF
3543  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3544    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3545    for ac_var in incroot usrlibdir libdir; do
3546      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3547    done
3548    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3549    for ac_extension in a so sl; do
3550      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3551	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3552	ac_im_usrlibdir=$ac_im_libdir; break
3553      fi
3554    done
3555    # Screen out bogus values from the imake configuration.  They are
3556    # bogus both because they are the default anyway, and because
3557    # using them would break gcc on systems where it needs fixed includes.
3558    case $ac_im_incroot in
3559	/usr/include) ac_x_includes= ;;
3560	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3561    esac
3562    case $ac_im_usrlibdir in
3563	/usr/lib | /lib) ;;
3564	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3565    esac
3566  fi
3567  cd ..
3568  rm -f -r conftest.dir
3569fi
3570
3571# Standard set of common directories for X headers.
3572# Check X11 before X11Rn because it is often a symlink to the current release.
3573ac_x_header_dirs='
3574/usr/X11/include
3575/usr/X11R6/include
3576/usr/X11R5/include
3577/usr/X11R4/include
3578
3579/usr/include/X11
3580/usr/include/X11R6
3581/usr/include/X11R5
3582/usr/include/X11R4
3583
3584/usr/local/X11/include
3585/usr/local/X11R6/include
3586/usr/local/X11R5/include
3587/usr/local/X11R4/include
3588
3589/usr/local/include/X11
3590/usr/local/include/X11R6
3591/usr/local/include/X11R5
3592/usr/local/include/X11R4
3593
3594/usr/X386/include
3595/usr/x386/include
3596/usr/XFree86/include/X11
3597
3598/usr/include
3599/usr/local/include
3600/usr/unsupported/include
3601/usr/athena/include
3602/usr/local/x11r5/include
3603/usr/lpp/Xamples/include
3604
3605/usr/openwin/include
3606/usr/openwin/share/include'
3607
3608if test "$ac_x_includes" = no; then
3609  # Guess where to find include files, by looking for Xlib.h.
3610  # First, try using that file with no special directory specified.
3611  cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h.  */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h.  */
3617#include <X11/Xlib.h>
3618_ACEOF
3619if { (ac_try="$ac_cpp conftest.$ac_ext"
3620case "(($ac_try" in
3621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622  *) ac_try_echo=$ac_try;;
3623esac
3624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3626  ac_status=$?
3627  grep -v '^ *+' conftest.er1 >conftest.err
3628  rm -f conftest.er1
3629  cat conftest.err >&5
3630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631  (exit $ac_status); } >/dev/null && {
3632	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3633	 test ! -s conftest.err
3634       }; then
3635  # We can compile using X headers with no special include directory.
3636ac_x_includes=
3637else
3638  echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641  for ac_dir in $ac_x_header_dirs; do
3642  if test -r "$ac_dir/X11/Xlib.h"; then
3643    ac_x_includes=$ac_dir
3644    break
3645  fi
3646done
3647fi
3648
3649rm -f conftest.err conftest.$ac_ext
3650fi # $ac_x_includes = no
3651
3652if test "$ac_x_libraries" = no; then
3653  # Check for the libraries.
3654  # See if we find them without any special options.
3655  # Don't add to $LIBS permanently.
3656  ac_save_LIBS=$LIBS
3657  LIBS="-lX11 $LIBS"
3658  cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h.  */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h.  */
3664#include <X11/Xlib.h>
3665int
3666main ()
3667{
3668XrmInitialize ()
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673rm -f conftest.$ac_objext conftest$ac_exeext
3674if { (ac_try="$ac_link"
3675case "(($ac_try" in
3676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677  *) ac_try_echo=$ac_try;;
3678esac
3679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680  (eval "$ac_link") 2>conftest.er1
3681  ac_status=$?
3682  grep -v '^ *+' conftest.er1 >conftest.err
3683  rm -f conftest.er1
3684  cat conftest.err >&5
3685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686  (exit $ac_status); } && {
3687	 test -z "$ac_c_werror_flag" ||
3688	 test ! -s conftest.err
3689       } && test -s conftest$ac_exeext &&
3690       $as_test_x conftest$ac_exeext; then
3691  LIBS=$ac_save_LIBS
3692# We can link X programs with no special library path.
3693ac_x_libraries=
3694else
3695  echo "$as_me: failed program was:" >&5
3696sed 's/^/| /' conftest.$ac_ext >&5
3697
3698	LIBS=$ac_save_LIBS
3699for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3700do
3701  # Don't even attempt the hair of trying to link an X program!
3702  for ac_extension in a so sl; do
3703    if test -r "$ac_dir/libX11.$ac_extension"; then
3704      ac_x_libraries=$ac_dir
3705      break 2
3706    fi
3707  done
3708done
3709fi
3710
3711rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3712      conftest$ac_exeext conftest.$ac_ext
3713fi # $ac_x_libraries = no
3714
3715case $ac_x_includes,$ac_x_libraries in #(
3716  no,* | *,no | *\'*)
3717    # Didn't find X, or a directory has "'" in its name.
3718    ac_cv_have_x="have_x=no";; #(
3719  *)
3720    # Record where we found X for the cache.
3721    ac_cv_have_x="have_x=yes\
3722	ac_x_includes='$ac_x_includes'\
3723	ac_x_libraries='$ac_x_libraries'"
3724esac
3725fi
3726;; #(
3727    *) have_x=yes;;
3728  esac
3729  eval "$ac_cv_have_x"
3730fi # $with_x != no
3731
3732if test "$have_x" != yes; then
3733  { echo "$as_me:$LINENO: result: $have_x" >&5
3734echo "${ECHO_T}$have_x" >&6; }
3735  no_x=yes
3736else
3737  # If each of the values was on the command line, it overrides each guess.
3738  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3739  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3740  # Update the cache value to reflect the command line values.
3741  ac_cv_have_x="have_x=yes\
3742	ac_x_includes='$x_includes'\
3743	ac_x_libraries='$x_libraries'"
3744  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3745echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3746fi
3747
3748if test "$no_x" = yes; then
3749  # Not all programs may use this symbol, but it does not hurt to define it.
3750
3751cat >>confdefs.h <<\_ACEOF
3752#define X_DISPLAY_MISSING 1
3753_ACEOF
3754
3755  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3756else
3757  if test -n "$x_includes"; then
3758    X_CFLAGS="$X_CFLAGS -I$x_includes"
3759  fi
3760
3761  # It would also be nice to do this for all -L options, not just this one.
3762  if test -n "$x_libraries"; then
3763    X_LIBS="$X_LIBS -L$x_libraries"
3764    # For Solaris; some versions of Sun CC require a space after -R and
3765    # others require no space.  Words are not sufficient . . . .
3766    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3767echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3768    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3769    ac_xsave_c_werror_flag=$ac_c_werror_flag
3770    ac_c_werror_flag=yes
3771    cat >conftest.$ac_ext <<_ACEOF
3772/* confdefs.h.  */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
3776/* end confdefs.h.  */
3777
3778int
3779main ()
3780{
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext conftest$ac_exeext
3787if { (ac_try="$ac_link"
3788case "(($ac_try" in
3789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790  *) ac_try_echo=$ac_try;;
3791esac
3792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793  (eval "$ac_link") 2>conftest.er1
3794  ac_status=$?
3795  grep -v '^ *+' conftest.er1 >conftest.err
3796  rm -f conftest.er1
3797  cat conftest.err >&5
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); } && {
3800	 test -z "$ac_c_werror_flag" ||
3801	 test ! -s conftest.err
3802       } && test -s conftest$ac_exeext &&
3803       $as_test_x conftest$ac_exeext; then
3804  { echo "$as_me:$LINENO: result: no" >&5
3805echo "${ECHO_T}no" >&6; }
3806       X_LIBS="$X_LIBS -R$x_libraries"
3807else
3808  echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811	LIBS="$ac_xsave_LIBS -R $x_libraries"
3812       cat >conftest.$ac_ext <<_ACEOF
3813/* confdefs.h.  */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
3817/* end confdefs.h.  */
3818
3819int
3820main ()
3821{
3822
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext conftest$ac_exeext
3828if { (ac_try="$ac_link"
3829case "(($ac_try" in
3830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831  *) ac_try_echo=$ac_try;;
3832esac
3833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834  (eval "$ac_link") 2>conftest.er1
3835  ac_status=$?
3836  grep -v '^ *+' conftest.er1 >conftest.err
3837  rm -f conftest.er1
3838  cat conftest.err >&5
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); } && {
3841	 test -z "$ac_c_werror_flag" ||
3842	 test ! -s conftest.err
3843       } && test -s conftest$ac_exeext &&
3844       $as_test_x conftest$ac_exeext; then
3845  { echo "$as_me:$LINENO: result: yes" >&5
3846echo "${ECHO_T}yes" >&6; }
3847	  X_LIBS="$X_LIBS -R $x_libraries"
3848else
3849  echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852	{ echo "$as_me:$LINENO: result: neither works" >&5
3853echo "${ECHO_T}neither works" >&6; }
3854fi
3855
3856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3857      conftest$ac_exeext conftest.$ac_ext
3858fi
3859
3860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3861      conftest$ac_exeext conftest.$ac_ext
3862    ac_c_werror_flag=$ac_xsave_c_werror_flag
3863    LIBS=$ac_xsave_LIBS
3864  fi
3865
3866  # Check for system-dependent libraries X programs must link with.
3867  # Do this before checking for the system-independent R6 libraries
3868  # (-lICE), since we may need -lsocket or whatever for X linking.
3869
3870  if test "$ISC" = yes; then
3871    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3872  else
3873    # Martyn Johnson says this is needed for Ultrix, if the X
3874    # libraries were built with DECnet support.  And Karl Berry says
3875    # the Alpha needs dnet_stub (dnet does not exist).
3876    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3877    cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h.  */
3879_ACEOF
3880cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF
3882/* end confdefs.h.  */
3883
3884/* Override any GCC internal prototype to avoid an error.
3885   Use char because int might match the return type of a GCC
3886   builtin and then its argument prototype would still apply.  */
3887#ifdef __cplusplus
3888extern "C"
3889#endif
3890char XOpenDisplay ();
3891int
3892main ()
3893{
3894return XOpenDisplay ();
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext conftest$ac_exeext
3900if { (ac_try="$ac_link"
3901case "(($ac_try" in
3902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903  *) ac_try_echo=$ac_try;;
3904esac
3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906  (eval "$ac_link") 2>conftest.er1
3907  ac_status=$?
3908  grep -v '^ *+' conftest.er1 >conftest.err
3909  rm -f conftest.er1
3910  cat conftest.err >&5
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } && {
3913	 test -z "$ac_c_werror_flag" ||
3914	 test ! -s conftest.err
3915       } && test -s conftest$ac_exeext &&
3916       $as_test_x conftest$ac_exeext; then
3917  :
3918else
3919  echo "$as_me: failed program was:" >&5
3920sed 's/^/| /' conftest.$ac_ext >&5
3921
3922	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3923echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
3924if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3925  echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927  ac_check_lib_save_LIBS=$LIBS
3928LIBS="-ldnet  $LIBS"
3929cat >conftest.$ac_ext <<_ACEOF
3930/* confdefs.h.  */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h.  */
3935
3936/* Override any GCC internal prototype to avoid an error.
3937   Use char because int might match the return type of a GCC
3938   builtin and then its argument prototype would still apply.  */
3939#ifdef __cplusplus
3940extern "C"
3941#endif
3942char dnet_ntoa ();
3943int
3944main ()
3945{
3946return dnet_ntoa ();
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951rm -f conftest.$ac_objext conftest$ac_exeext
3952if { (ac_try="$ac_link"
3953case "(($ac_try" in
3954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955  *) ac_try_echo=$ac_try;;
3956esac
3957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958  (eval "$ac_link") 2>conftest.er1
3959  ac_status=$?
3960  grep -v '^ *+' conftest.er1 >conftest.err
3961  rm -f conftest.er1
3962  cat conftest.err >&5
3963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964  (exit $ac_status); } && {
3965	 test -z "$ac_c_werror_flag" ||
3966	 test ! -s conftest.err
3967       } && test -s conftest$ac_exeext &&
3968       $as_test_x conftest$ac_exeext; then
3969  ac_cv_lib_dnet_dnet_ntoa=yes
3970else
3971  echo "$as_me: failed program was:" >&5
3972sed 's/^/| /' conftest.$ac_ext >&5
3973
3974	ac_cv_lib_dnet_dnet_ntoa=no
3975fi
3976
3977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3978      conftest$ac_exeext conftest.$ac_ext
3979LIBS=$ac_check_lib_save_LIBS
3980fi
3981{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3982echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
3983if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3984  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3985fi
3986
3987    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3988      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3989echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
3990if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3991  echo $ECHO_N "(cached) $ECHO_C" >&6
3992else
3993  ac_check_lib_save_LIBS=$LIBS
3994LIBS="-ldnet_stub  $LIBS"
3995cat >conftest.$ac_ext <<_ACEOF
3996/* confdefs.h.  */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h.  */
4001
4002/* Override any GCC internal prototype to avoid an error.
4003   Use char because int might match the return type of a GCC
4004   builtin and then its argument prototype would still apply.  */
4005#ifdef __cplusplus
4006extern "C"
4007#endif
4008char dnet_ntoa ();
4009int
4010main ()
4011{
4012return dnet_ntoa ();
4013  ;
4014  return 0;
4015}
4016_ACEOF
4017rm -f conftest.$ac_objext conftest$ac_exeext
4018if { (ac_try="$ac_link"
4019case "(($ac_try" in
4020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021  *) ac_try_echo=$ac_try;;
4022esac
4023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024  (eval "$ac_link") 2>conftest.er1
4025  ac_status=$?
4026  grep -v '^ *+' conftest.er1 >conftest.err
4027  rm -f conftest.er1
4028  cat conftest.err >&5
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); } && {
4031	 test -z "$ac_c_werror_flag" ||
4032	 test ! -s conftest.err
4033       } && test -s conftest$ac_exeext &&
4034       $as_test_x conftest$ac_exeext; then
4035  ac_cv_lib_dnet_stub_dnet_ntoa=yes
4036else
4037  echo "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
4040	ac_cv_lib_dnet_stub_dnet_ntoa=no
4041fi
4042
4043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4044      conftest$ac_exeext conftest.$ac_ext
4045LIBS=$ac_check_lib_save_LIBS
4046fi
4047{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4048echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4049if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4050  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4051fi
4052
4053    fi
4054fi
4055
4056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4057      conftest$ac_exeext conftest.$ac_ext
4058    LIBS="$ac_xsave_LIBS"
4059
4060    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4061    # to get the SysV transport functions.
4062    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4063    # needs -lnsl.
4064    # The nsl library prevents programs from opening the X display
4065    # on Irix 5.2, according to T.E. Dickey.
4066    # The functions gethostbyname, getservbyname, and inet_addr are
4067    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4068    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4069echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4070if test "${ac_cv_func_gethostbyname+set}" = set; then
4071  echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
4073  cat >conftest.$ac_ext <<_ACEOF
4074/* confdefs.h.  */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h.  */
4079/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4080   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4081#define gethostbyname innocuous_gethostbyname
4082
4083/* System header to define __stub macros and hopefully few prototypes,
4084    which can conflict with char gethostbyname (); below.
4085    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086    <limits.h> exists even on freestanding compilers.  */
4087
4088#ifdef __STDC__
4089# include <limits.h>
4090#else
4091# include <assert.h>
4092#endif
4093
4094#undef gethostbyname
4095
4096/* Override any GCC internal prototype to avoid an error.
4097   Use char because int might match the return type of a GCC
4098   builtin and then its argument prototype would still apply.  */
4099#ifdef __cplusplus
4100extern "C"
4101#endif
4102char gethostbyname ();
4103/* The GNU C library defines this for functions which it implements
4104    to always fail with ENOSYS.  Some functions are actually named
4105    something starting with __ and the normal name is an alias.  */
4106#if defined __stub_gethostbyname || defined __stub___gethostbyname
4107choke me
4108#endif
4109
4110int
4111main ()
4112{
4113return gethostbyname ();
4114  ;
4115  return 0;
4116}
4117_ACEOF
4118rm -f conftest.$ac_objext conftest$ac_exeext
4119if { (ac_try="$ac_link"
4120case "(($ac_try" in
4121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122  *) ac_try_echo=$ac_try;;
4123esac
4124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125  (eval "$ac_link") 2>conftest.er1
4126  ac_status=$?
4127  grep -v '^ *+' conftest.er1 >conftest.err
4128  rm -f conftest.er1
4129  cat conftest.err >&5
4130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131  (exit $ac_status); } && {
4132	 test -z "$ac_c_werror_flag" ||
4133	 test ! -s conftest.err
4134       } && test -s conftest$ac_exeext &&
4135       $as_test_x conftest$ac_exeext; then
4136  ac_cv_func_gethostbyname=yes
4137else
4138  echo "$as_me: failed program was:" >&5
4139sed 's/^/| /' conftest.$ac_ext >&5
4140
4141	ac_cv_func_gethostbyname=no
4142fi
4143
4144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4145      conftest$ac_exeext conftest.$ac_ext
4146fi
4147{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4148echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4149
4150    if test $ac_cv_func_gethostbyname = no; then
4151      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4152echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4153if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4154  echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156  ac_check_lib_save_LIBS=$LIBS
4157LIBS="-lnsl  $LIBS"
4158cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h.  */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h.  */
4164
4165/* Override any GCC internal prototype to avoid an error.
4166   Use char because int might match the return type of a GCC
4167   builtin and then its argument prototype would still apply.  */
4168#ifdef __cplusplus
4169extern "C"
4170#endif
4171char gethostbyname ();
4172int
4173main ()
4174{
4175return gethostbyname ();
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180rm -f conftest.$ac_objext conftest$ac_exeext
4181if { (ac_try="$ac_link"
4182case "(($ac_try" in
4183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184  *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187  (eval "$ac_link") 2>conftest.er1
4188  ac_status=$?
4189  grep -v '^ *+' conftest.er1 >conftest.err
4190  rm -f conftest.er1
4191  cat conftest.err >&5
4192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193  (exit $ac_status); } && {
4194	 test -z "$ac_c_werror_flag" ||
4195	 test ! -s conftest.err
4196       } && test -s conftest$ac_exeext &&
4197       $as_test_x conftest$ac_exeext; then
4198  ac_cv_lib_nsl_gethostbyname=yes
4199else
4200  echo "$as_me: failed program was:" >&5
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
4203	ac_cv_lib_nsl_gethostbyname=no
4204fi
4205
4206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4207      conftest$ac_exeext conftest.$ac_ext
4208LIBS=$ac_check_lib_save_LIBS
4209fi
4210{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4211echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4212if test $ac_cv_lib_nsl_gethostbyname = yes; then
4213  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4214fi
4215
4216      if test $ac_cv_lib_nsl_gethostbyname = no; then
4217	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4218echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4219if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4220  echo $ECHO_N "(cached) $ECHO_C" >&6
4221else
4222  ac_check_lib_save_LIBS=$LIBS
4223LIBS="-lbsd  $LIBS"
4224cat >conftest.$ac_ext <<_ACEOF
4225/* confdefs.h.  */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h.  */
4230
4231/* Override any GCC internal prototype to avoid an error.
4232   Use char because int might match the return type of a GCC
4233   builtin and then its argument prototype would still apply.  */
4234#ifdef __cplusplus
4235extern "C"
4236#endif
4237char gethostbyname ();
4238int
4239main ()
4240{
4241return gethostbyname ();
4242  ;
4243  return 0;
4244}
4245_ACEOF
4246rm -f conftest.$ac_objext conftest$ac_exeext
4247if { (ac_try="$ac_link"
4248case "(($ac_try" in
4249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250  *) ac_try_echo=$ac_try;;
4251esac
4252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253  (eval "$ac_link") 2>conftest.er1
4254  ac_status=$?
4255  grep -v '^ *+' conftest.er1 >conftest.err
4256  rm -f conftest.er1
4257  cat conftest.err >&5
4258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259  (exit $ac_status); } && {
4260	 test -z "$ac_c_werror_flag" ||
4261	 test ! -s conftest.err
4262       } && test -s conftest$ac_exeext &&
4263       $as_test_x conftest$ac_exeext; then
4264  ac_cv_lib_bsd_gethostbyname=yes
4265else
4266  echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269	ac_cv_lib_bsd_gethostbyname=no
4270fi
4271
4272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4273      conftest$ac_exeext conftest.$ac_ext
4274LIBS=$ac_check_lib_save_LIBS
4275fi
4276{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4277echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4278if test $ac_cv_lib_bsd_gethostbyname = yes; then
4279  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4280fi
4281
4282      fi
4283    fi
4284
4285    # lieder@skyler.mavd.honeywell.com says without -lsocket,
4286    # socket/setsockopt and other routines are undefined under SCO ODT
4287    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4288    # on later versions), says Simon Leinen: it contains gethostby*
4289    # variants that don't use the name server (or something).  -lsocket
4290    # must be given before -lnsl if both are needed.  We assume that
4291    # if connect needs -lnsl, so does gethostbyname.
4292    { echo "$as_me:$LINENO: checking for connect" >&5
4293echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4294if test "${ac_cv_func_connect+set}" = set; then
4295  echo $ECHO_N "(cached) $ECHO_C" >&6
4296else
4297  cat >conftest.$ac_ext <<_ACEOF
4298/* confdefs.h.  */
4299_ACEOF
4300cat confdefs.h >>conftest.$ac_ext
4301cat >>conftest.$ac_ext <<_ACEOF
4302/* end confdefs.h.  */
4303/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4304   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4305#define connect innocuous_connect
4306
4307/* System header to define __stub macros and hopefully few prototypes,
4308    which can conflict with char connect (); below.
4309    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4310    <limits.h> exists even on freestanding compilers.  */
4311
4312#ifdef __STDC__
4313# include <limits.h>
4314#else
4315# include <assert.h>
4316#endif
4317
4318#undef connect
4319
4320/* Override any GCC internal prototype to avoid an error.
4321   Use char because int might match the return type of a GCC
4322   builtin and then its argument prototype would still apply.  */
4323#ifdef __cplusplus
4324extern "C"
4325#endif
4326char connect ();
4327/* The GNU C library defines this for functions which it implements
4328    to always fail with ENOSYS.  Some functions are actually named
4329    something starting with __ and the normal name is an alias.  */
4330#if defined __stub_connect || defined __stub___connect
4331choke me
4332#endif
4333
4334int
4335main ()
4336{
4337return connect ();
4338  ;
4339  return 0;
4340}
4341_ACEOF
4342rm -f conftest.$ac_objext conftest$ac_exeext
4343if { (ac_try="$ac_link"
4344case "(($ac_try" in
4345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346  *) ac_try_echo=$ac_try;;
4347esac
4348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349  (eval "$ac_link") 2>conftest.er1
4350  ac_status=$?
4351  grep -v '^ *+' conftest.er1 >conftest.err
4352  rm -f conftest.er1
4353  cat conftest.err >&5
4354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355  (exit $ac_status); } && {
4356	 test -z "$ac_c_werror_flag" ||
4357	 test ! -s conftest.err
4358       } && test -s conftest$ac_exeext &&
4359       $as_test_x conftest$ac_exeext; then
4360  ac_cv_func_connect=yes
4361else
4362  echo "$as_me: failed program was:" >&5
4363sed 's/^/| /' conftest.$ac_ext >&5
4364
4365	ac_cv_func_connect=no
4366fi
4367
4368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4369      conftest$ac_exeext conftest.$ac_ext
4370fi
4371{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4372echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4373
4374    if test $ac_cv_func_connect = no; then
4375      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4376echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4377if test "${ac_cv_lib_socket_connect+set}" = set; then
4378  echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380  ac_check_lib_save_LIBS=$LIBS
4381LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4382cat >conftest.$ac_ext <<_ACEOF
4383/* confdefs.h.  */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h.  */
4388
4389/* Override any GCC internal prototype to avoid an error.
4390   Use char because int might match the return type of a GCC
4391   builtin and then its argument prototype would still apply.  */
4392#ifdef __cplusplus
4393extern "C"
4394#endif
4395char connect ();
4396int
4397main ()
4398{
4399return connect ();
4400  ;
4401  return 0;
4402}
4403_ACEOF
4404rm -f conftest.$ac_objext conftest$ac_exeext
4405if { (ac_try="$ac_link"
4406case "(($ac_try" in
4407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408  *) ac_try_echo=$ac_try;;
4409esac
4410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411  (eval "$ac_link") 2>conftest.er1
4412  ac_status=$?
4413  grep -v '^ *+' conftest.er1 >conftest.err
4414  rm -f conftest.er1
4415  cat conftest.err >&5
4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417  (exit $ac_status); } && {
4418	 test -z "$ac_c_werror_flag" ||
4419	 test ! -s conftest.err
4420       } && test -s conftest$ac_exeext &&
4421       $as_test_x conftest$ac_exeext; then
4422  ac_cv_lib_socket_connect=yes
4423else
4424  echo "$as_me: failed program was:" >&5
4425sed 's/^/| /' conftest.$ac_ext >&5
4426
4427	ac_cv_lib_socket_connect=no
4428fi
4429
4430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4431      conftest$ac_exeext conftest.$ac_ext
4432LIBS=$ac_check_lib_save_LIBS
4433fi
4434{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4435echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4436if test $ac_cv_lib_socket_connect = yes; then
4437  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4438fi
4439
4440    fi
4441
4442    # Guillermo Gomez says -lposix is necessary on A/UX.
4443    { echo "$as_me:$LINENO: checking for remove" >&5
4444echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4445if test "${ac_cv_func_remove+set}" = set; then
4446  echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448  cat >conftest.$ac_ext <<_ACEOF
4449/* confdefs.h.  */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
4453/* end confdefs.h.  */
4454/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4455   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4456#define remove innocuous_remove
4457
4458/* System header to define __stub macros and hopefully few prototypes,
4459    which can conflict with char remove (); below.
4460    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4461    <limits.h> exists even on freestanding compilers.  */
4462
4463#ifdef __STDC__
4464# include <limits.h>
4465#else
4466# include <assert.h>
4467#endif
4468
4469#undef remove
4470
4471/* Override any GCC internal prototype to avoid an error.
4472   Use char because int might match the return type of a GCC
4473   builtin and then its argument prototype would still apply.  */
4474#ifdef __cplusplus
4475extern "C"
4476#endif
4477char remove ();
4478/* The GNU C library defines this for functions which it implements
4479    to always fail with ENOSYS.  Some functions are actually named
4480    something starting with __ and the normal name is an alias.  */
4481#if defined __stub_remove || defined __stub___remove
4482choke me
4483#endif
4484
4485int
4486main ()
4487{
4488return remove ();
4489  ;
4490  return 0;
4491}
4492_ACEOF
4493rm -f conftest.$ac_objext conftest$ac_exeext
4494if { (ac_try="$ac_link"
4495case "(($ac_try" in
4496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497  *) ac_try_echo=$ac_try;;
4498esac
4499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500  (eval "$ac_link") 2>conftest.er1
4501  ac_status=$?
4502  grep -v '^ *+' conftest.er1 >conftest.err
4503  rm -f conftest.er1
4504  cat conftest.err >&5
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); } && {
4507	 test -z "$ac_c_werror_flag" ||
4508	 test ! -s conftest.err
4509       } && test -s conftest$ac_exeext &&
4510       $as_test_x conftest$ac_exeext; then
4511  ac_cv_func_remove=yes
4512else
4513  echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516	ac_cv_func_remove=no
4517fi
4518
4519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4520      conftest$ac_exeext conftest.$ac_ext
4521fi
4522{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4523echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4524
4525    if test $ac_cv_func_remove = no; then
4526      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4527echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4528if test "${ac_cv_lib_posix_remove+set}" = set; then
4529  echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531  ac_check_lib_save_LIBS=$LIBS
4532LIBS="-lposix  $LIBS"
4533cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h.  */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h.  */
4539
4540/* Override any GCC internal prototype to avoid an error.
4541   Use char because int might match the return type of a GCC
4542   builtin and then its argument prototype would still apply.  */
4543#ifdef __cplusplus
4544extern "C"
4545#endif
4546char remove ();
4547int
4548main ()
4549{
4550return remove ();
4551  ;
4552  return 0;
4553}
4554_ACEOF
4555rm -f conftest.$ac_objext conftest$ac_exeext
4556if { (ac_try="$ac_link"
4557case "(($ac_try" in
4558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559  *) ac_try_echo=$ac_try;;
4560esac
4561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562  (eval "$ac_link") 2>conftest.er1
4563  ac_status=$?
4564  grep -v '^ *+' conftest.er1 >conftest.err
4565  rm -f conftest.er1
4566  cat conftest.err >&5
4567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568  (exit $ac_status); } && {
4569	 test -z "$ac_c_werror_flag" ||
4570	 test ! -s conftest.err
4571       } && test -s conftest$ac_exeext &&
4572       $as_test_x conftest$ac_exeext; then
4573  ac_cv_lib_posix_remove=yes
4574else
4575  echo "$as_me: failed program was:" >&5
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
4578	ac_cv_lib_posix_remove=no
4579fi
4580
4581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4582      conftest$ac_exeext conftest.$ac_ext
4583LIBS=$ac_check_lib_save_LIBS
4584fi
4585{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4586echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4587if test $ac_cv_lib_posix_remove = yes; then
4588  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4589fi
4590
4591    fi
4592
4593    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4594    { echo "$as_me:$LINENO: checking for shmat" >&5
4595echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4596if test "${ac_cv_func_shmat+set}" = set; then
4597  echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599  cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h.  */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h.  */
4605/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4606   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4607#define shmat innocuous_shmat
4608
4609/* System header to define __stub macros and hopefully few prototypes,
4610    which can conflict with char shmat (); below.
4611    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4612    <limits.h> exists even on freestanding compilers.  */
4613
4614#ifdef __STDC__
4615# include <limits.h>
4616#else
4617# include <assert.h>
4618#endif
4619
4620#undef shmat
4621
4622/* Override any GCC internal prototype to avoid an error.
4623   Use char because int might match the return type of a GCC
4624   builtin and then its argument prototype would still apply.  */
4625#ifdef __cplusplus
4626extern "C"
4627#endif
4628char shmat ();
4629/* The GNU C library defines this for functions which it implements
4630    to always fail with ENOSYS.  Some functions are actually named
4631    something starting with __ and the normal name is an alias.  */
4632#if defined __stub_shmat || defined __stub___shmat
4633choke me
4634#endif
4635
4636int
4637main ()
4638{
4639return shmat ();
4640  ;
4641  return 0;
4642}
4643_ACEOF
4644rm -f conftest.$ac_objext conftest$ac_exeext
4645if { (ac_try="$ac_link"
4646case "(($ac_try" in
4647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648  *) ac_try_echo=$ac_try;;
4649esac
4650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651  (eval "$ac_link") 2>conftest.er1
4652  ac_status=$?
4653  grep -v '^ *+' conftest.er1 >conftest.err
4654  rm -f conftest.er1
4655  cat conftest.err >&5
4656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); } && {
4658	 test -z "$ac_c_werror_flag" ||
4659	 test ! -s conftest.err
4660       } && test -s conftest$ac_exeext &&
4661       $as_test_x conftest$ac_exeext; then
4662  ac_cv_func_shmat=yes
4663else
4664  echo "$as_me: failed program was:" >&5
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
4667	ac_cv_func_shmat=no
4668fi
4669
4670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4671      conftest$ac_exeext conftest.$ac_ext
4672fi
4673{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4674echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4675
4676    if test $ac_cv_func_shmat = no; then
4677      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4678echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4679if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4680  echo $ECHO_N "(cached) $ECHO_C" >&6
4681else
4682  ac_check_lib_save_LIBS=$LIBS
4683LIBS="-lipc  $LIBS"
4684cat >conftest.$ac_ext <<_ACEOF
4685/* confdefs.h.  */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h.  */
4690
4691/* Override any GCC internal prototype to avoid an error.
4692   Use char because int might match the return type of a GCC
4693   builtin and then its argument prototype would still apply.  */
4694#ifdef __cplusplus
4695extern "C"
4696#endif
4697char shmat ();
4698int
4699main ()
4700{
4701return shmat ();
4702  ;
4703  return 0;
4704}
4705_ACEOF
4706rm -f conftest.$ac_objext conftest$ac_exeext
4707if { (ac_try="$ac_link"
4708case "(($ac_try" in
4709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710  *) ac_try_echo=$ac_try;;
4711esac
4712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713  (eval "$ac_link") 2>conftest.er1
4714  ac_status=$?
4715  grep -v '^ *+' conftest.er1 >conftest.err
4716  rm -f conftest.er1
4717  cat conftest.err >&5
4718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719  (exit $ac_status); } && {
4720	 test -z "$ac_c_werror_flag" ||
4721	 test ! -s conftest.err
4722       } && test -s conftest$ac_exeext &&
4723       $as_test_x conftest$ac_exeext; then
4724  ac_cv_lib_ipc_shmat=yes
4725else
4726  echo "$as_me: failed program was:" >&5
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
4729	ac_cv_lib_ipc_shmat=no
4730fi
4731
4732rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4733      conftest$ac_exeext conftest.$ac_ext
4734LIBS=$ac_check_lib_save_LIBS
4735fi
4736{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4737echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4738if test $ac_cv_lib_ipc_shmat = yes; then
4739  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4740fi
4741
4742    fi
4743  fi
4744
4745  # Check for libraries that X11R6 Xt/Xaw programs need.
4746  ac_save_LDFLAGS=$LDFLAGS
4747  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4748  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4749  # check for ICE first), but we must link in the order -lSM -lICE or
4750  # we get undefined symbols.  So assume we have SM if we have ICE.
4751  # These have to be linked with before -lX11, unlike the other
4752  # libraries we check for below, so use a different variable.
4753  # John Interrante, Karl Berry
4754  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4755echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4756if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4757  echo $ECHO_N "(cached) $ECHO_C" >&6
4758else
4759  ac_check_lib_save_LIBS=$LIBS
4760LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4761cat >conftest.$ac_ext <<_ACEOF
4762/* confdefs.h.  */
4763_ACEOF
4764cat confdefs.h >>conftest.$ac_ext
4765cat >>conftest.$ac_ext <<_ACEOF
4766/* end confdefs.h.  */
4767
4768/* Override any GCC internal prototype to avoid an error.
4769   Use char because int might match the return type of a GCC
4770   builtin and then its argument prototype would still apply.  */
4771#ifdef __cplusplus
4772extern "C"
4773#endif
4774char IceConnectionNumber ();
4775int
4776main ()
4777{
4778return IceConnectionNumber ();
4779  ;
4780  return 0;
4781}
4782_ACEOF
4783rm -f conftest.$ac_objext conftest$ac_exeext
4784if { (ac_try="$ac_link"
4785case "(($ac_try" in
4786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787  *) ac_try_echo=$ac_try;;
4788esac
4789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790  (eval "$ac_link") 2>conftest.er1
4791  ac_status=$?
4792  grep -v '^ *+' conftest.er1 >conftest.err
4793  rm -f conftest.er1
4794  cat conftest.err >&5
4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); } && {
4797	 test -z "$ac_c_werror_flag" ||
4798	 test ! -s conftest.err
4799       } && test -s conftest$ac_exeext &&
4800       $as_test_x conftest$ac_exeext; then
4801  ac_cv_lib_ICE_IceConnectionNumber=yes
4802else
4803  echo "$as_me: failed program was:" >&5
4804sed 's/^/| /' conftest.$ac_ext >&5
4805
4806	ac_cv_lib_ICE_IceConnectionNumber=no
4807fi
4808
4809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4810      conftest$ac_exeext conftest.$ac_ext
4811LIBS=$ac_check_lib_save_LIBS
4812fi
4813{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4814echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4815if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4816  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4817fi
4818
4819  LDFLAGS=$ac_save_LDFLAGS
4820
4821fi
4822
4823
4824
4825if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4826	if test -n "$ac_tool_prefix"; then
4827  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4828set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4832  echo $ECHO_N "(cached) $ECHO_C" >&6
4833else
4834  case $PKG_CONFIG in
4835  [\\/]* | ?:[\\/]*)
4836  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4837  ;;
4838  *)
4839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840for as_dir in $PATH
4841do
4842  IFS=$as_save_IFS
4843  test -z "$as_dir" && as_dir=.
4844  for ac_exec_ext in '' $ac_executable_extensions; do
4845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848    break 2
4849  fi
4850done
4851done
4852IFS=$as_save_IFS
4853
4854  ;;
4855esac
4856fi
4857PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4858if test -n "$PKG_CONFIG"; then
4859  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4860echo "${ECHO_T}$PKG_CONFIG" >&6; }
4861else
4862  { echo "$as_me:$LINENO: result: no" >&5
4863echo "${ECHO_T}no" >&6; }
4864fi
4865
4866
4867fi
4868if test -z "$ac_cv_path_PKG_CONFIG"; then
4869  ac_pt_PKG_CONFIG=$PKG_CONFIG
4870  # Extract the first word of "pkg-config", so it can be a program name with args.
4871set dummy pkg-config; ac_word=$2
4872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4875  echo $ECHO_N "(cached) $ECHO_C" >&6
4876else
4877  case $ac_pt_PKG_CONFIG in
4878  [\\/]* | ?:[\\/]*)
4879  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4880  ;;
4881  *)
4882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885  IFS=$as_save_IFS
4886  test -z "$as_dir" && as_dir=.
4887  for ac_exec_ext in '' $ac_executable_extensions; do
4888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891    break 2
4892  fi
4893done
4894done
4895IFS=$as_save_IFS
4896
4897  ;;
4898esac
4899fi
4900ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4901if test -n "$ac_pt_PKG_CONFIG"; then
4902  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4903echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4904else
4905  { echo "$as_me:$LINENO: result: no" >&5
4906echo "${ECHO_T}no" >&6; }
4907fi
4908
4909  if test "x$ac_pt_PKG_CONFIG" = x; then
4910    PKG_CONFIG=""
4911  else
4912    case $cross_compiling:$ac_tool_warned in
4913yes:)
4914{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4915whose name does not start with the host triplet.  If you think this
4916configuration is useful to you, please write to autoconf@gnu.org." >&5
4917echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4918whose name does not start with the host triplet.  If you think this
4919configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4920ac_tool_warned=yes ;;
4921esac
4922    PKG_CONFIG=$ac_pt_PKG_CONFIG
4923  fi
4924else
4925  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4926fi
4927
4928fi
4929if test -n "$PKG_CONFIG"; then
4930	_pkg_min_version=0.9.0
4931	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4932echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4933	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4934		{ echo "$as_me:$LINENO: result: yes" >&5
4935echo "${ECHO_T}yes" >&6; }
4936	else
4937		{ echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6; }
4939		PKG_CONFIG=""
4940	fi
4941
4942fi
4943
4944pkg_failed=no
4945{ echo "$as_me:$LINENO: checking for IMLIB2" >&5
4946echo $ECHO_N "checking for IMLIB2... $ECHO_C" >&6; }
4947
4948if test -n "$PKG_CONFIG"; then
4949    if test -n "$IMLIB2_CFLAGS"; then
4950        pkg_cv_IMLIB2_CFLAGS="$IMLIB2_CFLAGS"
4951    else
4952        if test -n "$PKG_CONFIG" && \
4953    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
4954  ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
4955  ac_status=$?
4956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957  (exit $ac_status); }; then
4958  pkg_cv_IMLIB2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
4959else
4960  pkg_failed=yes
4961fi
4962    fi
4963else
4964	pkg_failed=untried
4965fi
4966if test -n "$PKG_CONFIG"; then
4967    if test -n "$IMLIB2_LIBS"; then
4968        pkg_cv_IMLIB2_LIBS="$IMLIB2_LIBS"
4969    else
4970        if test -n "$PKG_CONFIG" && \
4971    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
4972  ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
4973  ac_status=$?
4974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975  (exit $ac_status); }; then
4976  pkg_cv_IMLIB2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
4977else
4978  pkg_failed=yes
4979fi
4980    fi
4981else
4982	pkg_failed=untried
4983fi
4984
4985
4986
4987if test $pkg_failed = yes; then
4988
4989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4990        _pkg_short_errors_supported=yes
4991else
4992        _pkg_short_errors_supported=no
4993fi
4994        if test $_pkg_short_errors_supported = yes; then
4995	        IMLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib2"`
4996        else
4997	        IMLIB2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib2"`
4998        fi
4999	# Put the nasty error message in config.log where it belongs
5000	echo "$IMLIB2_PKG_ERRORS" >&5
5001
5002	{ { echo "$as_me:$LINENO: error: Package requirements (imlib2) were not met:
5003
5004$IMLIB2_PKG_ERRORS
5005
5006Consider adjusting the PKG_CONFIG_PATH environment variable if you
5007installed software in a non-standard prefix.
5008
5009Alternatively, you may set the environment variables IMLIB2_CFLAGS
5010and IMLIB2_LIBS to avoid the need to call pkg-config.
5011See the pkg-config man page for more details.
5012" >&5
5013echo "$as_me: error: Package requirements (imlib2) were not met:
5014
5015$IMLIB2_PKG_ERRORS
5016
5017Consider adjusting the PKG_CONFIG_PATH environment variable if you
5018installed software in a non-standard prefix.
5019
5020Alternatively, you may set the environment variables IMLIB2_CFLAGS
5021and IMLIB2_LIBS to avoid the need to call pkg-config.
5022See the pkg-config man page for more details.
5023" >&2;}
5024   { (exit 1); exit 1; }; }
5025elif test $pkg_failed = untried; then
5026	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5027is in your PATH or set the PKG_CONFIG environment variable to the full
5028path to pkg-config.
5029
5030Alternatively, you may set the environment variables IMLIB2_CFLAGS
5031and IMLIB2_LIBS to avoid the need to call pkg-config.
5032See the pkg-config man page for more details.
5033
5034To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5035See \`config.log' for more details." >&5
5036echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5037is in your PATH or set the PKG_CONFIG environment variable to the full
5038path to pkg-config.
5039
5040Alternatively, you may set the environment variables IMLIB2_CFLAGS
5041and IMLIB2_LIBS to avoid the need to call pkg-config.
5042See the pkg-config man page for more details.
5043
5044To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5045See \`config.log' for more details." >&2;}
5046   { (exit 1); exit 1; }; }
5047else
5048	IMLIB2_CFLAGS=$pkg_cv_IMLIB2_CFLAGS
5049	IMLIB2_LIBS=$pkg_cv_IMLIB2_LIBS
5050        { echo "$as_me:$LINENO: result: yes" >&5
5051echo "${ECHO_T}yes" >&6; }
5052	:
5053fi
5054
5055PIXMAP_PATH="/usr/local/share/xteddy"
5056
5057
5058ac_config_files="$ac_config_files Makefile html/Makefile images/Makefile"
5059
5060cat >confcache <<\_ACEOF
5061# This file is a shell script that caches the results of configure
5062# tests run on this system so they can be shared between configure
5063# scripts and configure runs, see configure's option --config-cache.
5064# It is not useful on other systems.  If it contains results you don't
5065# want to keep, you may remove or edit it.
5066#
5067# config.status only pays attention to the cache file if you give it
5068# the --recheck option to rerun configure.
5069#
5070# `ac_cv_env_foo' variables (set or unset) will be overridden when
5071# loading this file, other *unset* `ac_cv_foo' will be assigned the
5072# following values.
5073
5074_ACEOF
5075
5076# The following way of writing the cache mishandles newlines in values,
5077# but we know of no workaround that is simple, portable, and efficient.
5078# So, we kill variables containing newlines.
5079# Ultrix sh set writes to stderr and can't be redirected directly,
5080# and sets the high bit in the cache file unless we assign to the vars.
5081(
5082  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5083    eval ac_val=\$$ac_var
5084    case $ac_val in #(
5085    *${as_nl}*)
5086      case $ac_var in #(
5087      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5088echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5089      esac
5090      case $ac_var in #(
5091      _ | IFS | as_nl) ;; #(
5092      *) $as_unset $ac_var ;;
5093      esac ;;
5094    esac
5095  done
5096
5097  (set) 2>&1 |
5098    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5099    *${as_nl}ac_space=\ *)
5100      # `set' does not quote correctly, so add quotes (double-quote
5101      # substitution turns \\\\ into \\, and sed turns \\ into \).
5102      sed -n \
5103	"s/'/'\\\\''/g;
5104	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5105      ;; #(
5106    *)
5107      # `set' quotes correctly as required by POSIX, so do not add quotes.
5108      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5109      ;;
5110    esac |
5111    sort
5112) |
5113  sed '
5114     /^ac_cv_env_/b end
5115     t clear
5116     :clear
5117     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5118     t end
5119     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5120     :end' >>confcache
5121if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5122  if test -w "$cache_file"; then
5123    test "x$cache_file" != "x/dev/null" &&
5124      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5125echo "$as_me: updating cache $cache_file" >&6;}
5126    cat confcache >$cache_file
5127  else
5128    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5129echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5130  fi
5131fi
5132rm -f confcache
5133
5134test "x$prefix" = xNONE && prefix=$ac_default_prefix
5135# Let make expand exec_prefix.
5136test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5137
5138# Transform confdefs.h into DEFS.
5139# Protect against shell expansion while executing Makefile rules.
5140# Protect against Makefile macro expansion.
5141#
5142# If the first sed substitution is executed (which looks for macros that
5143# take arguments), then branch to the quote section.  Otherwise,
5144# look for a macro that doesn't take arguments.
5145ac_script='
5146t clear
5147:clear
5148s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
5149t quote
5150s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
5151t quote
5152b any
5153:quote
5154s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5155s/\[/\\&/g
5156s/\]/\\&/g
5157s/\$/$$/g
5158H
5159:any
5160${
5161	g
5162	s/^\n//
5163	s/\n/ /g
5164	p
5165}
5166'
5167DEFS=`sed -n "$ac_script" confdefs.h`
5168
5169
5170ac_libobjs=
5171ac_ltlibobjs=
5172for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5173  # 1. Remove the extension, and $U if already installed.
5174  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5175  ac_i=`echo "$ac_i" | sed "$ac_script"`
5176  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5177  #    will be set to the directory where LIBOBJS objects are built.
5178  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5179  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5180done
5181LIBOBJS=$ac_libobjs
5182
5183LTLIBOBJS=$ac_ltlibobjs
5184
5185
5186if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5187  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5188Usually this means the macro was only invoked conditionally." >&5
5189echo "$as_me: error: conditional \"AMDEP\" was never defined.
5190Usually this means the macro was only invoked conditionally." >&2;}
5191   { (exit 1); exit 1; }; }
5192fi
5193if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5194  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5195Usually this means the macro was only invoked conditionally." >&5
5196echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5197Usually this means the macro was only invoked conditionally." >&2;}
5198   { (exit 1); exit 1; }; }
5199fi
5200
5201: ${CONFIG_STATUS=./config.status}
5202ac_clean_files_save=$ac_clean_files
5203ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5204{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5205echo "$as_me: creating $CONFIG_STATUS" >&6;}
5206cat >$CONFIG_STATUS <<_ACEOF
5207#! $SHELL
5208# Generated by $as_me.
5209# Run this file to recreate the current configuration.
5210# Compiler output produced by configure, useful for debugging
5211# configure, is in config.log if it exists.
5212
5213debug=false
5214ac_cs_recheck=false
5215ac_cs_silent=false
5216SHELL=\${CONFIG_SHELL-$SHELL}
5217_ACEOF
5218
5219cat >>$CONFIG_STATUS <<\_ACEOF
5220## --------------------- ##
5221## M4sh Initialization.  ##
5222## --------------------- ##
5223
5224# Be more Bourne compatible
5225DUALCASE=1; export DUALCASE # for MKS sh
5226if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5227  emulate sh
5228  NULLCMD=:
5229  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5230  # is contrary to our usage.  Disable this feature.
5231  alias -g '${1+"$@"}'='"$@"'
5232  setopt NO_GLOB_SUBST
5233else
5234  case `(set -o) 2>/dev/null` in
5235  *posix*) set -o posix ;;
5236esac
5237
5238fi
5239
5240
5241
5242
5243# PATH needs CR
5244# Avoid depending upon Character Ranges.
5245as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5246as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5247as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5248as_cr_digits='0123456789'
5249as_cr_alnum=$as_cr_Letters$as_cr_digits
5250
5251# The user is always right.
5252if test "${PATH_SEPARATOR+set}" != set; then
5253  echo "#! /bin/sh" >conf$$.sh
5254  echo  "exit 0"   >>conf$$.sh
5255  chmod +x conf$$.sh
5256  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5257    PATH_SEPARATOR=';'
5258  else
5259    PATH_SEPARATOR=:
5260  fi
5261  rm -f conf$$.sh
5262fi
5263
5264# Support unset when possible.
5265if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5266  as_unset=unset
5267else
5268  as_unset=false
5269fi
5270
5271
5272# IFS
5273# We need space, tab and new line, in precisely that order.  Quoting is
5274# there to prevent editors from complaining about space-tab.
5275# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5276# splitting by setting IFS to empty value.)
5277as_nl='
5278'
5279IFS=" ""	$as_nl"
5280
5281# Find who we are.  Look in the path if we contain no directory separator.
5282case $0 in
5283  *[\\/]* ) as_myself=$0 ;;
5284  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287  IFS=$as_save_IFS
5288  test -z "$as_dir" && as_dir=.
5289  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5290done
5291IFS=$as_save_IFS
5292
5293     ;;
5294esac
5295# We did not find ourselves, most probably we were run as `sh COMMAND'
5296# in which case we are not to be found in the path.
5297if test "x$as_myself" = x; then
5298  as_myself=$0
5299fi
5300if test ! -f "$as_myself"; then
5301  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5302  { (exit 1); exit 1; }
5303fi
5304
5305# Work around bugs in pre-3.0 UWIN ksh.
5306for as_var in ENV MAIL MAILPATH
5307do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5308done
5309PS1='$ '
5310PS2='> '
5311PS4='+ '
5312
5313# NLS nuisances.
5314for as_var in \
5315  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5316  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5317  LC_TELEPHONE LC_TIME
5318do
5319  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5320    eval $as_var=C; export $as_var
5321  else
5322    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5323  fi
5324done
5325
5326# Required to use basename.
5327if expr a : '\(a\)' >/dev/null 2>&1 &&
5328   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5329  as_expr=expr
5330else
5331  as_expr=false
5332fi
5333
5334if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5335  as_basename=basename
5336else
5337  as_basename=false
5338fi
5339
5340
5341# Name of the executable.
5342as_me=`$as_basename -- "$0" ||
5343$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5344	 X"$0" : 'X\(//\)$' \| \
5345	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5346echo X/"$0" |
5347    sed '/^.*\/\([^/][^/]*\)\/*$/{
5348	    s//\1/
5349	    q
5350	  }
5351	  /^X\/\(\/\/\)$/{
5352	    s//\1/
5353	    q
5354	  }
5355	  /^X\/\(\/\).*/{
5356	    s//\1/
5357	    q
5358	  }
5359	  s/.*/./; q'`
5360
5361# CDPATH.
5362$as_unset CDPATH
5363
5364
5365
5366  as_lineno_1=$LINENO
5367  as_lineno_2=$LINENO
5368  test "x$as_lineno_1" != "x$as_lineno_2" &&
5369  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5370
5371  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5372  # uniformly replaced by the line number.  The first 'sed' inserts a
5373  # line-number line after each line using $LINENO; the second 'sed'
5374  # does the real work.  The second script uses 'N' to pair each
5375  # line-number line with the line containing $LINENO, and appends
5376  # trailing '-' during substitution so that $LINENO is not a special
5377  # case at line end.
5378  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5379  # scripts with optimization help from Paolo Bonzini.  Blame Lee
5380  # E. McMahon (1931-1989) for sed's syntax.  :-)
5381  sed -n '
5382    p
5383    /[$]LINENO/=
5384  ' <$as_myself |
5385    sed '
5386      s/[$]LINENO.*/&-/
5387      t lineno
5388      b
5389      :lineno
5390      N
5391      :loop
5392      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5393      t loop
5394      s/-\n.*//
5395    ' >$as_me.lineno &&
5396  chmod +x "$as_me.lineno" ||
5397    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5398   { (exit 1); exit 1; }; }
5399
5400  # Don't try to exec as it changes $[0], causing all sort of problems
5401  # (the dirname of $[0] is not the place where we might find the
5402  # original and so on.  Autoconf is especially sensitive to this).
5403  . "./$as_me.lineno"
5404  # Exit status is that of the last command.
5405  exit
5406}
5407
5408
5409if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5410  as_dirname=dirname
5411else
5412  as_dirname=false
5413fi
5414
5415ECHO_C= ECHO_N= ECHO_T=
5416case `echo -n x` in
5417-n*)
5418  case `echo 'x\c'` in
5419  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5420  *)   ECHO_C='\c';;
5421  esac;;
5422*)
5423  ECHO_N='-n';;
5424esac
5425
5426if expr a : '\(a\)' >/dev/null 2>&1 &&
5427   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5428  as_expr=expr
5429else
5430  as_expr=false
5431fi
5432
5433rm -f conf$$ conf$$.exe conf$$.file
5434if test -d conf$$.dir; then
5435  rm -f conf$$.dir/conf$$.file
5436else
5437  rm -f conf$$.dir
5438  mkdir conf$$.dir
5439fi
5440echo >conf$$.file
5441if ln -s conf$$.file conf$$ 2>/dev/null; then
5442  as_ln_s='ln -s'
5443  # ... but there are two gotchas:
5444  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5445  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5446  # In both cases, we have to default to `cp -p'.
5447  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5448    as_ln_s='cp -p'
5449elif ln conf$$.file conf$$ 2>/dev/null; then
5450  as_ln_s=ln
5451else
5452  as_ln_s='cp -p'
5453fi
5454rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5455rmdir conf$$.dir 2>/dev/null
5456
5457if mkdir -p . 2>/dev/null; then
5458  as_mkdir_p=:
5459else
5460  test -d ./-p && rmdir ./-p
5461  as_mkdir_p=false
5462fi
5463
5464if test -x / >/dev/null 2>&1; then
5465  as_test_x='test -x'
5466else
5467  if ls -dL / >/dev/null 2>&1; then
5468    as_ls_L_option=L
5469  else
5470    as_ls_L_option=
5471  fi
5472  as_test_x='
5473    eval sh -c '\''
5474      if test -d "$1"; then
5475        test -d "$1/.";
5476      else
5477	case $1 in
5478        -*)set "./$1";;
5479	esac;
5480	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5481	???[sx]*):;;*)false;;esac;fi
5482    '\'' sh
5483  '
5484fi
5485as_executable_p=$as_test_x
5486
5487# Sed expression to map a string onto a valid CPP name.
5488as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5489
5490# Sed expression to map a string onto a valid variable name.
5491as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5492
5493
5494exec 6>&1
5495
5496# Save the log message, to keep $[0] and so on meaningful, and to
5497# report actual input values of CONFIG_FILES etc. instead of their
5498# values after options handling.
5499ac_log="
5500This file was extended by $as_me, which was
5501generated by GNU Autoconf 2.61.  Invocation command line was
5502
5503  CONFIG_FILES    = $CONFIG_FILES
5504  CONFIG_HEADERS  = $CONFIG_HEADERS
5505  CONFIG_LINKS    = $CONFIG_LINKS
5506  CONFIG_COMMANDS = $CONFIG_COMMANDS
5507  $ $0 $@
5508
5509on `(hostname || uname -n) 2>/dev/null | sed 1q`
5510"
5511
5512_ACEOF
5513
5514cat >>$CONFIG_STATUS <<_ACEOF
5515# Files that config.status was made for.
5516config_files="$ac_config_files"
5517config_commands="$ac_config_commands"
5518
5519_ACEOF
5520
5521cat >>$CONFIG_STATUS <<\_ACEOF
5522ac_cs_usage="\
5523\`$as_me' instantiates files from templates according to the
5524current configuration.
5525
5526Usage: $0 [OPTIONS] [FILE]...
5527
5528  -h, --help       print this help, then exit
5529  -V, --version    print version number and configuration settings, then exit
5530  -q, --quiet      do not print progress messages
5531  -d, --debug      don't remove temporary files
5532      --recheck    update $as_me by reconfiguring in the same conditions
5533  --file=FILE[:TEMPLATE]
5534		   instantiate the configuration file FILE
5535
5536Configuration files:
5537$config_files
5538
5539Configuration commands:
5540$config_commands
5541
5542Report bugs to <bug-autoconf@gnu.org>."
5543
5544_ACEOF
5545cat >>$CONFIG_STATUS <<_ACEOF
5546ac_cs_version="\\
5547config.status
5548configured by $0, generated by GNU Autoconf 2.61,
5549  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5550
5551Copyright (C) 2006 Free Software Foundation, Inc.
5552This config.status script is free software; the Free Software Foundation
5553gives unlimited permission to copy, distribute and modify it."
5554
5555ac_pwd='$ac_pwd'
5556srcdir='$srcdir'
5557INSTALL='$INSTALL'
5558MKDIR_P='$MKDIR_P'
5559_ACEOF
5560
5561cat >>$CONFIG_STATUS <<\_ACEOF
5562# If no file are specified by the user, then we need to provide default
5563# value.  By we need to know if files were specified by the user.
5564ac_need_defaults=:
5565while test $# != 0
5566do
5567  case $1 in
5568  --*=*)
5569    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5570    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5571    ac_shift=:
5572    ;;
5573  *)
5574    ac_option=$1
5575    ac_optarg=$2
5576    ac_shift=shift
5577    ;;
5578  esac
5579
5580  case $ac_option in
5581  # Handling of the options.
5582  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5583    ac_cs_recheck=: ;;
5584  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5585    echo "$ac_cs_version"; exit ;;
5586  --debug | --debu | --deb | --de | --d | -d )
5587    debug=: ;;
5588  --file | --fil | --fi | --f )
5589    $ac_shift
5590    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5591    ac_need_defaults=false;;
5592  --he | --h |  --help | --hel | -h )
5593    echo "$ac_cs_usage"; exit ;;
5594  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5595  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5596    ac_cs_silent=: ;;
5597
5598  # This is an error.
5599  -*) { echo "$as_me: error: unrecognized option: $1
5600Try \`$0 --help' for more information." >&2
5601   { (exit 1); exit 1; }; } ;;
5602
5603  *) ac_config_targets="$ac_config_targets $1"
5604     ac_need_defaults=false ;;
5605
5606  esac
5607  shift
5608done
5609
5610ac_configure_extra_args=
5611
5612if $ac_cs_silent; then
5613  exec 6>/dev/null
5614  ac_configure_extra_args="$ac_configure_extra_args --silent"
5615fi
5616
5617_ACEOF
5618cat >>$CONFIG_STATUS <<_ACEOF
5619if \$ac_cs_recheck; then
5620  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5621  CONFIG_SHELL=$SHELL
5622  export CONFIG_SHELL
5623  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5624fi
5625
5626_ACEOF
5627cat >>$CONFIG_STATUS <<\_ACEOF
5628exec 5>>config.log
5629{
5630  echo
5631  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5632## Running $as_me. ##
5633_ASBOX
5634  echo "$ac_log"
5635} >&5
5636
5637_ACEOF
5638cat >>$CONFIG_STATUS <<_ACEOF
5639#
5640# INIT-COMMANDS
5641#
5642AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5643
5644_ACEOF
5645
5646cat >>$CONFIG_STATUS <<\_ACEOF
5647
5648# Handling of arguments.
5649for ac_config_target in $ac_config_targets
5650do
5651  case $ac_config_target in
5652    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5653    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5654    "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
5655    "images/Makefile") CONFIG_FILES="$CONFIG_FILES images/Makefile" ;;
5656
5657  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5658echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5659   { (exit 1); exit 1; }; };;
5660  esac
5661done
5662
5663
5664# If the user did not use the arguments to specify the items to instantiate,
5665# then the envvar interface is used.  Set only those that are not.
5666# We use the long form for the default assignment because of an extremely
5667# bizarre bug on SunOS 4.1.3.
5668if $ac_need_defaults; then
5669  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5670  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5671fi
5672
5673# Have a temporary directory for convenience.  Make it in the build tree
5674# simply because there is no reason against having it here, and in addition,
5675# creating and moving files from /tmp can sometimes cause problems.
5676# Hook for its removal unless debugging.
5677# Note that there is a small window in which the directory will not be cleaned:
5678# after its creation but before its name has been assigned to `$tmp'.
5679$debug ||
5680{
5681  tmp=
5682  trap 'exit_status=$?
5683  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5684' 0
5685  trap '{ (exit 1); exit 1; }' 1 2 13 15
5686}
5687# Create a (secure) tmp directory for tmp files.
5688
5689{
5690  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5691  test -n "$tmp" && test -d "$tmp"
5692}  ||
5693{
5694  tmp=./conf$$-$RANDOM
5695  (umask 077 && mkdir "$tmp")
5696} ||
5697{
5698   echo "$me: cannot create a temporary directory in ." >&2
5699   { (exit 1); exit 1; }
5700}
5701
5702#
5703# Set up the sed scripts for CONFIG_FILES section.
5704#
5705
5706# No need to generate the scripts if there are no CONFIG_FILES.
5707# This happens for instance when ./config.status config.h
5708if test -n "$CONFIG_FILES"; then
5709
5710_ACEOF
5711
5712
5713
5714ac_delim='%!_!# '
5715for ac_last_try in false false false false false :; do
5716  cat >conf$$subs.sed <<_ACEOF
5717SHELL!$SHELL$ac_delim
5718PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5719PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5720PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5721PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5722PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5723PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5724exec_prefix!$exec_prefix$ac_delim
5725prefix!$prefix$ac_delim
5726program_transform_name!$program_transform_name$ac_delim
5727bindir!$bindir$ac_delim
5728sbindir!$sbindir$ac_delim
5729libexecdir!$libexecdir$ac_delim
5730datarootdir!$datarootdir$ac_delim
5731datadir!$datadir$ac_delim
5732sysconfdir!$sysconfdir$ac_delim
5733sharedstatedir!$sharedstatedir$ac_delim
5734localstatedir!$localstatedir$ac_delim
5735includedir!$includedir$ac_delim
5736oldincludedir!$oldincludedir$ac_delim
5737docdir!$docdir$ac_delim
5738infodir!$infodir$ac_delim
5739htmldir!$htmldir$ac_delim
5740dvidir!$dvidir$ac_delim
5741pdfdir!$pdfdir$ac_delim
5742psdir!$psdir$ac_delim
5743libdir!$libdir$ac_delim
5744localedir!$localedir$ac_delim
5745mandir!$mandir$ac_delim
5746DEFS!$DEFS$ac_delim
5747ECHO_C!$ECHO_C$ac_delim
5748ECHO_N!$ECHO_N$ac_delim
5749ECHO_T!$ECHO_T$ac_delim
5750LIBS!$LIBS$ac_delim
5751build_alias!$build_alias$ac_delim
5752host_alias!$host_alias$ac_delim
5753target_alias!$target_alias$ac_delim
5754INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5755INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5756INSTALL_DATA!$INSTALL_DATA$ac_delim
5757am__isrc!$am__isrc$ac_delim
5758CYGPATH_W!$CYGPATH_W$ac_delim
5759PACKAGE!$PACKAGE$ac_delim
5760VERSION!$VERSION$ac_delim
5761ACLOCAL!$ACLOCAL$ac_delim
5762AUTOCONF!$AUTOCONF$ac_delim
5763AUTOMAKE!$AUTOMAKE$ac_delim
5764AUTOHEADER!$AUTOHEADER$ac_delim
5765MAKEINFO!$MAKEINFO$ac_delim
5766install_sh!$install_sh$ac_delim
5767STRIP!$STRIP$ac_delim
5768INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
5769mkdir_p!$mkdir_p$ac_delim
5770AWK!$AWK$ac_delim
5771SET_MAKE!$SET_MAKE$ac_delim
5772am__leading_dot!$am__leading_dot$ac_delim
5773AMTAR!$AMTAR$ac_delim
5774am__tar!$am__tar$ac_delim
5775am__untar!$am__untar$ac_delim
5776CC!$CC$ac_delim
5777CFLAGS!$CFLAGS$ac_delim
5778LDFLAGS!$LDFLAGS$ac_delim
5779CPPFLAGS!$CPPFLAGS$ac_delim
5780ac_ct_CC!$ac_ct_CC$ac_delim
5781EXEEXT!$EXEEXT$ac_delim
5782OBJEXT!$OBJEXT$ac_delim
5783DEPDIR!$DEPDIR$ac_delim
5784am__include!$am__include$ac_delim
5785am__quote!$am__quote$ac_delim
5786AMDEP_TRUE!$AMDEP_TRUE$ac_delim
5787AMDEP_FALSE!$AMDEP_FALSE$ac_delim
5788AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
5789CCDEPMODE!$CCDEPMODE$ac_delim
5790am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
5791am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
5792XMKMF!$XMKMF$ac_delim
5793CPP!$CPP$ac_delim
5794X_CFLAGS!$X_CFLAGS$ac_delim
5795X_PRE_LIBS!$X_PRE_LIBS$ac_delim
5796X_LIBS!$X_LIBS$ac_delim
5797X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
5798PKG_CONFIG!$PKG_CONFIG$ac_delim
5799IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
5800IMLIB2_LIBS!$IMLIB2_LIBS$ac_delim
5801PIXMAP_PATH!$PIXMAP_PATH$ac_delim
5802LIBOBJS!$LIBOBJS$ac_delim
5803LTLIBOBJS!$LTLIBOBJS$ac_delim
5804_ACEOF
5805
5806  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
5807    break
5808  elif $ac_last_try; then
5809    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5810echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5811   { (exit 1); exit 1; }; }
5812  else
5813    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5814  fi
5815done
5816
5817ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5818if test -n "$ac_eof"; then
5819  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5820  ac_eof=`expr $ac_eof + 1`
5821fi
5822
5823cat >>$CONFIG_STATUS <<_ACEOF
5824cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5825/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5826_ACEOF
5827sed '
5828s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5829s/^/s,@/; s/!/@,|#_!!_#|/
5830:n
5831t n
5832s/'"$ac_delim"'$/,g/; t
5833s/$/\\/; p
5834N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5835' >>$CONFIG_STATUS <conf$$subs.sed
5836rm -f conf$$subs.sed
5837cat >>$CONFIG_STATUS <<_ACEOF
5838:end
5839s/|#_!!_#|//g
5840CEOF$ac_eof
5841_ACEOF
5842
5843
5844# VPATH may cause trouble with some makes, so we remove $(srcdir),
5845# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5846# trailing colons and then remove the whole line if VPATH becomes empty
5847# (actually we leave an empty line to preserve line numbers).
5848if test "x$srcdir" = x.; then
5849  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5850s/:*\$(srcdir):*/:/
5851s/:*\${srcdir}:*/:/
5852s/:*@srcdir@:*/:/
5853s/^\([^=]*=[	 ]*\):*/\1/
5854s/:*$//
5855s/^[^=]*=[	 ]*$//
5856}'
5857fi
5858
5859cat >>$CONFIG_STATUS <<\_ACEOF
5860fi # test -n "$CONFIG_FILES"
5861
5862
5863for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
5864do
5865  case $ac_tag in
5866  :[FHLC]) ac_mode=$ac_tag; continue;;
5867  esac
5868  case $ac_mode$ac_tag in
5869  :[FHL]*:*);;
5870  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5871echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5872   { (exit 1); exit 1; }; };;
5873  :[FH]-) ac_tag=-:-;;
5874  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5875  esac
5876  ac_save_IFS=$IFS
5877  IFS=:
5878  set x $ac_tag
5879  IFS=$ac_save_IFS
5880  shift
5881  ac_file=$1
5882  shift
5883
5884  case $ac_mode in
5885  :L) ac_source=$1;;
5886  :[FH])
5887    ac_file_inputs=
5888    for ac_f
5889    do
5890      case $ac_f in
5891      -) ac_f="$tmp/stdin";;
5892      *) # Look for the file first in the build tree, then in the source tree
5893	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5894	 # because $ac_f cannot contain `:'.
5895	 test -f "$ac_f" ||
5896	   case $ac_f in
5897	   [\\/$]*) false;;
5898	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5899	   esac ||
5900	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5901echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5902   { (exit 1); exit 1; }; };;
5903      esac
5904      ac_file_inputs="$ac_file_inputs $ac_f"
5905    done
5906
5907    # Let's still pretend it is `configure' which instantiates (i.e., don't
5908    # use $as_me), people would be surprised to read:
5909    #    /* config.h.  Generated by config.status.  */
5910    configure_input="Generated from "`IFS=:
5911	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5912    if test x"$ac_file" != x-; then
5913      configure_input="$ac_file.  $configure_input"
5914      { echo "$as_me:$LINENO: creating $ac_file" >&5
5915echo "$as_me: creating $ac_file" >&6;}
5916    fi
5917
5918    case $ac_tag in
5919    *:-:* | *:-) cat >"$tmp/stdin";;
5920    esac
5921    ;;
5922  esac
5923
5924  ac_dir=`$as_dirname -- "$ac_file" ||
5925$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5926	 X"$ac_file" : 'X\(//\)[^/]' \| \
5927	 X"$ac_file" : 'X\(//\)$' \| \
5928	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5929echo X"$ac_file" |
5930    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5931	    s//\1/
5932	    q
5933	  }
5934	  /^X\(\/\/\)[^/].*/{
5935	    s//\1/
5936	    q
5937	  }
5938	  /^X\(\/\/\)$/{
5939	    s//\1/
5940	    q
5941	  }
5942	  /^X\(\/\).*/{
5943	    s//\1/
5944	    q
5945	  }
5946	  s/.*/./; q'`
5947  { as_dir="$ac_dir"
5948  case $as_dir in #(
5949  -*) as_dir=./$as_dir;;
5950  esac
5951  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5952    as_dirs=
5953    while :; do
5954      case $as_dir in #(
5955      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5956      *) as_qdir=$as_dir;;
5957      esac
5958      as_dirs="'$as_qdir' $as_dirs"
5959      as_dir=`$as_dirname -- "$as_dir" ||
5960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5961	 X"$as_dir" : 'X\(//\)[^/]' \| \
5962	 X"$as_dir" : 'X\(//\)$' \| \
5963	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5964echo X"$as_dir" |
5965    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5966	    s//\1/
5967	    q
5968	  }
5969	  /^X\(\/\/\)[^/].*/{
5970	    s//\1/
5971	    q
5972	  }
5973	  /^X\(\/\/\)$/{
5974	    s//\1/
5975	    q
5976	  }
5977	  /^X\(\/\).*/{
5978	    s//\1/
5979	    q
5980	  }
5981	  s/.*/./; q'`
5982      test -d "$as_dir" && break
5983    done
5984    test -z "$as_dirs" || eval "mkdir $as_dirs"
5985  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5986echo "$as_me: error: cannot create directory $as_dir" >&2;}
5987   { (exit 1); exit 1; }; }; }
5988  ac_builddir=.
5989
5990case "$ac_dir" in
5991.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5992*)
5993  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5994  # A ".." for each directory in $ac_dir_suffix.
5995  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5996  case $ac_top_builddir_sub in
5997  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5998  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5999  esac ;;
6000esac
6001ac_abs_top_builddir=$ac_pwd
6002ac_abs_builddir=$ac_pwd$ac_dir_suffix
6003# for backward compatibility:
6004ac_top_builddir=$ac_top_build_prefix
6005
6006case $srcdir in
6007  .)  # We are building in place.
6008    ac_srcdir=.
6009    ac_top_srcdir=$ac_top_builddir_sub
6010    ac_abs_top_srcdir=$ac_pwd ;;
6011  [\\/]* | ?:[\\/]* )  # Absolute name.
6012    ac_srcdir=$srcdir$ac_dir_suffix;
6013    ac_top_srcdir=$srcdir
6014    ac_abs_top_srcdir=$srcdir ;;
6015  *) # Relative name.
6016    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6017    ac_top_srcdir=$ac_top_build_prefix$srcdir
6018    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6019esac
6020ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6021
6022
6023  case $ac_mode in
6024  :F)
6025  #
6026  # CONFIG_FILE
6027  #
6028
6029  case $INSTALL in
6030  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6031  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6032  esac
6033  ac_MKDIR_P=$MKDIR_P
6034  case $MKDIR_P in
6035  [\\/$]* | ?:[\\/]* ) ;;
6036  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6037  esac
6038_ACEOF
6039
6040cat >>$CONFIG_STATUS <<\_ACEOF
6041# If the template does not know about datarootdir, expand it.
6042# FIXME: This hack should be removed a few years after 2.60.
6043ac_datarootdir_hack=; ac_datarootdir_seen=
6044
6045case `sed -n '/datarootdir/ {
6046  p
6047  q
6048}
6049/@datadir@/p
6050/@docdir@/p
6051/@infodir@/p
6052/@localedir@/p
6053/@mandir@/p
6054' $ac_file_inputs` in
6055*datarootdir*) ac_datarootdir_seen=yes;;
6056*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6057  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6058echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6059_ACEOF
6060cat >>$CONFIG_STATUS <<_ACEOF
6061  ac_datarootdir_hack='
6062  s&@datadir@&$datadir&g
6063  s&@docdir@&$docdir&g
6064  s&@infodir@&$infodir&g
6065  s&@localedir@&$localedir&g
6066  s&@mandir@&$mandir&g
6067    s&\\\${datarootdir}&$datarootdir&g' ;;
6068esac
6069_ACEOF
6070
6071# Neutralize VPATH when `$srcdir' = `.'.
6072# Shell code in configure.ac might set extrasub.
6073# FIXME: do we really want to maintain this feature?
6074cat >>$CONFIG_STATUS <<_ACEOF
6075  sed "$ac_vpsub
6076$extrasub
6077_ACEOF
6078cat >>$CONFIG_STATUS <<\_ACEOF
6079:t
6080/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6081s&@configure_input@&$configure_input&;t t
6082s&@top_builddir@&$ac_top_builddir_sub&;t t
6083s&@srcdir@&$ac_srcdir&;t t
6084s&@abs_srcdir@&$ac_abs_srcdir&;t t
6085s&@top_srcdir@&$ac_top_srcdir&;t t
6086s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6087s&@builddir@&$ac_builddir&;t t
6088s&@abs_builddir@&$ac_abs_builddir&;t t
6089s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6090s&@INSTALL@&$ac_INSTALL&;t t
6091s&@MKDIR_P@&$ac_MKDIR_P&;t t
6092$ac_datarootdir_hack
6093" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6094
6095test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6096  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6097  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6098  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6099which seems to be undefined.  Please make sure it is defined." >&5
6100echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6101which seems to be undefined.  Please make sure it is defined." >&2;}
6102
6103  rm -f "$tmp/stdin"
6104  case $ac_file in
6105  -) cat "$tmp/out"; rm -f "$tmp/out";;
6106  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6107  esac
6108 ;;
6109
6110
6111  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
6112echo "$as_me: executing $ac_file commands" >&6;}
6113 ;;
6114  esac
6115
6116
6117  case $ac_file$ac_mode in
6118    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6119  # Strip MF so we end up with the name of the file.
6120  mf=`echo "$mf" | sed -e 's/:.*$//'`
6121  # Check whether this is an Automake generated Makefile or not.
6122  # We used to match only the files named `Makefile.in', but
6123  # some people rename them; so instead we look at the file content.
6124  # Grep'ing the first line is not enough: some people post-process
6125  # each Makefile.in and add a new line on top of each file to say so.
6126  # Grep'ing the whole file is not good either: AIX grep has a line
6127  # limit of 2048, but all sed's we know have understand at least 4000.
6128  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6129    dirpart=`$as_dirname -- "$mf" ||
6130$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6131	 X"$mf" : 'X\(//\)[^/]' \| \
6132	 X"$mf" : 'X\(//\)$' \| \
6133	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6134echo X"$mf" |
6135    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6136	    s//\1/
6137	    q
6138	  }
6139	  /^X\(\/\/\)[^/].*/{
6140	    s//\1/
6141	    q
6142	  }
6143	  /^X\(\/\/\)$/{
6144	    s//\1/
6145	    q
6146	  }
6147	  /^X\(\/\).*/{
6148	    s//\1/
6149	    q
6150	  }
6151	  s/.*/./; q'`
6152  else
6153    continue
6154  fi
6155  # Extract the definition of DEPDIR, am__include, and am__quote
6156  # from the Makefile without running `make'.
6157  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6158  test -z "$DEPDIR" && continue
6159  am__include=`sed -n 's/^am__include = //p' < "$mf"`
6160  test -z "am__include" && continue
6161  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6162  # When using ansi2knr, U may be empty or an underscore; expand it
6163  U=`sed -n 's/^U = //p' < "$mf"`
6164  # Find all dependency output files, they are included files with
6165  # $(DEPDIR) in their names.  We invoke sed twice because it is the
6166  # simplest approach to changing $(DEPDIR) to its actual value in the
6167  # expansion.
6168  for file in `sed -n "
6169    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6170       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6171    # Make sure the directory exists.
6172    test -f "$dirpart/$file" && continue
6173    fdir=`$as_dirname -- "$file" ||
6174$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6175	 X"$file" : 'X\(//\)[^/]' \| \
6176	 X"$file" : 'X\(//\)$' \| \
6177	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6178echo X"$file" |
6179    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6180	    s//\1/
6181	    q
6182	  }
6183	  /^X\(\/\/\)[^/].*/{
6184	    s//\1/
6185	    q
6186	  }
6187	  /^X\(\/\/\)$/{
6188	    s//\1/
6189	    q
6190	  }
6191	  /^X\(\/\).*/{
6192	    s//\1/
6193	    q
6194	  }
6195	  s/.*/./; q'`
6196    { as_dir=$dirpart/$fdir
6197  case $as_dir in #(
6198  -*) as_dir=./$as_dir;;
6199  esac
6200  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6201    as_dirs=
6202    while :; do
6203      case $as_dir in #(
6204      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6205      *) as_qdir=$as_dir;;
6206      esac
6207      as_dirs="'$as_qdir' $as_dirs"
6208      as_dir=`$as_dirname -- "$as_dir" ||
6209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6210	 X"$as_dir" : 'X\(//\)[^/]' \| \
6211	 X"$as_dir" : 'X\(//\)$' \| \
6212	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6213echo X"$as_dir" |
6214    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6215	    s//\1/
6216	    q
6217	  }
6218	  /^X\(\/\/\)[^/].*/{
6219	    s//\1/
6220	    q
6221	  }
6222	  /^X\(\/\/\)$/{
6223	    s//\1/
6224	    q
6225	  }
6226	  /^X\(\/\).*/{
6227	    s//\1/
6228	    q
6229	  }
6230	  s/.*/./; q'`
6231      test -d "$as_dir" && break
6232    done
6233    test -z "$as_dirs" || eval "mkdir $as_dirs"
6234  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6235echo "$as_me: error: cannot create directory $as_dir" >&2;}
6236   { (exit 1); exit 1; }; }; }
6237    # echo "creating $dirpart/$file"
6238    echo '# dummy' > "$dirpart/$file"
6239  done
6240done
6241 ;;
6242
6243  esac
6244done # for ac_tag
6245
6246
6247{ (exit 0); exit 0; }
6248_ACEOF
6249chmod +x $CONFIG_STATUS
6250ac_clean_files=$ac_clean_files_save
6251
6252
6253# configure is writing to config.log, and then calls config.status.
6254# config.status does its own redirection, appending to config.log.
6255# Unfortunately, on DOS this fails, as config.log is still kept open
6256# by configure, so config.status won't be able to write to it; its
6257# output is simply discarded.  So we exec the FD to /dev/null,
6258# effectively closing config.log, so it can be properly (re)opened and
6259# appended to by config.status.  When coming back to configure, we
6260# need to make the FD available again.
6261if test "$no_create" != yes; then
6262  ac_cs_success=:
6263  ac_config_status_args=
6264  test "$silent" = yes &&
6265    ac_config_status_args="$ac_config_status_args --quiet"
6266  exec 5>/dev/null
6267  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6268  exec 5>>config.log
6269  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6270  # would make configure fail if this is the last instruction.
6271  $ac_cs_success || { (exit 1); exit 1; }
6272fi
6273
6274