source: trunk/third/rep-gtk/configure @ 18404

Revision 18404, 70.8 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18403, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
RevLine 
[15285]1#! /bin/sh
2
[18403]3# From configure.in Revision: 1.43
[15285]4
5
6
7
8
9
10
11
12
13
14
15# Guess values for system-dependent variables and create Makefiles.
16# Generated automatically using autoconf version 2.13
17# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18#
19# This configure script is free software; the Free Software Foundation
20# gives unlimited permission to copy, distribute and modify it.
21
22# Defaults:
23ac_help=
24ac_default_prefix=/usr/local
25# Any additions from configure.in:
26ac_help="$ac_help
27  --with-rep-prefix=PFX   Prefix where rep is installed (optional)"
28ac_help="$ac_help
29  --with-gnome            Build GNOME wrappers
30  --without-gnome         Don't wrap GNOME"
31ac_help="$ac_help
32  --with-libglade         Build libglade wrappers (dynamic GUI builder)
33  --without-libglade      Don't wrap libglade"
34
35# Initialize some variables set by options.
36# The variables have the same names as the options, with
37# dashes changed to underlines.
38build=NONE
39cache_file=./config.cache
40exec_prefix=NONE
41host=NONE
42no_create=
43nonopt=NONE
44no_recursion=
45prefix=NONE
46program_prefix=NONE
47program_suffix=NONE
48program_transform_name=s,x,x,
49silent=
50site=
51srcdir=
52target=NONE
53verbose=
54x_includes=NONE
55x_libraries=NONE
56bindir='${exec_prefix}/bin'
57sbindir='${exec_prefix}/sbin'
58libexecdir='${exec_prefix}/libexec'
59datadir='${prefix}/share'
60sysconfdir='${prefix}/etc'
61sharedstatedir='${prefix}/com'
62localstatedir='${prefix}/var'
63libdir='${exec_prefix}/lib'
64includedir='${prefix}/include'
65oldincludedir='/usr/include'
66infodir='${prefix}/info'
67mandir='${prefix}/man'
68
69# Initialize some other variables.
70subdirs=
71MFLAGS= MAKEFLAGS=
72SHELL=${CONFIG_SHELL-/bin/sh}
73# Maximum number of lines to put in a shell here document.
74ac_max_here_lines=12
75
76ac_prev=
77for ac_option
78do
79
80  # If the previous option needs an argument, assign it.
81  if test -n "$ac_prev"; then
82    eval "$ac_prev=\$ac_option"
83    ac_prev=
84    continue
85  fi
86
87  case "$ac_option" in
88  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89  *) ac_optarg= ;;
90  esac
91
92  # Accept the important Cygnus configure options, so we can diagnose typos.
93
94  case "$ac_option" in
95
96  -bindir | --bindir | --bindi | --bind | --bin | --bi)
97    ac_prev=bindir ;;
98  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99    bindir="$ac_optarg" ;;
100
101  -build | --build | --buil | --bui | --bu)
102    ac_prev=build ;;
103  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104    build="$ac_optarg" ;;
105
106  -cache-file | --cache-file | --cache-fil | --cache-fi \
107  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108    ac_prev=cache_file ;;
109  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111    cache_file="$ac_optarg" ;;
112
113  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114    ac_prev=datadir ;;
115  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116  | --da=*)
117    datadir="$ac_optarg" ;;
118
119  -disable-* | --disable-*)
120    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121    # Reject names that are not valid shell variable names.
122    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124    fi
125    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126    eval "enable_${ac_feature}=no" ;;
127
128  -enable-* | --enable-*)
129    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130    # Reject names that are not valid shell variable names.
131    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133    fi
134    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135    case "$ac_option" in
136      *=*) ;;
137      *) ac_optarg=yes ;;
138    esac
139    eval "enable_${ac_feature}='$ac_optarg'" ;;
140
141  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143  | --exec | --exe | --ex)
144    ac_prev=exec_prefix ;;
145  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147  | --exec=* | --exe=* | --ex=*)
148    exec_prefix="$ac_optarg" ;;
149
150  -gas | --gas | --ga | --g)
151    # Obsolete; use --with-gas.
152    with_gas=yes ;;
153
154  -help | --help | --hel | --he)
155    # Omit some internal or obsolete options to make the list less imposing.
156    # This message is too long to be a string in the A/UX 3.1 sh.
157    cat << EOF
158Usage: configure [options] [host]
159Options: [defaults in brackets after descriptions]
160Configuration:
161  --cache-file=FILE       cache test results in FILE
162  --help                  print this message
163  --no-create             do not create output files
164  --quiet, --silent       do not print \`checking...' messages
165  --version               print the version of autoconf that created configure
166Directory and file names:
167  --prefix=PREFIX         install architecture-independent files in PREFIX
168                          [$ac_default_prefix]
169  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
170                          [same as prefix]
171  --bindir=DIR            user executables in DIR [EPREFIX/bin]
172  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
173  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
174  --datadir=DIR           read-only architecture-independent data in DIR
175                          [PREFIX/share]
176  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
177  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
178                          [PREFIX/com]
179  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
180  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
181  --includedir=DIR        C header files in DIR [PREFIX/include]
182  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
183  --infodir=DIR           info documentation in DIR [PREFIX/info]
184  --mandir=DIR            man documentation in DIR [PREFIX/man]
185  --srcdir=DIR            find the sources in DIR [configure dir or ..]
186  --program-prefix=PREFIX prepend PREFIX to installed program names
187  --program-suffix=SUFFIX append SUFFIX to installed program names
188  --program-transform-name=PROGRAM
189                          run sed PROGRAM on installed program names
190EOF
191    cat << EOF
192Host type:
193  --build=BUILD           configure for building on BUILD [BUILD=HOST]
194  --host=HOST             configure for HOST [guessed]
195  --target=TARGET         configure for TARGET [TARGET=HOST]
196Features and packages:
197  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
198  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
199  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
200  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
201  --x-includes=DIR        X include files are in DIR
202  --x-libraries=DIR       X library files are in DIR
203EOF
204    if test -n "$ac_help"; then
205      echo "--enable and --with options recognized:$ac_help"
206    fi
207    exit 0 ;;
208
209  -host | --host | --hos | --ho)
210    ac_prev=host ;;
211  -host=* | --host=* | --hos=* | --ho=*)
212    host="$ac_optarg" ;;
213
214  -includedir | --includedir | --includedi | --included | --include \
215  | --includ | --inclu | --incl | --inc)
216    ac_prev=includedir ;;
217  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218  | --includ=* | --inclu=* | --incl=* | --inc=*)
219    includedir="$ac_optarg" ;;
220
221  -infodir | --infodir | --infodi | --infod | --info | --inf)
222    ac_prev=infodir ;;
223  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224    infodir="$ac_optarg" ;;
225
226  -libdir | --libdir | --libdi | --libd)
227    ac_prev=libdir ;;
228  -libdir=* | --libdir=* | --libdi=* | --libd=*)
229    libdir="$ac_optarg" ;;
230
231  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232  | --libexe | --libex | --libe)
233    ac_prev=libexecdir ;;
234  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235  | --libexe=* | --libex=* | --libe=*)
236    libexecdir="$ac_optarg" ;;
237
238  -localstatedir | --localstatedir | --localstatedi | --localstated \
239  | --localstate | --localstat | --localsta | --localst \
240  | --locals | --local | --loca | --loc | --lo)
241    ac_prev=localstatedir ;;
242  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245    localstatedir="$ac_optarg" ;;
246
247  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248    ac_prev=mandir ;;
249  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250    mandir="$ac_optarg" ;;
251
252  -nfp | --nfp | --nf)
253    # Obsolete; use --without-fp.
254    with_fp=no ;;
255
256  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257  | --no-cr | --no-c)
258    no_create=yes ;;
259
260  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262    no_recursion=yes ;;
263
264  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266  | --oldin | --oldi | --old | --ol | --o)
267    ac_prev=oldincludedir ;;
268  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271    oldincludedir="$ac_optarg" ;;
272
273  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274    ac_prev=prefix ;;
275  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276    prefix="$ac_optarg" ;;
277
278  -program-prefix | --program-prefix | --program-prefi | --program-pref \
279  | --program-pre | --program-pr | --program-p)
280    ac_prev=program_prefix ;;
281  -program-prefix=* | --program-prefix=* | --program-prefi=* \
282  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283    program_prefix="$ac_optarg" ;;
284
285  -program-suffix | --program-suffix | --program-suffi | --program-suff \
286  | --program-suf | --program-su | --program-s)
287    ac_prev=program_suffix ;;
288  -program-suffix=* | --program-suffix=* | --program-suffi=* \
289  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290    program_suffix="$ac_optarg" ;;
291
292  -program-transform-name | --program-transform-name \
293  | --program-transform-nam | --program-transform-na \
294  | --program-transform-n | --program-transform- \
295  | --program-transform | --program-transfor \
296  | --program-transfo | --program-transf \
297  | --program-trans | --program-tran \
298  | --progr-tra | --program-tr | --program-t)
299    ac_prev=program_transform_name ;;
300  -program-transform-name=* | --program-transform-name=* \
301  | --program-transform-nam=* | --program-transform-na=* \
302  | --program-transform-n=* | --program-transform-=* \
303  | --program-transform=* | --program-transfor=* \
304  | --program-transfo=* | --program-transf=* \
305  | --program-trans=* | --program-tran=* \
306  | --progr-tra=* | --program-tr=* | --program-t=*)
307    program_transform_name="$ac_optarg" ;;
308
309  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310  | -silent | --silent | --silen | --sile | --sil)
311    silent=yes ;;
312
313  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314    ac_prev=sbindir ;;
315  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316  | --sbi=* | --sb=*)
317    sbindir="$ac_optarg" ;;
318
319  -sharedstatedir | --sharedstatedir | --sharedstatedi \
320  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321  | --sharedst | --shareds | --shared | --share | --shar \
322  | --sha | --sh)
323    ac_prev=sharedstatedir ;;
324  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327  | --sha=* | --sh=*)
328    sharedstatedir="$ac_optarg" ;;
329
330  -site | --site | --sit)
331    ac_prev=site ;;
332  -site=* | --site=* | --sit=*)
333    site="$ac_optarg" ;;
334
335  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336    ac_prev=srcdir ;;
337  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338    srcdir="$ac_optarg" ;;
339
340  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341  | --syscon | --sysco | --sysc | --sys | --sy)
342    ac_prev=sysconfdir ;;
343  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345    sysconfdir="$ac_optarg" ;;
346
347  -target | --target | --targe | --targ | --tar | --ta | --t)
348    ac_prev=target ;;
349  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350    target="$ac_optarg" ;;
351
352  -v | -verbose | --verbose | --verbos | --verbo | --verb)
353    verbose=yes ;;
354
355  -version | --version | --versio | --versi | --vers)
356    echo "configure generated by autoconf version 2.13"
357    exit 0 ;;
358
359  -with-* | --with-*)
360    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361    # Reject names that are not valid shell variable names.
362    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364    fi
365    ac_package=`echo $ac_package| sed 's/-/_/g'`
366    case "$ac_option" in
367      *=*) ;;
368      *) ac_optarg=yes ;;
369    esac
370    eval "with_${ac_package}='$ac_optarg'" ;;
371
372  -without-* | --without-*)
373    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374    # Reject names that are not valid shell variable names.
375    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377    fi
378    ac_package=`echo $ac_package| sed 's/-/_/g'`
379    eval "with_${ac_package}=no" ;;
380
381  --x)
382    # Obsolete; use --with-x.
383    with_x=yes ;;
384
385  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386  | --x-incl | --x-inc | --x-in | --x-i)
387    ac_prev=x_includes ;;
388  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390    x_includes="$ac_optarg" ;;
391
392  -x-libraries | --x-libraries | --x-librarie | --x-librari \
393  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394    ac_prev=x_libraries ;;
395  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397    x_libraries="$ac_optarg" ;;
398
399  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400    ;;
401
402  *)
403    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404      echo "configure: warning: $ac_option: invalid host type" 1>&2
405    fi
406    if test "x$nonopt" != xNONE; then
407      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408    fi
409    nonopt="$ac_option"
410    ;;
411
412  esac
413done
414
415if test -n "$ac_prev"; then
416  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417fi
418
419trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420
421# File descriptor usage:
422# 0 standard input
423# 1 file creation
424# 2 errors and warnings
425# 3 some systems may open it to /dev/tty
426# 4 used on the Kubota Titan
427# 6 checking for... messages and results
428# 5 compiler messages saved in config.log
429if test "$silent" = yes; then
430  exec 6>/dev/null
431else
432  exec 6>&1
433fi
434exec 5>./config.log
435
436echo "\
437This file contains any messages produced by compilers while
438running configure, to aid debugging if configure makes a mistake.
439" 1>&5
440
441# Strip out --no-create and --no-recursion so they do not pile up.
442# Also quote any args containing shell metacharacters.
443ac_configure_args=
444for ac_arg
445do
446  case "$ac_arg" in
447  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448  | --no-cr | --no-c) ;;
449  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454  esac
455done
456
457# NLS nuisances.
458# Only set these to C if already set.  These must not be set unconditionally
459# because not all systems understand e.g. LANG=C (notably SCO).
460# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461# Non-C LC_CTYPE values break the ctype check.
462if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
463if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
466
467# confdefs.h avoids OS command line length limits that DEFS can exceed.
468rm -rf conftest* confdefs.h
469# AIX cpp loses on an empty file, so make sure it contains at least a newline.
470echo > confdefs.h
471
472# A filename unique to this package, relative to the directory that
473# configure is in, which we can look for to find out if srcdir is correct.
474ac_unique_file=rep-gtk.h
475
476# Find the source files, if location was not specified.
477if test -z "$srcdir"; then
478  ac_srcdir_defaulted=yes
479  # Try the directory containing this script, then its parent.
480  ac_prog=$0
481  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483  srcdir=$ac_confdir
484  if test ! -r $srcdir/$ac_unique_file; then
485    srcdir=..
486  fi
487else
488  ac_srcdir_defaulted=no
489fi
490if test ! -r $srcdir/$ac_unique_file; then
491  if test "$ac_srcdir_defaulted" = yes; then
492    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493  else
494    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495  fi
496fi
497srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498
499# Prefer explicitly selected file to automatically selected ones.
500if test -z "$CONFIG_SITE"; then
501  if test "x$prefix" != xNONE; then
502    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503  else
504    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505  fi
506fi
507for ac_site_file in $CONFIG_SITE; do
508  if test -r "$ac_site_file"; then
509    echo "loading site script $ac_site_file"
510    . "$ac_site_file"
511  fi
512done
513
514if test -r "$cache_file"; then
515  echo "loading cache $cache_file"
516  . $cache_file
517else
518  echo "creating cache $cache_file"
519  > $cache_file
520fi
521
522ac_ext=c
523# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524ac_cpp='$CPP $CPPFLAGS'
525ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527cross_compiling=$ac_cv_prog_cc_cross
528
529ac_exeext=
530ac_objext=o
531if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
534    ac_n= ac_c='
535' ac_t='        '
536  else
537    ac_n=-n ac_c= ac_t=
538  fi
539else
540  ac_n= ac_c='\c' ac_t=
541fi
542
543
544
545
[18403]546version="0.17"
[15285]547
[18403]548OUT="gtk-2/types.la gtk-2/gtk.la"
[15285]549
550
551ac_aux_dir=
552for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
553  if test -f $ac_dir/install-sh; then
554    ac_aux_dir=$ac_dir
555    ac_install_sh="$ac_aux_dir/install-sh -c"
556    break
557  elif test -f $ac_dir/install.sh; then
558    ac_aux_dir=$ac_dir
559    ac_install_sh="$ac_aux_dir/install.sh -c"
560    break
561  fi
562done
563if test -z "$ac_aux_dir"; then
564  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
565fi
566ac_config_guess=$ac_aux_dir/config.guess
567ac_config_sub=$ac_aux_dir/config.sub
568ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
569
570
571# Make sure we can run config.sub.
572if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
573else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
574fi
575
576echo $ac_n "checking host system type""... $ac_c" 1>&6
[18403]577echo "configure:578: checking host system type" >&5
[15285]578
579host_alias=$host
580case "$host_alias" in
581NONE)
582  case $nonopt in
583  NONE)
584    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
585    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
586    fi ;;
587  *) host_alias=$nonopt ;;
588  esac ;;
589esac
590
591host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
592host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
593host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
594host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
595echo "$ac_t""$host" 1>&6
596
597
598# Extract the first word of "gcc", so it can be a program name with args.
599set dummy gcc; ac_word=$2
600echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[18403]601echo "configure:602: checking for $ac_word" >&5
[15285]602if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
603  echo $ac_n "(cached) $ac_c" 1>&6
604else
605  if test -n "$CC"; then
606  ac_cv_prog_CC="$CC" # Let the user override the test.
607else
608  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
609  ac_dummy="$PATH"
610  for ac_dir in $ac_dummy; do
611    test -z "$ac_dir" && ac_dir=.
612    if test -f $ac_dir/$ac_word; then
613      ac_cv_prog_CC="gcc"
614      break
615    fi
616  done
617  IFS="$ac_save_ifs"
618fi
619fi
620CC="$ac_cv_prog_CC"
621if test -n "$CC"; then
622  echo "$ac_t""$CC" 1>&6
623else
624  echo "$ac_t""no" 1>&6
625fi
626
627if test -z "$CC"; then
628  # Extract the first word of "cc", so it can be a program name with args.
629set dummy cc; ac_word=$2
630echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[18403]631echo "configure:632: checking for $ac_word" >&5
[15285]632if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
633  echo $ac_n "(cached) $ac_c" 1>&6
634else
635  if test -n "$CC"; then
636  ac_cv_prog_CC="$CC" # Let the user override the test.
637else
638  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
639  ac_prog_rejected=no
640  ac_dummy="$PATH"
641  for ac_dir in $ac_dummy; do
642    test -z "$ac_dir" && ac_dir=.
643    if test -f $ac_dir/$ac_word; then
644      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
645        ac_prog_rejected=yes
646        continue
647      fi
648      ac_cv_prog_CC="cc"
649      break
650    fi
651  done
652  IFS="$ac_save_ifs"
653if test $ac_prog_rejected = yes; then
654  # We found a bogon in the path, so make sure we never use it.
655  set dummy $ac_cv_prog_CC
656  shift
657  if test $# -gt 0; then
658    # We chose a different compiler from the bogus one.
659    # However, it has the same basename, so the bogon will be chosen
660    # first if we set CC to just the basename; use the full file name.
661    shift
662    set dummy "$ac_dir/$ac_word" "$@"
663    shift
664    ac_cv_prog_CC="$@"
665  fi
666fi
667fi
668fi
669CC="$ac_cv_prog_CC"
670if test -n "$CC"; then
671  echo "$ac_t""$CC" 1>&6
672else
673  echo "$ac_t""no" 1>&6
674fi
675
676  if test -z "$CC"; then
677    case "`uname -s`" in
678    *win32* | *WIN32*)
679      # Extract the first word of "cl", so it can be a program name with args.
680set dummy cl; ac_word=$2
681echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[18403]682echo "configure:683: checking for $ac_word" >&5
[15285]683if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
684  echo $ac_n "(cached) $ac_c" 1>&6
685else
686  if test -n "$CC"; then
687  ac_cv_prog_CC="$CC" # Let the user override the test.
688else
689  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
690  ac_dummy="$PATH"
691  for ac_dir in $ac_dummy; do
692    test -z "$ac_dir" && ac_dir=.
693    if test -f $ac_dir/$ac_word; then
694      ac_cv_prog_CC="cl"
695      break
696    fi
697  done
698  IFS="$ac_save_ifs"
699fi
700fi
701CC="$ac_cv_prog_CC"
702if test -n "$CC"; then
703  echo "$ac_t""$CC" 1>&6
704else
705  echo "$ac_t""no" 1>&6
706fi
707 ;;
708    esac
709  fi
710  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
711fi
712
713echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
[18403]714echo "configure:715: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
[15285]715
716ac_ext=c
717# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
718ac_cpp='$CPP $CPPFLAGS'
719ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
720ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
721cross_compiling=$ac_cv_prog_cc_cross
722
723cat > conftest.$ac_ext << EOF
724
[18403]725#line 726 "configure"
[15285]726#include "confdefs.h"
727
728main(){return(0);}
729EOF
[18403]730if { (eval echo configure:731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[15285]731  ac_cv_prog_cc_works=yes
732  # If we can't run a trivial program, we are probably using a cross compiler.
733  if (./conftest; exit) 2>/dev/null; then
734    ac_cv_prog_cc_cross=no
735  else
736    ac_cv_prog_cc_cross=yes
737  fi
738else
739  echo "configure: failed program was:" >&5
740  cat conftest.$ac_ext >&5
741  ac_cv_prog_cc_works=no
742fi
743rm -fr conftest*
744ac_ext=c
745# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
746ac_cpp='$CPP $CPPFLAGS'
747ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
748ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
749cross_compiling=$ac_cv_prog_cc_cross
750
751echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
752if test $ac_cv_prog_cc_works = no; then
753  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
754fi
755echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
[18403]756echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
[15285]757echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
758cross_compiling=$ac_cv_prog_cc_cross
759
760echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
[18403]761echo "configure:762: checking whether we are using GNU C" >&5
[15285]762if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
763  echo $ac_n "(cached) $ac_c" 1>&6
764else
765  cat > conftest.c <<EOF
766#ifdef __GNUC__
767  yes;
768#endif
769EOF
[18403]770if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
[15285]771  ac_cv_prog_gcc=yes
772else
773  ac_cv_prog_gcc=no
774fi
775fi
776
777echo "$ac_t""$ac_cv_prog_gcc" 1>&6
778
779if test $ac_cv_prog_gcc = yes; then
780  GCC=yes
781else
782  GCC=
783fi
784
785ac_test_CFLAGS="${CFLAGS+set}"
786ac_save_CFLAGS="$CFLAGS"
787CFLAGS=
788echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
[18403]789echo "configure:790: checking whether ${CC-cc} accepts -g" >&5
[15285]790if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
791  echo $ac_n "(cached) $ac_c" 1>&6
792else
793  echo 'void f(){}' > conftest.c
794if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
795  ac_cv_prog_cc_g=yes
796else
797  ac_cv_prog_cc_g=no
798fi
799rm -f conftest*
800
801fi
802
803echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
804if test "$ac_test_CFLAGS" = set; then
805  CFLAGS="$ac_save_CFLAGS"
806elif test $ac_cv_prog_cc_g = yes; then
807  if test "$GCC" = yes; then
808    CFLAGS="-g -O2"
809  else
810    CFLAGS="-g"
811  fi
812else
813  if test "$GCC" = yes; then
814    CFLAGS="-O2"
815  else
816    CFLAGS=
817  fi
818fi
819
820echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
[18403]821echo "configure:822: checking how to run the C preprocessor" >&5
[15285]822# On Suns, sometimes $CPP names a directory.
823if test -n "$CPP" && test -d "$CPP"; then
824  CPP=
825fi
826if test -z "$CPP"; then
827if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
828  echo $ac_n "(cached) $ac_c" 1>&6
829else
830    # This must be in double quotes, not single quotes, because CPP may get
831  # substituted into the Makefile and "${CC-cc}" will confuse make.
832  CPP="${CC-cc} -E"
833  # On the NeXT, cc -E runs the code through the compiler's parser,
834  # not just through cpp.
835  cat > conftest.$ac_ext <<EOF
[18403]836#line 837 "configure"
[15285]837#include "confdefs.h"
838#include <assert.h>
839Syntax Error
840EOF
841ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[18403]842{ (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[15285]843ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
844if test -z "$ac_err"; then
845  :
846else
847  echo "$ac_err" >&5
848  echo "configure: failed program was:" >&5
849  cat conftest.$ac_ext >&5
850  rm -rf conftest*
851  CPP="${CC-cc} -E -traditional-cpp"
852  cat > conftest.$ac_ext <<EOF
[18403]853#line 854 "configure"
[15285]854#include "confdefs.h"
855#include <assert.h>
856Syntax Error
857EOF
858ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[18403]859{ (eval echo configure:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[15285]860ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
861if test -z "$ac_err"; then
862  :
863else
864  echo "$ac_err" >&5
865  echo "configure: failed program was:" >&5
866  cat conftest.$ac_ext >&5
867  rm -rf conftest*
868  CPP="${CC-cc} -nologo -E"
869  cat > conftest.$ac_ext <<EOF
[18403]870#line 871 "configure"
[15285]871#include "confdefs.h"
872#include <assert.h>
873Syntax Error
874EOF
875ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[18403]876{ (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[15285]877ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
878if test -z "$ac_err"; then
879  :
880else
881  echo "$ac_err" >&5
882  echo "configure: failed program was:" >&5
883  cat conftest.$ac_ext >&5
884  rm -rf conftest*
885  CPP=/lib/cpp
886fi
887rm -f conftest*
888fi
889rm -f conftest*
890fi
891rm -f conftest*
892  ac_cv_prog_CPP="$CPP"
893fi
894  CPP="$ac_cv_prog_CPP"
895else
896  ac_cv_prog_CPP="$CPP"
897fi
898echo "$ac_t""$CPP" 1>&6
899
900# Find a good install program.  We prefer a C program (faster),
901# so one script is as good as another.  But avoid the broken or
902# incompatible versions:
903# SysV /etc/install, /usr/sbin/install
904# SunOS /usr/etc/install
905# IRIX /sbin/install
906# AIX /bin/install
907# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
908# AFS /usr/afsws/bin/install, which mishandles nonexistent args
909# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
910# ./install, which can be erroneously created by make from ./install.sh.
911echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
[18403]912echo "configure:913: checking for a BSD compatible install" >&5
[15285]913if test -z "$INSTALL"; then
914if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
915  echo $ac_n "(cached) $ac_c" 1>&6
916else
917    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
918  for ac_dir in $PATH; do
919    # Account for people who put trailing slashes in PATH elements.
920    case "$ac_dir/" in
921    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
922    *)
923      # OSF1 and SCO ODT 3.0 have their own names for install.
924      # Don't use installbsd from OSF since it installs stuff as root
925      # by default.
926      for ac_prog in ginstall scoinst install; do
927        if test -f $ac_dir/$ac_prog; then
928          if test $ac_prog = install &&
929            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
930            # AIX install.  It has an incompatible calling convention.
931            :
932          else
933            ac_cv_path_install="$ac_dir/$ac_prog -c"
934            break 2
935          fi
936        fi
937      done
938      ;;
939    esac
940  done
941  IFS="$ac_save_IFS"
942
943fi
944  if test "${ac_cv_path_install+set}" = set; then
945    INSTALL="$ac_cv_path_install"
946  else
947    # As a last resort, use the slow shell script.  We don't cache a
948    # path for INSTALL within a source directory, because that will
949    # break other packages using the cache if that directory is
950    # removed, or if the path is relative.
951    INSTALL="$ac_install_sh"
952  fi
953fi
954echo "$ac_t""$INSTALL" 1>&6
955
956# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
957# It thinks the first close brace ends the variable substitution.
958test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
959
960test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
961
962test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
963
964echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
[18403]965echo "configure:966: checking whether ln -s works" >&5
[15285]966if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
967  echo $ac_n "(cached) $ac_c" 1>&6
968else
969  rm -f conftestdata
970if ln -s X conftestdata 2>/dev/null
971then
972  rm -f conftestdata
973  ac_cv_prog_LN_S="ln -s"
974else
975  ac_cv_prog_LN_S=ln
976fi
977fi
978LN_S="$ac_cv_prog_LN_S"
979if test "$ac_cv_prog_LN_S" = "ln -s"; then
980  echo "$ac_t""yes" 1>&6
981else
982  echo "$ac_t""no" 1>&6
983fi
984
985echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
[18403]986echo "configure:987: checking whether ${MAKE-make} sets \${MAKE}" >&5
[15285]987set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
988if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
989  echo $ac_n "(cached) $ac_c" 1>&6
990else
991  cat > conftestmake <<\EOF
992all:
993        @echo 'ac_maketemp="${MAKE}"'
994EOF
995# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
996eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
997if test -n "$ac_maketemp"; then
998  eval ac_cv_prog_make_${ac_make}_set=yes
999else
1000  eval ac_cv_prog_make_${ac_make}_set=no
1001fi
1002rm -f conftestmake
1003fi
1004if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1005  echo "$ac_t""yes" 1>&6
1006  SET_MAKE=
1007else
1008  echo "$ac_t""no" 1>&6
1009  SET_MAKE="MAKE=${MAKE-make}"
1010fi
1011
1012if test $ac_cv_prog_gcc = yes; then
1013    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
[18403]1014echo "configure:1015: checking whether ${CC-cc} needs -traditional" >&5
[15285]1015if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1016  echo $ac_n "(cached) $ac_c" 1>&6
1017else
1018    ac_pattern="Autoconf.*'x'"
1019  cat > conftest.$ac_ext <<EOF
[18403]1020#line 1021 "configure"
[15285]1021#include "confdefs.h"
1022#include <sgtty.h>
1023Autoconf TIOCGETP
1024EOF
1025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1026  egrep "$ac_pattern" >/dev/null 2>&1; then
1027  rm -rf conftest*
1028  ac_cv_prog_gcc_traditional=yes
1029else
1030  rm -rf conftest*
1031  ac_cv_prog_gcc_traditional=no
1032fi
1033rm -f conftest*
1034
1035
1036  if test $ac_cv_prog_gcc_traditional = no; then
1037    cat > conftest.$ac_ext <<EOF
[18403]1038#line 1039 "configure"
[15285]1039#include "confdefs.h"
1040#include <termio.h>
1041Autoconf TCGETA
1042EOF
1043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1044  egrep "$ac_pattern" >/dev/null 2>&1; then
1045  rm -rf conftest*
1046  ac_cv_prog_gcc_traditional=yes
1047fi
1048rm -f conftest*
1049
1050  fi
1051fi
1052
1053echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1054  if test $ac_cv_prog_gcc_traditional = yes; then
1055    CC="$CC -traditional"
1056  fi
1057fi
1058
1059
1060if test "x${GCC}" = "xyes" -a "x$CFLAGS" = "x-g -O2"; then
1061  CFLAGS="${CFLAGS} -Wall -Wmissing-prototypes -Wno-implicit-int"
1062fi
1063
1064  # Check whether --with-rep_prefix or --without-rep_prefix was given.
1065if test "${with_rep_prefix+set}" = set; then
1066  withval="$with_rep_prefix"
1067  rep_prefix="$withval"
1068else
1069  rep_prefix=""
1070fi
1071
1072  if test "x$rep_prefix" = "x"; then
1073    rep_config="rep-config"
1074  else
1075    rep_config="${rep_prefix}/bin/rep-config"
1076  fi
1077  min_rep_version=0.13
1078  echo $ac_n "checking for rep - version >= $min_rep_version""... $ac_c" 1>&6
[18403]1079echo "configure:1080: checking for rep - version >= $min_rep_version" >&5
[15285]1080  rep_version=`$rep_config --version`
1081  if test $? -eq 0; then
1082    rep_major=`echo $rep_version \
1083        | sed -e 's/\([0-9]*\)\..*/\1/'`
1084    rep_minor=`echo $rep_version \
1085        | sed -e 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
1086    min_rep_major=`echo $min_rep_version \
1087        | sed -e 's/\([0-9]*\)\..*/\1/'`
1088    min_rep_minor=`echo $min_rep_version \
1089        | sed -e 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
1090    if test '(' $rep_major -gt $min_rep_major ')' \
1091        -o '(' $rep_major -eq $min_rep_major \
1092               -a $rep_minor -ge $min_rep_minor ')';
1093    then
1094      REP_VERSION="${rep_version}"
1095      REP_CFLAGS="`$rep_config --cflags`"
1096      REP_LIBS="`$rep_config --libs`"
1097      REP_EXECDIR="`$rep_config --execdir`"
1098     
1099     
1100     
1101     
1102      echo "$ac_t""version ${rep_version}" 1>&6
1103    else
1104      { echo "configure: error: version ${rep_version}; require $min_rep_version" 1>&2; exit 1; }
1105    fi
1106  else
1107    { echo "configure: error: can't find librep; is it installed?" 1>&2; exit 1; }
1108  fi
1109
1110    echo $ac_n "checking for GNU msgfmt""... $ac_c" 1>&6
[18403]1111echo "configure:1112: checking for GNU msgfmt" >&5
[15285]1112  REP_MSGFMT=
1113  for p in `echo "$PATH" | sed -e 's/:/ /g'`; do
1114    if test -x $p/msgfmt; then
1115      if $p/msgfmt --version 2>&1 | grep GNU >/dev/null; then
1116        REP_MSGFMT=$p/msgfmt
1117      fi
1118    fi
1119  done
1120  if test x$REP_MSGFMT != x; then
1121    echo "$ac_t""$REP_MSGFMT" 1>&6
1122  else
1123    echo "$ac_t""unavailable" 1>&6
1124    REP_MSGFMT=true
1125  fi
1126 
1127
1128
1129
[18403]1130  succeeded=no
[15285]1131
[18403]1132  if test -z "$PKG_CONFIG"; then
1133    # Extract the first word of "pkg-config", so it can be a program name with args.
1134set dummy pkg-config; ac_word=$2
[15285]1135echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[18403]1136echo "configure:1137: checking for $ac_word" >&5
1137if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
[15285]1138  echo $ac_n "(cached) $ac_c" 1>&6
1139else
[18403]1140  case "$PKG_CONFIG" in
[15285]1141  /*)
[18403]1142  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
[15285]1143  ;;
1144  ?:/*)                 
[18403]1145  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
[15285]1146  ;;
1147  *)
1148  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1149  ac_dummy="$PATH"
1150  for ac_dir in $ac_dummy; do
1151    test -z "$ac_dir" && ac_dir=.
1152    if test -f $ac_dir/$ac_word; then
[18403]1153      ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
[15285]1154      break
1155    fi
1156  done
1157  IFS="$ac_save_ifs"
[18403]1158  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
[15285]1159  ;;
1160esac
1161fi
[18403]1162PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
1163if test -n "$PKG_CONFIG"; then
1164  echo "$ac_t""$PKG_CONFIG" 1>&6
[15285]1165else
1166  echo "$ac_t""no" 1>&6
1167fi
1168
[18403]1169  fi
1170
1171  if test "$PKG_CONFIG" = "no" ; then
1172     echo "*** The pkg-config script could not be found. Make sure it is"
1173     echo "*** in your path, or set the PKG_CONFIG environment variable"
1174     echo "*** to the full path to pkg-config."
1175     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
[15285]1176  else
[18403]1177     PKG_CONFIG_MIN_VERSION=0.9.0
1178     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
1179        echo $ac_n "checking for glib-2.0 >= 1.3""... $ac_c" 1>&6
1180echo "configure:1181: checking for glib-2.0 >= 1.3" >&5
[15285]1181
[18403]1182        if $PKG_CONFIG --exists "glib-2.0 >= 1.3" ; then
1183            echo "$ac_t""yes" 1>&6
1184            succeeded=yes
[15285]1185
[18403]1186            echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6
1187echo "configure:1188: checking GLIB_CFLAGS" >&5
1188            GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 1.3"`
1189            echo "$ac_t""$GLIB_CFLAGS" 1>&6
[15285]1190
[18403]1191            echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6
1192echo "configure:1193: checking GLIB_LIBS" >&5
1193            GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 1.3"`
1194            echo "$ac_t""$GLIB_LIBS" 1>&6
1195        else
1196            GLIB_CFLAGS=""
1197            GLIB_LIBS=""
1198            ## If we have a custom action on failure, don't print errors, but
1199            ## do set a variable so people can do so.
1200            GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 1.3"`
1201            echo $GLIB_PKG_ERRORS
1202        fi
[15285]1203
[18403]1204       
1205       
[15285]1206     else
[18403]1207        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
1208        echo "*** See http://www.freedesktop.org/software/pkgconfig"
[15285]1209     fi
1210  fi
1211
[18403]1212  if test $succeeded = yes; then
[15285]1213     :
[18403]1214  else
1215     { echo "configure: error: Library requirements (glib-2.0 >= 1.3) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
[15285]1216  fi
1217
1218
1219
[18403]1220  succeeded=no
[15285]1221
[18403]1222  if test -z "$PKG_CONFIG"; then
1223    # Extract the first word of "pkg-config", so it can be a program name with args.
1224set dummy pkg-config; ac_word=$2
[15285]1225echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[18403]1226echo "configure:1227: checking for $ac_word" >&5
1227if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
[15285]1228  echo $ac_n "(cached) $ac_c" 1>&6
1229else
[18403]1230  case "$PKG_CONFIG" in
[15285]1231  /*)
[18403]1232  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
[15285]1233  ;;
1234  ?:/*)                 
[18403]1235  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
[15285]1236  ;;
1237  *)
1238  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1239  ac_dummy="$PATH"
1240  for ac_dir in $ac_dummy; do
1241    test -z "$ac_dir" && ac_dir=.
1242    if test -f $ac_dir/$ac_word; then
[18403]1243      ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
[15285]1244      break
1245    fi
1246  done
1247  IFS="$ac_save_ifs"
[18403]1248  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
[15285]1249  ;;
1250esac
1251fi
[18403]1252PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
1253if test -n "$PKG_CONFIG"; then
1254  echo "$ac_t""$PKG_CONFIG" 1>&6
[15285]1255else
1256  echo "$ac_t""no" 1>&6
1257fi
1258
[18403]1259  fi
1260
1261  if test "$PKG_CONFIG" = "no" ; then
1262     echo "*** The pkg-config script could not be found. Make sure it is"
1263     echo "*** in your path, or set the PKG_CONFIG environment variable"
1264     echo "*** to the full path to pkg-config."
1265     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
[15285]1266  else
[18403]1267     PKG_CONFIG_MIN_VERSION=0.9.0
1268     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
1269        echo $ac_n "checking for gtk+-2.0 >= 1.3""... $ac_c" 1>&6
1270echo "configure:1271: checking for gtk+-2.0 >= 1.3" >&5
[15285]1271
[18403]1272        if $PKG_CONFIG --exists "gtk+-2.0 >= 1.3" ; then
1273            echo "$ac_t""yes" 1>&6
1274            succeeded=yes
[15285]1275
[18403]1276            echo $ac_n "checking GTK_CFLAGS""... $ac_c" 1>&6
1277echo "configure:1278: checking GTK_CFLAGS" >&5
1278            GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 1.3"`
1279            echo "$ac_t""$GTK_CFLAGS" 1>&6
[15285]1280
[18403]1281            echo $ac_n "checking GTK_LIBS""... $ac_c" 1>&6
1282echo "configure:1283: checking GTK_LIBS" >&5
1283            GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 1.3"`
1284            echo "$ac_t""$GTK_LIBS" 1>&6
1285        else
1286            GTK_CFLAGS=""
1287            GTK_LIBS=""
1288            ## If we have a custom action on failure, don't print errors, but
1289            ## do set a variable so people can do so.
1290            GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 1.3"`
1291           
1292        fi
[15285]1293
[18403]1294       
1295       
[15285]1296     else
[18403]1297        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
1298        echo "*** See http://www.freedesktop.org/software/pkgconfig"
[15285]1299     fi
1300  fi
1301
[18403]1302  if test $succeeded = yes; then
1303     :
[15285]1304  else
[18403]1305     { echo "configure: error: need at least Gtk+ version 1.3" 1>&2; exit 1; }
[15285]1306  fi
1307
1308
1309
[18403]1310  succeeded=no
[15285]1311
[18403]1312  if test -z "$PKG_CONFIG"; then
1313    # Extract the first word of "pkg-config", so it can be a program name with args.
1314set dummy pkg-config; ac_word=$2
[15285]1315echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[18403]1316echo "configure:1317: checking for $ac_word" >&5
1317if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
[15285]1318  echo $ac_n "(cached) $ac_c" 1>&6
1319else
[18403]1320  case "$PKG_CONFIG" in
[15285]1321  /*)
[18403]1322  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
[15285]1323  ;;
1324  ?:/*)                 
[18403]1325  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
[15285]1326  ;;
1327  *)
1328  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1329  ac_dummy="$PATH"
1330  for ac_dir in $ac_dummy; do
1331    test -z "$ac_dir" && ac_dir=.
1332    if test -f $ac_dir/$ac_word; then
[18403]1333      ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
[15285]1334      break
1335    fi
1336  done
1337  IFS="$ac_save_ifs"
[18403]1338  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
[15285]1339  ;;
1340esac
1341fi
[18403]1342PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
1343if test -n "$PKG_CONFIG"; then
1344  echo "$ac_t""$PKG_CONFIG" 1>&6
[15285]1345else
1346  echo "$ac_t""no" 1>&6
1347fi
1348
1349  fi
1350
[18403]1351  if test "$PKG_CONFIG" = "no" ; then
1352     echo "*** The pkg-config script could not be found. Make sure it is"
1353     echo "*** in your path, or set the PKG_CONFIG environment variable"
1354     echo "*** to the full path to pkg-config."
1355     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
1356  else
1357     PKG_CONFIG_MIN_VERSION=0.9.0
1358     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
1359        echo $ac_n "checking for gdk-pixbuf-2.0 >= 1.3.11""... $ac_c" 1>&6
1360echo "configure:1361: checking for gdk-pixbuf-2.0 >= 1.3.11" >&5
[15285]1361
[18403]1362        if $PKG_CONFIG --exists "gdk-pixbuf-2.0 >= 1.3.11" ; then
1363            echo "$ac_t""yes" 1>&6
1364            succeeded=yes
[15285]1365
[18403]1366            echo $ac_n "checking GDK_PIXBUF_CFLAGS""... $ac_c" 1>&6
1367echo "configure:1368: checking GDK_PIXBUF_CFLAGS" >&5
1368            GDK_PIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0 >= 1.3.11"`
1369            echo "$ac_t""$GDK_PIXBUF_CFLAGS" 1>&6
[15285]1370
[18403]1371            echo $ac_n "checking GDK_PIXBUF_LIBS""... $ac_c" 1>&6
1372echo "configure:1373: checking GDK_PIXBUF_LIBS" >&5
1373            GDK_PIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0 >= 1.3.11"`
1374            echo "$ac_t""$GDK_PIXBUF_LIBS" 1>&6
1375        else
1376            GDK_PIXBUF_CFLAGS=""
1377            GDK_PIXBUF_LIBS=""
1378            ## If we have a custom action on failure, don't print errors, but
1379            ## do set a variable so people can do so.
1380            GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-pixbuf-2.0 >= 1.3.11"`
1381            echo $GDK_PIXBUF_PKG_ERRORS
1382        fi
[15285]1383
[18403]1384       
1385       
1386     else
1387        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
1388        echo "*** See http://www.freedesktop.org/software/pkgconfig"
1389     fi
1390  fi
[15285]1391
[18403]1392  if test $succeeded = yes; then
1393     :
[15285]1394  else
[18403]1395     { echo "configure: error: Library requirements (gdk-pixbuf-2.0 >= 1.3.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
[15285]1396  fi
1397
[18403]1398
1399echo $ac_n "checking for GNOME libs""... $ac_c" 1>&6
1400echo "configure:1401: checking for GNOME libs" >&5
1401# Check whether --with-gnome or --without-gnome was given.
1402if test "${with_gnome+set}" = set; then
1403  withval="$with_gnome"
[15285]1404  :
1405else
[18403]1406  with_gnome=no
[15285]1407fi
1408
[18403]1409if test "$with_gnome" != "no"; then
1410  GNOME_VERSION="`pkg-config --modversion libgnome-2.0`"
1411  if test $? -eq 0; then
1412        GNOME_LIBS="`pkg-config --libs libgnome-2.0`"
1413    GNOME_CFLAGS="`pkg-config --cflags libgnome-2.0`"
1414    GNOMEUI_LIBS="`pkg-config --libs libgnomeui-2.0`"
1415    GNOMEUI_CFLAGS="`pkg-config --cflags libgnomeui-2.0`"
1416    GNOME_CANVAS_LIBS="`pkg-config --libs libgnomecanvas-2.0`"
1417    GNOME_CANVAS_CFLAGS="`pkg-config --cflags libgnomecanvas-2.0`"
1418    echo "$ac_t""$GNOME_VERSION" 1>&6
1419    OUT="$OUT gtk-2/gnome-lib.la gtk-2/gnome-ui.la gtk-2/gnome-canvas.la"
1420    with_gnome=yes
1421  elif test "$with_gnome" = "yes"; then
1422    { echo "configure: error: can't run pkg-config" 1>&2; exit 1; };
1423  else
1424    with_gnome=no
1425  fi
[15285]1426fi
1427
1428
[18403]1429
1430
1431
1432
1433
1434
1435# Check whether --with-libglade or --without-libglade was given.
1436if test "${with_libglade+set}" = set; then
1437  withval="$with_libglade"
[15285]1438  :
1439else
[18403]1440  with_libglade=yes
[15285]1441fi
1442
[18403]1443if test "$with_libglade" = "yes"; then
1444 
1445  succeeded=no
[15285]1446
[18403]1447  if test -z "$PKG_CONFIG"; then
1448    # Extract the first word of "pkg-config", so it can be a program name with args.
1449set dummy pkg-config; ac_word=$2
[15285]1450echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[18403]1451echo "configure:1452: checking for $ac_word" >&5
1452if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
[15285]1453  echo $ac_n "(cached) $ac_c" 1>&6
1454else
[18403]1455  case "$PKG_CONFIG" in
[15285]1456  /*)
[18403]1457  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
[15285]1458  ;;
1459  ?:/*)                 
[18403]1460  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
[15285]1461  ;;
1462  *)
1463  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1464  ac_dummy="$PATH"
1465  for ac_dir in $ac_dummy; do
1466    test -z "$ac_dir" && ac_dir=.
1467    if test -f $ac_dir/$ac_word; then
[18403]1468      ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
[15285]1469      break
1470    fi
1471  done
1472  IFS="$ac_save_ifs"
[18403]1473  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
[15285]1474  ;;
1475esac
1476fi
[18403]1477PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
1478if test -n "$PKG_CONFIG"; then
1479  echo "$ac_t""$PKG_CONFIG" 1>&6
[15285]1480else
1481  echo "$ac_t""no" 1>&6
1482fi
1483
[18403]1484  fi
[15285]1485
[18403]1486  if test "$PKG_CONFIG" = "no" ; then
1487     echo "*** The pkg-config script could not be found. Make sure it is"
1488     echo "*** in your path, or set the PKG_CONFIG environment variable"
1489     echo "*** to the full path to pkg-config."
1490     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
[15285]1491  else
[18403]1492     PKG_CONFIG_MIN_VERSION=0.9.0
1493     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
1494        echo $ac_n "checking for libglade-2.0 >= 1.99""... $ac_c" 1>&6
1495echo "configure:1496: checking for libglade-2.0 >= 1.99" >&5
[15285]1496
[18403]1497        if $PKG_CONFIG --exists "libglade-2.0 >= 1.99" ; then
1498            echo "$ac_t""yes" 1>&6
1499            succeeded=yes
[15285]1500
[18403]1501            echo $ac_n "checking LIBGLADE_CFLAGS""... $ac_c" 1>&6
1502echo "configure:1503: checking LIBGLADE_CFLAGS" >&5
1503            LIBGLADE_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0 >= 1.99"`
1504            echo "$ac_t""$LIBGLADE_CFLAGS" 1>&6
[15285]1505
[18403]1506            echo $ac_n "checking LIBGLADE_LIBS""... $ac_c" 1>&6
1507echo "configure:1508: checking LIBGLADE_LIBS" >&5
1508            LIBGLADE_LIBS=`$PKG_CONFIG --libs "libglade-2.0 >= 1.99"`
1509            echo "$ac_t""$LIBGLADE_LIBS" 1>&6
1510        else
1511            LIBGLADE_CFLAGS=""
1512            LIBGLADE_LIBS=""
1513            ## If we have a custom action on failure, don't print errors, but
1514            ## do set a variable so people can do so.
1515            LIBGLADE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglade-2.0 >= 1.99"`
1516            echo $LIBGLADE_PKG_ERRORS
1517        fi
[15285]1518
[18403]1519       
1520       
1521     else
1522        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
1523        echo "*** See http://www.freedesktop.org/software/pkgconfig"
[15285]1524     fi
1525  fi
1526
[18403]1527  if test $succeeded = yes; then
1528     OUT="$OUT gtk-2/libglade.la"
1529  else
1530     { echo "configure: error: Library requirements (libglade-2.0 >= 1.99) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
[15285]1531  fi
1532
1533fi
1534
1535echo $ac_n "checking for working const""... $ac_c" 1>&6
[18403]1536echo "configure:1537: checking for working const" >&5
[15285]1537if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1538  echo $ac_n "(cached) $ac_c" 1>&6
1539else
1540  cat > conftest.$ac_ext <<EOF
[18403]1541#line 1542 "configure"
[15285]1542#include "confdefs.h"
1543
1544int main() {
1545
1546/* Ultrix mips cc rejects this.  */
1547typedef int charset[2]; const charset x;
1548/* SunOS 4.1.1 cc rejects this.  */
1549char const *const *ccp;
1550char **p;
1551/* NEC SVR4.0.2 mips cc rejects this.  */
1552struct point {int x, y;};
1553static struct point const zero = {0,0};
1554/* AIX XL C 1.02.0.0 rejects this.
1555   It does not let you subtract one const X* pointer from another in an arm
1556   of an if-expression whose if-part is not a constant expression */
1557const char *g = "string";
1558ccp = &g + (g ? g-g : 0);
1559/* HPUX 7.0 cc rejects these. */
1560++ccp;
1561p = (char**) ccp;
1562ccp = (char const *const *) p;
1563{ /* SCO 3.2v4 cc rejects this.  */
1564  char *t;
1565  char const *s = 0 ? (char *) 0 : (char const *) 0;
1566
1567  *t++ = 0;
1568}
1569{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1570  int x[] = {25, 17};
1571  const int *foo = &x[0];
1572  ++foo;
1573}
1574{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1575  typedef const int *iptr;
1576  iptr p = 0;
1577  ++p;
1578}
1579{ /* AIX XL C 1.02.0.0 rejects this saying
1580     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1581  struct s { int j; const int *ap[3]; };
1582  struct s *b; b->j = 5;
1583}
1584{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1585  const int foo = 10;
1586}
1587
1588; return 0; }
1589EOF
[18403]1590if { (eval echo configure:1591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
[15285]1591  rm -rf conftest*
1592  ac_cv_c_const=yes
1593else
1594  echo "configure: failed program was:" >&5
1595  cat conftest.$ac_ext >&5
1596  rm -rf conftest*
1597  ac_cv_c_const=no
1598fi
1599rm -f conftest*
1600fi
1601
1602echo "$ac_t""$ac_cv_c_const" 1>&6
1603if test $ac_cv_c_const = no; then
1604  cat >> confdefs.h <<\EOF
1605#define const
1606EOF
1607
1608fi
1609
1610echo $ac_n "checking for inline""... $ac_c" 1>&6
[18403]1611echo "configure:1612: checking for inline" >&5
[15285]1612if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1613  echo $ac_n "(cached) $ac_c" 1>&6
1614else
1615  ac_cv_c_inline=no
1616for ac_kw in inline __inline__ __inline; do
1617  cat > conftest.$ac_ext <<EOF
[18403]1618#line 1619 "configure"
[15285]1619#include "confdefs.h"
1620
1621int main() {
1622} $ac_kw foo() {
1623; return 0; }
1624EOF
[18403]1625if { (eval echo configure:1626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
[15285]1626  rm -rf conftest*
1627  ac_cv_c_inline=$ac_kw; break
1628else
1629  echo "configure: failed program was:" >&5
1630  cat conftest.$ac_ext >&5
1631fi
1632rm -f conftest*
1633done
1634
1635fi
1636
1637echo "$ac_t""$ac_cv_c_inline" 1>&6
1638case "$ac_cv_c_inline" in
1639  inline | yes) ;;
1640  no) cat >> confdefs.h <<\EOF
1641#define inline
1642EOF
1643 ;;
1644  *)  cat >> confdefs.h <<EOF
1645#define inline $ac_cv_c_inline
1646EOF
1647 ;;
1648esac
1649
1650echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
[18403]1651echo "configure:1652: checking for ANSI C header files" >&5
[15285]1652if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1653  echo $ac_n "(cached) $ac_c" 1>&6
1654else
1655  cat > conftest.$ac_ext <<EOF
[18403]1656#line 1657 "configure"
[15285]1657#include "confdefs.h"
1658#include <stdlib.h>
1659#include <stdarg.h>
1660#include <string.h>
1661#include <float.h>
1662EOF
1663ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[18403]1664{ (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[15285]1665ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1666if test -z "$ac_err"; then
1667  rm -rf conftest*
1668  ac_cv_header_stdc=yes
1669else
1670  echo "$ac_err" >&5
1671  echo "configure: failed program was:" >&5
1672  cat conftest.$ac_ext >&5
1673  rm -rf conftest*
1674  ac_cv_header_stdc=no
1675fi
1676rm -f conftest*
1677
1678if test $ac_cv_header_stdc = yes; then
1679  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1680cat > conftest.$ac_ext <<EOF
[18403]1681#line 1682 "configure"
[15285]1682#include "confdefs.h"
1683#include <string.h>
1684EOF
1685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1686  egrep "memchr" >/dev/null 2>&1; then
1687  :
1688else
1689  rm -rf conftest*
1690  ac_cv_header_stdc=no
1691fi
1692rm -f conftest*
1693
1694fi
1695
1696if test $ac_cv_header_stdc = yes; then
1697  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1698cat > conftest.$ac_ext <<EOF
[18403]1699#line 1700 "configure"
[15285]1700#include "confdefs.h"
1701#include <stdlib.h>
1702EOF
1703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1704  egrep "free" >/dev/null 2>&1; then
1705  :
1706else
1707  rm -rf conftest*
1708  ac_cv_header_stdc=no
1709fi
1710rm -f conftest*
1711
1712fi
1713
1714if test $ac_cv_header_stdc = yes; then
1715  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1716if test "$cross_compiling" = yes; then
1717  :
1718else
1719  cat > conftest.$ac_ext <<EOF
[18403]1720#line 1721 "configure"
[15285]1721#include "confdefs.h"
1722#include <ctype.h>
1723#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1724#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1725#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1726int main () { int i; for (i = 0; i < 256; i++)
1727if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1728exit (0); }
1729
1730EOF
[18403]1731if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[15285]1732then
1733  :
1734else
1735  echo "configure: failed program was:" >&5
1736  cat conftest.$ac_ext >&5
1737  rm -fr conftest*
1738  ac_cv_header_stdc=no
1739fi
1740rm -fr conftest*
1741fi
1742
1743fi
1744fi
1745
1746echo "$ac_t""$ac_cv_header_stdc" 1>&6
1747if test $ac_cv_header_stdc = yes; then
1748  cat >> confdefs.h <<\EOF
1749#define STDC_HEADERS 1
1750EOF
1751
1752fi
1753
1754echo $ac_n "checking for size_t""... $ac_c" 1>&6
[18403]1755echo "configure:1756: checking for size_t" >&5
[15285]1756if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1757  echo $ac_n "(cached) $ac_c" 1>&6
1758else
1759  cat > conftest.$ac_ext <<EOF
[18403]1760#line 1761 "configure"
[15285]1761#include "confdefs.h"
1762#include <sys/types.h>
1763#if STDC_HEADERS
1764#include <stdlib.h>
1765#include <stddef.h>
1766#endif
1767EOF
1768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1769  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1770  rm -rf conftest*
1771  ac_cv_type_size_t=yes
1772else
1773  rm -rf conftest*
1774  ac_cv_type_size_t=no
1775fi
1776rm -f conftest*
1777
1778fi
1779echo "$ac_t""$ac_cv_type_size_t" 1>&6
1780if test $ac_cv_type_size_t = no; then
1781  cat >> confdefs.h <<\EOF
1782#define size_t unsigned
1783EOF
1784
1785fi
1786
1787
1788saved_LIBS="$LIBS"
1789LIBS="$GTK_LIBS $saved_LIBS"
1790for ac_func in gdk_color_copy gtk_widget_peek_colormap gtk_type_get_info gtk_signal_set_class_function_full
1791do
1792echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
[18403]1793echo "configure:1794: checking for $ac_func" >&5
[15285]1794if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1795  echo $ac_n "(cached) $ac_c" 1>&6
1796else
1797  cat > conftest.$ac_ext <<EOF
[18403]1798#line 1799 "configure"
[15285]1799#include "confdefs.h"
1800/* System header to define __stub macros and hopefully few prototypes,
1801    which can conflict with char $ac_func(); below.  */
1802#include <assert.h>
1803/* Override any gcc2 internal prototype to avoid an error.  */
1804/* We use char because int might match the return type of a gcc2
1805    builtin and then its argument prototype would still apply.  */
1806char $ac_func();
1807
1808int main() {
1809
1810/* The GNU C library defines this for functions which it implements
1811    to always fail with ENOSYS.  Some functions are actually named
1812    something starting with __ and the normal name is an alias.  */
1813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1814choke me
1815#else
1816$ac_func();
1817#endif
1818
1819; return 0; }
1820EOF
[18403]1821if { (eval echo configure:1822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[15285]1822  rm -rf conftest*
1823  eval "ac_cv_func_$ac_func=yes"
1824else
1825  echo "configure: failed program was:" >&5
1826  cat conftest.$ac_ext >&5
1827  rm -rf conftest*
1828  eval "ac_cv_func_$ac_func=no"
1829fi
1830rm -f conftest*
1831fi
1832
1833if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1834  echo "$ac_t""yes" 1>&6
1835    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1836  cat >> confdefs.h <<EOF
1837#define $ac_tr_func 1
1838EOF
1839 
1840else
1841  echo "$ac_t""no" 1>&6
1842fi
1843done
1844
1845LIBS="$saved_LIBS"
1846
1847for ac_func in setlocale
1848do
1849echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
[18403]1850echo "configure:1851: checking for $ac_func" >&5
[15285]1851if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1852  echo $ac_n "(cached) $ac_c" 1>&6
1853else
1854  cat > conftest.$ac_ext <<EOF
[18403]1855#line 1856 "configure"
[15285]1856#include "confdefs.h"
1857/* System header to define __stub macros and hopefully few prototypes,
1858    which can conflict with char $ac_func(); below.  */
1859#include <assert.h>
1860/* Override any gcc2 internal prototype to avoid an error.  */
1861/* We use char because int might match the return type of a gcc2
1862    builtin and then its argument prototype would still apply.  */
1863char $ac_func();
1864
1865int main() {
1866
1867/* The GNU C library defines this for functions which it implements
1868    to always fail with ENOSYS.  Some functions are actually named
1869    something starting with __ and the normal name is an alias.  */
1870#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1871choke me
1872#else
1873$ac_func();
1874#endif
1875
1876; return 0; }
1877EOF
[18403]1878if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[15285]1879  rm -rf conftest*
1880  eval "ac_cv_func_$ac_func=yes"
1881else
1882  echo "configure: failed program was:" >&5
1883  cat conftest.$ac_ext >&5
1884  rm -rf conftest*
1885  eval "ac_cv_func_$ac_func=no"
1886fi
1887rm -f conftest*
1888fi
1889
1890if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1891  echo "$ac_t""yes" 1>&6
1892    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1893  cat >> confdefs.h <<EOF
1894#define $ac_tr_func 1
1895EOF
1896 
1897else
1898  echo "$ac_t""no" 1>&6
1899fi
1900done
1901
1902for ac_hdr in locale.h
1903do
1904ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1905echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
[18403]1906echo "configure:1907: checking for $ac_hdr" >&5
[15285]1907if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1908  echo $ac_n "(cached) $ac_c" 1>&6
1909else
1910  cat > conftest.$ac_ext <<EOF
[18403]1911#line 1912 "configure"
[15285]1912#include "confdefs.h"
1913#include <$ac_hdr>
1914EOF
1915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[18403]1916{ (eval echo configure:1917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[15285]1917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1918if test -z "$ac_err"; then
1919  rm -rf conftest*
1920  eval "ac_cv_header_$ac_safe=yes"
1921else
1922  echo "$ac_err" >&5
1923  echo "configure: failed program was:" >&5
1924  cat conftest.$ac_ext >&5
1925  rm -rf conftest*
1926  eval "ac_cv_header_$ac_safe=no"
1927fi
1928rm -f conftest*
1929fi
1930if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1931  echo "$ac_t""yes" 1>&6
1932    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1933  cat >> confdefs.h <<EOF
1934#define $ac_tr_hdr 1
1935EOF
1936 
1937else
1938  echo "$ac_t""no" 1>&6
1939fi
1940done
1941
1942
1943
1944
1945
1946
1947
1948
1949cat >> confdefs.h <<EOF
1950#define REP_GTK_VERSION "${version}"
1951EOF
1952
1953
1954trap '' 1 2 15
1955cat > confcache <<\EOF
1956# This file is a shell script that caches the results of configure
1957# tests run on this system so they can be shared between configure
1958# scripts and configure runs.  It is not useful on other systems.
1959# If it contains results you don't want to keep, you may remove or edit it.
1960#
1961# By default, configure uses ./config.cache as the cache file,
1962# creating it if it does not exist already.  You can give configure
1963# the --cache-file=FILE option to use a different cache file; that is
1964# what configure does when it calls configure scripts in
1965# subdirectories, so they share the cache.
1966# Giving --cache-file=/dev/null disables caching, for debugging configure.
1967# config.status only pays attention to the cache file if you give it the
1968# --recheck option to rerun configure.
1969#
1970EOF
1971# The following way of writing the cache mishandles newlines in values,
1972# but we know of no workaround that is simple, portable, and efficient.
1973# So, don't put newlines in cache variables' values.
1974# Ultrix sh set writes to stderr and can't be redirected directly,
1975# and sets the high bit in the cache file unless we assign to the vars.
1976(set) 2>&1 |
1977  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1978  *ac_space=\ *)
1979    # `set' does not quote correctly, so add quotes (double-quote substitution
1980    # turns \\\\ into \\, and sed turns \\ into \).
1981    sed -n \
1982      -e "s/'/'\\\\''/g" \
1983      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1984    ;;
1985  *)
1986    # `set' quotes correctly as required by POSIX, so do not add quotes.
1987    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1988    ;;
1989  esac >> confcache
1990if cmp -s $cache_file confcache; then
1991  :
1992else
1993  if test -w $cache_file; then
1994    echo "updating cache $cache_file"
1995    cat confcache > $cache_file
1996  else
1997    echo "not updating unwritable cache $cache_file"
1998  fi
1999fi
2000rm -f confcache
2001
2002trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2003
2004test "x$prefix" = xNONE && prefix=$ac_default_prefix
2005# Let make expand exec_prefix.
2006test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2007
2008# Any assignment to VPATH causes Sun make to only execute
2009# the first set of double-colon rules, so remove it if not needed.
2010# If there is a colon in the path, we need to keep it.
2011if test "x$srcdir" = x.; then
2012  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2013fi
2014
2015trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2016
2017DEFS=-DHAVE_CONFIG_H
2018
2019# Without the "./", some shells look in PATH for config.status.
2020: ${CONFIG_STATUS=./config.status}
2021
2022echo creating $CONFIG_STATUS
2023rm -f $CONFIG_STATUS
2024cat > $CONFIG_STATUS <<EOF
2025#! /bin/sh
2026# Generated automatically by configure.
2027# Run this file to recreate the current configuration.
2028# This directory was configured as follows,
2029# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2030#
2031# $0 $ac_configure_args
2032#
2033# Compiler output produced by configure, useful for debugging
2034# configure, is in ./config.log if it exists.
2035
2036ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2037for ac_option
2038do
2039  case "\$ac_option" in
2040  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2041    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2042    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2043  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2044    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2045    exit 0 ;;
2046  -help | --help | --hel | --he | --h)
2047    echo "\$ac_cs_usage"; exit 0 ;;
2048  *) echo "\$ac_cs_usage"; exit 1 ;;
2049  esac
2050done
2051
2052ac_given_srcdir=$srcdir
2053ac_given_INSTALL="$INSTALL"
2054
2055trap 'rm -fr `echo "Makefile rep-gtk.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2056EOF
2057cat >> $CONFIG_STATUS <<EOF
2058
2059# Protect against being on the right side of a sed subst in config.status.
2060sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2061 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2062$ac_vpsub
2063$extrasub
2064s%@SHELL@%$SHELL%g
2065s%@CFLAGS@%$CFLAGS%g
2066s%@CPPFLAGS@%$CPPFLAGS%g
2067s%@CXXFLAGS@%$CXXFLAGS%g
2068s%@FFLAGS@%$FFLAGS%g
2069s%@DEFS@%$DEFS%g
2070s%@LDFLAGS@%$LDFLAGS%g
2071s%@LIBS@%$LIBS%g
2072s%@exec_prefix@%$exec_prefix%g
2073s%@prefix@%$prefix%g
2074s%@program_transform_name@%$program_transform_name%g
2075s%@bindir@%$bindir%g
2076s%@sbindir@%$sbindir%g
2077s%@libexecdir@%$libexecdir%g
2078s%@datadir@%$datadir%g
2079s%@sysconfdir@%$sysconfdir%g
2080s%@sharedstatedir@%$sharedstatedir%g
2081s%@localstatedir@%$localstatedir%g
2082s%@libdir@%$libdir%g
2083s%@includedir@%$includedir%g
2084s%@oldincludedir@%$oldincludedir%g
2085s%@infodir@%$infodir%g
2086s%@mandir@%$mandir%g
2087s%@OUT@%$OUT%g
2088s%@host@%$host%g
2089s%@host_alias@%$host_alias%g
2090s%@host_cpu@%$host_cpu%g
2091s%@host_vendor@%$host_vendor%g
2092s%@host_os@%$host_os%g
2093s%@CC@%$CC%g
2094s%@CPP@%$CPP%g
2095s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2096s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2097s%@INSTALL_DATA@%$INSTALL_DATA%g
2098s%@LN_S@%$LN_S%g
2099s%@SET_MAKE@%$SET_MAKE%g
2100s%@REP_VERSION@%$REP_VERSION%g
2101s%@REP_CFLAGS@%$REP_CFLAGS%g
2102s%@REP_LIBS@%$REP_LIBS%g
2103s%@REP_EXECDIR@%$REP_EXECDIR%g
2104s%@REP_MSGFMT@%$REP_MSGFMT%g
[18403]2105s%@PKG_CONFIG@%$PKG_CONFIG%g
[15285]2106s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2107s%@GLIB_LIBS@%$GLIB_LIBS%g
2108s%@GTK_CFLAGS@%$GTK_CFLAGS%g
2109s%@GTK_LIBS@%$GTK_LIBS%g
[18403]2110s%@GDK_PIXBUF_CFLAGS@%$GDK_PIXBUF_CFLAGS%g
2111s%@GDK_PIXBUF_LIBS@%$GDK_PIXBUF_LIBS%g
[15285]2112s%@GNOME_VERSION@%$GNOME_VERSION%g
2113s%@GNOME_LIBS@%$GNOME_LIBS%g
2114s%@GNOME_CFLAGS@%$GNOME_CFLAGS%g
[18403]2115s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
2116s%@GNOMEUI_CFLAGS@%$GNOMEUI_CFLAGS%g
2117s%@GNOME_CANVAS_LIBS@%$GNOME_CANVAS_LIBS%g
2118s%@GNOME_CANVAS_CFLAGS@%$GNOME_CANVAS_CFLAGS%g
[15285]2119s%@LIBGLADE_CFLAGS@%$LIBGLADE_CFLAGS%g
2120s%@LIBGLADE_LIBS@%$LIBGLADE_LIBS%g
2121s%@version@%$version%g
2122s%@repexecdir@%$repexecdir%g
2123
2124CEOF
2125EOF
2126
2127cat >> $CONFIG_STATUS <<\EOF
2128
2129# Split the substitutions into bite-sized pieces for seds with
2130# small command number limits, like on Digital OSF/1 and HP-UX.
2131ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2132ac_file=1 # Number of current file.
2133ac_beg=1 # First line for current file.
2134ac_end=$ac_max_sed_cmds # Line after last line for current file.
2135ac_more_lines=:
2136ac_sed_cmds=""
2137while $ac_more_lines; do
2138  if test $ac_beg -gt 1; then
2139    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2140  else
2141    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2142  fi
2143  if test ! -s conftest.s$ac_file; then
2144    ac_more_lines=false
2145    rm -f conftest.s$ac_file
2146  else
2147    if test -z "$ac_sed_cmds"; then
2148      ac_sed_cmds="sed -f conftest.s$ac_file"
2149    else
2150      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2151    fi
2152    ac_file=`expr $ac_file + 1`
2153    ac_beg=$ac_end
2154    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2155  fi
2156done
2157if test -z "$ac_sed_cmds"; then
2158  ac_sed_cmds=cat
2159fi
2160EOF
2161
2162cat >> $CONFIG_STATUS <<EOF
2163
2164CONFIG_FILES=\${CONFIG_FILES-"Makefile rep-gtk.spec"}
2165EOF
2166cat >> $CONFIG_STATUS <<\EOF
2167for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2168  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2169  case "$ac_file" in
2170  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2171       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2172  *) ac_file_in="${ac_file}.in" ;;
2173  esac
2174
2175  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2176
2177  # Remove last slash and all that follows it.  Not all systems have dirname.
2178  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2179  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2180    # The file is in a subdirectory.
2181    test ! -d "$ac_dir" && mkdir "$ac_dir"
2182    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2183    # A "../" for each directory in $ac_dir_suffix.
2184    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2185  else
2186    ac_dir_suffix= ac_dots=
2187  fi
2188
2189  case "$ac_given_srcdir" in
2190  .)  srcdir=.
2191      if test -z "$ac_dots"; then top_srcdir=.
2192      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2193  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2194  *) # Relative path.
2195    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2196    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2197  esac
2198
2199  case "$ac_given_INSTALL" in
2200  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2201  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2202  esac
2203
2204  echo creating "$ac_file"
2205  rm -f "$ac_file"
2206  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2207  case "$ac_file" in
2208  *Makefile*) ac_comsub="1i\\
2209# $configure_input" ;;
2210  *) ac_comsub= ;;
2211  esac
2212
2213  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2214  sed -e "$ac_comsub
2215s%@configure_input@%$configure_input%g
2216s%@srcdir@%$srcdir%g
2217s%@top_srcdir@%$top_srcdir%g
2218s%@INSTALL@%$INSTALL%g
2219" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2220fi; done
2221rm -f conftest.s*
2222
2223# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2224# NAME is the cpp macro being defined and VALUE is the value it is being given.
2225#
2226# ac_d sets the value in "#define NAME VALUE" lines.
2227ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2228ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2229ac_dC='\3'
2230ac_dD='%g'
2231# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2232ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2233ac_uB='\([      ]\)%\1#\2define\3'
2234ac_uC=' '
2235ac_uD='\4%g'
2236# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2237ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2238ac_eB='$%\1#\2define\3'
2239ac_eC=' '
2240ac_eD='%g'
2241
2242if test "${CONFIG_HEADERS+set}" != set; then
2243EOF
2244cat >> $CONFIG_STATUS <<EOF
2245  CONFIG_HEADERS="config.h"
2246EOF
2247cat >> $CONFIG_STATUS <<\EOF
2248fi
2249for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2250  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2251  case "$ac_file" in
2252  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2253       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2254  *) ac_file_in="${ac_file}.in" ;;
2255  esac
2256
2257  echo creating $ac_file
2258
2259  rm -f conftest.frag conftest.in conftest.out
2260  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2261  cat $ac_file_inputs > conftest.in
2262
2263EOF
2264
2265# Transform confdefs.h into a sed script conftest.vals that substitutes
2266# the proper values into config.h.in to produce config.h.  And first:
2267# Protect against being on the right side of a sed subst in config.status.
2268# Protect against being in an unquoted here document in config.status.
2269rm -f conftest.vals
2270cat > conftest.hdr <<\EOF
2271s/[\\&%]/\\&/g
2272s%[\\$`]%\\&%g
2273s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2274s%ac_d%ac_u%gp
2275s%ac_u%ac_e%gp
2276EOF
2277sed -n -f conftest.hdr confdefs.h > conftest.vals
2278rm -f conftest.hdr
2279
2280# This sed command replaces #undef with comments.  This is necessary, for
2281# example, in the case of _POSIX_SOURCE, which is predefined and required
2282# on some systems where configure will not decide to define it.
2283cat >> conftest.vals <<\EOF
2284s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2285EOF
2286
2287# Break up conftest.vals because some shells have a limit on
2288# the size of here documents, and old seds have small limits too.
2289
2290rm -f conftest.tail
2291while :
2292do
2293  ac_lines=`grep -c . conftest.vals`
2294  # grep -c gives empty output for an empty file on some AIX systems.
2295  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2296  # Write a limited-size here document to conftest.frag.
2297  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2298  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2299  echo 'CEOF
2300  sed -f conftest.frag conftest.in > conftest.out
2301  rm -f conftest.in
2302  mv conftest.out conftest.in
2303' >> $CONFIG_STATUS
2304  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2305  rm -f conftest.vals
2306  mv conftest.tail conftest.vals
2307done
2308rm -f conftest.vals
2309
2310cat >> $CONFIG_STATUS <<\EOF
2311  rm -f conftest.frag conftest.h
2312  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2313  cat conftest.in >> conftest.h
2314  rm -f conftest.in
2315  if cmp -s $ac_file conftest.h 2>/dev/null; then
2316    echo "$ac_file is unchanged"
2317    rm -f conftest.h
2318  else
2319    # Remove last slash and all that follows it.  Not all systems have dirname.
2320      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2321      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2322      # The file is in a subdirectory.
2323      test ! -d "$ac_dir" && mkdir "$ac_dir"
2324    fi
2325    rm -f $ac_file
2326    mv conftest.h $ac_file
2327  fi
2328fi; done
2329
2330EOF
2331cat >> $CONFIG_STATUS <<EOF
2332
2333EOF
2334cat >> $CONFIG_STATUS <<\EOF
2335
2336exit 0
2337EOF
2338chmod +x $CONFIG_STATUS
2339rm -fr confdefs* $ac_clean_files
2340test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2341
2342
Note: See TracBrowser for help on using the repository browser.