source: trunk/third/sawfish/configure @ 18414

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