Commit 10588f3d authored by Generic for IPNL's avatar Generic for IPNL
Browse files

many changes concerning the global structure:

* The global Makefile now creates install directories if they don't exist
* Configure checks for the BSD install programs
* The test in configure to know if byteswap.h exists has been simplified
* README and INSTALL are now much more complete 


git-svn-id: svn+ssh://anonsvn.in2p3.fr/agata/gammaware/trunk@12 c3abf467-7ff2-0310-b516-c5fb849bdde0
parent a29106fe
Basic Installation
==================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
it or regenerate `configure' using a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes a while. While running, it prints some
messages telling which features it is checking for.
2. Type `gmake/make -f Makefile.root' to compile the package.
3. Type `gmake/make -f Makefile.roo install' to install the programs and any data files and
documentation.
4. You can remove the program binaries and object files from the
source code directory by typing `gmake/make -f Makefile.roo clean'.
Compilers and Options
=====================
The GammaWare package uses the ROOT facility to set compilers and Options.
Any makefile should start with an include of the file Makefile.root which is
under the config directory.
Installation Names
==================
By default, `make install' will install the package's files in
`$ROOTSYS/bin', `$ROOTSYS/man', etc. You can specify an
installation prefix other than `$ROOTSYS/' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
*************** ANYTHING UNDER THIS LINE IS NOT YET USED *******************
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made.
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not supports the `VPATH'
variable, you have to compile the package for one architecture at a time
in the source code directory. After you have installed the package for
one architecture, use `make distclean' before reconfiguring for another
architecture.
What is installed and where ?
=============================
Libraries are installed in $prefix/lib
A standard prefix for Linux systems is /usr/local. If you install as a
user, install libraries in another directory and add it to the LD_LIBRARY_PATH.
Currently, the following libraries are installed:
libGWGEM
libGWPHYSICS
libGWSYSTEM
libGWTOOLS
Binaries are installed in $prefix/bin
A standard prefix for Linux systems is /usr/local. If you install as a
user, install binaries in another directory and add it to the PATH.
Currently, the following libraries are installed:
Architecture-independent files are installed in $prefix/share.
A standard prefix for Linux systems is /usr/local.
Currently, the following files are installed:
gw/icons [icons nedded for GUI]
gw/macros [ROOT macros from the demos directory]
gw/ndb [Nuclear Data Base: ags, ensdf etc ..]
doc/gw/html [html documentation as generated by doxygen]
doc/gw/man [man documentation as generated by doxygen]
doc/gw/latex [latex documentation as generated by doxygen]
doc/gw/README
doc/gw/INSTALL
doc/gw/AUTHORS
################################################################################
#
# Makefile to built @PACKAGE_NAME@
# Makefile to built @PACKAGE_NAME@
#
# @PACKAGE_BUGREPORT@
#
......@@ -11,6 +11,7 @@ SHELL = @SHELL@
# make related
@SET_MAKE@
INSTALL_FILE = @INSTALL_FILE@
# to set ROOT's environment (use root-config)
include config/Makefile.root
......@@ -21,7 +22,7 @@ prefix = @prefix@
exec_prefix = @exec_prefix@
# to built the gammaware package
gw: conf inc modules end
all: conf inc modules end
# one directory for each sub-project
SUBDIRS = @SUBPROJETS@
......@@ -36,9 +37,9 @@ modules:
inc:
@echo " "
@echo " ---> Moving all includes in " @includedir@
@echo " ---> Installing all includes in " @includedir@
@{ for dir in $(SUBDIRS); do \
cd $(TOPDIR); cd $$dir; cp *.h @includedir@; \
cd $(TOPDIR); cd $$dir; $(INSTALL_FILE) *.h @includedir@; \
done }
clean:
......@@ -50,15 +51,22 @@ clean:
@echo " "
@echo " "
# To build an html/man/latex doc depending on what is selected in Doxyfile
#
doc: Doxyfile doc/Main.dox doc/img
@echo " "
@echo " ---> Building documentation for all sub-packages in " @doxygenout@
@echo " ---> Building documentation for all sub-packages in " @datadir@/doc/gw
@echo " "
@{ cd $(TOPDIR); doxygen Doxyfile; }
@echo " "
# Make sure all installation directories (e.g. $(bindir))
# actually exist by making them if necessary.
installdirs: mkinstalldirs
@{ cd $(TOPDIR); mkinstalldirs @bindir@ @libdir@ @includedir@ \
@datadir@/doc/gw;}
dist: inc
dist: inc clean
@echo " "
@echo " <------------ Building Distribution ------------> "
@echo " ---> Build ... "
......@@ -67,8 +75,7 @@ dist: inc
@gzip ../@PACKAGE_TARNAME@.tar
@echo ""
install: inc modules
install: installdirs inc modules
@echo " "
@echo " <----------- Installing Distribution -----------> "
@echo " "
......@@ -90,13 +97,14 @@ conf:
@echo ""
@echo " Current ROOT configuration for compiling : "$(PLATFORM)
@echo " Sub-projects to be build:"
@echo " " @SUBPROJETS@
@echo " "$(SUBDIRS)
@echo ""
@echo " Installation directories:"
@echo " binaries : " @bindir@
@echo " libraries : " @libdir@
@echo " includes : " @includedir@
@echo " doc_oxygen : " @doxygenout@
@echo " doc[oxygen]: " @datadir@/doc/gw
@echo " datadir : " @datadir@/gw
@echo ""
@echo "-----------------------------------------------------------"
......
The simplest way to build/install the GammaWare package is:
**** CONFIGURATION *****
1. Type `./configure'
(or `sh ./configure' to prevent `csh' from trying to execute `configure' itself)
2. Type `make' to build the package.
3. Type `make install' to install the programs, libraries, data files and documentation.
By default, everything is installed in this directory. It is recommended to install
the package in another directory. To do this see the Configuration section in this file.
4. You should remove the program binaries and object files from the
source code directory by typing `make clean'.
Configuration
=============
The configure script should be run first to configure the buiding environment.
Usage: configure [OPTION]... [VAR=VALUE]...
directories that can be modified with configure:
--libdir=DIR object code libraries [EPREFIX/lib]
--bindir=DIR user executables [EPREFIX/bin]
--includedir=DIR C header files [PREFIX/include]
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[$(GAMMAWARE)]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
You can specify an installation prefix using `--prefix'. For instance `--prefix=$HOME'.
- To change the directory under which all the files will be installed
configure --prefix=/where/you/want/to/install/the/package
or, using environment variables
configure --prefix=$HOME [Default is prefix=$PWD]
- Directories can also be modified individually
--libdir=DIR object code libraries [Default: $PWD/lib]
--bindir=DIR user executables [Default: $PWD/bin]
--includedir=DIR C/C++ header files [Default: $PWD/include]
--datadir=DIR architecture-independent files [Default: $PWD/share]
To get a detail list of what is installed, read the INSTALL file.
To build the ganil library,
--enable-ganil enable to build the GANIL library
Some influential environment variables:
ROOTSYS
Must exist if ROOT is installed on you computer.
Otherwise, install ROOT first (http://root.cern.ch).
DOXYGENOUT
Output directory for documentation generated by doxygen.
An html doucmentation is generated for the GammaWare
by using doxygen. You can modify the output directory
by setting this environment variable before calling configure.
If configure has already been called, the ouput directory can modified
directly inside Doxyfile by changing OUTPUT_DIRECTORY.
***** COMPILATION *****
For the moment, the root facilities are used to compile the package,
mainly for the compiler's options. So, the compilation will be not
be affected if you modify CC, CFLAGS ... etc before running configure.
If you need to modify anything, check out your platform system as
known by ROOT with:
root-config --arch
and modify the corresponding part in the config/Makefile.root file.
Compilers and Options
=====================
The GammaWare package uses the ROOT facility to set compilers and Options.
Any makefile starts with an include of the file Makefile.root which is
under the config directory.
So, the compilation will be not be affected if you modify CC, CFLAGS ... etc
before running configure. If you need to modify anything, check out your platform
system as known by ROOT with:
root-config --arch
and modify the corresponding part in the config/Makefile.root file.
The general Makefile uses the MAKE variables to build individual packages.
It can be changed with, for instance with:
The general Makefile uses the MAKE variables to build individual packages.
It can be changed with, for instance with:
configure 'MAKE=gmake'
Any problems/suggestions, please contact stezow@ipnl.in2p3.fr
......
This diff is collapsed.
m4trace:configure.in:4: -1- AC_INIT([The GammaWare (GW) Package], [0.2], [stezow@ipnl.in2p3.fr], [GammaWare0.2])
m4trace:configure.in:4: -1- m4_pattern_forbid([^_?A[CHUM]_])
m4trace:configure.in:4: -1- m4_pattern_forbid([_AC_])
m4trace:configure.in:4: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
m4trace:configure.in:4: -1- m4_pattern_allow([^AS_FLAGS$])
m4trace:configure.in:4: -1- m4_pattern_forbid([^_?m4_])
m4trace:configure.in:4: -1- m4_pattern_forbid([^dnl$])
m4trace:configure.in:4: -1- m4_pattern_forbid([^_?AS_])
m4trace:configure.in:4: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
m4trace:configure.in:4: -1- AC_SUBST([PATH_SEPARATOR])
m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
m4trace:configure.in:4: -1- AC_SUBST([exec_prefix], [NONE])
m4trace:configure.in:4: -1- AC_SUBST([prefix], [NONE])
m4trace:configure.in:4: -1- AC_SUBST([program_transform_name], [s,x,x,])
m4trace:configure.in:4: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
m4trace:configure.in:4: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
m4trace:configure.in:4: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
m4trace:configure.in:4: -1- AC_SUBST([datadir], ['${prefix}/share'])
m4trace:configure.in:4: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
m4trace:configure.in:4: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
m4trace:configure.in:4: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
m4trace:configure.in:4: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
m4trace:configure.in:4: -1- AC_SUBST([includedir], ['${prefix}/include'])
m4trace:configure.in:4: -1- AC_SUBST([oldincludedir], ['/usr/include'])
m4trace:configure.in:4: -1- AC_SUBST([infodir], ['${prefix}/info'])
m4trace:configure.in:4: -1- AC_SUBST([mandir], ['${prefix}/man'])
m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
m4trace:configure.in:6: -1- AC_INIT([The GammaWare (GW) Package], [0.2], [stezow@ipnl.in2p3.fr], [GammaWare0.2])
m4trace:configure.in:6: -1- m4_pattern_forbid([^_?A[CHUM]_])
m4trace:configure.in:6: -1- m4_pattern_forbid([_AC_])
m4trace:configure.in:6: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
m4trace:configure.in:6: -1- m4_pattern_allow([^AS_FLAGS$])
m4trace:configure.in:6: -1- m4_pattern_forbid([^_?m4_])
m4trace:configure.in:6: -1- m4_pattern_forbid([^dnl$])
m4trace:configure.in:6: -1- m4_pattern_forbid([^_?AS_])
m4trace:configure.in:6: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
m4trace:configure.in:6: -1- AC_SUBST([PATH_SEPARATOR])
m4trace:configure.in:6: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
m4trace:configure.in:6: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
m4trace:configure.in:6: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
m4trace:configure.in:6: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
m4trace:configure.in:6: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
m4trace:configure.in:6: -1- AC_SUBST([exec_prefix], [NONE])
m4trace:configure.in:6: -1- AC_SUBST([prefix], [NONE])
m4trace:configure.in:6: -1- AC_SUBST([program_transform_name], [s,x,x,])
m4trace:configure.in:6: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
m4trace:configure.in:6: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
m4trace:configure.in:6: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
m4trace:configure.in:6: -1- AC_SUBST([datadir], ['${prefix}/share'])
m4trace:configure.in:6: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
m4trace:configure.in:6: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
m4trace:configure.in:6: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
m4trace:configure.in:6: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
m4trace:configure.in:6: -1- AC_SUBST([includedir], ['${prefix}/include'])
m4trace:configure.in:6: -1- AC_SUBST([oldincludedir], ['/usr/include'])
m4trace:configure.in:6: -1- AC_SUBST([infodir], ['${prefix}/info'])
m4trace:configure.in:6: -1- AC_SUBST([mandir], ['${prefix}/man'])
m4trace:configure.in:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
m4trace:configure.in:6: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
#undef PACKAGE_NAME])
m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
m4trace:configure.in:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
m4trace:configure.in:6: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME])
m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
m4trace:configure.in:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
m4trace:configure.in:6: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
#undef PACKAGE_VERSION])
m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
m4trace:configure.in:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
m4trace:configure.in:6: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
#undef PACKAGE_STRING])
m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
m4trace:configure.in:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
m4trace:configure.in:6: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT])
m4trace:configure.in:4: -1- AC_SUBST([build_alias])
m4trace:configure.in:4: -1- AC_SUBST([host_alias])
m4trace:configure.in:4: -1- AC_SUBST([target_alias])
m4trace:configure.in:4: -1- AC_SUBST([DEFS])
m4trace:configure.in:4: -1- AC_SUBST([ECHO_C])
m4trace:configure.in:4: -1- AC_SUBST([ECHO_N])
m4trace:configure.in:4: -1- AC_SUBST([ECHO_T])
m4trace:configure.in:4: -1- AC_SUBST([LIBS])
m4trace:configure.in:8: -1- AC_CONFIG_HEADERS([src/system/GWConfig.h])
m4trace:configure.in:9: -1- AC_CHECK_HEADERS([byteswap.h])
m4trace:configure.in:9: -1- AH_OUTPUT([HAVE_BYTESWAP_H], [/* Define to 1 if you have the <byteswap.h> header file. */
#undef HAVE_BYTESWAP_H])
m4trace:configure.in:9: -1- AC_PROG_CC
m4trace:configure.in:9: -1- AC_SUBST([CC])
m4trace:configure.in:9: -1- AC_SUBST([CFLAGS])
m4trace:configure.in:9: -1- AC_SUBST([LDFLAGS])
m4trace:configure.in:9: -1- AC_SUBST([CPPFLAGS])
m4trace:configure.in:9: -1- AC_SUBST([CC])
m4trace:configure.in:9: -1- AC_SUBST([ac_ct_CC])
m4trace:configure.in:9: -1- AC_SUBST([CC])
m4trace:configure.in:9: -1- AC_SUBST([ac_ct_CC])
m4trace:configure.in:9: -1- AC_SUBST([CC])
m4trace:configure.in:9: -1- AC_SUBST([CC])
m4trace:configure.in:9: -1- AC_SUBST([ac_ct_CC])
m4trace:configure.in:9: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
m4trace:configure.in:9: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
m4trace:configure.in:9: -1- AC_HEADER_STDC
m4trace:configure.in:9: -1- AC_PROG_CPP
m4trace:configure.in:9: -1- AC_SUBST([CPP])
m4trace:configure.in:9: -1- AC_SUBST([CPPFLAGS])
m4trace:configure.in:9: -1- AC_SUBST([CPP])
m4trace:configure.in:9: -1- AC_SUBST([EGREP])
m4trace:configure.in:9: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
m4trace:configure.in:9: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS])
m4trace:configure.in:9: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default])
m4trace:configure.in:9: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H])
m4trace:configure.in:9: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H])
m4trace:configure.in:9: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H])
m4trace:configure.in:9: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H])
m4trace:configure.in:9: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H])
m4trace:configure.in:9: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H])
m4trace:configure.in:9: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H])
m4trace:configure.in:9: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H])
m4trace:configure.in:9: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H])
m4trace:configure.in:18: -1- AC_PROG_MAKE_SET([gmake])
m4trace:configure.in:18: -1- AC_SUBST([SET_MAKE])
m4trace:configure.in:22: -1- AC_SUBST([DOXYGENOUT])
m4trace:configure.in:26: -1- AC_SUBST([doxygenout], [($DOXYGENOUT)])
m4trace:configure.in:28: -1- AC_SUBST([doxygenout], [($PWD/doc)])
m4trace:configure.in:33: -1- AC_SUBST([ROOTCINT_FOUND], [$ac_cv_path_ROOTCINT_FOUND])
m4trace:configure.in:35: -1- AC_SUBST([ROOTCONF_FOUND], [$ac_cv_path_ROOTCONF_FOUND])
m4trace:configure.in:44: -1- AC_SUBST([SUBPROJETS], ['src/root/physics src/root/gem src/root/tools src/system src/root/ganil'])
m4trace:configure.in:44: -1- AC_SUBST([SUBPROJETS], ['src/root/physics src/root/gem src/root/tools src/system'])
m4trace:configure.in:49: -1- AC_CONFIG_FILES([ Makefile ])
m4trace:configure.in:50: -1- AC_CONFIG_FILES([ Doxyfile ])
m4trace:configure.in:51: -1- AC_CONFIG_FILES([ src/root/physics/Makefile ])
m4trace:configure.in:52: -1- AC_CONFIG_FILES([ src/root/gem/Makefile ])
m4trace:configure.in:53: -1- AC_CONFIG_FILES([ src/root/tools/Makefile ])
m4trace:configure.in:54: -1- AC_CONFIG_FILES([ src/system/Makefile ])
m4trace:configure.in:55: -1- AC_CONFIG_FILES([ src/root/ganil/Makefile ])
m4trace:configure.in:56: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
m4trace:configure.in:56: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
m4trace:configure.in:6: -1- AC_SUBST([build_alias])
m4trace:configure.in:6: -1- AC_SUBST([host_alias])
m4trace:configure.in:6: -1- AC_SUBST([target_alias])
m4trace:configure.in:6: -1- AC_SUBST([DEFS])
m4trace:configure.in:6: -1- AC_SUBST([ECHO_C])
m4trace:configure.in:6: -1- AC_SUBST([ECHO_N])
m4trace:configure.in:6: -1- AC_SUBST([ECHO_T])
m4trace:configure.in:6: -1- AC_SUBST([LIBS])
m4trace:configure.in:21: -1- AC_SUBST([SUBPROJETS], ['src/root/physics src/root/gem src/root/tools src/system src/root/ganil'])
m4trace:configure.in:21: -1- AC_SUBST([SUBPROJETS], ['src/root/physics src/root/gem src/root/tools src/system'])
m4trace:configure.in:28: -1- AC_PROG_MAKE_SET([gmake])
m4trace:configure.in:28: -1- AC_SUBST([SET_MAKE])
m4trace:configure.in:34: -1- AC_SUBST([ROOTCINT_FOUND], [$ac_cv_path_ROOTCINT_FOUND])
m4trace:configure.in:37: -1- AC_SUBST([ROOTCONF_FOUND], [$ac_cv_path_ROOTCONF_FOUND])
m4trace:configure.in:40: -1- AC_SUBST([INSTALL_FOUND], [$ac_cv_path_INSTALL_FOUND])
m4trace:configure.in:42: -1- AC_SUBST([INSTALL_BIN], [cp -R])
m4trace:configure.in:43: -1- AC_SUBST([INSTALL_LIB], [cp -R])
m4trace:configure.in:44: -1- AC_SUBST([INSTALL_FILE], [cp -R])
m4trace:configure.in:46: -1- AC_SUBST([INSTALL_BIN], ['install'])
m4trace:configure.in:47: -1- AC_SUBST([INSTALL_LIB], ['install'])
m4trace:configure.in:48: -1- AC_SUBST([INSTALL_FILE], ['install -m 644'])
m4trace:configure.in:61: -1- AC_DEFINE_TRACE_LITERAL([HAVE__USR_INCLUDE_BYTESWAP_H])
m4trace:configure.in:61: -1- AH_OUTPUT([HAVE__USR_INCLUDE_BYTESWAP_H], [/* Define to 1 if you have the file `AC_File\'. */
#undef HAVE__USR_INCLUDE_BYTESWAP_H])
m4trace:configure.in:61: -1- AC_DEFINE_TRACE_LITERAL([HAVE_BYTESWAP_H])
m4trace:configure.in:63: -1- AC_CONFIG_HEADERS([src/system/GWConfig.h])
m4trace:configure.in:108: -1- AC_CONFIG_FILES([ Makefile ])
m4trace:configure.in:109: -1- AC_CONFIG_FILES([ Doxyfile ])
m4trace:configure.in:110: -1- AC_CONFIG_FILES([ src/root/physics/Makefile ])
m4trace:configure.in:111: -1- AC_CONFIG_FILES([ src/root/gem/Makefile ])
m4trace:configure.in:112: -1- AC_CONFIG_FILES([ src/root/tools/Makefile ])
m4trace:configure.in:113: -1- AC_CONFIG_FILES([ src/system/Makefile ])
m4trace:configure.in:114: -1- AC_CONFIG_FILES([ src/root/ganil/Makefile ])
m4trace:configure.in:115: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
m4trace:configure.in:115: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
This diff is collapsed.
dnl Process this file with autoconf to produce a configure script.
dnl ** Project Definition and check if the source code are set properly
dnl
dnl Project Definition and check if the source code are set properly
dnl
AC_INIT([The GammaWare (GW) Package],[0.2],[stezow@ipnl.in2p3.fr],[GammaWare0.2])
AC_CONFIG_SRCDIR(../gammaware/config/Makefile.root)
dnl ** configuration header
AC_CONFIG_HEADERS([src/system/GWConfig.h])
AC_CHECK_HEADERS([byteswap.h])
dnl ** set default to install the distribution
dnl
AC_PREFIX_DEFAULT([${PWD}])
dnl -------------------------------------
dnl information on the package
dnl -------------------------------------
dnl set default prefix
if test "x$prefix" = "xNONE"; then
prefix=$ac_default_prefix
ac_configure_args="$ac_configure_args --prefix $prefix"
fi
dnl ** to set the correct makefile
dnl any makefile that call MAKE should starts with
dnl
AC_PROG_MAKE_SET(gmake)
dnl configuration option for building with or without ganil
AC_ARG_ENABLE(ganil,AC_HELP_STRING([--enable-ganil],[enable to build the GANIL library])
,[AC_SUBST(SUBPROJETS,['src/root/physics src/root/gem src/root/tools src/system src/root/ganil'])] \
,[AC_SUBST(SUBPROJETS,['src/root/physics src/root/gem src/root/tools src/system'])])
dnl ** set path to install the documentation generated by doxygen
dnl
AC_ARG_VAR(DOXYGENOUT, [Output directory for documentation generated by doxygen])
dnl set default to install the distribution
AC_PREFIX_DEFAULT([${PWD}])
dnl ** check if $DOXYGENOUT exists. if not, set default directory to doc.
if test -n "$DOXYGENOUT"; then
AC_SUBST(doxygenout,[($DOXYGENOUT)])
else
AC_SUBST(doxygenout,[($PWD/doc)])
fi
dnl to set the correct makefile
dnl any makefile that call MAKE should starts with
AC_PROG_MAKE_SET(gmake)
dnl ** Check if root is installed
dnl -------------------------------------
dnl checks for programs
dnl -------------------------------------
dnl check for rootcint
AC_PATH_PROG(ROOTCINT_FOUND, rootcint, no)
dnl check for root-config
AC_PATH_PROG(ROOTCONF_FOUND, root-config, no)
dnl check if install is installed
AC_PATH_PROG(INSTALL_FOUND, install, no)
if test "$INSTALL_FOUND" = "no"; then
AC_SUBST(INSTALL_BIN, ['cp -R'])
AC_SUBST(INSTALL_LIB, ['cp -R'])
AC_SUBST(INSTALL_FILE,['cp -R'])
else
AC_SUBST(INSTALL_BIN, ['install'])