1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.57.
4@%:@
5@%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6@%:@ Free Software Foundation, Inc.
7@%:@ This configure script is free software; the Free Software Foundation
8@%:@ gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
253ac_default_prefix=/usr/local
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete.  It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="fldiff.cxx"
274ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION CXXFLAGS LDFLAGS OPTIM docdir CC CFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CP MKDIR RM FLTKCONFIG desktopdir INSTALLDESKTOP UNINSTALLDESKTOP LIB@&t@OBJS LTLIBOBJS'
275ac_subst_files=''
276
277# Initialize some variables set by options.
278ac_init_help=
279ac_init_version=false
280# The variables have the same names as the options, with
281# dashes changed to underlines.
282cache_file=/dev/null
283exec_prefix=NONE
284no_create=
285no_recursion=
286prefix=NONE
287program_prefix=NONE
288program_suffix=NONE
289program_transform_name=s,x,x,
290silent=
291site=
292srcdir=
293verbose=
294x_includes=NONE
295x_libraries=NONE
296
297# Installation directory options.
298# These are left unexpanded so users can "make install exec_prefix=/foo"
299# and all the variables that are supposed to be based on exec_prefix
300# by default will actually change.
301# Use braces instead of parens because sh, perl, etc. also accept them.
302bindir='${exec_prefix}/bin'
303sbindir='${exec_prefix}/sbin'
304libexecdir='${exec_prefix}/libexec'
305datadir='${prefix}/share'
306sysconfdir='${prefix}/etc'
307sharedstatedir='${prefix}/com'
308localstatedir='${prefix}/var'
309libdir='${exec_prefix}/lib'
310includedir='${prefix}/include'
311oldincludedir='/usr/include'
312infodir='${prefix}/info'
313mandir='${prefix}/man'
314
315ac_prev=
316for ac_option
317do
318  # If the previous option needs an argument, assign it.
319  if test -n "$ac_prev"; then
320    eval "$ac_prev=\$ac_option"
321    ac_prev=
322    continue
323  fi
324
325  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
326
327  # Accept the important Cygnus configure options, so we can diagnose typos.
328
329  case $ac_option in
330
331  -bindir | --bindir | --bindi | --bind | --bin | --bi)
332    ac_prev=bindir ;;
333  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334    bindir=$ac_optarg ;;
335
336  -build | --build | --buil | --bui | --bu)
337    ac_prev=build_alias ;;
338  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339    build_alias=$ac_optarg ;;
340
341  -cache-file | --cache-file | --cache-fil | --cache-fi \
342  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343    ac_prev=cache_file ;;
344  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346    cache_file=$ac_optarg ;;
347
348  --config-cache | -C)
349    cache_file=config.cache ;;
350
351  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352    ac_prev=datadir ;;
353  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354  | --da=*)
355    datadir=$ac_optarg ;;
356
357  -disable-* | --disable-*)
358    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359    # Reject names that are not valid shell variable names.
360    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362   { (exit 1); exit 1; }; }
363    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364    eval "enable_$ac_feature=no" ;;
365
366  -enable-* | --enable-*)
367    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368    # Reject names that are not valid shell variable names.
369    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371   { (exit 1); exit 1; }; }
372    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373    case $ac_option in
374      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375      *) ac_optarg=yes ;;
376    esac
377    eval "enable_$ac_feature='$ac_optarg'" ;;
378
379  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381  | --exec | --exe | --ex)
382    ac_prev=exec_prefix ;;
383  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385  | --exec=* | --exe=* | --ex=*)
386    exec_prefix=$ac_optarg ;;
387
388  -gas | --gas | --ga | --g)
389    # Obsolete; use --with-gas.
390    with_gas=yes ;;
391
392  -help | --help | --hel | --he | -h)
393    ac_init_help=long ;;
394  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395    ac_init_help=recursive ;;
396  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397    ac_init_help=short ;;
398
399  -host | --host | --hos | --ho)
400    ac_prev=host_alias ;;
401  -host=* | --host=* | --hos=* | --ho=*)
402    host_alias=$ac_optarg ;;
403
404  -includedir | --includedir | --includedi | --included | --include \
405  | --includ | --inclu | --incl | --inc)
406    ac_prev=includedir ;;
407  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408  | --includ=* | --inclu=* | --incl=* | --inc=*)
409    includedir=$ac_optarg ;;
410
411  -infodir | --infodir | --infodi | --infod | --info | --inf)
412    ac_prev=infodir ;;
413  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414    infodir=$ac_optarg ;;
415
416  -libdir | --libdir | --libdi | --libd)
417    ac_prev=libdir ;;
418  -libdir=* | --libdir=* | --libdi=* | --libd=*)
419    libdir=$ac_optarg ;;
420
421  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422  | --libexe | --libex | --libe)
423    ac_prev=libexecdir ;;
424  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425  | --libexe=* | --libex=* | --libe=*)
426    libexecdir=$ac_optarg ;;
427
428  -localstatedir | --localstatedir | --localstatedi | --localstated \
429  | --localstate | --localstat | --localsta | --localst \
430  | --locals | --local | --loca | --loc | --lo)
431    ac_prev=localstatedir ;;
432  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435    localstatedir=$ac_optarg ;;
436
437  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438    ac_prev=mandir ;;
439  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440    mandir=$ac_optarg ;;
441
442  -nfp | --nfp | --nf)
443    # Obsolete; use --without-fp.
444    with_fp=no ;;
445
446  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447  | --no-cr | --no-c | -n)
448    no_create=yes ;;
449
450  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452    no_recursion=yes ;;
453
454  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456  | --oldin | --oldi | --old | --ol | --o)
457    ac_prev=oldincludedir ;;
458  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461    oldincludedir=$ac_optarg ;;
462
463  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464    ac_prev=prefix ;;
465  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466    prefix=$ac_optarg ;;
467
468  -program-prefix | --program-prefix | --program-prefi | --program-pref \
469  | --program-pre | --program-pr | --program-p)
470    ac_prev=program_prefix ;;
471  -program-prefix=* | --program-prefix=* | --program-prefi=* \
472  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473    program_prefix=$ac_optarg ;;
474
475  -program-suffix | --program-suffix | --program-suffi | --program-suff \
476  | --program-suf | --program-su | --program-s)
477    ac_prev=program_suffix ;;
478  -program-suffix=* | --program-suffix=* | --program-suffi=* \
479  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480    program_suffix=$ac_optarg ;;
481
482  -program-transform-name | --program-transform-name \
483  | --program-transform-nam | --program-transform-na \
484  | --program-transform-n | --program-transform- \
485  | --program-transform | --program-transfor \
486  | --program-transfo | --program-transf \
487  | --program-trans | --program-tran \
488  | --progr-tra | --program-tr | --program-t)
489    ac_prev=program_transform_name ;;
490  -program-transform-name=* | --program-transform-name=* \
491  | --program-transform-nam=* | --program-transform-na=* \
492  | --program-transform-n=* | --program-transform-=* \
493  | --program-transform=* | --program-transfor=* \
494  | --program-transfo=* | --program-transf=* \
495  | --program-trans=* | --program-tran=* \
496  | --progr-tra=* | --program-tr=* | --program-t=*)
497    program_transform_name=$ac_optarg ;;
498
499  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500  | -silent | --silent | --silen | --sile | --sil)
501    silent=yes ;;
502
503  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504    ac_prev=sbindir ;;
505  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506  | --sbi=* | --sb=*)
507    sbindir=$ac_optarg ;;
508
509  -sharedstatedir | --sharedstatedir | --sharedstatedi \
510  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511  | --sharedst | --shareds | --shared | --share | --shar \
512  | --sha | --sh)
513    ac_prev=sharedstatedir ;;
514  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517  | --sha=* | --sh=*)
518    sharedstatedir=$ac_optarg ;;
519
520  -site | --site | --sit)
521    ac_prev=site ;;
522  -site=* | --site=* | --sit=*)
523    site=$ac_optarg ;;
524
525  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526    ac_prev=srcdir ;;
527  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528    srcdir=$ac_optarg ;;
529
530  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531  | --syscon | --sysco | --sysc | --sys | --sy)
532    ac_prev=sysconfdir ;;
533  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535    sysconfdir=$ac_optarg ;;
536
537  -target | --target | --targe | --targ | --tar | --ta | --t)
538    ac_prev=target_alias ;;
539  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540    target_alias=$ac_optarg ;;
541
542  -v | -verbose | --verbose | --verbos | --verbo | --verb)
543    verbose=yes ;;
544
545  -version | --version | --versio | --versi | --vers | -V)
546    ac_init_version=: ;;
547
548  -with-* | --with-*)
549    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550    # Reject names that are not valid shell variable names.
551    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552      { echo "$as_me: error: invalid package name: $ac_package" >&2
553   { (exit 1); exit 1; }; }
554    ac_package=`echo $ac_package| sed 's/-/_/g'`
555    case $ac_option in
556      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557      *) ac_optarg=yes ;;
558    esac
559    eval "with_$ac_package='$ac_optarg'" ;;
560
561  -without-* | --without-*)
562    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563    # Reject names that are not valid shell variable names.
564    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565      { echo "$as_me: error: invalid package name: $ac_package" >&2
566   { (exit 1); exit 1; }; }
567    ac_package=`echo $ac_package | sed 's/-/_/g'`
568    eval "with_$ac_package=no" ;;
569
570  --x)
571    # Obsolete; use --with-x.
572    with_x=yes ;;
573
574  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575  | --x-incl | --x-inc | --x-in | --x-i)
576    ac_prev=x_includes ;;
577  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579    x_includes=$ac_optarg ;;
580
581  -x-libraries | --x-libraries | --x-librarie | --x-librari \
582  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583    ac_prev=x_libraries ;;
584  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586    x_libraries=$ac_optarg ;;
587
588  -*) { echo "$as_me: error: unrecognized option: $ac_option
589Try \`$0 --help' for more information." >&2
590   { (exit 1); exit 1; }; }
591    ;;
592
593  *=*)
594    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595    # Reject names that are not valid shell variable names.
596    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598   { (exit 1); exit 1; }; }
599    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600    eval "$ac_envvar='$ac_optarg'"
601    export $ac_envvar ;;
602
603  *)
604    # FIXME: should be removed in autoconf 3.0.
605    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609    ;;
610
611  esac
612done
613
614if test -n "$ac_prev"; then
615  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616  { echo "$as_me: error: missing argument to $ac_option" >&2
617   { (exit 1); exit 1; }; }
618fi
619
620# Be sure to have absolute paths.
621for ac_var in exec_prefix prefix
622do
623  eval ac_val=$`echo $ac_var`
624  case $ac_val in
625    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627   { (exit 1); exit 1; }; };;
628  esac
629done
630
631# Be sure to have absolute paths.
632for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633              localstatedir libdir includedir oldincludedir infodir mandir
634do
635  eval ac_val=$`echo $ac_var`
636  case $ac_val in
637    [\\/$]* | ?:[\\/]* ) ;;
638    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639   { (exit 1); exit 1; }; };;
640  esac
641done
642
643# There might be people who depend on the old broken behavior: `$host'
644# used to hold the argument of --host etc.
645# FIXME: To remove some day.
646build=$build_alias
647host=$host_alias
648target=$target_alias
649
650# FIXME: To remove some day.
651if test "x$host_alias" != x; then
652  if test "x$build_alias" = x; then
653    cross_compiling=maybe
654    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655    If a cross compiler is detected then cross compile mode will be used." >&2
656  elif test "x$build_alias" != "x$host_alias"; then
657    cross_compiling=yes
658  fi
659fi
660
661ac_tool_prefix=
662test -n "$host_alias" && ac_tool_prefix=$host_alias-
663
664test "$silent" = yes && exec 6>/dev/null
665
666
667# Find the source files, if location was not specified.
668if test -z "$srcdir"; then
669  ac_srcdir_defaulted=yes
670  # Try the directory containing this script, then its parent.
671  ac_confdir=`(dirname "$0") 2>/dev/null ||
672$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673         X"$0" : 'X\(//\)[^/]' \| \
674         X"$0" : 'X\(//\)$' \| \
675         X"$0" : 'X\(/\)' \| \
676         .     : '\(.\)' 2>/dev/null ||
677echo X"$0" |
678    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680  	  /^X\(\/\/\)$/{ s//\1/; q; }
681  	  /^X\(\/\).*/{ s//\1/; q; }
682  	  s/.*/./; q'`
683  srcdir=$ac_confdir
684  if test ! -r $srcdir/$ac_unique_file; then
685    srcdir=..
686  fi
687else
688  ac_srcdir_defaulted=no
689fi
690if test ! -r $srcdir/$ac_unique_file; then
691  if test "$ac_srcdir_defaulted" = yes; then
692    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693   { (exit 1); exit 1; }; }
694  else
695    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696   { (exit 1); exit 1; }; }
697  fi
698fi
699(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701   { (exit 1); exit 1; }; }
702srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703ac_env_build_alias_set=${build_alias+set}
704ac_env_build_alias_value=$build_alias
705ac_cv_env_build_alias_set=${build_alias+set}
706ac_cv_env_build_alias_value=$build_alias
707ac_env_host_alias_set=${host_alias+set}
708ac_env_host_alias_value=$host_alias
709ac_cv_env_host_alias_set=${host_alias+set}
710ac_cv_env_host_alias_value=$host_alias
711ac_env_target_alias_set=${target_alias+set}
712ac_env_target_alias_value=$target_alias
713ac_cv_env_target_alias_set=${target_alias+set}
714ac_cv_env_target_alias_value=$target_alias
715ac_env_CC_set=${CC+set}
716ac_env_CC_value=$CC
717ac_cv_env_CC_set=${CC+set}
718ac_cv_env_CC_value=$CC
719ac_env_CFLAGS_set=${CFLAGS+set}
720ac_env_CFLAGS_value=$CFLAGS
721ac_cv_env_CFLAGS_set=${CFLAGS+set}
722ac_cv_env_CFLAGS_value=$CFLAGS
723ac_env_LDFLAGS_set=${LDFLAGS+set}
724ac_env_LDFLAGS_value=$LDFLAGS
725ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
726ac_cv_env_LDFLAGS_value=$LDFLAGS
727ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728ac_env_CPPFLAGS_value=$CPPFLAGS
729ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731ac_env_CXX_set=${CXX+set}
732ac_env_CXX_value=$CXX
733ac_cv_env_CXX_set=${CXX+set}
734ac_cv_env_CXX_value=$CXX
735ac_env_CXXFLAGS_set=${CXXFLAGS+set}
736ac_env_CXXFLAGS_value=$CXXFLAGS
737ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
738ac_cv_env_CXXFLAGS_value=$CXXFLAGS
739
740#
741# Report the --help message.
742#
743if test "$ac_init_help" = "long"; then
744  # Omit some internal or obsolete options to make the list less imposing.
745  # This message is too long to be a string in the A/UX 3.1 sh.
746  cat <<_ACEOF
747\`configure' configures this package to adapt to many kinds of systems.
748
749Usage: $0 [OPTION]... [VAR=VALUE]...
750
751To assign environment variables (e.g., CC, CFLAGS...), specify them as
752VAR=VALUE.  See below for descriptions of some of the useful variables.
753
754Defaults for the options are specified in brackets.
755
756Configuration:
757  -h, --help              display this help and exit
758      --help=short        display options specific to this package
759      --help=recursive    display the short help of all the included packages
760  -V, --version           display version information and exit
761  -q, --quiet, --silent   do not print \`checking...' messages
762      --cache-file=FILE   cache test results in FILE [disabled]
763  -C, --config-cache      alias for \`--cache-file=config.cache'
764  -n, --no-create         do not create output files
765      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
766
767_ACEOF
768
769  cat <<_ACEOF
770Installation directories:
771  --prefix=PREFIX         install architecture-independent files in PREFIX
772                          [$ac_default_prefix]
773  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
774                          [PREFIX]
775
776By default, \`make install' will install all the files in
777\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
778an installation prefix other than \`$ac_default_prefix' using \`--prefix',
779for instance \`--prefix=\$HOME'.
780
781For better control, use the options below.
782
783Fine tuning of the installation directories:
784  --bindir=DIR           user executables [EPREFIX/bin]
785  --sbindir=DIR          system admin executables [EPREFIX/sbin]
786  --libexecdir=DIR       program executables [EPREFIX/libexec]
787  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
788  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
789  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
790  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
791  --libdir=DIR           object code libraries [EPREFIX/lib]
792  --includedir=DIR       C header files [PREFIX/include]
793  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
794  --infodir=DIR          info documentation [PREFIX/info]
795  --mandir=DIR           man documentation [PREFIX/man]
796_ACEOF
797
798  cat <<\_ACEOF
799_ACEOF
800fi
801
802if test -n "$ac_init_help"; then
803
804  cat <<\_ACEOF
805
806Optional Features:
807  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
808  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
809  --enable-debug          turn on debugging default=no
810
811Optional Packages:
812  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
813  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
814  --with-docdir           set directory for documentation
815
816Some influential environment variables:
817  CC          C compiler command
818  CFLAGS      C compiler flags
819  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
820              nonstandard directory <lib dir>
821  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
822              headers in a nonstandard directory <include dir>
823  CXX         C++ compiler command
824  CXXFLAGS    C++ compiler flags
825
826Use these variables to override the choices made by `configure' or to help
827it to find libraries and programs with nonstandard names/locations.
828
829_ACEOF
830fi
831
832if test "$ac_init_help" = "recursive"; then
833  # If there are subdirs, report their specific --help.
834  ac_popdir=`pwd`
835  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
836    test -d $ac_dir || continue
837    ac_builddir=.
838
839if test "$ac_dir" != .; then
840  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
841  # A "../" for each directory in $ac_dir_suffix.
842  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
843else
844  ac_dir_suffix= ac_top_builddir=
845fi
846
847case $srcdir in
848  .)  # No --srcdir option.  We are building in place.
849    ac_srcdir=.
850    if test -z "$ac_top_builddir"; then
851       ac_top_srcdir=.
852    else
853       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
854    fi ;;
855  [\\/]* | ?:[\\/]* )  # Absolute path.
856    ac_srcdir=$srcdir$ac_dir_suffix;
857    ac_top_srcdir=$srcdir ;;
858  *) # Relative path.
859    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
860    ac_top_srcdir=$ac_top_builddir$srcdir ;;
861esac
862# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
863# absolute.
864ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
865ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
866ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
867ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
868
869    cd $ac_dir
870    # Check for guested configure; otherwise get Cygnus style configure.
871    if test -f $ac_srcdir/configure.gnu; then
872      echo
873      $SHELL $ac_srcdir/configure.gnu  --help=recursive
874    elif test -f $ac_srcdir/configure; then
875      echo
876      $SHELL $ac_srcdir/configure  --help=recursive
877    elif test -f $ac_srcdir/configure.ac ||
878           test -f $ac_srcdir/configure.in; then
879      echo
880      $ac_configure --help
881    else
882      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
883    fi
884    cd $ac_popdir
885  done
886fi
887
888test -n "$ac_init_help" && exit 0
889if $ac_init_version; then
890  cat <<\_ACEOF
891
892Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
893Free Software Foundation, Inc.
894This configure script is free software; the Free Software Foundation
895gives unlimited permission to copy, distribute and modify it.
896_ACEOF
897  exit 0
898fi
899exec 5>config.log
900cat >&5 <<_ACEOF
901This file contains any messages produced by compilers while
902running configure, to aid debugging if configure makes a mistake.
903
904It was created by $as_me, which was
905generated by GNU Autoconf 2.57.  Invocation command line was
906
907  $ $0 $@
908
909_ACEOF
910{
911cat <<_ASUNAME
912@%:@@%:@ --------- @%:@@%:@
913@%:@@%:@ Platform. @%:@@%:@
914@%:@@%:@ --------- @%:@@%:@
915
916hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
917uname -m = `(uname -m) 2>/dev/null || echo unknown`
918uname -r = `(uname -r) 2>/dev/null || echo unknown`
919uname -s = `(uname -s) 2>/dev/null || echo unknown`
920uname -v = `(uname -v) 2>/dev/null || echo unknown`
921
922/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
923/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
924
925/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
926/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
927/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
928hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
929/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
930/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
931/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
932
933_ASUNAME
934
935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
936for as_dir in $PATH
937do
938  IFS=$as_save_IFS
939  test -z "$as_dir" && as_dir=.
940  echo "PATH: $as_dir"
941done
942
943} >&5
944
945cat >&5 <<_ACEOF
946
947
948@%:@@%:@ ----------- @%:@@%:@
949@%:@@%:@ Core tests. @%:@@%:@
950@%:@@%:@ ----------- @%:@@%:@
951
952_ACEOF
953
954
955# Keep a trace of the command line.
956# Strip out --no-create and --no-recursion so they do not pile up.
957# Strip out --silent because we don't want to record it for future runs.
958# Also quote any args containing shell meta-characters.
959# Make two passes to allow for proper duplicate-argument suppression.
960ac_configure_args=
961ac_configure_args0=
962ac_configure_args1=
963ac_sep=
964ac_must_keep_next=false
965for ac_pass in 1 2
966do
967  for ac_arg
968  do
969    case $ac_arg in
970    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
971    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
972    | -silent | --silent | --silen | --sile | --sil)
973      continue ;;
974    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
975      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
976    esac
977    case $ac_pass in
978    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
979    2)
980      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
981      if test $ac_must_keep_next = true; then
982        ac_must_keep_next=false # Got value, back to normal.
983      else
984        case $ac_arg in
985          *=* | --config-cache | -C | -disable-* | --disable-* \
986          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
987          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
988          | -with-* | --with-* | -without-* | --without-* | --x)
989            case "$ac_configure_args0 " in
990              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
991            esac
992            ;;
993          -* ) ac_must_keep_next=true ;;
994        esac
995      fi
996      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
997      # Get rid of the leading space.
998      ac_sep=" "
999      ;;
1000    esac
1001  done
1002done
1003$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1004$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1005
1006# When interrupted or exit'd, cleanup temporary files, and complete
1007# config.log.  We remove comments because anyway the quotes in there
1008# would cause problems or look ugly.
1009# WARNING: Be sure not to use single quotes in there, as some shells,
1010# such as our DU 5.0 friend, will then `close' the trap.
1011trap 'exit_status=$?
1012  # Save into config.log some information that might help in debugging.
1013  {
1014    echo
1015
1016    cat <<\_ASBOX
1017@%:@@%:@ ---------------- @%:@@%:@
1018@%:@@%:@ Cache variables. @%:@@%:@
1019@%:@@%:@ ---------------- @%:@@%:@
1020_ASBOX
1021    echo
1022    # The following way of writing the cache mishandles newlines in values,
1023{
1024  (set) 2>&1 |
1025    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1026    *ac_space=\ *)
1027      sed -n \
1028        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1029    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1030      ;;
1031    *)
1032      sed -n \
1033        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1034      ;;
1035    esac;
1036}
1037    echo
1038
1039    cat <<\_ASBOX
1040@%:@@%:@ ----------------- @%:@@%:@
1041@%:@@%:@ Output variables. @%:@@%:@
1042@%:@@%:@ ----------------- @%:@@%:@
1043_ASBOX
1044    echo
1045    for ac_var in $ac_subst_vars
1046    do
1047      eval ac_val=$`echo $ac_var`
1048      echo "$ac_var='"'"'$ac_val'"'"'"
1049    done | sort
1050    echo
1051
1052    if test -n "$ac_subst_files"; then
1053      cat <<\_ASBOX
1054@%:@@%:@ ------------- @%:@@%:@
1055@%:@@%:@ Output files. @%:@@%:@
1056@%:@@%:@ ------------- @%:@@%:@
1057_ASBOX
1058      echo
1059      for ac_var in $ac_subst_files
1060      do
1061	eval ac_val=$`echo $ac_var`
1062        echo "$ac_var='"'"'$ac_val'"'"'"
1063      done | sort
1064      echo
1065    fi
1066
1067    if test -s confdefs.h; then
1068      cat <<\_ASBOX
1069@%:@@%:@ ----------- @%:@@%:@
1070@%:@@%:@ confdefs.h. @%:@@%:@
1071@%:@@%:@ ----------- @%:@@%:@
1072_ASBOX
1073      echo
1074      sed "/^$/d" confdefs.h | sort
1075      echo
1076    fi
1077    test "$ac_signal" != 0 &&
1078      echo "$as_me: caught signal $ac_signal"
1079    echo "$as_me: exit $exit_status"
1080  } >&5
1081  rm -f core core.* *.core &&
1082  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1083    exit $exit_status
1084     ' 0
1085for ac_signal in 1 2 13 15; do
1086  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1087done
1088ac_signal=0
1089
1090# confdefs.h avoids OS command line length limits that DEFS can exceed.
1091rm -rf conftest* confdefs.h
1092# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1093echo >confdefs.h
1094
1095# Predefined preprocessor variables.
1096
1097cat >>confdefs.h <<_ACEOF
1098@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1099_ACEOF
1100
1101
1102cat >>confdefs.h <<_ACEOF
1103@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1104_ACEOF
1105
1106
1107cat >>confdefs.h <<_ACEOF
1108@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1109_ACEOF
1110
1111
1112cat >>confdefs.h <<_ACEOF
1113@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1114_ACEOF
1115
1116
1117cat >>confdefs.h <<_ACEOF
1118@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1119_ACEOF
1120
1121
1122# Let the site file select an alternate cache file if it wants to.
1123# Prefer explicitly selected file to automatically selected ones.
1124if test -z "$CONFIG_SITE"; then
1125  if test "x$prefix" != xNONE; then
1126    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1127  else
1128    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1129  fi
1130fi
1131for ac_site_file in $CONFIG_SITE; do
1132  if test -r "$ac_site_file"; then
1133    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1134echo "$as_me: loading site script $ac_site_file" >&6;}
1135    sed 's/^/| /' "$ac_site_file" >&5
1136    . "$ac_site_file"
1137  fi
1138done
1139
1140if test -r "$cache_file"; then
1141  # Some versions of bash will fail to source /dev/null (special
1142  # files actually), so we avoid doing that.
1143  if test -f "$cache_file"; then
1144    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1145echo "$as_me: loading cache $cache_file" >&6;}
1146    case $cache_file in
1147      [\\/]* | ?:[\\/]* ) . $cache_file;;
1148      *)                      . ./$cache_file;;
1149    esac
1150  fi
1151else
1152  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1153echo "$as_me: creating cache $cache_file" >&6;}
1154  >$cache_file
1155fi
1156
1157# Check that the precious variables saved in the cache have kept the same
1158# value.
1159ac_cache_corrupted=false
1160for ac_var in `(set) 2>&1 |
1161               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1162  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1163  eval ac_new_set=\$ac_env_${ac_var}_set
1164  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1165  eval ac_new_val="\$ac_env_${ac_var}_value"
1166  case $ac_old_set,$ac_new_set in
1167    set,)
1168      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1169echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1170      ac_cache_corrupted=: ;;
1171    ,set)
1172      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1173echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1174      ac_cache_corrupted=: ;;
1175    ,);;
1176    *)
1177      if test "x$ac_old_val" != "x$ac_new_val"; then
1178        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1179echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1180        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1181echo "$as_me:   former value:  $ac_old_val" >&2;}
1182        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1183echo "$as_me:   current value: $ac_new_val" >&2;}
1184        ac_cache_corrupted=:
1185      fi;;
1186  esac
1187  # Pass precious variables to config.status.
1188  if test "$ac_new_set" = set; then
1189    case $ac_new_val in
1190    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1191      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1192    *) ac_arg=$ac_var=$ac_new_val ;;
1193    esac
1194    case " $ac_configure_args " in
1195      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1196      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1197    esac
1198  fi
1199done
1200if $ac_cache_corrupted; then
1201  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1202echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1203  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1204echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1205   { (exit 1); exit 1; }; }
1206fi
1207
1208ac_ext=c
1209ac_cpp='$CPP $CPPFLAGS'
1210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1212ac_compiler_gnu=$ac_cv_c_compiler_gnu
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233VERSION="1.1"
1234
1235cat >>confdefs.h <<_ACEOF
1236@%:@define VERSION "fldiff $VERSION"
1237_ACEOF
1238
1239
1240uname=`uname`
1241uversion=`uname -r | sed -e '1,$s/[^0-9]//g'`
1242if test "x$uname" = xIRIX64; then
1243    uname="IRIX"
1244fi
1245if test "x$uname" = x; then
1246    # MingW doesn't provide any output when uname is run, even with "-s"...
1247    uname="CYGWIN"
1248fi
1249
1250CXXFLAGS="${CXXFLAGS:=}"
1251
1252
1253LDFLAGS="${LDFLAGS:=}"
1254
1255
1256OPTIM="-O"
1257
1258
1259# Check whether --enable-debug or --disable-debug was given.
1260if test "${enable_debug+set}" = set; then
1261  enableval="$enable_debug"
1262  if eval "test x$enable_debug = xyes"; then
1263 	OPTIM="-g"
1264else
1265	LDFLAGS="$LDFLAGS -s"
1266fi
1267fi;
1268
1269
1270# Check whether --with-docdir or --without-docdir was given.
1271if test "${with_docdir+set}" = set; then
1272  withval="$with_docdir"
1273  docdir="$withval"
1274else
1275  docdir="NONE"
1276fi;
1277
1278
1279ac_ext=c
1280ac_cpp='$CPP $CPPFLAGS'
1281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1283ac_compiler_gnu=$ac_cv_c_compiler_gnu
1284if test -n "$ac_tool_prefix"; then
1285  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1286set dummy ${ac_tool_prefix}gcc; ac_word=$2
1287echo "$as_me:$LINENO: checking for $ac_word" >&5
1288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1289if test "${ac_cv_prog_CC+set}" = set; then
1290  echo $ECHO_N "(cached) $ECHO_C" >&6
1291else
1292  if test -n "$CC"; then
1293  ac_cv_prog_CC="$CC" # Let the user override the test.
1294else
1295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296for as_dir in $PATH
1297do
1298  IFS=$as_save_IFS
1299  test -z "$as_dir" && as_dir=.
1300  for ac_exec_ext in '' $ac_executable_extensions; do
1301  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1302    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1303    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1304    break 2
1305  fi
1306done
1307done
1308
1309fi
1310fi
1311CC=$ac_cv_prog_CC
1312if test -n "$CC"; then
1313  echo "$as_me:$LINENO: result: $CC" >&5
1314echo "${ECHO_T}$CC" >&6
1315else
1316  echo "$as_me:$LINENO: result: no" >&5
1317echo "${ECHO_T}no" >&6
1318fi
1319
1320fi
1321if test -z "$ac_cv_prog_CC"; then
1322  ac_ct_CC=$CC
1323  # Extract the first word of "gcc", so it can be a program name with args.
1324set dummy gcc; ac_word=$2
1325echo "$as_me:$LINENO: checking for $ac_word" >&5
1326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1328  echo $ECHO_N "(cached) $ECHO_C" >&6
1329else
1330  if test -n "$ac_ct_CC"; then
1331  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1332else
1333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334for as_dir in $PATH
1335do
1336  IFS=$as_save_IFS
1337  test -z "$as_dir" && as_dir=.
1338  for ac_exec_ext in '' $ac_executable_extensions; do
1339  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1340    ac_cv_prog_ac_ct_CC="gcc"
1341    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1342    break 2
1343  fi
1344done
1345done
1346
1347fi
1348fi
1349ac_ct_CC=$ac_cv_prog_ac_ct_CC
1350if test -n "$ac_ct_CC"; then
1351  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1352echo "${ECHO_T}$ac_ct_CC" >&6
1353else
1354  echo "$as_me:$LINENO: result: no" >&5
1355echo "${ECHO_T}no" >&6
1356fi
1357
1358  CC=$ac_ct_CC
1359else
1360  CC="$ac_cv_prog_CC"
1361fi
1362
1363if test -z "$CC"; then
1364  if test -n "$ac_tool_prefix"; then
1365  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1366set dummy ${ac_tool_prefix}cc; ac_word=$2
1367echo "$as_me:$LINENO: checking for $ac_word" >&5
1368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369if test "${ac_cv_prog_CC+set}" = set; then
1370  echo $ECHO_N "(cached) $ECHO_C" >&6
1371else
1372  if test -n "$CC"; then
1373  ac_cv_prog_CC="$CC" # Let the user override the test.
1374else
1375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376for as_dir in $PATH
1377do
1378  IFS=$as_save_IFS
1379  test -z "$as_dir" && as_dir=.
1380  for ac_exec_ext in '' $ac_executable_extensions; do
1381  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1382    ac_cv_prog_CC="${ac_tool_prefix}cc"
1383    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1384    break 2
1385  fi
1386done
1387done
1388
1389fi
1390fi
1391CC=$ac_cv_prog_CC
1392if test -n "$CC"; then
1393  echo "$as_me:$LINENO: result: $CC" >&5
1394echo "${ECHO_T}$CC" >&6
1395else
1396  echo "$as_me:$LINENO: result: no" >&5
1397echo "${ECHO_T}no" >&6
1398fi
1399
1400fi
1401if test -z "$ac_cv_prog_CC"; then
1402  ac_ct_CC=$CC
1403  # Extract the first word of "cc", so it can be a program name with args.
1404set dummy cc; ac_word=$2
1405echo "$as_me:$LINENO: checking for $ac_word" >&5
1406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1408  echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410  if test -n "$ac_ct_CC"; then
1411  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1412else
1413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414for as_dir in $PATH
1415do
1416  IFS=$as_save_IFS
1417  test -z "$as_dir" && as_dir=.
1418  for ac_exec_ext in '' $ac_executable_extensions; do
1419  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420    ac_cv_prog_ac_ct_CC="cc"
1421    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422    break 2
1423  fi
1424done
1425done
1426
1427fi
1428fi
1429ac_ct_CC=$ac_cv_prog_ac_ct_CC
1430if test -n "$ac_ct_CC"; then
1431  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1432echo "${ECHO_T}$ac_ct_CC" >&6
1433else
1434  echo "$as_me:$LINENO: result: no" >&5
1435echo "${ECHO_T}no" >&6
1436fi
1437
1438  CC=$ac_ct_CC
1439else
1440  CC="$ac_cv_prog_CC"
1441fi
1442
1443fi
1444if test -z "$CC"; then
1445  # Extract the first word of "cc", so it can be a program name with args.
1446set dummy cc; ac_word=$2
1447echo "$as_me:$LINENO: checking for $ac_word" >&5
1448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1449if test "${ac_cv_prog_CC+set}" = set; then
1450  echo $ECHO_N "(cached) $ECHO_C" >&6
1451else
1452  if test -n "$CC"; then
1453  ac_cv_prog_CC="$CC" # Let the user override the test.
1454else
1455  ac_prog_rejected=no
1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457for as_dir in $PATH
1458do
1459  IFS=$as_save_IFS
1460  test -z "$as_dir" && as_dir=.
1461  for ac_exec_ext in '' $ac_executable_extensions; do
1462  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1464       ac_prog_rejected=yes
1465       continue
1466     fi
1467    ac_cv_prog_CC="cc"
1468    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1469    break 2
1470  fi
1471done
1472done
1473
1474if test $ac_prog_rejected = yes; then
1475  # We found a bogon in the path, so make sure we never use it.
1476  set dummy $ac_cv_prog_CC
1477  shift
1478  if test $@%:@ != 0; then
1479    # We chose a different compiler from the bogus one.
1480    # However, it has the same basename, so the bogon will be chosen
1481    # first if we set CC to just the basename; use the full file name.
1482    shift
1483    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1484  fi
1485fi
1486fi
1487fi
1488CC=$ac_cv_prog_CC
1489if test -n "$CC"; then
1490  echo "$as_me:$LINENO: result: $CC" >&5
1491echo "${ECHO_T}$CC" >&6
1492else
1493  echo "$as_me:$LINENO: result: no" >&5
1494echo "${ECHO_T}no" >&6
1495fi
1496
1497fi
1498if test -z "$CC"; then
1499  if test -n "$ac_tool_prefix"; then
1500  for ac_prog in cl
1501  do
1502    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1503set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1504echo "$as_me:$LINENO: checking for $ac_word" >&5
1505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506if test "${ac_cv_prog_CC+set}" = set; then
1507  echo $ECHO_N "(cached) $ECHO_C" >&6
1508else
1509  if test -n "$CC"; then
1510  ac_cv_prog_CC="$CC" # Let the user override the test.
1511else
1512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513for as_dir in $PATH
1514do
1515  IFS=$as_save_IFS
1516  test -z "$as_dir" && as_dir=.
1517  for ac_exec_ext in '' $ac_executable_extensions; do
1518  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521    break 2
1522  fi
1523done
1524done
1525
1526fi
1527fi
1528CC=$ac_cv_prog_CC
1529if test -n "$CC"; then
1530  echo "$as_me:$LINENO: result: $CC" >&5
1531echo "${ECHO_T}$CC" >&6
1532else
1533  echo "$as_me:$LINENO: result: no" >&5
1534echo "${ECHO_T}no" >&6
1535fi
1536
1537    test -n "$CC" && break
1538  done
1539fi
1540if test -z "$CC"; then
1541  ac_ct_CC=$CC
1542  for ac_prog in cl
1543do
1544  # Extract the first word of "$ac_prog", so it can be a program name with args.
1545set dummy $ac_prog; ac_word=$2
1546echo "$as_me:$LINENO: checking for $ac_word" >&5
1547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1549  echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
1551  if test -n "$ac_ct_CC"; then
1552  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1553else
1554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555for as_dir in $PATH
1556do
1557  IFS=$as_save_IFS
1558  test -z "$as_dir" && as_dir=.
1559  for ac_exec_ext in '' $ac_executable_extensions; do
1560  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561    ac_cv_prog_ac_ct_CC="$ac_prog"
1562    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563    break 2
1564  fi
1565done
1566done
1567
1568fi
1569fi
1570ac_ct_CC=$ac_cv_prog_ac_ct_CC
1571if test -n "$ac_ct_CC"; then
1572  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1573echo "${ECHO_T}$ac_ct_CC" >&6
1574else
1575  echo "$as_me:$LINENO: result: no" >&5
1576echo "${ECHO_T}no" >&6
1577fi
1578
1579  test -n "$ac_ct_CC" && break
1580done
1581
1582  CC=$ac_ct_CC
1583fi
1584
1585fi
1586
1587
1588test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1589See \`config.log' for more details." >&5
1590echo "$as_me: error: no acceptable C compiler found in \$PATH
1591See \`config.log' for more details." >&2;}
1592   { (exit 1); exit 1; }; }
1593
1594# Provide some information about the compiler.
1595echo "$as_me:$LINENO:" \
1596     "checking for C compiler version" >&5
1597ac_compiler=`set X $ac_compile; echo $2`
1598{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1599  (eval $ac_compiler --version </dev/null >&5) 2>&5
1600  ac_status=$?
1601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1602  (exit $ac_status); }
1603{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1604  (eval $ac_compiler -v </dev/null >&5) 2>&5
1605  ac_status=$?
1606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1607  (exit $ac_status); }
1608{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1609  (eval $ac_compiler -V </dev/null >&5) 2>&5
1610  ac_status=$?
1611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1612  (exit $ac_status); }
1613
1614cat >conftest.$ac_ext <<_ACEOF
1615#line $LINENO "configure"
1616/* confdefs.h.  */
1617_ACEOF
1618cat confdefs.h >>conftest.$ac_ext
1619cat >>conftest.$ac_ext <<_ACEOF
1620/* end confdefs.h.  */
1621
1622int
1623main ()
1624{
1625
1626  ;
1627  return 0;
1628}
1629_ACEOF
1630ac_clean_files_save=$ac_clean_files
1631ac_clean_files="$ac_clean_files a.out a.exe b.out"
1632# Try to create an executable without -o first, disregard a.out.
1633# It will help us diagnose broken compilers, and finding out an intuition
1634# of exeext.
1635echo "$as_me:$LINENO: checking for C compiler default output" >&5
1636echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1637ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1638if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1639  (eval $ac_link_default) 2>&5
1640  ac_status=$?
1641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1642  (exit $ac_status); }; then
1643  # Find the output, starting from the most likely.  This scheme is
1644# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1645# resort.
1646
1647# Be careful to initialize this variable, since it used to be cached.
1648# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1649ac_cv_exeext=
1650# b.out is created by i960 compilers.
1651for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1652do
1653  test -f "$ac_file" || continue
1654  case $ac_file in
1655    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1656        ;;
1657    conftest.$ac_ext )
1658        # This is the source file.
1659        ;;
1660    [ab].out )
1661        # We found the default executable, but exeext='' is most
1662        # certainly right.
1663        break;;
1664    *.* )
1665        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1666        # FIXME: I believe we export ac_cv_exeext for Libtool,
1667        # but it would be cool to find out if it's true.  Does anybody
1668        # maintain Libtool? --akim.
1669        export ac_cv_exeext
1670        break;;
1671    * )
1672        break;;
1673  esac
1674done
1675else
1676  echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1680See \`config.log' for more details." >&5
1681echo "$as_me: error: C compiler cannot create executables
1682See \`config.log' for more details." >&2;}
1683   { (exit 77); exit 77; }; }
1684fi
1685
1686ac_exeext=$ac_cv_exeext
1687echo "$as_me:$LINENO: result: $ac_file" >&5
1688echo "${ECHO_T}$ac_file" >&6
1689
1690# Check the compiler produces executables we can run.  If not, either
1691# the compiler is broken, or we cross compile.
1692echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1693echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1694# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1695# If not cross compiling, check that we can run a simple program.
1696if test "$cross_compiling" != yes; then
1697  if { ac_try='./$ac_file'
1698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1699  (eval $ac_try) 2>&5
1700  ac_status=$?
1701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702  (exit $ac_status); }; }; then
1703    cross_compiling=no
1704  else
1705    if test "$cross_compiling" = maybe; then
1706	cross_compiling=yes
1707    else
1708	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1709If you meant to cross compile, use \`--host'.
1710See \`config.log' for more details." >&5
1711echo "$as_me: error: cannot run C compiled programs.
1712If you meant to cross compile, use \`--host'.
1713See \`config.log' for more details." >&2;}
1714   { (exit 1); exit 1; }; }
1715    fi
1716  fi
1717fi
1718echo "$as_me:$LINENO: result: yes" >&5
1719echo "${ECHO_T}yes" >&6
1720
1721rm -f a.out a.exe conftest$ac_cv_exeext b.out
1722ac_clean_files=$ac_clean_files_save
1723# Check the compiler produces executables we can run.  If not, either
1724# the compiler is broken, or we cross compile.
1725echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1726echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1727echo "$as_me:$LINENO: result: $cross_compiling" >&5
1728echo "${ECHO_T}$cross_compiling" >&6
1729
1730echo "$as_me:$LINENO: checking for suffix of executables" >&5
1731echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1733  (eval $ac_link) 2>&5
1734  ac_status=$?
1735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1736  (exit $ac_status); }; then
1737  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1738# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1739# work properly (i.e., refer to `conftest.exe'), while it won't with
1740# `rm'.
1741for ac_file in conftest.exe conftest conftest.*; do
1742  test -f "$ac_file" || continue
1743  case $ac_file in
1744    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1745    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1746          export ac_cv_exeext
1747          break;;
1748    * ) break;;
1749  esac
1750done
1751else
1752  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1753See \`config.log' for more details." >&5
1754echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1755See \`config.log' for more details." >&2;}
1756   { (exit 1); exit 1; }; }
1757fi
1758
1759rm -f conftest$ac_cv_exeext
1760echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1761echo "${ECHO_T}$ac_cv_exeext" >&6
1762
1763rm -f conftest.$ac_ext
1764EXEEXT=$ac_cv_exeext
1765ac_exeext=$EXEEXT
1766echo "$as_me:$LINENO: checking for suffix of object files" >&5
1767echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1768if test "${ac_cv_objext+set}" = set; then
1769  echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771  cat >conftest.$ac_ext <<_ACEOF
1772#line $LINENO "configure"
1773/* confdefs.h.  */
1774_ACEOF
1775cat confdefs.h >>conftest.$ac_ext
1776cat >>conftest.$ac_ext <<_ACEOF
1777/* end confdefs.h.  */
1778
1779int
1780main ()
1781{
1782
1783  ;
1784  return 0;
1785}
1786_ACEOF
1787rm -f conftest.o conftest.obj
1788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1789  (eval $ac_compile) 2>&5
1790  ac_status=$?
1791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792  (exit $ac_status); }; then
1793  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1794  case $ac_file in
1795    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1796    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1797       break;;
1798  esac
1799done
1800else
1801  echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1805See \`config.log' for more details." >&5
1806echo "$as_me: error: cannot compute suffix of object files: cannot compile
1807See \`config.log' for more details." >&2;}
1808   { (exit 1); exit 1; }; }
1809fi
1810
1811rm -f conftest.$ac_cv_objext conftest.$ac_ext
1812fi
1813echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1814echo "${ECHO_T}$ac_cv_objext" >&6
1815OBJEXT=$ac_cv_objext
1816ac_objext=$OBJEXT
1817echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1818echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1819if test "${ac_cv_c_compiler_gnu+set}" = set; then
1820  echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822  cat >conftest.$ac_ext <<_ACEOF
1823#line $LINENO "configure"
1824/* confdefs.h.  */
1825_ACEOF
1826cat confdefs.h >>conftest.$ac_ext
1827cat >>conftest.$ac_ext <<_ACEOF
1828/* end confdefs.h.  */
1829
1830int
1831main ()
1832{
1833#ifndef __GNUC__
1834       choke me
1835#endif
1836
1837  ;
1838  return 0;
1839}
1840_ACEOF
1841rm -f conftest.$ac_objext
1842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1843  (eval $ac_compile) 2>&5
1844  ac_status=$?
1845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846  (exit $ac_status); } &&
1847         { ac_try='test -s conftest.$ac_objext'
1848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849  (eval $ac_try) 2>&5
1850  ac_status=$?
1851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852  (exit $ac_status); }; }; then
1853  ac_compiler_gnu=yes
1854else
1855  echo "$as_me: failed program was:" >&5
1856sed 's/^/| /' conftest.$ac_ext >&5
1857
1858ac_compiler_gnu=no
1859fi
1860rm -f conftest.$ac_objext conftest.$ac_ext
1861ac_cv_c_compiler_gnu=$ac_compiler_gnu
1862
1863fi
1864echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1865echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1866GCC=`test $ac_compiler_gnu = yes && echo yes`
1867ac_test_CFLAGS=${CFLAGS+set}
1868ac_save_CFLAGS=$CFLAGS
1869CFLAGS="-g"
1870echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1871echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1872if test "${ac_cv_prog_cc_g+set}" = set; then
1873  echo $ECHO_N "(cached) $ECHO_C" >&6
1874else
1875  cat >conftest.$ac_ext <<_ACEOF
1876#line $LINENO "configure"
1877/* confdefs.h.  */
1878_ACEOF
1879cat confdefs.h >>conftest.$ac_ext
1880cat >>conftest.$ac_ext <<_ACEOF
1881/* end confdefs.h.  */
1882
1883int
1884main ()
1885{
1886
1887  ;
1888  return 0;
1889}
1890_ACEOF
1891rm -f conftest.$ac_objext
1892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1893  (eval $ac_compile) 2>&5
1894  ac_status=$?
1895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896  (exit $ac_status); } &&
1897         { ac_try='test -s conftest.$ac_objext'
1898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1899  (eval $ac_try) 2>&5
1900  ac_status=$?
1901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902  (exit $ac_status); }; }; then
1903  ac_cv_prog_cc_g=yes
1904else
1905  echo "$as_me: failed program was:" >&5
1906sed 's/^/| /' conftest.$ac_ext >&5
1907
1908ac_cv_prog_cc_g=no
1909fi
1910rm -f conftest.$ac_objext conftest.$ac_ext
1911fi
1912echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1913echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1914if test "$ac_test_CFLAGS" = set; then
1915  CFLAGS=$ac_save_CFLAGS
1916elif test $ac_cv_prog_cc_g = yes; then
1917  if test "$GCC" = yes; then
1918    CFLAGS="-g -O2"
1919  else
1920    CFLAGS="-g"
1921  fi
1922else
1923  if test "$GCC" = yes; then
1924    CFLAGS="-O2"
1925  else
1926    CFLAGS=
1927  fi
1928fi
1929echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1930echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1931if test "${ac_cv_prog_cc_stdc+set}" = set; then
1932  echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
1934  ac_cv_prog_cc_stdc=no
1935ac_save_CC=$CC
1936cat >conftest.$ac_ext <<_ACEOF
1937#line $LINENO "configure"
1938/* confdefs.h.  */
1939_ACEOF
1940cat confdefs.h >>conftest.$ac_ext
1941cat >>conftest.$ac_ext <<_ACEOF
1942/* end confdefs.h.  */
1943#include <stdarg.h>
1944#include <stdio.h>
1945#include <sys/types.h>
1946#include <sys/stat.h>
1947/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1948struct buf { int x; };
1949FILE * (*rcsopen) (struct buf *, struct stat *, int);
1950static char *e (p, i)
1951     char **p;
1952     int i;
1953{
1954  return p[i];
1955}
1956static char *f (char * (*g) (char **, int), char **p, ...)
1957{
1958  char *s;
1959  va_list v;
1960  va_start (v,p);
1961  s = g (p, va_arg (v,int));
1962  va_end (v);
1963  return s;
1964}
1965int test (int i, double x);
1966struct s1 {int (*f) (int a);};
1967struct s2 {int (*f) (double a);};
1968int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1969int argc;
1970char **argv;
1971int
1972main ()
1973{
1974return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1975  ;
1976  return 0;
1977}
1978_ACEOF
1979# Don't try gcc -ansi; that turns off useful extensions and
1980# breaks some systems' header files.
1981# AIX			-qlanglvl=ansi
1982# Ultrix and OSF/1	-std1
1983# HP-UX 10.20 and later	-Ae
1984# HP-UX older versions	-Aa -D_HPUX_SOURCE
1985# SVR4			-Xc -D__EXTENSIONS__
1986for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1987do
1988  CC="$ac_save_CC $ac_arg"
1989  rm -f conftest.$ac_objext
1990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991  (eval $ac_compile) 2>&5
1992  ac_status=$?
1993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994  (exit $ac_status); } &&
1995         { ac_try='test -s conftest.$ac_objext'
1996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1997  (eval $ac_try) 2>&5
1998  ac_status=$?
1999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000  (exit $ac_status); }; }; then
2001  ac_cv_prog_cc_stdc=$ac_arg
2002break
2003else
2004  echo "$as_me: failed program was:" >&5
2005sed 's/^/| /' conftest.$ac_ext >&5
2006
2007fi
2008rm -f conftest.$ac_objext
2009done
2010rm -f conftest.$ac_ext conftest.$ac_objext
2011CC=$ac_save_CC
2012
2013fi
2014
2015case "x$ac_cv_prog_cc_stdc" in
2016  x|xno)
2017    echo "$as_me:$LINENO: result: none needed" >&5
2018echo "${ECHO_T}none needed" >&6 ;;
2019  *)
2020    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2021echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2022    CC="$CC $ac_cv_prog_cc_stdc" ;;
2023esac
2024
2025# Some people use a C++ compiler to compile C.  Since we use `exit',
2026# in C++ we need to declare it.  In case someone uses the same compiler
2027# for both compiling C and C++ we need to have the C++ compiler decide
2028# the declaration of exit, since it's the most demanding environment.
2029cat >conftest.$ac_ext <<_ACEOF
2030@%:@ifndef __cplusplus
2031  choke me
2032@%:@endif
2033_ACEOF
2034rm -f conftest.$ac_objext
2035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036  (eval $ac_compile) 2>&5
2037  ac_status=$?
2038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039  (exit $ac_status); } &&
2040         { ac_try='test -s conftest.$ac_objext'
2041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042  (eval $ac_try) 2>&5
2043  ac_status=$?
2044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045  (exit $ac_status); }; }; then
2046  for ac_declaration in \
2047   ''\
2048   '#include <stdlib.h>' \
2049   'extern "C" void std::exit (int) throw (); using std::exit;' \
2050   'extern "C" void std::exit (int); using std::exit;' \
2051   'extern "C" void exit (int) throw ();' \
2052   'extern "C" void exit (int);' \
2053   'void exit (int);'
2054do
2055  cat >conftest.$ac_ext <<_ACEOF
2056#line $LINENO "configure"
2057/* confdefs.h.  */
2058_ACEOF
2059cat confdefs.h >>conftest.$ac_ext
2060cat >>conftest.$ac_ext <<_ACEOF
2061/* end confdefs.h.  */
2062@%:@include <stdlib.h>
2063$ac_declaration
2064int
2065main ()
2066{
2067exit (42);
2068  ;
2069  return 0;
2070}
2071_ACEOF
2072rm -f conftest.$ac_objext
2073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2074  (eval $ac_compile) 2>&5
2075  ac_status=$?
2076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077  (exit $ac_status); } &&
2078         { ac_try='test -s conftest.$ac_objext'
2079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080  (eval $ac_try) 2>&5
2081  ac_status=$?
2082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083  (exit $ac_status); }; }; then
2084  :
2085else
2086  echo "$as_me: failed program was:" >&5
2087sed 's/^/| /' conftest.$ac_ext >&5
2088
2089continue
2090fi
2091rm -f conftest.$ac_objext conftest.$ac_ext
2092  cat >conftest.$ac_ext <<_ACEOF
2093#line $LINENO "configure"
2094/* confdefs.h.  */
2095_ACEOF
2096cat confdefs.h >>conftest.$ac_ext
2097cat >>conftest.$ac_ext <<_ACEOF
2098/* end confdefs.h.  */
2099$ac_declaration
2100int
2101main ()
2102{
2103exit (42);
2104  ;
2105  return 0;
2106}
2107_ACEOF
2108rm -f conftest.$ac_objext
2109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110  (eval $ac_compile) 2>&5
2111  ac_status=$?
2112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113  (exit $ac_status); } &&
2114         { ac_try='test -s conftest.$ac_objext'
2115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116  (eval $ac_try) 2>&5
2117  ac_status=$?
2118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119  (exit $ac_status); }; }; then
2120  break
2121else
2122  echo "$as_me: failed program was:" >&5
2123sed 's/^/| /' conftest.$ac_ext >&5
2124
2125fi
2126rm -f conftest.$ac_objext conftest.$ac_ext
2127done
2128rm -f conftest*
2129if test -n "$ac_declaration"; then
2130  echo '#ifdef __cplusplus' >>confdefs.h
2131  echo $ac_declaration      >>confdefs.h
2132  echo '#endif'             >>confdefs.h
2133fi
2134
2135else
2136  echo "$as_me: failed program was:" >&5
2137sed 's/^/| /' conftest.$ac_ext >&5
2138
2139fi
2140rm -f conftest.$ac_objext conftest.$ac_ext
2141ac_ext=c
2142ac_cpp='$CPP $CPPFLAGS'
2143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2145ac_compiler_gnu=$ac_cv_c_compiler_gnu
2146
2147ac_ext=cc
2148ac_cpp='$CXXCPP $CPPFLAGS'
2149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2152if test -n "$ac_tool_prefix"; then
2153  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2154  do
2155    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2157echo "$as_me:$LINENO: checking for $ac_word" >&5
2158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159if test "${ac_cv_prog_CXX+set}" = set; then
2160  echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162  if test -n "$CXX"; then
2163  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2164else
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168  IFS=$as_save_IFS
2169  test -z "$as_dir" && as_dir=.
2170  for ac_exec_ext in '' $ac_executable_extensions; do
2171  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174    break 2
2175  fi
2176done
2177done
2178
2179fi
2180fi
2181CXX=$ac_cv_prog_CXX
2182if test -n "$CXX"; then
2183  echo "$as_me:$LINENO: result: $CXX" >&5
2184echo "${ECHO_T}$CXX" >&6
2185else
2186  echo "$as_me:$LINENO: result: no" >&5
2187echo "${ECHO_T}no" >&6
2188fi
2189
2190    test -n "$CXX" && break
2191  done
2192fi
2193if test -z "$CXX"; then
2194  ac_ct_CXX=$CXX
2195  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2196do
2197  # Extract the first word of "$ac_prog", so it can be a program name with args.
2198set dummy $ac_prog; ac_word=$2
2199echo "$as_me:$LINENO: checking for $ac_word" >&5
2200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2202  echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
2204  if test -n "$ac_ct_CXX"; then
2205  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2206else
2207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208for as_dir in $PATH
2209do
2210  IFS=$as_save_IFS
2211  test -z "$as_dir" && as_dir=.
2212  for ac_exec_ext in '' $ac_executable_extensions; do
2213  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214    ac_cv_prog_ac_ct_CXX="$ac_prog"
2215    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216    break 2
2217  fi
2218done
2219done
2220
2221fi
2222fi
2223ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2224if test -n "$ac_ct_CXX"; then
2225  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2226echo "${ECHO_T}$ac_ct_CXX" >&6
2227else
2228  echo "$as_me:$LINENO: result: no" >&5
2229echo "${ECHO_T}no" >&6
2230fi
2231
2232  test -n "$ac_ct_CXX" && break
2233done
2234test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2235
2236  CXX=$ac_ct_CXX
2237fi
2238
2239
2240# Provide some information about the compiler.
2241echo "$as_me:$LINENO:" \
2242     "checking for C++ compiler version" >&5
2243ac_compiler=`set X $ac_compile; echo $2`
2244{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2245  (eval $ac_compiler --version </dev/null >&5) 2>&5
2246  ac_status=$?
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); }
2249{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2250  (eval $ac_compiler -v </dev/null >&5) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }
2254{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2255  (eval $ac_compiler -V </dev/null >&5) 2>&5
2256  ac_status=$?
2257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258  (exit $ac_status); }
2259
2260echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2261echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2262if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2263  echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265  cat >conftest.$ac_ext <<_ACEOF
2266#line $LINENO "configure"
2267/* confdefs.h.  */
2268_ACEOF
2269cat confdefs.h >>conftest.$ac_ext
2270cat >>conftest.$ac_ext <<_ACEOF
2271/* end confdefs.h.  */
2272
2273int
2274main ()
2275{
2276#ifndef __GNUC__
2277       choke me
2278#endif
2279
2280  ;
2281  return 0;
2282}
2283_ACEOF
2284rm -f conftest.$ac_objext
2285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2286  (eval $ac_compile) 2>&5
2287  ac_status=$?
2288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289  (exit $ac_status); } &&
2290         { ac_try='test -s conftest.$ac_objext'
2291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292  (eval $ac_try) 2>&5
2293  ac_status=$?
2294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295  (exit $ac_status); }; }; then
2296  ac_compiler_gnu=yes
2297else
2298  echo "$as_me: failed program was:" >&5
2299sed 's/^/| /' conftest.$ac_ext >&5
2300
2301ac_compiler_gnu=no
2302fi
2303rm -f conftest.$ac_objext conftest.$ac_ext
2304ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2305
2306fi
2307echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2308echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2309GXX=`test $ac_compiler_gnu = yes && echo yes`
2310ac_test_CXXFLAGS=${CXXFLAGS+set}
2311ac_save_CXXFLAGS=$CXXFLAGS
2312CXXFLAGS="-g"
2313echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2314echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2315if test "${ac_cv_prog_cxx_g+set}" = set; then
2316  echo $ECHO_N "(cached) $ECHO_C" >&6
2317else
2318  cat >conftest.$ac_ext <<_ACEOF
2319#line $LINENO "configure"
2320/* confdefs.h.  */
2321_ACEOF
2322cat confdefs.h >>conftest.$ac_ext
2323cat >>conftest.$ac_ext <<_ACEOF
2324/* end confdefs.h.  */
2325
2326int
2327main ()
2328{
2329
2330  ;
2331  return 0;
2332}
2333_ACEOF
2334rm -f conftest.$ac_objext
2335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336  (eval $ac_compile) 2>&5
2337  ac_status=$?
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); } &&
2340         { ac_try='test -s conftest.$ac_objext'
2341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342  (eval $ac_try) 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; }; then
2346  ac_cv_prog_cxx_g=yes
2347else
2348  echo "$as_me: failed program was:" >&5
2349sed 's/^/| /' conftest.$ac_ext >&5
2350
2351ac_cv_prog_cxx_g=no
2352fi
2353rm -f conftest.$ac_objext conftest.$ac_ext
2354fi
2355echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2356echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2357if test "$ac_test_CXXFLAGS" = set; then
2358  CXXFLAGS=$ac_save_CXXFLAGS
2359elif test $ac_cv_prog_cxx_g = yes; then
2360  if test "$GXX" = yes; then
2361    CXXFLAGS="-g -O2"
2362  else
2363    CXXFLAGS="-g"
2364  fi
2365else
2366  if test "$GXX" = yes; then
2367    CXXFLAGS="-O2"
2368  else
2369    CXXFLAGS=
2370  fi
2371fi
2372for ac_declaration in \
2373   ''\
2374   '#include <stdlib.h>' \
2375   'extern "C" void std::exit (int) throw (); using std::exit;' \
2376   'extern "C" void std::exit (int); using std::exit;' \
2377   'extern "C" void exit (int) throw ();' \
2378   'extern "C" void exit (int);' \
2379   'void exit (int);'
2380do
2381  cat >conftest.$ac_ext <<_ACEOF
2382#line $LINENO "configure"
2383/* confdefs.h.  */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h.  */
2388@%:@include <stdlib.h>
2389$ac_declaration
2390int
2391main ()
2392{
2393exit (42);
2394  ;
2395  return 0;
2396}
2397_ACEOF
2398rm -f conftest.$ac_objext
2399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400  (eval $ac_compile) 2>&5
2401  ac_status=$?
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); } &&
2404         { ac_try='test -s conftest.$ac_objext'
2405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406  (eval $ac_try) 2>&5
2407  ac_status=$?
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); }; }; then
2410  :
2411else
2412  echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415continue
2416fi
2417rm -f conftest.$ac_objext conftest.$ac_ext
2418  cat >conftest.$ac_ext <<_ACEOF
2419#line $LINENO "configure"
2420/* confdefs.h.  */
2421_ACEOF
2422cat confdefs.h >>conftest.$ac_ext
2423cat >>conftest.$ac_ext <<_ACEOF
2424/* end confdefs.h.  */
2425$ac_declaration
2426int
2427main ()
2428{
2429exit (42);
2430  ;
2431  return 0;
2432}
2433_ACEOF
2434rm -f conftest.$ac_objext
2435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436  (eval $ac_compile) 2>&5
2437  ac_status=$?
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); } &&
2440         { ac_try='test -s conftest.$ac_objext'
2441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442  (eval $ac_try) 2>&5
2443  ac_status=$?
2444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445  (exit $ac_status); }; }; then
2446  break
2447else
2448  echo "$as_me: failed program was:" >&5
2449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451fi
2452rm -f conftest.$ac_objext conftest.$ac_ext
2453done
2454rm -f conftest*
2455if test -n "$ac_declaration"; then
2456  echo '#ifdef __cplusplus' >>confdefs.h
2457  echo $ac_declaration      >>confdefs.h
2458  echo '#endif'             >>confdefs.h
2459fi
2460
2461ac_ext=c
2462ac_cpp='$CPP $CPPFLAGS'
2463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466
2467# Extract the first word of "cp", so it can be a program name with args.
2468set dummy cp; ac_word=$2
2469echo "$as_me:$LINENO: checking for $ac_word" >&5
2470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2471if test "${ac_cv_path_CP+set}" = set; then
2472  echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474  case $CP in
2475  [\\/]* | ?:[\\/]*)
2476  ac_cv_path_CP="$CP" # Let the user override the test with a path.
2477  ;;
2478  *)
2479  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482  IFS=$as_save_IFS
2483  test -z "$as_dir" && as_dir=.
2484  for ac_exec_ext in '' $ac_executable_extensions; do
2485  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488    break 2
2489  fi
2490done
2491done
2492
2493  ;;
2494esac
2495fi
2496CP=$ac_cv_path_CP
2497
2498if test -n "$CP"; then
2499  echo "$as_me:$LINENO: result: $CP" >&5
2500echo "${ECHO_T}$CP" >&6
2501else
2502  echo "$as_me:$LINENO: result: no" >&5
2503echo "${ECHO_T}no" >&6
2504fi
2505
2506# Extract the first word of "mkdir", so it can be a program name with args.
2507set dummy mkdir; ac_word=$2
2508echo "$as_me:$LINENO: checking for $ac_word" >&5
2509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2510if test "${ac_cv_path_MKDIR+set}" = set; then
2511  echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513  case $MKDIR in
2514  [\\/]* | ?:[\\/]*)
2515  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
2516  ;;
2517  *)
2518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521  IFS=$as_save_IFS
2522  test -z "$as_dir" && as_dir=.
2523  for ac_exec_ext in '' $ac_executable_extensions; do
2524  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
2526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527    break 2
2528  fi
2529done
2530done
2531
2532  ;;
2533esac
2534fi
2535MKDIR=$ac_cv_path_MKDIR
2536
2537if test -n "$MKDIR"; then
2538  echo "$as_me:$LINENO: result: $MKDIR" >&5
2539echo "${ECHO_T}$MKDIR" >&6
2540else
2541  echo "$as_me:$LINENO: result: no" >&5
2542echo "${ECHO_T}no" >&6
2543fi
2544
2545# Extract the first word of "rm", so it can be a program name with args.
2546set dummy rm; ac_word=$2
2547echo "$as_me:$LINENO: checking for $ac_word" >&5
2548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2549if test "${ac_cv_path_RM+set}" = set; then
2550  echo $ECHO_N "(cached) $ECHO_C" >&6
2551else
2552  case $RM in
2553  [\\/]* | ?:[\\/]*)
2554  ac_cv_path_RM="$RM" # Let the user override the test with a path.
2555  ;;
2556  *)
2557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560  IFS=$as_save_IFS
2561  test -z "$as_dir" && as_dir=.
2562  for ac_exec_ext in '' $ac_executable_extensions; do
2563  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2565    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566    break 2
2567  fi
2568done
2569done
2570
2571  ;;
2572esac
2573fi
2574RM=$ac_cv_path_RM
2575
2576if test -n "$RM"; then
2577  echo "$as_me:$LINENO: result: $RM" >&5
2578echo "${ECHO_T}$RM" >&6
2579else
2580  echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6
2582fi
2583
2584
2585# Extract the first word of "fltk-config", so it can be a program name with args.
2586set dummy fltk-config; ac_word=$2
2587echo "$as_me:$LINENO: checking for $ac_word" >&5
2588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2589if test "${ac_cv_path_FLTKCONFIG+set}" = set; then
2590  echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592  case $FLTKCONFIG in
2593  [\\/]* | ?:[\\/]*)
2594  ac_cv_path_FLTKCONFIG="$FLTKCONFIG" # Let the user override the test with a path.
2595  ;;
2596  *)
2597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600  IFS=$as_save_IFS
2601  test -z "$as_dir" && as_dir=.
2602  for ac_exec_ext in '' $ac_executable_extensions; do
2603  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604    ac_cv_path_FLTKCONFIG="$as_dir/$ac_word$ac_exec_ext"
2605    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606    break 2
2607  fi
2608done
2609done
2610
2611  ;;
2612esac
2613fi
2614FLTKCONFIG=$ac_cv_path_FLTKCONFIG
2615
2616if test -n "$FLTKCONFIG"; then
2617  echo "$as_me:$LINENO: result: $FLTKCONFIG" >&5
2618echo "${ECHO_T}$FLTKCONFIG" >&6
2619else
2620  echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6
2622fi
2623
2624
2625if test "x$FLTKCONFIG" = x; then
2626	{ { echo "$as_me:$LINENO: error: Sorry, fldiff requires FLTK 1.1.x." >&5
2627echo "$as_me: error: Sorry, fldiff requires FLTK 1.1.x." >&2;}
2628   { (exit 1); exit 1; }; }
2629else
2630	CXXFLAGS="`$FLTKCONFIG --use-images --cflags` $CXXFLAGS"
2631	LIBS="`$FLTKCONFIG --use-images --ldflags` $LIBS"
2632fi
2633
2634
2635
2636if test -n "$GCC"; then
2637	# Starting with GCC 3.0, you must link C++ programs against either
2638	# libstdc++ (shared by default), or libsupc++ (always static).  If
2639	# you care about binary portability between Linux distributions,
2640	# you need to either 1) build your own GCC with static C++ libraries
2641	# or 2) link using gcc and libsupc++.  We choose the latter since
2642	# fldiff doesn't (currently) use any of the stdc++ library.
2643	#
2644	# Also, GCC 3.0.x still has problems compiling some code.  You may
2645	# or may not have success with it.  USE 3.0.x WITH EXTREME CAUTION!
2646	#
2647	# Previous versions of GCC do not have the reliance on the stdc++
2648	# or g++ libraries, so the extra supc++ library is not needed.
2649
2650	echo "$as_me:$LINENO: checking if libsupc++ is required" >&5
2651echo $ECHO_N "checking if libsupc++ is required... $ECHO_C" >&6
2652
2653 	SUPC="`$CXX -print-file-name=libsupc++.a 2>/dev/null`"
2654 	if test -n "$SUPC" -a "$SUPC" != "libsupc++.a"; then
2655 		# This is gcc 3.x, and it knows of libsupc++, so we need it
2656 		LIBS="$LIBS -lsupc++"
2657		echo "$as_me:$LINENO: result: yes" >&5
2658echo "${ECHO_T}yes" >&6
2659	else
2660		echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6
2662 	fi
2663
2664	if test "x$uname" != xDarwin; then
2665		CXX="$CC"
2666	fi
2667
2668	if test -z "$OPTIM"; then
2669        	OPTIM="-O2 -fforce-mem -fforce-addr -fcaller-saves"
2670	fi
2671
2672	OPTIM="-Wall -Wno-return-type $OPTIM"
2673
2674	# See if GCC supports -fno-rtti...
2675	echo "$as_me:$LINENO: checking if GCC supports -fno-rtti" >&5
2676echo $ECHO_N "checking if GCC supports -fno-rtti... $ECHO_C" >&6
2677	OLDCFLAGS="$CFLAGS"
2678	CFLAGS="$CFLAGS -fno-rtti"
2679
2680cat >conftest.$ac_ext <<_ACEOF
2681#line $LINENO "configure"
2682/* confdefs.h.  */
2683_ACEOF
2684cat confdefs.h >>conftest.$ac_ext
2685cat >>conftest.$ac_ext <<_ACEOF
2686/* end confdefs.h.  */
2687
2688int
2689main ()
2690{
2691
2692  ;
2693  return 0;
2694}
2695_ACEOF
2696rm -f conftest.$ac_objext
2697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698  (eval $ac_compile) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); } &&
2702         { ac_try='test -s conftest.$ac_objext'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; }; then
2708  CXXFLAGS="$CXXFLAGS -fno-rtti"
2709		echo "$as_me:$LINENO: result: yes" >&5
2710echo "${ECHO_T}yes" >&6
2711else
2712  echo "$as_me: failed program was:" >&5
2713sed 's/^/| /' conftest.$ac_ext >&5
2714
2715echo "$as_me:$LINENO: result: no" >&5
2716echo "${ECHO_T}no" >&6
2717fi
2718rm -f conftest.$ac_objext conftest.$ac_ext
2719	CFLAGS="$OLDCFLAGS"
2720
2721	# See if GCC supports -fno-exceptions...
2722	echo "$as_me:$LINENO: checking if GCC supports -fno-exceptions" >&5
2723echo $ECHO_N "checking if GCC supports -fno-exceptions... $ECHO_C" >&6
2724	OLDCFLAGS="$CFLAGS"
2725	CFLAGS="$CFLAGS -fno-exceptions"
2726	cat >conftest.$ac_ext <<_ACEOF
2727#line $LINENO "configure"
2728/* confdefs.h.  */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>conftest.$ac_ext <<_ACEOF
2732/* end confdefs.h.  */
2733
2734int
2735main ()
2736{
2737
2738  ;
2739  return 0;
2740}
2741_ACEOF
2742rm -f conftest.$ac_objext
2743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744  (eval $ac_compile) 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); } &&
2748         { ac_try='test -s conftest.$ac_objext'
2749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750  (eval $ac_try) 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }; }; then
2754  OPTIM="$OPTIM -fno-exceptions"
2755		echo "$as_me:$LINENO: result: yes" >&5
2756echo "${ECHO_T}yes" >&6
2757else
2758  echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761echo "$as_me:$LINENO: result: no" >&5
2762echo "${ECHO_T}no" >&6
2763fi
2764rm -f conftest.$ac_objext conftest.$ac_ext
2765	CFLAGS="$OLDCFLAGS"
2766
2767	# See if we are running HP-UX or Solaris; if so, try the
2768	# -fpermissive option...
2769	case $uname in
2770		SunOS* | HP-UX*)
2771			echo "$as_me:$LINENO: checking if GCC supports -fpermissive" >&5
2772echo $ECHO_N "checking if GCC supports -fpermissive... $ECHO_C" >&6
2773
2774			OLDCFLAGS="$CFLAGS"
2775			CFLAGS="$CFLAGS -fpermissive"
2776			cat >conftest.$ac_ext <<_ACEOF
2777#line $LINENO "configure"
2778/* confdefs.h.  */
2779_ACEOF
2780cat confdefs.h >>conftest.$ac_ext
2781cat >>conftest.$ac_ext <<_ACEOF
2782/* end confdefs.h.  */
2783
2784int
2785main ()
2786{
2787
2788  ;
2789  return 0;
2790}
2791_ACEOF
2792rm -f conftest.$ac_objext
2793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794  (eval $ac_compile) 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); } &&
2798         { ac_try='test -s conftest.$ac_objext'
2799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800  (eval $ac_try) 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }; }; then
2804  OPTIM="$OPTIM -fpermissive"
2805				echo "$as_me:$LINENO: result: yes" >&5
2806echo "${ECHO_T}yes" >&6
2807else
2808  echo "$as_me: failed program was:" >&5
2809sed 's/^/| /' conftest.$ac_ext >&5
2810
2811echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6
2813fi
2814rm -f conftest.$ac_objext conftest.$ac_ext
2815			CFLAGS="$OLDCFLAGS"
2816			;;
2817		*)
2818			;;
2819	esac
2820else
2821	case $uname in
2822		AIX*)
2823			if test -z "$OPTIM"; then
2824				OPTIM="-O2"
2825			fi
2826			;;
2827		HP-UX*)
2828			if test -z "$OPTIM"; then
2829				OPTIM="+O2"
2830			fi
2831			OPTIM="$OPTIM +DAportable"
2832			;;
2833        	IRIX*)
2834			if test -z "$OPTIM"; then
2835        			OPTIM="-O2"
2836			fi
2837			if test $uversion -ge 62; then
2838				OPTIM="$OPTIM -n32 -mips3"
2839				OPTIM="$OPTIM -OPT:Olimit=3000"
2840				OPTIM="-fullwarn -woff 1209,1506,1692 $OPTIM"
2841			else
2842				OPTIM="-fullwarn $OPTIM"
2843			fi
2844			;;
2845		SunOS*)
2846			# Solaris
2847			if test -z "$OPTIM"; then
2848				OPTIM="-xO4"
2849			fi
2850			;;
2851		*)
2852			# Running some other operating system; inform the user they
2853			# should contribute the necessary options to
2854			# epm@easysw.com...
2855			echo "Building fldiff with default compiler optimizations; contact"
2856			echo "fldiff@easysw.com with the uname and compiler options needed for"
2857			echo "your platform, or set the CFLAGS and CXXFLAGS environment"
2858			echo "variable before running configure."
2859			;;
2860	esac
2861fi
2862
2863if test "$prefix" = "NONE"; then
2864	prefix="/usr/local"
2865fi
2866
2867if test "$exec_prefix" = "NONE"; then
2868	exec_prefix="$prefix"
2869fi
2870
2871if test "$datadir" = "\${prefix}/share"; then
2872	datadir="$prefix/share"
2873fi
2874
2875if test "$docdir" = "NONE"; then
2876	docdir="$datadir/doc/fldiff"
2877fi
2878
2879if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/usr"; then
2880	case "$uname" in
2881        	*BSD* | Darwin* | Linux*)
2882        		# BSD, Darwin (MacOS X), and Linux
2883        		mandir="/usr/share/man"
2884        		;;
2885        	IRIX*)
2886        		# SGI IRIX
2887        		mandir="/usr/share/catman/u_man"
2888        		;;
2889        	*)
2890        		# All others
2891        		mandir="/usr/man"
2892        		;;
2893	esac
2894fi
2895
2896echo "$as_me:$LINENO: checking if GNOME/KDE desktop is in use" >&5
2897echo $ECHO_N "checking if GNOME/KDE desktop is in use... $ECHO_C" >&6
2898desktopdir=""
2899for dir in /usr/share/applnk /etc/X11/applnk; do
2900	if test -d $dir; then
2901		desktopdir=$dir
2902		break
2903	fi
2904done
2905
2906if test x$desktopdir = x; then
2907	echo "$as_me:$LINENO: result: no" >&5
2908echo "${ECHO_T}no" >&6
2909	INSTALLDESKTOP=""
2910	UNINSTALLDESKTOP=""
2911else
2912	echo "$as_me:$LINENO: result: yes" >&5
2913echo "${ECHO_T}yes" >&6
2914	INSTALLDESKTOP="install-desktop"
2915	UNINSTALLDESKTOP="uninstall-desktop"
2916fi
2917
2918
2919
2920
2921
2922                    ac_config_files="$ac_config_files Makefile fldiff.list"
2923cat >confcache <<\_ACEOF
2924# This file is a shell script that caches the results of configure
2925# tests run on this system so they can be shared between configure
2926# scripts and configure runs, see configure's option --config-cache.
2927# It is not useful on other systems.  If it contains results you don't
2928# want to keep, you may remove or edit it.
2929#
2930# config.status only pays attention to the cache file if you give it
2931# the --recheck option to rerun configure.
2932#
2933# `ac_cv_env_foo' variables (set or unset) will be overridden when
2934# loading this file, other *unset* `ac_cv_foo' will be assigned the
2935# following values.
2936
2937_ACEOF
2938
2939# The following way of writing the cache mishandles newlines in values,
2940# but we know of no workaround that is simple, portable, and efficient.
2941# So, don't put newlines in cache variables' values.
2942# Ultrix sh set writes to stderr and can't be redirected directly,
2943# and sets the high bit in the cache file unless we assign to the vars.
2944{
2945  (set) 2>&1 |
2946    case `(ac_space=' '; set | grep ac_space) 2>&1` in
2947    *ac_space=\ *)
2948      # `set' does not quote correctly, so add quotes (double-quote
2949      # substitution turns \\\\ into \\, and sed turns \\ into \).
2950      sed -n \
2951        "s/'/'\\\\''/g;
2952    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2953      ;;
2954    *)
2955      # `set' quotes correctly as required by POSIX, so do not add quotes.
2956      sed -n \
2957        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2958      ;;
2959    esac;
2960} |
2961  sed '
2962     t clear
2963     : clear
2964     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2965     t end
2966     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2967     : end' >>confcache
2968if diff $cache_file confcache >/dev/null 2>&1; then :; else
2969  if test -w $cache_file; then
2970    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2971    cat confcache >$cache_file
2972  else
2973    echo "not updating unwritable cache $cache_file"
2974  fi
2975fi
2976rm -f confcache
2977
2978test "x$prefix" = xNONE && prefix=$ac_default_prefix
2979# Let make expand exec_prefix.
2980test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2981
2982# VPATH may cause trouble with some makes, so we remove $(srcdir),
2983# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2984# trailing colons and then remove the whole line if VPATH becomes empty
2985# (actually we leave an empty line to preserve line numbers).
2986if test "x$srcdir" = x.; then
2987  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
2988s/:*\$(srcdir):*/:/;
2989s/:*\${srcdir}:*/:/;
2990s/:*@srcdir@:*/:/;
2991s/^\([^=]*=[ 	]*\):*/\1/;
2992s/:*$//;
2993s/^[^=]*=[ 	]*$//;
2994}'
2995fi
2996
2997# Transform confdefs.h into DEFS.
2998# Protect against shell expansion while executing Makefile rules.
2999# Protect against Makefile macro expansion.
3000#
3001# If the first sed substitution is executed (which looks for macros that
3002# take arguments), then we branch to the quote section.  Otherwise,
3003# look for a macro that doesn't take arguments.
3004cat >confdef2opt.sed <<\_ACEOF
3005t clear
3006: clear
3007s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*([^)]*)\)[ 	]*\(.*\),-D\1=\2,g
3008t quote
3009s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\),-D\1=\2,g
3010t quote
3011d
3012: quote
3013s,[ 	`~#$^&*(){}\\|;'"<>?],\\&,g
3014s,\[,\\&,g
3015s,\],\\&,g
3016s,\$,$$,g
3017p
3018_ACEOF
3019# We use echo to avoid assuming a particular line-breaking character.
3020# The extra dot is to prevent the shell from consuming trailing
3021# line-breaks from the sub-command output.  A line-break within
3022# single-quotes doesn't work because, if this script is created in a
3023# platform that uses two characters for line-breaks (e.g., DOS), tr
3024# would break.
3025ac_LF_and_DOT=`echo; echo .`
3026DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3027rm -f confdef2opt.sed
3028
3029
3030ac_libobjs=
3031ac_ltlibobjs=
3032for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
3033  # 1. Remove the extension, and $U if already installed.
3034  ac_i=`echo "$ac_i" |
3035         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3036  # 2. Add them.
3037  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3038  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3039done
3040LIB@&t@OBJS=$ac_libobjs
3041
3042LTLIBOBJS=$ac_ltlibobjs
3043
3044
3045
3046: ${CONFIG_STATUS=./config.status}
3047ac_clean_files_save=$ac_clean_files
3048ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3049{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3050echo "$as_me: creating $CONFIG_STATUS" >&6;}
3051cat >$CONFIG_STATUS <<_ACEOF
3052#! $SHELL
3053# Generated by $as_me.
3054# Run this file to recreate the current configuration.
3055# Compiler output produced by configure, useful for debugging
3056# configure, is in config.log if it exists.
3057
3058debug=false
3059ac_cs_recheck=false
3060ac_cs_silent=false
3061SHELL=\${CONFIG_SHELL-$SHELL}
3062_ACEOF
3063
3064cat >>$CONFIG_STATUS <<\_ACEOF
3065## --------------------- ##
3066## M4sh Initialization.  ##
3067## --------------------- ##
3068
3069# Be Bourne compatible
3070if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3071  emulate sh
3072  NULLCMD=:
3073  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3074  # is contrary to our usage.  Disable this feature.
3075  alias -g '${1+"$@"}'='"$@"'
3076elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3077  set -o posix
3078fi
3079
3080# Support unset when possible.
3081if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3082  as_unset=unset
3083else
3084  as_unset=false
3085fi
3086
3087
3088# Work around bugs in pre-3.0 UWIN ksh.
3089$as_unset ENV MAIL MAILPATH
3090PS1='$ '
3091PS2='> '
3092PS4='+ '
3093
3094# NLS nuisances.
3095for as_var in \
3096  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3097  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3098  LC_TELEPHONE LC_TIME
3099do
3100  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3101    eval $as_var=C; export $as_var
3102  else
3103    $as_unset $as_var
3104  fi
3105done
3106
3107# Required to use basename.
3108if expr a : '\(a\)' >/dev/null 2>&1; then
3109  as_expr=expr
3110else
3111  as_expr=false
3112fi
3113
3114if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3115  as_basename=basename
3116else
3117  as_basename=false
3118fi
3119
3120
3121# Name of the executable.
3122as_me=`$as_basename "$0" ||
3123$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3124	 X"$0" : 'X\(//\)$' \| \
3125	 X"$0" : 'X\(/\)$' \| \
3126	 .     : '\(.\)' 2>/dev/null ||
3127echo X/"$0" |
3128    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3129  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
3130  	  /^X\/\(\/\).*/{ s//\1/; q; }
3131  	  s/.*/./; q'`
3132
3133
3134# PATH needs CR, and LINENO needs CR and PATH.
3135# Avoid depending upon Character Ranges.
3136as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3137as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3138as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3139as_cr_digits='0123456789'
3140as_cr_alnum=$as_cr_Letters$as_cr_digits
3141
3142# The user is always right.
3143if test "${PATH_SEPARATOR+set}" != set; then
3144  echo "#! /bin/sh" >conf$$.sh
3145  echo  "exit 0"   >>conf$$.sh
3146  chmod +x conf$$.sh
3147  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3148    PATH_SEPARATOR=';'
3149  else
3150    PATH_SEPARATOR=:
3151  fi
3152  rm -f conf$$.sh
3153fi
3154
3155
3156  as_lineno_1=$LINENO
3157  as_lineno_2=$LINENO
3158  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3159  test "x$as_lineno_1" != "x$as_lineno_2" &&
3160  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3161  # Find who we are.  Look in the path if we contain no path at all
3162  # relative or not.
3163  case $0 in
3164    *[\\/]* ) as_myself=$0 ;;
3165    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168  IFS=$as_save_IFS
3169  test -z "$as_dir" && as_dir=.
3170  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3171done
3172
3173       ;;
3174  esac
3175  # We did not find ourselves, most probably we were run as `sh COMMAND'
3176  # in which case we are not to be found in the path.
3177  if test "x$as_myself" = x; then
3178    as_myself=$0
3179  fi
3180  if test ! -f "$as_myself"; then
3181    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3182echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3183   { (exit 1); exit 1; }; }
3184  fi
3185  case $CONFIG_SHELL in
3186  '')
3187    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3189do
3190  IFS=$as_save_IFS
3191  test -z "$as_dir" && as_dir=.
3192  for as_base in sh bash ksh sh5; do
3193	 case $as_dir in
3194	 /*)
3195	   if ("$as_dir/$as_base" -c '
3196  as_lineno_1=$LINENO
3197  as_lineno_2=$LINENO
3198  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3199  test "x$as_lineno_1" != "x$as_lineno_2" &&
3200  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3201	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3202	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3203	     CONFIG_SHELL=$as_dir/$as_base
3204	     export CONFIG_SHELL
3205	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3206	   fi;;
3207	 esac
3208       done
3209done
3210;;
3211  esac
3212
3213  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3214  # uniformly replaced by the line number.  The first 'sed' inserts a
3215  # line-number line before each line; the second 'sed' does the real
3216  # work.  The second script uses 'N' to pair each line-number line
3217  # with the numbered line, and appends trailing '-' during
3218  # substitution so that $LINENO is not a special case at line end.
3219  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3220  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3221  sed '=' <$as_myself |
3222    sed '
3223      N
3224      s,$,-,
3225      : loop
3226      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3227      t loop
3228      s,-$,,
3229      s,^['$as_cr_digits']*\n,,
3230    ' >$as_me.lineno &&
3231  chmod +x $as_me.lineno ||
3232    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3233echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3234   { (exit 1); exit 1; }; }
3235
3236  # Don't try to exec as it changes $[0], causing all sort of problems
3237  # (the dirname of $[0] is not the place where we might find the
3238  # original and so on.  Autoconf is especially sensible to this).
3239  . ./$as_me.lineno
3240  # Exit status is that of the last command.
3241  exit
3242}
3243
3244
3245case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3246  *c*,-n*) ECHO_N= ECHO_C='
3247' ECHO_T='	' ;;
3248  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3249  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3250esac
3251
3252if expr a : '\(a\)' >/dev/null 2>&1; then
3253  as_expr=expr
3254else
3255  as_expr=false
3256fi
3257
3258rm -f conf$$ conf$$.exe conf$$.file
3259echo >conf$$.file
3260if ln -s conf$$.file conf$$ 2>/dev/null; then
3261  # We could just check for DJGPP; but this test a) works b) is more generic
3262  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3263  if test -f conf$$.exe; then
3264    # Don't use ln at all; we don't have any links
3265    as_ln_s='cp -p'
3266  else
3267    as_ln_s='ln -s'
3268  fi
3269elif ln conf$$.file conf$$ 2>/dev/null; then
3270  as_ln_s=ln
3271else
3272  as_ln_s='cp -p'
3273fi
3274rm -f conf$$ conf$$.exe conf$$.file
3275
3276if mkdir -p . 2>/dev/null; then
3277  as_mkdir_p=:
3278else
3279  as_mkdir_p=false
3280fi
3281
3282as_executable_p="test -f"
3283
3284# Sed expression to map a string onto a valid CPP name.
3285as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3286
3287# Sed expression to map a string onto a valid variable name.
3288as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3289
3290
3291# IFS
3292# We need space, tab and new line, in precisely that order.
3293as_nl='
3294'
3295IFS=" 	$as_nl"
3296
3297# CDPATH.
3298$as_unset CDPATH
3299
3300exec 6>&1
3301
3302# Open the log real soon, to keep \$[0] and so on meaningful, and to
3303# report actual input values of CONFIG_FILES etc. instead of their
3304# values after options handling.  Logging --version etc. is OK.
3305exec 5>>config.log
3306{
3307  echo
3308  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
3309@%:@@%:@ Running $as_me. @%:@@%:@
3310_ASBOX
3311} >&5
3312cat >&5 <<_CSEOF
3313
3314This file was extended by $as_me, which was
3315generated by GNU Autoconf 2.57.  Invocation command line was
3316
3317  CONFIG_FILES    = $CONFIG_FILES
3318  CONFIG_HEADERS  = $CONFIG_HEADERS
3319  CONFIG_LINKS    = $CONFIG_LINKS
3320  CONFIG_COMMANDS = $CONFIG_COMMANDS
3321  $ $0 $@
3322
3323_CSEOF
3324echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3325echo >&5
3326_ACEOF
3327
3328# Files that config.status was made for.
3329if test -n "$ac_config_files"; then
3330  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3331fi
3332
3333if test -n "$ac_config_headers"; then
3334  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3335fi
3336
3337if test -n "$ac_config_links"; then
3338  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3339fi
3340
3341if test -n "$ac_config_commands"; then
3342  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3343fi
3344
3345cat >>$CONFIG_STATUS <<\_ACEOF
3346
3347ac_cs_usage="\
3348\`$as_me' instantiates files from templates according to the
3349current configuration.
3350
3351Usage: $0 [OPTIONS] [FILE]...
3352
3353  -h, --help       print this help, then exit
3354  -V, --version    print version number, then exit
3355  -q, --quiet      do not print progress messages
3356  -d, --debug      don't remove temporary files
3357      --recheck    update $as_me by reconfiguring in the same conditions
3358  --file=FILE[:TEMPLATE]
3359                   instantiate the configuration file FILE
3360
3361Configuration files:
3362$config_files
3363
3364Report bugs to <bug-autoconf@gnu.org>."
3365_ACEOF
3366
3367cat >>$CONFIG_STATUS <<_ACEOF
3368ac_cs_version="\\
3369config.status
3370configured by $0, generated by GNU Autoconf 2.57,
3371  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3372
3373Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3374Free Software Foundation, Inc.
3375This config.status script is free software; the Free Software Foundation
3376gives unlimited permission to copy, distribute and modify it."
3377srcdir=$srcdir
3378_ACEOF
3379
3380cat >>$CONFIG_STATUS <<\_ACEOF
3381# If no file are specified by the user, then we need to provide default
3382# value.  By we need to know if files were specified by the user.
3383ac_need_defaults=:
3384while test $# != 0
3385do
3386  case $1 in
3387  --*=*)
3388    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3389    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3390    ac_shift=:
3391    ;;
3392  -*)
3393    ac_option=$1
3394    ac_optarg=$2
3395    ac_shift=shift
3396    ;;
3397  *) # This is not an option, so the user has probably given explicit
3398     # arguments.
3399     ac_option=$1
3400     ac_need_defaults=false;;
3401  esac
3402
3403  case $ac_option in
3404  # Handling of the options.
3405_ACEOF
3406cat >>$CONFIG_STATUS <<\_ACEOF
3407  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3408    ac_cs_recheck=: ;;
3409  --version | --vers* | -V )
3410    echo "$ac_cs_version"; exit 0 ;;
3411  --he | --h)
3412    # Conflict between --help and --header
3413    { { echo "$as_me:$LINENO: error: ambiguous option: $1
3414Try \`$0 --help' for more information." >&5
3415echo "$as_me: error: ambiguous option: $1
3416Try \`$0 --help' for more information." >&2;}
3417   { (exit 1); exit 1; }; };;
3418  --help | --hel | -h )
3419    echo "$ac_cs_usage"; exit 0 ;;
3420  --debug | --d* | -d )
3421    debug=: ;;
3422  --file | --fil | --fi | --f )
3423    $ac_shift
3424    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3425    ac_need_defaults=false;;
3426  --header | --heade | --head | --hea )
3427    $ac_shift
3428    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3429    ac_need_defaults=false;;
3430  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3431  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3432    ac_cs_silent=: ;;
3433
3434  # This is an error.
3435  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3436Try \`$0 --help' for more information." >&5
3437echo "$as_me: error: unrecognized option: $1
3438Try \`$0 --help' for more information." >&2;}
3439   { (exit 1); exit 1; }; } ;;
3440
3441  *) ac_config_targets="$ac_config_targets $1" ;;
3442
3443  esac
3444  shift
3445done
3446
3447ac_configure_extra_args=
3448
3449if $ac_cs_silent; then
3450  exec 6>/dev/null
3451  ac_configure_extra_args="$ac_configure_extra_args --silent"
3452fi
3453
3454_ACEOF
3455cat >>$CONFIG_STATUS <<_ACEOF
3456if \$ac_cs_recheck; then
3457  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3458  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3459fi
3460
3461_ACEOF
3462
3463
3464
3465
3466
3467cat >>$CONFIG_STATUS <<\_ACEOF
3468for ac_config_target in $ac_config_targets
3469do
3470  case "$ac_config_target" in
3471  # Handling of arguments.
3472  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3473  "fldiff.list" ) CONFIG_FILES="$CONFIG_FILES fldiff.list" ;;
3474  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3475echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3476   { (exit 1); exit 1; }; };;
3477  esac
3478done
3479
3480# If the user did not use the arguments to specify the items to instantiate,
3481# then the envvar interface is used.  Set only those that are not.
3482# We use the long form for the default assignment because of an extremely
3483# bizarre bug on SunOS 4.1.3.
3484if $ac_need_defaults; then
3485  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3486fi
3487
3488# Have a temporary directory for convenience.  Make it in the build tree
3489# simply because there is no reason to put it here, and in addition,
3490# creating and moving files from /tmp can sometimes cause problems.
3491# Create a temporary directory, and hook for its removal unless debugging.
3492$debug ||
3493{
3494  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3495  trap '{ (exit 1); exit 1; }' 1 2 13 15
3496}
3497
3498# Create a (secure) tmp directory for tmp files.
3499
3500{
3501  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3502  test -n "$tmp" && test -d "$tmp"
3503}  ||
3504{
3505  tmp=./confstat$$-$RANDOM
3506  (umask 077 && mkdir $tmp)
3507} ||
3508{
3509   echo "$me: cannot create a temporary directory in ." >&2
3510   { (exit 1); exit 1; }
3511}
3512
3513_ACEOF
3514
3515cat >>$CONFIG_STATUS <<_ACEOF
3516
3517#
3518# CONFIG_FILES section.
3519#
3520
3521# No need to generate the scripts if there are no CONFIG_FILES.
3522# This happens for instance when ./config.status config.h
3523if test -n "\$CONFIG_FILES"; then
3524  # Protect against being on the right side of a sed subst in config.status.
3525  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3526   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3527s,@SHELL@,$SHELL,;t t
3528s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3529s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3530s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3531s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3532s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3533s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3534s,@exec_prefix@,$exec_prefix,;t t
3535s,@prefix@,$prefix,;t t
3536s,@program_transform_name@,$program_transform_name,;t t
3537s,@bindir@,$bindir,;t t
3538s,@sbindir@,$sbindir,;t t
3539s,@libexecdir@,$libexecdir,;t t
3540s,@datadir@,$datadir,;t t
3541s,@sysconfdir@,$sysconfdir,;t t
3542s,@sharedstatedir@,$sharedstatedir,;t t
3543s,@localstatedir@,$localstatedir,;t t
3544s,@libdir@,$libdir,;t t
3545s,@includedir@,$includedir,;t t
3546s,@oldincludedir@,$oldincludedir,;t t
3547s,@infodir@,$infodir,;t t
3548s,@mandir@,$mandir,;t t
3549s,@build_alias@,$build_alias,;t t
3550s,@host_alias@,$host_alias,;t t
3551s,@target_alias@,$target_alias,;t t
3552s,@DEFS@,$DEFS,;t t
3553s,@ECHO_C@,$ECHO_C,;t t
3554s,@ECHO_N@,$ECHO_N,;t t
3555s,@ECHO_T@,$ECHO_T,;t t
3556s,@LIBS@,$LIBS,;t t
3557s,@VERSION@,$VERSION,;t t
3558s,@CXXFLAGS@,$CXXFLAGS,;t t
3559s,@LDFLAGS@,$LDFLAGS,;t t
3560s,@OPTIM@,$OPTIM,;t t
3561s,@docdir@,$docdir,;t t
3562s,@CC@,$CC,;t t
3563s,@CFLAGS@,$CFLAGS,;t t
3564s,@CPPFLAGS@,$CPPFLAGS,;t t
3565s,@ac_ct_CC@,$ac_ct_CC,;t t
3566s,@EXEEXT@,$EXEEXT,;t t
3567s,@OBJEXT@,$OBJEXT,;t t
3568s,@CXX@,$CXX,;t t
3569s,@ac_ct_CXX@,$ac_ct_CXX,;t t
3570s,@CP@,$CP,;t t
3571s,@MKDIR@,$MKDIR,;t t
3572s,@RM@,$RM,;t t
3573s,@FLTKCONFIG@,$FLTKCONFIG,;t t
3574s,@desktopdir@,$desktopdir,;t t
3575s,@INSTALLDESKTOP@,$INSTALLDESKTOP,;t t
3576s,@UNINSTALLDESKTOP@,$UNINSTALLDESKTOP,;t t
3577s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
3578s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3579CEOF
3580
3581_ACEOF
3582
3583  cat >>$CONFIG_STATUS <<\_ACEOF
3584  # Split the substitutions into bite-sized pieces for seds with
3585  # small command number limits, like on Digital OSF/1 and HP-UX.
3586  ac_max_sed_lines=48
3587  ac_sed_frag=1 # Number of current file.
3588  ac_beg=1 # First line for current file.
3589  ac_end=$ac_max_sed_lines # Line after last line for current file.
3590  ac_more_lines=:
3591  ac_sed_cmds=
3592  while $ac_more_lines; do
3593    if test $ac_beg -gt 1; then
3594      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3595    else
3596      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3597    fi
3598    if test ! -s $tmp/subs.frag; then
3599      ac_more_lines=false
3600    else
3601      # The purpose of the label and of the branching condition is to
3602      # speed up the sed processing (if there are no `@' at all, there
3603      # is no need to browse any of the substitutions).
3604      # These are the two extra sed commands mentioned above.
3605      (echo ':t
3606  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3607      if test -z "$ac_sed_cmds"; then
3608  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3609      else
3610  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3611      fi
3612      ac_sed_frag=`expr $ac_sed_frag + 1`
3613      ac_beg=$ac_end
3614      ac_end=`expr $ac_end + $ac_max_sed_lines`
3615    fi
3616  done
3617  if test -z "$ac_sed_cmds"; then
3618    ac_sed_cmds=cat
3619  fi
3620fi # test -n "$CONFIG_FILES"
3621
3622_ACEOF
3623cat >>$CONFIG_STATUS <<\_ACEOF
3624for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3625  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3626  case $ac_file in
3627  - | *:- | *:-:* ) # input from stdin
3628        cat >$tmp/stdin
3629        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3630        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3631  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3632        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3633  * )   ac_file_in=$ac_file.in ;;
3634  esac
3635
3636  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3637  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3638$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3639         X"$ac_file" : 'X\(//\)[^/]' \| \
3640         X"$ac_file" : 'X\(//\)$' \| \
3641         X"$ac_file" : 'X\(/\)' \| \
3642         .     : '\(.\)' 2>/dev/null ||
3643echo X"$ac_file" |
3644    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3645  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3646  	  /^X\(\/\/\)$/{ s//\1/; q; }
3647  	  /^X\(\/\).*/{ s//\1/; q; }
3648  	  s/.*/./; q'`
3649  { if $as_mkdir_p; then
3650    mkdir -p "$ac_dir"
3651  else
3652    as_dir="$ac_dir"
3653    as_dirs=
3654    while test ! -d "$as_dir"; do
3655      as_dirs="$as_dir $as_dirs"
3656      as_dir=`(dirname "$as_dir") 2>/dev/null ||
3657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3658         X"$as_dir" : 'X\(//\)[^/]' \| \
3659         X"$as_dir" : 'X\(//\)$' \| \
3660         X"$as_dir" : 'X\(/\)' \| \
3661         .     : '\(.\)' 2>/dev/null ||
3662echo X"$as_dir" |
3663    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3664  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3665  	  /^X\(\/\/\)$/{ s//\1/; q; }
3666  	  /^X\(\/\).*/{ s//\1/; q; }
3667  	  s/.*/./; q'`
3668    done
3669    test ! -n "$as_dirs" || mkdir $as_dirs
3670  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3671echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3672   { (exit 1); exit 1; }; }; }
3673
3674  ac_builddir=.
3675
3676if test "$ac_dir" != .; then
3677  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3678  # A "../" for each directory in $ac_dir_suffix.
3679  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3680else
3681  ac_dir_suffix= ac_top_builddir=
3682fi
3683
3684case $srcdir in
3685  .)  # No --srcdir option.  We are building in place.
3686    ac_srcdir=.
3687    if test -z "$ac_top_builddir"; then
3688       ac_top_srcdir=.
3689    else
3690       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3691    fi ;;
3692  [\\/]* | ?:[\\/]* )  # Absolute path.
3693    ac_srcdir=$srcdir$ac_dir_suffix;
3694    ac_top_srcdir=$srcdir ;;
3695  *) # Relative path.
3696    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3697    ac_top_srcdir=$ac_top_builddir$srcdir ;;
3698esac
3699# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
3700# absolute.
3701ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
3702ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
3703ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
3704ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3705
3706
3707
3708  if test x"$ac_file" != x-; then
3709    { echo "$as_me:$LINENO: creating $ac_file" >&5
3710echo "$as_me: creating $ac_file" >&6;}
3711    rm -f "$ac_file"
3712  fi
3713  # Let's still pretend it is `configure' which instantiates (i.e., don't
3714  # use $as_me), people would be surprised to read:
3715  #    /* config.h.  Generated by config.status.  */
3716  if test x"$ac_file" = x-; then
3717    configure_input=
3718  else
3719    configure_input="$ac_file.  "
3720  fi
3721  configure_input=$configure_input"Generated from `echo $ac_file_in |
3722                                     sed 's,.*/,,'` by configure."
3723
3724  # First look for the input files in the build tree, otherwise in the
3725  # src tree.
3726  ac_file_inputs=`IFS=:
3727    for f in $ac_file_in; do
3728      case $f in
3729      -) echo $tmp/stdin ;;
3730      [\\/$]*)
3731         # Absolute (can't be DOS-style, as IFS=:)
3732         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3733echo "$as_me: error: cannot find input file: $f" >&2;}
3734   { (exit 1); exit 1; }; }
3735         echo $f;;
3736      *) # Relative
3737         if test -f "$f"; then
3738           # Build tree
3739           echo $f
3740         elif test -f "$srcdir/$f"; then
3741           # Source tree
3742           echo $srcdir/$f
3743         else
3744           # /dev/null tree
3745           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3746echo "$as_me: error: cannot find input file: $f" >&2;}
3747   { (exit 1); exit 1; }; }
3748         fi;;
3749      esac
3750    done` || { (exit 1); exit 1; }
3751_ACEOF
3752cat >>$CONFIG_STATUS <<_ACEOF
3753  sed "$ac_vpsub
3754$extrasub
3755_ACEOF
3756cat >>$CONFIG_STATUS <<\_ACEOF
3757:t
3758/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3759s,@configure_input@,$configure_input,;t t
3760s,@srcdir@,$ac_srcdir,;t t
3761s,@abs_srcdir@,$ac_abs_srcdir,;t t
3762s,@top_srcdir@,$ac_top_srcdir,;t t
3763s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3764s,@builddir@,$ac_builddir,;t t
3765s,@abs_builddir@,$ac_abs_builddir,;t t
3766s,@top_builddir@,$ac_top_builddir,;t t
3767s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3768" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3769  rm -f $tmp/stdin
3770  if test x"$ac_file" != x-; then
3771    mv $tmp/out $ac_file
3772  else
3773    cat $tmp/out
3774    rm -f $tmp/out
3775  fi
3776
3777done
3778_ACEOF
3779
3780cat >>$CONFIG_STATUS <<\_ACEOF
3781
3782{ (exit 0); exit 0; }
3783_ACEOF
3784chmod +x $CONFIG_STATUS
3785ac_clean_files=$ac_clean_files_save
3786
3787
3788# configure is writing to config.log, and then calls config.status.
3789# config.status does its own redirection, appending to config.log.
3790# Unfortunately, on DOS this fails, as config.log is still kept open
3791# by configure, so config.status won't be able to write to it; its
3792# output is simply discarded.  So we exec the FD to /dev/null,
3793# effectively closing config.log, so it can be properly (re)opened and
3794# appended to by config.status.  When coming back to configure, we
3795# need to make the FD available again.
3796if test "$no_create" != yes; then
3797  ac_cs_success=:
3798  ac_config_status_args=
3799  test "$silent" = yes &&
3800    ac_config_status_args="$ac_config_status_args --quiet"
3801  exec 5>/dev/null
3802  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3803  exec 5>>config.log
3804  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3805  # would make configure fail if this is the last instruction.
3806  $ac_cs_success || { (exit 1); exit 1; }
3807fi
3808
3809
3810#
3811# End of "$Id: configure.in 407 2006-11-13 18:54:02Z mike $".
3812#
3813