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