source: trunk/third/libungif/configure @ 15266

Revision 15266, 119.8 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15265, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
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-x                use the X Window System"
26
27# Initialize some variables set by options.
28# The variables have the same names as the options, with
29# dashes changed to underlines.
30build=NONE
31cache_file=./config.cache
32exec_prefix=NONE
33host=NONE
34no_create=
35nonopt=NONE
36no_recursion=
37prefix=NONE
38program_prefix=NONE
39program_suffix=NONE
40program_transform_name=s,x,x,
41silent=
42site=
43srcdir=
44target=NONE
45verbose=
46x_includes=NONE
47x_libraries=NONE
48bindir='${exec_prefix}/bin'
49sbindir='${exec_prefix}/sbin'
50libexecdir='${exec_prefix}/libexec'
51datadir='${prefix}/share'
52sysconfdir='${prefix}/etc'
53sharedstatedir='${prefix}/com'
54localstatedir='${prefix}/var'
55libdir='${exec_prefix}/lib'
56includedir='${prefix}/include'
57oldincludedir='/usr/include'
58infodir='${prefix}/info'
59mandir='${prefix}/man'
60
61# Initialize some other variables.
62subdirs=
63MFLAGS= MAKEFLAGS=
64SHELL=${CONFIG_SHELL-/bin/sh}
65# Maximum number of lines to put in a shell here document.
66ac_max_here_lines=12
67
68ac_prev=
69for ac_option
70do
71
72  # If the previous option needs an argument, assign it.
73  if test -n "$ac_prev"; then
74    eval "$ac_prev=\$ac_option"
75    ac_prev=
76    continue
77  fi
78
79  case "$ac_option" in
80  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81  *) ac_optarg= ;;
82  esac
83
84  # Accept the important Cygnus configure options, so we can diagnose typos.
85
86  case "$ac_option" in
87
88  -bindir | --bindir | --bindi | --bind | --bin | --bi)
89    ac_prev=bindir ;;
90  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91    bindir="$ac_optarg" ;;
92
93  -build | --build | --buil | --bui | --bu)
94    ac_prev=build ;;
95  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96    build="$ac_optarg" ;;
97
98  -cache-file | --cache-file | --cache-fil | --cache-fi \
99  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100    ac_prev=cache_file ;;
101  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103    cache_file="$ac_optarg" ;;
104
105  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106    ac_prev=datadir ;;
107  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108  | --da=*)
109    datadir="$ac_optarg" ;;
110
111  -disable-* | --disable-*)
112    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113    # Reject names that are not valid shell variable names.
114    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116    fi
117    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118    eval "enable_${ac_feature}=no" ;;
119
120  -enable-* | --enable-*)
121    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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    case "$ac_option" in
128      *=*) ;;
129      *) ac_optarg=yes ;;
130    esac
131    eval "enable_${ac_feature}='$ac_optarg'" ;;
132
133  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135  | --exec | --exe | --ex)
136    ac_prev=exec_prefix ;;
137  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139  | --exec=* | --exe=* | --ex=*)
140    exec_prefix="$ac_optarg" ;;
141
142  -gas | --gas | --ga | --g)
143    # Obsolete; use --with-gas.
144    with_gas=yes ;;
145
146  -help | --help | --hel | --he)
147    # Omit some internal or obsolete options to make the list less imposing.
148    # This message is too long to be a string in the A/UX 3.1 sh.
149    cat << EOF
150Usage: configure [options] [host]
151Options: [defaults in brackets after descriptions]
152Configuration:
153  --cache-file=FILE       cache test results in FILE
154  --help                  print this message
155  --no-create             do not create output files
156  --quiet, --silent       do not print \`checking...' messages
157  --version               print the version of autoconf that created configure
158Directory and file names:
159  --prefix=PREFIX         install architecture-independent files in PREFIX
160                          [$ac_default_prefix]
161  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
162                          [same as prefix]
163  --bindir=DIR            user executables in DIR [EPREFIX/bin]
164  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
165  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
166  --datadir=DIR           read-only architecture-independent data in DIR
167                          [PREFIX/share]
168  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
169  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
170                          [PREFIX/com]
171  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
172  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
173  --includedir=DIR        C header files in DIR [PREFIX/include]
174  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
175  --infodir=DIR           info documentation in DIR [PREFIX/info]
176  --mandir=DIR            man documentation in DIR [PREFIX/man]
177  --srcdir=DIR            find the sources in DIR [configure dir or ..]
178  --program-prefix=PREFIX prepend PREFIX to installed program names
179  --program-suffix=SUFFIX append SUFFIX to installed program names
180  --program-transform-name=PROGRAM
181                          run sed PROGRAM on installed program names
182EOF
183    cat << EOF
184Host type:
185  --build=BUILD           configure for building on BUILD [BUILD=HOST]
186  --host=HOST             configure for HOST [guessed]
187  --target=TARGET         configure for TARGET [TARGET=HOST]
188Features and packages:
189  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
190  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
191  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
192  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
193  --x-includes=DIR        X include files are in DIR
194  --x-libraries=DIR       X library files are in DIR
195EOF
196    if test -n "$ac_help"; then
197      echo "--enable and --with options recognized:$ac_help"
198    fi
199    exit 0 ;;
200
201  -host | --host | --hos | --ho)
202    ac_prev=host ;;
203  -host=* | --host=* | --hos=* | --ho=*)
204    host="$ac_optarg" ;;
205
206  -includedir | --includedir | --includedi | --included | --include \
207  | --includ | --inclu | --incl | --inc)
208    ac_prev=includedir ;;
209  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210  | --includ=* | --inclu=* | --incl=* | --inc=*)
211    includedir="$ac_optarg" ;;
212
213  -infodir | --infodir | --infodi | --infod | --info | --inf)
214    ac_prev=infodir ;;
215  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216    infodir="$ac_optarg" ;;
217
218  -libdir | --libdir | --libdi | --libd)
219    ac_prev=libdir ;;
220  -libdir=* | --libdir=* | --libdi=* | --libd=*)
221    libdir="$ac_optarg" ;;
222
223  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224  | --libexe | --libex | --libe)
225    ac_prev=libexecdir ;;
226  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227  | --libexe=* | --libex=* | --libe=*)
228    libexecdir="$ac_optarg" ;;
229
230  -localstatedir | --localstatedir | --localstatedi | --localstated \
231  | --localstate | --localstat | --localsta | --localst \
232  | --locals | --local | --loca | --loc | --lo)
233    ac_prev=localstatedir ;;
234  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237    localstatedir="$ac_optarg" ;;
238
239  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240    ac_prev=mandir ;;
241  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242    mandir="$ac_optarg" ;;
243
244  -nfp | --nfp | --nf)
245    # Obsolete; use --without-fp.
246    with_fp=no ;;
247
248  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249  | --no-cr | --no-c)
250    no_create=yes ;;
251
252  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254    no_recursion=yes ;;
255
256  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258  | --oldin | --oldi | --old | --ol | --o)
259    ac_prev=oldincludedir ;;
260  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263    oldincludedir="$ac_optarg" ;;
264
265  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266    ac_prev=prefix ;;
267  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268    prefix="$ac_optarg" ;;
269
270  -program-prefix | --program-prefix | --program-prefi | --program-pref \
271  | --program-pre | --program-pr | --program-p)
272    ac_prev=program_prefix ;;
273  -program-prefix=* | --program-prefix=* | --program-prefi=* \
274  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275    program_prefix="$ac_optarg" ;;
276
277  -program-suffix | --program-suffix | --program-suffi | --program-suff \
278  | --program-suf | --program-su | --program-s)
279    ac_prev=program_suffix ;;
280  -program-suffix=* | --program-suffix=* | --program-suffi=* \
281  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282    program_suffix="$ac_optarg" ;;
283
284  -program-transform-name | --program-transform-name \
285  | --program-transform-nam | --program-transform-na \
286  | --program-transform-n | --program-transform- \
287  | --program-transform | --program-transfor \
288  | --program-transfo | --program-transf \
289  | --program-trans | --program-tran \
290  | --progr-tra | --program-tr | --program-t)
291    ac_prev=program_transform_name ;;
292  -program-transform-name=* | --program-transform-name=* \
293  | --program-transform-nam=* | --program-transform-na=* \
294  | --program-transform-n=* | --program-transform-=* \
295  | --program-transform=* | --program-transfor=* \
296  | --program-transfo=* | --program-transf=* \
297  | --program-trans=* | --program-tran=* \
298  | --progr-tra=* | --program-tr=* | --program-t=*)
299    program_transform_name="$ac_optarg" ;;
300
301  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302  | -silent | --silent | --silen | --sile | --sil)
303    silent=yes ;;
304
305  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306    ac_prev=sbindir ;;
307  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308  | --sbi=* | --sb=*)
309    sbindir="$ac_optarg" ;;
310
311  -sharedstatedir | --sharedstatedir | --sharedstatedi \
312  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313  | --sharedst | --shareds | --shared | --share | --shar \
314  | --sha | --sh)
315    ac_prev=sharedstatedir ;;
316  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319  | --sha=* | --sh=*)
320    sharedstatedir="$ac_optarg" ;;
321
322  -site | --site | --sit)
323    ac_prev=site ;;
324  -site=* | --site=* | --sit=*)
325    site="$ac_optarg" ;;
326
327  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328    ac_prev=srcdir ;;
329  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330    srcdir="$ac_optarg" ;;
331
332  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333  | --syscon | --sysco | --sysc | --sys | --sy)
334    ac_prev=sysconfdir ;;
335  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337    sysconfdir="$ac_optarg" ;;
338
339  -target | --target | --targe | --targ | --tar | --ta | --t)
340    ac_prev=target ;;
341  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342    target="$ac_optarg" ;;
343
344  -v | -verbose | --verbose | --verbos | --verbo | --verb)
345    verbose=yes ;;
346
347  -version | --version | --versio | --versi | --vers)
348    echo "configure generated by autoconf version 2.13"
349    exit 0 ;;
350
351  -with-* | --with-*)
352    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353    # Reject names that are not valid shell variable names.
354    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356    fi
357    ac_package=`echo $ac_package| sed 's/-/_/g'`
358    case "$ac_option" in
359      *=*) ;;
360      *) ac_optarg=yes ;;
361    esac
362    eval "with_${ac_package}='$ac_optarg'" ;;
363
364  -without-* | --without-*)
365    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366    # Reject names that are not valid shell variable names.
367    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369    fi
370    ac_package=`echo $ac_package| sed 's/-/_/g'`
371    eval "with_${ac_package}=no" ;;
372
373  --x)
374    # Obsolete; use --with-x.
375    with_x=yes ;;
376
377  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378  | --x-incl | --x-inc | --x-in | --x-i)
379    ac_prev=x_includes ;;
380  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382    x_includes="$ac_optarg" ;;
383
384  -x-libraries | --x-libraries | --x-librarie | --x-librari \
385  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386    ac_prev=x_libraries ;;
387  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389    x_libraries="$ac_optarg" ;;
390
391  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392    ;;
393
394  *)
395    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396      echo "configure: warning: $ac_option: invalid host type" 1>&2
397    fi
398    if test "x$nonopt" != xNONE; then
399      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400    fi
401    nonopt="$ac_option"
402    ;;
403
404  esac
405done
406
407if test -n "$ac_prev"; then
408  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409fi
410
411trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412
413# File descriptor usage:
414# 0 standard input
415# 1 file creation
416# 2 errors and warnings
417# 3 some systems may open it to /dev/tty
418# 4 used on the Kubota Titan
419# 6 checking for... messages and results
420# 5 compiler messages saved in config.log
421if test "$silent" = yes; then
422  exec 6>/dev/null
423else
424  exec 6>&1
425fi
426exec 5>./config.log
427
428echo "\
429This file contains any messages produced by compilers while
430running configure, to aid debugging if configure makes a mistake.
431" 1>&5
432
433# Strip out --no-create and --no-recursion so they do not pile up.
434# Also quote any args containing shell metacharacters.
435ac_configure_args=
436for ac_arg
437do
438  case "$ac_arg" in
439  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440  | --no-cr | --no-c) ;;
441  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446  esac
447done
448
449# NLS nuisances.
450# Only set these to C if already set.  These must not be set unconditionally
451# because not all systems understand e.g. LANG=C (notably SCO).
452# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453# Non-C LC_CTYPE values break the ctype check.
454if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
455if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
458
459# confdefs.h avoids OS command line length limits that DEFS can exceed.
460rm -rf conftest* confdefs.h
461# AIX cpp loses on an empty file, so make sure it contains at least a newline.
462echo > confdefs.h
463
464# A filename unique to this package, relative to the directory that
465# configure is in, which we can look for to find out if srcdir is correct.
466ac_unique_file=lib/dev2gif.c
467
468# Find the source files, if location was not specified.
469if test -z "$srcdir"; then
470  ac_srcdir_defaulted=yes
471  # Try the directory containing this script, then its parent.
472  ac_prog=$0
473  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475  srcdir=$ac_confdir
476  if test ! -r $srcdir/$ac_unique_file; then
477    srcdir=..
478  fi
479else
480  ac_srcdir_defaulted=no
481fi
482if test ! -r $srcdir/$ac_unique_file; then
483  if test "$ac_srcdir_defaulted" = yes; then
484    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485  else
486    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487  fi
488fi
489srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490
491# Prefer explicitly selected file to automatically selected ones.
492if test -z "$CONFIG_SITE"; then
493  if test "x$prefix" != xNONE; then
494    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495  else
496    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497  fi
498fi
499for ac_site_file in $CONFIG_SITE; do
500  if test -r "$ac_site_file"; then
501    echo "loading site script $ac_site_file"
502    . "$ac_site_file"
503  fi
504done
505
506if test -r "$cache_file"; then
507  echo "loading cache $cache_file"
508  . $cache_file
509else
510  echo "creating cache $cache_file"
511  > $cache_file
512fi
513
514ac_ext=c
515# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516ac_cpp='$CPP $CPPFLAGS'
517ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519cross_compiling=$ac_cv_prog_cc_cross
520
521ac_exeext=
522ac_objext=o
523if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526    ac_n= ac_c='
527' ac_t='        '
528  else
529    ac_n=-n ac_c= ac_t=
530  fi
531else
532  ac_n= ac_c='\c' ac_t=
533fi
534
535
536ac_aux_dir=
537for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538  if test -f $ac_dir/install-sh; then
539    ac_aux_dir=$ac_dir
540    ac_install_sh="$ac_aux_dir/install-sh -c"
541    break
542  elif test -f $ac_dir/install.sh; then
543    ac_aux_dir=$ac_dir
544    ac_install_sh="$ac_aux_dir/install.sh -c"
545    break
546  fi
547done
548if test -z "$ac_aux_dir"; then
549  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550fi
551ac_config_guess=$ac_aux_dir/config.guess
552ac_config_sub=$ac_aux_dir/config.sub
553ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554
555# Find a good install program.  We prefer a C program (faster),
556# so one script is as good as another.  But avoid the broken or
557# incompatible versions:
558# SysV /etc/install, /usr/sbin/install
559# SunOS /usr/etc/install
560# IRIX /sbin/install
561# AIX /bin/install
562# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
563# AFS /usr/afsws/bin/install, which mishandles nonexistent args
564# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565# ./install, which can be erroneously created by make from ./install.sh.
566echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
567echo "configure:568: checking for a BSD compatible install" >&5
568if test -z "$INSTALL"; then
569if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
570  echo $ac_n "(cached) $ac_c" 1>&6
571else
572    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
573  for ac_dir in $PATH; do
574    # Account for people who put trailing slashes in PATH elements.
575    case "$ac_dir/" in
576    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
577    *)
578      # OSF1 and SCO ODT 3.0 have their own names for install.
579      # Don't use installbsd from OSF since it installs stuff as root
580      # by default.
581      for ac_prog in ginstall scoinst install; do
582        if test -f $ac_dir/$ac_prog; then
583          if test $ac_prog = install &&
584            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
585            # AIX install.  It has an incompatible calling convention.
586            :
587          else
588            ac_cv_path_install="$ac_dir/$ac_prog -c"
589            break 2
590          fi
591        fi
592      done
593      ;;
594    esac
595  done
596  IFS="$ac_save_IFS"
597
598fi
599  if test "${ac_cv_path_install+set}" = set; then
600    INSTALL="$ac_cv_path_install"
601  else
602    # As a last resort, use the slow shell script.  We don't cache a
603    # path for INSTALL within a source directory, because that will
604    # break other packages using the cache if that directory is
605    # removed, or if the path is relative.
606    INSTALL="$ac_install_sh"
607  fi
608fi
609echo "$ac_t""$INSTALL" 1>&6
610
611# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
612# It thinks the first close brace ends the variable substitution.
613test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
614
615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
616
617test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
618
619echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
620echo "configure:621: checking whether build environment is sane" >&5
621# Just in case
622sleep 1
623echo timestamp > conftestfile
624# Do `set' in a subshell so we don't clobber the current shell's
625# arguments.  Must try -L first in case configure is actually a
626# symlink; some systems play weird games with the mod time of symlinks
627# (eg FreeBSD returns the mod time of the symlink's containing
628# directory).
629if (
630   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
631   if test "$*" = "X"; then
632      # -L didn't work.
633      set X `ls -t $srcdir/configure conftestfile`
634   fi
635   if test "$*" != "X $srcdir/configure conftestfile" \
636      && test "$*" != "X conftestfile $srcdir/configure"; then
637
638      # If neither matched, then we have a broken ls.  This can happen
639      # if, for instance, CONFIG_SHELL is bash and it inherits a
640      # broken ls alias from the environment.  This has actually
641      # happened.  Such a system could not be considered "sane".
642      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
643alias in your environment" 1>&2; exit 1; }
644   fi
645
646   test "$2" = conftestfile
647   )
648then
649   # Ok.
650   :
651else
652   { echo "configure: error: newly created file is older than distributed files!
653Check your system clock" 1>&2; exit 1; }
654fi
655rm -f conftest*
656echo "$ac_t""yes" 1>&6
657if test "$program_transform_name" = s,x,x,; then
658  program_transform_name=
659else
660  # Double any \ or $.  echo might interpret backslashes.
661  cat <<\EOF_SED > conftestsed
662s,\\,\\\\,g; s,\$,$$,g
663EOF_SED
664  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
665  rm -f conftestsed
666fi
667test "$program_prefix" != NONE &&
668  program_transform_name="s,^,${program_prefix},; $program_transform_name"
669# Use a double $ so make ignores it.
670test "$program_suffix" != NONE &&
671  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
672
673# sed with no file args requires a program.
674test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675
676echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
677echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
678set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
679if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
680  echo $ac_n "(cached) $ac_c" 1>&6
681else
682  cat > conftestmake <<\EOF
683all:
684        @echo 'ac_maketemp="${MAKE}"'
685EOF
686# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
687eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
688if test -n "$ac_maketemp"; then
689  eval ac_cv_prog_make_${ac_make}_set=yes
690else
691  eval ac_cv_prog_make_${ac_make}_set=no
692fi
693rm -f conftestmake
694fi
695if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696  echo "$ac_t""yes" 1>&6
697  SET_MAKE=
698else
699  echo "$ac_t""no" 1>&6
700  SET_MAKE="MAKE=${MAKE-make}"
701fi
702
703
704PACKAGE=libungif
705
706VERSION=4.1.0b1
707
708if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
710fi
711cat >> confdefs.h <<EOF
712#define PACKAGE "$PACKAGE"
713EOF
714
715cat >> confdefs.h <<EOF
716#define VERSION "$VERSION"
717EOF
718
719
720
721missing_dir=`cd $ac_aux_dir && pwd`
722echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
723echo "configure:724: checking for working aclocal" >&5
724# Run test in a subshell; some versions of sh will print an error if
725# an executable is not found, even if stderr is redirected.
726# Redirect stdin to placate older versions of autoconf.  Sigh.
727if (aclocal --version) < /dev/null > /dev/null 2>&1; then
728   ACLOCAL=aclocal
729   echo "$ac_t""found" 1>&6
730else
731   ACLOCAL="$missing_dir/missing aclocal"
732   echo "$ac_t""missing" 1>&6
733fi
734
735echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
736echo "configure:737: checking for working autoconf" >&5
737# Run test in a subshell; some versions of sh will print an error if
738# an executable is not found, even if stderr is redirected.
739# Redirect stdin to placate older versions of autoconf.  Sigh.
740if (autoconf --version) < /dev/null > /dev/null 2>&1; then
741   AUTOCONF=autoconf
742   echo "$ac_t""found" 1>&6
743else
744   AUTOCONF="$missing_dir/missing autoconf"
745   echo "$ac_t""missing" 1>&6
746fi
747
748echo $ac_n "checking for working automake""... $ac_c" 1>&6
749echo "configure:750: checking for working automake" >&5
750# Run test in a subshell; some versions of sh will print an error if
751# an executable is not found, even if stderr is redirected.
752# Redirect stdin to placate older versions of autoconf.  Sigh.
753if (automake --version) < /dev/null > /dev/null 2>&1; then
754   AUTOMAKE=automake
755   echo "$ac_t""found" 1>&6
756else
757   AUTOMAKE="$missing_dir/missing automake"
758   echo "$ac_t""missing" 1>&6
759fi
760
761echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
762echo "configure:763: checking for working autoheader" >&5
763# Run test in a subshell; some versions of sh will print an error if
764# an executable is not found, even if stderr is redirected.
765# Redirect stdin to placate older versions of autoconf.  Sigh.
766if (autoheader --version) < /dev/null > /dev/null 2>&1; then
767   AUTOHEADER=autoheader
768   echo "$ac_t""found" 1>&6
769else
770   AUTOHEADER="$missing_dir/missing autoheader"
771   echo "$ac_t""missing" 1>&6
772fi
773
774echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
775echo "configure:776: checking for working makeinfo" >&5
776# Run test in a subshell; some versions of sh will print an error if
777# an executable is not found, even if stderr is redirected.
778# Redirect stdin to placate older versions of autoconf.  Sigh.
779if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
780   MAKEINFO=makeinfo
781   echo "$ac_t""found" 1>&6
782else
783   MAKEINFO="$missing_dir/missing makeinfo"
784   echo "$ac_t""missing" 1>&6
785fi
786
787
788
789
790
791
792# Check whether --enable-shared or --disable-shared was given.
793if test "${enable_shared+set}" = set; then
794  enableval="$enable_shared"
795  p=${PACKAGE-default}
796case "$enableval" in
797yes) enable_shared=yes ;;
798no) enable_shared=no ;;
799*)
800  enable_shared=no
801  # Look at the argument we got.  We use all the common list separators.
802  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
803  for pkg in $enableval; do
804    if test "X$pkg" = "X$p"; then
805      enable_shared=yes
806    fi
807  done
808  IFS="$ac_save_ifs"
809  ;;
810esac
811else
812  enable_shared=yes
813fi
814
815# Check whether --enable-static or --disable-static was given.
816if test "${enable_static+set}" = set; then
817  enableval="$enable_static"
818  p=${PACKAGE-default}
819case "$enableval" in
820yes) enable_static=yes ;;
821no) enable_static=no ;;
822*)
823  enable_static=no
824  # Look at the argument we got.  We use all the common list separators.
825  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
826  for pkg in $enableval; do
827    if test "X$pkg" = "X$p"; then
828      enable_static=yes
829    fi
830  done
831  IFS="$ac_save_ifs"
832  ;;
833esac
834else
835  enable_static=yes
836fi
837
838# Check whether --enable-fast-install or --disable-fast-install was given.
839if test "${enable_fast_install+set}" = set; then
840  enableval="$enable_fast_install"
841  p=${PACKAGE-default}
842case "$enableval" in
843yes) enable_fast_install=yes ;;
844no) enable_fast_install=no ;;
845*)
846  enable_fast_install=no
847  # Look at the argument we got.  We use all the common list separators.
848  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
849  for pkg in $enableval; do
850    if test "X$pkg" = "X$p"; then
851      enable_fast_install=yes
852    fi
853  done
854  IFS="$ac_save_ifs"
855  ;;
856esac
857else
858  enable_fast_install=yes
859fi
860
861
862# Make sure we can run config.sub.
863if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
864else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
865fi
866
867echo $ac_n "checking host system type""... $ac_c" 1>&6
868echo "configure:869: checking host system type" >&5
869
870host_alias=$host
871case "$host_alias" in
872NONE)
873  case $nonopt in
874  NONE)
875    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
876    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
877    fi ;;
878  *) host_alias=$nonopt ;;
879  esac ;;
880esac
881
882host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
883host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
884host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
885host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
886echo "$ac_t""$host" 1>&6
887
888echo $ac_n "checking build system type""... $ac_c" 1>&6
889echo "configure:890: checking build system type" >&5
890
891build_alias=$build
892case "$build_alias" in
893NONE)
894  case $nonopt in
895  NONE) build_alias=$host_alias ;;
896  *) build_alias=$nonopt ;;
897  esac ;;
898esac
899
900build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
901build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
902build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
903build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
904echo "$ac_t""$build" 1>&6
905
906# Extract the first word of "ranlib", so it can be a program name with args.
907set dummy ranlib; ac_word=$2
908echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
909echo "configure:910: checking for $ac_word" >&5
910if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
911  echo $ac_n "(cached) $ac_c" 1>&6
912else
913  if test -n "$RANLIB"; then
914  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
915else
916  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
917  ac_dummy="$PATH"
918  for ac_dir in $ac_dummy; do
919    test -z "$ac_dir" && ac_dir=.
920    if test -f $ac_dir/$ac_word; then
921      ac_cv_prog_RANLIB="ranlib"
922      break
923    fi
924  done
925  IFS="$ac_save_ifs"
926  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
927fi
928fi
929RANLIB="$ac_cv_prog_RANLIB"
930if test -n "$RANLIB"; then
931  echo "$ac_t""$RANLIB" 1>&6
932else
933  echo "$ac_t""no" 1>&6
934fi
935
936# Extract the first word of "gcc", so it can be a program name with args.
937set dummy gcc; ac_word=$2
938echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939echo "configure:940: checking for $ac_word" >&5
940if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941  echo $ac_n "(cached) $ac_c" 1>&6
942else
943  if test -n "$CC"; then
944  ac_cv_prog_CC="$CC" # Let the user override the test.
945else
946  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
947  ac_dummy="$PATH"
948  for ac_dir in $ac_dummy; do
949    test -z "$ac_dir" && ac_dir=.
950    if test -f $ac_dir/$ac_word; then
951      ac_cv_prog_CC="gcc"
952      break
953    fi
954  done
955  IFS="$ac_save_ifs"
956fi
957fi
958CC="$ac_cv_prog_CC"
959if test -n "$CC"; then
960  echo "$ac_t""$CC" 1>&6
961else
962  echo "$ac_t""no" 1>&6
963fi
964
965if test -z "$CC"; then
966  # Extract the first word of "cc", so it can be a program name with args.
967set dummy cc; ac_word=$2
968echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969echo "configure:970: checking for $ac_word" >&5
970if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971  echo $ac_n "(cached) $ac_c" 1>&6
972else
973  if test -n "$CC"; then
974  ac_cv_prog_CC="$CC" # Let the user override the test.
975else
976  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
977  ac_prog_rejected=no
978  ac_dummy="$PATH"
979  for ac_dir in $ac_dummy; do
980    test -z "$ac_dir" && ac_dir=.
981    if test -f $ac_dir/$ac_word; then
982      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983        ac_prog_rejected=yes
984        continue
985      fi
986      ac_cv_prog_CC="cc"
987      break
988    fi
989  done
990  IFS="$ac_save_ifs"
991if test $ac_prog_rejected = yes; then
992  # We found a bogon in the path, so make sure we never use it.
993  set dummy $ac_cv_prog_CC
994  shift
995  if test $# -gt 0; then
996    # We chose a different compiler from the bogus one.
997    # However, it has the same basename, so the bogon will be chosen
998    # first if we set CC to just the basename; use the full file name.
999    shift
1000    set dummy "$ac_dir/$ac_word" "$@"
1001    shift
1002    ac_cv_prog_CC="$@"
1003  fi
1004fi
1005fi
1006fi
1007CC="$ac_cv_prog_CC"
1008if test -n "$CC"; then
1009  echo "$ac_t""$CC" 1>&6
1010else
1011  echo "$ac_t""no" 1>&6
1012fi
1013
1014  if test -z "$CC"; then
1015    case "`uname -s`" in
1016    *win32* | *WIN32*)
1017      # Extract the first word of "cl", so it can be a program name with args.
1018set dummy cl; ac_word=$2
1019echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1020echo "configure:1021: checking for $ac_word" >&5
1021if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1022  echo $ac_n "(cached) $ac_c" 1>&6
1023else
1024  if test -n "$CC"; then
1025  ac_cv_prog_CC="$CC" # Let the user override the test.
1026else
1027  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1028  ac_dummy="$PATH"
1029  for ac_dir in $ac_dummy; do
1030    test -z "$ac_dir" && ac_dir=.
1031    if test -f $ac_dir/$ac_word; then
1032      ac_cv_prog_CC="cl"
1033      break
1034    fi
1035  done
1036  IFS="$ac_save_ifs"
1037fi
1038fi
1039CC="$ac_cv_prog_CC"
1040if test -n "$CC"; then
1041  echo "$ac_t""$CC" 1>&6
1042else
1043  echo "$ac_t""no" 1>&6
1044fi
1045 ;;
1046    esac
1047  fi
1048  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1049fi
1050
1051echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1052echo "configure:1053: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1053
1054ac_ext=c
1055# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1056ac_cpp='$CPP $CPPFLAGS'
1057ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1058ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1059cross_compiling=$ac_cv_prog_cc_cross
1060
1061cat > conftest.$ac_ext << EOF
1062
1063#line 1064 "configure"
1064#include "confdefs.h"
1065
1066main(){return(0);}
1067EOF
1068if { (eval echo configure:1069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1069  ac_cv_prog_cc_works=yes
1070  # If we can't run a trivial program, we are probably using a cross compiler.
1071  if (./conftest; exit) 2>/dev/null; then
1072    ac_cv_prog_cc_cross=no
1073  else
1074    ac_cv_prog_cc_cross=yes
1075  fi
1076else
1077  echo "configure: failed program was:" >&5
1078  cat conftest.$ac_ext >&5
1079  ac_cv_prog_cc_works=no
1080fi
1081rm -fr conftest*
1082ac_ext=c
1083# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1084ac_cpp='$CPP $CPPFLAGS'
1085ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1086ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1087cross_compiling=$ac_cv_prog_cc_cross
1088
1089echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1090if test $ac_cv_prog_cc_works = no; then
1091  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1092fi
1093echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1094echo "configure:1095: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1095echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1096cross_compiling=$ac_cv_prog_cc_cross
1097
1098echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1099echo "configure:1100: checking whether we are using GNU C" >&5
1100if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1101  echo $ac_n "(cached) $ac_c" 1>&6
1102else
1103  cat > conftest.c <<EOF
1104#ifdef __GNUC__
1105  yes;
1106#endif
1107EOF
1108if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1109  ac_cv_prog_gcc=yes
1110else
1111  ac_cv_prog_gcc=no
1112fi
1113fi
1114
1115echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1116
1117if test $ac_cv_prog_gcc = yes; then
1118  GCC=yes
1119else
1120  GCC=
1121fi
1122
1123ac_test_CFLAGS="${CFLAGS+set}"
1124ac_save_CFLAGS="$CFLAGS"
1125CFLAGS=
1126echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1127echo "configure:1128: checking whether ${CC-cc} accepts -g" >&5
1128if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1129  echo $ac_n "(cached) $ac_c" 1>&6
1130else
1131  echo 'void f(){}' > conftest.c
1132if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1133  ac_cv_prog_cc_g=yes
1134else
1135  ac_cv_prog_cc_g=no
1136fi
1137rm -f conftest*
1138
1139fi
1140
1141echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1142if test "$ac_test_CFLAGS" = set; then
1143  CFLAGS="$ac_save_CFLAGS"
1144elif test $ac_cv_prog_cc_g = yes; then
1145  if test "$GCC" = yes; then
1146    CFLAGS="-g -O2"
1147  else
1148    CFLAGS="-g"
1149  fi
1150else
1151  if test "$GCC" = yes; then
1152    CFLAGS="-O2"
1153  else
1154    CFLAGS=
1155  fi
1156fi
1157
1158# Check whether --with-gnu-ld or --without-gnu-ld was given.
1159if test "${with_gnu_ld+set}" = set; then
1160  withval="$with_gnu_ld"
1161  test "$withval" = no || with_gnu_ld=yes
1162else
1163  with_gnu_ld=no
1164fi
1165
1166ac_prog=ld
1167if test "$ac_cv_prog_gcc" = yes; then
1168  # Check if gcc -print-prog-name=ld gives a path.
1169  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1170echo "configure:1171: checking for ld used by GCC" >&5
1171  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1172  case "$ac_prog" in
1173    # Accept absolute paths.
1174    [\\/]* | [A-Za-z]:[\\/]*)
1175      re_direlt='/[^/][^/]*/\.\./'
1176      # Canonicalize the path of ld
1177      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1178      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1179        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1180      done
1181      test -z "$LD" && LD="$ac_prog"
1182      ;;
1183  "")
1184    # If it fails, then pretend we aren't using GCC.
1185    ac_prog=ld
1186    ;;
1187  *)
1188    # If it is relative, then search for the first ld in PATH.
1189    with_gnu_ld=unknown
1190    ;;
1191  esac
1192elif test "$with_gnu_ld" = yes; then
1193  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1194echo "configure:1195: checking for GNU ld" >&5
1195else
1196  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1197echo "configure:1198: checking for non-GNU ld" >&5
1198fi
1199if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1200  echo $ac_n "(cached) $ac_c" 1>&6
1201else
1202  if test -z "$LD"; then
1203  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1204  for ac_dir in $PATH; do
1205    test -z "$ac_dir" && ac_dir=.
1206    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1207      ac_cv_path_LD="$ac_dir/$ac_prog"
1208      # Check to see if the program is GNU ld.  I'd rather use --version,
1209      # but apparently some GNU ld's only accept -v.
1210      # Break only if it was the GNU/non-GNU ld that we prefer.
1211      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1212        test "$with_gnu_ld" != no && break
1213      else
1214        test "$with_gnu_ld" != yes && break
1215      fi
1216    fi
1217  done
1218  IFS="$ac_save_ifs"
1219else
1220  ac_cv_path_LD="$LD" # Let the user override the test with a path.
1221fi
1222fi
1223
1224LD="$ac_cv_path_LD"
1225if test -n "$LD"; then
1226  echo "$ac_t""$LD" 1>&6
1227else
1228  echo "$ac_t""no" 1>&6
1229fi
1230test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1231
1232echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1233echo "configure:1234: checking if the linker ($LD) is GNU ld" >&5
1234if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1235  echo $ac_n "(cached) $ac_c" 1>&6
1236else
1237  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1238if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1239  ac_cv_prog_gnu_ld=yes
1240else
1241  ac_cv_prog_gnu_ld=no
1242fi
1243fi
1244
1245echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1246
1247
1248echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1249echo "configure:1250: checking for BSD-compatible nm" >&5
1250if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1251  echo $ac_n "(cached) $ac_c" 1>&6
1252else
1253  if test -n "$NM"; then
1254  # Let the user override the test.
1255  ac_cv_path_NM="$NM"
1256else
1257  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1258  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1259    test -z "$ac_dir" && ac_dir=.
1260    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1261      # Check to see if the nm accepts a BSD-compat flag.
1262      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1263      #   nm: unknown option "B" ignored
1264      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1265        ac_cv_path_NM="$ac_dir/nm -B"
1266        break
1267      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1268        ac_cv_path_NM="$ac_dir/nm -p"
1269        break
1270      else
1271        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1272        continue # so that we can try to find one that supports BSD flags
1273      fi
1274    fi
1275  done
1276  IFS="$ac_save_ifs"
1277  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1278fi
1279fi
1280
1281NM="$ac_cv_path_NM"
1282echo "$ac_t""$NM" 1>&6
1283
1284
1285echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1286echo "configure:1287: checking whether ln -s works" >&5
1287if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1288  echo $ac_n "(cached) $ac_c" 1>&6
1289else
1290  rm -f conftestdata
1291if ln -s X conftestdata 2>/dev/null
1292then
1293  rm -f conftestdata
1294  ac_cv_prog_LN_S="ln -s"
1295else
1296  ac_cv_prog_LN_S=ln
1297fi
1298fi
1299LN_S="$ac_cv_prog_LN_S"
1300if test "$ac_cv_prog_LN_S" = "ln -s"; then
1301  echo "$ac_t""yes" 1>&6
1302else
1303  echo "$ac_t""no" 1>&6
1304fi
1305
1306
1307# Check for any special flags to pass to ltconfig.
1308#
1309# the following will cause an existing older ltconfig to fail, so
1310# we ignore this at the expense of the cache file... Checking this
1311# will just take longer ... bummer!
1312#libtool_flags="--cache-file=$cache_file"
1313#
1314test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1315test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1316test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1317test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1318test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1319
1320
1321# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1322if test "${enable_libtool_lock+set}" = set; then
1323  enableval="$enable_libtool_lock"
1324  :
1325fi
1326
1327test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1328test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1329
1330# Some flags need to be propagated to the compiler or linker for good
1331# libtool support.
1332case "$host" in
1333*-*-irix6*)
1334  # Find out which ABI we are using.
1335  echo '#line 1336 "configure"' > conftest.$ac_ext
1336  if { (eval echo configure:1337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1337    case "`/usr/bin/file conftest.o`" in
1338    *32-bit*)
1339      LD="${LD-ld} -32"
1340      ;;
1341    *N32*)
1342      LD="${LD-ld} -n32"
1343      ;;
1344    *64-bit*)
1345      LD="${LD-ld} -64"
1346      ;;
1347    esac
1348  fi
1349  rm -rf conftest*
1350  ;;
1351
1352*-*-sco3.2v5*)
1353  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1354  SAVE_CFLAGS="$CFLAGS"
1355  CFLAGS="$CFLAGS -belf"
1356  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1357echo "configure:1358: checking whether the C compiler needs -belf" >&5
1358if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1359  echo $ac_n "(cached) $ac_c" 1>&6
1360else
1361  cat > conftest.$ac_ext <<EOF
1362#line 1363 "configure"
1363#include "confdefs.h"
1364
1365int main() {
1366
1367; return 0; }
1368EOF
1369if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1370  rm -rf conftest*
1371  lt_cv_cc_needs_belf=yes
1372else
1373  echo "configure: failed program was:" >&5
1374  cat conftest.$ac_ext >&5
1375  rm -rf conftest*
1376  lt_cv_cc_needs_belf=no
1377fi
1378rm -f conftest*
1379fi
1380
1381echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1382  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1383    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1384    CFLAGS="$SAVE_CFLAGS"
1385  fi
1386  ;;
1387
1388
1389esac
1390
1391
1392# Save cache, so that ltconfig can load it
1393cat > confcache <<\EOF
1394# This file is a shell script that caches the results of configure
1395# tests run on this system so they can be shared between configure
1396# scripts and configure runs.  It is not useful on other systems.
1397# If it contains results you don't want to keep, you may remove or edit it.
1398#
1399# By default, configure uses ./config.cache as the cache file,
1400# creating it if it does not exist already.  You can give configure
1401# the --cache-file=FILE option to use a different cache file; that is
1402# what configure does when it calls configure scripts in
1403# subdirectories, so they share the cache.
1404# Giving --cache-file=/dev/null disables caching, for debugging configure.
1405# config.status only pays attention to the cache file if you give it the
1406# --recheck option to rerun configure.
1407#
1408EOF
1409# The following way of writing the cache mishandles newlines in values,
1410# but we know of no workaround that is simple, portable, and efficient.
1411# So, don't put newlines in cache variables' values.
1412# Ultrix sh set writes to stderr and can't be redirected directly,
1413# and sets the high bit in the cache file unless we assign to the vars.
1414(set) 2>&1 |
1415  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1416  *ac_space=\ *)
1417    # `set' does not quote correctly, so add quotes (double-quote substitution
1418    # turns \\\\ into \\, and sed turns \\ into \).
1419    sed -n \
1420      -e "s/'/'\\\\''/g" \
1421      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1422    ;;
1423  *)
1424    # `set' quotes correctly as required by POSIX, so do not add quotes.
1425    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1426    ;;
1427  esac >> confcache
1428if cmp -s $cache_file confcache; then
1429  :
1430else
1431  if test -w $cache_file; then
1432    echo "updating cache $cache_file"
1433    cat confcache > $cache_file
1434  else
1435    echo "not updating unwritable cache $cache_file"
1436  fi
1437fi
1438rm -f confcache
1439
1440
1441# Actually configure libtool.  ac_aux_dir is where install-sh is found.
1442CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1443LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1444LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1445DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1446${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1447$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1448|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1449
1450# Reload cache, that may have been modified by ltconfig
1451if test -r "$cache_file"; then
1452  echo "loading cache $cache_file"
1453  . $cache_file
1454else
1455  echo "creating cache $cache_file"
1456  > $cache_file
1457fi
1458
1459
1460# This can be used to rebuild libtool when needed
1461LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1462
1463# Always use our own libtool.
1464LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1465
1466# Redirect the config.log output again, so that the ltconfig log is not
1467# clobbered by the next message.
1468exec 5>>./config.log
1469
1470for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1471do
1472# Extract the first word of "$ac_prog", so it can be a program name with args.
1473set dummy $ac_prog; ac_word=$2
1474echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1475echo "configure:1476: checking for $ac_word" >&5
1476if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1477  echo $ac_n "(cached) $ac_c" 1>&6
1478else
1479  if test -n "$CXX"; then
1480  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1481else
1482  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1483  ac_dummy="$PATH"
1484  for ac_dir in $ac_dummy; do
1485    test -z "$ac_dir" && ac_dir=.
1486    if test -f $ac_dir/$ac_word; then
1487      ac_cv_prog_CXX="$ac_prog"
1488      break
1489    fi
1490  done
1491  IFS="$ac_save_ifs"
1492fi
1493fi
1494CXX="$ac_cv_prog_CXX"
1495if test -n "$CXX"; then
1496  echo "$ac_t""$CXX" 1>&6
1497else
1498  echo "$ac_t""no" 1>&6
1499fi
1500
1501test -n "$CXX" && break
1502done
1503test -n "$CXX" || CXX="gcc"
1504
1505
1506echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1507echo "configure:1508: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1508
1509ac_ext=C
1510# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1511ac_cpp='$CXXCPP $CPPFLAGS'
1512ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1513ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1514cross_compiling=$ac_cv_prog_cxx_cross
1515
1516cat > conftest.$ac_ext << EOF
1517
1518#line 1519 "configure"
1519#include "confdefs.h"
1520
1521int main(){return(0);}
1522EOF
1523if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1524  ac_cv_prog_cxx_works=yes
1525  # If we can't run a trivial program, we are probably using a cross compiler.
1526  if (./conftest; exit) 2>/dev/null; then
1527    ac_cv_prog_cxx_cross=no
1528  else
1529    ac_cv_prog_cxx_cross=yes
1530  fi
1531else
1532  echo "configure: failed program was:" >&5
1533  cat conftest.$ac_ext >&5
1534  ac_cv_prog_cxx_works=no
1535fi
1536rm -fr conftest*
1537ac_ext=c
1538# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1539ac_cpp='$CPP $CPPFLAGS'
1540ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1541ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1542cross_compiling=$ac_cv_prog_cc_cross
1543
1544echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1545if test $ac_cv_prog_cxx_works = no; then
1546  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1547fi
1548echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1549echo "configure:1550: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1550echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1551cross_compiling=$ac_cv_prog_cxx_cross
1552
1553echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1554echo "configure:1555: checking whether we are using GNU C++" >&5
1555if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1556  echo $ac_n "(cached) $ac_c" 1>&6
1557else
1558  cat > conftest.C <<EOF
1559#ifdef __GNUC__
1560  yes;
1561#endif
1562EOF
1563if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1564  ac_cv_prog_gxx=yes
1565else
1566  ac_cv_prog_gxx=no
1567fi
1568fi
1569
1570echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1571
1572if test $ac_cv_prog_gxx = yes; then
1573  GXX=yes
1574else
1575  GXX=
1576fi
1577
1578ac_test_CXXFLAGS="${CXXFLAGS+set}"
1579ac_save_CXXFLAGS="$CXXFLAGS"
1580CXXFLAGS=
1581echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1582echo "configure:1583: checking whether ${CXX-g++} accepts -g" >&5
1583if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1584  echo $ac_n "(cached) $ac_c" 1>&6
1585else
1586  echo 'void f(){}' > conftest.cc
1587if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1588  ac_cv_prog_cxx_g=yes
1589else
1590  ac_cv_prog_cxx_g=no
1591fi
1592rm -f conftest*
1593
1594fi
1595
1596echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1597if test "$ac_test_CXXFLAGS" = set; then
1598  CXXFLAGS="$ac_save_CXXFLAGS"
1599elif test $ac_cv_prog_cxx_g = yes; then
1600  if test "$GXX" = yes; then
1601    CXXFLAGS="-g -O2"
1602  else
1603    CXXFLAGS="-g"
1604  fi
1605else
1606  if test "$GXX" = yes; then
1607    CXXFLAGS="-O2"
1608  else
1609    CXXFLAGS=
1610  fi
1611fi
1612
1613for ac_prog in gawk mawk nawk awk
1614do
1615# Extract the first word of "$ac_prog", so it can be a program name with args.
1616set dummy $ac_prog; ac_word=$2
1617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1618echo "configure:1619: checking for $ac_word" >&5
1619if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1620  echo $ac_n "(cached) $ac_c" 1>&6
1621else
1622  if test -n "$AWK"; then
1623  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1624else
1625  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1626  ac_dummy="$PATH"
1627  for ac_dir in $ac_dummy; do
1628    test -z "$ac_dir" && ac_dir=.
1629    if test -f $ac_dir/$ac_word; then
1630      ac_cv_prog_AWK="$ac_prog"
1631      break
1632    fi
1633  done
1634  IFS="$ac_save_ifs"
1635fi
1636fi
1637AWK="$ac_cv_prog_AWK"
1638if test -n "$AWK"; then
1639  echo "$ac_t""$AWK" 1>&6
1640else
1641  echo "$ac_t""no" 1>&6
1642fi
1643
1644test -n "$AWK" && break
1645done
1646
1647# Extract the first word of "gcc", so it can be a program name with args.
1648set dummy gcc; ac_word=$2
1649echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1650echo "configure:1651: checking for $ac_word" >&5
1651if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1652  echo $ac_n "(cached) $ac_c" 1>&6
1653else
1654  if test -n "$CC"; then
1655  ac_cv_prog_CC="$CC" # Let the user override the test.
1656else
1657  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1658  ac_dummy="$PATH"
1659  for ac_dir in $ac_dummy; do
1660    test -z "$ac_dir" && ac_dir=.
1661    if test -f $ac_dir/$ac_word; then
1662      ac_cv_prog_CC="gcc"
1663      break
1664    fi
1665  done
1666  IFS="$ac_save_ifs"
1667fi
1668fi
1669CC="$ac_cv_prog_CC"
1670if test -n "$CC"; then
1671  echo "$ac_t""$CC" 1>&6
1672else
1673  echo "$ac_t""no" 1>&6
1674fi
1675
1676if test -z "$CC"; then
1677  # Extract the first word of "cc", so it can be a program name with args.
1678set dummy cc; ac_word=$2
1679echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1680echo "configure:1681: checking for $ac_word" >&5
1681if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1682  echo $ac_n "(cached) $ac_c" 1>&6
1683else
1684  if test -n "$CC"; then
1685  ac_cv_prog_CC="$CC" # Let the user override the test.
1686else
1687  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1688  ac_prog_rejected=no
1689  ac_dummy="$PATH"
1690  for ac_dir in $ac_dummy; do
1691    test -z "$ac_dir" && ac_dir=.
1692    if test -f $ac_dir/$ac_word; then
1693      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1694        ac_prog_rejected=yes
1695        continue
1696      fi
1697      ac_cv_prog_CC="cc"
1698      break
1699    fi
1700  done
1701  IFS="$ac_save_ifs"
1702if test $ac_prog_rejected = yes; then
1703  # We found a bogon in the path, so make sure we never use it.
1704  set dummy $ac_cv_prog_CC
1705  shift
1706  if test $# -gt 0; then
1707    # We chose a different compiler from the bogus one.
1708    # However, it has the same basename, so the bogon will be chosen
1709    # first if we set CC to just the basename; use the full file name.
1710    shift
1711    set dummy "$ac_dir/$ac_word" "$@"
1712    shift
1713    ac_cv_prog_CC="$@"
1714  fi
1715fi
1716fi
1717fi
1718CC="$ac_cv_prog_CC"
1719if test -n "$CC"; then
1720  echo "$ac_t""$CC" 1>&6
1721else
1722  echo "$ac_t""no" 1>&6
1723fi
1724
1725  if test -z "$CC"; then
1726    case "`uname -s`" in
1727    *win32* | *WIN32*)
1728      # Extract the first word of "cl", so it can be a program name with args.
1729set dummy cl; ac_word=$2
1730echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1731echo "configure:1732: checking for $ac_word" >&5
1732if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1733  echo $ac_n "(cached) $ac_c" 1>&6
1734else
1735  if test -n "$CC"; then
1736  ac_cv_prog_CC="$CC" # Let the user override the test.
1737else
1738  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1739  ac_dummy="$PATH"
1740  for ac_dir in $ac_dummy; do
1741    test -z "$ac_dir" && ac_dir=.
1742    if test -f $ac_dir/$ac_word; then
1743      ac_cv_prog_CC="cl"
1744      break
1745    fi
1746  done
1747  IFS="$ac_save_ifs"
1748fi
1749fi
1750CC="$ac_cv_prog_CC"
1751if test -n "$CC"; then
1752  echo "$ac_t""$CC" 1>&6
1753else
1754  echo "$ac_t""no" 1>&6
1755fi
1756 ;;
1757    esac
1758  fi
1759  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1760fi
1761
1762echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1763echo "configure:1764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1764
1765ac_ext=c
1766# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1767ac_cpp='$CPP $CPPFLAGS'
1768ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1769ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1770cross_compiling=$ac_cv_prog_cc_cross
1771
1772cat > conftest.$ac_ext << EOF
1773
1774#line 1775 "configure"
1775#include "confdefs.h"
1776
1777main(){return(0);}
1778EOF
1779if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780  ac_cv_prog_cc_works=yes
1781  # If we can't run a trivial program, we are probably using a cross compiler.
1782  if (./conftest; exit) 2>/dev/null; then
1783    ac_cv_prog_cc_cross=no
1784  else
1785    ac_cv_prog_cc_cross=yes
1786  fi
1787else
1788  echo "configure: failed program was:" >&5
1789  cat conftest.$ac_ext >&5
1790  ac_cv_prog_cc_works=no
1791fi
1792rm -fr conftest*
1793ac_ext=c
1794# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1795ac_cpp='$CPP $CPPFLAGS'
1796ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1797ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1798cross_compiling=$ac_cv_prog_cc_cross
1799
1800echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1801if test $ac_cv_prog_cc_works = no; then
1802  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1803fi
1804echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1805echo "configure:1806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1806echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1807cross_compiling=$ac_cv_prog_cc_cross
1808
1809echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1810echo "configure:1811: checking whether we are using GNU C" >&5
1811if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1812  echo $ac_n "(cached) $ac_c" 1>&6
1813else
1814  cat > conftest.c <<EOF
1815#ifdef __GNUC__
1816  yes;
1817#endif
1818EOF
1819if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1820  ac_cv_prog_gcc=yes
1821else
1822  ac_cv_prog_gcc=no
1823fi
1824fi
1825
1826echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1827
1828if test $ac_cv_prog_gcc = yes; then
1829  GCC=yes
1830else
1831  GCC=
1832fi
1833
1834ac_test_CFLAGS="${CFLAGS+set}"
1835ac_save_CFLAGS="$CFLAGS"
1836CFLAGS=
1837echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1838echo "configure:1839: checking whether ${CC-cc} accepts -g" >&5
1839if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1840  echo $ac_n "(cached) $ac_c" 1>&6
1841else
1842  echo 'void f(){}' > conftest.c
1843if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1844  ac_cv_prog_cc_g=yes
1845else
1846  ac_cv_prog_cc_g=no
1847fi
1848rm -f conftest*
1849
1850fi
1851
1852echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1853if test "$ac_test_CFLAGS" = set; then
1854  CFLAGS="$ac_save_CFLAGS"
1855elif test $ac_cv_prog_cc_g = yes; then
1856  if test "$GCC" = yes; then
1857    CFLAGS="-g -O2"
1858  else
1859    CFLAGS="-g"
1860  fi
1861else
1862  if test "$GCC" = yes; then
1863    CFLAGS="-O2"
1864  else
1865    CFLAGS=
1866  fi
1867fi
1868
1869echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1870echo "configure:1871: checking how to run the C preprocessor" >&5
1871# On Suns, sometimes $CPP names a directory.
1872if test -n "$CPP" && test -d "$CPP"; then
1873  CPP=
1874fi
1875if test -z "$CPP"; then
1876if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1877  echo $ac_n "(cached) $ac_c" 1>&6
1878else
1879    # This must be in double quotes, not single quotes, because CPP may get
1880  # substituted into the Makefile and "${CC-cc}" will confuse make.
1881  CPP="${CC-cc} -E"
1882  # On the NeXT, cc -E runs the code through the compiler's parser,
1883  # not just through cpp.
1884  cat > conftest.$ac_ext <<EOF
1885#line 1886 "configure"
1886#include "confdefs.h"
1887#include <assert.h>
1888Syntax Error
1889EOF
1890ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1891{ (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1892ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1893if test -z "$ac_err"; then
1894  :
1895else
1896  echo "$ac_err" >&5
1897  echo "configure: failed program was:" >&5
1898  cat conftest.$ac_ext >&5
1899  rm -rf conftest*
1900  CPP="${CC-cc} -E -traditional-cpp"
1901  cat > conftest.$ac_ext <<EOF
1902#line 1903 "configure"
1903#include "confdefs.h"
1904#include <assert.h>
1905Syntax Error
1906EOF
1907ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1908{ (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1909ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1910if test -z "$ac_err"; then
1911  :
1912else
1913  echo "$ac_err" >&5
1914  echo "configure: failed program was:" >&5
1915  cat conftest.$ac_ext >&5
1916  rm -rf conftest*
1917  CPP="${CC-cc} -nologo -E"
1918  cat > conftest.$ac_ext <<EOF
1919#line 1920 "configure"
1920#include "confdefs.h"
1921#include <assert.h>
1922Syntax Error
1923EOF
1924ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1925{ (eval echo configure:1926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1926ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1927if test -z "$ac_err"; then
1928  :
1929else
1930  echo "$ac_err" >&5
1931  echo "configure: failed program was:" >&5
1932  cat conftest.$ac_ext >&5
1933  rm -rf conftest*
1934  CPP=/lib/cpp
1935fi
1936rm -f conftest*
1937fi
1938rm -f conftest*
1939fi
1940rm -f conftest*
1941  ac_cv_prog_CPP="$CPP"
1942fi
1943  CPP="$ac_cv_prog_CPP"
1944else
1945  ac_cv_prog_CPP="$CPP"
1946fi
1947echo "$ac_t""$CPP" 1>&6
1948
1949# Find a good install program.  We prefer a C program (faster),
1950# so one script is as good as another.  But avoid the broken or
1951# incompatible versions:
1952# SysV /etc/install, /usr/sbin/install
1953# SunOS /usr/etc/install
1954# IRIX /sbin/install
1955# AIX /bin/install
1956# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1957# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1958# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1959# ./install, which can be erroneously created by make from ./install.sh.
1960echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1961echo "configure:1962: checking for a BSD compatible install" >&5
1962if test -z "$INSTALL"; then
1963if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1964  echo $ac_n "(cached) $ac_c" 1>&6
1965else
1966    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1967  for ac_dir in $PATH; do
1968    # Account for people who put trailing slashes in PATH elements.
1969    case "$ac_dir/" in
1970    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1971    *)
1972      # OSF1 and SCO ODT 3.0 have their own names for install.
1973      # Don't use installbsd from OSF since it installs stuff as root
1974      # by default.
1975      for ac_prog in ginstall scoinst install; do
1976        if test -f $ac_dir/$ac_prog; then
1977          if test $ac_prog = install &&
1978            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1979            # AIX install.  It has an incompatible calling convention.
1980            :
1981          else
1982            ac_cv_path_install="$ac_dir/$ac_prog -c"
1983            break 2
1984          fi
1985        fi
1986      done
1987      ;;
1988    esac
1989  done
1990  IFS="$ac_save_IFS"
1991
1992fi
1993  if test "${ac_cv_path_install+set}" = set; then
1994    INSTALL="$ac_cv_path_install"
1995  else
1996    # As a last resort, use the slow shell script.  We don't cache a
1997    # path for INSTALL within a source directory, because that will
1998    # break other packages using the cache if that directory is
1999    # removed, or if the path is relative.
2000    INSTALL="$ac_install_sh"
2001  fi
2002fi
2003echo "$ac_t""$INSTALL" 1>&6
2004
2005# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2006# It thinks the first close brace ends the variable substitution.
2007test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2008
2009test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2010
2011test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2012
2013echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2014echo "configure:2015: checking whether ln -s works" >&5
2015if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2016  echo $ac_n "(cached) $ac_c" 1>&6
2017else
2018  rm -f conftestdata
2019if ln -s X conftestdata 2>/dev/null
2020then
2021  rm -f conftestdata
2022  ac_cv_prog_LN_S="ln -s"
2023else
2024  ac_cv_prog_LN_S=ln
2025fi
2026fi
2027LN_S="$ac_cv_prog_LN_S"
2028if test "$ac_cv_prog_LN_S" = "ln -s"; then
2029  echo "$ac_t""yes" 1>&6
2030else
2031  echo "$ac_t""no" 1>&6
2032fi
2033
2034echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2035echo "configure:2036: checking whether ${MAKE-make} sets \${MAKE}" >&5
2036set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2037if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2038  echo $ac_n "(cached) $ac_c" 1>&6
2039else
2040  cat > conftestmake <<\EOF
2041all:
2042        @echo 'ac_maketemp="${MAKE}"'
2043EOF
2044# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2045eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2046if test -n "$ac_maketemp"; then
2047  eval ac_cv_prog_make_${ac_make}_set=yes
2048else
2049  eval ac_cv_prog_make_${ac_make}_set=no
2050fi
2051rm -f conftestmake
2052fi
2053if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2054  echo "$ac_t""yes" 1>&6
2055  SET_MAKE=
2056else
2057  echo "$ac_t""no" 1>&6
2058  SET_MAKE="MAKE=${MAKE-make}"
2059fi
2060
2061# Extract the first word of "ranlib", so it can be a program name with args.
2062set dummy ranlib; ac_word=$2
2063echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2064echo "configure:2065: checking for $ac_word" >&5
2065if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2066  echo $ac_n "(cached) $ac_c" 1>&6
2067else
2068  if test -n "$RANLIB"; then
2069  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2070else
2071  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2072  ac_dummy="$PATH"
2073  for ac_dir in $ac_dummy; do
2074    test -z "$ac_dir" && ac_dir=.
2075    if test -f $ac_dir/$ac_word; then
2076      ac_cv_prog_RANLIB="ranlib"
2077      break
2078    fi
2079  done
2080  IFS="$ac_save_ifs"
2081  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2082fi
2083fi
2084RANLIB="$ac_cv_prog_RANLIB"
2085if test -n "$RANLIB"; then
2086  echo "$ac_t""$RANLIB" 1>&6
2087else
2088  echo "$ac_t""no" 1>&6
2089fi
2090
2091
2092# If we find X, set shell vars x_includes and x_libraries to the
2093# paths, otherwise set no_x=yes.
2094# Uses ac_ vars as temps to allow command line to override cache and checks.
2095# --without-x overrides everything else, but does not touch the cache.
2096echo $ac_n "checking for X""... $ac_c" 1>&6
2097echo "configure:2098: checking for X" >&5
2098
2099# Check whether --with-x or --without-x was given.
2100if test "${with_x+set}" = set; then
2101  withval="$with_x"
2102  :
2103fi
2104
2105# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2106if test "x$with_x" = xno; then
2107  # The user explicitly disabled X.
2108  have_x=disabled
2109else
2110  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2111    # Both variables are already set.
2112    have_x=yes
2113  else
2114if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2115  echo $ac_n "(cached) $ac_c" 1>&6
2116else
2117  # One or both of the vars are not set, and there is no cached value.
2118ac_x_includes=NO ac_x_libraries=NO
2119rm -fr conftestdir
2120if mkdir conftestdir; then
2121  cd conftestdir
2122  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2123  cat > Imakefile <<'EOF'
2124acfindx:
2125        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2126EOF
2127  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2128    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2129    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2130    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2131    for ac_extension in a so sl; do
2132      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2133        test -f $ac_im_libdir/libX11.$ac_extension; then
2134        ac_im_usrlibdir=$ac_im_libdir; break
2135      fi
2136    done
2137    # Screen out bogus values from the imake configuration.  They are
2138    # bogus both because they are the default anyway, and because
2139    # using them would break gcc on systems where it needs fixed includes.
2140    case "$ac_im_incroot" in
2141        /usr/include) ;;
2142        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2143    esac
2144    case "$ac_im_usrlibdir" in
2145        /usr/lib | /lib) ;;
2146        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2147    esac
2148  fi
2149  cd ..
2150  rm -fr conftestdir
2151fi
2152
2153if test "$ac_x_includes" = NO; then
2154  # Guess where to find include files, by looking for this one X11 .h file.
2155  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2156
2157  # First, try using that file with no special directory specified.
2158cat > conftest.$ac_ext <<EOF
2159#line 2160 "configure"
2160#include "confdefs.h"
2161#include <$x_direct_test_include>
2162EOF
2163ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2164{ (eval echo configure:2165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2165ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2166if test -z "$ac_err"; then
2167  rm -rf conftest*
2168  # We can compile using X headers with no special include directory.
2169ac_x_includes=
2170else
2171  echo "$ac_err" >&5
2172  echo "configure: failed program was:" >&5
2173  cat conftest.$ac_ext >&5
2174  rm -rf conftest*
2175  # Look for the header file in a standard set of common directories.
2176# Check X11 before X11Rn because it is often a symlink to the current release.
2177  for ac_dir in               \
2178    /usr/X11/include          \
2179    /usr/X11R6/include        \
2180    /usr/X11R5/include        \
2181    /usr/X11R4/include        \
2182                              \
2183    /usr/include/X11          \
2184    /usr/include/X11R6        \
2185    /usr/include/X11R5        \
2186    /usr/include/X11R4        \
2187                              \
2188    /usr/local/X11/include    \
2189    /usr/local/X11R6/include  \
2190    /usr/local/X11R5/include  \
2191    /usr/local/X11R4/include  \
2192                              \
2193    /usr/local/include/X11    \
2194    /usr/local/include/X11R6  \
2195    /usr/local/include/X11R5  \
2196    /usr/local/include/X11R4  \
2197                              \
2198    /usr/X386/include         \
2199    /usr/x386/include         \
2200    /usr/XFree86/include/X11  \
2201                              \
2202    /usr/include              \
2203    /usr/local/include        \
2204    /usr/unsupported/include  \
2205    /usr/athena/include       \
2206    /usr/local/x11r5/include  \
2207    /usr/lpp/Xamples/include  \
2208                              \
2209    /usr/openwin/include      \
2210    /usr/openwin/share/include \
2211    ; \
2212  do
2213    if test -r "$ac_dir/$x_direct_test_include"; then
2214      ac_x_includes=$ac_dir
2215      break
2216    fi
2217  done
2218fi
2219rm -f conftest*
2220fi # $ac_x_includes = NO
2221
2222if test "$ac_x_libraries" = NO; then
2223  # Check for the libraries.
2224
2225  test -z "$x_direct_test_library" && x_direct_test_library=Xt
2226  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2227
2228  # See if we find them without any special options.
2229  # Don't add to $LIBS permanently.
2230  ac_save_LIBS="$LIBS"
2231  LIBS="-l$x_direct_test_library $LIBS"
2232cat > conftest.$ac_ext <<EOF
2233#line 2234 "configure"
2234#include "confdefs.h"
2235
2236int main() {
2237${x_direct_test_function}()
2238; return 0; }
2239EOF
2240if { (eval echo configure:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2241  rm -rf conftest*
2242  LIBS="$ac_save_LIBS"
2243# We can link X programs with no special library path.
2244ac_x_libraries=
2245else
2246  echo "configure: failed program was:" >&5
2247  cat conftest.$ac_ext >&5
2248  rm -rf conftest*
2249  LIBS="$ac_save_LIBS"
2250# First see if replacing the include by lib works.
2251# Check X11 before X11Rn because it is often a symlink to the current release.
2252for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2253    /usr/X11/lib          \
2254    /usr/X11R6/lib        \
2255    /usr/X11R5/lib        \
2256    /usr/X11R4/lib        \
2257                          \
2258    /usr/lib/X11          \
2259    /usr/lib/X11R6        \
2260    /usr/lib/X11R5        \
2261    /usr/lib/X11R4        \
2262                          \
2263    /usr/local/X11/lib    \
2264    /usr/local/X11R6/lib  \
2265    /usr/local/X11R5/lib  \
2266    /usr/local/X11R4/lib  \
2267                          \
2268    /usr/local/lib/X11    \
2269    /usr/local/lib/X11R6  \
2270    /usr/local/lib/X11R5  \
2271    /usr/local/lib/X11R4  \
2272                          \
2273    /usr/X386/lib         \
2274    /usr/x386/lib         \
2275    /usr/XFree86/lib/X11  \
2276                          \
2277    /usr/lib              \
2278    /usr/local/lib        \
2279    /usr/unsupported/lib  \
2280    /usr/athena/lib       \
2281    /usr/local/x11r5/lib  \
2282    /usr/lpp/Xamples/lib  \
2283    /lib/usr/lib/X11      \
2284                          \
2285    /usr/openwin/lib      \
2286    /usr/openwin/share/lib \
2287    ; \
2288do
2289  for ac_extension in a so sl; do
2290    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2291      ac_x_libraries=$ac_dir
2292      break 2
2293    fi
2294  done
2295done
2296fi
2297rm -f conftest*
2298fi # $ac_x_libraries = NO
2299
2300if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2301  # Didn't find X anywhere.  Cache the known absence of X.
2302  ac_cv_have_x="have_x=no"
2303else
2304  # Record where we found X for the cache.
2305  ac_cv_have_x="have_x=yes \
2306                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2307fi
2308fi
2309  fi
2310  eval "$ac_cv_have_x"
2311fi # $with_x != no
2312
2313if test "$have_x" != yes; then
2314  echo "$ac_t""$have_x" 1>&6
2315  no_x=yes
2316else
2317  # If each of the values was on the command line, it overrides each guess.
2318  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2319  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2320  # Update the cache value to reflect the command line values.
2321  ac_cv_have_x="have_x=yes \
2322                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2323  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2324fi
2325
2326if test "$no_x" = yes; then
2327  # Not all programs may use this symbol, but it does not hurt to define it.
2328  cat >> confdefs.h <<\EOF
2329#define X_DISPLAY_MISSING 1
2330EOF
2331
2332  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2333else
2334  if test -n "$x_includes"; then
2335    X_CFLAGS="$X_CFLAGS -I$x_includes"
2336  fi
2337
2338  # It would also be nice to do this for all -L options, not just this one.
2339  if test -n "$x_libraries"; then
2340    X_LIBS="$X_LIBS -L$x_libraries"
2341    # For Solaris; some versions of Sun CC require a space after -R and
2342    # others require no space.  Words are not sufficient . . . .
2343    case "`(uname -sr) 2>/dev/null`" in
2344    "SunOS 5"*)
2345      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2346echo "configure:2347: checking whether -R must be followed by a space" >&5
2347      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2348      cat > conftest.$ac_ext <<EOF
2349#line 2350 "configure"
2350#include "confdefs.h"
2351
2352int main() {
2353
2354; return 0; }
2355EOF
2356if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2357  rm -rf conftest*
2358  ac_R_nospace=yes
2359else
2360  echo "configure: failed program was:" >&5
2361  cat conftest.$ac_ext >&5
2362  rm -rf conftest*
2363  ac_R_nospace=no
2364fi
2365rm -f conftest*
2366      if test $ac_R_nospace = yes; then
2367        echo "$ac_t""no" 1>&6
2368        X_LIBS="$X_LIBS -R$x_libraries"
2369      else
2370        LIBS="$ac_xsave_LIBS -R $x_libraries"
2371        cat > conftest.$ac_ext <<EOF
2372#line 2373 "configure"
2373#include "confdefs.h"
2374
2375int main() {
2376
2377; return 0; }
2378EOF
2379if { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2380  rm -rf conftest*
2381  ac_R_space=yes
2382else
2383  echo "configure: failed program was:" >&5
2384  cat conftest.$ac_ext >&5
2385  rm -rf conftest*
2386  ac_R_space=no
2387fi
2388rm -f conftest*
2389        if test $ac_R_space = yes; then
2390          echo "$ac_t""yes" 1>&6
2391          X_LIBS="$X_LIBS -R $x_libraries"
2392        else
2393          echo "$ac_t""neither works" 1>&6
2394        fi
2395      fi
2396      LIBS="$ac_xsave_LIBS"
2397    esac
2398  fi
2399
2400  # Check for system-dependent libraries X programs must link with.
2401  # Do this before checking for the system-independent R6 libraries
2402  # (-lICE), since we may need -lsocket or whatever for X linking.
2403
2404  if test "$ISC" = yes; then
2405    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2406  else
2407    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2408    # libraries were built with DECnet support.  And karl@cs.umb.edu says
2409    # the Alpha needs dnet_stub (dnet does not exist).
2410    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2411echo "configure:2412: checking for dnet_ntoa in -ldnet" >&5
2412ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2413if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2414  echo $ac_n "(cached) $ac_c" 1>&6
2415else
2416  ac_save_LIBS="$LIBS"
2417LIBS="-ldnet  $LIBS"
2418cat > conftest.$ac_ext <<EOF
2419#line 2420 "configure"
2420#include "confdefs.h"
2421/* Override any gcc2 internal prototype to avoid an error.  */
2422/* We use char because int might match the return type of a gcc2
2423    builtin and then its argument prototype would still apply.  */
2424char dnet_ntoa();
2425
2426int main() {
2427dnet_ntoa()
2428; return 0; }
2429EOF
2430if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2431  rm -rf conftest*
2432  eval "ac_cv_lib_$ac_lib_var=yes"
2433else
2434  echo "configure: failed program was:" >&5
2435  cat conftest.$ac_ext >&5
2436  rm -rf conftest*
2437  eval "ac_cv_lib_$ac_lib_var=no"
2438fi
2439rm -f conftest*
2440LIBS="$ac_save_LIBS"
2441
2442fi
2443if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2444  echo "$ac_t""yes" 1>&6
2445  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2446else
2447  echo "$ac_t""no" 1>&6
2448fi
2449
2450    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2451      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2452echo "configure:2453: checking for dnet_ntoa in -ldnet_stub" >&5
2453ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2454if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2455  echo $ac_n "(cached) $ac_c" 1>&6
2456else
2457  ac_save_LIBS="$LIBS"
2458LIBS="-ldnet_stub  $LIBS"
2459cat > conftest.$ac_ext <<EOF
2460#line 2461 "configure"
2461#include "confdefs.h"
2462/* Override any gcc2 internal prototype to avoid an error.  */
2463/* We use char because int might match the return type of a gcc2
2464    builtin and then its argument prototype would still apply.  */
2465char dnet_ntoa();
2466
2467int main() {
2468dnet_ntoa()
2469; return 0; }
2470EOF
2471if { (eval echo configure:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2472  rm -rf conftest*
2473  eval "ac_cv_lib_$ac_lib_var=yes"
2474else
2475  echo "configure: failed program was:" >&5
2476  cat conftest.$ac_ext >&5
2477  rm -rf conftest*
2478  eval "ac_cv_lib_$ac_lib_var=no"
2479fi
2480rm -f conftest*
2481LIBS="$ac_save_LIBS"
2482
2483fi
2484if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2485  echo "$ac_t""yes" 1>&6
2486  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2487else
2488  echo "$ac_t""no" 1>&6
2489fi
2490
2491    fi
2492
2493    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2494    # to get the SysV transport functions.
2495    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2496    # needs -lnsl.
2497    # The nsl library prevents programs from opening the X display
2498    # on Irix 5.2, according to dickey@clark.net.
2499    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2500echo "configure:2501: checking for gethostbyname" >&5
2501if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2502  echo $ac_n "(cached) $ac_c" 1>&6
2503else
2504  cat > conftest.$ac_ext <<EOF
2505#line 2506 "configure"
2506#include "confdefs.h"
2507/* System header to define __stub macros and hopefully few prototypes,
2508    which can conflict with char gethostbyname(); below.  */
2509#include <assert.h>
2510/* Override any gcc2 internal prototype to avoid an error.  */
2511/* We use char because int might match the return type of a gcc2
2512    builtin and then its argument prototype would still apply.  */
2513char gethostbyname();
2514
2515int main() {
2516
2517/* The GNU C library defines this for functions which it implements
2518    to always fail with ENOSYS.  Some functions are actually named
2519    something starting with __ and the normal name is an alias.  */
2520#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2521choke me
2522#else
2523gethostbyname();
2524#endif
2525
2526; return 0; }
2527EOF
2528if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529  rm -rf conftest*
2530  eval "ac_cv_func_gethostbyname=yes"
2531else
2532  echo "configure: failed program was:" >&5
2533  cat conftest.$ac_ext >&5
2534  rm -rf conftest*
2535  eval "ac_cv_func_gethostbyname=no"
2536fi
2537rm -f conftest*
2538fi
2539
2540if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2541  echo "$ac_t""yes" 1>&6
2542  :
2543else
2544  echo "$ac_t""no" 1>&6
2545fi
2546
2547    if test $ac_cv_func_gethostbyname = no; then
2548      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2549echo "configure:2550: checking for gethostbyname in -lnsl" >&5
2550ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2551if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2552  echo $ac_n "(cached) $ac_c" 1>&6
2553else
2554  ac_save_LIBS="$LIBS"
2555LIBS="-lnsl  $LIBS"
2556cat > conftest.$ac_ext <<EOF
2557#line 2558 "configure"
2558#include "confdefs.h"
2559/* Override any gcc2 internal prototype to avoid an error.  */
2560/* We use char because int might match the return type of a gcc2
2561    builtin and then its argument prototype would still apply.  */
2562char gethostbyname();
2563
2564int main() {
2565gethostbyname()
2566; return 0; }
2567EOF
2568if { (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2569  rm -rf conftest*
2570  eval "ac_cv_lib_$ac_lib_var=yes"
2571else
2572  echo "configure: failed program was:" >&5
2573  cat conftest.$ac_ext >&5
2574  rm -rf conftest*
2575  eval "ac_cv_lib_$ac_lib_var=no"
2576fi
2577rm -f conftest*
2578LIBS="$ac_save_LIBS"
2579
2580fi
2581if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2582  echo "$ac_t""yes" 1>&6
2583  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2584else
2585  echo "$ac_t""no" 1>&6
2586fi
2587
2588    fi
2589
2590    # lieder@skyler.mavd.honeywell.com says without -lsocket,
2591    # socket/setsockopt and other routines are undefined under SCO ODT
2592    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
2593    # on later versions), says simon@lia.di.epfl.ch: it contains
2594    # gethostby* variants that don't use the nameserver (or something).
2595    # -lsocket must be given before -lnsl if both are needed.
2596    # We assume that if connect needs -lnsl, so does gethostbyname.
2597    echo $ac_n "checking for connect""... $ac_c" 1>&6
2598echo "configure:2599: checking for connect" >&5
2599if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2600  echo $ac_n "(cached) $ac_c" 1>&6
2601else
2602  cat > conftest.$ac_ext <<EOF
2603#line 2604 "configure"
2604#include "confdefs.h"
2605/* System header to define __stub macros and hopefully few prototypes,
2606    which can conflict with char connect(); below.  */
2607#include <assert.h>
2608/* Override any gcc2 internal prototype to avoid an error.  */
2609/* We use char because int might match the return type of a gcc2
2610    builtin and then its argument prototype would still apply.  */
2611char connect();
2612
2613int main() {
2614
2615/* The GNU C library defines this for functions which it implements
2616    to always fail with ENOSYS.  Some functions are actually named
2617    something starting with __ and the normal name is an alias.  */
2618#if defined (__stub_connect) || defined (__stub___connect)
2619choke me
2620#else
2621connect();
2622#endif
2623
2624; return 0; }
2625EOF
2626if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2627  rm -rf conftest*
2628  eval "ac_cv_func_connect=yes"
2629else
2630  echo "configure: failed program was:" >&5
2631  cat conftest.$ac_ext >&5
2632  rm -rf conftest*
2633  eval "ac_cv_func_connect=no"
2634fi
2635rm -f conftest*
2636fi
2637
2638if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2639  echo "$ac_t""yes" 1>&6
2640  :
2641else
2642  echo "$ac_t""no" 1>&6
2643fi
2644
2645    if test $ac_cv_func_connect = no; then
2646      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2647echo "configure:2648: checking for connect in -lsocket" >&5
2648ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2649if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2650  echo $ac_n "(cached) $ac_c" 1>&6
2651else
2652  ac_save_LIBS="$LIBS"
2653LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2654cat > conftest.$ac_ext <<EOF
2655#line 2656 "configure"
2656#include "confdefs.h"
2657/* Override any gcc2 internal prototype to avoid an error.  */
2658/* We use char because int might match the return type of a gcc2
2659    builtin and then its argument prototype would still apply.  */
2660char connect();
2661
2662int main() {
2663connect()
2664; return 0; }
2665EOF
2666if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2667  rm -rf conftest*
2668  eval "ac_cv_lib_$ac_lib_var=yes"
2669else
2670  echo "configure: failed program was:" >&5
2671  cat conftest.$ac_ext >&5
2672  rm -rf conftest*
2673  eval "ac_cv_lib_$ac_lib_var=no"
2674fi
2675rm -f conftest*
2676LIBS="$ac_save_LIBS"
2677
2678fi
2679if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2680  echo "$ac_t""yes" 1>&6
2681  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2682else
2683  echo "$ac_t""no" 1>&6
2684fi
2685
2686    fi
2687
2688    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2689    echo $ac_n "checking for remove""... $ac_c" 1>&6
2690echo "configure:2691: checking for remove" >&5
2691if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2692  echo $ac_n "(cached) $ac_c" 1>&6
2693else
2694  cat > conftest.$ac_ext <<EOF
2695#line 2696 "configure"
2696#include "confdefs.h"
2697/* System header to define __stub macros and hopefully few prototypes,
2698    which can conflict with char remove(); below.  */
2699#include <assert.h>
2700/* Override any gcc2 internal prototype to avoid an error.  */
2701/* We use char because int might match the return type of a gcc2
2702    builtin and then its argument prototype would still apply.  */
2703char remove();
2704
2705int main() {
2706
2707/* The GNU C library defines this for functions which it implements
2708    to always fail with ENOSYS.  Some functions are actually named
2709    something starting with __ and the normal name is an alias.  */
2710#if defined (__stub_remove) || defined (__stub___remove)
2711choke me
2712#else
2713remove();
2714#endif
2715
2716; return 0; }
2717EOF
2718if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2719  rm -rf conftest*
2720  eval "ac_cv_func_remove=yes"
2721else
2722  echo "configure: failed program was:" >&5
2723  cat conftest.$ac_ext >&5
2724  rm -rf conftest*
2725  eval "ac_cv_func_remove=no"
2726fi
2727rm -f conftest*
2728fi
2729
2730if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2731  echo "$ac_t""yes" 1>&6
2732  :
2733else
2734  echo "$ac_t""no" 1>&6
2735fi
2736
2737    if test $ac_cv_func_remove = no; then
2738      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2739echo "configure:2740: checking for remove in -lposix" >&5
2740ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2741if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2742  echo $ac_n "(cached) $ac_c" 1>&6
2743else
2744  ac_save_LIBS="$LIBS"
2745LIBS="-lposix  $LIBS"
2746cat > conftest.$ac_ext <<EOF
2747#line 2748 "configure"
2748#include "confdefs.h"
2749/* Override any gcc2 internal prototype to avoid an error.  */
2750/* We use char because int might match the return type of a gcc2
2751    builtin and then its argument prototype would still apply.  */
2752char remove();
2753
2754int main() {
2755remove()
2756; return 0; }
2757EOF
2758if { (eval echo configure:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2759  rm -rf conftest*
2760  eval "ac_cv_lib_$ac_lib_var=yes"
2761else
2762  echo "configure: failed program was:" >&5
2763  cat conftest.$ac_ext >&5
2764  rm -rf conftest*
2765  eval "ac_cv_lib_$ac_lib_var=no"
2766fi
2767rm -f conftest*
2768LIBS="$ac_save_LIBS"
2769
2770fi
2771if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2772  echo "$ac_t""yes" 1>&6
2773  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2774else
2775  echo "$ac_t""no" 1>&6
2776fi
2777
2778    fi
2779
2780    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2781    echo $ac_n "checking for shmat""... $ac_c" 1>&6
2782echo "configure:2783: checking for shmat" >&5
2783if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2784  echo $ac_n "(cached) $ac_c" 1>&6
2785else
2786  cat > conftest.$ac_ext <<EOF
2787#line 2788 "configure"
2788#include "confdefs.h"
2789/* System header to define __stub macros and hopefully few prototypes,
2790    which can conflict with char shmat(); below.  */
2791#include <assert.h>
2792/* Override any gcc2 internal prototype to avoid an error.  */
2793/* We use char because int might match the return type of a gcc2
2794    builtin and then its argument prototype would still apply.  */
2795char shmat();
2796
2797int main() {
2798
2799/* The GNU C library defines this for functions which it implements
2800    to always fail with ENOSYS.  Some functions are actually named
2801    something starting with __ and the normal name is an alias.  */
2802#if defined (__stub_shmat) || defined (__stub___shmat)
2803choke me
2804#else
2805shmat();
2806#endif
2807
2808; return 0; }
2809EOF
2810if { (eval echo configure:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2811  rm -rf conftest*
2812  eval "ac_cv_func_shmat=yes"
2813else
2814  echo "configure: failed program was:" >&5
2815  cat conftest.$ac_ext >&5
2816  rm -rf conftest*
2817  eval "ac_cv_func_shmat=no"
2818fi
2819rm -f conftest*
2820fi
2821
2822if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2823  echo "$ac_t""yes" 1>&6
2824  :
2825else
2826  echo "$ac_t""no" 1>&6
2827fi
2828
2829    if test $ac_cv_func_shmat = no; then
2830      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2831echo "configure:2832: checking for shmat in -lipc" >&5
2832ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2833if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2834  echo $ac_n "(cached) $ac_c" 1>&6
2835else
2836  ac_save_LIBS="$LIBS"
2837LIBS="-lipc  $LIBS"
2838cat > conftest.$ac_ext <<EOF
2839#line 2840 "configure"
2840#include "confdefs.h"
2841/* Override any gcc2 internal prototype to avoid an error.  */
2842/* We use char because int might match the return type of a gcc2
2843    builtin and then its argument prototype would still apply.  */
2844char shmat();
2845
2846int main() {
2847shmat()
2848; return 0; }
2849EOF
2850if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2851  rm -rf conftest*
2852  eval "ac_cv_lib_$ac_lib_var=yes"
2853else
2854  echo "configure: failed program was:" >&5
2855  cat conftest.$ac_ext >&5
2856  rm -rf conftest*
2857  eval "ac_cv_lib_$ac_lib_var=no"
2858fi
2859rm -f conftest*
2860LIBS="$ac_save_LIBS"
2861
2862fi
2863if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2864  echo "$ac_t""yes" 1>&6
2865  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2866else
2867  echo "$ac_t""no" 1>&6
2868fi
2869
2870    fi
2871  fi
2872
2873  # Check for libraries that X11R6 Xt/Xaw programs need.
2874  ac_save_LDFLAGS="$LDFLAGS"
2875  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2876  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2877  # check for ICE first), but we must link in the order -lSM -lICE or
2878  # we get undefined symbols.  So assume we have SM if we have ICE.
2879  # These have to be linked with before -lX11, unlike the other
2880  # libraries we check for below, so use a different variable.
2881  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2882  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2883echo "configure:2884: checking for IceConnectionNumber in -lICE" >&5
2884ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2885if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2886  echo $ac_n "(cached) $ac_c" 1>&6
2887else
2888  ac_save_LIBS="$LIBS"
2889LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2890cat > conftest.$ac_ext <<EOF
2891#line 2892 "configure"
2892#include "confdefs.h"
2893/* Override any gcc2 internal prototype to avoid an error.  */
2894/* We use char because int might match the return type of a gcc2
2895    builtin and then its argument prototype would still apply.  */
2896char IceConnectionNumber();
2897
2898int main() {
2899IceConnectionNumber()
2900; return 0; }
2901EOF
2902if { (eval echo configure:2903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2903  rm -rf conftest*
2904  eval "ac_cv_lib_$ac_lib_var=yes"
2905else
2906  echo "configure: failed program was:" >&5
2907  cat conftest.$ac_ext >&5
2908  rm -rf conftest*
2909  eval "ac_cv_lib_$ac_lib_var=no"
2910fi
2911rm -f conftest*
2912LIBS="$ac_save_LIBS"
2913
2914fi
2915if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2916  echo "$ac_t""yes" 1>&6
2917  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2918else
2919  echo "$ac_t""no" 1>&6
2920fi
2921
2922  LDFLAGS="$ac_save_LDFLAGS"
2923
2924fi
2925
2926
2927
2928    echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2929echo "configure:2930: checking for pow in -lm" >&5
2930ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2931if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2932  echo $ac_n "(cached) $ac_c" 1>&6
2933else
2934  ac_save_LIBS="$LIBS"
2935LIBS="-lm  $LIBS"
2936cat > conftest.$ac_ext <<EOF
2937#line 2938 "configure"
2938#include "confdefs.h"
2939/* Override any gcc2 internal prototype to avoid an error.  */
2940/* We use char because int might match the return type of a gcc2
2941    builtin and then its argument prototype would still apply.  */
2942char pow();
2943
2944int main() {
2945pow()
2946; return 0; }
2947EOF
2948if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2949  rm -rf conftest*
2950  eval "ac_cv_lib_$ac_lib_var=yes"
2951else
2952  echo "configure: failed program was:" >&5
2953  cat conftest.$ac_ext >&5
2954  rm -rf conftest*
2955  eval "ac_cv_lib_$ac_lib_var=no"
2956fi
2957rm -f conftest*
2958LIBS="$ac_save_LIBS"
2959
2960fi
2961if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2962  echo "$ac_t""yes" 1>&6
2963  MATH_LIB="${MATH_LIB} -lm"
2964                 COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gifclrmp gifrotat"
2965else
2966  echo "$ac_t""no" 1>&6
2967fi
2968
2969
2970if test ${MATH_LIB}; then
2971    echo $ac_n "checking for rle_hdr_init in -lrle""... $ac_c" 1>&6
2972echo "configure:2973: checking for rle_hdr_init in -lrle" >&5
2973ac_lib_var=`echo rle'_'rle_hdr_init | sed 'y%./+-%__p_%'`
2974if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2975  echo $ac_n "(cached) $ac_c" 1>&6
2976else
2977  ac_save_LIBS="$LIBS"
2978LIBS="-lrle "-lm"  $LIBS"
2979cat > conftest.$ac_ext <<EOF
2980#line 2981 "configure"
2981#include "confdefs.h"
2982/* Override any gcc2 internal prototype to avoid an error.  */
2983/* We use char because int might match the return type of a gcc2
2984    builtin and then its argument prototype would still apply.  */
2985char rle_hdr_init();
2986
2987int main() {
2988rle_hdr_init()
2989; return 0; }
2990EOF
2991if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2992  rm -rf conftest*
2993  eval "ac_cv_lib_$ac_lib_var=yes"
2994else
2995  echo "configure: failed program was:" >&5
2996  cat conftest.$ac_ext >&5
2997  rm -rf conftest*
2998  eval "ac_cv_lib_$ac_lib_var=no"
2999fi
3000rm -f conftest*
3001LIBS="$ac_save_LIBS"
3002
3003fi
3004if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3005  echo "$ac_t""yes" 1>&6
3006  RLE_LIB="${RLE_LIBS} -lrle -lm"
3007                 COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2rle rle2gif"
3008else
3009  echo "$ac_t""no" 1>&6
3010fi
3011
3012fi
3013
3014    echo $ac_n "checking for main in -lgl_s""... $ac_c" 1>&6
3015echo "configure:3016: checking for main in -lgl_s" >&5
3016ac_lib_var=`echo gl_s'_'main | sed 'y%./+-%__p_%'`
3017if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3018  echo $ac_n "(cached) $ac_c" 1>&6
3019else
3020  ac_save_LIBS="$LIBS"
3021LIBS="-lgl_s $X_LIBS $LIBS"
3022cat > conftest.$ac_ext <<EOF
3023#line 3024 "configure"
3024#include "confdefs.h"
3025
3026int main() {
3027main()
3028; return 0; }
3029EOF
3030if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3031  rm -rf conftest*
3032  eval "ac_cv_lib_$ac_lib_var=yes"
3033else
3034  echo "configure: failed program was:" >&5
3035  cat conftest.$ac_ext >&5
3036  rm -rf conftest*
3037  eval "ac_cv_lib_$ac_lib_var=no"
3038fi
3039rm -f conftest*
3040LIBS="$ac_save_LIBS"
3041
3042fi
3043if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3044  echo "$ac_t""yes" 1>&6
3045  GL_S_LIB="${GL_S_LIB} -lgl_s $X_LIBS"
3046                             cat >> confdefs.h <<\EOF
3047#define HAVE_LIBGL_S 1
3048EOF
3049
3050                 COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2iris"
3051else
3052  echo "$ac_t""no" 1>&6
3053fi
3054
3055
3056    echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
3057echo "configure:3058: checking for main in -lX11" >&5
3058ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
3059if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3060  echo $ac_n "(cached) $ac_c" 1>&6
3061else
3062  ac_save_LIBS="$LIBS"
3063LIBS="-lX11 $X_LIBS $LIBS"
3064cat > conftest.$ac_ext <<EOF
3065#line 3066 "configure"
3066#include "confdefs.h"
3067
3068int main() {
3069main()
3070; return 0; }
3071EOF
3072if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3073  rm -rf conftest*
3074  eval "ac_cv_lib_$ac_lib_var=yes"
3075else
3076  echo "configure: failed program was:" >&5
3077  cat conftest.$ac_ext >&5
3078  rm -rf conftest*
3079  eval "ac_cv_lib_$ac_lib_var=no"
3080fi
3081rm -f conftest*
3082LIBS="$ac_save_LIBS"
3083
3084fi
3085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3086  echo "$ac_t""yes" 1>&6
3087  X11_LIB="${X11_LIB} $X_LIBS -lX11"
3088                             cat >> confdefs.h <<\EOF
3089#define HAVE_LIBX11 1
3090EOF
3091
3092                 COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2x11"
3093else
3094  echo "$ac_t""no" 1>&6
3095fi
3096
3097    DEVS="${GL_S_LIB} ${X11_LIB}"
3098   
3099   
3100   
3101   
3102   
3103   
3104   
3105
3106echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3107echo "configure:3108: checking for ANSI C header files" >&5
3108if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3109  echo $ac_n "(cached) $ac_c" 1>&6
3110else
3111  cat > conftest.$ac_ext <<EOF
3112#line 3113 "configure"
3113#include "confdefs.h"
3114#include <stdlib.h>
3115#include <stdarg.h>
3116#include <string.h>
3117#include <float.h>
3118EOF
3119ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3120{ (eval echo configure:3121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3121ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3122if test -z "$ac_err"; then
3123  rm -rf conftest*
3124  ac_cv_header_stdc=yes
3125else
3126  echo "$ac_err" >&5
3127  echo "configure: failed program was:" >&5
3128  cat conftest.$ac_ext >&5
3129  rm -rf conftest*
3130  ac_cv_header_stdc=no
3131fi
3132rm -f conftest*
3133
3134if test $ac_cv_header_stdc = yes; then
3135  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3136cat > conftest.$ac_ext <<EOF
3137#line 3138 "configure"
3138#include "confdefs.h"
3139#include <string.h>
3140EOF
3141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142  egrep "memchr" >/dev/null 2>&1; then
3143  :
3144else
3145  rm -rf conftest*
3146  ac_cv_header_stdc=no
3147fi
3148rm -f conftest*
3149
3150fi
3151
3152if test $ac_cv_header_stdc = yes; then
3153  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3154cat > conftest.$ac_ext <<EOF
3155#line 3156 "configure"
3156#include "confdefs.h"
3157#include <stdlib.h>
3158EOF
3159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160  egrep "free" >/dev/null 2>&1; then
3161  :
3162else
3163  rm -rf conftest*
3164  ac_cv_header_stdc=no
3165fi
3166rm -f conftest*
3167
3168fi
3169
3170if test $ac_cv_header_stdc = yes; then
3171  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3172if test "$cross_compiling" = yes; then
3173  :
3174else
3175  cat > conftest.$ac_ext <<EOF
3176#line 3177 "configure"
3177#include "confdefs.h"
3178#include <ctype.h>
3179#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3180#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3181#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3182int main () { int i; for (i = 0; i < 256; i++)
3183if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3184exit (0); }
3185
3186EOF
3187if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3188then
3189  :
3190else
3191  echo "configure: failed program was:" >&5
3192  cat conftest.$ac_ext >&5
3193  rm -fr conftest*
3194  ac_cv_header_stdc=no
3195fi
3196rm -fr conftest*
3197fi
3198
3199fi
3200fi
3201
3202echo "$ac_t""$ac_cv_header_stdc" 1>&6
3203if test $ac_cv_header_stdc = yes; then
3204  cat >> confdefs.h <<\EOF
3205#define STDC_HEADERS 1
3206EOF
3207
3208fi
3209
3210for ac_hdr in fcntl.h
3211do
3212ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3213echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3214echo "configure:3215: checking for $ac_hdr" >&5
3215if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3216  echo $ac_n "(cached) $ac_c" 1>&6
3217else
3218  cat > conftest.$ac_ext <<EOF
3219#line 3220 "configure"
3220#include "confdefs.h"
3221#include <$ac_hdr>
3222EOF
3223ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3224{ (eval echo configure:3225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3225ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3226if test -z "$ac_err"; then
3227  rm -rf conftest*
3228  eval "ac_cv_header_$ac_safe=yes"
3229else
3230  echo "$ac_err" >&5
3231  echo "configure: failed program was:" >&5
3232  cat conftest.$ac_ext >&5
3233  rm -rf conftest*
3234  eval "ac_cv_header_$ac_safe=no"
3235fi
3236rm -f conftest*
3237fi
3238if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3239  echo "$ac_t""yes" 1>&6
3240    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3241  cat >> confdefs.h <<EOF
3242#define $ac_tr_hdr 1
3243EOF
3244 
3245else
3246  echo "$ac_t""no" 1>&6
3247fi
3248done
3249
3250for ac_hdr in varargs.h
3251do
3252ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3253echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3254echo "configure:3255: checking for $ac_hdr" >&5
3255if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3256  echo $ac_n "(cached) $ac_c" 1>&6
3257else
3258  cat > conftest.$ac_ext <<EOF
3259#line 3260 "configure"
3260#include "confdefs.h"
3261#include <$ac_hdr>
3262EOF
3263ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3264{ (eval echo configure:3265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3265ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3266if test -z "$ac_err"; then
3267  rm -rf conftest*
3268  eval "ac_cv_header_$ac_safe=yes"
3269else
3270  echo "$ac_err" >&5
3271  echo "configure: failed program was:" >&5
3272  cat conftest.$ac_ext >&5
3273  rm -rf conftest*
3274  eval "ac_cv_header_$ac_safe=no"
3275fi
3276rm -f conftest*
3277fi
3278if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3279  echo "$ac_t""yes" 1>&6
3280    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3281  cat >> confdefs.h <<EOF
3282#define $ac_tr_hdr 1
3283EOF
3284 
3285else
3286  echo "$ac_t""no" 1>&6
3287fi
3288done
3289
3290
3291echo $ac_n "checking for working const""... $ac_c" 1>&6
3292echo "configure:3293: checking for working const" >&5
3293if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3294  echo $ac_n "(cached) $ac_c" 1>&6
3295else
3296  cat > conftest.$ac_ext <<EOF
3297#line 3298 "configure"
3298#include "confdefs.h"
3299
3300int main() {
3301
3302/* Ultrix mips cc rejects this.  */
3303typedef int charset[2]; const charset x;
3304/* SunOS 4.1.1 cc rejects this.  */
3305char const *const *ccp;
3306char **p;
3307/* NEC SVR4.0.2 mips cc rejects this.  */
3308struct point {int x, y;};
3309static struct point const zero = {0,0};
3310/* AIX XL C 1.02.0.0 rejects this.
3311   It does not let you subtract one const X* pointer from another in an arm
3312   of an if-expression whose if-part is not a constant expression */
3313const char *g = "string";
3314ccp = &g + (g ? g-g : 0);
3315/* HPUX 7.0 cc rejects these. */
3316++ccp;
3317p = (char**) ccp;
3318ccp = (char const *const *) p;
3319{ /* SCO 3.2v4 cc rejects this.  */
3320  char *t;
3321  char const *s = 0 ? (char *) 0 : (char const *) 0;
3322
3323  *t++ = 0;
3324}
3325{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3326  int x[] = {25, 17};
3327  const int *foo = &x[0];
3328  ++foo;
3329}
3330{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3331  typedef const int *iptr;
3332  iptr p = 0;
3333  ++p;
3334}
3335{ /* AIX XL C 1.02.0.0 rejects this saying
3336     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3337  struct s { int j; const int *ap[3]; };
3338  struct s *b; b->j = 5;
3339}
3340{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3341  const int foo = 10;
3342}
3343
3344; return 0; }
3345EOF
3346if { (eval echo configure:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3347  rm -rf conftest*
3348  ac_cv_c_const=yes
3349else
3350  echo "configure: failed program was:" >&5
3351  cat conftest.$ac_ext >&5
3352  rm -rf conftest*
3353  ac_cv_c_const=no
3354fi
3355rm -f conftest*
3356fi
3357
3358echo "$ac_t""$ac_cv_c_const" 1>&6
3359if test $ac_cv_c_const = no; then
3360  cat >> confdefs.h <<\EOF
3361#define const
3362EOF
3363
3364fi
3365
3366
3367echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3368echo "configure:3369: checking for 8-bit clean memcmp" >&5
3369if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3370  echo $ac_n "(cached) $ac_c" 1>&6
3371else
3372  if test "$cross_compiling" = yes; then
3373  ac_cv_func_memcmp_clean=no
3374else
3375  cat > conftest.$ac_ext <<EOF
3376#line 3377 "configure"
3377#include "confdefs.h"
3378
3379main()
3380{
3381  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3382  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3383}
3384
3385EOF
3386if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3387then
3388  ac_cv_func_memcmp_clean=yes
3389else
3390  echo "configure: failed program was:" >&5
3391  cat conftest.$ac_ext >&5
3392  rm -fr conftest*
3393  ac_cv_func_memcmp_clean=no
3394fi
3395rm -fr conftest*
3396fi
3397
3398fi
3399
3400echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3401test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3402
3403echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
3404echo "configure:3405: checking whether setvbuf arguments are reversed" >&5
3405if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
3406  echo $ac_n "(cached) $ac_c" 1>&6
3407else
3408  if test "$cross_compiling" = yes; then
3409    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3410else
3411  cat > conftest.$ac_ext <<EOF
3412#line 3413 "configure"
3413#include "confdefs.h"
3414#include <stdio.h>
3415/* If setvbuf has the reversed format, exit 0. */
3416main () {
3417  /* This call has the arguments reversed.
3418     A reversed system may check and see that the address of main
3419     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
3420  if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
3421    exit(1);
3422  putc('\r', stdout);
3423  exit(0);                      /* Non-reversed systems segv here.  */
3424}
3425EOF
3426if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3427then
3428  ac_cv_func_setvbuf_reversed=yes
3429else
3430  echo "configure: failed program was:" >&5
3431  cat conftest.$ac_ext >&5
3432  rm -fr conftest*
3433  ac_cv_func_setvbuf_reversed=no
3434fi
3435rm -fr conftest*
3436fi
3437
3438rm -f core core.* *.core
3439fi
3440
3441echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
3442if test $ac_cv_func_setvbuf_reversed = yes; then
3443  cat >> confdefs.h <<\EOF
3444#define SETVBUF_REVERSED 1
3445EOF
3446
3447fi
3448
3449echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3450echo "configure:3451: checking for vprintf" >&5
3451if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3452  echo $ac_n "(cached) $ac_c" 1>&6
3453else
3454  cat > conftest.$ac_ext <<EOF
3455#line 3456 "configure"
3456#include "confdefs.h"
3457/* System header to define __stub macros and hopefully few prototypes,
3458    which can conflict with char vprintf(); below.  */
3459#include <assert.h>
3460/* Override any gcc2 internal prototype to avoid an error.  */
3461/* We use char because int might match the return type of a gcc2
3462    builtin and then its argument prototype would still apply.  */
3463char vprintf();
3464
3465int main() {
3466
3467/* The GNU C library defines this for functions which it implements
3468    to always fail with ENOSYS.  Some functions are actually named
3469    something starting with __ and the normal name is an alias.  */
3470#if defined (__stub_vprintf) || defined (__stub___vprintf)
3471choke me
3472#else
3473vprintf();
3474#endif
3475
3476; return 0; }
3477EOF
3478if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3479  rm -rf conftest*
3480  eval "ac_cv_func_vprintf=yes"
3481else
3482  echo "configure: failed program was:" >&5
3483  cat conftest.$ac_ext >&5
3484  rm -rf conftest*
3485  eval "ac_cv_func_vprintf=no"
3486fi
3487rm -f conftest*
3488fi
3489
3490if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3491  echo "$ac_t""yes" 1>&6
3492  cat >> confdefs.h <<\EOF
3493#define HAVE_VPRINTF 1
3494EOF
3495
3496else
3497  echo "$ac_t""no" 1>&6
3498fi
3499
3500if test "$ac_cv_func_vprintf" != yes; then
3501echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3502echo "configure:3503: checking for _doprnt" >&5
3503if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3504  echo $ac_n "(cached) $ac_c" 1>&6
3505else
3506  cat > conftest.$ac_ext <<EOF
3507#line 3508 "configure"
3508#include "confdefs.h"
3509/* System header to define __stub macros and hopefully few prototypes,
3510    which can conflict with char _doprnt(); below.  */
3511#include <assert.h>
3512/* Override any gcc2 internal prototype to avoid an error.  */
3513/* We use char because int might match the return type of a gcc2
3514    builtin and then its argument prototype would still apply.  */
3515char _doprnt();
3516
3517int main() {
3518
3519/* The GNU C library defines this for functions which it implements
3520    to always fail with ENOSYS.  Some functions are actually named
3521    something starting with __ and the normal name is an alias.  */
3522#if defined (__stub__doprnt) || defined (__stub____doprnt)
3523choke me
3524#else
3525_doprnt();
3526#endif
3527
3528; return 0; }
3529EOF
3530if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3531  rm -rf conftest*
3532  eval "ac_cv_func__doprnt=yes"
3533else
3534  echo "configure: failed program was:" >&5
3535  cat conftest.$ac_ext >&5
3536  rm -rf conftest*
3537  eval "ac_cv_func__doprnt=no"
3538fi
3539rm -f conftest*
3540fi
3541
3542if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3543  echo "$ac_t""yes" 1>&6
3544  cat >> confdefs.h <<\EOF
3545#define HAVE_DOPRNT 1
3546EOF
3547
3548else
3549  echo "$ac_t""no" 1>&6
3550fi
3551
3552fi
3553
3554for ac_func in strdup
3555do
3556echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3557echo "configure:3558: checking for $ac_func" >&5
3558if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3559  echo $ac_n "(cached) $ac_c" 1>&6
3560else
3561  cat > conftest.$ac_ext <<EOF
3562#line 3563 "configure"
3563#include "confdefs.h"
3564/* System header to define __stub macros and hopefully few prototypes,
3565    which can conflict with char $ac_func(); below.  */
3566#include <assert.h>
3567/* Override any gcc2 internal prototype to avoid an error.  */
3568/* We use char because int might match the return type of a gcc2
3569    builtin and then its argument prototype would still apply.  */
3570char $ac_func();
3571
3572int main() {
3573
3574/* The GNU C library defines this for functions which it implements
3575    to always fail with ENOSYS.  Some functions are actually named
3576    something starting with __ and the normal name is an alias.  */
3577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3578choke me
3579#else
3580$ac_func();
3581#endif
3582
3583; return 0; }
3584EOF
3585if { (eval echo configure:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3586  rm -rf conftest*
3587  eval "ac_cv_func_$ac_func=yes"
3588else
3589  echo "configure: failed program was:" >&5
3590  cat conftest.$ac_ext >&5
3591  rm -rf conftest*
3592  eval "ac_cv_func_$ac_func=no"
3593fi
3594rm -f conftest*
3595fi
3596
3597if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3598  echo "$ac_t""yes" 1>&6
3599    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3600  cat >> confdefs.h <<EOF
3601#define $ac_tr_func 1
3602EOF
3603 
3604else
3605  echo "$ac_t""no" 1>&6
3606fi
3607done
3608
3609
3610trap '' 1 2 15
3611cat > confcache <<\EOF
3612# This file is a shell script that caches the results of configure
3613# tests run on this system so they can be shared between configure
3614# scripts and configure runs.  It is not useful on other systems.
3615# If it contains results you don't want to keep, you may remove or edit it.
3616#
3617# By default, configure uses ./config.cache as the cache file,
3618# creating it if it does not exist already.  You can give configure
3619# the --cache-file=FILE option to use a different cache file; that is
3620# what configure does when it calls configure scripts in
3621# subdirectories, so they share the cache.
3622# Giving --cache-file=/dev/null disables caching, for debugging configure.
3623# config.status only pays attention to the cache file if you give it the
3624# --recheck option to rerun configure.
3625#
3626EOF
3627# The following way of writing the cache mishandles newlines in values,
3628# but we know of no workaround that is simple, portable, and efficient.
3629# So, don't put newlines in cache variables' values.
3630# Ultrix sh set writes to stderr and can't be redirected directly,
3631# and sets the high bit in the cache file unless we assign to the vars.
3632(set) 2>&1 |
3633  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3634  *ac_space=\ *)
3635    # `set' does not quote correctly, so add quotes (double-quote substitution
3636    # turns \\\\ into \\, and sed turns \\ into \).
3637    sed -n \
3638      -e "s/'/'\\\\''/g" \
3639      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3640    ;;
3641  *)
3642    # `set' quotes correctly as required by POSIX, so do not add quotes.
3643    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3644    ;;
3645  esac >> confcache
3646if cmp -s $cache_file confcache; then
3647  :
3648else
3649  if test -w $cache_file; then
3650    echo "updating cache $cache_file"
3651    cat confcache > $cache_file
3652  else
3653    echo "not updating unwritable cache $cache_file"
3654  fi
3655fi
3656rm -f confcache
3657
3658trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3659
3660test "x$prefix" = xNONE && prefix=$ac_default_prefix
3661# Let make expand exec_prefix.
3662test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3663
3664# Any assignment to VPATH causes Sun make to only execute
3665# the first set of double-colon rules, so remove it if not needed.
3666# If there is a colon in the path, we need to keep it.
3667if test "x$srcdir" = x.; then
3668  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3669fi
3670
3671trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3672
3673DEFS=-DHAVE_CONFIG_H
3674
3675# Without the "./", some shells look in PATH for config.status.
3676: ${CONFIG_STATUS=./config.status}
3677
3678echo creating $CONFIG_STATUS
3679rm -f $CONFIG_STATUS
3680cat > $CONFIG_STATUS <<EOF
3681#! /bin/sh
3682# Generated automatically by configure.
3683# Run this file to recreate the current configuration.
3684# This directory was configured as follows,
3685# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3686#
3687# $0 $ac_configure_args
3688#
3689# Compiler output produced by configure, useful for debugging
3690# configure, is in ./config.log if it exists.
3691
3692ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3693for ac_option
3694do
3695  case "\$ac_option" in
3696  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3697    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3698    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3699  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3700    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3701    exit 0 ;;
3702  -help | --help | --hel | --he | --h)
3703    echo "\$ac_cs_usage"; exit 0 ;;
3704  *) echo "\$ac_cs_usage"; exit 1 ;;
3705  esac
3706done
3707
3708ac_given_srcdir=$srcdir
3709ac_given_INSTALL="$INSTALL"
3710
3711trap 'rm -fr `echo "util/Makefile lib/Makefile Makefile doc/Makefile pic/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3712EOF
3713cat >> $CONFIG_STATUS <<EOF
3714
3715# Protect against being on the right side of a sed subst in config.status.
3716sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3717 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3718$ac_vpsub
3719$extrasub
3720s%@SHELL@%$SHELL%g
3721s%@CFLAGS@%$CFLAGS%g
3722s%@CPPFLAGS@%$CPPFLAGS%g
3723s%@CXXFLAGS@%$CXXFLAGS%g
3724s%@FFLAGS@%$FFLAGS%g
3725s%@DEFS@%$DEFS%g
3726s%@LDFLAGS@%$LDFLAGS%g
3727s%@LIBS@%$LIBS%g
3728s%@exec_prefix@%$exec_prefix%g
3729s%@prefix@%$prefix%g
3730s%@program_transform_name@%$program_transform_name%g
3731s%@bindir@%$bindir%g
3732s%@sbindir@%$sbindir%g
3733s%@libexecdir@%$libexecdir%g
3734s%@datadir@%$datadir%g
3735s%@sysconfdir@%$sysconfdir%g
3736s%@sharedstatedir@%$sharedstatedir%g
3737s%@localstatedir@%$localstatedir%g
3738s%@libdir@%$libdir%g
3739s%@includedir@%$includedir%g
3740s%@oldincludedir@%$oldincludedir%g
3741s%@infodir@%$infodir%g
3742s%@mandir@%$mandir%g
3743s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3744s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3745s%@INSTALL_DATA@%$INSTALL_DATA%g
3746s%@PACKAGE@%$PACKAGE%g
3747s%@VERSION@%$VERSION%g
3748s%@ACLOCAL@%$ACLOCAL%g
3749s%@AUTOCONF@%$AUTOCONF%g
3750s%@AUTOMAKE@%$AUTOMAKE%g
3751s%@AUTOHEADER@%$AUTOHEADER%g
3752s%@MAKEINFO@%$MAKEINFO%g
3753s%@SET_MAKE@%$SET_MAKE%g
3754s%@host@%$host%g
3755s%@host_alias@%$host_alias%g
3756s%@host_cpu@%$host_cpu%g
3757s%@host_vendor@%$host_vendor%g
3758s%@host_os@%$host_os%g
3759s%@build@%$build%g
3760s%@build_alias@%$build_alias%g
3761s%@build_cpu@%$build_cpu%g
3762s%@build_vendor@%$build_vendor%g
3763s%@build_os@%$build_os%g
3764s%@RANLIB@%$RANLIB%g
3765s%@CC@%$CC%g
3766s%@LD@%$LD%g
3767s%@NM@%$NM%g
3768s%@LN_S@%$LN_S%g
3769s%@LIBTOOL@%$LIBTOOL%g
3770s%@CXX@%$CXX%g
3771s%@AWK@%$AWK%g
3772s%@CPP@%$CPP%g
3773s%@X_CFLAGS@%$X_CFLAGS%g
3774s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3775s%@X_LIBS@%$X_LIBS%g
3776s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3777s%@DEVS@%$DEVS%g
3778s%@COMPILABLE_EXTRAS@%$COMPILABLE_EXTRAS%g
3779s%@GL_S_LIB@%$GL_S_LIB%g
3780s%@X11_LIB@%$X11_LIB%g
3781s%@MATH_LIB@%$MATH_LIB%g
3782s%@RLE_LIB@%$RLE_LIB%g
3783s%@LIBOBJS@%$LIBOBJS%g
3784
3785CEOF
3786EOF
3787
3788cat >> $CONFIG_STATUS <<\EOF
3789
3790# Split the substitutions into bite-sized pieces for seds with
3791# small command number limits, like on Digital OSF/1 and HP-UX.
3792ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3793ac_file=1 # Number of current file.
3794ac_beg=1 # First line for current file.
3795ac_end=$ac_max_sed_cmds # Line after last line for current file.
3796ac_more_lines=:
3797ac_sed_cmds=""
3798while $ac_more_lines; do
3799  if test $ac_beg -gt 1; then
3800    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3801  else
3802    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3803  fi
3804  if test ! -s conftest.s$ac_file; then
3805    ac_more_lines=false
3806    rm -f conftest.s$ac_file
3807  else
3808    if test -z "$ac_sed_cmds"; then
3809      ac_sed_cmds="sed -f conftest.s$ac_file"
3810    else
3811      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3812    fi
3813    ac_file=`expr $ac_file + 1`
3814    ac_beg=$ac_end
3815    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3816  fi
3817done
3818if test -z "$ac_sed_cmds"; then
3819  ac_sed_cmds=cat
3820fi
3821EOF
3822
3823cat >> $CONFIG_STATUS <<EOF
3824
3825CONFIG_FILES=\${CONFIG_FILES-"util/Makefile lib/Makefile Makefile doc/Makefile pic/Makefile"}
3826EOF
3827cat >> $CONFIG_STATUS <<\EOF
3828for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3829  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3830  case "$ac_file" in
3831  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3832       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3833  *) ac_file_in="${ac_file}.in" ;;
3834  esac
3835
3836  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3837
3838  # Remove last slash and all that follows it.  Not all systems have dirname.
3839  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3840  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3841    # The file is in a subdirectory.
3842    test ! -d "$ac_dir" && mkdir "$ac_dir"
3843    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3844    # A "../" for each directory in $ac_dir_suffix.
3845    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3846  else
3847    ac_dir_suffix= ac_dots=
3848  fi
3849
3850  case "$ac_given_srcdir" in
3851  .)  srcdir=.
3852      if test -z "$ac_dots"; then top_srcdir=.
3853      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3854  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3855  *) # Relative path.
3856    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3857    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3858  esac
3859
3860  case "$ac_given_INSTALL" in
3861  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3862  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3863  esac
3864
3865  echo creating "$ac_file"
3866  rm -f "$ac_file"
3867  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3868  case "$ac_file" in
3869  *Makefile*) ac_comsub="1i\\
3870# $configure_input" ;;
3871  *) ac_comsub= ;;
3872  esac
3873
3874  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3875  sed -e "$ac_comsub
3876s%@configure_input@%$configure_input%g
3877s%@srcdir@%$srcdir%g
3878s%@top_srcdir@%$top_srcdir%g
3879s%@INSTALL@%$INSTALL%g
3880" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3881fi; done
3882rm -f conftest.s*
3883
3884# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3885# NAME is the cpp macro being defined and VALUE is the value it is being given.
3886#
3887# ac_d sets the value in "#define NAME VALUE" lines.
3888ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3889ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3890ac_dC='\3'
3891ac_dD='%g'
3892# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3893ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3894ac_uB='\([      ]\)%\1#\2define\3'
3895ac_uC=' '
3896ac_uD='\4%g'
3897# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3898ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3899ac_eB='$%\1#\2define\3'
3900ac_eC=' '
3901ac_eD='%g'
3902
3903if test "${CONFIG_HEADERS+set}" != set; then
3904EOF
3905cat >> $CONFIG_STATUS <<EOF
3906  CONFIG_HEADERS="config.h"
3907EOF
3908cat >> $CONFIG_STATUS <<\EOF
3909fi
3910for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3911  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3912  case "$ac_file" in
3913  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3914       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3915  *) ac_file_in="${ac_file}.in" ;;
3916  esac
3917
3918  echo creating $ac_file
3919
3920  rm -f conftest.frag conftest.in conftest.out
3921  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3922  cat $ac_file_inputs > conftest.in
3923
3924EOF
3925
3926# Transform confdefs.h into a sed script conftest.vals that substitutes
3927# the proper values into config.h.in to produce config.h.  And first:
3928# Protect against being on the right side of a sed subst in config.status.
3929# Protect against being in an unquoted here document in config.status.
3930rm -f conftest.vals
3931cat > conftest.hdr <<\EOF
3932s/[\\&%]/\\&/g
3933s%[\\$`]%\\&%g
3934s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3935s%ac_d%ac_u%gp
3936s%ac_u%ac_e%gp
3937EOF
3938sed -n -f conftest.hdr confdefs.h > conftest.vals
3939rm -f conftest.hdr
3940
3941# This sed command replaces #undef with comments.  This is necessary, for
3942# example, in the case of _POSIX_SOURCE, which is predefined and required
3943# on some systems where configure will not decide to define it.
3944cat >> conftest.vals <<\EOF
3945s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3946EOF
3947
3948# Break up conftest.vals because some shells have a limit on
3949# the size of here documents, and old seds have small limits too.
3950
3951rm -f conftest.tail
3952while :
3953do
3954  ac_lines=`grep -c . conftest.vals`
3955  # grep -c gives empty output for an empty file on some AIX systems.
3956  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3957  # Write a limited-size here document to conftest.frag.
3958  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3959  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3960  echo 'CEOF
3961  sed -f conftest.frag conftest.in > conftest.out
3962  rm -f conftest.in
3963  mv conftest.out conftest.in
3964' >> $CONFIG_STATUS
3965  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3966  rm -f conftest.vals
3967  mv conftest.tail conftest.vals
3968done
3969rm -f conftest.vals
3970
3971cat >> $CONFIG_STATUS <<\EOF
3972  rm -f conftest.frag conftest.h
3973  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3974  cat conftest.in >> conftest.h
3975  rm -f conftest.in
3976  if cmp -s $ac_file conftest.h 2>/dev/null; then
3977    echo "$ac_file is unchanged"
3978    rm -f conftest.h
3979  else
3980    # Remove last slash and all that follows it.  Not all systems have dirname.
3981      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3982      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3983      # The file is in a subdirectory.
3984      test ! -d "$ac_dir" && mkdir "$ac_dir"
3985    fi
3986    rm -f $ac_file
3987    mv conftest.h $ac_file
3988  fi
3989fi; done
3990
3991EOF
3992cat >> $CONFIG_STATUS <<EOF
3993
3994
3995EOF
3996cat >> $CONFIG_STATUS <<\EOF
3997test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3998
3999exit 0
4000EOF
4001chmod +x $CONFIG_STATUS
4002rm -fr confdefs* $ac_clean_files
4003test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4004
Note: See TracBrowser for help on using the repository browser.