~sarahstrong/ubuntu/lucid/gedit/mypatch

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Joe Drew
  • Date: 2002-01-13 02:13:27 UTC
  • Revision ID: james.westby@ubuntu.com-20020113021327-dukaa4n50oykvrjg
Tags: upstream-0.9.6
ImportĀ upstreamĀ versionĀ 0.9.6

Show diffs side-by-side

added added

removed removed

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