]> err.no Git - sope/blob - gnustep-make/configure
use %p for pointer formats
[sope] / gnustep-make / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
44   if (set +x; test -z "`(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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="application.make"
275 ac_default_prefix=`if test "x$GNUSTEP_SYSTEM_ROOT" = "x"; then
276   if test -d C: ; then
277     echo C:/GNUstep;
278   else
279     echo /usr/GNUstep ;
280   fi
281 else
282   echo "$GNUSTEP_SYSTEM_ROOT" ;
283 fi`
284 # Factoring default headers for most tests.
285 ac_includes_default="\
286 #include <stdio.h>
287 #if HAVE_SYS_TYPES_H
288 # include <sys/types.h>
289 #endif
290 #if HAVE_SYS_STAT_H
291 # include <sys/stat.h>
292 #endif
293 #if STDC_HEADERS
294 # include <stdlib.h>
295 # include <stddef.h>
296 #else
297 # if HAVE_STDLIB_H
298 #  include <stdlib.h>
299 # endif
300 #endif
301 #if HAVE_STRING_H
302 # if !STDC_HEADERS && HAVE_MEMORY_H
303 #  include <memory.h>
304 # endif
305 # include <string.h>
306 #endif
307 #if HAVE_STRINGS_H
308 # include <strings.h>
309 #endif
310 #if HAVE_INTTYPES_H
311 # include <inttypes.h>
312 #else
313 # if HAVE_STDINT_H
314 #  include <stdint.h>
315 # endif
316 #endif
317 #if HAVE_UNISTD_H
318 # include <unistd.h>
319 #endif"
320
321 ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os ac_cv_library_combo cc_cppprecomp cc_bundle CYGWIN RANLIB AR DLLTOOL ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S TAR CHOWN GNUSTEP_ROOT root_prefix MAKEFILES_SUFFIX HOST_INSTALL GNUSTEP_LOCAL_ROOT GNUSTEP_NETWORK_ROOT GNUSTEP_USER_ROOT GNUSTEP_FLATTENED GNUSTEP_MULTI_PLATFORM BACKEND_BUNDLE EGREP objc_threaded ac_cv_objc_threaded USE_OBJC_EXCEPTIONS AUTO_DEPENDENCIES PRECOMPILED_HEADERS INCLUDES LIB_DIR OBJCFLAGS GNUSTEP_STRIP_MAKEFILES GNUSTEP_MOVE_OBSOLETE GNUSTEP_MAKE_VERSION GNUSTEP_MAKE_MAJOR_VERSION GNUSTEP_MAKE_MINOR_VERSION GNUSTEP_MAKE_SUBMINOR_VERSION clean_target_os clean_target_cpu clean_target_vendor LIBOBJS LTLIBOBJS'
322 ac_subst_files=''
323
324 # Initialize some variables set by options.
325 ac_init_help=
326 ac_init_version=false
327 # The variables have the same names as the options, with
328 # dashes changed to underlines.
329 cache_file=/dev/null
330 exec_prefix=NONE
331 no_create=
332 no_recursion=
333 prefix=NONE
334 program_prefix=NONE
335 program_suffix=NONE
336 program_transform_name=s,x,x,
337 silent=
338 site=
339 srcdir=
340 verbose=
341 x_includes=NONE
342 x_libraries=NONE
343
344 # Installation directory options.
345 # These are left unexpanded so users can "make install exec_prefix=/foo"
346 # and all the variables that are supposed to be based on exec_prefix
347 # by default will actually change.
348 # Use braces instead of parens because sh, perl, etc. also accept them.
349 bindir='${exec_prefix}/bin'
350 sbindir='${exec_prefix}/sbin'
351 libexecdir='${exec_prefix}/libexec'
352 datadir='${prefix}/share'
353 sysconfdir='${prefix}/etc'
354 sharedstatedir='${prefix}/com'
355 localstatedir='${prefix}/var'
356 libdir='${exec_prefix}/lib'
357 includedir='${prefix}/include'
358 oldincludedir='/usr/include'
359 infodir='${prefix}/info'
360 mandir='${prefix}/man'
361
362 ac_prev=
363 for ac_option
364 do
365   # If the previous option needs an argument, assign it.
366   if test -n "$ac_prev"; then
367     eval "$ac_prev=\$ac_option"
368     ac_prev=
369     continue
370   fi
371
372   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
373
374   # Accept the important Cygnus configure options, so we can diagnose typos.
375
376   case $ac_option in
377
378   -bindir | --bindir | --bindi | --bind | --bin | --bi)
379     ac_prev=bindir ;;
380   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
381     bindir=$ac_optarg ;;
382
383   -build | --build | --buil | --bui | --bu)
384     ac_prev=build_alias ;;
385   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
386     build_alias=$ac_optarg ;;
387
388   -cache-file | --cache-file | --cache-fil | --cache-fi \
389   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
390     ac_prev=cache_file ;;
391   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
392   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
393     cache_file=$ac_optarg ;;
394
395   --config-cache | -C)
396     cache_file=config.cache ;;
397
398   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
399     ac_prev=datadir ;;
400   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
401   | --da=*)
402     datadir=$ac_optarg ;;
403
404   -disable-* | --disable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     eval "enable_$ac_feature=no" ;;
412
413   -enable-* | --enable-*)
414     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
415     # Reject names that are not valid shell variable names.
416     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
417       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
418    { (exit 1); exit 1; }; }
419     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
420     case $ac_option in
421       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
422       *) ac_optarg=yes ;;
423     esac
424     eval "enable_$ac_feature='$ac_optarg'" ;;
425
426   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
427   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
428   | --exec | --exe | --ex)
429     ac_prev=exec_prefix ;;
430   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
431   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
432   | --exec=* | --exe=* | --ex=*)
433     exec_prefix=$ac_optarg ;;
434
435   -gas | --gas | --ga | --g)
436     # Obsolete; use --with-gas.
437     with_gas=yes ;;
438
439   -help | --help | --hel | --he | -h)
440     ac_init_help=long ;;
441   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
442     ac_init_help=recursive ;;
443   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
444     ac_init_help=short ;;
445
446   -host | --host | --hos | --ho)
447     ac_prev=host_alias ;;
448   -host=* | --host=* | --hos=* | --ho=*)
449     host_alias=$ac_optarg ;;
450
451   -includedir | --includedir | --includedi | --included | --include \
452   | --includ | --inclu | --incl | --inc)
453     ac_prev=includedir ;;
454   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
455   | --includ=* | --inclu=* | --incl=* | --inc=*)
456     includedir=$ac_optarg ;;
457
458   -infodir | --infodir | --infodi | --infod | --info | --inf)
459     ac_prev=infodir ;;
460   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
461     infodir=$ac_optarg ;;
462
463   -libdir | --libdir | --libdi | --libd)
464     ac_prev=libdir ;;
465   -libdir=* | --libdir=* | --libdi=* | --libd=*)
466     libdir=$ac_optarg ;;
467
468   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
469   | --libexe | --libex | --libe)
470     ac_prev=libexecdir ;;
471   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
472   | --libexe=* | --libex=* | --libe=*)
473     libexecdir=$ac_optarg ;;
474
475   -localstatedir | --localstatedir | --localstatedi | --localstated \
476   | --localstate | --localstat | --localsta | --localst \
477   | --locals | --local | --loca | --loc | --lo)
478     ac_prev=localstatedir ;;
479   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
480   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
481   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
482     localstatedir=$ac_optarg ;;
483
484   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
485     ac_prev=mandir ;;
486   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
487     mandir=$ac_optarg ;;
488
489   -nfp | --nfp | --nf)
490     # Obsolete; use --without-fp.
491     with_fp=no ;;
492
493   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494   | --no-cr | --no-c | -n)
495     no_create=yes ;;
496
497   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
499     no_recursion=yes ;;
500
501   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
502   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
503   | --oldin | --oldi | --old | --ol | --o)
504     ac_prev=oldincludedir ;;
505   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
506   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
507   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
508     oldincludedir=$ac_optarg ;;
509
510   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
511     ac_prev=prefix ;;
512   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
513     prefix=$ac_optarg ;;
514
515   -program-prefix | --program-prefix | --program-prefi | --program-pref \
516   | --program-pre | --program-pr | --program-p)
517     ac_prev=program_prefix ;;
518   -program-prefix=* | --program-prefix=* | --program-prefi=* \
519   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
520     program_prefix=$ac_optarg ;;
521
522   -program-suffix | --program-suffix | --program-suffi | --program-suff \
523   | --program-suf | --program-su | --program-s)
524     ac_prev=program_suffix ;;
525   -program-suffix=* | --program-suffix=* | --program-suffi=* \
526   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
527     program_suffix=$ac_optarg ;;
528
529   -program-transform-name | --program-transform-name \
530   | --program-transform-nam | --program-transform-na \
531   | --program-transform-n | --program-transform- \
532   | --program-transform | --program-transfor \
533   | --program-transfo | --program-transf \
534   | --program-trans | --program-tran \
535   | --progr-tra | --program-tr | --program-t)
536     ac_prev=program_transform_name ;;
537   -program-transform-name=* | --program-transform-name=* \
538   | --program-transform-nam=* | --program-transform-na=* \
539   | --program-transform-n=* | --program-transform-=* \
540   | --program-transform=* | --program-transfor=* \
541   | --program-transfo=* | --program-transf=* \
542   | --program-trans=* | --program-tran=* \
543   | --progr-tra=* | --program-tr=* | --program-t=*)
544     program_transform_name=$ac_optarg ;;
545
546   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
547   | -silent | --silent | --silen | --sile | --sil)
548     silent=yes ;;
549
550   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
551     ac_prev=sbindir ;;
552   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
553   | --sbi=* | --sb=*)
554     sbindir=$ac_optarg ;;
555
556   -sharedstatedir | --sharedstatedir | --sharedstatedi \
557   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
558   | --sharedst | --shareds | --shared | --share | --shar \
559   | --sha | --sh)
560     ac_prev=sharedstatedir ;;
561   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
562   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
563   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
564   | --sha=* | --sh=*)
565     sharedstatedir=$ac_optarg ;;
566
567   -site | --site | --sit)
568     ac_prev=site ;;
569   -site=* | --site=* | --sit=*)
570     site=$ac_optarg ;;
571
572   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
573     ac_prev=srcdir ;;
574   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
575     srcdir=$ac_optarg ;;
576
577   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
578   | --syscon | --sysco | --sysc | --sys | --sy)
579     ac_prev=sysconfdir ;;
580   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
581   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
582     sysconfdir=$ac_optarg ;;
583
584   -target | --target | --targe | --targ | --tar | --ta | --t)
585     ac_prev=target_alias ;;
586   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
587     target_alias=$ac_optarg ;;
588
589   -v | -verbose | --verbose | --verbos | --verbo | --verb)
590     verbose=yes ;;
591
592   -version | --version | --versio | --versi | --vers | -V)
593     ac_init_version=: ;;
594
595   -with-* | --with-*)
596     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid package name: $ac_package" >&2
600    { (exit 1); exit 1; }; }
601     ac_package=`echo $ac_package| sed 's/-/_/g'`
602     case $ac_option in
603       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
604       *) ac_optarg=yes ;;
605     esac
606     eval "with_$ac_package='$ac_optarg'" ;;
607
608   -without-* | --without-*)
609     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
610     # Reject names that are not valid shell variable names.
611     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
612       { echo "$as_me: error: invalid package name: $ac_package" >&2
613    { (exit 1); exit 1; }; }
614     ac_package=`echo $ac_package | sed 's/-/_/g'`
615     eval "with_$ac_package=no" ;;
616
617   --x)
618     # Obsolete; use --with-x.
619     with_x=yes ;;
620
621   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
622   | --x-incl | --x-inc | --x-in | --x-i)
623     ac_prev=x_includes ;;
624   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
625   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
626     x_includes=$ac_optarg ;;
627
628   -x-libraries | --x-libraries | --x-librarie | --x-librari \
629   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
630     ac_prev=x_libraries ;;
631   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
632   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
633     x_libraries=$ac_optarg ;;
634
635   -*) { echo "$as_me: error: unrecognized option: $ac_option
636 Try \`$0 --help' for more information." >&2
637    { (exit 1); exit 1; }; }
638     ;;
639
640   *=*)
641     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
642     # Reject names that are not valid shell variable names.
643     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
644       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
645    { (exit 1); exit 1; }; }
646     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
647     eval "$ac_envvar='$ac_optarg'"
648     export $ac_envvar ;;
649
650   *)
651     # FIXME: should be removed in autoconf 3.0.
652     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
653     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
654       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
655     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
656     ;;
657
658   esac
659 done
660
661 if test -n "$ac_prev"; then
662   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
663   { echo "$as_me: error: missing argument to $ac_option" >&2
664    { (exit 1); exit 1; }; }
665 fi
666
667 # Be sure to have absolute paths.
668 for ac_var in exec_prefix prefix
669 do
670   eval ac_val=$`echo $ac_var`
671   case $ac_val in
672     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
673     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674    { (exit 1); exit 1; }; };;
675   esac
676 done
677
678 # Be sure to have absolute paths.
679 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
680               localstatedir libdir includedir oldincludedir infodir mandir
681 do
682   eval ac_val=$`echo $ac_var`
683   case $ac_val in
684     [\\/$]* | ?:[\\/]* ) ;;
685     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
686    { (exit 1); exit 1; }; };;
687   esac
688 done
689
690 # There might be people who depend on the old broken behavior: `$host'
691 # used to hold the argument of --host etc.
692 # FIXME: To remove some day.
693 build=$build_alias
694 host=$host_alias
695 target=$target_alias
696
697 # FIXME: To remove some day.
698 if test "x$host_alias" != x; then
699   if test "x$build_alias" = x; then
700     cross_compiling=maybe
701     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
702     If a cross compiler is detected then cross compile mode will be used." >&2
703   elif test "x$build_alias" != "x$host_alias"; then
704     cross_compiling=yes
705   fi
706 fi
707
708 ac_tool_prefix=
709 test -n "$host_alias" && ac_tool_prefix=$host_alias-
710
711 test "$silent" = yes && exec 6>/dev/null
712
713
714 # Find the source files, if location was not specified.
715 if test -z "$srcdir"; then
716   ac_srcdir_defaulted=yes
717   # Try the directory containing this script, then its parent.
718   ac_confdir=`(dirname "$0") 2>/dev/null ||
719 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
720          X"$0" : 'X\(//\)[^/]' \| \
721          X"$0" : 'X\(//\)$' \| \
722          X"$0" : 'X\(/\)' \| \
723          .     : '\(.\)' 2>/dev/null ||
724 echo X"$0" |
725     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
726           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
727           /^X\(\/\/\)$/{ s//\1/; q; }
728           /^X\(\/\).*/{ s//\1/; q; }
729           s/.*/./; q'`
730   srcdir=$ac_confdir
731   if test ! -r $srcdir/$ac_unique_file; then
732     srcdir=..
733   fi
734 else
735   ac_srcdir_defaulted=no
736 fi
737 if test ! -r $srcdir/$ac_unique_file; then
738   if test "$ac_srcdir_defaulted" = yes; then
739     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
740    { (exit 1); exit 1; }; }
741   else
742     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
743    { (exit 1); exit 1; }; }
744   fi
745 fi
746 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
747   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
748    { (exit 1); exit 1; }; }
749 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
750 ac_env_build_alias_set=${build_alias+set}
751 ac_env_build_alias_value=$build_alias
752 ac_cv_env_build_alias_set=${build_alias+set}
753 ac_cv_env_build_alias_value=$build_alias
754 ac_env_host_alias_set=${host_alias+set}
755 ac_env_host_alias_value=$host_alias
756 ac_cv_env_host_alias_set=${host_alias+set}
757 ac_cv_env_host_alias_value=$host_alias
758 ac_env_target_alias_set=${target_alias+set}
759 ac_env_target_alias_value=$target_alias
760 ac_cv_env_target_alias_set=${target_alias+set}
761 ac_cv_env_target_alias_value=$target_alias
762 ac_env_CC_set=${CC+set}
763 ac_env_CC_value=$CC
764 ac_cv_env_CC_set=${CC+set}
765 ac_cv_env_CC_value=$CC
766 ac_env_CFLAGS_set=${CFLAGS+set}
767 ac_env_CFLAGS_value=$CFLAGS
768 ac_cv_env_CFLAGS_set=${CFLAGS+set}
769 ac_cv_env_CFLAGS_value=$CFLAGS
770 ac_env_LDFLAGS_set=${LDFLAGS+set}
771 ac_env_LDFLAGS_value=$LDFLAGS
772 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
773 ac_cv_env_LDFLAGS_value=$LDFLAGS
774 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
775 ac_env_CPPFLAGS_value=$CPPFLAGS
776 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
777 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
778 ac_env_CPP_set=${CPP+set}
779 ac_env_CPP_value=$CPP
780 ac_cv_env_CPP_set=${CPP+set}
781 ac_cv_env_CPP_value=$CPP
782
783 #
784 # Report the --help message.
785 #
786 if test "$ac_init_help" = "long"; then
787   # Omit some internal or obsolete options to make the list less imposing.
788   # This message is too long to be a string in the A/UX 3.1 sh.
789   cat <<_ACEOF
790 \`configure' configures this package to adapt to many kinds of systems.
791
792 Usage: $0 [OPTION]... [VAR=VALUE]...
793
794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
795 VAR=VALUE.  See below for descriptions of some of the useful variables.
796
797 Defaults for the options are specified in brackets.
798
799 Configuration:
800   -h, --help              display this help and exit
801       --help=short        display options specific to this package
802       --help=recursive    display the short help of all the included packages
803   -V, --version           display version information and exit
804   -q, --quiet, --silent   do not print \`checking...' messages
805       --cache-file=FILE   cache test results in FILE [disabled]
806   -C, --config-cache      alias for \`--cache-file=config.cache'
807   -n, --no-create         do not create output files
808       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
809
810 _ACEOF
811
812   cat <<_ACEOF
813 Installation directories:
814   --prefix=PREFIX         install architecture-independent files in PREFIX
815                           [$ac_default_prefix]
816   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
817                           [PREFIX]
818
819 By default, \`make install' will install all the files in
820 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
821 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822 for instance \`--prefix=\$HOME'.
823
824 For better control, use the options below.
825
826 Fine tuning of the installation directories:
827   --bindir=DIR           user executables [EPREFIX/bin]
828   --sbindir=DIR          system admin executables [EPREFIX/sbin]
829   --libexecdir=DIR       program executables [EPREFIX/libexec]
830   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
831   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
832   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
833   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
834   --libdir=DIR           object code libraries [EPREFIX/lib]
835   --includedir=DIR       C header files [PREFIX/include]
836   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
837   --infodir=DIR          info documentation [PREFIX/info]
838   --mandir=DIR           man documentation [PREFIX/man]
839 _ACEOF
840
841   cat <<\_ACEOF
842
843 System types:
844   --build=BUILD     configure for building on BUILD [guessed]
845   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
846   --target=TARGET   configure for building compilers for TARGET [HOST]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852   cat <<\_ACEOF
853
854 Optional Features:
855   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
856   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
857 --disable-flattened             Disable flattened directory structure
858 --enable-multi-platform         Use run time multi-platform support
859
860 --disable-backend-bundle        Compile gui backend as a library
861   --enable-native-objc-exceptions
862                           use native objective-c exceptions
863 --enable-strip-makefiles        Enable stripping makefiles after installation
864 --disable-move-obsolete         Disable moving obsolete dir structure
865 --enable-pch                    Enable precompiled headers
866
867 Optional Packages:
868   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
869   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
870
871 --with-library-combo            Define the default library combination
872
873 --with-tar                      Set the name of the tar program to use
874 --without-system-root           Don't use separate system root directory
875 --with-local-root
876     Set the GNUSTEP_LOCAL_ROOT directory.  Use this option if you want
877 to have the GNUSTEP_LOCAL_ROOT directory in a non-standard place.  Example:
878 --with-local-root=/usr/local/GNUstep/Local
879
880 --with-network-root
881     Set the GNUSTEP_NETWORK_ROOT directory.  Use this option if you want
882 to have the GNUSTEP_NETWORK_ROOT directory.  Example:
883 --with-network-root=/usr/local/GNUstep/Network
884
885 --with-user-root
886     Set the GNUSTEP_USER_ROOT directory for all users.  '~' is allowed
887     at the beginning to mean the user's home directory.  Use this
888     option if you want to have the GNUSTEP_USER_ROOT directory in a non
889     default place for all users.
890     Example: --with-user-root='~/gnustep'
891
892 --with-thread-lib               Specify alternate thread library
893
894 Some influential environment variables:
895   CC          C compiler command
896   CFLAGS      C compiler flags
897   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
898               nonstandard directory <lib dir>
899   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
900               headers in a nonstandard directory <include dir>
901   CPP         C preprocessor
902
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
905
906 _ACEOF
907 fi
908
909 if test "$ac_init_help" = "recursive"; then
910   # If there are subdirs, report their specific --help.
911   ac_popdir=`pwd`
912   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913     test -d $ac_dir || continue
914     ac_builddir=.
915
916 if test "$ac_dir" != .; then
917   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918   # A "../" for each directory in $ac_dir_suffix.
919   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 else
921   ac_dir_suffix= ac_top_builddir=
922 fi
923
924 case $srcdir in
925   .)  # No --srcdir option.  We are building in place.
926     ac_srcdir=.
927     if test -z "$ac_top_builddir"; then
928        ac_top_srcdir=.
929     else
930        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931     fi ;;
932   [\\/]* | ?:[\\/]* )  # Absolute path.
933     ac_srcdir=$srcdir$ac_dir_suffix;
934     ac_top_srcdir=$srcdir ;;
935   *) # Relative path.
936     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937     ac_top_srcdir=$ac_top_builddir$srcdir ;;
938 esac
939
940 # Do not use `cd foo && pwd` to compute absolute paths, because
941 # the directories may not exist.
942 case `pwd` in
943 .) ac_abs_builddir="$ac_dir";;
944 *)
945   case "$ac_dir" in
946   .) ac_abs_builddir=`pwd`;;
947   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948   *) ac_abs_builddir=`pwd`/"$ac_dir";;
949   esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
953 *)
954   case ${ac_top_builddir}. in
955   .) ac_abs_top_builddir=$ac_abs_builddir;;
956   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
958   esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
962 *)
963   case $ac_srcdir in
964   .) ac_abs_srcdir=$ac_abs_builddir;;
965   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
967   esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
971 *)
972   case $ac_top_srcdir in
973   .) ac_abs_top_srcdir=$ac_abs_builddir;;
974   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
976   esac;;
977 esac
978
979     cd $ac_dir
980     # Check for guested configure; otherwise get Cygnus style configure.
981     if test -f $ac_srcdir/configure.gnu; then
982       echo
983       $SHELL $ac_srcdir/configure.gnu  --help=recursive
984     elif test -f $ac_srcdir/configure; then
985       echo
986       $SHELL $ac_srcdir/configure  --help=recursive
987     elif test -f $ac_srcdir/configure.ac ||
988            test -f $ac_srcdir/configure.in; then
989       echo
990       $ac_configure --help
991     else
992       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
993     fi
994     cd $ac_popdir
995   done
996 fi
997
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1000   cat <<\_ACEOF
1001
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1005 _ACEOF
1006   exit 0
1007 fi
1008 exec 5>config.log
1009 cat >&5 <<_ACEOF
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1012
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59.  Invocation command line was
1015
1016   $ $0 $@
1017
1018 _ACEOF
1019 {
1020 cat <<_ASUNAME
1021 ## --------- ##
1022 ## Platform. ##
1023 ## --------- ##
1024
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1030
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1033
1034 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1035 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1038 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1039 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1040 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1041
1042 _ASUNAME
1043
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 for as_dir in $PATH
1046 do
1047   IFS=$as_save_IFS
1048   test -z "$as_dir" && as_dir=.
1049   echo "PATH: $as_dir"
1050 done
1051
1052 } >&5
1053
1054 cat >&5 <<_ACEOF
1055
1056
1057 ## ----------- ##
1058 ## Core tests. ##
1059 ## ----------- ##
1060
1061 _ACEOF
1062
1063
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1069 ac_configure_args=
1070 ac_configure_args0=
1071 ac_configure_args1=
1072 ac_sep=
1073 ac_must_keep_next=false
1074 for ac_pass in 1 2
1075 do
1076   for ac_arg
1077   do
1078     case $ac_arg in
1079     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081     | -silent | --silent | --silen | --sile | --sil)
1082       continue ;;
1083     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085     esac
1086     case $ac_pass in
1087     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1088     2)
1089       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090       if test $ac_must_keep_next = true; then
1091         ac_must_keep_next=false # Got value, back to normal.
1092       else
1093         case $ac_arg in
1094           *=* | --config-cache | -C | -disable-* | --disable-* \
1095           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097           | -with-* | --with-* | -without-* | --without-* | --x)
1098             case "$ac_configure_args0 " in
1099               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100             esac
1101             ;;
1102           -* ) ac_must_keep_next=true ;;
1103         esac
1104       fi
1105       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106       # Get rid of the leading space.
1107       ac_sep=" "
1108       ;;
1109     esac
1110   done
1111 done
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1114
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log.  We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121   # Save into config.log some information that might help in debugging.
1122   {
1123     echo
1124
1125     cat <<\_ASBOX
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1129 _ASBOX
1130     echo
1131     # The following way of writing the cache mishandles newlines in values,
1132 {
1133   (set) 2>&1 |
1134     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135     *ac_space=\ *)
1136       sed -n \
1137         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139       ;;
1140     *)
1141       sed -n \
1142         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1143       ;;
1144     esac;
1145 }
1146     echo
1147
1148     cat <<\_ASBOX
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1152 _ASBOX
1153     echo
1154     for ac_var in $ac_subst_vars
1155     do
1156       eval ac_val=$`echo $ac_var`
1157       echo "$ac_var='"'"'$ac_val'"'"'"
1158     done | sort
1159     echo
1160
1161     if test -n "$ac_subst_files"; then
1162       cat <<\_ASBOX
1163 ## ------------- ##
1164 ## Output files. ##
1165 ## ------------- ##
1166 _ASBOX
1167       echo
1168       for ac_var in $ac_subst_files
1169       do
1170         eval ac_val=$`echo $ac_var`
1171         echo "$ac_var='"'"'$ac_val'"'"'"
1172       done | sort
1173       echo
1174     fi
1175
1176     if test -s confdefs.h; then
1177       cat <<\_ASBOX
1178 ## ----------- ##
1179 ## confdefs.h. ##
1180 ## ----------- ##
1181 _ASBOX
1182       echo
1183       sed "/^$/d" confdefs.h | sort
1184       echo
1185     fi
1186     test "$ac_signal" != 0 &&
1187       echo "$as_me: caught signal $ac_signal"
1188     echo "$as_me: exit $exit_status"
1189   } >&5
1190   rm -f core *.core &&
1191   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1192     exit $exit_status
1193      ' 0
1194 for ac_signal in 1 2 13 15; do
1195   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 done
1197 ac_signal=0
1198
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202 echo >confdefs.h
1203
1204 # Predefined preprocessor variables.
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 _ACEOF
1229
1230
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234   if test "x$prefix" != xNONE; then
1235     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236   else
1237     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1238   fi
1239 fi
1240 for ac_site_file in $CONFIG_SITE; do
1241   if test -r "$ac_site_file"; then
1242     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244     sed 's/^/| /' "$ac_site_file" >&5
1245     . "$ac_site_file"
1246   fi
1247 done
1248
1249 if test -r "$cache_file"; then
1250   # Some versions of bash will fail to source /dev/null (special
1251   # files actually), so we avoid doing that.
1252   if test -f "$cache_file"; then
1253     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1255     case $cache_file in
1256       [\\/]* | ?:[\\/]* ) . $cache_file;;
1257       *)                      . ./$cache_file;;
1258     esac
1259   fi
1260 else
1261   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1263   >$cache_file
1264 fi
1265
1266 # Check that the precious variables saved in the cache have kept the same
1267 # value.
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272   eval ac_new_set=\$ac_env_${ac_var}_set
1273   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274   eval ac_new_val="\$ac_env_${ac_var}_value"
1275   case $ac_old_set,$ac_new_set in
1276     set,)
1277       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279       ac_cache_corrupted=: ;;
1280     ,set)
1281       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283       ac_cache_corrupted=: ;;
1284     ,);;
1285     *)
1286       if test "x$ac_old_val" != "x$ac_new_val"; then
1287         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1290 echo "$as_me:   former value:  $ac_old_val" >&2;}
1291         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1292 echo "$as_me:   current value: $ac_new_val" >&2;}
1293         ac_cache_corrupted=:
1294       fi;;
1295   esac
1296   # Pass precious variables to config.status.
1297   if test "$ac_new_set" = set; then
1298     case $ac_new_val in
1299     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301     *) ac_arg=$ac_var=$ac_new_val ;;
1302     esac
1303     case " $ac_configure_args " in
1304       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1305       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306     esac
1307   fi
1308 done
1309 if $ac_cache_corrupted; then
1310   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314    { (exit 1); exit 1; }; }
1315 fi
1316
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343           ac_config_headers="$ac_config_headers config.h"
1344
1345
1346 #--------------------------------------------------------------------
1347 # Setup the library combination
1348 #--------------------------------------------------------------------
1349 targetArgument=${target}
1350 ac_ext=c
1351 ac_cpp='$CPP $CPPFLAGS'
1352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1355 if test -n "$ac_tool_prefix"; then
1356   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1358 echo "$as_me:$LINENO: checking for $ac_word" >&5
1359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360 if test "${ac_cv_prog_CC+set}" = set; then
1361   echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363   if test -n "$CC"; then
1364   ac_cv_prog_CC="$CC" # Let the user override the test.
1365 else
1366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367 for as_dir in $PATH
1368 do
1369   IFS=$as_save_IFS
1370   test -z "$as_dir" && as_dir=.
1371   for ac_exec_ext in '' $ac_executable_extensions; do
1372   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1375     break 2
1376   fi
1377 done
1378 done
1379
1380 fi
1381 fi
1382 CC=$ac_cv_prog_CC
1383 if test -n "$CC"; then
1384   echo "$as_me:$LINENO: result: $CC" >&5
1385 echo "${ECHO_T}$CC" >&6
1386 else
1387   echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1389 fi
1390
1391 fi
1392 if test -z "$ac_cv_prog_CC"; then
1393   ac_ct_CC=$CC
1394   # Extract the first word of "gcc", so it can be a program name with args.
1395 set dummy gcc; ac_word=$2
1396 echo "$as_me:$LINENO: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1399   echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401   if test -n "$ac_ct_CC"; then
1402   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1403 else
1404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405 for as_dir in $PATH
1406 do
1407   IFS=$as_save_IFS
1408   test -z "$as_dir" && as_dir=.
1409   for ac_exec_ext in '' $ac_executable_extensions; do
1410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1411     ac_cv_prog_ac_ct_CC="gcc"
1412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1413     break 2
1414   fi
1415 done
1416 done
1417
1418 fi
1419 fi
1420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1421 if test -n "$ac_ct_CC"; then
1422   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1423 echo "${ECHO_T}$ac_ct_CC" >&6
1424 else
1425   echo "$as_me:$LINENO: result: no" >&5
1426 echo "${ECHO_T}no" >&6
1427 fi
1428
1429   CC=$ac_ct_CC
1430 else
1431   CC="$ac_cv_prog_CC"
1432 fi
1433
1434 if test -z "$CC"; then
1435   if test -n "$ac_tool_prefix"; then
1436   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}cc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441   echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443   if test -n "$CC"; then
1444   ac_cv_prog_CC="$CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449   IFS=$as_save_IFS
1450   test -z "$as_dir" && as_dir=.
1451   for ac_exec_ext in '' $ac_executable_extensions; do
1452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453     ac_cv_prog_CC="${ac_tool_prefix}cc"
1454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455     break 2
1456   fi
1457 done
1458 done
1459
1460 fi
1461 fi
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464   echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467   echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471 fi
1472 if test -z "$ac_cv_prog_CC"; then
1473   ac_ct_CC=$CC
1474   # Extract the first word of "cc", so it can be a program name with args.
1475 set dummy cc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$ac_ct_CC"; then
1482   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     ac_cv_prog_ac_ct_CC="cc"
1492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493     break 2
1494   fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509   CC=$ac_ct_CC
1510 else
1511   CC="$ac_cv_prog_CC"
1512 fi
1513
1514 fi
1515 if test -z "$CC"; then
1516   # Extract the first word of "cc", so it can be a program name with args.
1517 set dummy cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$CC"; then
1524   ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526   ac_prog_rejected=no
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530   IFS=$as_save_IFS
1531   test -z "$as_dir" && as_dir=.
1532   for ac_exec_ext in '' $ac_executable_extensions; do
1533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1535        ac_prog_rejected=yes
1536        continue
1537      fi
1538     ac_cv_prog_CC="cc"
1539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540     break 2
1541   fi
1542 done
1543 done
1544
1545 if test $ac_prog_rejected = yes; then
1546   # We found a bogon in the path, so make sure we never use it.
1547   set dummy $ac_cv_prog_CC
1548   shift
1549   if test $# != 0; then
1550     # We chose a different compiler from the bogus one.
1551     # However, it has the same basename, so the bogon will be chosen
1552     # first if we set CC to just the basename; use the full file name.
1553     shift
1554     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1555   fi
1556 fi
1557 fi
1558 fi
1559 CC=$ac_cv_prog_CC
1560 if test -n "$CC"; then
1561   echo "$as_me:$LINENO: result: $CC" >&5
1562 echo "${ECHO_T}$CC" >&6
1563 else
1564   echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1566 fi
1567
1568 fi
1569 if test -z "$CC"; then
1570   if test -n "$ac_tool_prefix"; then
1571   for ac_prog in cl
1572   do
1573     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1575 echo "$as_me:$LINENO: checking for $ac_word" >&5
1576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577 if test "${ac_cv_prog_CC+set}" = set; then
1578   echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580   if test -n "$CC"; then
1581   ac_cv_prog_CC="$CC" # Let the user override the test.
1582 else
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1585 do
1586   IFS=$as_save_IFS
1587   test -z "$as_dir" && as_dir=.
1588   for ac_exec_ext in '' $ac_executable_extensions; do
1589   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592     break 2
1593   fi
1594 done
1595 done
1596
1597 fi
1598 fi
1599 CC=$ac_cv_prog_CC
1600 if test -n "$CC"; then
1601   echo "$as_me:$LINENO: result: $CC" >&5
1602 echo "${ECHO_T}$CC" >&6
1603 else
1604   echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1606 fi
1607
1608     test -n "$CC" && break
1609   done
1610 fi
1611 if test -z "$CC"; then
1612   ac_ct_CC=$CC
1613   for ac_prog in cl
1614 do
1615   # Extract the first word of "$ac_prog", so it can be a program name with args.
1616 set dummy $ac_prog; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1620   echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622   if test -n "$ac_ct_CC"; then
1623   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1624 else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1627 do
1628   IFS=$as_save_IFS
1629   test -z "$as_dir" && as_dir=.
1630   for ac_exec_ext in '' $ac_executable_extensions; do
1631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632     ac_cv_prog_ac_ct_CC="$ac_prog"
1633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634     break 2
1635   fi
1636 done
1637 done
1638
1639 fi
1640 fi
1641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1642 if test -n "$ac_ct_CC"; then
1643   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1644 echo "${ECHO_T}$ac_ct_CC" >&6
1645 else
1646   echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 fi
1649
1650   test -n "$ac_ct_CC" && break
1651 done
1652
1653   CC=$ac_ct_CC
1654 fi
1655
1656 fi
1657
1658
1659 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1660 See \`config.log' for more details." >&5
1661 echo "$as_me: error: no acceptable C compiler found in \$PATH
1662 See \`config.log' for more details." >&2;}
1663    { (exit 1); exit 1; }; }
1664
1665 # Provide some information about the compiler.
1666 echo "$as_me:$LINENO:" \
1667      "checking for C compiler version" >&5
1668 ac_compiler=`set X $ac_compile; echo $2`
1669 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1670   (eval $ac_compiler --version </dev/null >&5) 2>&5
1671   ac_status=$?
1672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1673   (exit $ac_status); }
1674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1675   (eval $ac_compiler -v </dev/null >&5) 2>&5
1676   ac_status=$?
1677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1678   (exit $ac_status); }
1679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1680   (eval $ac_compiler -V </dev/null >&5) 2>&5
1681   ac_status=$?
1682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683   (exit $ac_status); }
1684
1685 cat >conftest.$ac_ext <<_ACEOF
1686 /* confdefs.h.  */
1687 _ACEOF
1688 cat confdefs.h >>conftest.$ac_ext
1689 cat >>conftest.$ac_ext <<_ACEOF
1690 /* end confdefs.h.  */
1691
1692 int
1693 main ()
1694 {
1695
1696   ;
1697   return 0;
1698 }
1699 _ACEOF
1700 ac_clean_files_save=$ac_clean_files
1701 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1702 # Try to create an executable without -o first, disregard a.out.
1703 # It will help us diagnose broken compilers, and finding out an intuition
1704 # of exeext.
1705 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1706 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1707 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1708 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1709   (eval $ac_link_default) 2>&5
1710   ac_status=$?
1711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1712   (exit $ac_status); }; then
1713   # Find the output, starting from the most likely.  This scheme is
1714 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1715 # resort.
1716
1717 # Be careful to initialize this variable, since it used to be cached.
1718 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1719 ac_cv_exeext=
1720 # b.out is created by i960 compilers.
1721 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1722 do
1723   test -f "$ac_file" || continue
1724   case $ac_file in
1725     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1726         ;;
1727     conftest.$ac_ext )
1728         # This is the source file.
1729         ;;
1730     [ab].out )
1731         # We found the default executable, but exeext='' is most
1732         # certainly right.
1733         break;;
1734     *.* )
1735         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1736         # FIXME: I believe we export ac_cv_exeext for Libtool,
1737         # but it would be cool to find out if it's true.  Does anybody
1738         # maintain Libtool? --akim.
1739         export ac_cv_exeext
1740         break;;
1741     * )
1742         break;;
1743   esac
1744 done
1745 else
1746   echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1750 See \`config.log' for more details." >&5
1751 echo "$as_me: error: C compiler cannot create executables
1752 See \`config.log' for more details." >&2;}
1753    { (exit 77); exit 77; }; }
1754 fi
1755
1756 ac_exeext=$ac_cv_exeext
1757 echo "$as_me:$LINENO: result: $ac_file" >&5
1758 echo "${ECHO_T}$ac_file" >&6
1759
1760 # Check the compiler produces executables we can run.  If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1763 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1764 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1765 # If not cross compiling, check that we can run a simple program.
1766 if test "$cross_compiling" != yes; then
1767   if { ac_try='./$ac_file'
1768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1769   (eval $ac_try) 2>&5
1770   ac_status=$?
1771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772   (exit $ac_status); }; }; then
1773     cross_compiling=no
1774   else
1775     if test "$cross_compiling" = maybe; then
1776         cross_compiling=yes
1777     else
1778         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1779 If you meant to cross compile, use \`--host'.
1780 See \`config.log' for more details." >&5
1781 echo "$as_me: error: cannot run C compiled programs.
1782 If you meant to cross compile, use \`--host'.
1783 See \`config.log' for more details." >&2;}
1784    { (exit 1); exit 1; }; }
1785     fi
1786   fi
1787 fi
1788 echo "$as_me:$LINENO: result: yes" >&5
1789 echo "${ECHO_T}yes" >&6
1790
1791 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1792 ac_clean_files=$ac_clean_files_save
1793 # Check the compiler produces executables we can run.  If not, either
1794 # the compiler is broken, or we cross compile.
1795 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1796 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1797 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1798 echo "${ECHO_T}$cross_compiling" >&6
1799
1800 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1801 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1803   (eval $ac_link) 2>&5
1804   ac_status=$?
1805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806   (exit $ac_status); }; then
1807   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1808 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1809 # work properly (i.e., refer to `conftest.exe'), while it won't with
1810 # `rm'.
1811 for ac_file in conftest.exe conftest conftest.*; do
1812   test -f "$ac_file" || continue
1813   case $ac_file in
1814     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1815     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816           export ac_cv_exeext
1817           break;;
1818     * ) break;;
1819   esac
1820 done
1821 else
1822   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1823 See \`config.log' for more details." >&5
1824 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1825 See \`config.log' for more details." >&2;}
1826    { (exit 1); exit 1; }; }
1827 fi
1828
1829 rm -f conftest$ac_cv_exeext
1830 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1831 echo "${ECHO_T}$ac_cv_exeext" >&6
1832
1833 rm -f conftest.$ac_ext
1834 EXEEXT=$ac_cv_exeext
1835 ac_exeext=$EXEEXT
1836 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1837 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1838 if test "${ac_cv_objext+set}" = set; then
1839   echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841   cat >conftest.$ac_ext <<_ACEOF
1842 /* confdefs.h.  */
1843 _ACEOF
1844 cat confdefs.h >>conftest.$ac_ext
1845 cat >>conftest.$ac_ext <<_ACEOF
1846 /* end confdefs.h.  */
1847
1848 int
1849 main ()
1850 {
1851
1852   ;
1853   return 0;
1854 }
1855 _ACEOF
1856 rm -f conftest.o conftest.obj
1857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1858   (eval $ac_compile) 2>&5
1859   ac_status=$?
1860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861   (exit $ac_status); }; then
1862   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1863   case $ac_file in
1864     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1865     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1866        break;;
1867   esac
1868 done
1869 else
1870   echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1874 See \`config.log' for more details." >&5
1875 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1876 See \`config.log' for more details." >&2;}
1877    { (exit 1); exit 1; }; }
1878 fi
1879
1880 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1881 fi
1882 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1883 echo "${ECHO_T}$ac_cv_objext" >&6
1884 OBJEXT=$ac_cv_objext
1885 ac_objext=$OBJEXT
1886 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1887 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1888 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1889   echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891   cat >conftest.$ac_ext <<_ACEOF
1892 /* confdefs.h.  */
1893 _ACEOF
1894 cat confdefs.h >>conftest.$ac_ext
1895 cat >>conftest.$ac_ext <<_ACEOF
1896 /* end confdefs.h.  */
1897
1898 int
1899 main ()
1900 {
1901 #ifndef __GNUC__
1902        choke me
1903 #endif
1904
1905   ;
1906   return 0;
1907 }
1908 _ACEOF
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1911   (eval $ac_compile) 2>conftest.er1
1912   ac_status=$?
1913   grep -v '^ *+' conftest.er1 >conftest.err
1914   rm -f conftest.er1
1915   cat conftest.err >&5
1916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917   (exit $ac_status); } &&
1918          { ac_try='test -z "$ac_c_werror_flag"
1919                          || test ! -s conftest.err'
1920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1921   (eval $ac_try) 2>&5
1922   ac_status=$?
1923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924   (exit $ac_status); }; } &&
1925          { ac_try='test -s conftest.$ac_objext'
1926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1927   (eval $ac_try) 2>&5
1928   ac_status=$?
1929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930   (exit $ac_status); }; }; then
1931   ac_compiler_gnu=yes
1932 else
1933   echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1935
1936 ac_compiler_gnu=no
1937 fi
1938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1939 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1940
1941 fi
1942 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1943 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1944 GCC=`test $ac_compiler_gnu = yes && echo yes`
1945 ac_test_CFLAGS=${CFLAGS+set}
1946 ac_save_CFLAGS=$CFLAGS
1947 CFLAGS="-g"
1948 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1949 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1950 if test "${ac_cv_prog_cc_g+set}" = set; then
1951   echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953   cat >conftest.$ac_ext <<_ACEOF
1954 /* confdefs.h.  */
1955 _ACEOF
1956 cat confdefs.h >>conftest.$ac_ext
1957 cat >>conftest.$ac_ext <<_ACEOF
1958 /* end confdefs.h.  */
1959
1960 int
1961 main ()
1962 {
1963
1964   ;
1965   return 0;
1966 }
1967 _ACEOF
1968 rm -f conftest.$ac_objext
1969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1970   (eval $ac_compile) 2>conftest.er1
1971   ac_status=$?
1972   grep -v '^ *+' conftest.er1 >conftest.err
1973   rm -f conftest.er1
1974   cat conftest.err >&5
1975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976   (exit $ac_status); } &&
1977          { ac_try='test -z "$ac_c_werror_flag"
1978                          || test ! -s conftest.err'
1979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980   (eval $ac_try) 2>&5
1981   ac_status=$?
1982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983   (exit $ac_status); }; } &&
1984          { ac_try='test -s conftest.$ac_objext'
1985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1986   (eval $ac_try) 2>&5
1987   ac_status=$?
1988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989   (exit $ac_status); }; }; then
1990   ac_cv_prog_cc_g=yes
1991 else
1992   echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 ac_cv_prog_cc_g=no
1996 fi
1997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2000 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2001 if test "$ac_test_CFLAGS" = set; then
2002   CFLAGS=$ac_save_CFLAGS
2003 elif test $ac_cv_prog_cc_g = yes; then
2004   if test "$GCC" = yes; then
2005     CFLAGS="-g -O2"
2006   else
2007     CFLAGS="-g"
2008   fi
2009 else
2010   if test "$GCC" = yes; then
2011     CFLAGS="-O2"
2012   else
2013     CFLAGS=
2014   fi
2015 fi
2016 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2017 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   ac_cv_prog_cc_stdc=no
2022 ac_save_CC=$CC
2023 cat >conftest.$ac_ext <<_ACEOF
2024 /* confdefs.h.  */
2025 _ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h.  */
2029 #include <stdarg.h>
2030 #include <stdio.h>
2031 #include <sys/types.h>
2032 #include <sys/stat.h>
2033 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2034 struct buf { int x; };
2035 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2036 static char *e (p, i)
2037      char **p;
2038      int i;
2039 {
2040   return p[i];
2041 }
2042 static char *f (char * (*g) (char **, int), char **p, ...)
2043 {
2044   char *s;
2045   va_list v;
2046   va_start (v,p);
2047   s = g (p, va_arg (v,int));
2048   va_end (v);
2049   return s;
2050 }
2051
2052 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2053    function prototypes and stuff, but not '\xHH' hex character constants.
2054    These don't provoke an error unfortunately, instead are silently treated
2055    as 'x'.  The following induces an error, until -std1 is added to get
2056    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2057    array size at least.  It's necessary to write '\x00'==0 to get something
2058    that's true only with -std1.  */
2059 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2060
2061 int test (int i, double x);
2062 struct s1 {int (*f) (int a);};
2063 struct s2 {int (*f) (double a);};
2064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2065 int argc;
2066 char **argv;
2067 int
2068 main ()
2069 {
2070 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 # Don't try gcc -ansi; that turns off useful extensions and
2076 # breaks some systems' header files.
2077 # AIX                   -qlanglvl=ansi
2078 # Ultrix and OSF/1      -std1
2079 # HP-UX 10.20 and later -Ae
2080 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2081 # SVR4                  -Xc -D__EXTENSIONS__
2082 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2083 do
2084   CC="$ac_save_CC $ac_arg"
2085   rm -f conftest.$ac_objext
2086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087   (eval $ac_compile) 2>conftest.er1
2088   ac_status=$?
2089   grep -v '^ *+' conftest.er1 >conftest.err
2090   rm -f conftest.er1
2091   cat conftest.err >&5
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); } &&
2094          { ac_try='test -z "$ac_c_werror_flag"
2095                          || test ! -s conftest.err'
2096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097   (eval $ac_try) 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }; } &&
2101          { ac_try='test -s conftest.$ac_objext'
2102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103   (eval $ac_try) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }; }; then
2107   ac_cv_prog_cc_stdc=$ac_arg
2108 break
2109 else
2110   echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2112
2113 fi
2114 rm -f conftest.err conftest.$ac_objext
2115 done
2116 rm -f conftest.$ac_ext conftest.$ac_objext
2117 CC=$ac_save_CC
2118
2119 fi
2120
2121 case "x$ac_cv_prog_cc_stdc" in
2122   x|xno)
2123     echo "$as_me:$LINENO: result: none needed" >&5
2124 echo "${ECHO_T}none needed" >&6 ;;
2125   *)
2126     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2127 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2128     CC="$CC $ac_cv_prog_cc_stdc" ;;
2129 esac
2130
2131 # Some people use a C++ compiler to compile C.  Since we use `exit',
2132 # in C++ we need to declare it.  In case someone uses the same compiler
2133 # for both compiling C and C++ we need to have the C++ compiler decide
2134 # the declaration of exit, since it's the most demanding environment.
2135 cat >conftest.$ac_ext <<_ACEOF
2136 #ifndef __cplusplus
2137   choke me
2138 #endif
2139 _ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142   (eval $ac_compile) 2>conftest.er1
2143   ac_status=$?
2144   grep -v '^ *+' conftest.er1 >conftest.err
2145   rm -f conftest.er1
2146   cat conftest.err >&5
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); } &&
2149          { ac_try='test -z "$ac_c_werror_flag"
2150                          || test ! -s conftest.err'
2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; } &&
2156          { ac_try='test -s conftest.$ac_objext'
2157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158   (eval $ac_try) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; }; then
2162   for ac_declaration in \
2163    '' \
2164    'extern "C" void std::exit (int) throw (); using std::exit;' \
2165    'extern "C" void std::exit (int); using std::exit;' \
2166    'extern "C" void exit (int) throw ();' \
2167    'extern "C" void exit (int);' \
2168    'void exit (int);'
2169 do
2170   cat >conftest.$ac_ext <<_ACEOF
2171 /* confdefs.h.  */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h.  */
2176 $ac_declaration
2177 #include <stdlib.h>
2178 int
2179 main ()
2180 {
2181 exit (42);
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188   (eval $ac_compile) 2>conftest.er1
2189   ac_status=$?
2190   grep -v '^ *+' conftest.er1 >conftest.err
2191   rm -f conftest.er1
2192   cat conftest.err >&5
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); } &&
2195          { ac_try='test -z "$ac_c_werror_flag"
2196                          || test ! -s conftest.err'
2197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198   (eval $ac_try) 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); }; } &&
2202          { ac_try='test -s conftest.$ac_objext'
2203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204   (eval $ac_try) 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }; }; then
2208   :
2209 else
2210   echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 continue
2214 fi
2215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2216   cat >conftest.$ac_ext <<_ACEOF
2217 /* confdefs.h.  */
2218 _ACEOF
2219 cat confdefs.h >>conftest.$ac_ext
2220 cat >>conftest.$ac_ext <<_ACEOF
2221 /* end confdefs.h.  */
2222 $ac_declaration
2223 int
2224 main ()
2225 {
2226 exit (42);
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 rm -f conftest.$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233   (eval $ac_compile) 2>conftest.er1
2234   ac_status=$?
2235   grep -v '^ *+' conftest.er1 >conftest.err
2236   rm -f conftest.er1
2237   cat conftest.err >&5
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); } &&
2240          { ac_try='test -z "$ac_c_werror_flag"
2241                          || test ! -s conftest.err'
2242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243   (eval $ac_try) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; } &&
2247          { ac_try='test -s conftest.$ac_objext'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; }; then
2253   break
2254 else
2255   echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2257
2258 fi
2259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2260 done
2261 rm -f conftest*
2262 if test -n "$ac_declaration"; then
2263   echo '#ifdef __cplusplus' >>confdefs.h
2264   echo $ac_declaration      >>confdefs.h
2265   echo '#endif'             >>confdefs.h
2266 fi
2267
2268 else
2269   echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2271
2272 fi
2273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2274 ac_ext=c
2275 ac_cpp='$CPP $CPPFLAGS'
2276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2279
2280 ac_ext=c
2281 ac_cpp='$CPP $CPPFLAGS'
2282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2287 # On Suns, sometimes $CPP names a directory.
2288 if test -n "$CPP" && test -d "$CPP"; then
2289   CPP=
2290 fi
2291 if test -z "$CPP"; then
2292   if test "${ac_cv_prog_CPP+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295       # Double quotes because CPP needs to be expanded
2296     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2297     do
2298       ac_preproc_ok=false
2299 for ac_c_preproc_warn_flag in '' yes
2300 do
2301   # Use a header file that comes with gcc, so configuring glibc
2302   # with a fresh cross-compiler works.
2303   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2304   # <limits.h> exists even on freestanding compilers.
2305   # On the NeXT, cc -E runs the code through the compiler's parser,
2306   # not just through cpp. "Syntax error" is here to catch this case.
2307   cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h.  */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h.  */
2313 #ifdef __STDC__
2314 # include <limits.h>
2315 #else
2316 # include <assert.h>
2317 #endif
2318                      Syntax error
2319 _ACEOF
2320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2322   ac_status=$?
2323   grep -v '^ *+' conftest.er1 >conftest.err
2324   rm -f conftest.er1
2325   cat conftest.err >&5
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); } >/dev/null; then
2328   if test -s conftest.err; then
2329     ac_cpp_err=$ac_c_preproc_warn_flag
2330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2331   else
2332     ac_cpp_err=
2333   fi
2334 else
2335   ac_cpp_err=yes
2336 fi
2337 if test -z "$ac_cpp_err"; then
2338   :
2339 else
2340   echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343   # Broken: fails on valid input.
2344 continue
2345 fi
2346 rm -f conftest.err conftest.$ac_ext
2347
2348   # OK, works on sane cases.  Now check whether non-existent headers
2349   # can be detected and how.
2350   cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h.  */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h.  */
2356 #include <ac_nonexistent.h>
2357 _ACEOF
2358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2360   ac_status=$?
2361   grep -v '^ *+' conftest.er1 >conftest.err
2362   rm -f conftest.er1
2363   cat conftest.err >&5
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); } >/dev/null; then
2366   if test -s conftest.err; then
2367     ac_cpp_err=$ac_c_preproc_warn_flag
2368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2369   else
2370     ac_cpp_err=
2371   fi
2372 else
2373   ac_cpp_err=yes
2374 fi
2375 if test -z "$ac_cpp_err"; then
2376   # Broken: success on invalid input.
2377 continue
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382   # Passes both tests.
2383 ac_preproc_ok=:
2384 break
2385 fi
2386 rm -f conftest.err conftest.$ac_ext
2387
2388 done
2389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2390 rm -f conftest.err conftest.$ac_ext
2391 if $ac_preproc_ok; then
2392   break
2393 fi
2394
2395     done
2396     ac_cv_prog_CPP=$CPP
2397
2398 fi
2399   CPP=$ac_cv_prog_CPP
2400 else
2401   ac_cv_prog_CPP=$CPP
2402 fi
2403 echo "$as_me:$LINENO: result: $CPP" >&5
2404 echo "${ECHO_T}$CPP" >&6
2405 ac_preproc_ok=false
2406 for ac_c_preproc_warn_flag in '' yes
2407 do
2408   # Use a header file that comes with gcc, so configuring glibc
2409   # with a fresh cross-compiler works.
2410   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2411   # <limits.h> exists even on freestanding compilers.
2412   # On the NeXT, cc -E runs the code through the compiler's parser,
2413   # not just through cpp. "Syntax error" is here to catch this case.
2414   cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h.  */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h.  */
2420 #ifdef __STDC__
2421 # include <limits.h>
2422 #else
2423 # include <assert.h>
2424 #endif
2425                      Syntax error
2426 _ACEOF
2427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2429   ac_status=$?
2430   grep -v '^ *+' conftest.er1 >conftest.err
2431   rm -f conftest.er1
2432   cat conftest.err >&5
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); } >/dev/null; then
2435   if test -s conftest.err; then
2436     ac_cpp_err=$ac_c_preproc_warn_flag
2437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2438   else
2439     ac_cpp_err=
2440   fi
2441 else
2442   ac_cpp_err=yes
2443 fi
2444 if test -z "$ac_cpp_err"; then
2445   :
2446 else
2447   echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450   # Broken: fails on valid input.
2451 continue
2452 fi
2453 rm -f conftest.err conftest.$ac_ext
2454
2455   # OK, works on sane cases.  Now check whether non-existent headers
2456   # can be detected and how.
2457   cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463 #include <ac_nonexistent.h>
2464 _ACEOF
2465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2466   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2467   ac_status=$?
2468   grep -v '^ *+' conftest.er1 >conftest.err
2469   rm -f conftest.er1
2470   cat conftest.err >&5
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); } >/dev/null; then
2473   if test -s conftest.err; then
2474     ac_cpp_err=$ac_c_preproc_warn_flag
2475     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2476   else
2477     ac_cpp_err=
2478   fi
2479 else
2480   ac_cpp_err=yes
2481 fi
2482 if test -z "$ac_cpp_err"; then
2483   # Broken: success on invalid input.
2484 continue
2485 else
2486   echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489   # Passes both tests.
2490 ac_preproc_ok=:
2491 break
2492 fi
2493 rm -f conftest.err conftest.$ac_ext
2494
2495 done
2496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2497 rm -f conftest.err conftest.$ac_ext
2498 if $ac_preproc_ok; then
2499   :
2500 else
2501   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2504 See \`config.log' for more details." >&2;}
2505    { (exit 1); exit 1; }; }
2506 fi
2507
2508 ac_ext=c
2509 ac_cpp='$CPP $CPPFLAGS'
2510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
2514 ac_aux_dir=
2515 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2516   if test -f $ac_dir/install-sh; then
2517     ac_aux_dir=$ac_dir
2518     ac_install_sh="$ac_aux_dir/install-sh -c"
2519     break
2520   elif test -f $ac_dir/install.sh; then
2521     ac_aux_dir=$ac_dir
2522     ac_install_sh="$ac_aux_dir/install.sh -c"
2523     break
2524   elif test -f $ac_dir/shtool; then
2525     ac_aux_dir=$ac_dir
2526     ac_install_sh="$ac_aux_dir/shtool install -c"
2527     break
2528   fi
2529 done
2530 if test -z "$ac_aux_dir"; then
2531   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2532 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2533    { (exit 1); exit 1; }; }
2534 fi
2535 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2536 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2537 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2538
2539 # Make sure we can run config.sub.
2540 $ac_config_sub sun4 >/dev/null 2>&1 ||
2541   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2542 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2543    { (exit 1); exit 1; }; }
2544
2545 echo "$as_me:$LINENO: checking build system type" >&5
2546 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2547 if test "${ac_cv_build+set}" = set; then
2548   echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550   ac_cv_build_alias=$build_alias
2551 test -z "$ac_cv_build_alias" &&
2552   ac_cv_build_alias=`$ac_config_guess`
2553 test -z "$ac_cv_build_alias" &&
2554   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2555 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2556    { (exit 1); exit 1; }; }
2557 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2558   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2559 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2560    { (exit 1); exit 1; }; }
2561
2562 fi
2563 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2564 echo "${ECHO_T}$ac_cv_build" >&6
2565 build=$ac_cv_build
2566 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2567 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2568 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2569
2570
2571 echo "$as_me:$LINENO: checking host system type" >&5
2572 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2573 if test "${ac_cv_host+set}" = set; then
2574   echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576   ac_cv_host_alias=$host_alias
2577 test -z "$ac_cv_host_alias" &&
2578   ac_cv_host_alias=$ac_cv_build_alias
2579 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2580   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2581 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2582    { (exit 1); exit 1; }; }
2583
2584 fi
2585 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2586 echo "${ECHO_T}$ac_cv_host" >&6
2587 host=$ac_cv_host
2588 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2589 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2590 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2591
2592
2593 echo "$as_me:$LINENO: checking target system type" >&5
2594 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2595 if test "${ac_cv_target+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   ac_cv_target_alias=$target_alias
2599 test "x$ac_cv_target_alias" = "x" &&
2600   ac_cv_target_alias=$ac_cv_host_alias
2601 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2602   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2603 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2604    { (exit 1); exit 1; }; }
2605
2606 fi
2607 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2608 echo "${ECHO_T}$ac_cv_target" >&6
2609 target=$ac_cv_target
2610 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2611 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2612 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2613
2614
2615 # The aliases save the names the user supplied, while $host etc.
2616 # will get canonicalized.
2617 test -n "$target_alias" &&
2618   test "$program_prefix$program_suffix$program_transform_name" = \
2619     NONENONEs,x,x, &&
2620   program_prefix=${target_alias}-
2621
2622 echo "$as_me:$LINENO: checking for library combo" >&5
2623 echo $ECHO_N "checking for library combo... $ECHO_C" >&6
2624
2625 # Check whether --with-library-combo or --without-library-combo was given.
2626 if test "${with_library_combo+set}" = set; then
2627   withval="$with_library_combo"
2628   ac_cv_library_combo=$withval
2629 else
2630   ac_cv_library_combo=$ac_cv_library_combo
2631
2632 fi;
2633
2634 if test "$ac_cv_library_combo" = ""; then
2635   case "$host_os" in
2636     darwin*)   ac_cv_library_combo=apple-apple-apple ;;
2637     nextstep4) ac_cv_library_combo=nx-nx-nx          ;;
2638     openstep4) ac_cv_library_combo=nx-nx-nx          ;;
2639     *)         ac_cv_library_combo=gnu-gnu-gnu       ;;
2640   esac
2641 fi
2642
2643 case "$ac_cv_library_combo" in
2644   apple) ac_cv_library_combo=apple-apple-apple ;;
2645   gnu)   ac_cv_library_combo=gnu-gnu-gnu ;;
2646   nx)    ac_cv_library_combo=nx-nx-nx ;;
2647 esac
2648
2649
2650 echo "$as_me:$LINENO: result: $ac_cv_library_combo" >&5
2651 echo "${ECHO_T}$ac_cv_library_combo" >&6
2652
2653 OBJC_RUNTIME_LIB=`echo $ac_cv_library_combo | awk -F- '{print $1}'`
2654
2655 #--------------------------------------------------------------------
2656 # Check if we are using Apple cc
2657 #--------------------------------------------------------------------
2658 cc_cppprecomp=0
2659 cc_byndle=0
2660 echo "$as_me:$LINENO: checking for apple compiler flags" >&5
2661 echo $ECHO_N "checking for apple compiler flags... $ECHO_C" >&6
2662 cc_cppprecomp=`${CC} -no-cpp-precomp 2>&1 | grep -c "unrecognized"`
2663 cc_bundle=`${CC} -bundle 2>&1 | grep -c "couldn"`
2664 # 0 means we have the flag
2665 if test $cc_cppprecomp = 0; then
2666   cc_cppprecomp=yes
2667 else
2668   cc_cppprecomp=no
2669 fi
2670 if test $cc_bundle = 0; then
2671   cc_bundle=yes
2672 else
2673   cc_bundle=no
2674 fi
2675 echo "$as_me:$LINENO: result: $cc_bundle" >&5
2676 echo "${ECHO_T}$cc_bundle" >&6
2677
2678
2679
2680 #--------------------------------------------------------------------
2681 # specific target_os options
2682 #--------------------------------------------------------------------
2683 case "$target_os" in
2684   freebsd* | openbsd* )
2685                 INCLUDES="$INCLUDES -I/usr/local/include"
2686                 LIB_DIR="$LIB_DIR -L/usr/local/lib";;
2687   netbsd*)      INCLUDES="$INCLUDES -I/usr/pkg/include"
2688                 LIB_DIR="$LIB_DIR -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";;
2689 esac
2690
2691 #--------------------------------------------------------------------
2692 # Determine the host, build, and target systems
2693 #--------------------------------------------------------------------
2694 case $host_os in
2695   *cygwin*  ) CYGWIN=yes;;
2696   *mingw32* ) MINGW32=yes;;
2697           * ) MINGW32=no
2698               CYGWIN=no;;
2699 esac
2700
2701
2702
2703
2704 if test "$MINGW32" = yes; then
2705   echo "hosted on mingw32 .."
2706   export INSTALL=install
2707   export SHELL=sh
2708   export CC=${CC:-gcc}
2709   export AR=${AR:-ar}
2710   export RANLIB=${RANLIB:-ranlib}
2711   export DLLTOOL=${DLLTOOL:-dlltool}
2712 elif test "$CYGWIN" = yes; then
2713   echo "hosted on cygwin .."
2714   export CC=${CC:-gcc}
2715   export AR=${AR:-ar}
2716   export RANLIB=${RANLIB:-ranlib}
2717   export DLLTOOL=${DLLTOOL:-dlltool}
2718 fi
2719
2720 #--------------------------------------------------------------------
2721 # Find the binary and compile tools
2722 #--------------------------------------------------------------------
2723 if test "x$target" != "x$host"; then
2724   echo "cross compiling from $host to $target .."
2725   cross_compiling="yes"
2726   # Extract the first word of ""${targetArgument}-gcc"", so it can be a program name with args.
2727 set dummy "${targetArgument}-gcc"; ac_word=$2
2728 echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731   echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733   if test -n "$CC"; then
2734   ac_cv_prog_CC="$CC" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739   IFS=$as_save_IFS
2740   test -z "$as_dir" && as_dir=.
2741   for ac_exec_ext in '' $ac_executable_extensions; do
2742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743     ac_cv_prog_CC="                         "${targetArgument}-gcc""
2744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745     break 2
2746   fi
2747 done
2748 done
2749
2750   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
2751 fi
2752 fi
2753 CC=$ac_cv_prog_CC
2754 if test -n "$CC"; then
2755   echo "$as_me:$LINENO: result: $CC" >&5
2756 echo "${ECHO_T}$CC" >&6
2757 else
2758   echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6
2760 fi
2761
2762   # Extract the first word of ""${targetArgument}-ranlib"", so it can be a program name with args.
2763 set dummy "${targetArgument}-ranlib"; ac_word=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_RANLIB+set}" = set; then
2767   echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769   if test -n "$RANLIB"; then
2770   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775   IFS=$as_save_IFS
2776   test -z "$as_dir" && as_dir=.
2777   for ac_exec_ext in '' $ac_executable_extensions; do
2778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779     ac_cv_prog_RANLIB="                         "${targetArgument}-ranlib""
2780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781     break 2
2782   fi
2783 done
2784 done
2785
2786   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib"
2787 fi
2788 fi
2789 RANLIB=$ac_cv_prog_RANLIB
2790 if test -n "$RANLIB"; then
2791   echo "$as_me:$LINENO: result: $RANLIB" >&5
2792 echo "${ECHO_T}$RANLIB" >&6
2793 else
2794   echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2796 fi
2797
2798   # Extract the first word of ""${targetArgument}-ar"", so it can be a program name with args.
2799 set dummy "${targetArgument}-ar"; ac_word=$2
2800 echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2802 if test "${ac_cv_prog_AR+set}" = set; then
2803   echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805   if test -n "$AR"; then
2806   ac_cv_prog_AR="$AR" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813   for ac_exec_ext in '' $ac_executable_extensions; do
2814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815     ac_cv_prog_AR="                         "${targetArgument}-ar""
2816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820 done
2821
2822   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2823 fi
2824 fi
2825 AR=$ac_cv_prog_AR
2826 if test -n "$AR"; then
2827   echo "$as_me:$LINENO: result: $AR" >&5
2828 echo "${ECHO_T}$AR" >&6
2829 else
2830   echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832 fi
2833
2834   # Extract the first word of ""${targetArgument}-dlltool"", so it can be a program name with args.
2835 set dummy "${targetArgument}-dlltool"; ac_word=$2
2836 echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   if test -n "$DLLTOOL"; then
2842   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849   for ac_exec_ext in '' $ac_executable_extensions; do
2850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851     ac_cv_prog_DLLTOOL="                         "${targetArgument}-dlltool""
2852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853     break 2
2854   fi
2855 done
2856 done
2857
2858   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
2859 fi
2860 fi
2861 DLLTOOL=$ac_cv_prog_DLLTOOL
2862 if test -n "$DLLTOOL"; then
2863   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
2864 echo "${ECHO_T}$DLLTOOL" >&6
2865 else
2866   echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6
2868 fi
2869
2870 else
2871   # Extract the first word of "ar", so it can be a program name with args.
2872 set dummy ar; ac_word=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_AR+set}" = set; then
2876   echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878   if test -n "$AR"; then
2879   ac_cv_prog_AR="$AR" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   test -z "$as_dir" && as_dir=.
2886   for ac_exec_ext in '' $ac_executable_extensions; do
2887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888     ac_cv_prog_AR="ar"
2889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890     break 2
2891   fi
2892 done
2893 done
2894
2895 fi
2896 fi
2897 AR=$ac_cv_prog_AR
2898 if test -n "$AR"; then
2899   echo "$as_me:$LINENO: result: $AR" >&5
2900 echo "${ECHO_T}$AR" >&6
2901 else
2902   echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2904 fi
2905
2906   # Extract the first word of "dlltool", so it can be a program name with args.
2907 set dummy dlltool; ac_word=$2
2908 echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2910 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913   if test -n "$DLLTOOL"; then
2914   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919   IFS=$as_save_IFS
2920   test -z "$as_dir" && as_dir=.
2921   for ac_exec_ext in '' $ac_executable_extensions; do
2922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923     ac_cv_prog_DLLTOOL="dlltool"
2924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925     break 2
2926   fi
2927 done
2928 done
2929
2930 fi
2931 fi
2932 DLLTOOL=$ac_cv_prog_DLLTOOL
2933 if test -n "$DLLTOOL"; then
2934   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
2935 echo "${ECHO_T}$DLLTOOL" >&6
2936 else
2937   echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2939 fi
2940
2941   if test -n "$ac_tool_prefix"; then
2942   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2944 echo "$as_me:$LINENO: checking for $ac_word" >&5
2945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2946 if test "${ac_cv_prog_RANLIB+set}" = set; then
2947   echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949   if test -n "$RANLIB"; then
2950   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955   IFS=$as_save_IFS
2956   test -z "$as_dir" && as_dir=.
2957   for ac_exec_ext in '' $ac_executable_extensions; do
2958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961     break 2
2962   fi
2963 done
2964 done
2965
2966 fi
2967 fi
2968 RANLIB=$ac_cv_prog_RANLIB
2969 if test -n "$RANLIB"; then
2970   echo "$as_me:$LINENO: result: $RANLIB" >&5
2971 echo "${ECHO_T}$RANLIB" >&6
2972 else
2973   echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2975 fi
2976
2977 fi
2978 if test -z "$ac_cv_prog_RANLIB"; then
2979   ac_ct_RANLIB=$RANLIB
2980   # Extract the first word of "ranlib", so it can be a program name with args.
2981 set dummy ranlib; ac_word=$2
2982 echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if test -n "$ac_ct_RANLIB"; then
2988   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993   IFS=$as_save_IFS
2994   test -z "$as_dir" && as_dir=.
2995   for ac_exec_ext in '' $ac_executable_extensions; do
2996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997     ac_cv_prog_ac_ct_RANLIB="ranlib"
2998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999     break 2
3000   fi
3001 done
3002 done
3003
3004   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3005 fi
3006 fi
3007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3008 if test -n "$ac_ct_RANLIB"; then
3009   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3010 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3011 else
3012   echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3014 fi
3015
3016   RANLIB=$ac_ct_RANLIB
3017 else
3018   RANLIB="$ac_cv_prog_RANLIB"
3019 fi
3020
3021 fi
3022
3023 # Find a good install program.  We prefer a C program (faster),
3024 # so one script is as good as another.  But avoid the broken or
3025 # incompatible versions:
3026 # SysV /etc/install, /usr/sbin/install
3027 # SunOS /usr/etc/install
3028 # IRIX /sbin/install
3029 # AIX /bin/install
3030 # AmigaOS /C/install, which installs bootblocks on floppy discs
3031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3034 # OS/2's system install, which has a completely different semantic
3035 # ./install, which can be erroneously created by make from ./install.sh.
3036 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3038 if test -z "$INSTALL"; then
3039 if test "${ac_cv_path_install+set}" = set; then
3040   echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047   # Account for people who put trailing slashes in PATH elements.
3048 case $as_dir/ in
3049   ./ | .// | /cC/* | \
3050   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3051   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3052   /usr/ucb/* ) ;;
3053   *)
3054     # OSF1 and SCO ODT 3.0 have their own names for install.
3055     # Don't use installbsd from OSF since it installs stuff as root
3056     # by default.
3057     for ac_prog in ginstall scoinst install; do
3058       for ac_exec_ext in '' $ac_executable_extensions; do
3059         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3060           if test $ac_prog = install &&
3061             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3062             # AIX install.  It has an incompatible calling convention.
3063             :
3064           elif test $ac_prog = install &&
3065             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3066             # program-specific install script used by HP pwplus--don't use.
3067             :
3068           else
3069             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3070             break 3
3071           fi
3072         fi
3073       done
3074     done
3075     ;;
3076 esac
3077 done
3078
3079
3080 fi
3081   if test "${ac_cv_path_install+set}" = set; then
3082     INSTALL=$ac_cv_path_install
3083   else
3084     # As a last resort, use the slow shell script.  We don't cache a
3085     # path for INSTALL within a source directory, because that will
3086     # break other packages using the cache if that directory is
3087     # removed, or if the path is relative.
3088     INSTALL=$ac_install_sh
3089   fi
3090 fi
3091 echo "$as_me:$LINENO: result: $INSTALL" >&5
3092 echo "${ECHO_T}$INSTALL" >&6
3093
3094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3095 # It thinks the first close brace ends the variable substitution.
3096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3097
3098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3099
3100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3101
3102 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3103 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3104 LN_S=$as_ln_s
3105 if test "$LN_S" = "ln -s"; then
3106   echo "$as_me:$LINENO: result: yes" >&5
3107 echo "${ECHO_T}yes" >&6
3108 else
3109   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3110 echo "${ECHO_T}no, using $LN_S" >&6
3111 fi
3112
3113
3114 for ac_prog in gnutar gtar
3115 do
3116   # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_TAR+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   if test -n "$TAR"; then
3124   ac_cv_prog_TAR="$TAR" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131   for ac_exec_ext in '' $ac_executable_extensions; do
3132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133     ac_cv_prog_TAR="$ac_prog"
3134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135     break 2
3136   fi
3137 done
3138 done
3139
3140 fi
3141 fi
3142 TAR=$ac_cv_prog_TAR
3143 if test -n "$TAR"; then
3144   echo "$as_me:$LINENO: result: $TAR" >&5
3145 echo "${ECHO_T}$TAR" >&6
3146 else
3147   echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3149 fi
3150
3151   test -n "$TAR" && break
3152 done
3153 test -n "$TAR" || TAR="tar"
3154
3155
3156 # Check whether --with-tar or --without-tar was given.
3157 if test "${with_tar+set}" = set; then
3158   withval="$with_tar"
3159   TAR="$withval"
3160 fi;
3161
3162 # Extract the first word of "chown", so it can be a program name with args.
3163 set dummy chown; ac_word=$2
3164 echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_prog_CHOWN+set}" = set; then
3167   echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169   if test -n "$CHOWN"; then
3170   ac_cv_prog_CHOWN="$CHOWN" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175   IFS=$as_save_IFS
3176   test -z "$as_dir" && as_dir=.
3177   for ac_exec_ext in '' $ac_executable_extensions; do
3178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179     ac_cv_prog_CHOWN="chown"
3180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181     break 2
3182   fi
3183 done
3184 done
3185
3186   test -z "$ac_cv_prog_CHOWN" && ac_cv_prog_CHOWN="none"
3187 fi
3188 fi
3189 CHOWN=$ac_cv_prog_CHOWN
3190 if test -n "$CHOWN"; then
3191   echo "$as_me:$LINENO: result: $CHOWN" >&5
3192 echo "${ECHO_T}$CHOWN" >&6
3193 else
3194   echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3196 fi
3197
3198 if test "$MINGW32" = no; then
3199   if test "$CHOWN" = "none"; then
3200     { { echo "$as_me:$LINENO: error: \"Could not find chown.\"" >&5
3201 echo "$as_me: error: \"Could not find chown.\"" >&2;}
3202    { (exit 1); exit 1; }; };
3203   fi
3204 fi
3205
3206 #-------------------------------------------------------------------
3207 # GNUstep specific options follow
3208 #-------------------------------------------------------------------
3209
3210 #--------------------------------------------------------------------
3211 # The GNUstep root directory.
3212 # The user should have the GNUSTEP_SYSTEM_ROOT environment variable
3213 # defined, but if not then we have a global default.
3214 # Also test for the C: directory, which means we're on Windows
3215 #--------------------------------------------------------------------
3216 echo "$as_me:$LINENO: checking for GNUSTEP_SYSTEM_ROOT to use" >&5
3217 echo $ECHO_N "checking for GNUSTEP_SYSTEM_ROOT to use... $ECHO_C" >&6
3218
3219 if test "x$prefix" = "xNONE"; then
3220   prefix="$ac_default_prefix" ;
3221 fi
3222
3223 # Check whether --with-system-root or --without-system-root was given.
3224 if test "${with_system_root+set}" = set; then
3225   withval="$with_system_root"
3226   ac_cv_system_root="$withval"
3227 else
3228   ac_cv_system_root=yes
3229 fi;
3230
3231 GNUSTEP_ROOT="$prefix"
3232 root_prefix='${prefix}'
3233 if test $ac_cv_system_root = yes; then
3234   if test "x`basename $prefix`" = xSystem; then
3235     GNUSTEP_ROOT=`dirname $prefix`
3236   else
3237     if test "x$prefix" = "x/"; then
3238       prefix=/System
3239     else
3240       prefix="$prefix/System"
3241     fi
3242   fi
3243   root_prefix='${prefix}/..'
3244 fi
3245
3246
3247 echo "$as_me:$LINENO: result: $prefix" >&5
3248 echo "${ECHO_T}$prefix" >&6
3249
3250 # Makefiles directory location is in a bit of flux now. To keep the
3251 # Makefiles dir in the previous location, reset this variable to
3252 # 'Makefiles' and regenerate configure. Note this doesn't change all
3253 # occurances.
3254 MAKEFILES_SUFFIX=Library/Makefiles
3255
3256
3257 # HOST_INSTALL is the name of the install program in config.make so set it up
3258 # to point to the install-sh script in the GNUstep tree if no system install is
3259 # found.
3260
3261 if test "$INSTALL" = "$ac_install_sh"; then
3262   HOST_INSTALL="$prefix/$MAKEFILES_SUFFIX/$INSTALL"
3263 else
3264   HOST_INSTALL="$INSTALL"
3265 fi
3266
3267 #--------------------------------------------------------------------
3268 # Process --with-defaults-root, --with-user-root,
3269 # --with-local-root and --with-network-root
3270 #--------------------------------------------------------------------
3271 echo "$as_me:$LINENO: checking for GNUSTEP_LOCAL_ROOT to use" >&5
3272 echo $ECHO_N "checking for GNUSTEP_LOCAL_ROOT to use... $ECHO_C" >&6
3273
3274 # Check whether --with-local-root or --without-local-root was given.
3275 if test "${with_local_root+set}" = set; then
3276   withval="$with_local_root"
3277   GNUSTEP_LOCAL_ROOT="$withval"
3278 else
3279   GNUSTEP_LOCAL_ROOT="$GNUSTEP_ROOT/Local"
3280
3281 fi;
3282 echo "$as_me:$LINENO: result: $GNUSTEP_LOCAL_ROOT" >&5
3283 echo "${ECHO_T}$GNUSTEP_LOCAL_ROOT" >&6
3284
3285 echo "$as_me:$LINENO: checking for GNUSTEP_NETWORK_ROOT to use" >&5
3286 echo $ECHO_N "checking for GNUSTEP_NETWORK_ROOT to use... $ECHO_C" >&6
3287
3288 # Check whether --with-network-root or --without-network-root was given.
3289 if test "${with_network_root+set}" = set; then
3290   withval="$with_network_root"
3291   GNUSTEP_NETWORK_ROOT="$withval"
3292 else
3293   # By default we disable network root, by setting GNUSTEP_NETWORK_ROOT
3294 # to be the same as GNUSTEP_LOCAL_ROOT.  GNUSTEP_NETWORK_ROOT is very
3295 # rarely used, and most users prefer simpler systems with shorter
3296 # paths and shorter command lines.  To turn on GNUSTEP_NETWORK_ROOT
3297 # again, you can use the --with-network-root=xxx option; pass
3298 # something like --with-network-root=/usr/GNUstep/Network on the
3299 # configure command line.
3300 GNUSTEP_NETWORK_ROOT="$GNUSTEP_LOCAL_ROOT"
3301
3302 fi;
3303 echo "$as_me:$LINENO: result: $GNUSTEP_NETWORK_ROOT" >&5
3304 echo "${ECHO_T}$GNUSTEP_NETWORK_ROOT" >&6
3305
3306
3307
3308
3309 echo "$as_me:$LINENO: checking for GNUSTEP_USER_ROOT to use" >&5
3310 echo $ECHO_N "checking for GNUSTEP_USER_ROOT to use... $ECHO_C" >&6
3311
3312 # Check whether --with-user-root or --without-user-root was given.
3313 if test "${with_user_root+set}" = set; then
3314   withval="$with_user_root"
3315   GNUSTEP_USER_ROOT="$withval"
3316 else
3317   # The default is to have user roots in ~/GNUstep
3318 GNUSTEP_USER_ROOT="~/GNUstep"
3319
3320 fi;
3321 echo "$as_me:$LINENO: result: $GNUSTEP_USER_ROOT" >&5
3322 echo "${ECHO_T}$GNUSTEP_USER_ROOT" >&6
3323
3324
3325 #--------------------------------------------------------------------
3326 # Is the system flattened?
3327 #--------------------------------------------------------------------
3328 echo "$as_me:$LINENO: checking for flattened directory structure" >&5
3329 echo $ECHO_N "checking for flattened directory structure... $ECHO_C" >&6
3330 # Check whether --enable-flattened or --disable-flattened was given.
3331 if test "${enable_flattened+set}" = set; then
3332   enableval="$enable_flattened"
3333   ac_cv_flattened=$enableval
3334 else
3335   ac_cv_flattened="undefined"
3336 fi;
3337
3338 if test "$ac_cv_flattened" = "no"; then
3339   GNUSTEP_FLATTENED=;
3340 else
3341   GNUSTEP_FLATTENED=yes;
3342 fi
3343
3344
3345 if test "$GNUSTEP_FLATTENED" = "yes"; then
3346   echo "$as_me:$LINENO: result: yes" >&5
3347 echo "${ECHO_T}yes" >&6;
3348 else
3349   echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6;
3351 fi
3352
3353
3354 #--------------------------------------------------------------------
3355 # Is the system multi-platform?
3356 #--------------------------------------------------------------------
3357 #
3358 # Multi-platform means that GNUstep.sh will determine the host
3359 # platform (by running config.guess) each time that it is sourced.
3360 # This is good if you are sharing your GNUstep.sh across your network
3361 # (for example, mounting the makefiles via NFS), but it requires you
3362 # to be able to run config.guess on your machine(s), which usually
3363 # requires a development environment (compiler, libc etc).
3364 #
3365 # The default instead is not using multi-platform, which means the
3366 # local host os, cpu and version is hardcoded in GNUstep.sh.  This
3367 # works nicely for a single machine using this gnustep-make
3368 # installation, and it works even if you don't have development
3369 # packages (gcc, binutils, libc-dev etc) installed.  We had to make
3370 # this the default after end-users (with no development packages
3371 # installed) complained that binary packages wouldn't work (and the
3372 # reason turned out to be that GNUstep.sh was running config.guess
3373 # which was returning the wrong platform because the development
3374 # tools needed/used to determine the platform were not available).
3375 #
3376 # Unless you know what you are doing, stick with the default, which is
3377 # also much faster when sourcing GNUstep.sh.
3378 #
3379 # Check whether --enable-multi-platform or --disable-multi-platform was given.
3380 if test "${enable_multi_platform+set}" = set; then
3381   enableval="$enable_multi_platform"
3382   ac_cv_multi_platform=$enableval
3383 else
3384   ac_cv_multi_platform="undefined"
3385 fi;
3386
3387 if test "$ac_cv_multi_platform" = "yes"; then
3388   GNUSTEP_MULTI_PLATFORM=yes;
3389 else
3390   GNUSTEP_MULTI_PLATFORM=;
3391 fi
3392
3393
3394 #--------------------------------------------------------------------
3395 # Build backend bundles (on by default)
3396 #--------------------------------------------------------------------
3397 # Check whether --enable-backend-bundle or --disable-backend-bundle was given.
3398 if test "${enable_backend_bundle+set}" = set; then
3399   enableval="$enable_backend_bundle"
3400   ac_cv_backend=$enableval
3401 else
3402   ac_cv_backend="yes"
3403 fi;
3404
3405 if test "$ac_cv_backend" = "yes"; then
3406   BACKEND_BUNDLE=yes;
3407 else
3408   BACKEND_BUNDLE=;
3409 fi
3410
3411
3412 #--------------------------------------------------------------------
3413 # Miscellaneous flags and setup
3414 #--------------------------------------------------------------------
3415 # Strip '-g' off of CFLAGS, since debug=yes adds that anyway
3416 CFLAGS=`echo $CFLAGS | sed -e 's/-g //'`
3417
3418 # Set location of GNUstep dirs for later use
3419 if test "$GNUSTEP_FLATTENED" = yes; then
3420   GNUSTEP_LDIR="$prefix/Library/Libraries"
3421   GNUSTEP_HDIR="$prefix/Library/Headers"
3422 else
3423   clean_target_os=`$srcdir/clean_os.sh $target_os`
3424   clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu`
3425   obj_dir="$clean_target_cpu/$clean_target_os"
3426   GNUSTEP_LDIR="$prefix/Library/Libraries/$obj_dir"
3427   GNUSTEP_HDIR="$prefix/Library/Headers/${ac_cv_library_combo}"
3428 fi
3429
3430 # Check to see if the libobjc library is in our GNUSTEP_SYSTEM_ROOT.
3431 # If so, there are probably other libraries that we want there also, so
3432 # leave the proper includes in CPPFLAGS and LDFLAGS
3433 echo "$as_me:$LINENO: checking for custom shared objc library" >&5
3434 echo $ECHO_N "checking for custom shared objc library... $ECHO_C" >&6
3435 if test "${gs_cv_objc_libdir+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   gs_cv_objc_libdir=NONE
3439 if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
3440   if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a"; then
3441     gs_cv_objc_libdir="$GNUSTEP_LDIR"
3442   else
3443     gs_cv_objc_libdir=NONE
3444   fi
3445 fi
3446 #gcc_shared_libobjc=`gcc -print-file-name=libobjc.so`
3447 #if test -f "$gcc_shared_libobjc"; then
3448 #  gs_cv_objc_libdir=`dirname $gcc_shared_libobjc`
3449 #fi
3450
3451 fi
3452
3453 echo "$as_me:$LINENO: result: $gs_cv_objc_libdir" >&5
3454 echo "${ECHO_T}$gs_cv_objc_libdir" >&6
3455
3456 # The following are needed to compile the test programs
3457 if test "$gs_cv_objc_libdir" = "$GNUSTEP_LDIR"; then
3458   if test "$GNUSTEP_FLATTENED" = yes; then
3459     OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers"
3460   else
3461     OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers/${ac_cv_library_combo}"
3462   fi
3463   OBJC_LDFLAGS="$LDFLAGS $LIB_DIR -L$gs_cv_objc_libdir"
3464 fi
3465
3466 # And the following to execute them
3467 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gs_cv_objc_libdir"
3468 export LD_LIBRARY_PATH
3469
3470 #--------------------------------------------------------------------
3471 # Miscellaneous headers (only used for compiling which_lib.c and user_home.c)
3472 #--------------------------------------------------------------------
3473
3474
3475
3476
3477
3478
3479 ac_header_dirent=no
3480 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3481   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3482 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3483 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487   cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h.  */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h.  */
3493 #include <sys/types.h>
3494 #include <$ac_hdr>
3495
3496 int
3497 main ()
3498 {
3499 if ((DIR *) 0)
3500 return 0;
3501   ;
3502   return 0;
3503 }
3504 _ACEOF
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507   (eval $ac_compile) 2>conftest.er1
3508   ac_status=$?
3509   grep -v '^ *+' conftest.er1 >conftest.err
3510   rm -f conftest.er1
3511   cat conftest.err >&5
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); } &&
3514          { ac_try='test -z "$ac_c_werror_flag"
3515                          || test ! -s conftest.err'
3516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517   (eval $ac_try) 2>&5
3518   ac_status=$?
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); }; } &&
3521          { ac_try='test -s conftest.$ac_objext'
3522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523   (eval $ac_try) 2>&5
3524   ac_status=$?
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); }; }; then
3527   eval "$as_ac_Header=yes"
3528 else
3529   echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 eval "$as_ac_Header=no"
3533 fi
3534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535 fi
3536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3539   cat >>confdefs.h <<_ACEOF
3540 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3541 _ACEOF
3542
3543 ac_header_dirent=$ac_hdr; break
3544 fi
3545
3546 done
3547 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3548 if test $ac_header_dirent = dirent.h; then
3549   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3550 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3551 if test "${ac_cv_search_opendir+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   ac_func_search_save_LIBS=$LIBS
3555 ac_cv_search_opendir=no
3556 cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562
3563 /* Override any gcc2 internal prototype to avoid an error.  */
3564 #ifdef __cplusplus
3565 extern "C"
3566 #endif
3567 /* We use char because int might match the return type of a gcc2
3568    builtin and then its argument prototype would still apply.  */
3569 char opendir ();
3570 int
3571 main ()
3572 {
3573 opendir ();
3574   ;
3575   return 0;
3576 }
3577 _ACEOF
3578 rm -f conftest.$ac_objext conftest$ac_exeext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3580   (eval $ac_link) 2>conftest.er1
3581   ac_status=$?
3582   grep -v '^ *+' conftest.er1 >conftest.err
3583   rm -f conftest.er1
3584   cat conftest.err >&5
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } &&
3587          { ac_try='test -z "$ac_c_werror_flag"
3588                          || test ! -s conftest.err'
3589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590   (eval $ac_try) 2>&5
3591   ac_status=$?
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); }; } &&
3594          { ac_try='test -s conftest$ac_exeext'
3595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596   (eval $ac_try) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); }; }; then
3600   ac_cv_search_opendir="none required"
3601 else
3602   echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 fi
3606 rm -f conftest.err conftest.$ac_objext \
3607       conftest$ac_exeext conftest.$ac_ext
3608 if test "$ac_cv_search_opendir" = no; then
3609   for ac_lib in dir; do
3610     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3611     cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h.  */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h.  */
3617
3618 /* Override any gcc2 internal prototype to avoid an error.  */
3619 #ifdef __cplusplus
3620 extern "C"
3621 #endif
3622 /* We use char because int might match the return type of a gcc2
3623    builtin and then its argument prototype would still apply.  */
3624 char opendir ();
3625 int
3626 main ()
3627 {
3628 opendir ();
3629   ;
3630   return 0;
3631 }
3632 _ACEOF
3633 rm -f conftest.$ac_objext conftest$ac_exeext
3634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3635   (eval $ac_link) 2>conftest.er1
3636   ac_status=$?
3637   grep -v '^ *+' conftest.er1 >conftest.err
3638   rm -f conftest.er1
3639   cat conftest.err >&5
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); } &&
3642          { ac_try='test -z "$ac_c_werror_flag"
3643                          || test ! -s conftest.err'
3644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645   (eval $ac_try) 2>&5
3646   ac_status=$?
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }; } &&
3649          { ac_try='test -s conftest$ac_exeext'
3650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651   (eval $ac_try) 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); }; }; then
3655   ac_cv_search_opendir="-l$ac_lib"
3656 break
3657 else
3658   echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 fi
3662 rm -f conftest.err conftest.$ac_objext \
3663       conftest$ac_exeext conftest.$ac_ext
3664   done
3665 fi
3666 LIBS=$ac_func_search_save_LIBS
3667 fi
3668 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3669 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3670 if test "$ac_cv_search_opendir" != no; then
3671   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3672
3673 fi
3674
3675 else
3676   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3677 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3678 if test "${ac_cv_search_opendir+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   ac_func_search_save_LIBS=$LIBS
3682 ac_cv_search_opendir=no
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h.  */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h.  */
3689
3690 /* Override any gcc2 internal prototype to avoid an error.  */
3691 #ifdef __cplusplus
3692 extern "C"
3693 #endif
3694 /* We use char because int might match the return type of a gcc2
3695    builtin and then its argument prototype would still apply.  */
3696 char opendir ();
3697 int
3698 main ()
3699 {
3700 opendir ();
3701   ;
3702   return 0;
3703 }
3704 _ACEOF
3705 rm -f conftest.$ac_objext conftest$ac_exeext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707   (eval $ac_link) 2>conftest.er1
3708   ac_status=$?
3709   grep -v '^ *+' conftest.er1 >conftest.err
3710   rm -f conftest.er1
3711   cat conftest.err >&5
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } &&
3714          { ac_try='test -z "$ac_c_werror_flag"
3715                          || test ! -s conftest.err'
3716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717   (eval $ac_try) 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); }; } &&
3721          { ac_try='test -s conftest$ac_exeext'
3722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723   (eval $ac_try) 2>&5
3724   ac_status=$?
3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726   (exit $ac_status); }; }; then
3727   ac_cv_search_opendir="none required"
3728 else
3729   echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 fi
3733 rm -f conftest.err conftest.$ac_objext \
3734       conftest$ac_exeext conftest.$ac_ext
3735 if test "$ac_cv_search_opendir" = no; then
3736   for ac_lib in x; do
3737     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3738     cat >conftest.$ac_ext <<_ACEOF
3739 /* confdefs.h.  */
3740 _ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h.  */
3744
3745 /* Override any gcc2 internal prototype to avoid an error.  */
3746 #ifdef __cplusplus
3747 extern "C"
3748 #endif
3749 /* We use char because int might match the return type of a gcc2
3750    builtin and then its argument prototype would still apply.  */
3751 char opendir ();
3752 int
3753 main ()
3754 {
3755 opendir ();
3756   ;
3757   return 0;
3758 }
3759 _ACEOF
3760 rm -f conftest.$ac_objext conftest$ac_exeext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3762   (eval $ac_link) 2>conftest.er1
3763   ac_status=$?
3764   grep -v '^ *+' conftest.er1 >conftest.err
3765   rm -f conftest.er1
3766   cat conftest.err >&5
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); } &&
3769          { ac_try='test -z "$ac_c_werror_flag"
3770                          || test ! -s conftest.err'
3771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772   (eval $ac_try) 2>&5
3773   ac_status=$?
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); }; } &&
3776          { ac_try='test -s conftest$ac_exeext'
3777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778   (eval $ac_try) 2>&5
3779   ac_status=$?
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); }; }; then
3782   ac_cv_search_opendir="-l$ac_lib"
3783 break
3784 else
3785   echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 fi
3789 rm -f conftest.err conftest.$ac_objext \
3790       conftest$ac_exeext conftest.$ac_ext
3791   done
3792 fi
3793 LIBS=$ac_func_search_save_LIBS
3794 fi
3795 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3796 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3797 if test "$ac_cv_search_opendir" != no; then
3798   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3799
3800 fi
3801
3802 fi
3803
3804
3805 echo "$as_me:$LINENO: checking for egrep" >&5
3806 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3807 if test "${ac_cv_prog_egrep+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3811     then ac_cv_prog_egrep='grep -E'
3812     else ac_cv_prog_egrep='egrep'
3813     fi
3814 fi
3815 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3816 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3817  EGREP=$ac_cv_prog_egrep
3818
3819
3820 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3822 if test "${ac_cv_header_stdc+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825   cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h.  */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h.  */
3831 #include <stdlib.h>
3832 #include <stdarg.h>
3833 #include <string.h>
3834 #include <float.h>
3835
3836 int
3837 main ()
3838 {
3839
3840   ;
3841   return 0;
3842 }
3843 _ACEOF
3844 rm -f conftest.$ac_objext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846   (eval $ac_compile) 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } &&
3853          { ac_try='test -z "$ac_c_werror_flag"
3854                          || test ! -s conftest.err'
3855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856   (eval $ac_try) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; } &&
3860          { ac_try='test -s conftest.$ac_objext'
3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862   (eval $ac_try) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   ac_cv_header_stdc=yes
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 ac_cv_header_stdc=no
3872 fi
3873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874
3875 if test $ac_cv_header_stdc = yes; then
3876   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3877   cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h.  */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h.  */
3883 #include <string.h>
3884
3885 _ACEOF
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887   $EGREP "memchr" >/dev/null 2>&1; then
3888   :
3889 else
3890   ac_cv_header_stdc=no
3891 fi
3892 rm -f conftest*
3893
3894 fi
3895
3896 if test $ac_cv_header_stdc = yes; then
3897   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3898   cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h.  */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h.  */
3904 #include <stdlib.h>
3905
3906 _ACEOF
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908   $EGREP "free" >/dev/null 2>&1; then
3909   :
3910 else
3911   ac_cv_header_stdc=no
3912 fi
3913 rm -f conftest*
3914
3915 fi
3916
3917 if test $ac_cv_header_stdc = yes; then
3918   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3919   if test "$cross_compiling" = yes; then
3920   :
3921 else
3922   cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928 #include <ctype.h>
3929 #if ((' ' & 0x0FF) == 0x020)
3930 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3931 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3932 #else
3933 # define ISLOWER(c) \
3934                    (('a' <= (c) && (c) <= 'i') \
3935                      || ('j' <= (c) && (c) <= 'r') \
3936                      || ('s' <= (c) && (c) <= 'z'))
3937 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3938 #endif
3939
3940 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3941 int
3942 main ()
3943 {
3944   int i;
3945   for (i = 0; i < 256; i++)
3946     if (XOR (islower (i), ISLOWER (i))
3947         || toupper (i) != TOUPPER (i))
3948       exit(2);
3949   exit (0);
3950 }
3951 _ACEOF
3952 rm -f conftest$ac_exeext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3954   (eval $ac_link) 2>&5
3955   ac_status=$?
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959   (eval $ac_try) 2>&5
3960   ac_status=$?
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); }; }; then
3963   :
3964 else
3965   echo "$as_me: program exited with status $ac_status" >&5
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 ( exit $ac_status )
3970 ac_cv_header_stdc=no
3971 fi
3972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3973 fi
3974 fi
3975 fi
3976 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3977 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3978 if test $ac_cv_header_stdc = yes; then
3979
3980 cat >>confdefs.h <<\_ACEOF
3981 #define STDC_HEADERS 1
3982 _ACEOF
3983
3984 fi
3985
3986 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3997                   inttypes.h stdint.h unistd.h
3998 do
3999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4000 echo "$as_me:$LINENO: checking for $ac_header" >&5
4001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4003   echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005   cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h.  */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h.  */
4011 $ac_includes_default
4012
4013 #include <$ac_header>
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017   (eval $ac_compile) 2>conftest.er1
4018   ac_status=$?
4019   grep -v '^ *+' conftest.er1 >conftest.err
4020   rm -f conftest.er1
4021   cat conftest.err >&5
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); } &&
4024          { ac_try='test -z "$ac_c_werror_flag"
4025                          || test ! -s conftest.err'
4026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027   (eval $ac_try) 2>&5
4028   ac_status=$?
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); }; } &&
4031          { ac_try='test -s conftest.$ac_objext'
4032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033   (eval $ac_try) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); }; }; then
4037   eval "$as_ac_Header=yes"
4038 else
4039   echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 eval "$as_ac_Header=no"
4043 fi
4044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045 fi
4046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4049   cat >>confdefs.h <<_ACEOF
4050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4051 _ACEOF
4052
4053 fi
4054
4055 done
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070 for ac_header in sys/param.h sys/file.h dir.h string.h stdlib.h sys/types.h             fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h
4071 do
4072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4074   echo "$as_me:$LINENO: checking for $ac_header" >&5
4075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 fi
4079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4081 else
4082   # Is the header compilable?
4083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h.  */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h.  */
4091 $ac_includes_default
4092 #include <$ac_header>
4093 _ACEOF
4094 rm -f conftest.$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096   (eval $ac_compile) 2>conftest.er1
4097   ac_status=$?
4098   grep -v '^ *+' conftest.er1 >conftest.err
4099   rm -f conftest.er1
4100   cat conftest.err >&5
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); } &&
4103          { ac_try='test -z "$ac_c_werror_flag"
4104                          || test ! -s conftest.err'
4105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106   (eval $ac_try) 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; } &&
4110          { ac_try='test -s conftest.$ac_objext'
4111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112   (eval $ac_try) 2>&5
4113   ac_status=$?
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); }; }; then
4116   ac_header_compiler=yes
4117 else
4118   echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4120
4121 ac_header_compiler=no
4122 fi
4123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4125 echo "${ECHO_T}$ac_header_compiler" >&6
4126
4127 # Is the header present?
4128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4130 cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 #include <$ac_header>
4137 _ACEOF
4138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4140   ac_status=$?
4141   grep -v '^ *+' conftest.er1 >conftest.err
4142   rm -f conftest.er1
4143   cat conftest.err >&5
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); } >/dev/null; then
4146   if test -s conftest.err; then
4147     ac_cpp_err=$ac_c_preproc_warn_flag
4148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4149   else
4150     ac_cpp_err=
4151   fi
4152 else
4153   ac_cpp_err=yes
4154 fi
4155 if test -z "$ac_cpp_err"; then
4156   ac_header_preproc=yes
4157 else
4158   echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161   ac_header_preproc=no
4162 fi
4163 rm -f conftest.err conftest.$ac_ext
4164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4165 echo "${ECHO_T}$ac_header_preproc" >&6
4166
4167 # So?  What about this header?
4168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4169   yes:no: )
4170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4174     ac_header_preproc=yes
4175     ;;
4176   no:yes:* )
4177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4189     (
4190       cat <<\_ASBOX
4191 ## ------------------------------------------ ##
4192 ## Report this to the AC_PACKAGE_NAME lists.  ##
4193 ## ------------------------------------------ ##
4194 _ASBOX
4195     ) |
4196       sed "s/^/$as_me: WARNING:     /" >&2
4197     ;;
4198 esac
4199 echo "$as_me:$LINENO: checking for $ac_header" >&5
4200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   eval "$as_ac_Header=\$ac_header_preproc"
4205 fi
4206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4208
4209 fi
4210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4211   cat >>confdefs.h <<_ACEOF
4212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4213 _ACEOF
4214
4215 fi
4216
4217 done
4218
4219
4220
4221
4222
4223
4224 for ac_func in getpwnam getpwuid geteuid getlogin strchr
4225 do
4226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4227 echo "$as_me:$LINENO: checking for $ac_func" >&5
4228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4229 if eval "test \"\${$as_ac_var+set}\" = set"; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h.  */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h.  */
4238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4240 #define $ac_func innocuous_$ac_func
4241
4242 /* System header to define __stub macros and hopefully few prototypes,
4243     which can conflict with char $ac_func (); below.
4244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4245     <limits.h> exists even on freestanding compilers.  */
4246
4247 #ifdef __STDC__
4248 # include <limits.h>
4249 #else
4250 # include <assert.h>
4251 #endif
4252
4253 #undef $ac_func
4254
4255 /* Override any gcc2 internal prototype to avoid an error.  */
4256 #ifdef __cplusplus
4257 extern "C"
4258 {
4259 #endif
4260 /* We use char because int might match the return type of a gcc2
4261    builtin and then its argument prototype would still apply.  */
4262 char $ac_func ();
4263 /* The GNU C library defines this for functions which it implements
4264     to always fail with ENOSYS.  Some functions are actually named
4265     something starting with __ and the normal name is an alias.  */
4266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4267 choke me
4268 #else
4269 char (*f) () = $ac_func;
4270 #endif
4271 #ifdef __cplusplus
4272 }
4273 #endif
4274
4275 int
4276 main ()
4277 {
4278 return f != $ac_func;
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest.$ac_objext conftest$ac_exeext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285   (eval $ac_link) 2>conftest.er1
4286   ac_status=$?
4287   grep -v '^ *+' conftest.er1 >conftest.err
4288   rm -f conftest.er1
4289   cat conftest.err >&5
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } &&
4292          { ac_try='test -z "$ac_c_werror_flag"
4293                          || test ! -s conftest.err'
4294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295   (eval $ac_try) 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); }; } &&
4299          { ac_try='test -s conftest$ac_exeext'
4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301   (eval $ac_try) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; }; then
4305   eval "$as_ac_var=yes"
4306 else
4307   echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 eval "$as_ac_var=no"
4311 fi
4312 rm -f conftest.err conftest.$ac_objext \
4313       conftest$ac_exeext conftest.$ac_ext
4314 fi
4315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4317 if test `eval echo '${'$as_ac_var'}'` = yes; then
4318   cat >>confdefs.h <<_ACEOF
4319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4320 _ACEOF
4321
4322 fi
4323 done
4324
4325
4326 #--------------------------------------------------------------------
4327 # Check if libobjc was compiled with thread support.
4328 #--------------------------------------------------------------------
4329 OBJC_THREAD=
4330
4331 # Check whether --with-thread-lib or --without-thread-lib was given.
4332 if test "${with_thread_lib+set}" = set; then
4333   withval="$with_thread_lib"
4334   OBJC_THREAD=$withval
4335 else
4336   OBJC_THREAD=
4337
4338 fi;
4339
4340
4341 echo "$as_me:$LINENO: checking whether objc has thread support" >&5
4342 echo $ECHO_N "checking whether objc has thread support... $ECHO_C" >&6
4343 saved_CFLAGS="$CFLAGS"
4344 saved_LIBS="$LIBS"
4345 CFLAGS="$CFLAGS -x objective-c -I$srcdir $OBJC_CPPFLAGS $OBJC_LDFLAGS"
4346 if test "$OBJC_RUNTIME_LIB" = "gnu"; then
4347   CFLAGS="$CFLAGS -fgnu-runtime"
4348 fi
4349 if test "$OBJC_RUNTIME_LIB" = "nx"; then
4350   CFLAGS="$CFLAGS -DNeXT_RUNTIME"
4351 fi
4352 if test "$OBJC_RUNTIME_LIB" = "apple"; then
4353   CFLAGS="$CFLAGS -DNeXT_RUNTIME"
4354 fi
4355 if test "$OBJC_THREAD" != ""; then
4356   LIBS="-lobjc $LIBS $OBJC_THREAD"
4357   if test "$cross_compiling" = yes; then
4358   objc_threaded=""
4359 else
4360   cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h.  */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h.  */
4366 #include "config_thread.m"
4367 _ACEOF
4368 rm -f conftest$ac_exeext
4369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4370   (eval $ac_link) 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; }; then
4379   objc_threaded="$OBJC_THREAD"
4380 else
4381   echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 ( exit $ac_status )
4386 objc_threaded=""
4387 fi
4388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4389 fi
4390 elif test "$host_os" = linux-gnu; then
4391   LIBS="-lobjc -lpthread"
4392   if test "$cross_compiling" = yes; then
4393   objc_threaded="-lpthread"
4394 else
4395   cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h.  */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h.  */
4401 #include "config_thread.m"
4402 _ACEOF
4403 rm -f conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405   (eval $ac_link) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410   (eval $ac_try) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; }; then
4414   objc_threaded="-lpthread"
4415 else
4416   echo "$as_me: program exited with status $ac_status" >&5
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 ( exit $ac_status )
4421 objc_threaded=""
4422 fi
4423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4424 fi
4425 elif test "`echo $host_os|sed 's/[0-9].*//'|sed s/elf//`" = freebsd; then
4426   LIBS="-pthread -lobjc"
4427   if test "$cross_compiling" = yes; then
4428   objc_threaded="-pthread"
4429 else
4430   cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h.  */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h.  */
4436 #include "config_thread.m"
4437 _ACEOF
4438 rm -f conftest$ac_exeext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4440   (eval $ac_link) 2>&5
4441   ac_status=$?
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445   (eval $ac_try) 2>&5
4446   ac_status=$?
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); }; }; then
4449   objc_threaded="-pthread"
4450 else
4451   echo "$as_me: program exited with status $ac_status" >&5
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4454
4455 ( exit $ac_status )
4456 objc_threaded=""
4457 fi
4458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4459 fi
4460   if test x"$objc_threaded" = x""; then
4461     LIBS="-lpthread -lobjc"
4462     if test "$cross_compiling" = yes; then
4463   objc_threaded="-lpthread"
4464 else
4465   cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h.  */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h.  */
4471 #include "config_thread.m"
4472 _ACEOF
4473 rm -f conftest$ac_exeext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475   (eval $ac_link) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; }; then
4484   objc_threaded="-lpthread"
4485 else
4486   echo "$as_me: program exited with status $ac_status" >&5
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 ( exit $ac_status )
4491 objc_threaded=""
4492 fi
4493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4494 fi
4495   fi
4496   if test x"$objc_threaded" = x""; then
4497     LIBS="-lobjc -lpcthread"
4498     if test "$cross_compiling" = yes; then
4499   objc_threaded="-lpcthread"
4500 else
4501   cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507 #include "config_thread.m"
4508 _ACEOF
4509 rm -f conftest$ac_exeext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4511   (eval $ac_link) 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516   (eval $ac_try) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }; }; then
4520   objc_threaded="-lpcthread"
4521 else
4522   echo "$as_me: program exited with status $ac_status" >&5
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526 ( exit $ac_status )
4527 objc_threaded=""
4528 fi
4529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4530 fi
4531   fi
4532 elif test "$MINGW32" = yes; then
4533   # Mingw doesn't need anything extra for threads
4534   LIBS="-lobjc $LIBS"
4535   if test "$cross_compiling" = yes; then
4536   objc_threaded="works"
4537 else
4538   cat >conftest.$ac_ext <<_ACEOF
4539 /* confdefs.h.  */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h.  */
4544 #include "config_thread.m"
4545 _ACEOF
4546 rm -f conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548   (eval $ac_link) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553   (eval $ac_try) 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }; }; then
4557   objc_threaded="works"
4558 else
4559   echo "$as_me: program exited with status $ac_status" >&5
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 ( exit $ac_status )
4564 objc_threaded=""
4565 fi
4566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4567 fi
4568 else
4569   LIBS="-lobjc $LIBS"
4570   if test "$cross_compiling" = yes; then
4571   objc_threaded=""
4572 else
4573   cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579 #include "config_thread.m"
4580 _ACEOF
4581 rm -f conftest$ac_exeext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583   (eval $ac_link) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588   (eval $ac_try) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; }; then
4592   objc_threaded="works"
4593 else
4594   echo "$as_me: program exited with status $ac_status" >&5
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598 ( exit $ac_status )
4599 objc_threaded=""
4600 fi
4601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4602 fi
4603   if test x"$objc_threaded" = x""; then
4604     LIBS="-lobjc $saved_LIBS -lpthread "
4605     if test "$cross_compiling" = yes; then
4606   objc_threaded=""
4607 else
4608   cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h.  */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h.  */
4614 #include "config_thread.m"
4615 _ACEOF
4616 rm -f conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618   (eval $ac_link) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   objc_threaded="-lpthread"
4628 else
4629   echo "$as_me: program exited with status $ac_status" >&5
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4632
4633 ( exit $ac_status )
4634 objc_threaded=""
4635 fi
4636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4637 fi
4638   fi
4639   if test x"$objc_threaded" = x""; then
4640     # Solaris, OpenBSD/sparc
4641     LIBS="-lobjc $saved_LIBS -lpthread -lposix4"
4642     if test "$cross_compiling" = yes; then
4643   objc_threaded=""
4644 else
4645   cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h.  */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h.  */
4651 #include "config_thread.m"
4652 _ACEOF
4653 rm -f conftest$ac_exeext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4655   (eval $ac_link) 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; }; then
4664   objc_threaded="-lpthread -lposix4"
4665 else
4666   echo "$as_me: program exited with status $ac_status" >&5
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670 ( exit $ac_status )
4671 objc_threaded=""
4672 fi
4673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4674 fi
4675   fi
4676   if test x"$objc_threaded" = x""; then
4677     LIBS="-lobjc $saved_LIBS -lthread "
4678     if test "$cross_compiling" = yes; then
4679   objc_threaded=""
4680 else
4681   cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h.  */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h.  */
4687 #include "config_thread.m"
4688 _ACEOF
4689 rm -f conftest$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691   (eval $ac_link) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696   (eval $ac_try) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; }; then
4700   objc_threaded="-lthread"
4701 else
4702   echo "$as_me: program exited with status $ac_status" >&5
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 ( exit $ac_status )
4707 objc_threaded=""
4708 fi
4709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4710 fi
4711   fi
4712 fi
4713 if test x"$objc_threaded" = x""; then
4714   echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4716 else
4717   if test x"$objc_threaded" = x"works"; then
4718     objc_threaded=""
4719   fi
4720   echo "$as_me:$LINENO: result: yes: $objc_threaded" >&5
4721 echo "${ECHO_T}yes: $objc_threaded" >&6
4722 fi
4723 ac_cv_objc_threaded="$objc_threaded"
4724
4725
4726
4727 # Do not restore LIBS and CFLAGS yet as we need to test if the
4728 # compiler supports native exceptions.
4729
4730 #--------------------------------------------------------------------
4731 # Check if GCC supports -fobjc-exceptions, and if so, turn it on!
4732 #--------------------------------------------------------------------
4733
4734 # Check whether --enable-native-objc-exceptions or --disable-native-objc-exceptions was given.
4735 if test "${enable_native_objc_exceptions+set}" = set; then
4736   enableval="$enable_native_objc_exceptions"
4737   USE_OBJC_EXCEPTIONS=$enableval
4738 else
4739   USE_OBJC_EXCEPTIONS=no
4740 fi;
4741
4742 echo "$as_me:$LINENO: checking whether we should use native ObjC exceptions" >&5
4743 echo $ECHO_N "checking whether we should use native ObjC exceptions... $ECHO_C" >&6
4744 if test x"$USE_OBJC_EXCEPTIONS" = x"yes"; then
4745   # What we want to do: set USE_OBJC_EXCEPTIONS to yes if we can compile
4746   # something with @try/@catch/@finally in it.
4747   if test ! ${GCC} = "yes" ; then
4748     USE_OBJC_EXCEPTIONS=no
4749     echo "$as_me:$LINENO: result: no: compiler isn't gcc" >&5
4750 echo "${ECHO_T}no: compiler isn't gcc" >&6
4751   else
4752     CFLAGS="$CFLAGS -fobjc-exceptions"
4753     if test "$cross_compiling" = yes; then
4754   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4755 See \`config.log' for more details." >&5
4756 echo "$as_me: error: cannot run test program while cross compiling
4757 See \`config.log' for more details." >&2;}
4758    { (exit 1); exit 1; }; }
4759 else
4760   cat >conftest.$ac_ext <<_ACEOF
4761
4762 #include <stdlib.h>
4763 #include <objc/Object.h>
4764
4765 int main(int argc, char **argv)
4766 {
4767         Object *o=nil;
4768         @try
4769         {
4770                 o=[Object new];
4771                 @throw o;
4772         }
4773         @catch (id foo)
4774         {
4775                 if (o!=foo)
4776                         return 1;
4777         }
4778         return 0;
4779 }
4780
4781 _ACEOF
4782 rm -f conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784   (eval $ac_link) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789   (eval $ac_try) 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; }; then
4793   USE_OBJC_EXCEPTIONS=yes
4794 else
4795   echo "$as_me: program exited with status $ac_status" >&5
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ( exit $ac_status )
4800 USE_OBJC_EXCEPTIONS=no
4801 fi
4802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4803 fi
4804     echo "$as_me:$LINENO: result: $USE_OBJC_EXCEPTIONS" >&5
4805 echo "${ECHO_T}$USE_OBJC_EXCEPTIONS" >&6
4806   fi
4807   if test x$USE_OBJC_EXCEPTIONS = xno; then
4808     { echo "$as_me:$LINENO: Native objective-c exceptions were requested, but the compiler" >&5
4809 echo "$as_me: Native objective-c exceptions were requested, but the compiler" >&6;}
4810     { echo "$as_me:$LINENO: doesn't support them." >&5
4811 echo "$as_me: doesn't support them." >&6;}
4812     { { echo "$as_me:$LINENO: error: compiler doesn't support native objective-c exceptions" >&5
4813 echo "$as_me: error: compiler doesn't support native objective-c exceptions" >&2;}
4814    { (exit 1); exit 1; }; }
4815   fi
4816 else
4817   echo "$as_me:$LINENO: result: not requested by user" >&5
4818 echo "${ECHO_T}not requested by user" >&6
4819 fi
4820
4821
4822
4823 # Restore LIBS and CFLAGS - we are going to compile C code in the next
4824 # test.
4825 LIBS="$saved_LIBS"
4826 CFLAGS="$saved_CFLAGS"
4827
4828 #--------------------------------------------------------------------
4829 # Check if compiler supports -MMD -MP to generate %.d files ...
4830 #--------------------------------------------------------------------
4831
4832 echo "$as_me:$LINENO: checking if the compiler supports autodependencies" >&5
4833 echo $ECHO_N "checking if the compiler supports autodependencies... $ECHO_C" >&6
4834
4835 # What we want to do: set AUTO_DEPENDENCIES to yes if gcc => 3.x
4836
4837 if test ! ${GCC} = "yes" ; then
4838   AUTO_DEPENDENCIES=""
4839   PRECOMPILED_HEADERS=""
4840   echo "$as_me:$LINENO: result: no: it's not gcc" >&5
4841 echo "${ECHO_T}no: it's not gcc" >&6
4842 else
4843   # Running gcc -dumpversion we get something like 2.95.4 or
4844   #  egcs-2.91.66 or 3.0.2 or 3.1 20011211
4845   # We want to discard anything but the major number.
4846   # Explanation of the regexp -
4847   # \(^[^0-9]*\) matches beginning of line and following non numeric chars
4848   # \([0-9][0-9]*\) matches 1 or more numeric chars (this is the 2^nd
4849   #  subpattern)
4850   # \([^0-9].*\) matches a non numeric char followed by anything
4851   # /\2/ replace the whole lot with the 2^nd subpattern
4852   gs_cv_gcc_major_version=`${CC} -dumpversion | sed "s/\([^0-9]*\)\([0-9][0-9]*\)\([^0-9].*\)/\2/"`;
4853
4854   if test "${gs_cv_gcc_major_version}" -ge "3" ; then
4855     AUTO_DEPENDENCIES=yes
4856     echo "$as_me:$LINENO: result: yes: gcc major version is ${gs_cv_gcc_major_version}" >&5
4857 echo "${ECHO_T}yes: gcc major version is ${gs_cv_gcc_major_version}" >&6
4858   else
4859     AUTO_DEPENDENCIES=""
4860     PRECOMPILED_HEADERS=""
4861     echo "$as_me:$LINENO: result: no: gcc major version is ${gs_cv_gcc_major_version}" >&5
4862 echo "${ECHO_T}no: gcc major version is ${gs_cv_gcc_major_version}" >&6
4863   fi
4864 fi
4865
4866
4867
4868
4869
4870
4871
4872 #--------------------------------------------------------------------
4873 # Shall we strip makefiles upon installation ?
4874 #--------------------------------------------------------------------
4875
4876 # Stripping makefiles removes comments and newlines from them.  The
4877 # resulting stripped makefiles execute around 5% faster on average.
4878 # Too little for it to be worth for the common user who's more
4879 # interested in the comments :-) so it's disabled by default.
4880 echo "$as_me:$LINENO: checking if we should strip makefiles after installation" >&5
4881 echo $ECHO_N "checking if we should strip makefiles after installation... $ECHO_C" >&6
4882 # Check whether --enable-strip-makefiles or --disable-strip-makefiles was given.
4883 if test "${enable_strip_makefiles+set}" = set; then
4884   enableval="$enable_strip_makefiles"
4885   ac_cv_strip_makefiles=$enableval
4886 else
4887   ac_cv_strip_makefiles="undefined"
4888 fi;
4889
4890 if test "$ac_cv_strip_makefiles" = "yes"; then
4891   GNUSTEP_STRIP_MAKEFILES=strip;
4892   echo "$as_me:$LINENO: result: yes" >&5
4893 echo "${ECHO_T}yes" >&6;
4894 else
4895   GNUSTEP_STRIP_MAKEFILES=;
4896   echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6;
4898 fi
4899
4900
4901
4902 #--------------------------------------------------------------------
4903 # Disable updating the obsolete directory structure
4904 #--------------------------------------------------------------------
4905 gs_move_obsolete=yes
4906 # Check whether --enable-move-obsolete or --disable-move-obsolete was given.
4907 if test "${enable_move_obsolete+set}" = set; then
4908   enableval="$enable_move_obsolete"
4909   gs_move_obsolete=$enableval
4910 else
4911   gs_move_obsolete=yes
4912 fi;
4913
4914 if test "$gs_move_obsolete" = "yes"; then
4915   GNUSTEP_MOVE_OBSOLETE=move_obsolete;
4916 else
4917   GNUSTEP_MOVE_OBSOLETE=
4918   { echo "$as_me:$LINENO: Old GNUstep directories will not be moved" >&5
4919 echo "$as_me: Old GNUstep directories will not be moved" >&6;}
4920 fi
4921
4922
4923 #--------------------------------------------------------------------
4924 # Enable/disable precompiled headers
4925 #--------------------------------------------------------------------
4926 # TODO: replace with / add a check whether PCH works with the
4927 #       compiler
4928 gs_enable_pch=no
4929 echo "$as_me:$LINENO: checking if we should enable precompiled headers (pch)" >&5
4930 echo $ECHO_N "checking if we should enable precompiled headers (pch)... $ECHO_C" >&6
4931 # Check whether --enable-pch or --disable-pch was given.
4932 if test "${enable_pch+set}" = set; then
4933   enableval="$enable_pch"
4934   gs_enable_pch=$enableval
4935 else
4936   gs_enable_pch=no
4937 fi;
4938
4939 if test "$gs_enable_pch" = "yes"; then
4940   PRECOMPILED_HEADERS=yes
4941   echo "$as_me:$LINENO: result: yes" >&5
4942 echo "${ECHO_T}yes" >&6;
4943 else
4944   PRECOMPILED_HEADERS=
4945   echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6;
4947 fi
4948
4949
4950 #--------------------------------------------------------------------
4951 # Record the version
4952 #--------------------------------------------------------------------
4953 echo "$as_me:$LINENO: checking for the version of gnustep-make we are compiling" >&5
4954 echo $ECHO_N "checking for the version of gnustep-make we are compiling... $ECHO_C" >&6
4955 . "$srcdir/Version"
4956 echo "$as_me:$LINENO: result: $GNUSTEP_MAKE_VERSION" >&5
4957 echo "${ECHO_T}$GNUSTEP_MAKE_VERSION" >&6
4958
4959
4960
4961
4962
4963 #-------------------------------------------------------------------
4964 # Record the 'clean' target_os, target_cpu and target_vendor
4965 #-------------------------------------------------------------------
4966 # This is just for efficiency, so that core/make/GNUmakefile does not
4967 # have to compute clean_target_os from target_os (and similar) by
4968 # running shell scripts each time you 'make' something inside
4969 # gnustep-make.  We basically compute them once now, and cache them
4970 # forever.  It is also used by GNUstep.sh when multi-platform is
4971 # disabled.
4972 clean_target_os=`$srcdir/clean_os.sh $target_os`
4973 clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu`
4974 clean_target_vendor=`$srcdir/clean_cpu.sh $target_vendor`
4975
4976
4977
4978
4979
4980 #--------------------------------------------------------------------
4981 # Produce the output files
4982 #--------------------------------------------------------------------
4983                                                                                                               ac_config_files="$ac_config_files config.make openapp debugapp opentool executable.template GNUmakefile GNUstep.sh GNUstep.csh fixpath.sh gnustep-make.spec GNUsteprc"
4984
4985           ac_config_commands="$ac_config_commands default"
4986
4987 cat >confcache <<\_ACEOF
4988 # This file is a shell script that caches the results of configure
4989 # tests run on this system so they can be shared between configure
4990 # scripts and configure runs, see configure's option --config-cache.
4991 # It is not useful on other systems.  If it contains results you don't
4992 # want to keep, you may remove or edit it.
4993 #
4994 # config.status only pays attention to the cache file if you give it
4995 # the --recheck option to rerun configure.
4996 #
4997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4999 # following values.
5000
5001 _ACEOF
5002
5003 # The following way of writing the cache mishandles newlines in values,
5004 # but we know of no workaround that is simple, portable, and efficient.
5005 # So, don't put newlines in cache variables' values.
5006 # Ultrix sh set writes to stderr and can't be redirected directly,
5007 # and sets the high bit in the cache file unless we assign to the vars.
5008 {
5009   (set) 2>&1 |
5010     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5011     *ac_space=\ *)
5012       # `set' does not quote correctly, so add quotes (double-quote
5013       # substitution turns \\\\ into \\, and sed turns \\ into \).
5014       sed -n \
5015         "s/'/'\\\\''/g;
5016           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5017       ;;
5018     *)
5019       # `set' quotes correctly as required by POSIX, so do not add quotes.
5020       sed -n \
5021         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5022       ;;
5023     esac;
5024 } |
5025   sed '
5026      t clear
5027      : clear
5028      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5029      t end
5030      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5031      : end' >>confcache
5032 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5033   if test -w $cache_file; then
5034     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5035     cat confcache >$cache_file
5036   else
5037     echo "not updating unwritable cache $cache_file"
5038   fi
5039 fi
5040 rm -f confcache
5041
5042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5043 # Let make expand exec_prefix.
5044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5045
5046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5048 # trailing colons and then remove the whole line if VPATH becomes empty
5049 # (actually we leave an empty line to preserve line numbers).
5050 if test "x$srcdir" = x.; then
5051   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5052 s/:*\$(srcdir):*/:/;
5053 s/:*\${srcdir}:*/:/;
5054 s/:*@srcdir@:*/:/;
5055 s/^\([^=]*=[     ]*\):*/\1/;
5056 s/:*$//;
5057 s/^[^=]*=[       ]*$//;
5058 }'
5059 fi
5060
5061 DEFS=-DHAVE_CONFIG_H
5062
5063 ac_libobjs=
5064 ac_ltlibobjs=
5065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5066   # 1. Remove the extension, and $U if already installed.
5067   ac_i=`echo "$ac_i" |
5068          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5069   # 2. Add them.
5070   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5071   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5072 done
5073 LIBOBJS=$ac_libobjs
5074
5075 LTLIBOBJS=$ac_ltlibobjs
5076
5077
5078
5079 : ${CONFIG_STATUS=./config.status}
5080 ac_clean_files_save=$ac_clean_files
5081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5082 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5083 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5084 cat >$CONFIG_STATUS <<_ACEOF
5085 #! $SHELL
5086 # Generated by $as_me.
5087 # Run this file to recreate the current configuration.
5088 # Compiler output produced by configure, useful for debugging
5089 # configure, is in config.log if it exists.
5090
5091 debug=false
5092 ac_cs_recheck=false
5093 ac_cs_silent=false
5094 SHELL=\${CONFIG_SHELL-$SHELL}
5095 _ACEOF
5096
5097 cat >>$CONFIG_STATUS <<\_ACEOF
5098 ## --------------------- ##
5099 ## M4sh Initialization.  ##
5100 ## --------------------- ##
5101
5102 # Be Bourne compatible
5103 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5104   emulate sh
5105   NULLCMD=:
5106   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5107   # is contrary to our usage.  Disable this feature.
5108   alias -g '${1+"$@"}'='"$@"'
5109 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5110   set -o posix
5111 fi
5112 DUALCASE=1; export DUALCASE # for MKS sh
5113
5114 # Support unset when possible.
5115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5116   as_unset=unset
5117 else
5118   as_unset=false
5119 fi
5120
5121
5122 # Work around bugs in pre-3.0 UWIN ksh.
5123 $as_unset ENV MAIL MAILPATH
5124 PS1='$ '
5125 PS2='> '
5126 PS4='+ '
5127
5128 # NLS nuisances.
5129 for as_var in \
5130   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5131   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5132   LC_TELEPHONE LC_TIME
5133 do
5134   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5135     eval $as_var=C; export $as_var
5136   else
5137     $as_unset $as_var
5138   fi
5139 done
5140
5141 # Required to use basename.
5142 if expr a : '\(a\)' >/dev/null 2>&1; then
5143   as_expr=expr
5144 else
5145   as_expr=false
5146 fi
5147
5148 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5149   as_basename=basename
5150 else
5151   as_basename=false
5152 fi
5153
5154
5155 # Name of the executable.
5156 as_me=`$as_basename "$0" ||
5157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5158          X"$0" : 'X\(//\)$' \| \
5159          X"$0" : 'X\(/\)$' \| \
5160          .     : '\(.\)' 2>/dev/null ||
5161 echo X/"$0" |
5162     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5163           /^X\/\(\/\/\)$/{ s//\1/; q; }
5164           /^X\/\(\/\).*/{ s//\1/; q; }
5165           s/.*/./; q'`
5166
5167
5168 # PATH needs CR, and LINENO needs CR and PATH.
5169 # Avoid depending upon Character Ranges.
5170 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5171 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5172 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5173 as_cr_digits='0123456789'
5174 as_cr_alnum=$as_cr_Letters$as_cr_digits
5175
5176 # The user is always right.
5177 if test "${PATH_SEPARATOR+set}" != set; then
5178   echo "#! /bin/sh" >conf$$.sh
5179   echo  "exit 0"   >>conf$$.sh
5180   chmod +x conf$$.sh
5181   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5182     PATH_SEPARATOR=';'
5183   else
5184     PATH_SEPARATOR=:
5185   fi
5186   rm -f conf$$.sh
5187 fi
5188
5189
5190   as_lineno_1=$LINENO
5191   as_lineno_2=$LINENO
5192   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5193   test "x$as_lineno_1" != "x$as_lineno_2" &&
5194   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5195   # Find who we are.  Look in the path if we contain no path at all
5196   # relative or not.
5197   case $0 in
5198     *[\\/]* ) as_myself=$0 ;;
5199     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5201 do
5202   IFS=$as_save_IFS
5203   test -z "$as_dir" && as_dir=.
5204   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5205 done
5206
5207        ;;
5208   esac
5209   # We did not find ourselves, most probably we were run as `sh COMMAND'
5210   # in which case we are not to be found in the path.
5211   if test "x$as_myself" = x; then
5212     as_myself=$0
5213   fi
5214   if test ! -f "$as_myself"; then
5215     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5216 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5217    { (exit 1); exit 1; }; }
5218   fi
5219   case $CONFIG_SHELL in
5220   '')
5221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226   for as_base in sh bash ksh sh5; do
5227          case $as_dir in
5228          /*)
5229            if ("$as_dir/$as_base" -c '
5230   as_lineno_1=$LINENO
5231   as_lineno_2=$LINENO
5232   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5233   test "x$as_lineno_1" != "x$as_lineno_2" &&
5234   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5235              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5236              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5237              CONFIG_SHELL=$as_dir/$as_base
5238              export CONFIG_SHELL
5239              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5240            fi;;
5241          esac
5242        done
5243 done
5244 ;;
5245   esac
5246
5247   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5248   # uniformly replaced by the line number.  The first 'sed' inserts a
5249   # line-number line before each line; the second 'sed' does the real
5250   # work.  The second script uses 'N' to pair each line-number line
5251   # with the numbered line, and appends trailing '-' during
5252   # substitution so that $LINENO is not a special case at line end.
5253   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5254   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5255   sed '=' <$as_myself |
5256     sed '
5257       N
5258       s,$,-,
5259       : loop
5260       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5261       t loop
5262       s,-$,,
5263       s,^['$as_cr_digits']*\n,,
5264     ' >$as_me.lineno &&
5265   chmod +x $as_me.lineno ||
5266     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5267 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5268    { (exit 1); exit 1; }; }
5269
5270   # Don't try to exec as it changes $[0], causing all sort of problems
5271   # (the dirname of $[0] is not the place where we might find the
5272   # original and so on.  Autoconf is especially sensible to this).
5273   . ./$as_me.lineno
5274   # Exit status is that of the last command.
5275   exit
5276 }
5277
5278
5279 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5280   *c*,-n*) ECHO_N= ECHO_C='
5281 ' ECHO_T='      ' ;;
5282   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5283   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5284 esac
5285
5286 if expr a : '\(a\)' >/dev/null 2>&1; then
5287   as_expr=expr
5288 else
5289   as_expr=false
5290 fi
5291
5292 rm -f conf$$ conf$$.exe conf$$.file
5293 echo >conf$$.file
5294 if ln -s conf$$.file conf$$ 2>/dev/null; then
5295   # We could just check for DJGPP; but this test a) works b) is more generic
5296   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5297   if test -f conf$$.exe; then
5298     # Don't use ln at all; we don't have any links
5299     as_ln_s='cp -p'
5300   else
5301     as_ln_s='ln -s'
5302   fi
5303 elif ln conf$$.file conf$$ 2>/dev/null; then
5304   as_ln_s=ln
5305 else
5306   as_ln_s='cp -p'
5307 fi
5308 rm -f conf$$ conf$$.exe conf$$.file
5309
5310 if mkdir -p . 2>/dev/null; then
5311   as_mkdir_p=:
5312 else
5313   test -d ./-p && rmdir ./-p
5314   as_mkdir_p=false
5315 fi
5316
5317 as_executable_p="test -f"
5318
5319 # Sed expression to map a string onto a valid CPP name.
5320 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5321
5322 # Sed expression to map a string onto a valid variable name.
5323 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5324
5325
5326 # IFS
5327 # We need space, tab and new line, in precisely that order.
5328 as_nl='
5329 '
5330 IFS="   $as_nl"
5331
5332 # CDPATH.
5333 $as_unset CDPATH
5334
5335 exec 6>&1
5336
5337 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5338 # report actual input values of CONFIG_FILES etc. instead of their
5339 # values after options handling.  Logging --version etc. is OK.
5340 exec 5>>config.log
5341 {
5342   echo
5343   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5344 ## Running $as_me. ##
5345 _ASBOX
5346 } >&5
5347 cat >&5 <<_CSEOF
5348
5349 This file was extended by $as_me, which was
5350 generated by GNU Autoconf 2.59.  Invocation command line was
5351
5352   CONFIG_FILES    = $CONFIG_FILES
5353   CONFIG_HEADERS  = $CONFIG_HEADERS
5354   CONFIG_LINKS    = $CONFIG_LINKS
5355   CONFIG_COMMANDS = $CONFIG_COMMANDS
5356   $ $0 $@
5357
5358 _CSEOF
5359 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5360 echo >&5
5361 _ACEOF
5362
5363 # Files that config.status was made for.
5364 if test -n "$ac_config_files"; then
5365   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5366 fi
5367
5368 if test -n "$ac_config_headers"; then
5369   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5370 fi
5371
5372 if test -n "$ac_config_links"; then
5373   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5374 fi
5375
5376 if test -n "$ac_config_commands"; then
5377   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5378 fi
5379
5380 cat >>$CONFIG_STATUS <<\_ACEOF
5381
5382 ac_cs_usage="\
5383 \`$as_me' instantiates files from templates according to the
5384 current configuration.
5385
5386 Usage: $0 [OPTIONS] [FILE]...
5387
5388   -h, --help       print this help, then exit
5389   -V, --version    print version number, then exit
5390   -q, --quiet      do not print progress messages
5391   -d, --debug      don't remove temporary files
5392       --recheck    update $as_me by reconfiguring in the same conditions
5393   --file=FILE[:TEMPLATE]
5394                    instantiate the configuration file FILE
5395   --header=FILE[:TEMPLATE]
5396                    instantiate the configuration header FILE
5397
5398 Configuration files:
5399 $config_files
5400
5401 Configuration headers:
5402 $config_headers
5403
5404 Configuration commands:
5405 $config_commands
5406
5407 Report bugs to <bug-autoconf@gnu.org>."
5408 _ACEOF
5409
5410 cat >>$CONFIG_STATUS <<_ACEOF
5411 ac_cs_version="\\
5412 config.status
5413 configured by $0, generated by GNU Autoconf 2.59,
5414   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5415
5416 Copyright (C) 2003 Free Software Foundation, Inc.
5417 This config.status script is free software; the Free Software Foundation
5418 gives unlimited permission to copy, distribute and modify it."
5419 srcdir=$srcdir
5420 INSTALL="$INSTALL"
5421 _ACEOF
5422
5423 cat >>$CONFIG_STATUS <<\_ACEOF
5424 # If no file are specified by the user, then we need to provide default
5425 # value.  By we need to know if files were specified by the user.
5426 ac_need_defaults=:
5427 while test $# != 0
5428 do
5429   case $1 in
5430   --*=*)
5431     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5432     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5433     ac_shift=:
5434     ;;
5435   -*)
5436     ac_option=$1
5437     ac_optarg=$2
5438     ac_shift=shift
5439     ;;
5440   *) # This is not an option, so the user has probably given explicit
5441      # arguments.
5442      ac_option=$1
5443      ac_need_defaults=false;;
5444   esac
5445
5446   case $ac_option in
5447   # Handling of the options.
5448 _ACEOF
5449 cat >>$CONFIG_STATUS <<\_ACEOF
5450   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5451     ac_cs_recheck=: ;;
5452   --version | --vers* | -V )
5453     echo "$ac_cs_version"; exit 0 ;;
5454   --he | --h)
5455     # Conflict between --help and --header
5456     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5457 Try \`$0 --help' for more information." >&5
5458 echo "$as_me: error: ambiguous option: $1
5459 Try \`$0 --help' for more information." >&2;}
5460    { (exit 1); exit 1; }; };;
5461   --help | --hel | -h )
5462     echo "$ac_cs_usage"; exit 0 ;;
5463   --debug | --d* | -d )
5464     debug=: ;;
5465   --file | --fil | --fi | --f )
5466     $ac_shift
5467     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5468     ac_need_defaults=false;;
5469   --header | --heade | --head | --hea )
5470     $ac_shift
5471     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5472     ac_need_defaults=false;;
5473   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5474   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5475     ac_cs_silent=: ;;
5476
5477   # This is an error.
5478   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5479 Try \`$0 --help' for more information." >&5
5480 echo "$as_me: error: unrecognized option: $1
5481 Try \`$0 --help' for more information." >&2;}
5482    { (exit 1); exit 1; }; } ;;
5483
5484   *) ac_config_targets="$ac_config_targets $1" ;;
5485
5486   esac
5487   shift
5488 done
5489
5490 ac_configure_extra_args=
5491
5492 if $ac_cs_silent; then
5493   exec 6>/dev/null
5494   ac_configure_extra_args="$ac_configure_extra_args --silent"
5495 fi
5496
5497 _ACEOF
5498 cat >>$CONFIG_STATUS <<_ACEOF
5499 if \$ac_cs_recheck; then
5500   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5501   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5502 fi
5503
5504 _ACEOF
5505
5506 cat >>$CONFIG_STATUS <<_ACEOF
5507 #
5508 # INIT-COMMANDS section.
5509 #
5510
5511
5512
5513 _ACEOF
5514
5515
5516
5517 cat >>$CONFIG_STATUS <<\_ACEOF
5518 for ac_config_target in $ac_config_targets
5519 do
5520   case "$ac_config_target" in
5521   # Handling of arguments.
5522   "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
5523   "openapp" ) CONFIG_FILES="$CONFIG_FILES openapp" ;;
5524   "debugapp" ) CONFIG_FILES="$CONFIG_FILES debugapp" ;;
5525   "opentool" ) CONFIG_FILES="$CONFIG_FILES opentool" ;;
5526   "executable.template" ) CONFIG_FILES="$CONFIG_FILES executable.template" ;;
5527   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
5528   "GNUstep.sh" ) CONFIG_FILES="$CONFIG_FILES GNUstep.sh" ;;
5529   "GNUstep.csh" ) CONFIG_FILES="$CONFIG_FILES GNUstep.csh" ;;
5530   "fixpath.sh" ) CONFIG_FILES="$CONFIG_FILES fixpath.sh" ;;
5531   "gnustep-make.spec" ) CONFIG_FILES="$CONFIG_FILES gnustep-make.spec" ;;
5532   "GNUsteprc" ) CONFIG_FILES="$CONFIG_FILES GNUsteprc" ;;
5533   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5534   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5535   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5536 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5537    { (exit 1); exit 1; }; };;
5538   esac
5539 done
5540
5541 # If the user did not use the arguments to specify the items to instantiate,
5542 # then the envvar interface is used.  Set only those that are not.
5543 # We use the long form for the default assignment because of an extremely
5544 # bizarre bug on SunOS 4.1.3.
5545 if $ac_need_defaults; then
5546   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5547   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5548   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5549 fi
5550
5551 # Have a temporary directory for convenience.  Make it in the build tree
5552 # simply because there is no reason to put it here, and in addition,
5553 # creating and moving files from /tmp can sometimes cause problems.
5554 # Create a temporary directory, and hook for its removal unless debugging.
5555 $debug ||
5556 {
5557   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5558   trap '{ (exit 1); exit 1; }' 1 2 13 15
5559 }
5560
5561 # Create a (secure) tmp directory for tmp files.
5562
5563 {
5564   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5565   test -n "$tmp" && test -d "$tmp"
5566 }  ||
5567 {
5568   tmp=./confstat$$-$RANDOM
5569   (umask 077 && mkdir $tmp)
5570 } ||
5571 {
5572    echo "$me: cannot create a temporary directory in ." >&2
5573    { (exit 1); exit 1; }
5574 }
5575
5576 _ACEOF
5577
5578 cat >>$CONFIG_STATUS <<_ACEOF
5579
5580 #
5581 # CONFIG_FILES section.
5582 #
5583
5584 # No need to generate the scripts if there are no CONFIG_FILES.
5585 # This happens for instance when ./config.status config.h
5586 if test -n "\$CONFIG_FILES"; then
5587   # Protect against being on the right side of a sed subst in config.status.
5588   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5589    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5590 s,@SHELL@,$SHELL,;t t
5591 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5592 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5593 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5594 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5595 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5596 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5597 s,@exec_prefix@,$exec_prefix,;t t
5598 s,@prefix@,$prefix,;t t
5599 s,@program_transform_name@,$program_transform_name,;t t
5600 s,@bindir@,$bindir,;t t
5601 s,@sbindir@,$sbindir,;t t
5602 s,@libexecdir@,$libexecdir,;t t
5603 s,@datadir@,$datadir,;t t
5604 s,@sysconfdir@,$sysconfdir,;t t
5605 s,@sharedstatedir@,$sharedstatedir,;t t
5606 s,@localstatedir@,$localstatedir,;t t
5607 s,@libdir@,$libdir,;t t
5608 s,@includedir@,$includedir,;t t
5609 s,@oldincludedir@,$oldincludedir,;t t
5610 s,@infodir@,$infodir,;t t
5611 s,@mandir@,$mandir,;t t
5612 s,@build_alias@,$build_alias,;t t
5613 s,@host_alias@,$host_alias,;t t
5614 s,@target_alias@,$target_alias,;t t
5615 s,@DEFS@,$DEFS,;t t
5616 s,@ECHO_C@,$ECHO_C,;t t
5617 s,@ECHO_N@,$ECHO_N,;t t
5618 s,@ECHO_T@,$ECHO_T,;t t
5619 s,@LIBS@,$LIBS,;t t
5620 s,@CC@,$CC,;t t
5621 s,@CFLAGS@,$CFLAGS,;t t
5622 s,@LDFLAGS@,$LDFLAGS,;t t
5623 s,@CPPFLAGS@,$CPPFLAGS,;t t
5624 s,@ac_ct_CC@,$ac_ct_CC,;t t
5625 s,@EXEEXT@,$EXEEXT,;t t
5626 s,@OBJEXT@,$OBJEXT,;t t
5627 s,@CPP@,$CPP,;t t
5628 s,@build@,$build,;t t
5629 s,@build_cpu@,$build_cpu,;t t
5630 s,@build_vendor@,$build_vendor,;t t
5631 s,@build_os@,$build_os,;t t
5632 s,@host@,$host,;t t
5633 s,@host_cpu@,$host_cpu,;t t
5634 s,@host_vendor@,$host_vendor,;t t
5635 s,@host_os@,$host_os,;t t
5636 s,@target@,$target,;t t
5637 s,@target_cpu@,$target_cpu,;t t
5638 s,@target_vendor@,$target_vendor,;t t
5639 s,@target_os@,$target_os,;t t
5640 s,@ac_cv_library_combo@,$ac_cv_library_combo,;t t
5641 s,@cc_cppprecomp@,$cc_cppprecomp,;t t
5642 s,@cc_bundle@,$cc_bundle,;t t
5643 s,@CYGWIN@,$CYGWIN,;t t
5644 s,@RANLIB@,$RANLIB,;t t
5645 s,@AR@,$AR,;t t
5646 s,@DLLTOOL@,$DLLTOOL,;t t
5647 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5648 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5649 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5650 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5651 s,@LN_S@,$LN_S,;t t
5652 s,@TAR@,$TAR,;t t
5653 s,@CHOWN@,$CHOWN,;t t
5654 s,@GNUSTEP_ROOT@,$GNUSTEP_ROOT,;t t
5655 s,@root_prefix@,$root_prefix,;t t
5656 s,@MAKEFILES_SUFFIX@,$MAKEFILES_SUFFIX,;t t
5657 s,@HOST_INSTALL@,$HOST_INSTALL,;t t
5658 s,@GNUSTEP_LOCAL_ROOT@,$GNUSTEP_LOCAL_ROOT,;t t
5659 s,@GNUSTEP_NETWORK_ROOT@,$GNUSTEP_NETWORK_ROOT,;t t
5660 s,@GNUSTEP_USER_ROOT@,$GNUSTEP_USER_ROOT,;t t
5661 s,@GNUSTEP_FLATTENED@,$GNUSTEP_FLATTENED,;t t
5662 s,@GNUSTEP_MULTI_PLATFORM@,$GNUSTEP_MULTI_PLATFORM,;t t
5663 s,@BACKEND_BUNDLE@,$BACKEND_BUNDLE,;t t
5664 s,@EGREP@,$EGREP,;t t
5665 s,@objc_threaded@,$objc_threaded,;t t
5666 s,@ac_cv_objc_threaded@,$ac_cv_objc_threaded,;t t
5667 s,@USE_OBJC_EXCEPTIONS@,$USE_OBJC_EXCEPTIONS,;t t
5668 s,@AUTO_DEPENDENCIES@,$AUTO_DEPENDENCIES,;t t
5669 s,@PRECOMPILED_HEADERS@,$PRECOMPILED_HEADERS,;t t
5670 s,@INCLUDES@,$INCLUDES,;t t
5671 s,@LIB_DIR@,$LIB_DIR,;t t
5672 s,@OBJCFLAGS@,$OBJCFLAGS,;t t
5673 s,@GNUSTEP_STRIP_MAKEFILES@,$GNUSTEP_STRIP_MAKEFILES,;t t
5674 s,@GNUSTEP_MOVE_OBSOLETE@,$GNUSTEP_MOVE_OBSOLETE,;t t
5675 s,@GNUSTEP_MAKE_VERSION@,$GNUSTEP_MAKE_VERSION,;t t
5676 s,@GNUSTEP_MAKE_MAJOR_VERSION@,$GNUSTEP_MAKE_MAJOR_VERSION,;t t
5677 s,@GNUSTEP_MAKE_MINOR_VERSION@,$GNUSTEP_MAKE_MINOR_VERSION,;t t
5678 s,@GNUSTEP_MAKE_SUBMINOR_VERSION@,$GNUSTEP_MAKE_SUBMINOR_VERSION,;t t
5679 s,@clean_target_os@,$clean_target_os,;t t
5680 s,@clean_target_cpu@,$clean_target_cpu,;t t
5681 s,@clean_target_vendor@,$clean_target_vendor,;t t
5682 s,@LIBOBJS@,$LIBOBJS,;t t
5683 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5684 CEOF
5685
5686 _ACEOF
5687
5688   cat >>$CONFIG_STATUS <<\_ACEOF
5689   # Split the substitutions into bite-sized pieces for seds with
5690   # small command number limits, like on Digital OSF/1 and HP-UX.
5691   ac_max_sed_lines=48
5692   ac_sed_frag=1 # Number of current file.
5693   ac_beg=1 # First line for current file.
5694   ac_end=$ac_max_sed_lines # Line after last line for current file.
5695   ac_more_lines=:
5696   ac_sed_cmds=
5697   while $ac_more_lines; do
5698     if test $ac_beg -gt 1; then
5699       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5700     else
5701       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5702     fi
5703     if test ! -s $tmp/subs.frag; then
5704       ac_more_lines=false
5705     else
5706       # The purpose of the label and of the branching condition is to
5707       # speed up the sed processing (if there are no `@' at all, there
5708       # is no need to browse any of the substitutions).
5709       # These are the two extra sed commands mentioned above.
5710       (echo ':t
5711   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5712       if test -z "$ac_sed_cmds"; then
5713         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5714       else
5715         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5716       fi
5717       ac_sed_frag=`expr $ac_sed_frag + 1`
5718       ac_beg=$ac_end
5719       ac_end=`expr $ac_end + $ac_max_sed_lines`
5720     fi
5721   done
5722   if test -z "$ac_sed_cmds"; then
5723     ac_sed_cmds=cat
5724   fi
5725 fi # test -n "$CONFIG_FILES"
5726
5727 _ACEOF
5728 cat >>$CONFIG_STATUS <<\_ACEOF
5729 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5730   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5731   case $ac_file in
5732   - | *:- | *:-:* ) # input from stdin
5733         cat >$tmp/stdin
5734         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5735         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5736   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5737         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5738   * )   ac_file_in=$ac_file.in ;;
5739   esac
5740
5741   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5742   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5744          X"$ac_file" : 'X\(//\)[^/]' \| \
5745          X"$ac_file" : 'X\(//\)$' \| \
5746          X"$ac_file" : 'X\(/\)' \| \
5747          .     : '\(.\)' 2>/dev/null ||
5748 echo X"$ac_file" |
5749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5750           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5751           /^X\(\/\/\)$/{ s//\1/; q; }
5752           /^X\(\/\).*/{ s//\1/; q; }
5753           s/.*/./; q'`
5754   { if $as_mkdir_p; then
5755     mkdir -p "$ac_dir"
5756   else
5757     as_dir="$ac_dir"
5758     as_dirs=
5759     while test ! -d "$as_dir"; do
5760       as_dirs="$as_dir $as_dirs"
5761       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5763          X"$as_dir" : 'X\(//\)[^/]' \| \
5764          X"$as_dir" : 'X\(//\)$' \| \
5765          X"$as_dir" : 'X\(/\)' \| \
5766          .     : '\(.\)' 2>/dev/null ||
5767 echo X"$as_dir" |
5768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5770           /^X\(\/\/\)$/{ s//\1/; q; }
5771           /^X\(\/\).*/{ s//\1/; q; }
5772           s/.*/./; q'`
5773     done
5774     test ! -n "$as_dirs" || mkdir $as_dirs
5775   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5777    { (exit 1); exit 1; }; }; }
5778
5779   ac_builddir=.
5780
5781 if test "$ac_dir" != .; then
5782   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5783   # A "../" for each directory in $ac_dir_suffix.
5784   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5785 else
5786   ac_dir_suffix= ac_top_builddir=
5787 fi
5788
5789 case $srcdir in
5790   .)  # No --srcdir option.  We are building in place.
5791     ac_srcdir=.
5792     if test -z "$ac_top_builddir"; then
5793        ac_top_srcdir=.
5794     else
5795        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5796     fi ;;
5797   [\\/]* | ?:[\\/]* )  # Absolute path.
5798     ac_srcdir=$srcdir$ac_dir_suffix;
5799     ac_top_srcdir=$srcdir ;;
5800   *) # Relative path.
5801     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5802     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5803 esac
5804
5805 # Do not use `cd foo && pwd` to compute absolute paths, because
5806 # the directories may not exist.
5807 case `pwd` in
5808 .) ac_abs_builddir="$ac_dir";;
5809 *)
5810   case "$ac_dir" in
5811   .) ac_abs_builddir=`pwd`;;
5812   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5813   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5814   esac;;
5815 esac
5816 case $ac_abs_builddir in
5817 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5818 *)
5819   case ${ac_top_builddir}. in
5820   .) ac_abs_top_builddir=$ac_abs_builddir;;
5821   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5822   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5823   esac;;
5824 esac
5825 case $ac_abs_builddir in
5826 .) ac_abs_srcdir=$ac_srcdir;;
5827 *)
5828   case $ac_srcdir in
5829   .) ac_abs_srcdir=$ac_abs_builddir;;
5830   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5831   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5832   esac;;
5833 esac
5834 case $ac_abs_builddir in
5835 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5836 *)
5837   case $ac_top_srcdir in
5838   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5839   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5840   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5841   esac;;
5842 esac
5843
5844
5845   case $INSTALL in
5846   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5847   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5848   esac
5849
5850   if test x"$ac_file" != x-; then
5851     { echo "$as_me:$LINENO: creating $ac_file" >&5
5852 echo "$as_me: creating $ac_file" >&6;}
5853     rm -f "$ac_file"
5854   fi
5855   # Let's still pretend it is `configure' which instantiates (i.e., don't
5856   # use $as_me), people would be surprised to read:
5857   #    /* config.h.  Generated by config.status.  */
5858   if test x"$ac_file" = x-; then
5859     configure_input=
5860   else
5861     configure_input="$ac_file.  "
5862   fi
5863   configure_input=$configure_input"Generated from `echo $ac_file_in |
5864                                      sed 's,.*/,,'` by configure."
5865
5866   # First look for the input files in the build tree, otherwise in the
5867   # src tree.
5868   ac_file_inputs=`IFS=:
5869     for f in $ac_file_in; do
5870       case $f in
5871       -) echo $tmp/stdin ;;
5872       [\\/$]*)
5873          # Absolute (can't be DOS-style, as IFS=:)
5874          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5875 echo "$as_me: error: cannot find input file: $f" >&2;}
5876    { (exit 1); exit 1; }; }
5877          echo "$f";;
5878       *) # Relative
5879          if test -f "$f"; then
5880            # Build tree
5881            echo "$f"
5882          elif test -f "$srcdir/$f"; then
5883            # Source tree
5884            echo "$srcdir/$f"
5885          else
5886            # /dev/null tree
5887            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5888 echo "$as_me: error: cannot find input file: $f" >&2;}
5889    { (exit 1); exit 1; }; }
5890          fi;;
5891       esac
5892     done` || { (exit 1); exit 1; }
5893 _ACEOF
5894 cat >>$CONFIG_STATUS <<_ACEOF
5895   sed "$ac_vpsub
5896 $extrasub
5897 _ACEOF
5898 cat >>$CONFIG_STATUS <<\_ACEOF
5899 :t
5900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5901 s,@configure_input@,$configure_input,;t t
5902 s,@srcdir@,$ac_srcdir,;t t
5903 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5904 s,@top_srcdir@,$ac_top_srcdir,;t t
5905 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5906 s,@builddir@,$ac_builddir,;t t
5907 s,@abs_builddir@,$ac_abs_builddir,;t t
5908 s,@top_builddir@,$ac_top_builddir,;t t
5909 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5910 s,@INSTALL@,$ac_INSTALL,;t t
5911 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5912   rm -f $tmp/stdin
5913   if test x"$ac_file" != x-; then
5914     mv $tmp/out $ac_file
5915   else
5916     cat $tmp/out
5917     rm -f $tmp/out
5918   fi
5919
5920 done
5921 _ACEOF
5922 cat >>$CONFIG_STATUS <<\_ACEOF
5923
5924 #
5925 # CONFIG_HEADER section.
5926 #
5927
5928 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5929 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5930 #
5931 # ac_d sets the value in "#define NAME VALUE" lines.
5932 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
5933 ac_dB='[         ].*$,\1#\2'
5934 ac_dC=' '
5935 ac_dD=',;t'
5936 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5937 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5938 ac_uB='$,\1#\2define\3'
5939 ac_uC=' '
5940 ac_uD=',;t'
5941
5942 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5943   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5944   case $ac_file in
5945   - | *:- | *:-:* ) # input from stdin
5946         cat >$tmp/stdin
5947         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5948         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5949   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5950         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5951   * )   ac_file_in=$ac_file.in ;;
5952   esac
5953
5954   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5955 echo "$as_me: creating $ac_file" >&6;}
5956
5957   # First look for the input files in the build tree, otherwise in the
5958   # src tree.
5959   ac_file_inputs=`IFS=:
5960     for f in $ac_file_in; do
5961       case $f in
5962       -) echo $tmp/stdin ;;
5963       [\\/$]*)
5964          # Absolute (can't be DOS-style, as IFS=:)
5965          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5966 echo "$as_me: error: cannot find input file: $f" >&2;}
5967    { (exit 1); exit 1; }; }
5968          # Do quote $f, to prevent DOS paths from being IFS'd.
5969          echo "$f";;
5970       *) # Relative
5971          if test -f "$f"; then
5972            # Build tree
5973            echo "$f"
5974          elif test -f "$srcdir/$f"; then
5975            # Source tree
5976            echo "$srcdir/$f"
5977          else
5978            # /dev/null tree
5979            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5980 echo "$as_me: error: cannot find input file: $f" >&2;}
5981    { (exit 1); exit 1; }; }
5982          fi;;
5983       esac
5984     done` || { (exit 1); exit 1; }
5985   # Remove the trailing spaces.
5986   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
5987
5988 _ACEOF
5989
5990 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5991 # `conftest.undefs', that substitutes the proper values into
5992 # config.h.in to produce config.h.  The first handles `#define'
5993 # templates, and the second `#undef' templates.
5994 # And first: Protect against being on the right side of a sed subst in
5995 # config.status.  Protect against being in an unquoted here document
5996 # in config.status.
5997 rm -f conftest.defines conftest.undefs
5998 # Using a here document instead of a string reduces the quoting nightmare.
5999 # Putting comments in sed scripts is not portable.
6000 #
6001 # `end' is used to avoid that the second main sed command (meant for
6002 # 0-ary CPP macros) applies to n-ary macro definitions.
6003 # See the Autoconf documentation for `clear'.
6004 cat >confdef2sed.sed <<\_ACEOF
6005 s/[\\&,]/\\&/g
6006 s,[\\$`],\\&,g
6007 t clear
6008 : clear
6009 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6010 t end
6011 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6012 : end
6013 _ACEOF
6014 # If some macros were called several times there might be several times
6015 # the same #defines, which is useless.  Nevertheless, we may not want to
6016 # sort them, since we want the *last* AC-DEFINE to be honored.
6017 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6018 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6019 rm -f confdef2sed.sed
6020
6021 # This sed command replaces #undef with comments.  This is necessary, for
6022 # example, in the case of _POSIX_SOURCE, which is predefined and required
6023 # on some systems where configure will not decide to define it.
6024 cat >>conftest.undefs <<\_ACEOF
6025 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6026 _ACEOF
6027
6028 # Break up conftest.defines because some shells have a limit on the size
6029 # of here documents, and old seds have small limits too (100 cmds).
6030 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6031 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6032 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6033 echo '  :' >>$CONFIG_STATUS
6034 rm -f conftest.tail
6035 while grep . conftest.defines >/dev/null
6036 do
6037   # Write a limited-size here document to $tmp/defines.sed.
6038   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6039   # Speed up: don't consider the non `#define' lines.
6040   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6041   # Work around the forget-to-reset-the-flag bug.
6042   echo 't clr' >>$CONFIG_STATUS
6043   echo ': clr' >>$CONFIG_STATUS
6044   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6045   echo 'CEOF
6046   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6047   rm -f $tmp/in
6048   mv $tmp/out $tmp/in
6049 ' >>$CONFIG_STATUS
6050   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6051   rm -f conftest.defines
6052   mv conftest.tail conftest.defines
6053 done
6054 rm -f conftest.defines
6055 echo '  fi # grep' >>$CONFIG_STATUS
6056 echo >>$CONFIG_STATUS
6057
6058 # Break up conftest.undefs because some shells have a limit on the size
6059 # of here documents, and old seds have small limits too (100 cmds).
6060 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6061 rm -f conftest.tail
6062 while grep . conftest.undefs >/dev/null
6063 do
6064   # Write a limited-size here document to $tmp/undefs.sed.
6065   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6066   # Speed up: don't consider the non `#undef'
6067   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6068   # Work around the forget-to-reset-the-flag bug.
6069   echo 't clr' >>$CONFIG_STATUS
6070   echo ': clr' >>$CONFIG_STATUS
6071   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6072   echo 'CEOF
6073   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6074   rm -f $tmp/in
6075   mv $tmp/out $tmp/in
6076 ' >>$CONFIG_STATUS
6077   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6078   rm -f conftest.undefs
6079   mv conftest.tail conftest.undefs
6080 done
6081 rm -f conftest.undefs
6082
6083 cat >>$CONFIG_STATUS <<\_ACEOF
6084   # Let's still pretend it is `configure' which instantiates (i.e., don't
6085   # use $as_me), people would be surprised to read:
6086   #    /* config.h.  Generated by config.status.  */
6087   if test x"$ac_file" = x-; then
6088     echo "/* Generated by configure.  */" >$tmp/config.h
6089   else
6090     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6091   fi
6092   cat $tmp/in >>$tmp/config.h
6093   rm -f $tmp/in
6094   if test x"$ac_file" != x-; then
6095     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6096       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6097 echo "$as_me: $ac_file is unchanged" >&6;}
6098     else
6099       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6101          X"$ac_file" : 'X\(//\)[^/]' \| \
6102          X"$ac_file" : 'X\(//\)$' \| \
6103          X"$ac_file" : 'X\(/\)' \| \
6104          .     : '\(.\)' 2>/dev/null ||
6105 echo X"$ac_file" |
6106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6107           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6108           /^X\(\/\/\)$/{ s//\1/; q; }
6109           /^X\(\/\).*/{ s//\1/; q; }
6110           s/.*/./; q'`
6111       { if $as_mkdir_p; then
6112     mkdir -p "$ac_dir"
6113   else
6114     as_dir="$ac_dir"
6115     as_dirs=
6116     while test ! -d "$as_dir"; do
6117       as_dirs="$as_dir $as_dirs"
6118       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6120          X"$as_dir" : 'X\(//\)[^/]' \| \
6121          X"$as_dir" : 'X\(//\)$' \| \
6122          X"$as_dir" : 'X\(/\)' \| \
6123          .     : '\(.\)' 2>/dev/null ||
6124 echo X"$as_dir" |
6125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6126           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6127           /^X\(\/\/\)$/{ s//\1/; q; }
6128           /^X\(\/\).*/{ s//\1/; q; }
6129           s/.*/./; q'`
6130     done
6131     test ! -n "$as_dirs" || mkdir $as_dirs
6132   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6134    { (exit 1); exit 1; }; }; }
6135
6136       rm -f $ac_file
6137       mv $tmp/config.h $ac_file
6138     fi
6139   else
6140     cat $tmp/config.h
6141     rm -f $tmp/config.h
6142   fi
6143 done
6144 _ACEOF
6145 cat >>$CONFIG_STATUS <<\_ACEOF
6146
6147 #
6148 # CONFIG_COMMANDS section.
6149 #
6150 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6151   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6152   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6153   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6154 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6155          X"$ac_dest" : 'X\(//\)[^/]' \| \
6156          X"$ac_dest" : 'X\(//\)$' \| \
6157          X"$ac_dest" : 'X\(/\)' \| \
6158          .     : '\(.\)' 2>/dev/null ||
6159 echo X"$ac_dest" |
6160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6161           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6162           /^X\(\/\/\)$/{ s//\1/; q; }
6163           /^X\(\/\).*/{ s//\1/; q; }
6164           s/.*/./; q'`
6165   { if $as_mkdir_p; then
6166     mkdir -p "$ac_dir"
6167   else
6168     as_dir="$ac_dir"
6169     as_dirs=
6170     while test ! -d "$as_dir"; do
6171       as_dirs="$as_dir $as_dirs"
6172       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6174          X"$as_dir" : 'X\(//\)[^/]' \| \
6175          X"$as_dir" : 'X\(//\)$' \| \
6176          X"$as_dir" : 'X\(/\)' \| \
6177          .     : '\(.\)' 2>/dev/null ||
6178 echo X"$as_dir" |
6179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6180           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6181           /^X\(\/\/\)$/{ s//\1/; q; }
6182           /^X\(\/\).*/{ s//\1/; q; }
6183           s/.*/./; q'`
6184     done
6185     test ! -n "$as_dirs" || mkdir $as_dirs
6186   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6187 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6188    { (exit 1); exit 1; }; }; }
6189
6190   ac_builddir=.
6191
6192 if test "$ac_dir" != .; then
6193   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6194   # A "../" for each directory in $ac_dir_suffix.
6195   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6196 else
6197   ac_dir_suffix= ac_top_builddir=
6198 fi
6199
6200 case $srcdir in
6201   .)  # No --srcdir option.  We are building in place.
6202     ac_srcdir=.
6203     if test -z "$ac_top_builddir"; then
6204        ac_top_srcdir=.
6205     else
6206        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6207     fi ;;
6208   [\\/]* | ?:[\\/]* )  # Absolute path.
6209     ac_srcdir=$srcdir$ac_dir_suffix;
6210     ac_top_srcdir=$srcdir ;;
6211   *) # Relative path.
6212     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6213     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6214 esac
6215
6216 # Do not use `cd foo && pwd` to compute absolute paths, because
6217 # the directories may not exist.
6218 case `pwd` in
6219 .) ac_abs_builddir="$ac_dir";;
6220 *)
6221   case "$ac_dir" in
6222   .) ac_abs_builddir=`pwd`;;
6223   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6224   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6225   esac;;
6226 esac
6227 case $ac_abs_builddir in
6228 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6229 *)
6230   case ${ac_top_builddir}. in
6231   .) ac_abs_top_builddir=$ac_abs_builddir;;
6232   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6233   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6234   esac;;
6235 esac
6236 case $ac_abs_builddir in
6237 .) ac_abs_srcdir=$ac_srcdir;;
6238 *)
6239   case $ac_srcdir in
6240   .) ac_abs_srcdir=$ac_abs_builddir;;
6241   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6242   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6243   esac;;
6244 esac
6245 case $ac_abs_builddir in
6246 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6247 *)
6248   case $ac_top_srcdir in
6249   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6250   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6251   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6252   esac;;
6253 esac
6254
6255
6256   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6257 echo "$as_me: executing $ac_dest commands" >&6;}
6258   case $ac_dest in
6259     default ) chmod a+x openapp debugapp opentool fixpath.sh executable.template ;;
6260   esac
6261 done
6262 _ACEOF
6263
6264 cat >>$CONFIG_STATUS <<\_ACEOF
6265
6266 { (exit 0); exit 0; }
6267 _ACEOF
6268 chmod +x $CONFIG_STATUS
6269 ac_clean_files=$ac_clean_files_save
6270
6271
6272 # configure is writing to config.log, and then calls config.status.
6273 # config.status does its own redirection, appending to config.log.
6274 # Unfortunately, on DOS this fails, as config.log is still kept open
6275 # by configure, so config.status won't be able to write to it; its
6276 # output is simply discarded.  So we exec the FD to /dev/null,
6277 # effectively closing config.log, so it can be properly (re)opened and
6278 # appended to by config.status.  When coming back to configure, we
6279 # need to make the FD available again.
6280 if test "$no_create" != yes; then
6281   ac_cs_success=:
6282   ac_config_status_args=
6283   test "$silent" = yes &&
6284     ac_config_status_args="$ac_config_status_args --quiet"
6285   exec 5>/dev/null
6286   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6287   exec 5>>config.log
6288   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6289   # would make configure fail if this is the last instruction.
6290   $ac_cs_success || { (exit 1); exit 1; }
6291 fi
6292