Joachim Reichel
954154978a
Darwin does not set RUNTIME_LINKER_FLAG, hence the old hack is still needed
2007-04-03 16:19:16 +00:00
Andreas Meyer
a2e451db51
g++-4.1/LEDA workaround: only apply, if LEDA is actually supported
2007-04-02 21:34:59 +00:00
Joachim Reichel
66f1eb5725
generate shared libraries with correct RPATH setting if --prefix is used
...
(does not work if the interactive installer is used and the installation
directory is changed after the libraries are build)
2007-04-02 17:24:41 +00:00
Andreas Meyer
d77bcac271
g++ 4.1 / LEDA needs CXXFLAGS "-ffriend-injection"
2007-04-01 11:53:51 +00:00
Sylvain Pion
d1506c70da
Move *Linux*pgCC* case before *Linux*CC* one otherwise it will match the wrong case.
2007-03-30 09:25:56 +00:00
Sylvain Pion
55e9ee28c9
Alternate match for SunCC on Linux.
2007-03-29 20:47:56 +00:00
Joachim Reichel
c079a5f471
reverse previous commit (causes problems with the interactive installer)
2007-03-26 18:24:29 +00:00
Joachim Reichel
cae96de071
generate libraries with correct RPATH definition if --prefix is used
...
remove Darwin-specific hack
2007-03-26 17:47:01 +00:00
Joachim Reichel
af61c9e9a1
remove extra newline in makefile_print_from_var()
2007-03-25 13:30:44 +00:00
Daniel Russel
1919a8bd42
fixed empty string passed to gcc and runtime shared lib path now points to the right place after install
2007-03-22 21:06:08 +00:00
Laurent Rineau
10ccff6780
Use 'printf "%s\n"' instead of 'echo -n'.
2007-03-22 14:59:41 +00:00
Laurent Rineau
204ecbba22
- Do not loose part of install.log with the use of --CGAL_DIR.
...
- Fix a syntax error on Solaris: test -z needs an argument, so
[ -z `value_of PROVIDE_PKG_${i}` ]
needs to be quoted into
[ -z "`value_of PROVIDE_PKG_${i}`" ]
2007-03-21 00:09:58 +00:00
Daniel Russel
ac4bdb4378
log to log for non-interactive installation
2007-03-20 22:30:36 +00:00
Joachim Reichel
f233d31cbf
add $(strip ...) calls to definitions of CGAL_CXXFLAGS, CGAL_LIBPATHFLAGS,
...
and CGAL_LDFLAGS
2007-03-20 20:26:34 +00:00
Laurent Rineau
ae81a9ff42
Again a major speed-up of parse_support_options(): use only one awk to do the
...
whole job.
Tested on Linux and Solaris.
2007-03-20 19:54:56 +00:00
Joachim Reichel
f038ffdd56
drop support for external CORE
2007-03-20 19:09:33 +00:00
Laurent Rineau
9497f94d67
New shell variable: ${CGAL_LIBS_OPTFLAGS}. Set to "-O2" but for SunCC: Marc
...
Glisse told me that -O is better for sunCC, because -O is the optimization
level that is the more stable.
2007-03-20 10:29:21 +00:00
Marc Glisse
dc3364c65a
Basics for sunpro on linux-x86. I will touch FPU.h again later.
2007-03-19 18:25:06 +00:00
Joachim Reichel
78deced48d
add missing definitions for shared libraries on *alpha*Linux*g++*
2007-03-19 17:07:22 +00:00
Joachim Reichel
10a1be523a
print version number of supported libraries (if known)
2007-03-19 17:02:55 +00:00
Laurent Rineau
2408837793
Fix getconf call: `getconf PATH` is more standard than `getconf CS_PATH`
...
(Single Unix Specification version 3).
2007-03-19 07:46:40 +00:00
Joachim Reichel
0cbdfe9716
install makefile as $(CGAL_INSTALL_DIR)/share/cgal/makefile
...
do not install unused subdirectory $(CGAL_INSTALL_DIR)/include/CGAL/config
2007-03-18 11:56:46 +00:00
Joachim Reichel
55438c8c8e
fix invocation of _check_for_util from _check_for_sysutil (the former
...
was looking for a program 'gmake n MAKE' instead of 'gmake')
2007-03-18 10:28:58 +00:00
Daniel Russel
f1f153c176
added auto compiler determination to ni, made ni default (removed auto), suppressed warnings when missing config file, cleaned up print out when the config is found
2007-03-16 19:29:11 +00:00
Laurent Rineau
db7b7eaf97
Special gift feature for Andreas Fabri: the last line of the output of
...
install_cgal can now be copy pasted in the shell.
E.g.:
** WARNING: You did not build any libs during this session. **
** If something went wrong, (or maybe also, if not:) **
** have a look at install.log. **
****************************************************************
Remember to set the CGAL_MAKEFILE environment variable, e.g.:
export CGAL_MAKEFILE="/usr/share/CGAL/make/makefile"
2007-03-16 16:10:53 +00:00
Laurent Rineau
38ff402c77
Quote more, in the display of "set to ..." in try_to_get_var_from_config_file().
...
A single quote prevents the shell from interpreting the string.
2007-03-16 15:43:20 +00:00
Laurent Rineau
0eba620f11
- minor modifications of _check_for_(sys)?util():
...
- one can set variables NO_<utility> (like NO_printf for example) to see
what happens if an utility is missing (I like using NO_tput=y, for
example),
- use of value_of() instead of two eval.
- Add a message at the beginning of the search of POSIX utilities. On
Cygwin it can take some time.
- Search for GNU/make only in startup (no need for it to see
`install_cgal --help`).
- Remove a slash in CGAL_MAKE_DIR.
2007-03-16 15:40:46 +00:00
Laurent Rineau
8a67f904d9
Fix for platforms that do not have 'getconf'.
...
The trick: use "_check_for_util getconf", before uses of check_for_sysutil.
Tested on Linux and Solaris.
2007-03-14 21:38:18 +00:00
Laurent Rineau
7935f735e0
- Fix _bc_expr() (broken since the beginning of times, probably never used).
...
- Fix _search_compiler() (I had broken the latter a week ago, with revision
36838).
- Better function _check_for_sysutil(): it now uses `getconf CS_PATH` to
search for POSIX utilities in standard directories. If should fix
install_cgal on Solaris (tested on Linux and Solaris).
- check_for_utils() is now call as soon as possible, to get a POSIX awk
before the parsing of support config files.
- Fix calls to any utility without using a variable ${_foobar}. Now, only
the following utilities are used directly:
/bin/basename
/bin/date
2007-03-14 19:51:52 +00:00
Laurent Rineau
6d542045f9
Make keys case-insensitive in support_feature_menu(), like in other menus.
2007-03-14 09:42:58 +00:00
Joachim Reichel
4f47903a25
moved src/Core to src/CGALCore
...
moved include/CORE to include/CGAL/CORE
moved include/OpenNL to include/CGAL/OpenNL
renamed libcore++ to libCGALcore++
2007-03-13 18:10:39 +00:00
Joachim Reichel
cd1a040d2e
remove -w and -g option of install_cgal
...
remove makefile variables CGAL_WINDOW_LDFLAGS, CGAL_GEOWIN_LDFLAGS and CGAL_QT_LDFLAGS
(see #1894 )
2007-03-09 22:53:24 +00:00
Laurent Rineau
1d90e12229
Allows MAKE="make -j2" ./install_cgal...
2007-03-09 10:28:32 +00:00
Sylvain Pion
cb13268b22
Initialize _grep to grep.
...
Improve detection of PGCC (pgCC or pgcpp).
2007-03-08 17:12:26 +00:00
Laurent Rineau
efeb130fad
Fix real_which, which was quite stupide. :-)
2007-03-08 10:00:25 +00:00
Laurent Rineau
a83c9d3f3a
- Repair the detection of GNU make.
...
- New variables _touch and _grep.
- Check the use of variables ${_util} instead of "util" directly (for
util=grep,touch,cat,rm).
- Use ${CUSTOM_CXXFLAGS} for tests also.
2007-03-07 10:21:48 +00:00
Laurent Rineau
65ed13d8c9
New test for gmake.
...
Add /opt/sfw/bin to standard places (Solaris).
Change the meaning of $3 in _check_for_util and _check_for_sysutil.
2007-03-06 09:21:05 +00:00
Sylvain Pion
5994cd4e35
remove buggy the in last commit
2007-03-05 17:59:10 +00:00
Sylvain Pion
39a14e92b8
Add to --help the following : --with-PACKAGE, --PACKAGE_INCL_DIR, --PACKAGE_LIB_DIR.
2007-03-05 17:58:11 +00:00
Laurent Saboret
646b0feaa7
try_to_get_var_from_file() supports now several '=' characters on a line
2007-03-05 11:00:07 +00:00
Laurent Rineau
a3fe48756a
Fix the comment of try_to_get_var_from_file_aux().
2007-03-03 16:30:51 +00:00
Laurent Rineau
972fc4250a
Optimization:
...
- printf is a POSIX shell builtin, so _check_for_sysutil should not be
called for printf
That optimization avoids more than 15000 forks, during an execution of
./install_cgal -i
2007-03-03 16:17:07 +00:00
Laurent Rineau
c6fe655d14
Optimizations:
...
- new implementation of try_to_get_var_from_file() and
try_to_get_var_from_config_file() that allows to parse a whole file at
once,
- new implementation of parse_support_options(), that parse each config
file at whole.
2007-03-03 15:54:41 +00:00
Laurent Rineau
c115b38748
Fix last patch rev36791: i forgot two characteres `".
2007-03-03 15:10:53 +00:00
Laurent Rineau
59d45d51af
Optimisation: POSIX awk has a function toupper, so no need to pipe it in
...
${_tr} '[:lower:]' '[:upper:]'.
2007-03-03 14:26:14 +00:00
Sylvain Pion
623020b3ae
minor (8%) optimization of the number of calls to tr
2007-03-02 12:58:15 +00:00
Daniel Russel
d46a6f58b6
auto install things if no action is specified
2007-03-01 23:43:54 +00:00
Daniel Russel
716be153c6
fixed dylib path on macs, and the makefile is now in make/CGAL and everything is now installed properly.
2007-03-01 23:43:20 +00:00
Fernando Cacciola
a06fa41cb9
auto_link.h now centralized and moved into CGAL/auto_link/ folder.
...
New line at EOF issues in new headers fixed.
2007-03-01 20:15:24 +00:00
Laurent Rineau
467deadec0
Attempt to restore dylibs on Darwin.
2007-02-27 22:12:02 +00:00