configure revision 1.9
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13 
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --enable-shared[=PKGS]  build shared libraries [default=yes]"
16ac_help="$ac_help
17  --enable-static[=PKGS]  build static libraries [default=yes]"
18ac_help="$ac_help
19  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
20ac_help="$ac_help
21  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help
23  --disable-libtool-lock  avoid locking (might break parallel builds)"
24ac_help="$ac_help
25  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
26ac_help="$ac_help
27  --disable-nls           do not use Native Language Support"
28ac_help="$ac_help
29  --with-included-gettext use the GNU gettext library included here"
30ac_help="$ac_help
31  --enable-maintainer-mode enable make rules and dependencies not useful
32                          (and sometimes confusing) to the casual installer"
33ac_help="$ac_help
34  --enable-build-warnings Enable build-time compiler warnings if gcc is used"
35
36# Initialize some variables set by options.
37# The variables have the same names as the options, with
38# dashes changed to underlines.
39build=NONE
40cache_file=./config.cache
41exec_prefix=NONE
42host=NONE
43no_create=
44nonopt=NONE
45no_recursion=
46prefix=NONE
47program_prefix=NONE
48program_suffix=NONE
49program_transform_name=s,x,x,
50silent=
51site=
52srcdir=
53target=NONE
54verbose=
55x_includes=NONE
56x_libraries=NONE
57bindir='${exec_prefix}/bin'
58sbindir='${exec_prefix}/sbin'
59libexecdir='${exec_prefix}/libexec'
60datadir='${prefix}/share'
61sysconfdir='${prefix}/etc'
62sharedstatedir='${prefix}/com'
63localstatedir='${prefix}/var'
64libdir='${exec_prefix}/lib'
65includedir='${prefix}/include'
66oldincludedir='/usr/include'
67infodir='${prefix}/info'
68mandir='${prefix}/man'
69
70# Initialize some other variables.
71subdirs=
72MFLAGS= MAKEFLAGS=
73SHELL=${CONFIG_SHELL-/bin/sh}
74# Maximum number of lines to put in a shell here document.
75ac_max_here_lines=12
76
77ac_prev=
78for ac_option
79do
80
81  # If the previous option needs an argument, assign it.
82  if test -n "$ac_prev"; then
83    eval "$ac_prev=\$ac_option"
84    ac_prev=
85    continue
86  fi
87
88  case "$ac_option" in
89  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90  *) ac_optarg= ;;
91  esac
92
93  # Accept the important Cygnus configure options, so we can diagnose typos.
94
95  case "$ac_option" in
96
97  -bindir | --bindir | --bindi | --bind | --bin | --bi)
98    ac_prev=bindir ;;
99  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100    bindir="$ac_optarg" ;;
101
102  -build | --build | --buil | --bui | --bu)
103    ac_prev=build ;;
104  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105    build="$ac_optarg" ;;
106
107  -cache-file | --cache-file | --cache-fil | --cache-fi \
108  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109    ac_prev=cache_file ;;
110  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112    cache_file="$ac_optarg" ;;
113
114  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115    ac_prev=datadir ;;
116  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117  | --da=*)
118    datadir="$ac_optarg" ;;
119
120  -disable-* | --disable-*)
121    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122    # Reject names that are not valid shell variable names.
123    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125    fi
126    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127    eval "enable_${ac_feature}=no" ;;
128
129  -enable-* | --enable-*)
130    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131    # Reject names that are not valid shell variable names.
132    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134    fi
135    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136    case "$ac_option" in
137      *=*) ;;
138      *) ac_optarg=yes ;;
139    esac
140    eval "enable_${ac_feature}='$ac_optarg'" ;;
141
142  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144  | --exec | --exe | --ex)
145    ac_prev=exec_prefix ;;
146  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148  | --exec=* | --exe=* | --ex=*)
149    exec_prefix="$ac_optarg" ;;
150
151  -gas | --gas | --ga | --g)
152    # Obsolete; use --with-gas.
153    with_gas=yes ;;
154
155  -help | --help | --hel | --he)
156    # Omit some internal or obsolete options to make the list less imposing.
157    # This message is too long to be a string in the A/UX 3.1 sh.
158    cat << EOF
159Usage: configure [options] [host]
160Options: [defaults in brackets after descriptions]
161Configuration:
162  --cache-file=FILE       cache test results in FILE
163  --help                  print this message
164  --no-create             do not create output files
165  --quiet, --silent       do not print \`checking...' messages
166  --version               print the version of autoconf that created configure
167Directory and file names:
168  --prefix=PREFIX         install architecture-independent files in PREFIX
169                          [$ac_default_prefix]
170  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
171                          [same as prefix]
172  --bindir=DIR            user executables in DIR [EPREFIX/bin]
173  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
174  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
175  --datadir=DIR           read-only architecture-independent data in DIR
176                          [PREFIX/share]
177  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
178  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
179                          [PREFIX/com]
180  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
181  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
182  --includedir=DIR        C header files in DIR [PREFIX/include]
183  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
184  --infodir=DIR           info documentation in DIR [PREFIX/info]
185  --mandir=DIR            man documentation in DIR [PREFIX/man]
186  --srcdir=DIR            find the sources in DIR [configure dir or ..]
187  --program-prefix=PREFIX prepend PREFIX to installed program names
188  --program-suffix=SUFFIX append SUFFIX to installed program names
189  --program-transform-name=PROGRAM
190                          run sed PROGRAM on installed program names
191EOF
192    cat << EOF
193Host type:
194  --build=BUILD           configure for building on BUILD [BUILD=HOST]
195  --host=HOST             configure for HOST [guessed]
196  --target=TARGET         configure for TARGET [TARGET=HOST]
197Features and packages:
198  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
199  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
200  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
201  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
202  --x-includes=DIR        X include files are in DIR
203  --x-libraries=DIR       X library files are in DIR
204EOF
205    if test -n "$ac_help"; then
206      echo "--enable and --with options recognized:$ac_help"
207    fi
208    exit 0 ;;
209
210  -host | --host | --hos | --ho)
211    ac_prev=host ;;
212  -host=* | --host=* | --hos=* | --ho=*)
213    host="$ac_optarg" ;;
214
215  -includedir | --includedir | --includedi | --included | --include \
216  | --includ | --inclu | --incl | --inc)
217    ac_prev=includedir ;;
218  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219  | --includ=* | --inclu=* | --incl=* | --inc=*)
220    includedir="$ac_optarg" ;;
221
222  -infodir | --infodir | --infodi | --infod | --info | --inf)
223    ac_prev=infodir ;;
224  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225    infodir="$ac_optarg" ;;
226
227  -libdir | --libdir | --libdi | --libd)
228    ac_prev=libdir ;;
229  -libdir=* | --libdir=* | --libdi=* | --libd=*)
230    libdir="$ac_optarg" ;;
231
232  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233  | --libexe | --libex | --libe)
234    ac_prev=libexecdir ;;
235  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236  | --libexe=* | --libex=* | --libe=*)
237    libexecdir="$ac_optarg" ;;
238
239  -localstatedir | --localstatedir | --localstatedi | --localstated \
240  | --localstate | --localstat | --localsta | --localst \
241  | --locals | --local | --loca | --loc | --lo)
242    ac_prev=localstatedir ;;
243  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246    localstatedir="$ac_optarg" ;;
247
248  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249    ac_prev=mandir ;;
250  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251    mandir="$ac_optarg" ;;
252
253  -nfp | --nfp | --nf)
254    # Obsolete; use --without-fp.
255    with_fp=no ;;
256
257  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258  | --no-cr | --no-c)
259    no_create=yes ;;
260
261  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263    no_recursion=yes ;;
264
265  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267  | --oldin | --oldi | --old | --ol | --o)
268    ac_prev=oldincludedir ;;
269  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272    oldincludedir="$ac_optarg" ;;
273
274  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275    ac_prev=prefix ;;
276  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277    prefix="$ac_optarg" ;;
278
279  -program-prefix | --program-prefix | --program-prefi | --program-pref \
280  | --program-pre | --program-pr | --program-p)
281    ac_prev=program_prefix ;;
282  -program-prefix=* | --program-prefix=* | --program-prefi=* \
283  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284    program_prefix="$ac_optarg" ;;
285
286  -program-suffix | --program-suffix | --program-suffi | --program-suff \
287  | --program-suf | --program-su | --program-s)
288    ac_prev=program_suffix ;;
289  -program-suffix=* | --program-suffix=* | --program-suffi=* \
290  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291    program_suffix="$ac_optarg" ;;
292
293  -program-transform-name | --program-transform-name \
294  | --program-transform-nam | --program-transform-na \
295  | --program-transform-n | --program-transform- \
296  | --program-transform | --program-transfor \
297  | --program-transfo | --program-transf \
298  | --program-trans | --program-tran \
299  | --progr-tra | --program-tr | --program-t)
300    ac_prev=program_transform_name ;;
301  -program-transform-name=* | --program-transform-name=* \
302  | --program-transform-nam=* | --program-transform-na=* \
303  | --program-transform-n=* | --program-transform-=* \
304  | --program-transform=* | --program-transfor=* \
305  | --program-transfo=* | --program-transf=* \
306  | --program-trans=* | --program-tran=* \
307  | --progr-tra=* | --program-tr=* | --program-t=*)
308    program_transform_name="$ac_optarg" ;;
309
310  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311  | -silent | --silent | --silen | --sile | --sil)
312    silent=yes ;;
313
314  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315    ac_prev=sbindir ;;
316  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317  | --sbi=* | --sb=*)
318    sbindir="$ac_optarg" ;;
319
320  -sharedstatedir | --sharedstatedir | --sharedstatedi \
321  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322  | --sharedst | --shareds | --shared | --share | --shar \
323  | --sha | --sh)
324    ac_prev=sharedstatedir ;;
325  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328  | --sha=* | --sh=*)
329    sharedstatedir="$ac_optarg" ;;
330
331  -site | --site | --sit)
332    ac_prev=site ;;
333  -site=* | --site=* | --sit=*)
334    site="$ac_optarg" ;;
335
336  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337    ac_prev=srcdir ;;
338  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339    srcdir="$ac_optarg" ;;
340
341  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342  | --syscon | --sysco | --sysc | --sys | --sy)
343    ac_prev=sysconfdir ;;
344  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346    sysconfdir="$ac_optarg" ;;
347
348  -target | --target | --targe | --targ | --tar | --ta | --t)
349    ac_prev=target ;;
350  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351    target="$ac_optarg" ;;
352
353  -v | -verbose | --verbose | --verbos | --verbo | --verb)
354    verbose=yes ;;
355
356  -version | --version | --versio | --versi | --vers)
357    echo "configure generated by autoconf version 2.13"
358    exit 0 ;;
359
360  -with-* | --with-*)
361    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362    # Reject names that are not valid shell variable names.
363    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365    fi
366    ac_package=`echo $ac_package| sed 's/-/_/g'`
367    case "$ac_option" in
368      *=*) ;;
369      *) ac_optarg=yes ;;
370    esac
371    eval "with_${ac_package}='$ac_optarg'" ;;
372
373  -without-* | --without-*)
374    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375    # Reject names that are not valid shell variable names.
376    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378    fi
379    ac_package=`echo $ac_package| sed 's/-/_/g'`
380    eval "with_${ac_package}=no" ;;
381
382  --x)
383    # Obsolete; use --with-x.
384    with_x=yes ;;
385
386  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387  | --x-incl | --x-inc | --x-in | --x-i)
388    ac_prev=x_includes ;;
389  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391    x_includes="$ac_optarg" ;;
392
393  -x-libraries | --x-libraries | --x-librarie | --x-librari \
394  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395    ac_prev=x_libraries ;;
396  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398    x_libraries="$ac_optarg" ;;
399
400  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401    ;;
402
403  *)
404    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405      echo "configure: warning: $ac_option: invalid host type" 1>&2
406    fi
407    if test "x$nonopt" != xNONE; then
408      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409    fi
410    nonopt="$ac_option"
411    ;;
412
413  esac
414done
415
416if test -n "$ac_prev"; then
417  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418fi
419
420trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421
422# File descriptor usage:
423# 0 standard input
424# 1 file creation
425# 2 errors and warnings
426# 3 some systems may open it to /dev/tty
427# 4 used on the Kubota Titan
428# 6 checking for... messages and results
429# 5 compiler messages saved in config.log
430if test "$silent" = yes; then
431  exec 6>/dev/null
432else
433  exec 6>&1
434fi
435exec 5>./config.log
436
437echo "\
438This file contains any messages produced by compilers while
439running configure, to aid debugging if configure makes a mistake.
440" 1>&5
441
442# Strip out --no-create and --no-recursion so they do not pile up.
443# Also quote any args containing shell metacharacters.
444ac_configure_args=
445for ac_arg
446do
447  case "$ac_arg" in
448  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449  | --no-cr | --no-c) ;;
450  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455  esac
456done
457
458# NLS nuisances.
459# Only set these to C if already set.  These must not be set unconditionally
460# because not all systems understand e.g. LANG=C (notably SCO).
461# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462# Non-C LC_CTYPE values break the ctype check.
463if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
464if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
467
468# confdefs.h avoids OS command line length limits that DEFS can exceed.
469rm -rf conftest* confdefs.h
470# AIX cpp loses on an empty file, so make sure it contains at least a newline.
471echo > confdefs.h
472
473# A filename unique to this package, relative to the directory that
474# configure is in, which we can look for to find out if srcdir is correct.
475ac_unique_file=gprof.c
476
477# Find the source files, if location was not specified.
478if test -z "$srcdir"; then
479  ac_srcdir_defaulted=yes
480  # Try the directory containing this script, then its parent.
481  ac_prog=$0
482  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484  srcdir=$ac_confdir
485  if test ! -r $srcdir/$ac_unique_file; then
486    srcdir=..
487  fi
488else
489  ac_srcdir_defaulted=no
490fi
491if test ! -r $srcdir/$ac_unique_file; then
492  if test "$ac_srcdir_defaulted" = yes; then
493    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494  else
495    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496  fi
497fi
498srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499
500# Prefer explicitly selected file to automatically selected ones.
501if test -z "$CONFIG_SITE"; then
502  if test "x$prefix" != xNONE; then
503    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504  else
505    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506  fi
507fi
508for ac_site_file in $CONFIG_SITE; do
509  if test -r "$ac_site_file"; then
510    echo "loading site script $ac_site_file"
511    . "$ac_site_file"
512  fi
513done
514
515if test -r "$cache_file"; then
516  echo "loading cache $cache_file"
517  . $cache_file
518else
519  echo "creating cache $cache_file"
520  > $cache_file
521fi
522
523ac_ext=c
524# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525ac_cpp='$CPP $CPPFLAGS'
526ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528cross_compiling=$ac_cv_prog_cc_cross
529
530ac_exeext=
531ac_objext=o
532if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535    ac_n= ac_c='
536' ac_t='	'
537  else
538    ac_n=-n ac_c= ac_t=
539  fi
540else
541  ac_n= ac_c='\c' ac_t=
542fi
543
544echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
545echo "configure:546: checking for Cygwin environment" >&5
546if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
547  echo $ac_n "(cached) $ac_c" 1>&6
548else
549  cat > conftest.$ac_ext <<EOF
550#line 551 "configure"
551#include "confdefs.h"
552
553int main() {
554
555#ifndef __CYGWIN__
556#define __CYGWIN__ __CYGWIN32__
557#endif
558return __CYGWIN__;
559; return 0; }
560EOF
561if { (eval echo configure:562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
562  rm -rf conftest*
563  ac_cv_cygwin=yes
564else
565  echo "configure: failed program was:" >&5
566  cat conftest.$ac_ext >&5
567  rm -rf conftest*
568  ac_cv_cygwin=no
569fi
570rm -f conftest*
571rm -f conftest*
572fi
573
574echo "$ac_t""$ac_cv_cygwin" 1>&6
575CYGWIN=
576test "$ac_cv_cygwin" = yes && CYGWIN=yes
577echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
578echo "configure:579: checking for mingw32 environment" >&5
579if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
580  echo $ac_n "(cached) $ac_c" 1>&6
581else
582  cat > conftest.$ac_ext <<EOF
583#line 584 "configure"
584#include "confdefs.h"
585
586int main() {
587return __MINGW32__;
588; return 0; }
589EOF
590if { (eval echo configure:591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
591  rm -rf conftest*
592  ac_cv_mingw32=yes
593else
594  echo "configure: failed program was:" >&5
595  cat conftest.$ac_ext >&5
596  rm -rf conftest*
597  ac_cv_mingw32=no
598fi
599rm -f conftest*
600rm -f conftest*
601fi
602
603echo "$ac_t""$ac_cv_mingw32" 1>&6
604MINGW32=
605test "$ac_cv_mingw32" = yes && MINGW32=yes
606
607
608ac_aux_dir=
609for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
610  if test -f $ac_dir/install-sh; then
611    ac_aux_dir=$ac_dir
612    ac_install_sh="$ac_aux_dir/install-sh -c"
613    break
614  elif test -f $ac_dir/install.sh; then
615    ac_aux_dir=$ac_dir
616    ac_install_sh="$ac_aux_dir/install.sh -c"
617    break
618  fi
619done
620if test -z "$ac_aux_dir"; then
621  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
622fi
623ac_config_guess=$ac_aux_dir/config.guess
624ac_config_sub=$ac_aux_dir/config.sub
625ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
626
627
628# Do some error checking and defaulting for the host and target type.
629# The inputs are:
630#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
631#
632# The rules are:
633# 1. You are not allowed to specify --host, --target, and nonopt at the
634#    same time.
635# 2. Host defaults to nonopt.
636# 3. If nonopt is not specified, then host defaults to the current host,
637#    as determined by config.guess.
638# 4. Target and build default to nonopt.
639# 5. If nonopt is not specified, then target and build default to host.
640
641# The aliases save the names the user supplied, while $host etc.
642# will get canonicalized.
643case $host---$target---$nonopt in
644NONE---*---* | *---NONE---* | *---*---NONE) ;;
645*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
646esac
647
648
649# Make sure we can run config.sub.
650if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
651else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
652fi
653
654echo $ac_n "checking host system type""... $ac_c" 1>&6
655echo "configure:656: checking host system type" >&5
656
657host_alias=$host
658case "$host_alias" in
659NONE)
660  case $nonopt in
661  NONE)
662    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
663    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
664    fi ;;
665  *) host_alias=$nonopt ;;
666  esac ;;
667esac
668
669host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
670host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
673echo "$ac_t""$host" 1>&6
674
675echo $ac_n "checking target system type""... $ac_c" 1>&6
676echo "configure:677: checking target system type" >&5
677
678target_alias=$target
679case "$target_alias" in
680NONE)
681  case $nonopt in
682  NONE) target_alias=$host_alias ;;
683  *) target_alias=$nonopt ;;
684  esac ;;
685esac
686
687target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
688target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
689target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
690target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
691echo "$ac_t""$target" 1>&6
692
693echo $ac_n "checking build system type""... $ac_c" 1>&6
694echo "configure:695: checking build system type" >&5
695
696build_alias=$build
697case "$build_alias" in
698NONE)
699  case $nonopt in
700  NONE) build_alias=$host_alias ;;
701  *) build_alias=$nonopt ;;
702  esac ;;
703esac
704
705build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
706build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709echo "$ac_t""$build" 1>&6
710
711test "$host_alias" != "$target_alias" &&
712  test "$program_prefix$program_suffix$program_transform_name" = \
713    NONENONEs,x,x, &&
714  program_prefix=${target_alias}-
715
716# Extract the first word of "gcc", so it can be a program name with args.
717set dummy gcc; ac_word=$2
718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
719echo "configure:720: checking for $ac_word" >&5
720if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
721  echo $ac_n "(cached) $ac_c" 1>&6
722else
723  if test -n "$CC"; then
724  ac_cv_prog_CC="$CC" # Let the user override the test.
725else
726  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
727  ac_dummy="$PATH"
728  for ac_dir in $ac_dummy; do
729    test -z "$ac_dir" && ac_dir=.
730    if test -f $ac_dir/$ac_word; then
731      ac_cv_prog_CC="gcc"
732      break
733    fi
734  done
735  IFS="$ac_save_ifs"
736fi
737fi
738CC="$ac_cv_prog_CC"
739if test -n "$CC"; then
740  echo "$ac_t""$CC" 1>&6
741else
742  echo "$ac_t""no" 1>&6
743fi
744
745if test -z "$CC"; then
746  # Extract the first word of "cc", so it can be a program name with args.
747set dummy cc; ac_word=$2
748echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
749echo "configure:750: checking for $ac_word" >&5
750if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
751  echo $ac_n "(cached) $ac_c" 1>&6
752else
753  if test -n "$CC"; then
754  ac_cv_prog_CC="$CC" # Let the user override the test.
755else
756  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
757  ac_prog_rejected=no
758  ac_dummy="$PATH"
759  for ac_dir in $ac_dummy; do
760    test -z "$ac_dir" && ac_dir=.
761    if test -f $ac_dir/$ac_word; then
762      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
763        ac_prog_rejected=yes
764	continue
765      fi
766      ac_cv_prog_CC="cc"
767      break
768    fi
769  done
770  IFS="$ac_save_ifs"
771if test $ac_prog_rejected = yes; then
772  # We found a bogon in the path, so make sure we never use it.
773  set dummy $ac_cv_prog_CC
774  shift
775  if test $# -gt 0; then
776    # We chose a different compiler from the bogus one.
777    # However, it has the same basename, so the bogon will be chosen
778    # first if we set CC to just the basename; use the full file name.
779    shift
780    set dummy "$ac_dir/$ac_word" "$@"
781    shift
782    ac_cv_prog_CC="$@"
783  fi
784fi
785fi
786fi
787CC="$ac_cv_prog_CC"
788if test -n "$CC"; then
789  echo "$ac_t""$CC" 1>&6
790else
791  echo "$ac_t""no" 1>&6
792fi
793
794  if test -z "$CC"; then
795    case "`uname -s`" in
796    *win32* | *WIN32*)
797      # Extract the first word of "cl", so it can be a program name with args.
798set dummy cl; ac_word=$2
799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
800echo "configure:801: checking for $ac_word" >&5
801if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
802  echo $ac_n "(cached) $ac_c" 1>&6
803else
804  if test -n "$CC"; then
805  ac_cv_prog_CC="$CC" # Let the user override the test.
806else
807  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
808  ac_dummy="$PATH"
809  for ac_dir in $ac_dummy; do
810    test -z "$ac_dir" && ac_dir=.
811    if test -f $ac_dir/$ac_word; then
812      ac_cv_prog_CC="cl"
813      break
814    fi
815  done
816  IFS="$ac_save_ifs"
817fi
818fi
819CC="$ac_cv_prog_CC"
820if test -n "$CC"; then
821  echo "$ac_t""$CC" 1>&6
822else
823  echo "$ac_t""no" 1>&6
824fi
825 ;;
826    esac
827  fi
828  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
829fi
830
831echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
832echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
833
834ac_ext=c
835# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
836ac_cpp='$CPP $CPPFLAGS'
837ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
838ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
839cross_compiling=$ac_cv_prog_cc_cross
840
841cat > conftest.$ac_ext << EOF
842
843#line 844 "configure"
844#include "confdefs.h"
845
846main(){return(0);}
847EOF
848if { (eval echo configure:849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
849  ac_cv_prog_cc_works=yes
850  # If we can't run a trivial program, we are probably using a cross compiler.
851  if (./conftest; exit) 2>/dev/null; then
852    ac_cv_prog_cc_cross=no
853  else
854    ac_cv_prog_cc_cross=yes
855  fi
856else
857  echo "configure: failed program was:" >&5
858  cat conftest.$ac_ext >&5
859  ac_cv_prog_cc_works=no
860fi
861rm -fr conftest*
862ac_ext=c
863# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864ac_cpp='$CPP $CPPFLAGS'
865ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867cross_compiling=$ac_cv_prog_cc_cross
868
869echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
870if test $ac_cv_prog_cc_works = no; then
871  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
872fi
873echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
874echo "configure:875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
875echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
876cross_compiling=$ac_cv_prog_cc_cross
877
878echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
879echo "configure:880: checking whether we are using GNU C" >&5
880if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
881  echo $ac_n "(cached) $ac_c" 1>&6
882else
883  cat > conftest.c <<EOF
884#ifdef __GNUC__
885  yes;
886#endif
887EOF
888if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
889  ac_cv_prog_gcc=yes
890else
891  ac_cv_prog_gcc=no
892fi
893fi
894
895echo "$ac_t""$ac_cv_prog_gcc" 1>&6
896
897if test $ac_cv_prog_gcc = yes; then
898  GCC=yes
899else
900  GCC=
901fi
902
903ac_test_CFLAGS="${CFLAGS+set}"
904ac_save_CFLAGS="$CFLAGS"
905CFLAGS=
906echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
907echo "configure:908: checking whether ${CC-cc} accepts -g" >&5
908if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
909  echo $ac_n "(cached) $ac_c" 1>&6
910else
911  echo 'void f(){}' > conftest.c
912if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
913  ac_cv_prog_cc_g=yes
914else
915  ac_cv_prog_cc_g=no
916fi
917rm -f conftest*
918
919fi
920
921echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
922if test "$ac_test_CFLAGS" = set; then
923  CFLAGS="$ac_save_CFLAGS"
924elif test $ac_cv_prog_cc_g = yes; then
925  if test "$GCC" = yes; then
926    CFLAGS="-g -O2"
927  else
928    CFLAGS="-g"
929  fi
930else
931  if test "$GCC" = yes; then
932    CFLAGS="-O2"
933  else
934    CFLAGS=
935  fi
936fi
937
938echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
939echo "configure:940: checking for POSIXized ISC" >&5
940if test -d /etc/conf/kconfig.d &&
941  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
942then
943  echo "$ac_t""yes" 1>&6
944  ISC=yes # If later tests want to check for ISC.
945  cat >> confdefs.h <<\EOF
946#define _POSIX_SOURCE 1
947EOF
948
949  if test "$GCC" = yes; then
950    CC="$CC -posix"
951  else
952    CC="$CC -Xp"
953  fi
954else
955  echo "$ac_t""no" 1>&6
956  ISC=
957fi
958
959
960BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ 	]*\([^ 	]*\)[ 	]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
961# Find a good install program.  We prefer a C program (faster),
962# so one script is as good as another.  But avoid the broken or
963# incompatible versions:
964# SysV /etc/install, /usr/sbin/install
965# SunOS /usr/etc/install
966# IRIX /sbin/install
967# AIX /bin/install
968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
969# AFS /usr/afsws/bin/install, which mishandles nonexistent args
970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
971# ./install, which can be erroneously created by make from ./install.sh.
972echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
973echo "configure:974: checking for a BSD compatible install" >&5
974if test -z "$INSTALL"; then
975if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
976  echo $ac_n "(cached) $ac_c" 1>&6
977else
978    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
979  for ac_dir in $PATH; do
980    # Account for people who put trailing slashes in PATH elements.
981    case "$ac_dir/" in
982    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
983    *)
984      # OSF1 and SCO ODT 3.0 have their own names for install.
985      # Don't use installbsd from OSF since it installs stuff as root
986      # by default.
987      for ac_prog in ginstall scoinst install; do
988        if test -f $ac_dir/$ac_prog; then
989	  if test $ac_prog = install &&
990            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
991	    # AIX install.  It has an incompatible calling convention.
992	    :
993	  else
994	    ac_cv_path_install="$ac_dir/$ac_prog -c"
995	    break 2
996	  fi
997	fi
998      done
999      ;;
1000    esac
1001  done
1002  IFS="$ac_save_IFS"
1003
1004fi
1005  if test "${ac_cv_path_install+set}" = set; then
1006    INSTALL="$ac_cv_path_install"
1007  else
1008    # As a last resort, use the slow shell script.  We don't cache a
1009    # path for INSTALL within a source directory, because that will
1010    # break other packages using the cache if that directory is
1011    # removed, or if the path is relative.
1012    INSTALL="$ac_install_sh"
1013  fi
1014fi
1015echo "$ac_t""$INSTALL" 1>&6
1016
1017# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1018# It thinks the first close brace ends the variable substitution.
1019test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1020
1021test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1022
1023test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1024
1025echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1026echo "configure:1027: checking whether build environment is sane" >&5
1027# Just in case
1028sleep 1
1029echo timestamp > conftestfile
1030# Do `set' in a subshell so we don't clobber the current shell's
1031# arguments.  Must try -L first in case configure is actually a
1032# symlink; some systems play weird games with the mod time of symlinks
1033# (eg FreeBSD returns the mod time of the symlink's containing
1034# directory).
1035if (
1036   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1037   if test "$*" = "X"; then
1038      # -L didn't work.
1039      set X `ls -t $srcdir/configure conftestfile`
1040   fi
1041   if test "$*" != "X $srcdir/configure conftestfile" \
1042      && test "$*" != "X conftestfile $srcdir/configure"; then
1043
1044      # If neither matched, then we have a broken ls.  This can happen
1045      # if, for instance, CONFIG_SHELL is bash and it inherits a
1046      # broken ls alias from the environment.  This has actually
1047      # happened.  Such a system could not be considered "sane".
1048      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1049alias in your environment" 1>&2; exit 1; }
1050   fi
1051
1052   test "$2" = conftestfile
1053   )
1054then
1055   # Ok.
1056   :
1057else
1058   { echo "configure: error: newly created file is older than distributed files!
1059Check your system clock" 1>&2; exit 1; }
1060fi
1061rm -f conftest*
1062echo "$ac_t""yes" 1>&6
1063if test "$program_transform_name" = s,x,x,; then
1064  program_transform_name=
1065else
1066  # Double any \ or $.  echo might interpret backslashes.
1067  cat <<\EOF_SED > conftestsed
1068s,\\,\\\\,g; s,\$,$$,g
1069EOF_SED
1070  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1071  rm -f conftestsed
1072fi
1073test "$program_prefix" != NONE &&
1074  program_transform_name="s,^,${program_prefix},; $program_transform_name"
1075# Use a double $ so make ignores it.
1076test "$program_suffix" != NONE &&
1077  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1078
1079# sed with no file args requires a program.
1080test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1081
1082echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1083echo "configure:1084: checking whether ${MAKE-make} sets \${MAKE}" >&5
1084set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1085if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1086  echo $ac_n "(cached) $ac_c" 1>&6
1087else
1088  cat > conftestmake <<\EOF
1089all:
1090	@echo 'ac_maketemp="${MAKE}"'
1091EOF
1092# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1093eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1094if test -n "$ac_maketemp"; then
1095  eval ac_cv_prog_make_${ac_make}_set=yes
1096else
1097  eval ac_cv_prog_make_${ac_make}_set=no
1098fi
1099rm -f conftestmake
1100fi
1101if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1102  echo "$ac_t""yes" 1>&6
1103  SET_MAKE=
1104else
1105  echo "$ac_t""no" 1>&6
1106  SET_MAKE="MAKE=${MAKE-make}"
1107fi
1108
1109
1110PACKAGE=gprof
1111
1112VERSION=${BFD_VERSION}
1113
1114if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1115  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1116fi
1117cat >> confdefs.h <<EOF
1118#define PACKAGE "$PACKAGE"
1119EOF
1120
1121cat >> confdefs.h <<EOF
1122#define VERSION "$VERSION"
1123EOF
1124
1125
1126
1127missing_dir=`cd $ac_aux_dir && pwd`
1128echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1129echo "configure:1130: checking for working aclocal" >&5
1130# Run test in a subshell; some versions of sh will print an error if
1131# an executable is not found, even if stderr is redirected.
1132# Redirect stdin to placate older versions of autoconf.  Sigh.
1133if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1134   ACLOCAL=aclocal
1135   echo "$ac_t""found" 1>&6
1136else
1137   ACLOCAL="$missing_dir/missing aclocal"
1138   echo "$ac_t""missing" 1>&6
1139fi
1140
1141echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1142echo "configure:1143: checking for working autoconf" >&5
1143# Run test in a subshell; some versions of sh will print an error if
1144# an executable is not found, even if stderr is redirected.
1145# Redirect stdin to placate older versions of autoconf.  Sigh.
1146if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1147   AUTOCONF=autoconf
1148   echo "$ac_t""found" 1>&6
1149else
1150   AUTOCONF="$missing_dir/missing autoconf"
1151   echo "$ac_t""missing" 1>&6
1152fi
1153
1154echo $ac_n "checking for working automake""... $ac_c" 1>&6
1155echo "configure:1156: checking for working automake" >&5
1156# Run test in a subshell; some versions of sh will print an error if
1157# an executable is not found, even if stderr is redirected.
1158# Redirect stdin to placate older versions of autoconf.  Sigh.
1159if (automake --version) < /dev/null > /dev/null 2>&1; then
1160   AUTOMAKE=automake
1161   echo "$ac_t""found" 1>&6
1162else
1163   AUTOMAKE="$missing_dir/missing automake"
1164   echo "$ac_t""missing" 1>&6
1165fi
1166
1167echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1168echo "configure:1169: checking for working autoheader" >&5
1169# Run test in a subshell; some versions of sh will print an error if
1170# an executable is not found, even if stderr is redirected.
1171# Redirect stdin to placate older versions of autoconf.  Sigh.
1172if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1173   AUTOHEADER=autoheader
1174   echo "$ac_t""found" 1>&6
1175else
1176   AUTOHEADER="$missing_dir/missing autoheader"
1177   echo "$ac_t""missing" 1>&6
1178fi
1179
1180echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1181echo "configure:1182: checking for working makeinfo" >&5
1182# Run test in a subshell; some versions of sh will print an error if
1183# an executable is not found, even if stderr is redirected.
1184# Redirect stdin to placate older versions of autoconf.  Sigh.
1185if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1186   MAKEINFO=makeinfo
1187   echo "$ac_t""found" 1>&6
1188else
1189   MAKEINFO="$missing_dir/missing makeinfo"
1190   echo "$ac_t""missing" 1>&6
1191fi
1192
1193
1194
1195# Check whether --enable-shared or --disable-shared was given.
1196if test "${enable_shared+set}" = set; then
1197  enableval="$enable_shared"
1198  p=${PACKAGE-default}
1199case $enableval in
1200yes) enable_shared=yes ;;
1201no) enable_shared=no ;;
1202*)
1203  enable_shared=no
1204  # Look at the argument we got.  We use all the common list separators.
1205  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1206  for pkg in $enableval; do
1207    if test "X$pkg" = "X$p"; then
1208      enable_shared=yes
1209    fi
1210  done
1211  IFS="$ac_save_ifs"
1212  ;;
1213esac
1214else
1215  enable_shared=yes
1216fi
1217
1218# Check whether --enable-static or --disable-static was given.
1219if test "${enable_static+set}" = set; then
1220  enableval="$enable_static"
1221  p=${PACKAGE-default}
1222case $enableval in
1223yes) enable_static=yes ;;
1224no) enable_static=no ;;
1225*)
1226  enable_static=no
1227  # Look at the argument we got.  We use all the common list separators.
1228  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1229  for pkg in $enableval; do
1230    if test "X$pkg" = "X$p"; then
1231      enable_static=yes
1232    fi
1233  done
1234  IFS="$ac_save_ifs"
1235  ;;
1236esac
1237else
1238  enable_static=yes
1239fi
1240
1241# Check whether --enable-fast-install or --disable-fast-install was given.
1242if test "${enable_fast_install+set}" = set; then
1243  enableval="$enable_fast_install"
1244  p=${PACKAGE-default}
1245case $enableval in
1246yes) enable_fast_install=yes ;;
1247no) enable_fast_install=no ;;
1248*)
1249  enable_fast_install=no
1250  # Look at the argument we got.  We use all the common list separators.
1251  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1252  for pkg in $enableval; do
1253    if test "X$pkg" = "X$p"; then
1254      enable_fast_install=yes
1255    fi
1256  done
1257  IFS="$ac_save_ifs"
1258  ;;
1259esac
1260else
1261  enable_fast_install=yes
1262fi
1263
1264# Check whether --with-gnu-ld or --without-gnu-ld was given.
1265if test "${with_gnu_ld+set}" = set; then
1266  withval="$with_gnu_ld"
1267  test "$withval" = no || with_gnu_ld=yes
1268else
1269  with_gnu_ld=no
1270fi
1271
1272ac_prog=ld
1273if test "$GCC" = yes; then
1274  # Check if gcc -print-prog-name=ld gives a path.
1275  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1276echo "configure:1277: checking for ld used by GCC" >&5
1277  case $host in
1278  *-*-mingw*)
1279    # gcc leaves a trailing carriage return which upsets mingw
1280    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1281  *)
1282    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1283  esac
1284  case $ac_prog in
1285    # Accept absolute paths.
1286    [\\/]* | [A-Za-z]:[\\/]*)
1287      re_direlt='/[^/][^/]*/\.\./'
1288      # Canonicalize the path of ld
1289      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1290      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1291	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1292      done
1293      test -z "$LD" && LD="$ac_prog"
1294      ;;
1295  "")
1296    # If it fails, then pretend we aren't using GCC.
1297    ac_prog=ld
1298    ;;
1299  *)
1300    # If it is relative, then search for the first ld in PATH.
1301    with_gnu_ld=unknown
1302    ;;
1303  esac
1304elif test "$with_gnu_ld" = yes; then
1305  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1306echo "configure:1307: checking for GNU ld" >&5
1307else
1308  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1309echo "configure:1310: checking for non-GNU ld" >&5
1310fi
1311if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1312  echo $ac_n "(cached) $ac_c" 1>&6
1313else
1314  if test -z "$LD"; then
1315  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1316  for ac_dir in $PATH; do
1317    test -z "$ac_dir" && ac_dir=.
1318    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1319      lt_cv_path_LD="$ac_dir/$ac_prog"
1320      # Check to see if the program is GNU ld.  I'd rather use --version,
1321      # but apparently some GNU ld's only accept -v.
1322      # Break only if it was the GNU/non-GNU ld that we prefer.
1323      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1324	test "$with_gnu_ld" != no && break
1325      else
1326	test "$with_gnu_ld" != yes && break
1327      fi
1328    fi
1329  done
1330  IFS="$ac_save_ifs"
1331else
1332  lt_cv_path_LD="$LD" # Let the user override the test with a path.
1333fi
1334fi
1335
1336LD="$lt_cv_path_LD"
1337if test -n "$LD"; then
1338  echo "$ac_t""$LD" 1>&6
1339else
1340  echo "$ac_t""no" 1>&6
1341fi
1342test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1343echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1344echo "configure:1345: checking if the linker ($LD) is GNU ld" >&5
1345if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1346  echo $ac_n "(cached) $ac_c" 1>&6
1347else
1348  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1349if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1350  lt_cv_prog_gnu_ld=yes
1351else
1352  lt_cv_prog_gnu_ld=no
1353fi
1354fi
1355
1356echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1357with_gnu_ld=$lt_cv_prog_gnu_ld
1358
1359
1360echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1361echo "configure:1362: checking for $LD option to reload object files" >&5
1362if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1363  echo $ac_n "(cached) $ac_c" 1>&6
1364else
1365  lt_cv_ld_reload_flag='-r'
1366fi
1367
1368echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1369reload_flag=$lt_cv_ld_reload_flag
1370test -n "$reload_flag" && reload_flag=" $reload_flag"
1371
1372echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1373echo "configure:1374: checking for BSD-compatible nm" >&5
1374if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1375  echo $ac_n "(cached) $ac_c" 1>&6
1376else
1377  if test -n "$NM"; then
1378  # Let the user override the test.
1379  lt_cv_path_NM="$NM"
1380else
1381  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1382  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1383    test -z "$ac_dir" && ac_dir=.
1384    tmp_nm=$ac_dir/${ac_tool_prefix}nm
1385    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1386      # Check to see if the nm accepts a BSD-compat flag.
1387      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1388      #   nm: unknown option "B" ignored
1389      # Tru64's nm complains that /dev/null is an invalid object file
1390      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1391	lt_cv_path_NM="$tmp_nm -B"
1392	break
1393      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1394	lt_cv_path_NM="$tmp_nm -p"
1395	break
1396      else
1397	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1398	continue # so that we can try to find one that supports BSD flags
1399      fi
1400    fi
1401  done
1402  IFS="$ac_save_ifs"
1403  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1404fi
1405fi
1406
1407NM="$lt_cv_path_NM"
1408echo "$ac_t""$NM" 1>&6
1409
1410echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1411echo "configure:1412: checking whether ln -s works" >&5
1412if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1413  echo $ac_n "(cached) $ac_c" 1>&6
1414else
1415  rm -f conftestdata
1416if ln -s X conftestdata 2>/dev/null
1417then
1418  rm -f conftestdata
1419  ac_cv_prog_LN_S="ln -s"
1420else
1421  ac_cv_prog_LN_S=ln
1422fi
1423fi
1424LN_S="$ac_cv_prog_LN_S"
1425if test "$ac_cv_prog_LN_S" = "ln -s"; then
1426  echo "$ac_t""yes" 1>&6
1427else
1428  echo "$ac_t""no" 1>&6
1429fi
1430
1431echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1432echo "configure:1433: checking how to recognise dependant libraries" >&5
1433if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1434  echo $ac_n "(cached) $ac_c" 1>&6
1435else
1436  lt_cv_file_magic_cmd='$MAGIC_CMD'
1437lt_cv_file_magic_test_file=
1438lt_cv_deplibs_check_method='unknown'
1439# Need to set the preceding variable on all platforms that support
1440# interlibrary dependencies.
1441# 'none' -- dependencies not supported.
1442# `unknown' -- same as none, but documents that we really don't know.
1443# 'pass_all' -- all dependencies passed with no checks.
1444# 'test_compile' -- check by making test program.
1445# 'file_magic [regex]' -- check by looking for files in library path
1446# which responds to the $file_magic_cmd with a given egrep regex.
1447# If you have `file' or equivalent on your system and you're not sure
1448# whether `pass_all' will *always* work, you probably want this one.
1449
1450case $host_os in
1451aix*)
1452  lt_cv_deplibs_check_method=pass_all
1453  ;;
1454
1455beos*)
1456  lt_cv_deplibs_check_method=pass_all
1457  ;;
1458
1459bsdi4*)
1460  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1461  lt_cv_file_magic_cmd='/usr/bin/file -L'
1462  lt_cv_file_magic_test_file=/shlib/libc.so
1463  ;;
1464
1465cygwin* | mingw* |pw32*)
1466  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1467  lt_cv_file_magic_cmd='$OBJDUMP -f'
1468  ;;
1469
1470darwin* | rhapsody*)
1471  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1472  lt_cv_file_magic_cmd='/usr/bin/file -L'
1473  case "$host_os" in
1474  rhapsody* | darwin1.012)
1475    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1476    ;;
1477  *) # Darwin 1.3 on
1478    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1479    ;;
1480  esac
1481  ;;
1482
1483freebsd* )
1484  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1485    case $host_cpu in
1486    i*86 )
1487      # Not sure whether the presence of OpenBSD here was a mistake.
1488      # Let's accept both of them until this is cleared up.
1489      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1490      lt_cv_file_magic_cmd=/usr/bin/file
1491      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1492      ;;
1493    esac
1494  else
1495    lt_cv_deplibs_check_method=pass_all
1496  fi
1497  ;;
1498
1499gnu*)
1500  lt_cv_deplibs_check_method=pass_all
1501  ;;
1502
1503hpux10.20*|hpux11*)
1504  case $host_cpu in
1505  hppa*)
1506    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1507    lt_cv_file_magic_cmd=/usr/bin/file
1508    lt_cv_file_magic_test_file=/usr/lib/libc.sl
1509    ;;
1510  ia64*)
1511    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1512    lt_cv_file_magic_cmd=/usr/bin/file
1513    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1514    ;;
1515  esac
1516  ;;
1517
1518irix5* | irix6*)
1519  case $host_os in
1520  irix5*)
1521    # this will be overridden with pass_all, but let us keep it just in case
1522    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1523    ;;
1524  *)
1525    case $LD in
1526    *-32|*"-32 ") libmagic=32-bit;;
1527    *-n32|*"-n32 ") libmagic=N32;;
1528    *-64|*"-64 ") libmagic=64-bit;;
1529    *) libmagic=never-match;;
1530    esac
1531    # this will be overridden with pass_all, but let us keep it just in case
1532    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1533    ;;
1534  esac
1535  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1536  lt_cv_deplibs_check_method=pass_all
1537  ;;
1538
1539# This must be Linux ELF.
1540linux-gnu*)
1541  case $host_cpu in
1542  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1543    lt_cv_deplibs_check_method=pass_all ;;
1544  *)
1545    # glibc up to 2.1.1 does not perform some relocations on ARM
1546    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1547  esac
1548  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1549  ;;
1550
1551netbsd*)
1552  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1553    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1554  else
1555    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1556  fi
1557  ;;
1558
1559newsos6)
1560  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1561  lt_cv_file_magic_cmd=/usr/bin/file
1562  lt_cv_file_magic_test_file=/usr/lib/libnls.so
1563  ;;
1564
1565osf3* | osf4* | osf5*)
1566  # this will be overridden with pass_all, but let us keep it just in case
1567  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1568  lt_cv_file_magic_test_file=/shlib/libc.so
1569  lt_cv_deplibs_check_method=pass_all
1570  ;;
1571
1572sco3.2v5*)
1573  lt_cv_deplibs_check_method=pass_all
1574  ;;
1575
1576solaris*)
1577  lt_cv_deplibs_check_method=pass_all
1578  lt_cv_file_magic_test_file=/lib/libc.so
1579  ;;
1580
1581sysv5uw[78]* | sysv4*uw2*)
1582  lt_cv_deplibs_check_method=pass_all
1583  ;;
1584
1585sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1586  case $host_vendor in
1587  ncr)
1588    lt_cv_deplibs_check_method=pass_all
1589    ;;
1590  motorola)
1591    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1592    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1593    ;;
1594  esac
1595  ;;
1596esac
1597
1598fi
1599
1600echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1601file_magic_cmd=$lt_cv_file_magic_cmd
1602deplibs_check_method=$lt_cv_deplibs_check_method
1603
1604echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1605echo "configure:1606: checking for object suffix" >&5
1606if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1607  echo $ac_n "(cached) $ac_c" 1>&6
1608else
1609  rm -f conftest*
1610echo 'int i = 1;' > conftest.$ac_ext
1611if { (eval echo configure:1612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1612  for ac_file in conftest.*; do
1613    case $ac_file in
1614    *.c) ;;
1615    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1616    esac
1617  done
1618else
1619  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1620fi
1621rm -f conftest*
1622fi
1623
1624echo "$ac_t""$ac_cv_objext" 1>&6
1625OBJEXT=$ac_cv_objext
1626ac_objext=$ac_cv_objext
1627
1628
1629
1630echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1631echo "configure:1632: checking for executable suffix" >&5
1632if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1633  echo $ac_n "(cached) $ac_c" 1>&6
1634else
1635  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1636  ac_cv_exeext=.exe
1637else
1638  rm -f conftest*
1639  echo 'int main () { return 0; }' > conftest.$ac_ext
1640  ac_cv_exeext=
1641  if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1642    for file in conftest.*; do
1643      case $file in
1644      *.c | *.o | *.obj) ;;
1645      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1646      esac
1647    done
1648  else
1649    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1650  fi
1651  rm -f conftest*
1652  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1653fi
1654fi
1655
1656EXEEXT=""
1657test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1658echo "$ac_t""${ac_cv_exeext}" 1>&6
1659ac_exeext=$EXEEXT
1660
1661if test $host != $build; then
1662  ac_tool_prefix=${host_alias}-
1663else
1664  ac_tool_prefix=
1665fi
1666
1667# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1668
1669# Only perform the check for file, if the check method requires it
1670case $deplibs_check_method in
1671file_magic*)
1672  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1673    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1674echo "configure:1675: checking for ${ac_tool_prefix}file" >&5
1675if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1676  echo $ac_n "(cached) $ac_c" 1>&6
1677else
1678  case $MAGIC_CMD in
1679  /*)
1680  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1681  ;;
1682  ?:/*)
1683  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1684  ;;
1685  *)
1686  ac_save_MAGIC_CMD="$MAGIC_CMD"
1687  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1688  ac_dummy="/usr/bin:$PATH"
1689  for ac_dir in $ac_dummy; do
1690    test -z "$ac_dir" && ac_dir=.
1691    if test -f $ac_dir/${ac_tool_prefix}file; then
1692      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1693      if test -n "$file_magic_test_file"; then
1694	case $deplibs_check_method in
1695	"file_magic "*)
1696	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1697	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1698	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1699	    egrep "$file_magic_regex" > /dev/null; then
1700	    :
1701	  else
1702	    cat <<EOF 1>&2
1703
1704*** Warning: the command libtool uses to detect shared libraries,
1705*** $file_magic_cmd, produces output that libtool cannot recognize.
1706*** The result is that libtool may fail to recognize shared libraries
1707*** as such.  This will affect the creation of libtool libraries that
1708*** depend on shared libraries, but programs linked with such libtool
1709*** libraries will work regardless of this problem.  Nevertheless, you
1710*** may want to report the problem to your system manager and/or to
1711*** bug-libtool@gnu.org
1712
1713EOF
1714	  fi ;;
1715	esac
1716      fi
1717      break
1718    fi
1719  done
1720  IFS="$ac_save_ifs"
1721  MAGIC_CMD="$ac_save_MAGIC_CMD"
1722  ;;
1723esac
1724fi
1725
1726MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1727if test -n "$MAGIC_CMD"; then
1728  echo "$ac_t""$MAGIC_CMD" 1>&6
1729else
1730  echo "$ac_t""no" 1>&6
1731fi
1732
1733if test -z "$lt_cv_path_MAGIC_CMD"; then
1734  if test -n "$ac_tool_prefix"; then
1735    echo $ac_n "checking for file""... $ac_c" 1>&6
1736echo "configure:1737: checking for file" >&5
1737if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1738  echo $ac_n "(cached) $ac_c" 1>&6
1739else
1740  case $MAGIC_CMD in
1741  /*)
1742  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1743  ;;
1744  ?:/*)
1745  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1746  ;;
1747  *)
1748  ac_save_MAGIC_CMD="$MAGIC_CMD"
1749  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1750  ac_dummy="/usr/bin:$PATH"
1751  for ac_dir in $ac_dummy; do
1752    test -z "$ac_dir" && ac_dir=.
1753    if test -f $ac_dir/file; then
1754      lt_cv_path_MAGIC_CMD="$ac_dir/file"
1755      if test -n "$file_magic_test_file"; then
1756	case $deplibs_check_method in
1757	"file_magic "*)
1758	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1759	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1760	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1761	    egrep "$file_magic_regex" > /dev/null; then
1762	    :
1763	  else
1764	    cat <<EOF 1>&2
1765
1766*** Warning: the command libtool uses to detect shared libraries,
1767*** $file_magic_cmd, produces output that libtool cannot recognize.
1768*** The result is that libtool may fail to recognize shared libraries
1769*** as such.  This will affect the creation of libtool libraries that
1770*** depend on shared libraries, but programs linked with such libtool
1771*** libraries will work regardless of this problem.  Nevertheless, you
1772*** may want to report the problem to your system manager and/or to
1773*** bug-libtool@gnu.org
1774
1775EOF
1776	  fi ;;
1777	esac
1778      fi
1779      break
1780    fi
1781  done
1782  IFS="$ac_save_ifs"
1783  MAGIC_CMD="$ac_save_MAGIC_CMD"
1784  ;;
1785esac
1786fi
1787
1788MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1789if test -n "$MAGIC_CMD"; then
1790  echo "$ac_t""$MAGIC_CMD" 1>&6
1791else
1792  echo "$ac_t""no" 1>&6
1793fi
1794
1795  else
1796    MAGIC_CMD=:
1797  fi
1798fi
1799
1800  fi
1801  ;;
1802esac
1803
1804# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1805set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1806echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1807echo "configure:1808: checking for $ac_word" >&5
1808if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1809  echo $ac_n "(cached) $ac_c" 1>&6
1810else
1811  if test -n "$RANLIB"; then
1812  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1813else
1814  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1815  ac_dummy="$PATH"
1816  for ac_dir in $ac_dummy; do
1817    test -z "$ac_dir" && ac_dir=.
1818    if test -f $ac_dir/$ac_word; then
1819      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1820      break
1821    fi
1822  done
1823  IFS="$ac_save_ifs"
1824fi
1825fi
1826RANLIB="$ac_cv_prog_RANLIB"
1827if test -n "$RANLIB"; then
1828  echo "$ac_t""$RANLIB" 1>&6
1829else
1830  echo "$ac_t""no" 1>&6
1831fi
1832
1833
1834if test -z "$ac_cv_prog_RANLIB"; then
1835if test -n "$ac_tool_prefix"; then
1836  # Extract the first word of "ranlib", so it can be a program name with args.
1837set dummy ranlib; ac_word=$2
1838echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1839echo "configure:1840: checking for $ac_word" >&5
1840if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1841  echo $ac_n "(cached) $ac_c" 1>&6
1842else
1843  if test -n "$RANLIB"; then
1844  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1845else
1846  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1847  ac_dummy="$PATH"
1848  for ac_dir in $ac_dummy; do
1849    test -z "$ac_dir" && ac_dir=.
1850    if test -f $ac_dir/$ac_word; then
1851      ac_cv_prog_RANLIB="ranlib"
1852      break
1853    fi
1854  done
1855  IFS="$ac_save_ifs"
1856  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1857fi
1858fi
1859RANLIB="$ac_cv_prog_RANLIB"
1860if test -n "$RANLIB"; then
1861  echo "$ac_t""$RANLIB" 1>&6
1862else
1863  echo "$ac_t""no" 1>&6
1864fi
1865
1866else
1867  RANLIB=":"
1868fi
1869fi
1870
1871# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1872set dummy ${ac_tool_prefix}strip; ac_word=$2
1873echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1874echo "configure:1875: checking for $ac_word" >&5
1875if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1876  echo $ac_n "(cached) $ac_c" 1>&6
1877else
1878  if test -n "$STRIP"; then
1879  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1880else
1881  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1882  ac_dummy="$PATH"
1883  for ac_dir in $ac_dummy; do
1884    test -z "$ac_dir" && ac_dir=.
1885    if test -f $ac_dir/$ac_word; then
1886      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1887      break
1888    fi
1889  done
1890  IFS="$ac_save_ifs"
1891fi
1892fi
1893STRIP="$ac_cv_prog_STRIP"
1894if test -n "$STRIP"; then
1895  echo "$ac_t""$STRIP" 1>&6
1896else
1897  echo "$ac_t""no" 1>&6
1898fi
1899
1900
1901if test -z "$ac_cv_prog_STRIP"; then
1902if test -n "$ac_tool_prefix"; then
1903  # Extract the first word of "strip", so it can be a program name with args.
1904set dummy strip; ac_word=$2
1905echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1906echo "configure:1907: checking for $ac_word" >&5
1907if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1908  echo $ac_n "(cached) $ac_c" 1>&6
1909else
1910  if test -n "$STRIP"; then
1911  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1912else
1913  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1914  ac_dummy="$PATH"
1915  for ac_dir in $ac_dummy; do
1916    test -z "$ac_dir" && ac_dir=.
1917    if test -f $ac_dir/$ac_word; then
1918      ac_cv_prog_STRIP="strip"
1919      break
1920    fi
1921  done
1922  IFS="$ac_save_ifs"
1923  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1924fi
1925fi
1926STRIP="$ac_cv_prog_STRIP"
1927if test -n "$STRIP"; then
1928  echo "$ac_t""$STRIP" 1>&6
1929else
1930  echo "$ac_t""no" 1>&6
1931fi
1932
1933else
1934  STRIP=":"
1935fi
1936fi
1937
1938
1939# Check for any special flags to pass to ltconfig.
1940libtool_flags="--cache-file=$cache_file"
1941test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1942test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1943test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1944test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1945test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1946
1947
1948# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1949if test "${enable_libtool_lock+set}" = set; then
1950  enableval="$enable_libtool_lock"
1951  :
1952fi
1953
1954test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1955test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1956
1957# Check whether --with-pic or --without-pic was given.
1958if test "${with_pic+set}" = set; then
1959  withval="$with_pic"
1960  pic_mode="$withval"
1961else
1962  pic_mode=default
1963fi
1964
1965test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1966test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1967
1968# Some flags need to be propagated to the compiler or linker for good
1969# libtool support.
1970case $host in
1971*-*-irix6*)
1972  # Find out which ABI we are using.
1973  echo '#line 1974 "configure"' > conftest.$ac_ext
1974  if { (eval echo configure:1975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1975    case `/usr/bin/file conftest.$ac_objext` in
1976    *32-bit*)
1977      LD="${LD-ld} -32"
1978      ;;
1979    *N32*)
1980      LD="${LD-ld} -n32"
1981      ;;
1982    *64-bit*)
1983      LD="${LD-ld} -64"
1984      ;;
1985    esac
1986  fi
1987  rm -rf conftest*
1988  ;;
1989
1990ia64-*-hpux*)
1991  # Find out which ABI we are using.
1992  echo 'int i;' > conftest.$ac_ext
1993  if { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1994    case "`/usr/bin/file conftest.o`" in
1995    *ELF-32*)
1996      HPUX_IA64_MODE="32"
1997      ;;
1998    *ELF-64*)
1999      HPUX_IA64_MODE="64"
2000      ;;
2001    esac
2002  fi
2003  rm -rf conftest*
2004  ;;
2005
2006*-*-sco3.2v5*)
2007  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2008  SAVE_CFLAGS="$CFLAGS"
2009  CFLAGS="$CFLAGS -belf"
2010  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2011echo "configure:2012: checking whether the C compiler needs -belf" >&5
2012if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2013  echo $ac_n "(cached) $ac_c" 1>&6
2014else
2015  
2016     ac_ext=c
2017# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2018ac_cpp='$CPP $CPPFLAGS'
2019ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2020ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2021cross_compiling=$ac_cv_prog_cc_cross
2022
2023     cat > conftest.$ac_ext <<EOF
2024#line 2025 "configure"
2025#include "confdefs.h"
2026
2027int main() {
2028
2029; return 0; }
2030EOF
2031if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2032  rm -rf conftest*
2033  lt_cv_cc_needs_belf=yes
2034else
2035  echo "configure: failed program was:" >&5
2036  cat conftest.$ac_ext >&5
2037  rm -rf conftest*
2038  lt_cv_cc_needs_belf=no
2039fi
2040rm -f conftest*
2041     ac_ext=c
2042# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2043ac_cpp='$CPP $CPPFLAGS'
2044ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2045ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2046cross_compiling=$ac_cv_prog_cc_cross
2047
2048fi
2049
2050echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2051  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2052    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2053    CFLAGS="$SAVE_CFLAGS"
2054  fi
2055  ;;
2056
2057
2058esac
2059
2060
2061# Save cache, so that ltconfig can load it
2062cat > confcache <<\EOF
2063# This file is a shell script that caches the results of configure
2064# tests run on this system so they can be shared between configure
2065# scripts and configure runs.  It is not useful on other systems.
2066# If it contains results you don't want to keep, you may remove or edit it.
2067#
2068# By default, configure uses ./config.cache as the cache file,
2069# creating it if it does not exist already.  You can give configure
2070# the --cache-file=FILE option to use a different cache file; that is
2071# what configure does when it calls configure scripts in
2072# subdirectories, so they share the cache.
2073# Giving --cache-file=/dev/null disables caching, for debugging configure.
2074# config.status only pays attention to the cache file if you give it the
2075# --recheck option to rerun configure.
2076#
2077EOF
2078# The following way of writing the cache mishandles newlines in values,
2079# but we know of no workaround that is simple, portable, and efficient.
2080# So, don't put newlines in cache variables' values.
2081# Ultrix sh set writes to stderr and can't be redirected directly,
2082# and sets the high bit in the cache file unless we assign to the vars.
2083(set) 2>&1 |
2084  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2085  *ac_space=\ *)
2086    # `set' does not quote correctly, so add quotes (double-quote substitution
2087    # turns \\\\ into \\, and sed turns \\ into \).
2088    sed -n \
2089      -e "s/'/'\\\\''/g" \
2090      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2091    ;;
2092  *)
2093    # `set' quotes correctly as required by POSIX, so do not add quotes.
2094    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2095    ;;
2096  esac >> confcache
2097if cmp -s $cache_file confcache; then
2098  :
2099else
2100  if test -w $cache_file; then
2101    echo "updating cache $cache_file"
2102    cat confcache > $cache_file
2103  else
2104    echo "not updating unwritable cache $cache_file"
2105  fi
2106fi
2107rm -f confcache
2108
2109
2110# Actually configure libtool.  ac_aux_dir is where install-sh is found.
2111AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2112MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2113LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2114AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2115objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2116deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2117${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2118$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2119|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2120
2121# Reload cache, that may have been modified by ltconfig
2122if test -r "$cache_file"; then
2123  echo "loading cache $cache_file"
2124  . $cache_file
2125else
2126  echo "creating cache $cache_file"
2127  > $cache_file
2128fi
2129
2130
2131# This can be used to rebuild libtool when needed
2132LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2133
2134# Always use our own libtool.
2135LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2136
2137# Redirect the config.log output again, so that the ltconfig log is not
2138# clobbered by the next message.
2139exec 5>>./config.log
2140
2141  
2142
2143  
2144	 
2145	 
2146
2147
2148
2149
2150
2151# Extract the first word of "gcc", so it can be a program name with args.
2152set dummy gcc; ac_word=$2
2153echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2154echo "configure:2155: checking for $ac_word" >&5
2155if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2156  echo $ac_n "(cached) $ac_c" 1>&6
2157else
2158  if test -n "$CC"; then
2159  ac_cv_prog_CC="$CC" # Let the user override the test.
2160else
2161  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2162  ac_dummy="$PATH"
2163  for ac_dir in $ac_dummy; do
2164    test -z "$ac_dir" && ac_dir=.
2165    if test -f $ac_dir/$ac_word; then
2166      ac_cv_prog_CC="gcc"
2167      break
2168    fi
2169  done
2170  IFS="$ac_save_ifs"
2171fi
2172fi
2173CC="$ac_cv_prog_CC"
2174if test -n "$CC"; then
2175  echo "$ac_t""$CC" 1>&6
2176else
2177  echo "$ac_t""no" 1>&6
2178fi
2179
2180if test -z "$CC"; then
2181  # Extract the first word of "cc", so it can be a program name with args.
2182set dummy cc; ac_word=$2
2183echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2184echo "configure:2185: checking for $ac_word" >&5
2185if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2186  echo $ac_n "(cached) $ac_c" 1>&6
2187else
2188  if test -n "$CC"; then
2189  ac_cv_prog_CC="$CC" # Let the user override the test.
2190else
2191  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2192  ac_prog_rejected=no
2193  ac_dummy="$PATH"
2194  for ac_dir in $ac_dummy; do
2195    test -z "$ac_dir" && ac_dir=.
2196    if test -f $ac_dir/$ac_word; then
2197      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2198        ac_prog_rejected=yes
2199	continue
2200      fi
2201      ac_cv_prog_CC="cc"
2202      break
2203    fi
2204  done
2205  IFS="$ac_save_ifs"
2206if test $ac_prog_rejected = yes; then
2207  # We found a bogon in the path, so make sure we never use it.
2208  set dummy $ac_cv_prog_CC
2209  shift
2210  if test $# -gt 0; then
2211    # We chose a different compiler from the bogus one.
2212    # However, it has the same basename, so the bogon will be chosen
2213    # first if we set CC to just the basename; use the full file name.
2214    shift
2215    set dummy "$ac_dir/$ac_word" "$@"
2216    shift
2217    ac_cv_prog_CC="$@"
2218  fi
2219fi
2220fi
2221fi
2222CC="$ac_cv_prog_CC"
2223if test -n "$CC"; then
2224  echo "$ac_t""$CC" 1>&6
2225else
2226  echo "$ac_t""no" 1>&6
2227fi
2228
2229  if test -z "$CC"; then
2230    case "`uname -s`" in
2231    *win32* | *WIN32*)
2232      # Extract the first word of "cl", so it can be a program name with args.
2233set dummy cl; ac_word=$2
2234echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2235echo "configure:2236: checking for $ac_word" >&5
2236if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2237  echo $ac_n "(cached) $ac_c" 1>&6
2238else
2239  if test -n "$CC"; then
2240  ac_cv_prog_CC="$CC" # Let the user override the test.
2241else
2242  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2243  ac_dummy="$PATH"
2244  for ac_dir in $ac_dummy; do
2245    test -z "$ac_dir" && ac_dir=.
2246    if test -f $ac_dir/$ac_word; then
2247      ac_cv_prog_CC="cl"
2248      break
2249    fi
2250  done
2251  IFS="$ac_save_ifs"
2252fi
2253fi
2254CC="$ac_cv_prog_CC"
2255if test -n "$CC"; then
2256  echo "$ac_t""$CC" 1>&6
2257else
2258  echo "$ac_t""no" 1>&6
2259fi
2260 ;;
2261    esac
2262  fi
2263  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2264fi
2265
2266echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2267echo "configure:2268: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2268
2269ac_ext=c
2270# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2271ac_cpp='$CPP $CPPFLAGS'
2272ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2273ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2274cross_compiling=$ac_cv_prog_cc_cross
2275
2276cat > conftest.$ac_ext << EOF
2277
2278#line 2279 "configure"
2279#include "confdefs.h"
2280
2281main(){return(0);}
2282EOF
2283if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2284  ac_cv_prog_cc_works=yes
2285  # If we can't run a trivial program, we are probably using a cross compiler.
2286  if (./conftest; exit) 2>/dev/null; then
2287    ac_cv_prog_cc_cross=no
2288  else
2289    ac_cv_prog_cc_cross=yes
2290  fi
2291else
2292  echo "configure: failed program was:" >&5
2293  cat conftest.$ac_ext >&5
2294  ac_cv_prog_cc_works=no
2295fi
2296rm -fr conftest*
2297ac_ext=c
2298# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2299ac_cpp='$CPP $CPPFLAGS'
2300ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2301ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2302cross_compiling=$ac_cv_prog_cc_cross
2303
2304echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2305if test $ac_cv_prog_cc_works = no; then
2306  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2307fi
2308echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2309echo "configure:2310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2310echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2311cross_compiling=$ac_cv_prog_cc_cross
2312
2313echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2314echo "configure:2315: checking whether we are using GNU C" >&5
2315if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2316  echo $ac_n "(cached) $ac_c" 1>&6
2317else
2318  cat > conftest.c <<EOF
2319#ifdef __GNUC__
2320  yes;
2321#endif
2322EOF
2323if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2324  ac_cv_prog_gcc=yes
2325else
2326  ac_cv_prog_gcc=no
2327fi
2328fi
2329
2330echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2331
2332if test $ac_cv_prog_gcc = yes; then
2333  GCC=yes
2334else
2335  GCC=
2336fi
2337
2338ac_test_CFLAGS="${CFLAGS+set}"
2339ac_save_CFLAGS="$CFLAGS"
2340CFLAGS=
2341echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2342echo "configure:2343: checking whether ${CC-cc} accepts -g" >&5
2343if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2344  echo $ac_n "(cached) $ac_c" 1>&6
2345else
2346  echo 'void f(){}' > conftest.c
2347if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2348  ac_cv_prog_cc_g=yes
2349else
2350  ac_cv_prog_cc_g=no
2351fi
2352rm -f conftest*
2353
2354fi
2355
2356echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2357if test "$ac_test_CFLAGS" = set; then
2358  CFLAGS="$ac_save_CFLAGS"
2359elif test $ac_cv_prog_cc_g = yes; then
2360  if test "$GCC" = yes; then
2361    CFLAGS="-g -O2"
2362  else
2363    CFLAGS="-g"
2364  fi
2365else
2366  if test "$GCC" = yes; then
2367    CFLAGS="-O2"
2368  else
2369    CFLAGS=
2370  fi
2371fi
2372
2373# Find a good install program.  We prefer a C program (faster),
2374# so one script is as good as another.  But avoid the broken or
2375# incompatible versions:
2376# SysV /etc/install, /usr/sbin/install
2377# SunOS /usr/etc/install
2378# IRIX /sbin/install
2379# AIX /bin/install
2380# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2381# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2382# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2383# ./install, which can be erroneously created by make from ./install.sh.
2384echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2385echo "configure:2386: checking for a BSD compatible install" >&5
2386if test -z "$INSTALL"; then
2387if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2388  echo $ac_n "(cached) $ac_c" 1>&6
2389else
2390    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
2391  for ac_dir in $PATH; do
2392    # Account for people who put trailing slashes in PATH elements.
2393    case "$ac_dir/" in
2394    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2395    *)
2396      # OSF1 and SCO ODT 3.0 have their own names for install.
2397      # Don't use installbsd from OSF since it installs stuff as root
2398      # by default.
2399      for ac_prog in ginstall scoinst install; do
2400        if test -f $ac_dir/$ac_prog; then
2401	  if test $ac_prog = install &&
2402            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2403	    # AIX install.  It has an incompatible calling convention.
2404	    :
2405	  else
2406	    ac_cv_path_install="$ac_dir/$ac_prog -c"
2407	    break 2
2408	  fi
2409	fi
2410      done
2411      ;;
2412    esac
2413  done
2414  IFS="$ac_save_IFS"
2415
2416fi
2417  if test "${ac_cv_path_install+set}" = set; then
2418    INSTALL="$ac_cv_path_install"
2419  else
2420    # As a last resort, use the slow shell script.  We don't cache a
2421    # path for INSTALL within a source directory, because that will
2422    # break other packages using the cache if that directory is
2423    # removed, or if the path is relative.
2424    INSTALL="$ac_install_sh"
2425  fi
2426fi
2427echo "$ac_t""$INSTALL" 1>&6
2428
2429# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2430# It thinks the first close brace ends the variable substitution.
2431test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2432
2433test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2434
2435test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2436
2437
2438for ac_func in setmode
2439do
2440echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2441echo "configure:2442: checking for $ac_func" >&5
2442if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2443  echo $ac_n "(cached) $ac_c" 1>&6
2444else
2445  cat > conftest.$ac_ext <<EOF
2446#line 2447 "configure"
2447#include "confdefs.h"
2448/* System header to define __stub macros and hopefully few prototypes,
2449    which can conflict with char $ac_func(); below.  */
2450#include <assert.h>
2451/* Override any gcc2 internal prototype to avoid an error.  */
2452/* We use char because int might match the return type of a gcc2
2453    builtin and then its argument prototype would still apply.  */
2454char $ac_func();
2455
2456int main() {
2457
2458/* The GNU C library defines this for functions which it implements
2459    to always fail with ENOSYS.  Some functions are actually named
2460    something starting with __ and the normal name is an alias.  */
2461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2462choke me
2463#else
2464$ac_func();
2465#endif
2466
2467; return 0; }
2468EOF
2469if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2470  rm -rf conftest*
2471  eval "ac_cv_func_$ac_func=yes"
2472else
2473  echo "configure: failed program was:" >&5
2474  cat conftest.$ac_ext >&5
2475  rm -rf conftest*
2476  eval "ac_cv_func_$ac_func=no"
2477fi
2478rm -f conftest*
2479fi
2480
2481if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2482  echo "$ac_t""yes" 1>&6
2483    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2484  cat >> confdefs.h <<EOF
2485#define $ac_tr_func 1
2486EOF
2487 
2488else
2489  echo "$ac_t""no" 1>&6
2490fi
2491done
2492
2493
2494ALL_LINGUAS="fr tr sv es id da pt_BR"
2495echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2496echo "configure:2497: checking how to run the C preprocessor" >&5
2497# On Suns, sometimes $CPP names a directory.
2498if test -n "$CPP" && test -d "$CPP"; then
2499  CPP=
2500fi
2501if test -z "$CPP"; then
2502if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2503  echo $ac_n "(cached) $ac_c" 1>&6
2504else
2505    # This must be in double quotes, not single quotes, because CPP may get
2506  # substituted into the Makefile and "${CC-cc}" will confuse make.
2507  CPP="${CC-cc} -E"
2508  # On the NeXT, cc -E runs the code through the compiler's parser,
2509  # not just through cpp.
2510  cat > conftest.$ac_ext <<EOF
2511#line 2512 "configure"
2512#include "confdefs.h"
2513#include <assert.h>
2514Syntax Error
2515EOF
2516ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2517{ (eval echo configure:2518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2518ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2519if test -z "$ac_err"; then
2520  :
2521else
2522  echo "$ac_err" >&5
2523  echo "configure: failed program was:" >&5
2524  cat conftest.$ac_ext >&5
2525  rm -rf conftest*
2526  CPP="${CC-cc} -E -traditional-cpp"
2527  cat > conftest.$ac_ext <<EOF
2528#line 2529 "configure"
2529#include "confdefs.h"
2530#include <assert.h>
2531Syntax Error
2532EOF
2533ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2534{ (eval echo configure:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2535ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2536if test -z "$ac_err"; then
2537  :
2538else
2539  echo "$ac_err" >&5
2540  echo "configure: failed program was:" >&5
2541  cat conftest.$ac_ext >&5
2542  rm -rf conftest*
2543  CPP="${CC-cc} -nologo -E"
2544  cat > conftest.$ac_ext <<EOF
2545#line 2546 "configure"
2546#include "confdefs.h"
2547#include <assert.h>
2548Syntax Error
2549EOF
2550ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2551{ (eval echo configure:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2552ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2553if test -z "$ac_err"; then
2554  :
2555else
2556  echo "$ac_err" >&5
2557  echo "configure: failed program was:" >&5
2558  cat conftest.$ac_ext >&5
2559  rm -rf conftest*
2560  CPP=/lib/cpp
2561fi
2562rm -f conftest*
2563fi
2564rm -f conftest*
2565fi
2566rm -f conftest*
2567  ac_cv_prog_CPP="$CPP"
2568fi
2569  CPP="$ac_cv_prog_CPP"
2570else
2571  ac_cv_prog_CPP="$CPP"
2572fi
2573echo "$ac_t""$CPP" 1>&6
2574
2575# Extract the first word of "ranlib", so it can be a program name with args.
2576set dummy ranlib; ac_word=$2
2577echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2578echo "configure:2579: checking for $ac_word" >&5
2579if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2580  echo $ac_n "(cached) $ac_c" 1>&6
2581else
2582  if test -n "$RANLIB"; then
2583  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2584else
2585  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2586  ac_dummy="$PATH"
2587  for ac_dir in $ac_dummy; do
2588    test -z "$ac_dir" && ac_dir=.
2589    if test -f $ac_dir/$ac_word; then
2590      ac_cv_prog_RANLIB="ranlib"
2591      break
2592    fi
2593  done
2594  IFS="$ac_save_ifs"
2595  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2596fi
2597fi
2598RANLIB="$ac_cv_prog_RANLIB"
2599if test -n "$RANLIB"; then
2600  echo "$ac_t""$RANLIB" 1>&6
2601else
2602  echo "$ac_t""no" 1>&6
2603fi
2604
2605echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2606echo "configure:2607: checking for ANSI C header files" >&5
2607if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2608  echo $ac_n "(cached) $ac_c" 1>&6
2609else
2610  cat > conftest.$ac_ext <<EOF
2611#line 2612 "configure"
2612#include "confdefs.h"
2613#include <stdlib.h>
2614#include <stdarg.h>
2615#include <string.h>
2616#include <float.h>
2617EOF
2618ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2619{ (eval echo configure:2620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2620ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2621if test -z "$ac_err"; then
2622  rm -rf conftest*
2623  ac_cv_header_stdc=yes
2624else
2625  echo "$ac_err" >&5
2626  echo "configure: failed program was:" >&5
2627  cat conftest.$ac_ext >&5
2628  rm -rf conftest*
2629  ac_cv_header_stdc=no
2630fi
2631rm -f conftest*
2632
2633if test $ac_cv_header_stdc = yes; then
2634  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2635cat > conftest.$ac_ext <<EOF
2636#line 2637 "configure"
2637#include "confdefs.h"
2638#include <string.h>
2639EOF
2640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2641  egrep "memchr" >/dev/null 2>&1; then
2642  :
2643else
2644  rm -rf conftest*
2645  ac_cv_header_stdc=no
2646fi
2647rm -f conftest*
2648
2649fi
2650
2651if test $ac_cv_header_stdc = yes; then
2652  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2653cat > conftest.$ac_ext <<EOF
2654#line 2655 "configure"
2655#include "confdefs.h"
2656#include <stdlib.h>
2657EOF
2658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2659  egrep "free" >/dev/null 2>&1; then
2660  :
2661else
2662  rm -rf conftest*
2663  ac_cv_header_stdc=no
2664fi
2665rm -f conftest*
2666
2667fi
2668
2669if test $ac_cv_header_stdc = yes; then
2670  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2671if test "$cross_compiling" = yes; then
2672  :
2673else
2674  cat > conftest.$ac_ext <<EOF
2675#line 2676 "configure"
2676#include "confdefs.h"
2677#include <ctype.h>
2678#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2679#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2681int main () { int i; for (i = 0; i < 256; i++)
2682if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2683exit (0); }
2684
2685EOF
2686if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2687then
2688  :
2689else
2690  echo "configure: failed program was:" >&5
2691  cat conftest.$ac_ext >&5
2692  rm -fr conftest*
2693  ac_cv_header_stdc=no
2694fi
2695rm -fr conftest*
2696fi
2697
2698fi
2699fi
2700
2701echo "$ac_t""$ac_cv_header_stdc" 1>&6
2702if test $ac_cv_header_stdc = yes; then
2703  cat >> confdefs.h <<\EOF
2704#define STDC_HEADERS 1
2705EOF
2706
2707fi
2708
2709echo $ac_n "checking for working const""... $ac_c" 1>&6
2710echo "configure:2711: checking for working const" >&5
2711if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2712  echo $ac_n "(cached) $ac_c" 1>&6
2713else
2714  cat > conftest.$ac_ext <<EOF
2715#line 2716 "configure"
2716#include "confdefs.h"
2717
2718int main() {
2719
2720/* Ultrix mips cc rejects this.  */
2721typedef int charset[2]; const charset x;
2722/* SunOS 4.1.1 cc rejects this.  */
2723char const *const *ccp;
2724char **p;
2725/* NEC SVR4.0.2 mips cc rejects this.  */
2726struct point {int x, y;};
2727static struct point const zero = {0,0};
2728/* AIX XL C 1.02.0.0 rejects this.
2729   It does not let you subtract one const X* pointer from another in an arm
2730   of an if-expression whose if-part is not a constant expression */
2731const char *g = "string";
2732ccp = &g + (g ? g-g : 0);
2733/* HPUX 7.0 cc rejects these. */
2734++ccp;
2735p = (char**) ccp;
2736ccp = (char const *const *) p;
2737{ /* SCO 3.2v4 cc rejects this.  */
2738  char *t;
2739  char const *s = 0 ? (char *) 0 : (char const *) 0;
2740
2741  *t++ = 0;
2742}
2743{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2744  int x[] = {25, 17};
2745  const int *foo = &x[0];
2746  ++foo;
2747}
2748{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2749  typedef const int *iptr;
2750  iptr p = 0;
2751  ++p;
2752}
2753{ /* AIX XL C 1.02.0.0 rejects this saying
2754     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2755  struct s { int j; const int *ap[3]; };
2756  struct s *b; b->j = 5;
2757}
2758{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2759  const int foo = 10;
2760}
2761
2762; return 0; }
2763EOF
2764if { (eval echo configure:2765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2765  rm -rf conftest*
2766  ac_cv_c_const=yes
2767else
2768  echo "configure: failed program was:" >&5
2769  cat conftest.$ac_ext >&5
2770  rm -rf conftest*
2771  ac_cv_c_const=no
2772fi
2773rm -f conftest*
2774fi
2775
2776echo "$ac_t""$ac_cv_c_const" 1>&6
2777if test $ac_cv_c_const = no; then
2778  cat >> confdefs.h <<\EOF
2779#define const 
2780EOF
2781
2782fi
2783
2784echo $ac_n "checking for inline""... $ac_c" 1>&6
2785echo "configure:2786: checking for inline" >&5
2786if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2787  echo $ac_n "(cached) $ac_c" 1>&6
2788else
2789  ac_cv_c_inline=no
2790for ac_kw in inline __inline__ __inline; do
2791  cat > conftest.$ac_ext <<EOF
2792#line 2793 "configure"
2793#include "confdefs.h"
2794
2795int main() {
2796} $ac_kw foo() {
2797; return 0; }
2798EOF
2799if { (eval echo configure:2800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2800  rm -rf conftest*
2801  ac_cv_c_inline=$ac_kw; break
2802else
2803  echo "configure: failed program was:" >&5
2804  cat conftest.$ac_ext >&5
2805fi
2806rm -f conftest*
2807done
2808
2809fi
2810
2811echo "$ac_t""$ac_cv_c_inline" 1>&6
2812case "$ac_cv_c_inline" in
2813  inline | yes) ;;
2814  no) cat >> confdefs.h <<\EOF
2815#define inline 
2816EOF
2817 ;;
2818  *)  cat >> confdefs.h <<EOF
2819#define inline $ac_cv_c_inline
2820EOF
2821 ;;
2822esac
2823
2824echo $ac_n "checking for off_t""... $ac_c" 1>&6
2825echo "configure:2826: checking for off_t" >&5
2826if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2827  echo $ac_n "(cached) $ac_c" 1>&6
2828else
2829  cat > conftest.$ac_ext <<EOF
2830#line 2831 "configure"
2831#include "confdefs.h"
2832#include <sys/types.h>
2833#if STDC_HEADERS
2834#include <stdlib.h>
2835#include <stddef.h>
2836#endif
2837EOF
2838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2839  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2840  rm -rf conftest*
2841  ac_cv_type_off_t=yes
2842else
2843  rm -rf conftest*
2844  ac_cv_type_off_t=no
2845fi
2846rm -f conftest*
2847
2848fi
2849echo "$ac_t""$ac_cv_type_off_t" 1>&6
2850if test $ac_cv_type_off_t = no; then
2851  cat >> confdefs.h <<\EOF
2852#define off_t long
2853EOF
2854
2855fi
2856
2857echo $ac_n "checking for size_t""... $ac_c" 1>&6
2858echo "configure:2859: checking for size_t" >&5
2859if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2860  echo $ac_n "(cached) $ac_c" 1>&6
2861else
2862  cat > conftest.$ac_ext <<EOF
2863#line 2864 "configure"
2864#include "confdefs.h"
2865#include <sys/types.h>
2866#if STDC_HEADERS
2867#include <stdlib.h>
2868#include <stddef.h>
2869#endif
2870EOF
2871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2872  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2873  rm -rf conftest*
2874  ac_cv_type_size_t=yes
2875else
2876  rm -rf conftest*
2877  ac_cv_type_size_t=no
2878fi
2879rm -f conftest*
2880
2881fi
2882echo "$ac_t""$ac_cv_type_size_t" 1>&6
2883if test $ac_cv_type_size_t = no; then
2884  cat >> confdefs.h <<\EOF
2885#define size_t unsigned
2886EOF
2887
2888fi
2889
2890# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2891# for constant arguments.  Useless!
2892echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2893echo "configure:2894: checking for working alloca.h" >&5
2894if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2895  echo $ac_n "(cached) $ac_c" 1>&6
2896else
2897  cat > conftest.$ac_ext <<EOF
2898#line 2899 "configure"
2899#include "confdefs.h"
2900#include <alloca.h>
2901int main() {
2902char *p = alloca(2 * sizeof(int));
2903; return 0; }
2904EOF
2905if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2906  rm -rf conftest*
2907  ac_cv_header_alloca_h=yes
2908else
2909  echo "configure: failed program was:" >&5
2910  cat conftest.$ac_ext >&5
2911  rm -rf conftest*
2912  ac_cv_header_alloca_h=no
2913fi
2914rm -f conftest*
2915fi
2916
2917echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2918if test $ac_cv_header_alloca_h = yes; then
2919  cat >> confdefs.h <<\EOF
2920#define HAVE_ALLOCA_H 1
2921EOF
2922
2923fi
2924
2925echo $ac_n "checking for alloca""... $ac_c" 1>&6
2926echo "configure:2927: checking for alloca" >&5
2927if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2928  echo $ac_n "(cached) $ac_c" 1>&6
2929else
2930  cat > conftest.$ac_ext <<EOF
2931#line 2932 "configure"
2932#include "confdefs.h"
2933
2934#ifdef __GNUC__
2935# define alloca __builtin_alloca
2936#else
2937# ifdef _MSC_VER
2938#  include <malloc.h>
2939#  define alloca _alloca
2940# else
2941#  if HAVE_ALLOCA_H
2942#   include <alloca.h>
2943#  else
2944#   ifdef _AIX
2945 #pragma alloca
2946#   else
2947#    ifndef alloca /* predefined by HP cc +Olibcalls */
2948char *alloca ();
2949#    endif
2950#   endif
2951#  endif
2952# endif
2953#endif
2954
2955int main() {
2956char *p = (char *) alloca(1);
2957; return 0; }
2958EOF
2959if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2960  rm -rf conftest*
2961  ac_cv_func_alloca_works=yes
2962else
2963  echo "configure: failed program was:" >&5
2964  cat conftest.$ac_ext >&5
2965  rm -rf conftest*
2966  ac_cv_func_alloca_works=no
2967fi
2968rm -f conftest*
2969fi
2970
2971echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2972if test $ac_cv_func_alloca_works = yes; then
2973  cat >> confdefs.h <<\EOF
2974#define HAVE_ALLOCA 1
2975EOF
2976
2977fi
2978
2979if test $ac_cv_func_alloca_works = no; then
2980  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2981  # that cause trouble.  Some versions do not even contain alloca or
2982  # contain a buggy version.  If you still want to use their alloca,
2983  # use ar to extract alloca.o from them instead of compiling alloca.c.
2984  ALLOCA=alloca.${ac_objext}
2985  cat >> confdefs.h <<\EOF
2986#define C_ALLOCA 1
2987EOF
2988
2989
2990echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2991echo "configure:2992: checking whether alloca needs Cray hooks" >&5
2992if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2993  echo $ac_n "(cached) $ac_c" 1>&6
2994else
2995  cat > conftest.$ac_ext <<EOF
2996#line 2997 "configure"
2997#include "confdefs.h"
2998#if defined(CRAY) && ! defined(CRAY2)
2999webecray
3000#else
3001wenotbecray
3002#endif
3003
3004EOF
3005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3006  egrep "webecray" >/dev/null 2>&1; then
3007  rm -rf conftest*
3008  ac_cv_os_cray=yes
3009else
3010  rm -rf conftest*
3011  ac_cv_os_cray=no
3012fi
3013rm -f conftest*
3014
3015fi
3016
3017echo "$ac_t""$ac_cv_os_cray" 1>&6
3018if test $ac_cv_os_cray = yes; then
3019for ac_func in _getb67 GETB67 getb67; do
3020  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3021echo "configure:3022: checking for $ac_func" >&5
3022if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3023  echo $ac_n "(cached) $ac_c" 1>&6
3024else
3025  cat > conftest.$ac_ext <<EOF
3026#line 3027 "configure"
3027#include "confdefs.h"
3028/* System header to define __stub macros and hopefully few prototypes,
3029    which can conflict with char $ac_func(); below.  */
3030#include <assert.h>
3031/* Override any gcc2 internal prototype to avoid an error.  */
3032/* We use char because int might match the return type of a gcc2
3033    builtin and then its argument prototype would still apply.  */
3034char $ac_func();
3035
3036int main() {
3037
3038/* The GNU C library defines this for functions which it implements
3039    to always fail with ENOSYS.  Some functions are actually named
3040    something starting with __ and the normal name is an alias.  */
3041#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3042choke me
3043#else
3044$ac_func();
3045#endif
3046
3047; return 0; }
3048EOF
3049if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3050  rm -rf conftest*
3051  eval "ac_cv_func_$ac_func=yes"
3052else
3053  echo "configure: failed program was:" >&5
3054  cat conftest.$ac_ext >&5
3055  rm -rf conftest*
3056  eval "ac_cv_func_$ac_func=no"
3057fi
3058rm -f conftest*
3059fi
3060
3061if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3062  echo "$ac_t""yes" 1>&6
3063  cat >> confdefs.h <<EOF
3064#define CRAY_STACKSEG_END $ac_func
3065EOF
3066
3067  break
3068else
3069  echo "$ac_t""no" 1>&6
3070fi
3071
3072done
3073fi
3074
3075echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3076echo "configure:3077: checking stack direction for C alloca" >&5
3077if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3078  echo $ac_n "(cached) $ac_c" 1>&6
3079else
3080  if test "$cross_compiling" = yes; then
3081  ac_cv_c_stack_direction=0
3082else
3083  cat > conftest.$ac_ext <<EOF
3084#line 3085 "configure"
3085#include "confdefs.h"
3086find_stack_direction ()
3087{
3088  static char *addr = 0;
3089  auto char dummy;
3090  if (addr == 0)
3091    {
3092      addr = &dummy;
3093      return find_stack_direction ();
3094    }
3095  else
3096    return (&dummy > addr) ? 1 : -1;
3097}
3098main ()
3099{
3100  exit (find_stack_direction() < 0);
3101}
3102EOF
3103if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3104then
3105  ac_cv_c_stack_direction=1
3106else
3107  echo "configure: failed program was:" >&5
3108  cat conftest.$ac_ext >&5
3109  rm -fr conftest*
3110  ac_cv_c_stack_direction=-1
3111fi
3112rm -fr conftest*
3113fi
3114
3115fi
3116
3117echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3118cat >> confdefs.h <<EOF
3119#define STACK_DIRECTION $ac_cv_c_stack_direction
3120EOF
3121
3122fi
3123
3124for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
3125do
3126ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3127echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3128echo "configure:3129: checking for $ac_hdr" >&5
3129if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3130  echo $ac_n "(cached) $ac_c" 1>&6
3131else
3132  cat > conftest.$ac_ext <<EOF
3133#line 3134 "configure"
3134#include "confdefs.h"
3135#include <$ac_hdr>
3136EOF
3137ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3138{ (eval echo configure:3139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3139ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3140if test -z "$ac_err"; then
3141  rm -rf conftest*
3142  eval "ac_cv_header_$ac_safe=yes"
3143else
3144  echo "$ac_err" >&5
3145  echo "configure: failed program was:" >&5
3146  cat conftest.$ac_ext >&5
3147  rm -rf conftest*
3148  eval "ac_cv_header_$ac_safe=no"
3149fi
3150rm -f conftest*
3151fi
3152if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3153  echo "$ac_t""yes" 1>&6
3154    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3155  cat >> confdefs.h <<EOF
3156#define $ac_tr_hdr 1
3157EOF
3158 
3159else
3160  echo "$ac_t""no" 1>&6
3161fi
3162done
3163
3164for ac_func in getpagesize
3165do
3166echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3167echo "configure:3168: checking for $ac_func" >&5
3168if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3169  echo $ac_n "(cached) $ac_c" 1>&6
3170else
3171  cat > conftest.$ac_ext <<EOF
3172#line 3173 "configure"
3173#include "confdefs.h"
3174/* System header to define __stub macros and hopefully few prototypes,
3175    which can conflict with char $ac_func(); below.  */
3176#include <assert.h>
3177/* Override any gcc2 internal prototype to avoid an error.  */
3178/* We use char because int might match the return type of a gcc2
3179    builtin and then its argument prototype would still apply.  */
3180char $ac_func();
3181
3182int main() {
3183
3184/* The GNU C library defines this for functions which it implements
3185    to always fail with ENOSYS.  Some functions are actually named
3186    something starting with __ and the normal name is an alias.  */
3187#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3188choke me
3189#else
3190$ac_func();
3191#endif
3192
3193; return 0; }
3194EOF
3195if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3196  rm -rf conftest*
3197  eval "ac_cv_func_$ac_func=yes"
3198else
3199  echo "configure: failed program was:" >&5
3200  cat conftest.$ac_ext >&5
3201  rm -rf conftest*
3202  eval "ac_cv_func_$ac_func=no"
3203fi
3204rm -f conftest*
3205fi
3206
3207if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3208  echo "$ac_t""yes" 1>&6
3209    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3210  cat >> confdefs.h <<EOF
3211#define $ac_tr_func 1
3212EOF
3213 
3214else
3215  echo "$ac_t""no" 1>&6
3216fi
3217done
3218
3219echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3220echo "configure:3221: checking for working mmap" >&5
3221if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3222  echo $ac_n "(cached) $ac_c" 1>&6
3223else
3224  if test "$cross_compiling" = yes; then
3225  ac_cv_func_mmap_fixed_mapped=no
3226else
3227  cat > conftest.$ac_ext <<EOF
3228#line 3229 "configure"
3229#include "confdefs.h"
3230
3231/* Thanks to Mike Haertel and Jim Avera for this test.
3232   Here is a matrix of mmap possibilities:
3233	mmap private not fixed
3234	mmap private fixed at somewhere currently unmapped
3235	mmap private fixed at somewhere already mapped
3236	mmap shared not fixed
3237	mmap shared fixed at somewhere currently unmapped
3238	mmap shared fixed at somewhere already mapped
3239   For private mappings, we should verify that changes cannot be read()
3240   back from the file, nor mmap's back from the file at a different
3241   address.  (There have been systems where private was not correctly
3242   implemented like the infamous i386 svr4.0, and systems where the
3243   VM page cache was not coherent with the filesystem buffer cache
3244   like early versions of FreeBSD and possibly contemporary NetBSD.)
3245   For shared mappings, we should conversely verify that changes get
3246   propogated back to all the places they're supposed to be.
3247
3248   Grep wants private fixed already mapped.
3249   The main things grep needs to know about mmap are:
3250   * does it exist and is it safe to write into the mmap'd area
3251   * how to use it (BSD variants)  */
3252#include <sys/types.h>
3253#include <fcntl.h>
3254#include <sys/mman.h>
3255
3256#if HAVE_SYS_TYPES_H
3257# include <sys/types.h>
3258#endif
3259
3260#if HAVE_STDLIB_H
3261# include <stdlib.h>
3262#endif
3263
3264#if HAVE_SYS_STAT_H
3265# include <sys/stat.h>
3266#endif
3267
3268#if HAVE_UNISTD_H
3269# include <unistd.h>
3270#endif
3271
3272/* This mess was copied from the GNU getpagesize.h.  */
3273#ifndef HAVE_GETPAGESIZE
3274
3275/* Assume that all systems that can run configure have sys/param.h.  */
3276# ifndef HAVE_SYS_PARAM_H
3277#  define HAVE_SYS_PARAM_H 1
3278# endif
3279
3280# ifdef _SC_PAGESIZE
3281#  define getpagesize() sysconf(_SC_PAGESIZE)
3282# else /* no _SC_PAGESIZE */
3283#  ifdef HAVE_SYS_PARAM_H
3284#   include <sys/param.h>
3285#   ifdef EXEC_PAGESIZE
3286#    define getpagesize() EXEC_PAGESIZE
3287#   else /* no EXEC_PAGESIZE */
3288#    ifdef NBPG
3289#     define getpagesize() NBPG * CLSIZE
3290#     ifndef CLSIZE
3291#      define CLSIZE 1
3292#     endif /* no CLSIZE */
3293#    else /* no NBPG */
3294#     ifdef NBPC
3295#      define getpagesize() NBPC
3296#     else /* no NBPC */
3297#      ifdef PAGESIZE
3298#       define getpagesize() PAGESIZE
3299#      endif /* PAGESIZE */
3300#     endif /* no NBPC */
3301#    endif /* no NBPG */
3302#   endif /* no EXEC_PAGESIZE */
3303#  else /* no HAVE_SYS_PARAM_H */
3304#   define getpagesize() 8192	/* punt totally */
3305#  endif /* no HAVE_SYS_PARAM_H */
3306# endif /* no _SC_PAGESIZE */
3307
3308#endif /* no HAVE_GETPAGESIZE */
3309
3310#ifdef __cplusplus
3311extern "C" { void *malloc(unsigned); }
3312#else
3313char *malloc();
3314#endif
3315
3316int
3317main()
3318{
3319	char *data, *data2, *data3;
3320	int i, pagesize;
3321	int fd;
3322
3323	pagesize = getpagesize();
3324
3325	/*
3326	 * First, make a file with some known garbage in it.
3327	 */
3328	data = malloc(pagesize);
3329	if (!data)
3330		exit(1);
3331	for (i = 0; i < pagesize; ++i)
3332		*(data + i) = rand();
3333	umask(0);
3334	fd = creat("conftestmmap", 0600);
3335	if (fd < 0)
3336		exit(1);
3337	if (write(fd, data, pagesize) != pagesize)
3338		exit(1);
3339	close(fd);
3340
3341	/*
3342	 * Next, try to mmap the file at a fixed address which
3343	 * already has something else allocated at it.  If we can,
3344	 * also make sure that we see the same garbage.
3345	 */
3346	fd = open("conftestmmap", O_RDWR);
3347	if (fd < 0)
3348		exit(1);
3349	data2 = malloc(2 * pagesize);
3350	if (!data2)
3351		exit(1);
3352	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3353	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3354	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
3355		exit(1);
3356	for (i = 0; i < pagesize; ++i)
3357		if (*(data + i) != *(data2 + i))
3358			exit(1);
3359
3360	/*
3361	 * Finally, make sure that changes to the mapped area
3362	 * do not percolate back to the file as seen by read().
3363	 * (This is a bug on some variants of i386 svr4.0.)
3364	 */
3365	for (i = 0; i < pagesize; ++i)
3366		*(data2 + i) = *(data2 + i) + 1;
3367	data3 = malloc(pagesize);
3368	if (!data3)
3369		exit(1);
3370	if (read(fd, data3, pagesize) != pagesize)
3371		exit(1);
3372	for (i = 0; i < pagesize; ++i)
3373		if (*(data + i) != *(data3 + i))
3374			exit(1);
3375	close(fd);
3376	unlink("conftestmmap");
3377	exit(0);
3378}
3379
3380EOF
3381if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3382then
3383  ac_cv_func_mmap_fixed_mapped=yes
3384else
3385  echo "configure: failed program was:" >&5
3386  cat conftest.$ac_ext >&5
3387  rm -fr conftest*
3388  ac_cv_func_mmap_fixed_mapped=no
3389fi
3390rm -fr conftest*
3391fi
3392
3393fi
3394
3395echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3396if test $ac_cv_func_mmap_fixed_mapped = yes; then
3397  cat >> confdefs.h <<\EOF
3398#define HAVE_MMAP 1
3399EOF
3400
3401fi
3402
3403                              
3404   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3405unistd.h values.h sys/param.h
3406do
3407ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3408echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3409echo "configure:3410: checking for $ac_hdr" >&5
3410if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3411  echo $ac_n "(cached) $ac_c" 1>&6
3412else
3413  cat > conftest.$ac_ext <<EOF
3414#line 3415 "configure"
3415#include "confdefs.h"
3416#include <$ac_hdr>
3417EOF
3418ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3419{ (eval echo configure:3420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3420ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3421if test -z "$ac_err"; then
3422  rm -rf conftest*
3423  eval "ac_cv_header_$ac_safe=yes"
3424else
3425  echo "$ac_err" >&5
3426  echo "configure: failed program was:" >&5
3427  cat conftest.$ac_ext >&5
3428  rm -rf conftest*
3429  eval "ac_cv_header_$ac_safe=no"
3430fi
3431rm -f conftest*
3432fi
3433if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3434  echo "$ac_t""yes" 1>&6
3435    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3436  cat >> confdefs.h <<EOF
3437#define $ac_tr_hdr 1
3438EOF
3439 
3440else
3441  echo "$ac_t""no" 1>&6
3442fi
3443done
3444
3445   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3446__argz_count __argz_stringify __argz_next
3447do
3448echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3449echo "configure:3450: checking for $ac_func" >&5
3450if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3451  echo $ac_n "(cached) $ac_c" 1>&6
3452else
3453  cat > conftest.$ac_ext <<EOF
3454#line 3455 "configure"
3455#include "confdefs.h"
3456/* System header to define __stub macros and hopefully few prototypes,
3457    which can conflict with char $ac_func(); below.  */
3458#include <assert.h>
3459/* Override any gcc2 internal prototype to avoid an error.  */
3460/* We use char because int might match the return type of a gcc2
3461    builtin and then its argument prototype would still apply.  */
3462char $ac_func();
3463
3464int main() {
3465
3466/* The GNU C library defines this for functions which it implements
3467    to always fail with ENOSYS.  Some functions are actually named
3468    something starting with __ and the normal name is an alias.  */
3469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3470choke me
3471#else
3472$ac_func();
3473#endif
3474
3475; return 0; }
3476EOF
3477if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3478  rm -rf conftest*
3479  eval "ac_cv_func_$ac_func=yes"
3480else
3481  echo "configure: failed program was:" >&5
3482  cat conftest.$ac_ext >&5
3483  rm -rf conftest*
3484  eval "ac_cv_func_$ac_func=no"
3485fi
3486rm -f conftest*
3487fi
3488
3489if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3490  echo "$ac_t""yes" 1>&6
3491    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3492  cat >> confdefs.h <<EOF
3493#define $ac_tr_func 1
3494EOF
3495 
3496else
3497  echo "$ac_t""no" 1>&6
3498fi
3499done
3500
3501
3502   if test "${ac_cv_func_stpcpy+set}" != "set"; then
3503     for ac_func in stpcpy
3504do
3505echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3506echo "configure:3507: checking for $ac_func" >&5
3507if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3508  echo $ac_n "(cached) $ac_c" 1>&6
3509else
3510  cat > conftest.$ac_ext <<EOF
3511#line 3512 "configure"
3512#include "confdefs.h"
3513/* System header to define __stub macros and hopefully few prototypes,
3514    which can conflict with char $ac_func(); below.  */
3515#include <assert.h>
3516/* Override any gcc2 internal prototype to avoid an error.  */
3517/* We use char because int might match the return type of a gcc2
3518    builtin and then its argument prototype would still apply.  */
3519char $ac_func();
3520
3521int main() {
3522
3523/* The GNU C library defines this for functions which it implements
3524    to always fail with ENOSYS.  Some functions are actually named
3525    something starting with __ and the normal name is an alias.  */
3526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3527choke me
3528#else
3529$ac_func();
3530#endif
3531
3532; return 0; }
3533EOF
3534if { (eval echo configure:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3535  rm -rf conftest*
3536  eval "ac_cv_func_$ac_func=yes"
3537else
3538  echo "configure: failed program was:" >&5
3539  cat conftest.$ac_ext >&5
3540  rm -rf conftest*
3541  eval "ac_cv_func_$ac_func=no"
3542fi
3543rm -f conftest*
3544fi
3545
3546if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3547  echo "$ac_t""yes" 1>&6
3548    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3549  cat >> confdefs.h <<EOF
3550#define $ac_tr_func 1
3551EOF
3552 
3553else
3554  echo "$ac_t""no" 1>&6
3555fi
3556done
3557
3558   fi
3559   if test "${ac_cv_func_stpcpy}" = "yes"; then
3560     cat >> confdefs.h <<\EOF
3561#define HAVE_STPCPY 1
3562EOF
3563
3564   fi
3565
3566   if test $ac_cv_header_locale_h = yes; then
3567    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3568echo "configure:3569: checking for LC_MESSAGES" >&5
3569if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3570  echo $ac_n "(cached) $ac_c" 1>&6
3571else
3572  cat > conftest.$ac_ext <<EOF
3573#line 3574 "configure"
3574#include "confdefs.h"
3575#include <locale.h>
3576int main() {
3577return LC_MESSAGES
3578; return 0; }
3579EOF
3580if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3581  rm -rf conftest*
3582  am_cv_val_LC_MESSAGES=yes
3583else
3584  echo "configure: failed program was:" >&5
3585  cat conftest.$ac_ext >&5
3586  rm -rf conftest*
3587  am_cv_val_LC_MESSAGES=no
3588fi
3589rm -f conftest*
3590fi
3591
3592echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3593    if test $am_cv_val_LC_MESSAGES = yes; then
3594      cat >> confdefs.h <<\EOF
3595#define HAVE_LC_MESSAGES 1
3596EOF
3597
3598    fi
3599  fi
3600   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3601echo "configure:3602: checking whether NLS is requested" >&5
3602        # Check whether --enable-nls or --disable-nls was given.
3603if test "${enable_nls+set}" = set; then
3604  enableval="$enable_nls"
3605  USE_NLS=$enableval
3606else
3607  USE_NLS=yes
3608fi
3609
3610    echo "$ac_t""$USE_NLS" 1>&6
3611    
3612
3613    USE_INCLUDED_LIBINTL=no
3614
3615        if test "$USE_NLS" = "yes"; then
3616      cat >> confdefs.h <<\EOF
3617#define ENABLE_NLS 1
3618EOF
3619
3620      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3621echo "configure:3622: checking whether included gettext is requested" >&5
3622      # Check whether --with-included-gettext or --without-included-gettext was given.
3623if test "${with_included_gettext+set}" = set; then
3624  withval="$with_included_gettext"
3625  nls_cv_force_use_gnu_gettext=$withval
3626else
3627  nls_cv_force_use_gnu_gettext=no
3628fi
3629
3630      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3631
3632      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3633      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3634                        		nls_cv_header_intl=
3635	nls_cv_header_libgt=
3636	CATOBJEXT=NONE
3637
3638	ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3639echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3640echo "configure:3641: checking for libintl.h" >&5
3641if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3642  echo $ac_n "(cached) $ac_c" 1>&6
3643else
3644  cat > conftest.$ac_ext <<EOF
3645#line 3646 "configure"
3646#include "confdefs.h"
3647#include <libintl.h>
3648EOF
3649ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3650{ (eval echo configure:3651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3651ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3652if test -z "$ac_err"; then
3653  rm -rf conftest*
3654  eval "ac_cv_header_$ac_safe=yes"
3655else
3656  echo "$ac_err" >&5
3657  echo "configure: failed program was:" >&5
3658  cat conftest.$ac_ext >&5
3659  rm -rf conftest*
3660  eval "ac_cv_header_$ac_safe=no"
3661fi
3662rm -f conftest*
3663fi
3664if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3665  echo "$ac_t""yes" 1>&6
3666  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3667echo "configure:3668: checking for gettext in libc" >&5
3668if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3669  echo $ac_n "(cached) $ac_c" 1>&6
3670else
3671  cat > conftest.$ac_ext <<EOF
3672#line 3673 "configure"
3673#include "confdefs.h"
3674#include <libintl.h>
3675int main() {
3676return (int) gettext ("")
3677; return 0; }
3678EOF
3679if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3680  rm -rf conftest*
3681  gt_cv_func_gettext_libc=yes
3682else
3683  echo "configure: failed program was:" >&5
3684  cat conftest.$ac_ext >&5
3685  rm -rf conftest*
3686  gt_cv_func_gettext_libc=no
3687fi
3688rm -f conftest*
3689fi
3690
3691echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3692
3693	   if test "$gt_cv_func_gettext_libc" != "yes"; then
3694	     echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3695echo "configure:3696: checking for bindtextdomain in -lintl" >&5
3696ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3697if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3698  echo $ac_n "(cached) $ac_c" 1>&6
3699else
3700  ac_save_LIBS="$LIBS"
3701LIBS="-lintl  $LIBS"
3702cat > conftest.$ac_ext <<EOF
3703#line 3704 "configure"
3704#include "confdefs.h"
3705/* Override any gcc2 internal prototype to avoid an error.  */
3706/* We use char because int might match the return type of a gcc2
3707    builtin and then its argument prototype would still apply.  */
3708char bindtextdomain();
3709
3710int main() {
3711bindtextdomain()
3712; return 0; }
3713EOF
3714if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3715  rm -rf conftest*
3716  eval "ac_cv_lib_$ac_lib_var=yes"
3717else
3718  echo "configure: failed program was:" >&5
3719  cat conftest.$ac_ext >&5
3720  rm -rf conftest*
3721  eval "ac_cv_lib_$ac_lib_var=no"
3722fi
3723rm -f conftest*
3724LIBS="$ac_save_LIBS"
3725
3726fi
3727if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3728  echo "$ac_t""yes" 1>&6
3729  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3730echo "configure:3731: checking for gettext in libintl" >&5
3731if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3732  echo $ac_n "(cached) $ac_c" 1>&6
3733else
3734  cat > conftest.$ac_ext <<EOF
3735#line 3736 "configure"
3736#include "confdefs.h"
3737
3738int main() {
3739return (int) gettext ("")
3740; return 0; }
3741EOF
3742if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3743  rm -rf conftest*
3744  gt_cv_func_gettext_libintl=yes
3745else
3746  echo "configure: failed program was:" >&5
3747  cat conftest.$ac_ext >&5
3748  rm -rf conftest*
3749  gt_cv_func_gettext_libintl=no
3750fi
3751rm -f conftest*
3752fi
3753
3754echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3755else
3756  echo "$ac_t""no" 1>&6
3757fi
3758
3759	   fi
3760
3761	   if test "$gt_cv_func_gettext_libc" = "yes" \
3762	      || test "$gt_cv_func_gettext_libintl" = "yes"; then
3763	      cat >> confdefs.h <<\EOF
3764#define HAVE_GETTEXT 1
3765EOF
3766
3767	      # Extract the first word of "msgfmt", so it can be a program name with args.
3768set dummy msgfmt; ac_word=$2
3769echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3770echo "configure:3771: checking for $ac_word" >&5
3771if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3772  echo $ac_n "(cached) $ac_c" 1>&6
3773else
3774  case "$MSGFMT" in
3775  /*)
3776  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3777  ;;
3778  *)
3779  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3780  for ac_dir in $PATH; do
3781    test -z "$ac_dir" && ac_dir=.
3782    if test -f $ac_dir/$ac_word; then
3783      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3784	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3785	break
3786      fi
3787    fi
3788  done
3789  IFS="$ac_save_ifs"
3790  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3791  ;;
3792esac
3793fi
3794MSGFMT="$ac_cv_path_MSGFMT"
3795if test -n "$MSGFMT"; then
3796  echo "$ac_t""$MSGFMT" 1>&6
3797else
3798  echo "$ac_t""no" 1>&6
3799fi
3800	      if test "$MSGFMT" != "no"; then
3801		for ac_func in dcgettext
3802do
3803echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3804echo "configure:3805: checking for $ac_func" >&5
3805if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3806  echo $ac_n "(cached) $ac_c" 1>&6
3807else
3808  cat > conftest.$ac_ext <<EOF
3809#line 3810 "configure"
3810#include "confdefs.h"
3811/* System header to define __stub macros and hopefully few prototypes,
3812    which can conflict with char $ac_func(); below.  */
3813#include <assert.h>
3814/* Override any gcc2 internal prototype to avoid an error.  */
3815/* We use char because int might match the return type of a gcc2
3816    builtin and then its argument prototype would still apply.  */
3817char $ac_func();
3818
3819int main() {
3820
3821/* The GNU C library defines this for functions which it implements
3822    to always fail with ENOSYS.  Some functions are actually named
3823    something starting with __ and the normal name is an alias.  */
3824#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3825choke me
3826#else
3827$ac_func();
3828#endif
3829
3830; return 0; }
3831EOF
3832if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3833  rm -rf conftest*
3834  eval "ac_cv_func_$ac_func=yes"
3835else
3836  echo "configure: failed program was:" >&5
3837  cat conftest.$ac_ext >&5
3838  rm -rf conftest*
3839  eval "ac_cv_func_$ac_func=no"
3840fi
3841rm -f conftest*
3842fi
3843
3844if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3845  echo "$ac_t""yes" 1>&6
3846    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3847  cat >> confdefs.h <<EOF
3848#define $ac_tr_func 1
3849EOF
3850 
3851else
3852  echo "$ac_t""no" 1>&6
3853fi
3854done
3855
3856		# Extract the first word of "gmsgfmt", so it can be a program name with args.
3857set dummy gmsgfmt; ac_word=$2
3858echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3859echo "configure:3860: checking for $ac_word" >&5
3860if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3861  echo $ac_n "(cached) $ac_c" 1>&6
3862else
3863  case "$GMSGFMT" in
3864  /*)
3865  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3866  ;;
3867  ?:/*)			 
3868  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3869  ;;
3870  *)
3871  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3872  ac_dummy="$PATH"
3873  for ac_dir in $ac_dummy; do 
3874    test -z "$ac_dir" && ac_dir=.
3875    if test -f $ac_dir/$ac_word; then
3876      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3877      break
3878    fi
3879  done
3880  IFS="$ac_save_ifs"
3881  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3882  ;;
3883esac
3884fi
3885GMSGFMT="$ac_cv_path_GMSGFMT"
3886if test -n "$GMSGFMT"; then
3887  echo "$ac_t""$GMSGFMT" 1>&6
3888else
3889  echo "$ac_t""no" 1>&6
3890fi
3891
3892		# Extract the first word of "xgettext", so it can be a program name with args.
3893set dummy xgettext; ac_word=$2
3894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3895echo "configure:3896: checking for $ac_word" >&5
3896if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3897  echo $ac_n "(cached) $ac_c" 1>&6
3898else
3899  case "$XGETTEXT" in
3900  /*)
3901  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3902  ;;
3903  *)
3904  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3905  for ac_dir in $PATH; do
3906    test -z "$ac_dir" && ac_dir=.
3907    if test -f $ac_dir/$ac_word; then
3908      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3909	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3910	break
3911      fi
3912    fi
3913  done
3914  IFS="$ac_save_ifs"
3915  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3916  ;;
3917esac
3918fi
3919XGETTEXT="$ac_cv_path_XGETTEXT"
3920if test -n "$XGETTEXT"; then
3921  echo "$ac_t""$XGETTEXT" 1>&6
3922else
3923  echo "$ac_t""no" 1>&6
3924fi
3925
3926		cat > conftest.$ac_ext <<EOF
3927#line 3928 "configure"
3928#include "confdefs.h"
3929
3930int main() {
3931extern int _nl_msg_cat_cntr;
3932			       return _nl_msg_cat_cntr
3933; return 0; }
3934EOF
3935if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3936  rm -rf conftest*
3937  CATOBJEXT=.gmo
3938		   DATADIRNAME=share
3939else
3940  echo "configure: failed program was:" >&5
3941  cat conftest.$ac_ext >&5
3942  rm -rf conftest*
3943  CATOBJEXT=.mo
3944		   DATADIRNAME=lib
3945fi
3946rm -f conftest*
3947		INSTOBJEXT=.mo
3948	      fi
3949	    fi
3950	
3951else
3952  echo "$ac_t""no" 1>&6
3953fi
3954
3955
3956	        
3957        if test "$CATOBJEXT" = "NONE"; then
3958	  	  	  nls_cv_use_gnu_gettext=yes
3959        fi
3960      fi
3961
3962      if test "$nls_cv_use_gnu_gettext" = "yes"; then
3963                INTLOBJS="\$(GETTOBJS)"
3964        # Extract the first word of "msgfmt", so it can be a program name with args.
3965set dummy msgfmt; ac_word=$2
3966echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3967echo "configure:3968: checking for $ac_word" >&5
3968if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3969  echo $ac_n "(cached) $ac_c" 1>&6
3970else
3971  case "$MSGFMT" in
3972  /*)
3973  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3974  ;;
3975  *)
3976  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3977  for ac_dir in $PATH; do
3978    test -z "$ac_dir" && ac_dir=.
3979    if test -f $ac_dir/$ac_word; then
3980      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3981	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3982	break
3983      fi
3984    fi
3985  done
3986  IFS="$ac_save_ifs"
3987  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3988  ;;
3989esac
3990fi
3991MSGFMT="$ac_cv_path_MSGFMT"
3992if test -n "$MSGFMT"; then
3993  echo "$ac_t""$MSGFMT" 1>&6
3994else
3995  echo "$ac_t""no" 1>&6
3996fi
3997
3998        # Extract the first word of "gmsgfmt", so it can be a program name with args.
3999set dummy gmsgfmt; ac_word=$2
4000echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4001echo "configure:4002: checking for $ac_word" >&5
4002if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4003  echo $ac_n "(cached) $ac_c" 1>&6
4004else
4005  case "$GMSGFMT" in
4006  /*)
4007  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4008  ;;
4009  ?:/*)			 
4010  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4011  ;;
4012  *)
4013  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4014  ac_dummy="$PATH"
4015  for ac_dir in $ac_dummy; do 
4016    test -z "$ac_dir" && ac_dir=.
4017    if test -f $ac_dir/$ac_word; then
4018      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4019      break
4020    fi
4021  done
4022  IFS="$ac_save_ifs"
4023  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4024  ;;
4025esac
4026fi
4027GMSGFMT="$ac_cv_path_GMSGFMT"
4028if test -n "$GMSGFMT"; then
4029  echo "$ac_t""$GMSGFMT" 1>&6
4030else
4031  echo "$ac_t""no" 1>&6
4032fi
4033
4034        # Extract the first word of "xgettext", so it can be a program name with args.
4035set dummy xgettext; ac_word=$2
4036echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4037echo "configure:4038: checking for $ac_word" >&5
4038if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4039  echo $ac_n "(cached) $ac_c" 1>&6
4040else
4041  case "$XGETTEXT" in
4042  /*)
4043  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4044  ;;
4045  *)
4046  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4047  for ac_dir in $PATH; do
4048    test -z "$ac_dir" && ac_dir=.
4049    if test -f $ac_dir/$ac_word; then
4050      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4051	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4052	break
4053      fi
4054    fi
4055  done
4056  IFS="$ac_save_ifs"
4057  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4058  ;;
4059esac
4060fi
4061XGETTEXT="$ac_cv_path_XGETTEXT"
4062if test -n "$XGETTEXT"; then
4063  echo "$ac_t""$XGETTEXT" 1>&6
4064else
4065  echo "$ac_t""no" 1>&6
4066fi
4067
4068        
4069	USE_INCLUDED_LIBINTL=yes
4070        CATOBJEXT=.gmo
4071        INSTOBJEXT=.mo
4072        DATADIRNAME=share
4073	INTLDEPS='$(top_builddir)/../intl/libintl.a'
4074	INTLLIBS=$INTLDEPS
4075	LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4076        nls_cv_header_intl=libintl.h
4077        nls_cv_header_libgt=libgettext.h
4078      fi
4079
4080            if test "$XGETTEXT" != ":"; then
4081			if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4082	  : ;
4083	else
4084	  echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4085	  XGETTEXT=":"
4086	fi
4087      fi
4088
4089      # We need to process the po/ directory.
4090      POSUB=po
4091    else
4092      DATADIRNAME=share
4093      nls_cv_header_intl=libintl.h
4094      nls_cv_header_libgt=libgettext.h
4095    fi
4096
4097    # If this is used in GNU gettext we have to set USE_NLS to `yes'
4098    # because some of the sources are only built for this goal.
4099    if test "$PACKAGE" = gettext; then
4100      USE_NLS=yes
4101      USE_INCLUDED_LIBINTL=yes
4102    fi
4103
4104                for lang in $ALL_LINGUAS; do
4105      GMOFILES="$GMOFILES $lang.gmo"
4106      POFILES="$POFILES $lang.po"
4107    done
4108
4109        
4110    
4111    
4112    
4113    
4114    
4115    
4116    
4117    
4118    
4119    
4120  
4121
4122   if test "x$CATOBJEXT" != "x"; then
4123     if test "x$ALL_LINGUAS" = "x"; then
4124       LINGUAS=
4125     else
4126       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4127echo "configure:4128: checking for catalogs to be installed" >&5
4128       NEW_LINGUAS=
4129       for lang in ${LINGUAS=$ALL_LINGUAS}; do
4130         case "$ALL_LINGUAS" in
4131          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4132         esac
4133       done
4134       LINGUAS=$NEW_LINGUAS
4135       echo "$ac_t""$LINGUAS" 1>&6
4136     fi
4137
4138          if test -n "$LINGUAS"; then
4139       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4140     fi
4141   fi
4142
4143            if test $ac_cv_header_locale_h = yes; then
4144     INCLUDE_LOCALE_H="#include <locale.h>"
4145   else
4146     INCLUDE_LOCALE_H="\
4147/* The system does not provide the header <locale.h>.  Take care yourself.  */"
4148   fi
4149   
4150
4151            if test -f $srcdir/po2tbl.sed.in; then
4152      if test "$CATOBJEXT" = ".cat"; then
4153	 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4154echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4155echo "configure:4156: checking for linux/version.h" >&5
4156if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4157  echo $ac_n "(cached) $ac_c" 1>&6
4158else
4159  cat > conftest.$ac_ext <<EOF
4160#line 4161 "configure"
4161#include "confdefs.h"
4162#include <linux/version.h>
4163EOF
4164ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4165{ (eval echo configure:4166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4166ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4167if test -z "$ac_err"; then
4168  rm -rf conftest*
4169  eval "ac_cv_header_$ac_safe=yes"
4170else
4171  echo "$ac_err" >&5
4172  echo "configure: failed program was:" >&5
4173  cat conftest.$ac_ext >&5
4174  rm -rf conftest*
4175  eval "ac_cv_header_$ac_safe=no"
4176fi
4177rm -f conftest*
4178fi
4179if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4180  echo "$ac_t""yes" 1>&6
4181  msgformat=linux
4182else
4183  echo "$ac_t""no" 1>&6
4184msgformat=xopen
4185fi
4186
4187
4188	          	 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4189      fi
4190            sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4191	 $srcdir/po2tbl.sed.in > po2tbl.sed
4192   fi
4193
4194            if test "$PACKAGE" = "gettext"; then
4195     GT_NO="#NO#"
4196     GT_YES=
4197   else
4198     GT_NO=
4199     GT_YES="#YES#"
4200   fi
4201   
4202   
4203
4204   MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4205   
4206
4207      l=
4208   
4209
4210            if test -f $srcdir/po/POTFILES.in; then
4211      test -d po || mkdir po
4212      if test "x$srcdir" != "x."; then
4213	 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4214	    posrcprefix="$srcdir/"
4215	 else
4216	    posrcprefix="../$srcdir/"
4217	 fi
4218      else
4219	 posrcprefix="../"
4220      fi
4221      rm -f po/POTFILES
4222      sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4223	 < $srcdir/po/POTFILES.in > po/POTFILES
4224   fi
4225  
4226
4227echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4228echo "configure:4229: checking whether to enable maintainer-specific portions of Makefiles" >&5
4229    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4230if test "${enable_maintainer_mode+set}" = set; then
4231  enableval="$enable_maintainer_mode"
4232  USE_MAINTAINER_MODE=$enableval
4233else
4234  USE_MAINTAINER_MODE=no
4235fi
4236
4237  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4238  
4239
4240if test $USE_MAINTAINER_MODE = yes; then
4241  MAINTAINER_MODE_TRUE=
4242  MAINTAINER_MODE_FALSE='#'
4243else
4244  MAINTAINER_MODE_TRUE='#'
4245  MAINTAINER_MODE_FALSE=
4246fi
4247  MAINT=$MAINTAINER_MODE_TRUE
4248  
4249
4250
4251
4252echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4253echo "configure:4254: checking for executable suffix" >&5
4254if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4255  echo $ac_n "(cached) $ac_c" 1>&6
4256else
4257  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4258  ac_cv_exeext=.exe
4259else
4260  rm -f conftest*
4261  echo 'int main () { return 0; }' > conftest.$ac_ext
4262  ac_cv_exeext=
4263  if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4264    for file in conftest.*; do
4265      case $file in
4266      *.c | *.o | *.obj) ;;
4267      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4268      esac
4269    done
4270  else
4271    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4272  fi
4273  rm -f conftest*
4274  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4275fi
4276fi
4277
4278EXEEXT=""
4279test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4280echo "$ac_t""${ac_cv_exeext}" 1>&6
4281ac_exeext=$EXEEXT
4282
4283
4284for ac_hdr in sys/gmon_out.h
4285do
4286ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4287echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4288echo "configure:4289: checking for $ac_hdr" >&5
4289if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4290  echo $ac_n "(cached) $ac_c" 1>&6
4291else
4292  cat > conftest.$ac_ext <<EOF
4293#line 4294 "configure"
4294#include "confdefs.h"
4295#include <$ac_hdr>
4296EOF
4297ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4298{ (eval echo configure:4299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4299ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4300if test -z "$ac_err"; then
4301  rm -rf conftest*
4302  eval "ac_cv_header_$ac_safe=yes"
4303else
4304  echo "$ac_err" >&5
4305  echo "configure: failed program was:" >&5
4306  cat conftest.$ac_ext >&5
4307  rm -rf conftest*
4308  eval "ac_cv_header_$ac_safe=no"
4309fi
4310rm -f conftest*
4311fi
4312if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4313  echo "$ac_t""yes" 1>&6
4314    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4315  cat >> confdefs.h <<EOF
4316#define $ac_tr_hdr 1
4317EOF
4318 
4319else
4320  echo "$ac_t""no" 1>&6
4321fi
4322done
4323
4324
4325build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4326# Check whether --enable-build-warnings or --disable-build-warnings was given.
4327if test "${enable_build_warnings+set}" = set; then
4328  enableval="$enable_build_warnings"
4329  case "${enableval}" in
4330  yes)	;;
4331  no)	build_warnings="-w";;
4332  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4333        build_warnings="${build_warnings} ${t}";;
4334  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4335        build_warnings="${t} ${build_warnings}";;
4336  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4337esac
4338if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4339  echo "Setting warning flags = $build_warnings" 6>&1
4340fi
4341fi
4342WARN_CFLAGS=""
4343if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4344    WARN_CFLAGS="${build_warnings}"
4345fi
4346
4347
4348trap '' 1 2 15
4349cat > confcache <<\EOF
4350# This file is a shell script that caches the results of configure
4351# tests run on this system so they can be shared between configure
4352# scripts and configure runs.  It is not useful on other systems.
4353# If it contains results you don't want to keep, you may remove or edit it.
4354#
4355# By default, configure uses ./config.cache as the cache file,
4356# creating it if it does not exist already.  You can give configure
4357# the --cache-file=FILE option to use a different cache file; that is
4358# what configure does when it calls configure scripts in
4359# subdirectories, so they share the cache.
4360# Giving --cache-file=/dev/null disables caching, for debugging configure.
4361# config.status only pays attention to the cache file if you give it the
4362# --recheck option to rerun configure.
4363#
4364EOF
4365# The following way of writing the cache mishandles newlines in values,
4366# but we know of no workaround that is simple, portable, and efficient.
4367# So, don't put newlines in cache variables' values.
4368# Ultrix sh set writes to stderr and can't be redirected directly,
4369# and sets the high bit in the cache file unless we assign to the vars.
4370(set) 2>&1 |
4371  case `(ac_space=' '; set | grep ac_space) 2>&1` in
4372  *ac_space=\ *)
4373    # `set' does not quote correctly, so add quotes (double-quote substitution
4374    # turns \\\\ into \\, and sed turns \\ into \).
4375    sed -n \
4376      -e "s/'/'\\\\''/g" \
4377      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4378    ;;
4379  *)
4380    # `set' quotes correctly as required by POSIX, so do not add quotes.
4381    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4382    ;;
4383  esac >> confcache
4384if cmp -s $cache_file confcache; then
4385  :
4386else
4387  if test -w $cache_file; then
4388    echo "updating cache $cache_file"
4389    cat confcache > $cache_file
4390  else
4391    echo "not updating unwritable cache $cache_file"
4392  fi
4393fi
4394rm -f confcache
4395
4396trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4397
4398test "x$prefix" = xNONE && prefix=$ac_default_prefix
4399# Let make expand exec_prefix.
4400test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4401
4402# Any assignment to VPATH causes Sun make to only execute
4403# the first set of double-colon rules, so remove it if not needed.
4404# If there is a colon in the path, we need to keep it.
4405if test "x$srcdir" = x.; then
4406  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
4407fi
4408
4409trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4410
4411DEFS=-DHAVE_CONFIG_H
4412
4413# Without the "./", some shells look in PATH for config.status.
4414: ${CONFIG_STATUS=./config.status}
4415
4416echo creating $CONFIG_STATUS
4417rm -f $CONFIG_STATUS
4418cat > $CONFIG_STATUS <<EOF
4419#! /bin/sh
4420# Generated automatically by configure.
4421# Run this file to recreate the current configuration.
4422# This directory was configured as follows,
4423# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4424#
4425# $0 $ac_configure_args
4426#
4427# Compiler output produced by configure, useful for debugging
4428# configure, is in ./config.log if it exists.
4429
4430ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4431for ac_option
4432do
4433  case "\$ac_option" in
4434  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4435    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4436    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4437  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4438    echo "$CONFIG_STATUS generated by autoconf version 2.13"
4439    exit 0 ;;
4440  -help | --help | --hel | --he | --h)
4441    echo "\$ac_cs_usage"; exit 0 ;;
4442  *) echo "\$ac_cs_usage"; exit 1 ;;
4443  esac
4444done
4445
4446ac_given_srcdir=$srcdir
4447ac_given_INSTALL="$INSTALL"
4448
4449trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4450EOF
4451cat >> $CONFIG_STATUS <<EOF
4452
4453# Protect against being on the right side of a sed subst in config.status.
4454sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4455 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4456$ac_vpsub
4457$extrasub
4458s%@SHELL@%$SHELL%g
4459s%@CFLAGS@%$CFLAGS%g
4460s%@CPPFLAGS@%$CPPFLAGS%g
4461s%@CXXFLAGS@%$CXXFLAGS%g
4462s%@FFLAGS@%$FFLAGS%g
4463s%@DEFS@%$DEFS%g
4464s%@LDFLAGS@%$LDFLAGS%g
4465s%@LIBS@%$LIBS%g
4466s%@exec_prefix@%$exec_prefix%g
4467s%@prefix@%$prefix%g
4468s%@program_transform_name@%$program_transform_name%g
4469s%@bindir@%$bindir%g
4470s%@sbindir@%$sbindir%g
4471s%@libexecdir@%$libexecdir%g
4472s%@datadir@%$datadir%g
4473s%@sysconfdir@%$sysconfdir%g
4474s%@sharedstatedir@%$sharedstatedir%g
4475s%@localstatedir@%$localstatedir%g
4476s%@libdir@%$libdir%g
4477s%@includedir@%$includedir%g
4478s%@oldincludedir@%$oldincludedir%g
4479s%@infodir@%$infodir%g
4480s%@mandir@%$mandir%g
4481s%@host@%$host%g
4482s%@host_alias@%$host_alias%g
4483s%@host_cpu@%$host_cpu%g
4484s%@host_vendor@%$host_vendor%g
4485s%@host_os@%$host_os%g
4486s%@target@%$target%g
4487s%@target_alias@%$target_alias%g
4488s%@target_cpu@%$target_cpu%g
4489s%@target_vendor@%$target_vendor%g
4490s%@target_os@%$target_os%g
4491s%@build@%$build%g
4492s%@build_alias@%$build_alias%g
4493s%@build_cpu@%$build_cpu%g
4494s%@build_vendor@%$build_vendor%g
4495s%@build_os@%$build_os%g
4496s%@CC@%$CC%g
4497s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4498s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4499s%@INSTALL_DATA@%$INSTALL_DATA%g
4500s%@PACKAGE@%$PACKAGE%g
4501s%@VERSION@%$VERSION%g
4502s%@ACLOCAL@%$ACLOCAL%g
4503s%@AUTOCONF@%$AUTOCONF%g
4504s%@AUTOMAKE@%$AUTOMAKE%g
4505s%@AUTOHEADER@%$AUTOHEADER%g
4506s%@MAKEINFO@%$MAKEINFO%g
4507s%@SET_MAKE@%$SET_MAKE%g
4508s%@LN_S@%$LN_S%g
4509s%@OBJEXT@%$OBJEXT%g
4510s%@EXEEXT@%$EXEEXT%g
4511s%@RANLIB@%$RANLIB%g
4512s%@STRIP@%$STRIP%g
4513s%@LIBTOOL@%$LIBTOOL%g
4514s%@CPP@%$CPP%g
4515s%@ALLOCA@%$ALLOCA%g
4516s%@USE_NLS@%$USE_NLS%g
4517s%@MSGFMT@%$MSGFMT%g
4518s%@GMSGFMT@%$GMSGFMT%g
4519s%@XGETTEXT@%$XGETTEXT%g
4520s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4521s%@CATALOGS@%$CATALOGS%g
4522s%@CATOBJEXT@%$CATOBJEXT%g
4523s%@DATADIRNAME@%$DATADIRNAME%g
4524s%@GMOFILES@%$GMOFILES%g
4525s%@INSTOBJEXT@%$INSTOBJEXT%g
4526s%@INTLDEPS@%$INTLDEPS%g
4527s%@INTLLIBS@%$INTLLIBS%g
4528s%@INTLOBJS@%$INTLOBJS%g
4529s%@POFILES@%$POFILES%g
4530s%@POSUB@%$POSUB%g
4531s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4532s%@GT_NO@%$GT_NO%g
4533s%@GT_YES@%$GT_YES%g
4534s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4535s%@l@%$l%g
4536s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4537s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4538s%@MAINT@%$MAINT%g
4539s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4540
4541CEOF
4542EOF
4543
4544cat >> $CONFIG_STATUS <<\EOF
4545
4546# Split the substitutions into bite-sized pieces for seds with
4547# small command number limits, like on Digital OSF/1 and HP-UX.
4548ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4549ac_file=1 # Number of current file.
4550ac_beg=1 # First line for current file.
4551ac_end=$ac_max_sed_cmds # Line after last line for current file.
4552ac_more_lines=:
4553ac_sed_cmds=""
4554while $ac_more_lines; do
4555  if test $ac_beg -gt 1; then
4556    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4557  else
4558    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4559  fi
4560  if test ! -s conftest.s$ac_file; then
4561    ac_more_lines=false
4562    rm -f conftest.s$ac_file
4563  else
4564    if test -z "$ac_sed_cmds"; then
4565      ac_sed_cmds="sed -f conftest.s$ac_file"
4566    else
4567      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4568    fi
4569    ac_file=`expr $ac_file + 1`
4570    ac_beg=$ac_end
4571    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4572  fi
4573done
4574if test -z "$ac_sed_cmds"; then
4575  ac_sed_cmds=cat
4576fi
4577EOF
4578
4579cat >> $CONFIG_STATUS <<EOF
4580
4581CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4582EOF
4583cat >> $CONFIG_STATUS <<\EOF
4584for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4585  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4586  case "$ac_file" in
4587  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4588       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4589  *) ac_file_in="${ac_file}.in" ;;
4590  esac
4591
4592  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4593
4594  # Remove last slash and all that follows it.  Not all systems have dirname.
4595  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4596  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4597    # The file is in a subdirectory.
4598    test ! -d "$ac_dir" && mkdir "$ac_dir"
4599    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4600    # A "../" for each directory in $ac_dir_suffix.
4601    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4602  else
4603    ac_dir_suffix= ac_dots=
4604  fi
4605
4606  case "$ac_given_srcdir" in
4607  .)  srcdir=.
4608      if test -z "$ac_dots"; then top_srcdir=.
4609      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4610  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4611  *) # Relative path.
4612    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4613    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4614  esac
4615
4616  case "$ac_given_INSTALL" in
4617  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4618  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4619  esac
4620
4621  echo creating "$ac_file"
4622  rm -f "$ac_file"
4623  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4624  case "$ac_file" in
4625  *Makefile*) ac_comsub="1i\\
4626# $configure_input" ;;
4627  *) ac_comsub= ;;
4628  esac
4629
4630  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4631  sed -e "$ac_comsub
4632s%@configure_input@%$configure_input%g
4633s%@srcdir@%$srcdir%g
4634s%@top_srcdir@%$top_srcdir%g
4635s%@INSTALL@%$INSTALL%g
4636" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4637fi; done
4638rm -f conftest.s*
4639
4640# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4641# NAME is the cpp macro being defined and VALUE is the value it is being given.
4642#
4643# ac_d sets the value in "#define NAME VALUE" lines.
4644ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
4645ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
4646ac_dC='\3'
4647ac_dD='%g'
4648# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4649ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
4650ac_uB='\([ 	]\)%\1#\2define\3'
4651ac_uC=' '
4652ac_uD='\4%g'
4653# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4654ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
4655ac_eB='$%\1#\2define\3'
4656ac_eC=' '
4657ac_eD='%g'
4658
4659if test "${CONFIG_HEADERS+set}" != set; then
4660EOF
4661cat >> $CONFIG_STATUS <<EOF
4662  CONFIG_HEADERS="gconfig.h:gconfig.in"
4663EOF
4664cat >> $CONFIG_STATUS <<\EOF
4665fi
4666for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4667  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4668  case "$ac_file" in
4669  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4670       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4671  *) ac_file_in="${ac_file}.in" ;;
4672  esac
4673
4674  echo creating $ac_file
4675
4676  rm -f conftest.frag conftest.in conftest.out
4677  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4678  cat $ac_file_inputs > conftest.in
4679
4680EOF
4681
4682# Transform confdefs.h into a sed script conftest.vals that substitutes
4683# the proper values into config.h.in to produce config.h.  And first:
4684# Protect against being on the right side of a sed subst in config.status.
4685# Protect against being in an unquoted here document in config.status.
4686rm -f conftest.vals
4687cat > conftest.hdr <<\EOF
4688s/[\\&%]/\\&/g
4689s%[\\$`]%\\&%g
4690s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4691s%ac_d%ac_u%gp
4692s%ac_u%ac_e%gp
4693EOF
4694sed -n -f conftest.hdr confdefs.h > conftest.vals
4695rm -f conftest.hdr
4696
4697# This sed command replaces #undef with comments.  This is necessary, for
4698# example, in the case of _POSIX_SOURCE, which is predefined and required
4699# on some systems where configure will not decide to define it.
4700cat >> conftest.vals <<\EOF
4701s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4702EOF
4703
4704# Break up conftest.vals because some shells have a limit on
4705# the size of here documents, and old seds have small limits too.
4706
4707rm -f conftest.tail
4708while :
4709do
4710  ac_lines=`grep -c . conftest.vals`
4711  # grep -c gives empty output for an empty file on some AIX systems.
4712  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4713  # Write a limited-size here document to conftest.frag.
4714  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4715  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4716  echo 'CEOF
4717  sed -f conftest.frag conftest.in > conftest.out
4718  rm -f conftest.in
4719  mv conftest.out conftest.in
4720' >> $CONFIG_STATUS
4721  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4722  rm -f conftest.vals
4723  mv conftest.tail conftest.vals
4724done
4725rm -f conftest.vals
4726
4727cat >> $CONFIG_STATUS <<\EOF
4728  rm -f conftest.frag conftest.h
4729  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4730  cat conftest.in >> conftest.h
4731  rm -f conftest.in
4732  if cmp -s $ac_file conftest.h 2>/dev/null; then
4733    echo "$ac_file is unchanged"
4734    rm -f conftest.h
4735  else
4736    # Remove last slash and all that follows it.  Not all systems have dirname.
4737      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4738      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4739      # The file is in a subdirectory.
4740      test ! -d "$ac_dir" && mkdir "$ac_dir"
4741    fi
4742    rm -f $ac_file
4743    mv conftest.h $ac_file
4744  fi
4745fi; done
4746
4747EOF
4748cat >> $CONFIG_STATUS <<EOF
4749
4750
4751EOF
4752cat >> $CONFIG_STATUS <<\EOF
4753test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4754sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4755exit 0
4756EOF
4757chmod +x $CONFIG_STATUS
4758rm -fr confdefs* $ac_clean_files
4759test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4760
4761