4 # Copyright (C) 1997-2004 Free Software Foundation, Inc.
6 # Author: Scott Christley <scottc@net-community.com>
7 # Ovidiu Predescu <ovidiu@net-community.com>
8 # Rewrite: Adam Fedor <fedor@gnu.org>
9 # Nicola Pero <n.pero@mi.flashnet.it>
11 # This file is part of the GNUstep Makefile Package.
13 # This library is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License
15 # as published by the Free Software Foundation; either version 2
16 # of the License, or (at your option) any later version.
18 # You should have received a copy of the GNU General Public
19 # License along with this library; see the file COPYING.LIB.
20 # If not, write to the Free Software Foundation,
21 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 AC_CONFIG_SRCDIR([application.make])
25 AC_CONFIG_HEADER(config.h)
27 #--------------------------------------------------------------------
28 # Setup the library combination
29 #--------------------------------------------------------------------
30 targetArgument=${target}
33 AC_CANONICAL_TARGET([])
35 AC_MSG_CHECKING(for library combo)
36 AC_ARG_WITH(library-combo,[
37 --with-library-combo Define the default library combination
39 ac_cv_library_combo=$withval,
40 ac_cv_library_combo=$ac_cv_library_combo
43 if test "$ac_cv_library_combo" = ""; then
45 darwin*) ac_cv_library_combo=apple-apple-apple ;;
46 nextstep4) ac_cv_library_combo=nx-nx-nx ;;
47 openstep4) ac_cv_library_combo=nx-nx-nx ;;
48 *) ac_cv_library_combo=gnu-gnu-gnu ;;
52 case "$ac_cv_library_combo" in
53 apple) ac_cv_library_combo=apple-apple-apple ;;
54 gnu) ac_cv_library_combo=gnu-gnu-gnu ;;
55 nx) ac_cv_library_combo=nx-nx-nx ;;
58 AC_SUBST(ac_cv_library_combo)
59 AC_MSG_RESULT($ac_cv_library_combo)
61 OBJC_RUNTIME_LIB=`echo $ac_cv_library_combo | awk -F- '{print $1}'`
63 #--------------------------------------------------------------------
64 # Check if we are using Apple cc
65 #--------------------------------------------------------------------
68 AC_MSG_CHECKING([for apple compiler flags])
69 cc_cppprecomp=`${CC} -no-cpp-precomp 2>&1 | grep -c "unrecognized"`
70 cc_bundle=`${CC} -bundle 2>&1 | grep -c "couldn"`
71 # 0 means we have the flag
72 if test $cc_cppprecomp = 0; then
77 if test $cc_bundle = 0; then
82 AC_MSG_RESULT($cc_bundle)
83 AC_SUBST(cc_cppprecomp)
86 #--------------------------------------------------------------------
87 # specific target_os options
88 #--------------------------------------------------------------------
91 INCLUDES="$INCLUDES -I/usr/local/include"
92 LIB_DIR="$LIB_DIR -L/usr/local/lib";;
93 netbsd*) INCLUDES="$INCLUDES -I/usr/pkg/include"
94 LIB_DIR="$LIB_DIR -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";;
97 #--------------------------------------------------------------------
98 # Determine the host, build, and target systems
99 #--------------------------------------------------------------------
101 *cygwin* ) CYGWIN=yes;;
102 *mingw32* ) MINGW32=yes;;
110 if test "$MINGW32" = yes; then
111 echo "hosted on mingw32 .."
112 export INSTALL=install
116 export RANLIB=${RANLIB:-ranlib}
117 export DLLTOOL=${DLLTOOL:-dlltool}
118 elif test "$CYGWIN" = yes; then
119 echo "hosted on cygwin .."
122 export RANLIB=${RANLIB:-ranlib}
123 export DLLTOOL=${DLLTOOL:-dlltool}
126 #--------------------------------------------------------------------
127 # Find the binary and compile tools
128 #--------------------------------------------------------------------
129 if test "x$target" != "x$host"; then
130 echo "cross compiling from $host to $target .."
131 cross_compiling="yes"
132 AC_CHECK_PROG(CC, "${targetArgument}-gcc", dnl
133 "${targetArgument}-gcc", gcc)
134 AC_CHECK_PROG(RANLIB, "${targetArgument}-ranlib", dnl
135 "${targetArgument}-ranlib", ranlib)
136 AC_CHECK_PROG(AR, "${targetArgument}-ar", dnl
137 "${targetArgument}-ar", ar)
138 AC_CHECK_PROG(DLLTOOL, "${targetArgument}-dlltool", dnl
139 "${targetArgument}-dlltool", dlltool)
141 AC_CHECK_PROG(AR, ar, ar)
142 AC_CHECK_PROG(DLLTOOL, dlltool, dlltool)
149 AC_CHECK_PROGS(TAR, gnutar gtar, tar)
151 [--with-tar Set the name of the tar program to use],
154 AC_CHECK_PROG(CHOWN, chown, chown, none)
155 if test "$MINGW32" = no; then
156 if test "$CHOWN" = "none"; then
157 AC_MSG_ERROR("Could not find chown.");
161 #-------------------------------------------------------------------
162 # GNUstep specific options follow
163 #-------------------------------------------------------------------
165 #--------------------------------------------------------------------
166 # The GNUstep root directory.
167 # The user should have the GNUSTEP_SYSTEM_ROOT environment variable
168 # defined, but if not then we have a global default.
169 # Also test for the C: directory, which means we're on Windows
170 #--------------------------------------------------------------------
171 AC_MSG_CHECKING(for GNUSTEP_SYSTEM_ROOT to use)
172 AC_PREFIX_DEFAULT(`if test "x$GNUSTEP_SYSTEM_ROOT" = "x"; then
179 echo "$GNUSTEP_SYSTEM_ROOT" ;
181 if test "x$prefix" = "xNONE"; then
182 prefix="$ac_default_prefix" ;
184 AC_ARG_WITH(system-root,
185 [--without-system-root Don't use separate system root directory],
186 ac_cv_system_root="$withval",
187 ac_cv_system_root=yes)
189 GNUSTEP_ROOT="$prefix"
190 root_prefix='${prefix}'
191 if test $ac_cv_system_root = yes; then
192 if test "x`basename $prefix`" = xSystem; then
193 GNUSTEP_ROOT=`dirname $prefix`
195 if test "x$prefix" = "x/"; then
198 prefix="$prefix/System"
201 root_prefix='${prefix}/..'
203 AC_SUBST(GNUSTEP_ROOT)
204 AC_SUBST(root_prefix)
205 AC_MSG_RESULT($prefix)
207 # Makefiles directory location is in a bit of flux now. To keep the
208 # Makefiles dir in the previous location, reset this variable to
209 # 'Makefiles' and regenerate configure. Note this doesn't change all
211 MAKEFILES_SUFFIX=Library/Makefiles
212 AC_SUBST(MAKEFILES_SUFFIX)
214 # HOST_INSTALL is the name of the install program in config.make so set it up
215 # to point to the install-sh script in the GNUstep tree if no system install is
217 AC_SUBST(HOST_INSTALL)
218 if test "$INSTALL" = "$ac_install_sh"; then
219 HOST_INSTALL="$prefix/$MAKEFILES_SUFFIX/$INSTALL"
221 HOST_INSTALL="$INSTALL"
224 #--------------------------------------------------------------------
225 # Process --with-defaults-root, --with-user-root,
226 # --with-local-root and --with-network-root
227 #--------------------------------------------------------------------
228 AC_MSG_CHECKING(for GNUSTEP_LOCAL_ROOT to use)
229 AC_ARG_WITH(local-root,
231 Set the GNUSTEP_LOCAL_ROOT directory. Use this option if you want
232 to have the GNUSTEP_LOCAL_ROOT directory in a non-standard place. Example:
233 --with-local-root=/usr/local/GNUstep/Local
235 GNUSTEP_LOCAL_ROOT="$withval",
236 GNUSTEP_LOCAL_ROOT="$GNUSTEP_ROOT/Local"
238 AC_MSG_RESULT($GNUSTEP_LOCAL_ROOT)
240 AC_MSG_CHECKING(for GNUSTEP_NETWORK_ROOT to use)
241 AC_ARG_WITH(network-root,
243 Set the GNUSTEP_NETWORK_ROOT directory. Use this option if you want
244 to have the GNUSTEP_NETWORK_ROOT directory. Example:
245 --with-network-root=/usr/local/GNUstep/Network
247 GNUSTEP_NETWORK_ROOT="$withval",
248 # By default we disable network root, by setting GNUSTEP_NETWORK_ROOT
249 # to be the same as GNUSTEP_LOCAL_ROOT. GNUSTEP_NETWORK_ROOT is very
250 # rarely used, and most users prefer simpler systems with shorter
251 # paths and shorter command lines. To turn on GNUSTEP_NETWORK_ROOT
252 # again, you can use the --with-network-root=xxx option; pass
253 # something like --with-network-root=/usr/GNUstep/Network on the
254 # configure command line.
255 GNUSTEP_NETWORK_ROOT="$GNUSTEP_LOCAL_ROOT"
257 AC_MSG_RESULT($GNUSTEP_NETWORK_ROOT)
259 AC_SUBST(GNUSTEP_LOCAL_ROOT)
260 AC_SUBST(GNUSTEP_NETWORK_ROOT)
262 AC_MSG_CHECKING(for GNUSTEP_USER_ROOT to use)
263 AC_ARG_WITH(user-root,
265 Set the GNUSTEP_USER_ROOT directory for all users. '~' is allowed
266 at the beginning to mean the user's home directory. Use this
267 option if you want to have the GNUSTEP_USER_ROOT directory in a non
268 default place for all users.
269 Example: --with-user-root='~/gnustep'
271 GNUSTEP_USER_ROOT="$withval",
272 # The default is to have user roots in ~/GNUstep
273 GNUSTEP_USER_ROOT="~/GNUstep"
275 AC_MSG_RESULT($GNUSTEP_USER_ROOT)
276 AC_SUBST(GNUSTEP_USER_ROOT)
278 #--------------------------------------------------------------------
279 # Is the system flattened?
280 #--------------------------------------------------------------------
281 AC_MSG_CHECKING(for flattened directory structure)
282 AC_ARG_ENABLE(flattened,
283 [--disable-flattened Disable flattened directory structure],
284 ac_cv_flattened=$enableval,
285 ac_cv_flattened="undefined")
287 if test "$ac_cv_flattened" = "no"; then
290 GNUSTEP_FLATTENED=yes;
292 AC_SUBST(GNUSTEP_FLATTENED)
294 if test "$GNUSTEP_FLATTENED" = "yes"; then
301 #--------------------------------------------------------------------
302 # Is the system multi-platform?
303 #--------------------------------------------------------------------
305 # Multi-platform means that GNUstep.sh will determine the host
306 # platform (by running config.guess) each time that it is sourced.
307 # This is good if you are sharing your GNUstep.sh across your network
308 # (for example, mounting the makefiles via NFS), but it requires you
309 # to be able to run config.guess on your machine(s), which usually
310 # requires a development environment (compiler, libc etc).
312 # The default instead is not using multi-platform, which means the
313 # local host os, cpu and version is hardcoded in GNUstep.sh. This
314 # works nicely for a single machine using this gnustep-make
315 # installation, and it works even if you don't have development
316 # packages (gcc, binutils, libc-dev etc) installed. We had to make
317 # this the default after end-users (with no development packages
318 # installed) complained that binary packages wouldn't work (and the
319 # reason turned out to be that GNUstep.sh was running config.guess
320 # which was returning the wrong platform because the development
321 # tools needed/used to determine the platform were not available).
323 # Unless you know what you are doing, stick with the default, which is
324 # also much faster when sourcing GNUstep.sh.
326 AC_ARG_ENABLE(multi-platform,
327 [--enable-multi-platform Use run time multi-platform support],
328 ac_cv_multi_platform=$enableval,
329 ac_cv_multi_platform="undefined")
331 if test "$ac_cv_multi_platform" = "yes"; then
332 GNUSTEP_MULTI_PLATFORM=yes;
334 GNUSTEP_MULTI_PLATFORM=;
336 AC_SUBST(GNUSTEP_MULTI_PLATFORM)
338 #--------------------------------------------------------------------
339 # Build backend bundles (on by default)
340 #--------------------------------------------------------------------
341 AC_ARG_ENABLE(backend-bundle, [
342 --disable-backend-bundle Compile gui backend as a library],
343 ac_cv_backend=$enableval,
346 if test "$ac_cv_backend" = "yes"; then
351 AC_SUBST(BACKEND_BUNDLE)
353 #--------------------------------------------------------------------
354 # Miscellaneous flags and setup
355 #--------------------------------------------------------------------
356 # Strip '-g' off of CFLAGS, since debug=yes adds that anyway
357 CFLAGS=`echo $CFLAGS | sed -e 's/-g //'`
359 # Set location of GNUstep dirs for later use
360 if test "$GNUSTEP_FLATTENED" = yes; then
361 GNUSTEP_LDIR="$prefix/Library/Libraries"
362 GNUSTEP_HDIR="$prefix/Library/Headers"
364 clean_target_os=`$srcdir/clean_os.sh $target_os`
365 clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu`
366 obj_dir="$clean_target_cpu/$clean_target_os"
367 GNUSTEP_LDIR="$prefix/Library/Libraries/$obj_dir"
368 GNUSTEP_HDIR="$prefix/Library/Headers/${ac_cv_library_combo}"
371 # Check to see if the libobjc library is in our GNUSTEP_SYSTEM_ROOT.
372 # If so, there are probably other libraries that we want there also, so
373 # leave the proper includes in CPPFLAGS and LDFLAGS
374 AC_MSG_CHECKING(for custom shared objc library)
375 AC_CACHE_VAL(gs_cv_objc_libdir,
377 gs_cv_objc_libdir=NONE
378 if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
379 if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so"; then
380 gs_cv_objc_libdir="$GNUSTEP_LDIR"
382 gs_cv_objc_libdir=NONE
385 #gcc_shared_libobjc=`gcc -print-file-name=libobjc.so`
386 #if test -f "$gcc_shared_libobjc"; then
387 # gs_cv_objc_libdir=`dirname $gcc_shared_libobjc`
390 AC_MSG_RESULT($gs_cv_objc_libdir)
392 # The following are needed to compile the test programs
393 if test "$gs_cv_objc_libdir" = "$GNUSTEP_LDIR"; then
394 if test "$GNUSTEP_FLATTENED" = yes; then
395 OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers"
397 OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers/${ac_cv_library_combo}"
399 OBJC_LDFLAGS="$LDFLAGS $LIB_DIR -L$gs_cv_objc_libdir"
402 # And the following to execute them
403 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gs_cv_objc_libdir"
404 export LD_LIBRARY_PATH
406 #--------------------------------------------------------------------
407 # Miscellaneous headers (only used for compiling which_lib.c and user_home.c)
408 #--------------------------------------------------------------------
410 AC_CHECK_HEADERS(sys/param.h sys/file.h dir.h string.h stdlib.h sys/types.h dnl
411 fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h)
412 AC_CHECK_FUNCS(getpwnam getpwuid geteuid getlogin strchr)
414 #--------------------------------------------------------------------
415 # Check if libobjc was compiled with thread support.
416 #--------------------------------------------------------------------
418 AC_ARG_WITH(thread-lib,
419 [--with-thread-lib Specify alternate thread library],
420 OBJC_THREAD=$withval,
425 AC_MSG_CHECKING(whether objc has thread support)
426 saved_CFLAGS="$CFLAGS"
428 CFLAGS="$CFLAGS -x objective-c -I$srcdir $OBJC_CPPFLAGS $OBJC_LDFLAGS"
429 if test "$OBJC_RUNTIME_LIB" = "gnu"; then
430 CFLAGS="$CFLAGS -fgnu-runtime"
432 if test "$OBJC_RUNTIME_LIB" = "nx"; then
433 CFLAGS="$CFLAGS -DNeXT_RUNTIME"
435 if test "$OBJC_RUNTIME_LIB" = "apple"; then
436 CFLAGS="$CFLAGS -DNeXT_RUNTIME"
438 if test "$OBJC_THREAD" != ""; then
439 LIBS="-lobjc $LIBS $OBJC_THREAD"
440 AC_TRY_RUN([#include "config_thread.m"],
441 objc_threaded="$OBJC_THREAD",
442 objc_threaded="", objc_threaded="")
443 elif test "$host_os" = linux-gnu; then
444 LIBS="-lobjc -lpthread"
445 AC_TRY_RUN([#include "config_thread.m"], objc_threaded="-lpthread",
446 objc_threaded="", objc_threaded="-lpthread")
447 elif test "`echo $host_os|sed 's/[[0-9]].*//'|sed s/elf//`" = freebsd; then
448 LIBS="-pthread -lobjc"
449 AC_TRY_RUN([#include "config_thread.m"], objc_threaded="-pthread",
450 objc_threaded="", objc_threaded="-pthread")
451 if test x"$objc_threaded" = x""; then
452 LIBS="-lpthread -lobjc"
453 AC_TRY_RUN([#include "config_thread.m"], objc_threaded="-lpthread",
454 objc_threaded="", objc_threaded="-lpthread")
456 if test x"$objc_threaded" = x""; then
457 LIBS="-lobjc -lpcthread"
458 AC_TRY_RUN([#include "config_thread.m"], objc_threaded="-lpcthread",
459 objc_threaded="", objc_threaded="-lpcthread")
461 elif test "$MINGW32" = yes; then
462 # Mingw doesn't need anything extra for threads
464 AC_TRY_RUN([#include "config_thread.m"],
465 objc_threaded="works",
466 objc_threaded="", objc_threaded="works")
469 AC_TRY_RUN([#include "config_thread.m"],
470 objc_threaded="works",
471 objc_threaded="", objc_threaded="")
472 if test x"$objc_threaded" = x""; then
473 LIBS="-lobjc $saved_LIBS -lpthread "
474 AC_TRY_RUN([#include "config_thread.m"],
475 objc_threaded="-lpthread",
476 objc_threaded="", objc_threaded="")
478 if test x"$objc_threaded" = x""; then
479 # Solaris, OpenBSD/sparc
480 LIBS="-lobjc $saved_LIBS -lpthread -lposix4"
481 AC_TRY_RUN([#include "config_thread.m"],
482 objc_threaded="-lpthread -lposix4",
483 objc_threaded="", objc_threaded="")
485 if test x"$objc_threaded" = x""; then
486 LIBS="-lobjc $saved_LIBS -lthread "
487 AC_TRY_RUN([#include "config_thread.m"],
488 objc_threaded="-lthread",
489 objc_threaded="", objc_threaded="")
492 if test x"$objc_threaded" = x""; then
495 if test x"$objc_threaded" = x"works"; then
498 AC_MSG_RESULT(yes: $objc_threaded)
500 ac_cv_objc_threaded="$objc_threaded"
501 AC_SUBST(objc_threaded)
502 AC_SUBST(ac_cv_objc_threaded)
504 # Do not restore LIBS and CFLAGS yet as we need to test if the
505 # compiler supports native exceptions.
507 #--------------------------------------------------------------------
508 # Check if GCC supports -fobjc-exceptions, and if so, turn it on!
509 #--------------------------------------------------------------------
511 AC_ARG_ENABLE(native-objc-exceptions,
512 AC_HELP_STRING([--enable-native-objc-exceptions],
513 [use native objective-c exceptions]),
514 USE_OBJC_EXCEPTIONS=$enableval,
515 USE_OBJC_EXCEPTIONS=no)
517 AC_MSG_CHECKING(whether we should use native ObjC exceptions)
518 if test x"$USE_OBJC_EXCEPTIONS" = x"yes"; then
519 # What we want to do: set USE_OBJC_EXCEPTIONS to yes if we can compile
520 # something with @try/@catch/@finally in it.
521 if test ! ${GCC} = "yes" ; then
522 USE_OBJC_EXCEPTIONS=no
523 AC_MSG_RESULT(no: compiler isn't gcc)
525 CFLAGS="$CFLAGS -fobjc-exceptions"
528 #include <objc/Object.h>
530 int main(int argc, char **argv)
545 ]], USE_OBJC_EXCEPTIONS=yes, USE_OBJC_EXCEPTIONS=no)
546 AC_MSG_RESULT($USE_OBJC_EXCEPTIONS)
548 if test x$USE_OBJC_EXCEPTIONS = xno; then
549 AC_MSG_NOTICE([Native objective-c exceptions were requested, but the compiler])
550 AC_MSG_NOTICE([doesn't support them.])
551 AC_MSG_ERROR([compiler doesn't support native objective-c exceptions])
554 AC_MSG_RESULT(not requested by user)
557 AC_SUBST(USE_OBJC_EXCEPTIONS)
559 # Restore LIBS and CFLAGS - we are going to compile C code in the next
562 CFLAGS="$saved_CFLAGS"
564 #--------------------------------------------------------------------
565 # Check if compiler supports -MMD -MP to generate %.d files ...
566 #--------------------------------------------------------------------
568 AC_MSG_CHECKING(if the compiler supports autodependencies)
570 # What we want to do: set AUTO_DEPENDENCIES to yes if gcc => 3.x
572 if test ! ${GCC} = "yes" ; then
574 AC_MSG_RESULT(no: it's not gcc)
576 # Running gcc -dumpversion we get something like 2.95.4 or
577 # egcs-2.91.66 or 3.0.2 or 3.1 20011211
578 # We want to discard anything but the major number.
579 # Explanation of the regexp -
580 # \(^[^0-9]*\) matches beginning of line and following non numeric chars
581 # \([0-9][0-9]*\) matches 1 or more numeric chars (this is the 2^nd
583 # \([^0-9].*\) matches a non numeric char followed by anything
584 # /\2/ replace the whole lot with the 2^nd subpattern
585 gs_cv_gcc_major_version=`${CC} -dumpversion | sed "s/\([[^0-9]]*\)\([[0-9]][[0-9]]*\)\([[^0-9]].*\)/\2/"`;
587 if test "${gs_cv_gcc_major_version}" -ge "3" ; then
588 AUTO_DEPENDENCIES=yes
589 AC_MSG_RESULT(yes: gcc major version is ${gs_cv_gcc_major_version})
592 AC_MSG_RESULT(no: gcc major version is ${gs_cv_gcc_major_version})
596 AC_SUBST(AUTO_DEPENDENCIES)
601 #--------------------------------------------------------------------
602 # Shall we strip makefiles upon installation ?
603 #--------------------------------------------------------------------
605 # Stripping makefiles removes comments and newlines from them. The
606 # resulting stripped makefiles execute around 5% faster on average.
607 # Too little for it to be worth for the common user who's more
608 # interested in the comments :-) so it's disabled by default.
609 AC_MSG_CHECKING(if we should strip makefiles after installation)
610 AC_ARG_ENABLE(strip-makefiles,
611 [--enable-strip-makefiles Enable stripping makefiles after installation],
612 ac_cv_strip_makefiles=$enableval,
613 ac_cv_strip_makefiles="undefined")
615 if test "$ac_cv_strip_makefiles" = "yes"; then
616 GNUSTEP_STRIP_MAKEFILES=strip;
619 GNUSTEP_STRIP_MAKEFILES=;
622 AC_SUBST(GNUSTEP_STRIP_MAKEFILES)
625 #--------------------------------------------------------------------
626 # Disable updating the obsolete directory structure
627 #--------------------------------------------------------------------
629 AC_ARG_ENABLE(move-obsolete,
630 [--disable-move-obsolete Disable moving obsolete dir structure],
631 gs_move_obsolete=$enableval,
632 gs_move_obsolete=yes)
634 if test "$gs_move_obsolete" = "yes"; then
635 GNUSTEP_MOVE_OBSOLETE=move_obsolete;
637 GNUSTEP_MOVE_OBSOLETE=
638 AC_MSG_NOTICE(Old GNUstep directories will not be moved)
640 AC_SUBST(GNUSTEP_MOVE_OBSOLETE)
642 #--------------------------------------------------------------------
644 #--------------------------------------------------------------------
645 AC_MSG_CHECKING(for the version of gnustep-make we are compiling)
647 AC_MSG_RESULT($GNUSTEP_MAKE_VERSION)
648 AC_SUBST(GNUSTEP_MAKE_VERSION)
649 AC_SUBST(GNUSTEP_MAKE_MAJOR_VERSION)
650 AC_SUBST(GNUSTEP_MAKE_MINOR_VERSION)
651 AC_SUBST(GNUSTEP_MAKE_SUBMINOR_VERSION)
653 #-------------------------------------------------------------------
654 # Record the 'clean' target_os, target_cpu and target_vendor
655 #-------------------------------------------------------------------
656 # This is just for efficiency, so that core/make/GNUmakefile does not
657 # have to compute clean_target_os from target_os (and similar) by
658 # running shell scripts each time you 'make' something inside
659 # gnustep-make. We basically compute them once now, and cache them
660 # forever. It is also used by GNUstep.sh when multi-platform is
662 clean_target_os=`$srcdir/clean_os.sh $target_os`
663 clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu`
664 clean_target_vendor=`$srcdir/clean_cpu.sh $target_vendor`
665 AC_SUBST(clean_target_os)
666 AC_SUBST(clean_target_cpu)
667 AC_SUBST(clean_target_vendor)
670 #--------------------------------------------------------------------
671 # Produce the output files
672 #--------------------------------------------------------------------
673 AC_CONFIG_FILES([config.make openapp debugapp opentool
674 executable.template GNUmakefile GNUstep.sh GNUstep.csh fixpath.sh
675 gnustep-make.spec GNUsteprc])
676 AC_CONFIG_COMMANDS([default],
677 [[chmod a+x openapp debugapp opentool fixpath.sh executable.template]],