llvm.org GIT mirror llvm / f6ce9ef
Remove unneeded checks from configure.ac. HAVE_{BI,STD,FWD}_ITERATOR and HAVE_NAMESPACES were not used in the code. bison and flex are no longer used. CAN_DLOPEN_SELF was never used either. AC_PROG_LIBTOOL is not needed since we don't use libtool, we only need the libltdl checks for dlopen. Add check for AR, it used to be done by AC_PROG_LIBTOOL. AC_TYPE_SIGNAL is deprecated, follow autoupdate's suggestion and replace with void. Remove unused m4 files. Configure can now be generated using autoconf 2.65 too, without any warnings! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94534 91177308-0d34-0410-b5e6-96231b3b80d8 Torok Edwin 9 years ago
7 changed file(s) with 3 addition(s) and 134 deletion(s). Raw diff Collapse all Expand all
4848 dnl Place all of the extra autoconf files into the config subdirectory. Tell
4949 dnl various tools where the m4 autoconf macros are.
5050 AC_CONFIG_AUX_DIR([autoconf])
51 AC_CONFIG_MACRO_DIR([m4])
5152
5253 dnl Quit if the source directory has already been configured.
5354 dnl NOTE: This relies upon undocumented autoconf behavior.
788789 AC_PATH_PROG(MKDIR,[mkdir],[mkdir])
789790 AC_PATH_PROG(MV, [mv], [mv])
790791 AC_PROG_RANLIB
792 AC_CHECK_TOOL(AR, ar, false)
791793 AC_PATH_PROG(RM, [rm], [rm])
792794 AC_PATH_PROG(SED, [sed], [sed])
793795 AC_PATH_PROG(TAR, [tar], [gtar])
918920 dnl libtool).
919921 AC_LIBTOOL_DLOPEN
920922 AC_LIB_LTDL
921 AC_PROG_LIBTOOL
922
923 if test "$lt_cv_dlopen_self" = "yes" ; then
924 AC_DEFINE([CAN_DLOPEN_SELF],[1],
925 [Define if dlopen(0) will open the symbols of the program])
926 fi
927
928923
929924 if test "$WITH_LLVMGCCDIR" = "default" ; then
930925 LLVMGCC="llvm-gcc${EXEEXT}"
11471142 AC_HUGE_VAL_CHECK
11481143 AC_TYPE_PID_T
11491144 AC_TYPE_SIZE_T
1150 AC_TYPE_SIGNAL
1145 AC_DEFINE_UNQUOTED([RETSIGTYPE],[void],[Define as the return type of signal handlers (`int' or `void').])
11511146 AC_STRUCT_TM
11521147 AC_CHECK_TYPES([int64_t],,AC_MSG_ERROR([Type int64_t required but not found]))
11531148 AC_CHECK_TYPES([uint64_t],,
11691164 AC_CHECK_FUNCS([strtoll strtoq sysconf malloc_zone_statistics ])
11701165 AC_CHECK_FUNCS([setjmp longjmp sigsetjmp siglongjmp])
11711166 AC_C_PRINTF_A
1172 dnl FIXME: This is no longer used, please remove (but test)!!!
1173 AC_FUNC_ALLOCA
11741167 AC_FUNC_RAND48
11751168
11761169 dnl Check for variations in the Standard C++ library and STL. These macros are
11771170 dnl provided by LLVM in the autoconf/m4 directory.
1178 AC_CXX_HAVE_STD_ITERATOR
1179 AC_CXX_HAVE_BI_ITERATOR
1180 AC_CXX_HAVE_FWD_ITERATOR
11811171 AC_FUNC_ISNAN
11821172 AC_FUNC_ISINF
11831173
+0
-15
autoconf/m4/bison.m4 less more
None #
1 # Check for Bison.
2 #
3 # This macro verifies that Bison is installed. If successful, then
4 # 1) YACC is set to bison -y (to emulate YACC calls)
5 # 2) BISON is set to bison
6 #
7 AC_DEFUN([AC_PROG_BISON],
8 [AC_CACHE_CHECK([],[llvm_cv_has_bison],[AC_PROG_YACC()])
9 if test "$YACC" != "bison -y"; then
10 AC_SUBST(BISON,[])
11 AC_MSG_WARN([bison not found, can't rebuild grammars])
12 else
13 AC_SUBST(BISON,[bison])
14 fi])
+0
-22
autoconf/m4/cxx_bidi_iterator.m4 less more
None #
1 # Check for bidirectional iterator extension. This is modified from
2 # http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_ext_hash_set.html
3 #
4 AC_DEFUN([AC_CXX_HAVE_BI_ITERATOR],
5 [AC_CACHE_CHECK(whether the compiler has the bidirectional iterator,
6 ac_cv_cxx_have_bi_iterator,
7 [AC_REQUIRE([AC_CXX_NAMESPACES])
8 AC_LANG_PUSH([C++])
9 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include
10 #ifdef HAVE_NAMESPACES
11 using namespace std;
12 #endif]], [[bidirectional_iterator t; return 0;]])],[ac_cv_cxx_have_bi_iterator=yes],[ac_cv_cxx_have_bi_iterator=no])
13 AC_LANG_POP([C++])
14 ])
15 if test "$ac_cv_cxx_have_bi_iterator" = yes
16 then
17 AC_DEFINE(HAVE_BI_ITERATOR,1,[Have bi-directional iterator])
18 else
19 AC_DEFINE(HAVE_BI_ITERATOR,0,[Does not have bi-directional iterator])
20 fi
21 ])
+0
-22
autoconf/m4/cxx_fwd_iterator.m4 less more
None # Check for forward iterator extension. This is modified from
1 # http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_ext_hash_set.html
2 AC_DEFUN([AC_CXX_HAVE_FWD_ITERATOR],
3 [AC_CACHE_CHECK(whether the compiler has forward iterators,
4 ac_cv_cxx_have_fwd_iterator,
5 [AC_REQUIRE([AC_CXX_NAMESPACES])
6 AC_LANG_PUSH([C++])
7 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include
8 #ifdef HAVE_NAMESPACES
9 using namespace std;
10 #endif]], [[forward_iterator t; return 0;]])],[ac_cv_cxx_have_fwd_iterator=yes],[ac_cv_cxx_have_fwd_iterator=no])
11 AC_LANG_POP([C++])
12 ])
13 if test "$ac_cv_cxx_have_fwd_iterator" = yes
14 then
15 AC_DEFINE(HAVE_FWD_ITERATOR,1,[Have forward iterator])
16 else
17 AC_DEFINE(HAVE_FWD_ITERATOR,0,[Does not have forward iterator])
18 fi
19 ])
20
21
+0
-19
autoconf/m4/cxx_namespaces.m4 less more
None # Check for C++ namespace support. This is from
1 # http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_namespaces.html
2 #
3 AC_DEFUN([AC_CXX_NAMESPACES],
4 [AC_CACHE_CHECK(whether the compiler implements namespaces,
5 ac_cv_cxx_namespaces,
6 [AC_LANG_PUSH([C++])
7 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
8 [[namespace Outer { namespace Inner { int i = 0; }}]],
9 [[using namespace Outer::Inner; return i;]])],
10 ac_cv_cxx_namespaces=yes,
11 ac_cv_cxx_namespaces=no)
12 AC_LANG_POP([C++])
13 ])
14 if test "$ac_cv_cxx_namespaces" = yes; then
15 AC_DEFINE(HAVE_NAMESPACES,,[define if the compiler implements namespaces])
16 fi
17 ])
18
+0
-26
autoconf/m4/cxx_std_iterator.m4 less more
None # Check for standard iterator extension. This is modified from
1 # http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_ext_hash_set.html
2 AC_DEFUN([AC_CXX_HAVE_STD_ITERATOR],
3 [AC_CACHE_CHECK(whether the compiler has the standard iterator,
4 ac_cv_cxx_have_std_iterator,
5 [AC_REQUIRE([AC_CXX_NAMESPACES])
6 AC_LANG_PUSH([C++])
7 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
8 [[#include
9 #ifdef HAVE_NAMESPACES
10 using namespace std;
11 #endif]],
12 [[iterator t; return 0;]])],
13 ac_cv_cxx_have_std_iterator=yes,
14 ac_cv_cxx_have_std_iterator=no)
15 AC_LANG_POP([C++])
16 ])
17 if test "$ac_cv_cxx_have_std_iterator" = yes
18 then
19 AC_DEFINE(HAVE_STD_ITERATOR,1,[Have std namespace iterator])
20 else
21 AC_DEFINE(HAVE_STD_ITERATOR,0,[Does not have std namespace iterator])
22 fi
23 ])
24
25
+0
-17
autoconf/m4/flex.m4 less more
None #
1 # Check for FLEX.
2 #
3 # This macro verifies that flex is installed. If successful, then
4 # 1) $LEX is set to "flex" (to emulate lex calls)
5 # 2) BISON is set to bison
6 AC_DEFUN([AC_PROG_FLEX],
7 [AC_CACHE_CHECK(,
8 ac_cv_has_flex,
9 [AC_PROG_LEX()
10 ])
11 if test "$LEX" != "flex"; then
12 AC_MSG_ERROR([flex not found but required])
13 else
14 AC_SUBST(FLEX,[flex],[location of flex])
15 fi
16 ])