Changeset db225a in git
- Timestamp:
- Aug 2, 2018, 10:44:03 AM (5 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 8ac0543abc53e49f3dfa217c1250d95fa23928fb
- Parents:
- d8ad3714bba84907b786fa682671a1c879fad6c0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/ntl-check.m4
rd8ad37 rdb225a 52 52 53 53 if test "x$NTL_HOME" != "x/usr"; then 54 NTL_CPPFLAGS="-I${NTL_HOME}/include" 55 NTL_LIBS="-L${NTL_HOME}/lib -lntl" 56 else 57 NTL_CPPFLAGS="" 58 NTL_LIBS="-lntl" 59 fi 60 ### CFLAGS="${BACKUP_CFLAGS} ${NTL_CPPFLAGS} ${GMP_CPPFLAGS}" 61 CXXFLAGS="${BACKUP_CXXFLAGS} ${NTL_CPPFLAGS} ${GMP_CPPFLAGS}" 62 LIBS="${BACKUP_LIBS} ${NTL_LIBS} ${GMP_LIBS}" 63 64 AC_TRY_LINK( 65 [#include <NTL/ZZ.h>], 66 [NTL::ZZ a;], 67 [ 68 AC_TRY_RUN( 69 [#include <NTL/version.h> 70 #include <NTL/config.h> 71 #ifndef NTL_GMP_LIP 72 int main() {return -1;} 73 #else 74 int main () { if (NTL_MAJOR_VERSION < 5) return -1; else return 0;} 75 #endif 76 ],[ 77 ntl_found="yes" 78 break 79 ],[ 80 ntl_problem="$problem $NTL_HOME" 81 unset NTL_CPPFLAGS 82 unset NTL_LIBS 83 ],[ 84 ntl_found="yes" 85 ntl_cross="yes" 86 break 87 ]) 88 ], 89 [ 90 ntl_found="no" 91 ntl_checked="$checked $NTL_HOME" 92 unset NTL_CPPFLAGS 93 unset NTL_LIBS 94 ]) 95 dnl try again with -std=c++11 (for NTL >=10 with threads) 96 if test "x$NTL_HOME" != "x/usr"; then 54 97 NTL_CPPFLAGS="-std=c++11 -I${NTL_HOME}/include" 55 98 NTL_LIBS="-L${NTL_HOME}/lib -lntl" … … 99 142 100 143 if test "x$ntl_found" = "xyes" ; then 101 AC_TRY_RUN(102 [#include <NTL/version.h>103 #include <NTL/config.h>104 int main () { if (NTL_MAJOR_VERSION < 10) return -1; else return 0;}105 ],[106 break107 ],[108 NTL_CPPFLAGS="-I${NTL_HOME}/include"109 ],[110 break111 ])112 144 AC_SUBST(NTL_CPPFLAGS) 113 145 AC_SUBST(NTL_LIBS)
Note: See TracChangeset
for help on using the changeset viewer.