Commit Graph

82 Commits

Author SHA1 Message Date
Alex Lin
a48b39bfc1
Make ICG compatible with clang/llvm 15 ()
Made a couple of changes in ICG source code to handle clang API differences.  Encapsulated
differences in ifdefs.  Added libclangSupport to ICG link line.
2023-02-07 12:46:34 -06:00
Scott Fennell
c588520727
Autoconf Update & Refactor ()
Refactor autoconf, use best practices
2022-10-25 11:41:49 -05:00
John M. Penn
acdd75b6c1 Revert "Modify configure.ac so Trick will not use er7utils by default. "
This reverts commit 07b21fa4ae.
2022-09-14 16:30:48 -05:00
John M. Penn
07b21fa4ae Modify configure.ac so Trick will not use er7utils by default. 2022-09-02 17:06:13 -05:00
Scott Fennell
3cd2a1606f
1308 gcc ver ()
* add correct GCC verno to ICG for llvm >= 10

Co-authored-by: Jacqueline Deans <jndeans@jslal0520121056.jsc.nasa.gov>
Co-authored-by: Deans <jdeans289@gmail.com>
2022-07-20 11:38:42 -05:00
Scott Fennell
3b73be173a
Configure fixes and GitHub Actions workflow changes ()
* major refactor of test_linux workflow
* oracle linux, almalinux, and debian 11 added to workflow
*  ac_path_progs does not cache negative result like ac_path_prog. Strange. Fix bad python and python-config behavior
* add or statement in case behavior changes across autoconf versions
* all OSs now test both python 2 and python 3
2022-03-17 14:55:27 -05:00
Scott Fennell
087c2adc4a
1232 1236 ac lib check and linguist ()
*  add lib paths to LDFLAGS in configure script  ignore configure on github by adding linguist commands to .gitattributes

Closes  closes 
Co-authored-by: Fennell, Scott P 263712616 <scott.p.fennell@nasa.gov>
2022-02-28 16:02:07 -06:00
Scott Fennell
d16759fda5
autotools configure script: Add PYTHON_VERSION to precious variables and add zip to dependencies ()
closes 
closes 
2021-10-27 16:18:42 -05:00
Penn, John M 047828115
1179703b6d Refactor civitweb linkage 2021-10-14 18:17:04 -05:00
Penn, John M 047828115
0b373d96cf Refactor web server configuration. 2021-09-29 18:00:33 -05:00
Penn, John M 047828115
2153eaa6f0 Add print statement back to configure. Tidy up GridLayout instnciation. 2021-08-30 12:30:35 -05:00
Penn, John M 047828115
e487e5609f Initial excision of DMTCP from Trick. 2021-08-27 19:38:56 -05:00
Penn, John M 047828115
4c52ed2753 Merge Caleb Herpins port of Trick webserver from Mongoose to CivetWeb . 2021-08-18 13:15:10 -05:00
Scott Fennell
5d7b6e3bcc
1106 fix python ld path ()
*  re-add in ldflags to python-config command

closes 

Co-authored-by: Fennell, Scott P 263712616 <scott.p.fennell@nasa.gov>
2021-02-05 00:31:08 -06:00
Scott Fennell
abaa5855cb
1076 why path dumb ()
Remove 

closes 
2020-11-19 17:20:26 -06:00
Derek Bankieris
1e8228e344 Use -isystem for Trick and Python headers
Closes 
2020-10-23 08:28:01 -05:00
Scott Fennell
3b89cbfdb2
iss ()
Link correct clang libs based on availability. ICG clang lib link flags are determined by trick/configure
2020-08-28 14:52:23 -05:00
Scott Fennell
119b60d7c5
Ubuntu 20.04, Python 3.8, and improved python configuration in configure.ac () closes closes closes
see , , and .
To support Ubuntu 20.04 we must support new versions of python and gtest. Python has changed the way it provided libraries using python-config, so adjustments had to be made. I've completely ditched the built in autoconf function for finding python, because it adds a bunch of extra flags we don't need for Trick.

Now when we look for python with configure, it will search for python in this order:
python${PYTHON_VERSION}
python
python3

For python-config, it will search in this order:
python<major_version.minor_version>-config
python<major_version>-config
python${PYTHON_VERSION}-config
python-config
python3-config

Instead of python-config --ldflags, we are using python-config --libs
This only gets the flags we need.

For python >= 3.8 we use
python-config --libs --embed
this way it will add -lpython to the flags
2020-04-25 18:49:21 -05:00
Scott Fennell
55f6cc0b5c add python lib path to --with-python 2020-03-18 19:00:14 -05:00
Scott Fennell
3aa32b673e
--with-python ()
add --with-python configure option 
2020-03-17 12:28:34 -05:00
Scott Fennell
eb510bd65e check for trick-offline during configure 2020-02-06 09:33:44 -06:00
Scott Fennell
117bf3ebfb add --enable-mongoose, disable by default 2020-02-05 13:27:26 -06:00
Scott Fennell
a9f36b6dcc disable webserver by default 2020-02-04 15:26:31 -06:00
Scott Fennell
92f3679164 add offline mode --enable-offline 2020-02-04 10:50:35 -06:00
Scott Fennell
78ebc6fda3 apps can find trick_icon, minor change to configure 2020-01-30 09:40:17 -06:00
Scott Fennell
1b43a82f53 refactor java build to use maven to resolve dependencies and build executable jars 2020-01-29 14:11:46 -06:00
Alex Lin
057c31ff95 configure script fails in RHEL/CentOS 8
If gsl is installed the configure script fails because it needs
libgslcblas as well when testing for the library.
2019-11-01 14:10:13 -05:00
Alex Lin
34833be0de
configure script fails in RHEL/CentOS 8 ()
If we can't find python in the configure script then search for
python3.  If python3 is found use python3-config to get the
include directories and libraries.  Call python scripts using the
PYTHON environment variable.
2019-10-21 13:29:26 -05:00
Alex Lin
d1c08ade7a
Make switching to 32bit compile better ()
Added a new configure arugument "--enable-32bit".  If enabled,
TRICK_FORCE_32BIT is automatically set for building Trick and for
all sims built.  Changed the ARCH and added -m32 in the configure
script if 32bit is enabled.  This changes the configure script to
test for 32bit libraries.
2019-06-27 07:58:49 -05:00
Alex Lin
453a03a809
Get configure with no java and no X to work ()
Found if --without-x was specified, that automatically caused an
error condition in the configure script.  Fixed that and only
tested for X windows headers and libs if X is included.  Excluded
a couple of directories from compiling if X is not included.

Didn't seem to be a problem with java.
2019-06-18 11:00:42 -05:00
Alex Lin
5e9723c630
Add support for Mac's removal of /usr/include ()
If we are on a Mac, use xcrun to find the standard include directories.
Some of the makefiles in data_products look for libxml2 which requires
them to get the same change as the configure script.
2019-06-18 10:59:35 -05:00
Alex Lin
a394f0d187 TPROCTE_HOME Being Used In Place Of TPRO_HOME
Needed to make some more fixes to work with modern tsync driver
code.
2019-06-11 09:48:29 -05:00
Alex Lin
5b55b07263 Autogenerate SWIG dependencies
Adding /usr/loca/bin to configure search path.
2019-06-03 07:37:13 -05:00
Derek Bankieris
8a645d7721 Check perl version in configure.ac
Closes 
2019-05-31 09:52:03 -05:00
dbankieris
ae09b2b243
Merge pull request from nasa/505
Autogenerate SWIG dependencies
2019-05-30 16:04:27 -05:00
Derek Bankieris
99d856a17f Autogenerate SWIG dependencies
Require SWIG >= 2.0

Closes 
2019-05-29 09:03:19 -05:00
Esteban Duran
9bfd314726
fix: TPROCTE_HOME Being Used In Place Of TPRO_HOME
When compiling Trick with the --with-tpro option for use of a real-time clock, the TPROCTE_HOME variable was being assigned the contents of the withval variable instead of being assigned to the TPRO_HOME variable. The TPROCTE_HOME variable was never used and the TPRO_HOME variable will always be an empty string. Thus, the configuration file will always check for only /h/tpro.h instead of <user-provided-path-to-tpro>/h/tpro.h
2019-05-21 21:58:49 -05:00
Scott Fennell
c752dd1b2c one more line 2018-07-12 16:12:39 -05:00
Scott Fennell
5b5dc148bf remove debugging printouts 2018-07-12 16:09:07 -05:00
Scott Fennell
63ab0ffc22 changed help string for --with-swig 2018-07-12 16:05:39 -05:00
Scott Fennell
2a13bf34af add --with-swig=<path to swig> option to configure 2018-07-11 15:11:02 -05:00
Alex Lin
206ca5710d Fix configure's gcc version check.
We don't want to test the gcc version on the mac.  It is clang
underneath and it does not report a version >= 4.8.  On High Sierra
it reports 4.2.1
2018-04-23 08:36:13 -05:00
Pappy Van Winkle
e313264305 Update configure script based on configure.ac changes.
Relates to: , , 
2018-04-21 13:07:18 -05:00
Derek Bankieris
1682a0d3c5 Add udunits custom install directory to rpath
Other things I tried:

1. Pass the full path of the library directly to the linker.
Doesn't work for 32-bit builds because ICG needs the 64-bit version.

2. Use -static to have the linker statically link in the library.
Doesn't work because there is no 64-bit static library on default
installs.

Fixes 
2017-12-05 09:16:53 -06:00
Derek Bankieris
380ab024a4 Add --with-udunits path to TRICK_EXCLUDE
Fixes 
2017-12-04 11:02:03 -06:00
Alex Lin
1f5be950e4 Unable to configure Trick with Java 9
Changed the java version extractor to look for an optional decimal and
number past the decimal.  Now it can properly find "9" as the version number.
2017-10-10 09:18:51 -05:00
Alex Lin
b2ebe157ed Lost the MAKE_out file when we updated simulation makefiles
Added echos to all compile commands to append to MAKE_out.  tee'd
the output of the compile command so that it will go to both the MAKE_out
file and the screen.
2017-04-18 10:26:58 -05:00
Alex Lin
a946e16bdd configure script doesn't check for clang headers
Added a configure check for -lz
2016-08-23 09:46:50 -05:00
Alex Lin
d0349772d5 configure script doesn't check for clang headers
Added a configure check for clang/Basic/LLVM.h.
Also removed -lz from the link libraries.  I don't think we need it.
2016-08-23 08:58:16 -05:00
Alex Lin
bff1967d4d Add a flag to turn off java version check during configure
Added an --enable-java=(yes|no) and --disable-java options to the
configure script.  If java is disabled then the java GUIs are
not compiled.
2016-08-03 09:45:22 -05:00