mmake-2.3/0040775000076400007640000000000010033156031011120 5ustar haukhaukmmake-2.3/CHANGES0100644000076400007640000000637110033155461012123 0ustar haukhauk CHANGES version 2.3 This file summarizes changes made since mmake 1.26 Version 2.3: * This release is based on a patch from Ryan David Brown ; The patch adds support for building an OS X application bundle and for building individual packages. A new JAVADOC_PACKAGES variable was also added to the Makefile. This variable can be used to specify packages to build javadocs for (the default is to build javadocs for all packages). Finally, the generated Makefile also include a makefile.vars file that can be used to override default variables used in the Makefile. Credits for this release goes to Ryan David Brown. Version 2.2.1: * Fixed the potential circular dependency problem in the dependency graph, which occur when there is a dual dependency between two or more classes. The trick is to let .class files depend on only .java files in the graph, not on other .class files. Thanks to Tim Oberg . (Addendum, With this dependency graph strategy the built-in dependency check in the java compiler may kick in and compile depending java files in the "background" before make will get a chance to compile the file. This is not a problem, (on the contrary) but can give the impression that make forgot to compile classes, when looking at the output from make.) Version 2.2: * Added uninstall target * CPP now runs first, before any .java files are compiled. This, to avoid errors in a situation where a.xjava depends on b.xjava. CPP will also run first in the depend target for the same reason. * Removed unnecessary multiple dependencies for .xjava files in JAVA_OBJS. Version 2.1.1: * Refactored the unnecessary complicated eval construct - thanks to Trond Michelsen Version 2.1: * Configure script and Makefile. The configure script will setup mmake with the local Perl-interpreter and with jikes as the java compiler. If jikes is not found, javac is used instead. * Added prototyping to avoid warning messages with Perl version 5.6 or later * tags target - Submitted by Jesper Hansen Version 2.0: * Added support for installing resource files together with class files. Resource files are files used by an application or Applet. Types of resource files are, *.properties, *.gif or *.au. For example, if you have a directory in the package structure with only property files (e.g. for Localized ResourceBundles) like: org/mydomain/myapplication/resources/ then this directory and the property files will be installed when you do a 'make install'. This is especially usefull when working with the new Servlet 2.2 api and web-applications, and you want to install property files into e.g. WEB-INF/classes/org/mydomain/myapplication/resources. * Added dependency check for resource files as well. When a jar file is created it will now be re-buildt if a resource file was changed. Thanks to "David D. Kilzer". Version 1.31: * Escaping the $ delimiter in inner classes. `make install' had problem installing inner-classes unless the delimiter was escaped. * Removed the GNU find syntax and falling back to using standard find syntax when searching for source files. * Updated the README file. * Added version options to the script mmake-2.3/mmake.in0100644000076400007640000005750010033155137012552 0ustar haukhauk#!@PERL@ -w # # (c) 1998-2004 Jan-Henrik Haukeland, # =head1 NAME mmake - generate a Java Makefile =head1 SYNOPSIS mmake [ -d | -v ] =head1 DESCRIPTION This program will generate a Makefile for Java source files. Use the I<-d> option to accept all defaults. After running mmake, you will obtain a Makefile in the directory from where you started the program. The Makefile will handle java files in the current directory and in any sub-directories. Use the generated Makefile with mmake as follows: To compile Java files just type B. It's also possible to run make with one of the following targets: I Where 'make doc' runs javadoc on the source files, it will only work for files in a package. The command 'make clean' removes class files and other temporary files. The command 'make jar' creates a jar file with all class files (and other files of your choice, see the JAR_OBJS variable in the Makefile). The command 'make srcjar' creates a jar file with all java files. The command 'make bundle' creates a Mac OS X Application Bundle with all the jar file. The command 'make install' will install a jar file, app bundle, class files and any shell wrappers you have made. (A shell script must have the extension .sh to be installed). Use 'make uninstall' to remove installed files. The command 'make help', shows a help text with available targets. The command 'make tags' will generate a tag file for Emacs. And finally the command 'make depend' creates a dependency graph for the class files. (The dependency graph will be put in a file called I, which is included in the Makefile) You don't have to run mmake each time you add a new java file to your project. You can add as many new java files as you like, the Makefile will find them. This is the case as long as you don't add a new package. In that case, you must either run mmake again or update the PACKAGE variable in the Makefile. This is because the Makefile uses this variable to find directories with java files. The program mmake is able to create a dependency graph for your java files. To do this, it needs the I compiler from IBM. Get jikes from B.You would probably be more content with jikes anyhow, since it is much faster than javac. To create a dependencies graph, do a I before running I. =head1 A NOTE ON INSTALLATION The Makefile created with mmake will do a fair job installing the different files that makes up your system. It uses the following Makefile variables when it conducts the install routine: =over 4 =item * PREFIX =item * CLASS_DIR =item * JAR_DIR =item * BUNDLE_DIR =item * DOC_DIR =item * SCRIPT_DIR =back =head2 PREFIX This variable will be prepended to all other directory variables above. It is used for grouping the other directories into one root directory. If you don't want that, you may simply set the variable to an empty string in the Makefile. If the variable is empty you could still use it on the command line when you run make, for instance for a one-shoot installation like: B =head2 CLASS_DIR This variable denotes the top directory from where all class files will be installed. Its default value is B, which I believe is a good value. B If you I want to install any class files (because you are, for example, only going to use a jar file), set this variable to an empty string and no class files will be installed. Resource files will also be installed below this directory if such files are present in a package structure. This is useful if you are using e.g. ResourceBundles to Localize your application and have your property files in it's own directory in the package structure. =head2 JAR_DIR This variable tells the Makefile where to install the jar file. The default value is B, which is also a good default value. =head2 BUNDLE_DIR This variable tells the Makefile where to install the app bundle. The default value is B, which is also a good default value. =head2 DOC_DIR When you run javadoc, all the html files will be put into this directory. Its default value is B. You should probably keep that name, but then again, you may change it as you like. =head2 SCRIPT_DIR The Makefile uses this variable to install any shell wrapper-scripts that you have created. If you write an application, it is always nice for the user that you provide a wrapper script to start the application. Its default value is B. (The Makefile will only install shell-scripts that has the extension .sh. The mmake script will tell the Makefile where to look for shell-scripts) =head2 INSTALLATION SUMMARY If you keep the default values you will get an installation tree that looks like this: `-- PREFIX |-- bin |-- classes | `-- package <--- Example of a sub-directory | |-- sub-package1 | |-- sub-package2 | `-- sub-package3 |-- doc | `-- api-docs `-- lib =head1 USING THE C-PREPROCESSOR This is a excellent tool for managing projects with several different versions. The idea behind using the C preprocessor with Java is to better manage different versions more easily. This is done by using CPP conditional statements in the source files. I would strongly advise you not to use CPP to redefine the Java language itself. To use the C preprocessor together with Java, you can change the name of the source files that you want to preprocess -- from .java to .xjava. The Makefile has a rule to build .class files from .xjava files. It is B necesarry to change every file from .java to .xjava. The Makefile will work well and consistently in an environment of both .java and .xjava files. (E.g. 'make clean' will only remove .java files that were created from a .xjava file. Other java files will, of course, I be removed.) You can now use cpp Conditionals in Your Java-code, for example, as follows: #ifdef JAVA1_1 [code1] #else [code2] #endif The JAVA1_1 label in the above example is tested against the VERSION variable in the Makefile. That is, if the VERSION variable is JAVA1_1, then [code1] would be compiled and [code2] left out. Likewise, if VERSION is something else than JAVA1_1, then [code2] would be compiled and [code1] left out of the resulting .class file. =head1 NOTES mmake will give you I Makefile for managing your Java files. Although it's easy to setup and use mmake in a recursive makefile context, you don't want to do that. To see why, read the excellent article: B at I =head1 DEPENDENCIES mmake will need the following: =over 4 =item * Perl 5.x =item * Gnu make =item * Gnu xargs (recommended) =back =head1 AUTHOR Jan-Henrik Haukeland =cut use strict; use vars qw($opt_d $opt_v); use Getopt::Std; require 5.000; # Need this perl version at least # Prototypes sub getline($$); sub getdirline($$); sub getpreviewline($$$); sub do_get(); sub do_find($$); my $REVISION= sprintf("%d.%02d", q$Revision: 1.13 $ =~ /(\d+)\.(\d+)/); my $VERSION= "2.3"; # The program version (my $PROG = $0)=~ s,.*/,,; # This Program name (usually 'mmake') my $M= "Makefile"; # The Java Makefile my @packages= (); # Array holding packages, i.e. subdirectories my @all_packages= (); my @scripts= (); # Array holding shell-script directories my @resources= (); # Array holding resource files my $toplevel= ""; # Defined if toplevel java files # Parse command line options getopts("dv") || die "Usage: $PROG [ -d | -v ]\n"; if ( defined $opt_v ) { print "This is mmake, version $VERSION\n"; exit(0); } # --------------------- # Assign macro defaults # --------------------- my $javac= "@JAVAC@"; my $jflags= ""; my $javadoc= "javadoc"; my $jdocflags= "-version -author"; my $jar= "jar"; my $jarflags= "cvf0"; my $jarfile= ""; my $appfile= ""; my $prefixdir= ""; my $docdir= "doc/api-docs"; my $jardir= "lib"; my $appdir= "lib"; my $classdir= "classes"; my $bindir= "bin"; my $cpp= "cpp"; my $cppflags= "-C -P"; if (-t and ( !$opt_d )) { # Let the user override the defaults print "Give Makefile variables or just type [enter] for default\n\n"; $javac= getline("JAVAC", $javac); $jflags= getline("JAVAC flags", $jflags); $javadoc= getline("JAVADOC", $javadoc); $jdocflags= getline("JAVADOC flags", $jdocflags); $jar= getline("JAR", $jar); $jarflags= getline("JAR flags", $jarflags); $jarfile= getline("JAR File name (e.g. foobar.jar)", $jarfile); $appfile= getline("APP Bundle name (e.g. foobar.app)", $appfile); $prefixdir= getdirline("PREFIX dir. (Will be prepended to other ". "install dir)", $prefixdir); $docdir= getpreviewline("INSTALL dir. for javadoc html-files.", "$prefixdir$docdir", $docdir); $classdir= getpreviewline("INSTALL dir. for class files", "$prefixdir$classdir", $classdir); $bindir= getpreviewline("INSTALL dir. for shell-scripts", "$prefixdir$bindir", $bindir); $jardir= getpreviewline("INSTALL dir. for the jar file ", "$prefixdir$jardir", $jardir); $appdir= getpreviewline("INSTALL dir. for the app bundle ", "$prefixdir$appdir", $appdir); if( getline("Use CPP [y|n] ?", "no") =~ /^y/i ) { $cpp= getline("CPP", $cpp); $cppflags= getline("CPP flags", $cppflags); } print "\n"; } # Locate the java files/packages do_get(); die "No java source files found\n" unless @packages or $toplevel; # If an old Makefile exists, rename it if (-f $M) { rename($M, "$M.old") or die "$PROG: Cannot rename local Makefile.\n"; } # Then create the new makefile open(MAKEFILE, ">$M") || die "$PROG: Cannot create '$M': $!\n"; print MAKEFILE < [Installing jar file, \$(JAR_FILE) in \$(JAR_DIR)] " \$(INSTALL_DIR) \$(JAR_DIR) \$(check-exit) \$(INSTALL_FILE) \$(JAR_FILE) \$(JAR_DIR) \$(check-exit) uninstall:: \@echo "===> [Removing jar file, \$(JAR_FILE) from \$(JAR_DIR)] " \$(RM) \$(JAR_DIR)/\$(JAR_FILE) \$(check-exit) else install:: \@echo "No jar install dir defined" endif clean:: \$(RM) \$(JAR_FILE) else jar: \@echo "No jar file defined" endif SRC_JAR_FILE := \$(basename \$(JAR_FILE))-src\$(suffix \$JAR_FILE) # Source jar target srcjar : \$(SRC_JAR_FILE) \$(SRC_JAR_FILE): \$(JAVA_SRC) \$(RESOURCE_OBJS) \$(FIND) \$(TOPLEVEL) \$(JAR_OBJS: .class=.java) -print | \$(XARGS) \\ \$(JAR) \$(JAR_FLAGS) \$\@ # Bundle target ifneq (\$(strip \$(BUNDLE_FILE)),) bundle: \$(BUNDLE_FILE) \$(BUNDLE_FILE) : \$(JAR_FILE) \$(INSTALL_DIR) \$(BUNDLE_FILE)/Contents/Resources/Java \$(check-exit) \$(INSTALL_DIR) \$(BUNDLE_FILE)/Contents/MacOS \$(check-exit) \$(INSTALL_PROG) \$(JAVA_STUB) \$(BUNDLE_FILE)/Contents/MacOS/ \\ \$(check-exit) ( \$(CAT) \$(BUNDLE_RESOURCE_DIR)/Info.plist | \$(SED) -e \\ s/VERSION/\$(VERSION)/ >98762infoplist876 ) \$(check-exit) \$(INSTALL_FILE) 98762infoplist876 \\ \$(BUNDLE_FILE)/Contents/Info.plist \$(check-exit) \$(RM) 98762infoplist876 \$(check-exit) \$(INSTALL_FILE) \$(JAR_FILE) \$(BUNDLE_FILE)/Contents/Resources/Java checkexit="";for f in \$(BUNDLE_RESOURCES); do \\ \$(INSTALL_FILE) \$(BUNDLE_RESOURCE_DIR)\$\$f \$(BUNDLE_FILE)/Contents/Resources/ \\ || checkexit=\$?; \\ done; test -z \$\$checkexit ifneq (\$(strip \$(BUNDLE_DIR)),) # This is probably bad, but I don't know how else to do it install:: \$(BUNDLE_FILE) \@echo "===> [Installing app bundle, \$(BUNDLE_FILE) in \$(BUNDLE_DIR)] " \$(INSTALL_DIR) \$(BUNDLE_DIR) \$(check-exit) \$(CP) -R \$(BUNDLE_FILE) \$(BUNDLE_DIR) \$(check-exit) \$(INSTALL_FILE) \$(BUNDLE_FILE) \$(BUNDLE_DIR) \$(check-exit) uninstall:: \@echo "===> [Removing bundle file, \$(BUNDLE_FILE) from \$(BUNDLE_DIR)] " \$(RM) -r \$(BUNDLE_DIR)/\$(BUNDLE_FILE) \$(check-exit) else install:: \@echo "No bundle install dir defined" endif clean:: \$(RM) -r \$(BUNDLE_FILE) else bundle: \@echo "No bundle file defined" endif # Install target for Classes and Resources ifneq (\$(strip \$(CLASS_DIR)),) install:: \$(JAVA_OBJS) \@echo "===> [Installing classes in \$(CLASS_DIR)] " \$(INSTALL_DIR) \$(CLASS_DIR) \$(check-exit) \$(foreach dir, \$(JAVA_DIRS) \$(RESOURCE_DIRS), \\ \$(INSTALL_DIR) \$(CLASS_DIR)/\$(dir) \$(check-exit)) \$(foreach file, \$(INSTALL_OBJS), \\ \$(INSTALL_FILE) \$(file) \$(CLASS_DIR)/\$(file) \\ \$(check-exit)) uninstall:: \@echo "===> [Removing class-files from \$(CLASS_DIR)] " \$(foreach file, \$(INSTALL_OBJS), \\ \$(RM) \$(CLASS_DIR)/\$(file) \\ \$(check-exit)) else # Print a warning here if you like. (No class install dir defined) endif # Depend target ifeq (\$(findstring jikes,\$(JAVAC)),jikes) depend: \$(XJAVA_OBJS) \$(DEPEND_OBJS) ( \$(CAT) \$(DEPEND_OBJS) | \$(SED) -e '/\\.class\$\$/d' \\ -e '/.*\$\$.*/d' > \$(MAKEFILE_DEPEND); \$(RM) \$(DEPEND_OBJS); ) else depend: \@echo "mmake needs the jikes compiler to build class dependencies" endif # Doc target ifneq (\$(strip \$(JAVADOC_PACKAGES)),) doc: \$(JAVA_SRC) \@echo "===> [Installing java documentation in \$(DOC_DIR)] " \$(INSTALL_DIR) \$(DOC_DIR) \$(check-exit) \$(JAVADOC) \$(JAVADOC_FLAGS) -d \$(DOC_DIR) \$(JAVADOC_PACKAGES) else doc: \@echo "You must put your source files in a package to run make doc" endif # Script target ifneq (\$(strip \$(SCRIPT_OBJS)),) all:: \$(SCRIPT_OBJS) ifneq (\$(strip \$(SCRIPT_DIR)),) install:: \$(SCRIPT_OBJS) \@echo "===> [Installing shell-scripts in \$(SCRIPT_DIR)] " \$(INSTALL_DIR) \$(SCRIPT_DIR) \$(check-exit) \$(foreach file, \$(SCRIPT_OBJS), \\ \$(INSTALL_PROG) \$(file) \$(SCRIPT_DIR) \$(check-exit)) uninstall:: \@echo "===> [Removing shell-scripts from \$(SCRIPT_DIR)] " \$(foreach file, \$(SCRIPT_OBJS), \\ \$(RM) \$(SCRIPT_DIR)/\$(file) \$(check-exit)) else # Print a warning here if you like. (No script install dir defined) endif clean:: rm -f \$(SCRIPT_OBJS) endif # Tag target tags: \@echo "Tagging" \$(ETAGS) \$(filter-out \$(XJAVA_OBJS), \$(JAVA_SRC)) \$(XJAVA_SRC) # Various cleanup routines clean:: \$(FIND) . \\( -name '*~' -o -name '*.class' \\) -print | \\ \$(XARGS) \$(RM) \$(FIND) . -name '*.u' -print | \$(XARGS) \$(RM) ifneq (\$(strip \$(XJAVA_SRC)),) clean:: \$(RM) \$(XJAVA_OBJS) endif # ---------------------------------------- # Include the dependency graph if it exist # ---------------------------------------- MAKEFILE_DEPEND = makefile.dep DEPEND = \$(wildcard \$(MAKEFILE_DEPEND)) ifneq (\$(DEPEND),) include \$(MAKEFILE_DEPEND) endif #package targets EOT # print package targets foreach my $package (@all_packages, @packages) { print MAKEFILE "$package : \$(call PACKAGE_OBJS,$package)\n"; } print MAKEFILE "\n"; close(MAKEFILE); print "'$M' created\n"; exit(0); # ------------------------------------------------------------------------- # # ----------------------------- Subroutines ------------------------------- # # ------------------------------------------------------------------------- # sub getline($$) { my $key= shift; my $dir= shift; my $j; print "$key [$dir]: "; chomp($j= ); return ($j =~ /\w/ ? $j : $dir); } sub getdirline($$) { my $key= shift; my $dir= shift; my $j; print "$key [$dir]: "; chomp($j= ); if ( $j =~ /(\w)|(^\.)/ ) { $j .="/" if ( substr($j, -1) ne "/" ); return $j; } return $dir; } sub getpreviewline($$$) { my $key= shift; my $preview= shift; my $dir= shift; my $j; print "$key [$preview]: "; chomp($j= ); return ($j =~ /\w/ ? $j : $dir); } sub do_get() { my $cmd; # Get directories with java files $cmd= q$find . \( -name "*.java" -o -name "*.xjava" \) $ .q$-print 2>/dev/null |$; @packages= do_find("p", $cmd); return unless @packages or $toplevel; # Get directories with shell-script files $cmd= q$find . \( -name "*.sh" \) -print 2>/dev/null |$; @scripts= do_find("s", $cmd); # Get directories with *only* resource files $cmd= q$find . \( -name "*.properties" -o -name "*.gif" -o -name $ .q$"*.au" \) -print 2>/dev/null |$; # A hash with package values my %p= map { ($_), $_ } @packages; my %ap=map { ($_), $_ } (map {get_parents($_);} @packages); # Set only elements located in a package and not # already in the packages array @resources= grep { ! $p{$_} && $_ =~ /\./ } do_find("p", $cmd); @all_packages= grep { ! $p{$_} } keys(%ap); } sub do_find($$) { my $mode= shift; # p = use package syntax my $cmd= shift; my %unique= (); open(MYDIR, $cmd) or die "$PROG: Can't run the \"find(1)\" command: $!\n"; # Get the directories while () { chomp; s,(.*)/.*,$1,; s,^./,,; s,/,.,g if ( $mode eq "p" ); $unique{$_}= undef if $_ =~ /\w+/; $toplevel= "." if $_ =~ /\./; } close(MYDIR); return ( keys(%unique) ) ; } sub get_parents($) { my @a = split /\./,$_[0]; my @ret = shift @a; push @ret, join '.', $ret[-1], $_ foreach @a; return @ret; } mmake-2.3/configure0100775000076400007640000021347610033156031013041 0ustar haukhauk#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.57. # # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 # Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi # Support unset when possible. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" # Sed expression to map a string onto a valid variable name. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` exec 6>&1 # # Initializations. # ac_default_prefix=/usr/local ac_config_libobj_dir=. cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="mmake.in" 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PERL JAVAC LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/-/_/g'` eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute paths. for ac_var in exec_prefix prefix do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* | NONE | '' ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_confdir=`(dirname "$0") 2>/dev/null || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 { (exit 1); exit 1; }; } else { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi fi (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 { (exit 1); exit 1; }; } srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] _ACEOF cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] _ACEOF cat <<\_ACEOF _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF _ACEOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be # absolute. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_srcdir/configure.gnu; then echo $SHELL $ac_srcdir/configure.gnu --help=recursive elif test -f $ac_srcdir/configure; then echo $SHELL $ac_srcdir/configure --help=recursive elif test -f $ac_srcdir/configure.ac || test -f $ac_srcdir/configure.in; then echo $ac_configure --help else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi cd $ac_popdir done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit 0 fi exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.57. Invocation command line was $ $0 $@ _ACEOF { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` hostinfo = `(hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_sep= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" # Get rid of the leading space. ac_sep=" " ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Be sure not to use single quotes in there, as some shells, # such as our DU 5.0 friend, will then `close' the trap. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, { (set) 2>&1 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------- ## ## Output files. ## ## ------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo sed "/^$/d" confdefs.h | sort echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core core.* *.core && rm -rf conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; *) . ./$cache_file;; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value" case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f $ac_dir/shtool; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} { (exit 1); exit 1; }; } fi ac_config_guess="$SHELL $ac_aux_dir/config.guess" ac_config_sub="$SHELL $ac_aux_dir/config.sub" ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL=$ac_install_sh fi fi echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_PERL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PERL in [\\/]* | ?:[\\/]*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="not found" ;; esac fi PERL=$ac_cv_path_PERL if test -n "$PERL"; then echo "$as_me:$LINENO: result: $PERL" >&5 echo "${ECHO_T}$PERL" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test "${PERL}" = "not found" then { { echo "$as_me:$LINENO: error: ==> Install Perl and add it to your PATH" >&5 echo "$as_me: error: ==> Install Perl and add it to your PATH" >&2;} { (exit 1); exit 1; }; } fi # Extract the first word of "jikes", so it can be a program name with args. set dummy jikes; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_JAVAC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$JAVAC"; then ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_JAVAC="jikes" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi JAVAC=$ac_cv_prog_JAVAC if test -n "$JAVAC"; then echo "$as_me:$LINENO: result: $JAVAC" >&5 echo "${ECHO_T}$JAVAC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test "${JAVAC}" != "jikes" then # Extract the first word of "javac", so it can be a program name with args. set dummy javac; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_JAVAC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$JAVAC"; then ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_JAVAC="javac" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi JAVAC=$ac_cv_prog_JAVAC if test -n "$JAVAC"; then echo "$as_me:$LINENO: result: $JAVAC" >&5 echo "${ECHO_T}$JAVAC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test "${JAVAC}" != "javac" then { { echo "$as_me:$LINENO: error: ==> Could not find jikes or javac on your system" >&5 echo "$as_me: error: ==> Could not find jikes or javac on your system" >&2;} { (exit 1); exit 1; }; } fi fi echo "$as_me:$LINENO: result: ==> mmake will use '${JAVAC}' as its java compiler" >&5 echo "${ECHO_T}==> mmake will use '${JAVAC}' as its java compiler" >&6 ac_config_files="$ac_config_files Makefile mmake" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then we branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. cat >confdef2opt.sed <<\_ACEOF t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g t quote s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g t quote d : quote s,[ `~#$^&*(){}\\|;'"<>?],\\&,g s,\[,\\&,g s,\],\\&,g s,\$,$$,g p _ACEOF # We use echo to avoid assuming a particular line-breaking character. # The extra dot is to prevent the shell from consuming trailing # line-breaks from the sub-command output. A line-break within # single-quotes doesn't work because, if this script is created in a # platform that uses two characters for line-breaks (e.g., DOS), tr # would break. ac_LF_and_DOT=`echo; echo .` DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` rm -f confdef2opt.sed ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi # Support unset when possible. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" # Sed expression to map a string onto a valid variable name. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by $as_me, which was generated by GNU Autoconf 2.57. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.57, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir INSTALL="$INSTALL" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "mmake" ) CONFIG_FILES="$CONFIG_FILES mmake" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@PERL@,$PERL,;t t s,@JAVAC@,$JAVAC,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be # absolute. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; *) # Relative if test -f "$f"; then # Build tree echo $f elif test -f "$srcdir/$f"; then # Source tree echo $srcdir/$f else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@abs_srcdir@,$ac_abs_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t s,@builddir@,$ac_builddir,;t t s,@abs_builddir@,$ac_abs_builddir,;t t s,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t s,@INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi mmake-2.3/Makefile.in0100644000076400007640000000300110032243632013155 0ustar haukhauk# # SYNOPSIS # make {install|clean|uninstall} # # AUTHOR: # Jan-Henrik Haukeland, # # CVS INFO # $Id: Makefile.in,v 1.3 2001/02/10 21:57:42 hauk Exp $ # Programs (with common options): SHELL = /bin/sh RM = /bin/rm -f INSTALL = @INSTALL@ INSTALL_PROG = $(INSTALL) -m $(MODE_PROGS) INSTALL_FILE = $(INSTALL) -m $(MODE_FILES) INSTALL_DIR = $(INSTALL) -m $(MODE_DIRS) -d # Install modes MODE_PROGS = 555 MODE_FILES = 444 MODE_DIRS = 755 # ------------------------------------------------------------------- # prefix = @prefix@ exec_prefix = @prefix@ BINDIR = @bindir@ MANDIR = @mandir@/man1 # ------------------------------------------------------------------- # # Name of program to build PROG = mmake MAN_OBJS= mmake.1 # ------------------------------------------------------------------- # define check-exit || exit 1 endef # ------- # Targets # ------- .PHONY: clean install uninstall default: @echo "Run 'make install' to install mmake in $(BINDIR)" clean:: $(RM) *~ \#* $(PROG) # remove configure files clean:: $(RM) config.cache config.log config.status install:: $(PROG) $(INSTALL_DIR) $(BINDIR) $(check-exit) $(INSTALL_DIR) $(MANDIR) $(check-exit) $(INSTALL_PROG) $(PROG) $(BINDIR) $(check-exit) $(foreach file, $(MAN_OBJS), \ $(INSTALL_FILE) $(file) $(MANDIR)/$(file) \ $(check-exit)) uninstall:: $(RM) $(BINDIR)/$(PROG) $(check-exit) $(foreach file, $(MAN_OBJS), \ $(RM) $(MANDIR)/$(file) \ $(check-exit)) mmake-2.3/README0100644000076400007640000000622710033156025012005 0ustar haukhaukQUICK START ----------- This readme serves as a quick start, please use `man mmake' for documentation on the mmake script. Installation: ------------- - ./configure - make install - man mmake This will install mmake and the man-file in /usr/local/bin and /usr/local/man/man1 respectively. If you want another location than /usr/local, run configure with the prefix options, like so: ./configure --prefix= Using the script: ----------------- If you have structured your java files into packages, run mmake in the topmost directory: `-- src <-- Run mmake in this directory `-- org <-- Package structure starts here `-- acme |-- package1 |-- package2 `-- package3 If you don't use packages, simply run mmake in the same directory as your java files. mmake will give you one Makefile for managing your Java files and package-structure. Although it's easy to setup and use mmake in a recursive make-file context, you really don't want that. To see why, read the excellent article: 'Recursive Make Considered Harmful' at http://www.canb.auug.org.au/~millerp/rmch/recu-make-cons-harm.html Compiling: ---------- Before you conduct a build you may have to set the CLASSPATH environment variable. This could be done in the shell from where you run make, or inserted explicit into the Makefile. Here's an example on how to set the CLASSPATH variable in the Makefile. # # Example: Append Java Servlet Development Kit and current dir. # to the CLASSPATH environment variable # export CLASSPATH := $(CLASSPATH):/usr/local/common/servlet-api.jar:. Dependencies: ------------- The built-in dependency check in the java compiler may/will kick in and compile depending java files in the "background" before make will get a chance to compile the file. This is not a problem, (on the contrary) but can give the impression that make forgot to compile classes, when looking at the output from make. Testing mmake: -------------- See the README file in the tildeslash sub-directory Notes: ------ - We use GNU xargs when building the jar file for a reason - to avoid a situation where the shell's command buffer is exceeded. This could happen if lots of stuff is going into the jar file and the build command was something like (it looks nicer though): %.jar: $(JAVA_OBJS) $(RESOURCE_OBJS) $(JAR) $(JAR_FLAGS) $(JAR_FILE) $(JAVA_OBJS) $(RESOURCE_OBJS) GNU xargs has a default command-line buffer that defaults up to 20k, while a POSIX.1 system is only guaranteed to have a 4k shell command-line buffer (although it's usually larger). This is also the reason why xargs is used in the clean target together with find. - Intermediate .java files produced from .xjava files are not deleted after a build is conducted. This is not a bug, but a feature - because it's then not necessary to run CPP if there is a dependency between a regular .java file and a .xjava file and the .xjava file was not changed. - The uninstall target only remove installed files, not installed directories. - When you have created a Makefile with mmake, try 'make help' to see a list of all the available targets. - See also the CHANGES file for information mmake-2.3/configure.in0100644000076400007640000000125110032243632013426 0ustar haukhaukdnl Autoconfigure input file for mmake dnl Jan-Henrik Haukeland, dnl dnl Process this file with autoconf to produce a configure script. dnl AC_INIT(mmake.in) dnl Checks for programs. AC_PROG_INSTALL AC_PATH_PROG(PERL, perl, [not found]) if test "${PERL}" = "not found" then AC_MSG_ERROR([==> Install Perl and add it to your PATH]) fi AC_CHECK_PROG(JAVAC, jikes, jikes) if test "${JAVAC}" != "jikes" then AC_CHECK_PROG(JAVAC, javac, javac) if test "${JAVAC}" != "javac" then AC_MSG_ERROR([==> Could not find jikes or javac on your system]) fi fi AC_MSG_RESULT([==> mmake will use '${JAVAC}' as its java compiler]) AC_OUTPUT(Makefile mmake) mmake-2.3/install-sh0100644000076400007640000001272110032243632013122 0ustar haukhauk#! /bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of M.I.T. not be used in advertising or # publicity pertaining to distribution of the software without specific, # written prior permission. M.I.T. makes no representations about the # suitability of this software for any purpose. It is provided "as is" # without express or implied warranty. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: else instcmd=mkdir fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 mmake-2.3/tildeslash/0040775000076400007640000000000010033145622013260 5ustar haukhaukmmake-2.3/tildeslash/Makefile0100644000076400007640000002510010033145622014711 0ustar haukhauk# # Makefile created at Fri Apr 2 04:05:33 2004, by mmake # # Programs (with common options): SHELL = /bin/sh CP = cp RM = rm -f MV = mv -f SED = sed ETAGS = etags XARGS = xargs CAT = cat FIND = find CPP = cpp -C -P INSTALL = install INSTALL_PROG = $(INSTALL) -m $(MODE_PROGS) INSTALL_FILE = $(INSTALL) -m $(MODE_FILES) INSTALL_DIR = $(INSTALL) -m $(MODE_DIRS) -d # Install modes MODE_PROGS = 555 MODE_FILES = 444 MODE_DIRS = 2755 # Build programs JAVAC = javac JAVADOC = javadoc JAR = jar # Build flags JAVAC_FLAGS = JAVADOC_FLAGS = -version -author JAR_FLAGS = cvf0 JIKES_DEP_FLAG = +M # ------------------------------------------------------------------- # # Prefix for every install directory PREFIX = # Where to start installing the class files. Set this to an empty value # if you dont want to install classes CLASS_DIR = $(PREFIX)classes # The directory to install the jar file in. Set this to an empty value # if you dont want to install a jar file JAR_DIR = $(PREFIX)lib # The directory to install the app bundle in. Set this to an empty value # if you dont want to install an app bundle BUNDLE_DIR = $(PREFIX)lib # The directory to install html files generated by javadoc DOC_DIR = $(PREFIX)doc/api-docs # The directory to install script files in SCRIPT_DIR = $(PREFIX)bin # ------------------------------------------------------------------- # # The name of the jar file to install JAR_FILE = # # The VERSION variable below should be set to a value # that will be tested in the .xjava code and Info.plist. # VERSION = JAVA1_1 # ------------------------------------------------------------------- # # The name of the OS X Application Bundle to install BUNDLE_FILE = # Folder containing App Bundle resources (Info.plist, *.icns, etc.) BUNDLE_RESOURCE_DIR = misc/macosx # Items to copy to the Resources folder of the bundle BUNDLE_RESOURCES = $(addsuffix .icns, $(basename $(APP_FILE)) Document) # Location of JavaApplicatonStub JAVA_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub # ------------------------------------------------------------------- # # Resource files: # Extend the list to install other files of your choice RESOURCE_SRC := *.properties *.gif *.au # Objects that should go into the jar file. (find syntax) JAR_OBJS := \( -name '*.class' -o -name '*.gif' -o -name "*.au" \ -o -name '*.properties' \) # Include the separate variables file if it exists MAKEFILE_VARS = makefile.vars VARS = $(wildcard $(MAKEFILE_VARS)) ifneq ($(VARS),) include $(MAKEFILE_VARS) endif # Packages we should compile PACKAGES = \ tildeslash # All packages that can be recursively compiled. ALL_PACKAGES = \ $(PACKAGES) # Packages to generate docs for. JAVADOC_PACKAGES = $(PACKAGES) # Resource packages RESOURCES = # Directories with shell scripts SCRIPTS = # ------------------------------------------------------------------- # # A marker variable for the top level directory TOPLEVEL := . # Subdirectories with java files: JAVA_DIRS := $(subst .,/,$(PACKAGES)) $(TOPLEVEL) # Subdirectories with only resource files: RESOURCE_DIRS := $(subst .,/,$(RESOURCES)) # All the .xjava source files: XJAVA_SRC := $(foreach dir, $(JAVA_DIRS), $(wildcard $(dir)/*.xjava)) # All the xjava files to build XJAVA_OBJS := $(XJAVA_SRC:.xjava=.java) # Directory coresponding to a package PACKAGE_DIR = $(subst .,/,$(1)) # All the (x)java files in a package PACKAGE_SRC = $(shell $(FIND) $(PACKAGE_DIR) \( -name '*.java' -or -name '*.xjava' \) ) # All the classes to build in a package PACKAGE_OBJS = $(patsubst %.java,%.class,$(PACKAGE_SRC: %.xjava=%.java)) # All the .java source files: JAVA_SRC := $(foreach dir, $(JAVA_DIRS), $(wildcard $(dir)/*.java)) JAVA_SRC := $(XJAVA_OBJS) $(JAVA_SRC) # Dependency files: DEPEND_OBJS := $(JAVA_SRC:.java=.u) # The intermediate java files and main classes we should build: JAVA_OBJS := $(XJAVA_OBJS) $(JAVA_SRC:.java=.class) # Search for resource files in both JAVA_DIRS and RESOURCE_DIRS RESOURCE_OBJS := $(foreach dir, $(JAVA_DIRS) $(RESOURCE_DIRS), \ $(wildcard $(foreach file, $(RESOURCE_SRC), \ $(dir)/$(file)))) # All the shell scripts source SCRIPT_SRCS := $(foreach dir, $(SCRIPTS), $(wildcard $(dir)/*.sh)) # All shell scripts we should install SCRIPT_OBJS := $(SCRIPT_SRCS:.sh=) # All the files to install into CLASS_DIR INSTALL_OBJS := $(foreach dir, $(JAVA_DIRS), $(wildcard $(dir)/*.class)) # Escape inner class delimiter $ INSTALL_OBJS := $(subst $$,\$$,$(INSTALL_OBJS)) # Add the resource files to be installed as well INSTALL_OBJS := $(INSTALL_OBJS) $(RESOURCE_OBJS) # ------------------------------------------------------------------- # define check-exit || exit 1 endef # ----------- # Build Rules # ----------- %.java: %.xjava $(CPP) -D$(VERSION) $< $@ %.class: %.java $(JAVAC) $(JAVAC_FLAGS) $< %.jar: $(JAVA_OBJS) $(RESOURCE_OBJS) $(FIND) $(TOPLEVEL) $(JAR_OBJS) -print | $(XARGS) \ $(JAR) $(JAR_FLAGS) $(JAR_FILE) %.u: %.java $(JAVAC) $(JIKES_DEP_FLAG) $< # ------- # Targets # ------- .PHONY: all jar install uninstall doc clean depend tags bundle \ help $(ALL_PACKAGES) all:: $(JAVA_OBJS) help: @echo "Usage: make {all|jar|srcjar|bundle|install|uninstall|doc|clean|depend|tags|PACKAGE_NAME}" @echo " all: build all classes" @echo " jar: build jar file" @echo " srcjar: build source jar file" @echo " bundle: build OS X app bundle" @echo " install: install classes into $(CLASS_DIR)" @echo " jar into $(JAR_DIR)" @echo " bundle into $(BUNDLE_DIR)" @echo " javadocs into $(DOC_DIR)" @echo " scripts into $(SCRIPT_DIR)" @echo " uninstall: remove installed files" @echo " doc: generate api docs from javadoc comments" @echo " clean: remove classes and temporary files" @echo " depend: build class dependency info using jikes" @echo " tags: build emacs tags file" @echo " PACKAGE_NAME: builds all classes in this package and any subpackages." # Jar target ifneq ($(strip $(JAR_FILE)),) jar: $(JAR_FILE) ifneq ($(strip $(JAR_DIR)),) install:: $(JAR_FILE) @echo "===> [Installing jar file, $(JAR_FILE) in $(JAR_DIR)] " $(INSTALL_DIR) $(JAR_DIR) $(check-exit) $(INSTALL_FILE) $(JAR_FILE) $(JAR_DIR) $(check-exit) uninstall:: @echo "===> [Removing jar file, $(JAR_FILE) from $(JAR_DIR)] " $(RM) $(JAR_DIR)/$(JAR_FILE) $(check-exit) else install:: @echo "No jar install dir defined" endif clean:: $(RM) $(JAR_FILE) else jar: @echo "No jar file defined" endif SRC_JAR_FILE := $(basename $(JAR_FILE))-src$(suffix $JAR_FILE) # Source jar target srcjar : $(SRC_JAR_FILE) $(SRC_JAR_FILE): $(JAVA_SRC) $(RESOURCE_OBJS) $(FIND) $(TOPLEVEL) $(JAR_OBJS: .class=.java) -print | $(XARGS) \ $(JAR) $(JAR_FLAGS) $@ # Bundle target ifneq ($(strip $(BUNDLE_FILE)),) bundle: $(BUNDLE_FILE) $(BUNDLE_FILE) : $(JAR_FILE) $(INSTALL_DIR) $(BUNDLE_FILE)/Contents/Resources/Java $(check-exit) $(INSTALL_DIR) $(BUNDLE_FILE)/Contents/MacOS $(check-exit) $(INSTALL_PROG) $(JAVA_STUB) $(BUNDLE_FILE)/Contents/MacOS/ \ $(check-exit) ( $(CAT) $(BUNDLE_RESOURCE_DIR)/Info.plist | $(SED) -e \ s/VERSION/$(VERSION)/ >98762infoplist876 ) $(check-exit) $(INSTALL_FILE) 98762infoplist876 \ $(BUNDLE_FILE)/Contents/Info.plist $(check-exit) $(RM) 98762infoplist876 $(check-exit) $(INSTALL_FILE) $(JAR_FILE) $(BUNDLE_FILE)/Contents/Resources/Java checkexit="";for f in $(BUNDLE_RESOURCES); do \ $(INSTALL_FILE) $(BUNDLE_RESOURCE_DIR)$$f $(BUNDLE_FILE)/Contents/Resources/ \ || checkexit=$?; \ done; test -z $$checkexit ifneq ($(strip $(BUNDLE_DIR)),) # This is probably bad, but I don't know how else to do it install:: $(BUNDLE_FILE) @echo "===> [Installing app bundle, $(BUNDLE_FILE) in $(BUNDLE_DIR)] " $(INSTALL_DIR) $(BUNDLE_DIR) $(check-exit) $(CP) -R $(BUNDLE_FILE) $(BUNDLE_DIR) $(check-exit) $(INSTALL_FILE) $(BUNDLE_FILE) $(BUNDLE_DIR) $(check-exit) uninstall:: @echo "===> [Removing bundle file, $(BUNDLE_FILE) from $(BUNDLE_DIR)] " $(RM) -r $(BUNDLE_DIR)/$(BUNDLE_FILE) $(check-exit) else install:: @echo "No bundle install dir defined" endif clean:: $(RM) -r $(BUNDLE_FILE) else bundle: @echo "No bundle file defined" endif # Install target for Classes and Resources ifneq ($(strip $(CLASS_DIR)),) install:: $(JAVA_OBJS) @echo "===> [Installing classes in $(CLASS_DIR)] " $(INSTALL_DIR) $(CLASS_DIR) $(check-exit) $(foreach dir, $(JAVA_DIRS) $(RESOURCE_DIRS), \ $(INSTALL_DIR) $(CLASS_DIR)/$(dir) $(check-exit)) $(foreach file, $(INSTALL_OBJS), \ $(INSTALL_FILE) $(file) $(CLASS_DIR)/$(file) \ $(check-exit)) uninstall:: @echo "===> [Removing class-files from $(CLASS_DIR)] " $(foreach file, $(INSTALL_OBJS), \ $(RM) $(CLASS_DIR)/$(file) \ $(check-exit)) else # Print a warning here if you like. (No class install dir defined) endif # Depend target ifeq ($(findstring jikes,$(JAVAC)),jikes) depend: $(XJAVA_OBJS) $(DEPEND_OBJS) ( $(CAT) $(DEPEND_OBJS) | $(SED) -e '/\.class$$/d' \ -e '/.*$$.*/d' > $(MAKEFILE_DEPEND); $(RM) $(DEPEND_OBJS); ) else depend: @echo "mmake needs the jikes compiler to build class dependencies" endif # Doc target ifneq ($(strip $(JAVADOC_PACKAGES)),) doc: $(JAVA_SRC) @echo "===> [Installing java documentation in $(DOC_DIR)] " $(INSTALL_DIR) $(DOC_DIR) $(check-exit) $(JAVADOC) $(JAVADOC_FLAGS) -d $(DOC_DIR) $(JAVADOC_PACKAGES) else doc: @echo "You must put your source files in a package to run make doc" endif # Script target ifneq ($(strip $(SCRIPT_OBJS)),) all:: $(SCRIPT_OBJS) ifneq ($(strip $(SCRIPT_DIR)),) install:: $(SCRIPT_OBJS) @echo "===> [Installing shell-scripts in $(SCRIPT_DIR)] " $(INSTALL_DIR) $(SCRIPT_DIR) $(check-exit) $(foreach file, $(SCRIPT_OBJS), \ $(INSTALL_PROG) $(file) $(SCRIPT_DIR) $(check-exit)) uninstall:: @echo "===> [Removing shell-scripts from $(SCRIPT_DIR)] " $(foreach file, $(SCRIPT_OBJS), \ $(RM) $(SCRIPT_DIR)/$(file) $(check-exit)) else # Print a warning here if you like. (No script install dir defined) endif clean:: rm -f $(SCRIPT_OBJS) endif # Tag target tags: @echo "Tagging" $(ETAGS) $(filter-out $(XJAVA_OBJS), $(JAVA_SRC)) $(XJAVA_SRC) # Various cleanup routines clean:: $(FIND) . \( -name '*~' -o -name '*.class' \) -print | \ $(XARGS) $(RM) $(FIND) . -name '*.u' -print | $(XARGS) $(RM) ifneq ($(strip $(XJAVA_SRC)),) clean:: $(RM) $(XJAVA_OBJS) endif # ---------------------------------------- # Include the dependency graph if it exist # ---------------------------------------- MAKEFILE_DEPEND = makefile.dep DEPEND = $(wildcard $(MAKEFILE_DEPEND)) ifneq ($(DEPEND),) include $(MAKEFILE_DEPEND) endif #package targets tildeslash : $(call PACKAGE_OBJS,tildeslash) mmake-2.3/tildeslash/README0100644000076400007640000000277210032244434014143 0ustar haukhauk MMAKE EXAMPLE This directory contains an example on how to create different Java versions of an Applet. The Applet source-code contains C-preprocessor conditionalis to compile the Applet to Java 1.0 or Java 1.1 class- files. The compilation of the Applet is done via the Makefile in this directory. The Makefile is, of course, created by mmake. Do a 'make doc' to create HTML-documentation of the Applet. Load the doc/api-docs/index.html file into your browser and have a look at what the Applet does. Then do a 'make' to compile the Applet to Java 1.0 code. It's the VERSION macro in the Makefile that controls the version you will obtain. To compile the Applet as Java 1.1 code, simply change VERSION to JAVA1_1, but first, do a "make clean" to remove .class and .java files before you make the Applet again. Have a look at the tildeslash/StartApp.xjava code to see how you can write your own code to support different versions, with CPP- conditionalis. FILES ----- README: This file Makefile: The Makefile, generated with mmake makefile.depend: A dependency graph for the files in the tildeslash package. You can create this yourself by changing the variable JAVAC in the Makefile to JAVAC=jikes and then do a 'make depend'. (If you have the jikes compiler on your system.) index.html: HTML-file to load the Applet. images: Directory with Images, used by the Applet tildeslash: Package directory containing the source-code for the Applet. mmake-2.3/tildeslash/index.html0100644000076400007640000000104210033145121015237 0ustar haukhauk Demo Version
Launch Applet Demo. Click on the image to launch a Demo Applet:

You must use a Java-enabled browser to view this page

mmake-2.3/tildeslash/makefile.dep0100644000076400007640000000032410033145570015523 0ustar haukhauktildeslash/Hello.class : tildeslash/Hello.java tildeslash/StartApp.class : tildeslash/StartApp.java tildeslash/StartApp.class : tildeslash/TestLoader.java tildeslash/TestLoader.class : tildeslash/TestLoader.java mmake-2.3/tildeslash/images/0040775000076400007640000000000010032243613014523 5ustar haukhaukmmake-2.3/tildeslash/images/image0.gif0100644000076400007640000000110406611622451016354 0ustar haukhaukGIF87a@@,F,@@0IM `hr Cڂ6Ǿ8Ŏ:'dt:`dASaOstYnnYJ*rs@x||UHlLz1x}SYB1b"i 9~5xa= pu~ i_H $Ɩ!d&[̺–}nMˌl ttWGkd 6{8q!a;l.MO3ppa҅4h3)Naⶒl"I~8vVRI0wXR`3W p]yN([B-KXv H+[b#{i}!n>v@ểg:YCb -]VT\̀ʀ$u,Z|t!y:2]AEq :=9>՞DGDpJʾYeP3硂KBv7iQ f& ;mmake-2.3/tildeslash/images/image1.gif0100644000076400007640000000076106611622451016365 0ustar haukhaukGIF87a@@"",@@0I8gB |$&X!Ǯv Kr;a/@ F-\KdѱT5P(1M`5G"8,l~[Eyx{\LWwywigtkm}2ZRu'iR fEpOj |D(f0~5V^:`@g{NhHƯ7[X[æA |$F>⢞u̒2 'A5w~Ŵ1H۸# AS/>v4¿SAPlLA3bJ:Rf~1m2(t"TCBSZTK}>GSgDQf7 AɊ+X9W([#!-["vغ̳潚nrVܖ`iHӳP垘cs Qd5y_ m&T6iR#;mmake-2.3/tildeslash/images/image2.gif0100644000076400007640000000423207244000450016353 0ustar haukhaukGIF87a@@hfb543('&NNNuro ===ʐ ZZZƴ~}}6Қ"ۦΦ* *<* ~ ʏ ڲ*a˵ &dEB!oČ: M8מ sJĐjÖʾyR ֿƚ2ު"}mQ6ɬ2gEfZF:ViI,@@    ɸ ӈڸ  ˦(0 nؽA0CƑ+X  ׇ8,@\k#*3x$(laԩ"Q$)$2p\8D 04&),(P!h`^hti4T0e .((5aC\,DK"^ j Qĉ PaXA^<ୃ,Zx hlcwR 9hǎ*Pb00*hco5v"m!bp.dTn"86R ѭc7`.@6P C@>-0A_6 G A6bLGfnwp $Q,B)@@,!@HU$@hH(Y),AH'$T @:ta4@xU(@ҁV _d8A4@=\At5岜L'"Q@ڔ(Vs t`b*xsH) xӟ&4@@f2$~/t! p $p@)>Z*@Dˮ$pg}u{H,[nP95t"0Z4@ht8&A dZ1^2H%PpM)3BU5I5|k6l""9\;3͊`JJ`ϳL& @ q,&Xz zPVi&a5 Б7l BӅ3 @䞽77h'OY7̖L3XtfRAk@CoR馋zB@VZd 90_Ӣ  pP?*0թN@JH 9YW @G1@,:p+­5Po P  uGౌYzQ ak\ {;mmake-2.3/tildeslash/tildeslash/0040775000076400007640000000000010033145670015417 5ustar haukhaukmmake-2.3/tildeslash/tildeslash/StartApp.xjava0100644000076400007640000000747107244000410020204 0ustar haukhauk/* * COPYRIGHT */ // Example of defining macros. Used in mouse event methods #define MOUSE_CLICK iNum= _CLICK; repaint(); launch(); #define MOUSE_EXIT iNum= _EXIT; repaint(); #define MOUSE_OVER iNum= _OVER; repaint(); package tildeslash; import java.applet.*; import java.awt.*; #ifdef JAVA1_1 import java.awt.event.*; #endif /** * This is just some demo code to demonstrate the usage of the * C-preprocessor facilities in mmake. This particular code * demonstrate how You can use the Makefile generated by mmake to * manage java 1.0 and java 1.1 code in the same file. * *

DESCRIPTON:

* This class displays an Image. When clicked on, the Image changes * and a new class is launched. This class is intended for launching * different demo Applets in a "fancy" way. * *

The class to launch is given as a parameter (class) * *

The Images to load are loaded from IMAGE_DIR and must have * name image0.gif, image1.gif and image2.gif * * @author Jan-Henrik Haukeland, <hauk@tildeslash.com> * @version $Id: StartApp.xjava,v 1.5 2001/02/18 17:06:16 hauk Exp $ */ public class StartApp extends Applet { private static final String IMAGE_DIR= "images/"; private static final int _EXIT= 0, _OVER= 1, _CLICK= 2; private int iNum= 0; private Image[] myImages; private MediaTracker myTracker; private String myClass; // -------------------------- Public methods ------------------------- // /** * Init StartApp, load background Images. Get class to launch * from parameter name=class. If this class is compiled as * java 1.1 code, add a Mouse Listener. */ public void init() { this.setBackground(Color.black); // Get class to load myClass= getParameter("class"); myImages= new Image[3]; myTracker= new MediaTracker(this); // Load Images try { for (int i=0; i<3; i++) { myImages[i]= this.getImage(this.getCodeBase(), IMAGE_DIR+"image"+i+".gif"); myTracker.addImage(myImages[i], 0); } myTracker.waitForAll(); } catch(Exception e) { System.out.println("Error: "+ e.getMessage()); e.printStackTrace(); this.stop(); } #ifdef JAVA1_1 // Listener for Mouse Events this.addMouseListener(new MouseAdapter () { public void mouseClicked(MouseEvent e) { MOUSE_CLICK // Substituted when running CPP, see #define above } public void mouseEntered(MouseEvent e) { MOUSE_OVER // Substituted when running CPP } public void mouseExited(MouseEvent e) { MOUSE_EXIT // Substituted when running CPP } }); this.setSize(new Dimension(myImages[0].getHeight(this), myImages[0].getWidth(this))); #else this.resize(myImages[0].getHeight(this),myImages[0].getWidth(this)); #endif } #ifdef JAVA1_0 /** * Handle mouseExit Events in Java 1.0 code */ public boolean mouseExit(Event e, int x, int y) { MOUSE_EXIT // Substituted when running CPP return true; } /** * Handle mouseEnter Events in Java 1.0 code */ public boolean mouseEnter(Event e, int x, int y) { MOUSE_OVER // Substituted when running CPP return true; } /** * Handle mouseDown Events in Java 1.0 code */ public boolean mouseDown(Event e, int x, int y) { MOUSE_CLICK // Substituted when running CPP return true; } #endif /** * Call update */ public void paint(Graphics g) { update(g); } /** * Draw the background image */ public void update(Graphics g) { g.drawImage(myImages[iNum], 0, 0, this); } /** * Launch a class */ public void launch() { new TestLoader(myClass); } } mmake-2.3/tildeslash/tildeslash/Hello.xjava0100644000076400007640000000160610033145053017506 0ustar haukhaukpackage tildeslash; import java.awt.*; #ifdef JAVA1_1 import java.awt.event.*; #endif /** * This is just a test class to demonstrate the StartApp loader. */ class Hello extends Frame { public Hello() { super("Hello"); Label l= new Label("HELLO WORLD"); Button b= new Button("OK"); Panel p= new Panel(); setLayout(new BorderLayout()); p.add(b); add("Center", l); add("South", p); #ifdef JAVA1_1 this.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { dispose();} }); b.addActionListener(new ActionListener () { public void actionPerformed(ActionEvent e) { dispose();} }); #endif pack(); show(); } #ifdef JAVA1_0 public boolean handleEvent(Event e) { if (e.id == Event.WINDOW_DESTROY || e.target instanceof Button) dispose(); return super.handleEvent(e); } #endif } mmake-2.3/tildeslash/tildeslash/TestLoader.java0100644000076400007640000000073710033144472020331 0ustar haukhauk package tildeslash; /** * Load and instanciate a class. TestLoader is defined here, to make * a dependency, so the dependency support in mmake can be tested. */ class TestLoader extends Thread { private String aClass; public TestLoader(String c) { aClass= c; start(); } public void run() { try { Class t= Class.forName(aClass); t.newInstance(); } catch (Exception e){System.out.println("Error: "+e.getMessage());}; } } mmake-2.3/mmake.10100664000076400007640000002631010033156030012272 0ustar haukhauk.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14 .\" .\" Standard preamble: .\" ======================================================================== .de Sh \" Subsection heading .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. | will give a .\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to .\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C' .\" expand to `' in nroff, nothing in troff, for use with C<>. .tr \(*W-|\(bv\*(Tr .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\} .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .\" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .hy 0 .if n .na .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "MMAKE 1" .TH MMAKE 1 "www.tildeslash.com" "April 2. 2004" "User Commands" .SH "NAME" .Vb 1 \& mmake - generate a Java Makefile .Ve .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& mmake [ -d | -v ] .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This program will generate a Makefile for Java source files. Use the \&\fI\-d\fR option to accept all defaults. .PP After running mmake, you will obtain a Makefile in the directory from where you started the program. The Makefile will handle java files in the current directory and in any sub\-directories. .PP Use the generated Makefile with mmake as follows: .PP To compile Java files just type \fBmake\fR. It's also possible to run make with one of the following targets: \fIdoc, clean, help, jar, srcjar, bundle, install, uninstall, tags and depend\fR Where 'make doc' runs javadoc on the source files, it will only work for files in a package. The command 'make clean' removes class files and other temporary files. The command 'make jar' creates a jar file with all class files (and other files of your choice, see the \s-1JAR_OBJS\s0 variable in the Makefile). The command 'make srcjar' creates a jar file with all java files. The command 'make bundle' creates a Mac \s-1OS\s0 X Application Bundle with all the jar file. The command 'make install' will install a jar file, app bundle, class files and any shell wrappers you have made. (A shell script must have the extension .sh to be installed). Use 'make uninstall' to remove installed files. The command 'make help', shows a help text with available targets. The command 'make tags' will generate a tag file for Emacs. And finally the command 'make depend' creates a dependency graph for the class files. (The dependency graph will be put in a file called \&\fImakefile.dep\fR, which is included in the Makefile) .PP You don't have to run mmake each time you add a new java file to your project. You can add as many new java files as you like, the Makefile will find them. This is the case as long as you don't add a new package. In that case, you must either run mmake again or update the \&\s-1PACKAGE\s0 variable in the Makefile. This is because the Makefile uses this variable to find directories with java files. .PP The program mmake is able to create a dependency graph for your java files. To do this, it needs the \fIjikes\fR compiler from \s-1IBM\s0. Get jikes from \fBhttp://www.ibm.com/developerworks/oss/jikes/\fR.You would probably be more content with jikes anyhow, since it is much faster than javac. To create a dependencies graph, do a \fImake clean\fR before running \fImake depend\fR. .SH "A NOTE ON INSTALLATION" .IX Header "A NOTE ON INSTALLATION" The Makefile created with mmake will do a fair job installing the different files that makes up your system. It uses the following Makefile variables when it conducts the install routine: .IP "\(bu" 4 \&\s-1PREFIX\s0 .IP "\(bu" 4 \&\s-1CLASS_DIR\s0 .IP "\(bu" 4 \&\s-1JAR_DIR\s0 .IP "\(bu" 4 \&\s-1BUNDLE_DIR\s0 .IP "\(bu" 4 \&\s-1DOC_DIR\s0 .IP "\(bu" 4 \&\s-1SCRIPT_DIR\s0 .Sh "\s-1PREFIX\s0" .IX Subsection "PREFIX" This variable will be prepended to all other directory variables above. It is used for grouping the other directories into one root directory. If you don't want that, you may simply set the variable to an empty string in the Makefile. If the variable is empty you could still use it on the command line when you run make, for instance for a one-shoot installation like: \fBmake PREFIX=/local/myproject/ install\fR .Sh "\s-1CLASS_DIR\s0" .IX Subsection "CLASS_DIR" This variable denotes the top directory from where all class files will be installed. Its default value is \fBclasses\fR, which I believe is a good value. \fBNote:\fR If you \fIdon't\fR want to install any class files (because you are, for example, only going to use a jar file), set this variable to an empty string and no class files will be installed. .PP Resource files will also be installed below this directory if such files are present in a package structure. This is useful if you are using e.g. ResourceBundles to Localize your application and have your property files in it's own directory in the package structure. .Sh "\s-1JAR_DIR\s0" .IX Subsection "JAR_DIR" This variable tells the Makefile where to install the jar file. The default value is \fBlib\fR, which is also a good default value. .Sh "\s-1BUNDLE_DIR\s0" .IX Subsection "BUNDLE_DIR" This variable tells the Makefile where to install the app bundle. The default value is \fBlib\fR, which is also a good default value. .Sh "\s-1DOC_DIR\s0" .IX Subsection "DOC_DIR" When you run javadoc, all the html files will be put into this directory. Its default value is \fBdoc/api\-docs\fR. You should probably keep that name, but then again, you may change it as you like. .Sh "\s-1SCRIPT_DIR\s0" .IX Subsection "SCRIPT_DIR" The Makefile uses this variable to install any shell wrapper-scripts that you have created. If you write an application, it is always nice for the user that you provide a wrapper script to start the application. Its default value is \fBbin\fR. (The Makefile will only install shell-scripts that has the extension .sh. The mmake script will tell the Makefile where to look for shell\-scripts) .Sh "\s-1INSTALLATION\s0 \s-1SUMMARY\s0" .IX Subsection "INSTALLATION SUMMARY" If you keep the default values you will get an installation tree that looks like this: .PP .Vb 10 \& `-- PREFIX \& |-- bin \& |-- classes \& | `-- package <--- Example of a sub-directory \& | |-- sub-package1 \& | |-- sub-package2 \& | `-- sub-package3 \& |-- doc \& | `-- api-docs \& `-- lib .Ve .SH "USING THE C\-PREPROCESSOR" .IX Header "USING THE C-PREPROCESSOR" This is a excellent tool for managing projects with several different versions. The idea behind using the C preprocessor with Java is to better manage different versions more easily. This is done by using \&\s-1CPP\s0 conditional statements in the source files. I would strongly advise you not to use \s-1CPP\s0 to redefine the Java language itself. .PP To use the C preprocessor together with Java, you can change the name of the source files that you want to preprocess \*(-- from .java to .xjava. The Makefile has a rule to build \&.class files from .xjava files. .PP It is \fBnot\fR necesarry to change every file from .java to .xjava. The Makefile will work well and consistently in an environment of both \&.java and .xjava files. (E.g. 'make clean' will only remove .java files that were created from a .xjava file. Other java files will, of course, \fInot\fR be removed.) .PP You can now use cpp Conditionals in Your Java\-code, for example, as follows: .PP .Vb 5 \& #ifdef JAVA1_1 \& [code1] \& #else \& [code2] \& #endif .Ve .PP The \s-1JAVA1_1\s0 label in the above example is tested against the \&\s-1VERSION\s0 variable in the Makefile. That is, if the \s-1VERSION\s0 variable is \&\s-1JAVA1_1\s0, then [code1] would be compiled and [code2] left out. Likewise, if \s-1VERSION\s0 is something else than \s-1JAVA1_1\s0, then [code2] would be compiled and [code1] left out of the resulting .class file. .SH "NOTES" .IX Header "NOTES" mmake will give you \fIone\fR Makefile for managing your Java files. Although it's easy to setup and use mmake in a recursive makefile context, you don't want to do that. To see why, read the excellent article: \fBRecursive Make Considered Harmful\fR at \&\fIhttp://www.canb.auug.org.au/~millerp/rmch/recu\-make\-cons\-harm.html\fR .SH "DEPENDENCIES" .IX Header "DEPENDENCIES" mmake will need the following: .IP "\(bu" 4 Perl 5.x .IP "\(bu" 4 Gnu make .IP "\(bu" 4 Gnu xargs (recommended) .SH "AUTHOR" .IX Header "AUTHOR" Jan-Henrik Haukeland mmake-2.3/COPYING0100644000076400007640000004313110032243632012153 0ustar haukhauk GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.