- Timestamp:
- Nov 16, 2022, 4:41:28 PM (17 months ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 6a1cdff5edb80f26943821d2616ea6cd684a0a5a
- Parents:
- fb69c502f926f253f3cdde3646c5e7e142f1a9da
- Location:
- m4
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/ax_normalize_path.m4
rfb69c5 r47c5e6 1 1 # =========================================================================== 2 # http://www.gnu.org/software/autoconf-archive/ax_normalize_path.html2 # https://www.gnu.org/software/autoconf-archive/ax_normalize_path.html 3 3 # =========================================================================== 4 4 # … … 81 81 # 82 82 # You should have received a copy of the GNU General Public License along 83 # with this program. If not, see <http ://www.gnu.org/licenses/>.83 # with this program. If not, see <https://www.gnu.org/licenses/>. 84 84 # 85 85 # As a special exception, the respective Autoconf Macro's copyright owner … … 96 96 # exception to the GPL to apply to your modified version as well. 97 97 98 #serial 598 #serial 8 99 99 100 100 AU_ALIAS([ADL_NORMALIZE_PATH], [AX_NORMALIZE_PATH]) … … 107 107 :*:) ;; 108 108 esac 109 # sque ze repeated slashes109 # squeeze repeated slashes 110 110 case ifelse($2,,"[$]$1",$2) in 111 111 # if the path contains any backslashes, turn slashes into backslashes … … 114 114 *) $1=`echo "[$]$1" | sed 's,\(.\)[[\\/]][[\\/]]*,\1/,g'` ;; 115 115 esac]) 116 -
m4/ax_prog_cc_for_build.m4
rfb69c5 r47c5e6 33 33 # warranty. 34 34 35 #serial 1835 #serial 21 36 36 37 37 AU_ALIAS([AC_PROG_CC_FOR_BUILD], [AX_PROG_CC_FOR_BUILD]) … … 45 45 pushdef([ac_cv_prog_CPP], ac_cv_build_prog_CPP)dnl 46 46 pushdef([ac_cv_prog_cc_c89], ac_cv_build_prog_cc_c89)dnl 47 pushdef([ac_cv_prog_cc_c99], ac_cv_build_prog_cc_c99)dnl 48 pushdef([ac_cv_prog_cc_c11], ac_cv_build_prog_cc_c11)dnl 47 49 pushdef([ac_cv_prog_gcc], ac_cv_build_prog_gcc)dnl 48 50 pushdef([ac_cv_prog_cc_works], ac_cv_build_prog_cc_works)dnl … … 84 86 85 87 AC_LANG_PUSH([C]) 88 89 dnl The pushdef([ac_cv_c_compiler_gnu], ...) currently does not cover 90 dnl the use of this variable in _AC_LANG_COMPILER_GNU called by 91 dnl AC_PROG_CC. Unset this cache variable temporarily as a workaround. 92 was_set_c_compiler_gnu=${[ac_cv_c_compiler_gnu]+y} 93 AS_IF([test ${was_set_c_compiler_gnu}], 94 [saved_c_compiler_gnu=$[ac_cv_c_compiler_gnu] 95 AS_UNSET([[ac_cv_c_compiler_gnu]])]) 96 86 97 AC_PROG_CC 98 99 dnl Restore ac_cv_c_compiler_gnu 100 AS_IF([test ${was_set_c_compiler_gnu}], 101 [[ac_cv_c_compiler_gnu]=$[saved_c_compiler_gnu]]) 102 87 103 _AC_COMPILER_EXEEXT 88 104 _AC_COMPILER_OBJEXT … … 138 154 AC_SUBST([LDFLAGS_FOR_BUILD])dnl 139 155 ]) 156 -
m4/flint-check.m4
rfb69c5 r47c5e6 23 23 Otherwise you can give the <path> to the directory 24 24 which contains the library. 25 26 27 28 29 30 31 25 ], 26 [if test "x$withval" = xyes ; then 27 FLINT_HOME_PATH="DEFAULTS ${DEFAULT_CHECKING_PATH}" 28 elif test "x$withval" != xno ; then 29 FLINT_HOME_PATH="$withval" 30 fi], 31 [FLINT_HOME_PATH="DEFAULTS ${DEFAULT_CHECKING_PATH}"]) 32 32 33 33 dnl Check for existence … … 45 45 FLINT_LIBS="-lflint -lmpfr -lgmp" 46 46 else 47 48 47 FLINT_CFLAGS="-I${FLINT_HOME}/include/" 48 FLINT_LIBS="-L${FLINT_HOME}/lib -Wl,-rpath,${FLINT_HOME}/lib -lflint -lmpfr -lgmp" 49 49 fi 50 50 51 52 53 51 # we suppose that mpfr and mpir to be in the same place or available by default 52 CFLAGS="${FLINT_CFLAGS} ${GMP_CPPFLAGS} ${BACKUP_CFLAGS}" 53 LIBS="${FLINT_LIBS} ${GMP_LIBS} ${BACKUP_LIBS}" 54 54 55 AC_TRY_LINK([#include <flint/fmpz.h> 56 ], 57 [fmpz_t x; fmpz_init(x);], [ 58 flint_found="yes" 59 break 60 ]) 55 AC_LINK_IFELSE( 56 [AC_LANG_PROGRAM([[#include <flint/fmpz.h>]], 57 [[fmpz_t x; fmpz_init(x);]])], 58 [flint_found="yes"], 59 [break]) 61 60 done 62 61 … … 70 69 71 70 if test "x$flint_found" = "xyes" ; then 72 73 74 71 AC_DEFINE(HAVE_FLINT,1,[Define if FLINT is installed]) 72 HAVE_FLINT=yes 73 AC_MSG_RESULT(found) 75 74 else 76 77 78 79 75 AC_MSG_RESULT(not found) 76 FLINT_CFLAGS="" 77 FLINT_LIBS="" 78 FLINT_HOME="" 80 79 fi 81 80 AC_SUBST(FLINT_CFLAGS) -
m4/gmp-check.m4
rfb69c5 r47c5e6 32 32 CFLAGS="${GMP_CPPFLAGS} ${BACKUP_CFLAGS}" 33 33 LIBS=" ${GMP_LIBS} ${BACKUP_LIBS}" 34 AC_TRY_LINK([#include <gmp.h> 35 ], 36 [mpz_t a; mpz_init (a);], [ 37 gmp_found=yes 38 break 39 ]) 34 AC_LINK_IFELSE( 35 [AC_LANG_PROGRAM([[#include <gmp.h>]], 36 [[mpz_t a; mpz_init (a);]])], 37 [gmp_found=yes], 38 [break]) 40 39 done 41 40 if test "$gmp_found" != yes; then -
m4/google-perftools.m4
rfb69c5 r47c5e6 23 23 ac_google_perfdir='no' 24 24 AC_ARG_WITH(google-perftools, 25 A C_HELP_STRING([--with-google-perftools=DIR],25 AS_HELP_STRING([--with-google-perftools=DIR], 26 26 [location of a google perftools installation (default none)]), 27 27 ac_google_perfdir=$withval) 28 28 29 29 AC_ARG_ENABLE(google-profiling, 30 A C_HELP_STRING([--enable-google-profiling],30 AS_HELP_STRING([--enable-google-profiling], 31 31 [compile with google profiling]), 32 32 [google_profile=$enableval],
Note: See TracChangeset
for help on using the changeset viewer.