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