Changeset d11524 in git for m4/cpu-check.m4
- Timestamp:
- Apr 14, 2011, 12:54:46 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 72015634c9aa4b237c52f66b5528b431f59c3c5c
- Parents:
- 691dbab4f58d7c8d1f15856e249e5d8a0be23d2d
- git-author:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-04-14 12:54:46+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:12:34+01:00
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
m4/cpu-check.m4
r691dba rd11524 1 # -*- Autoconf -*- 2 # Process this file with autoconf to produce a configure script. 1 # Check the cpu type 3 2 4 AC_PREREQ([2.65]) 5 AC_INIT([misc], [3.1.2.sw]) 6 AM_INIT_AUTOMAKE 7 AC_CONFIG_SRCDIR([mylimits.h]) 8 AC_CONFIG_HEADERS([config.h]) 3 dnl SING_CHECK_CPU 4 dnl 5 dnl check the cpu and define EXEC_EXT and SI_CPU* 9 6 10 # Checks for programs. 11 AC_PROG_CC 12 AC_PROG_CXX 13 AC_PROG_LN_S 14 AC_PROG_INSTALL 15 AC_PROG_RANLIB 16 AM_PROG_CC_C_O 17 18 # Checks for libraries. 19 20 # Checks for header files. 21 AC_CHECK_HEADERS([limits.h]) 22 23 # Checks for typedefs, structures, and compiler characteristics. 24 AC_C_INLINE 25 7 AC_DEFUN([SING_CHECK_CPU], 8 [ 26 9 # Checks for library functions. 27 10 AC_MSG_CHECKING(CPU for singular) 28 11 29 # check for cpu properties: 30 AC_CHECK_SIZEOF(long,4) 31 32 # UNAME and PATH 12 # CPUUNAME and PATH 33 13 ac_cv_singcpuname=`uname -m` 34 14 AC_MSG_RESULT($ac_cv_singcpuname) … … 86 66 fi 87 67 88 AC_CONFIG_FILES([Makefile]) 89 AC_OUTPUT 68 # UNAME and PATH 69 AC_MSG_CHECKING(uname for Singular) 70 71 #ac_cv_singuname=`singuname.sh` 72 AC_MSG_RESULT($ac_cv_singuname) 73 if test "$ac_cv_singuname" = unknown; then 74 AC_MSG_WARN(Unknown architecture: Check singuname.sh) 75 ac_cv_singuname="unknown" 76 fi 77 AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname", Singular's own uname\, believe it or not) 78 79 ])
Note: See TracChangeset
for help on using the changeset viewer.