llvm.org GIT mirror llvm / 5420525
Remove the apparently unused rand48 configure checks and associated m4. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244013 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 4 years ago
4 changed file(s) with 0 addition(s) and 107 deletion(s). Raw diff Collapse all Expand all
18751875 AC_CHECK_FUNCS([setjmp longjmp sigsetjmp siglongjmp writev])
18761876 AC_CHECK_FUNCS([futimes futimens])
18771877 AC_C_PRINTF_A
1878 AC_FUNC_RAND48
18791878
18801879 dnl Check for arc4random accessible via AC_INCLUDES_DEFAULT.
18811880 AC_CHECK_DECLS([arc4random])
+0
-12
autoconf/m4/rand48.m4 less more
None #
1 # This function determins if the srand48,drand48,lrand48 functions are
2 # available on this platform.
3 #
4 AC_DEFUN([AC_FUNC_RAND48],[
5 AC_SINGLE_CXX_CHECK([ac_cv_func_rand48],
6 [srand48/lrand48/drand48], [],
7 [srand48(0);lrand48();drand48();])
8 if test "$ac_cv_func_rand48" = "yes" ; then
9 AC_DEFINE([HAVE_RAND48],1,[Define to 1 if srand48/lrand48/drand48 exist in ])
10 fi
11 ])
1467614676 fi
1467714677
1467814678
14679
14680 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in " >&5
14681 echo $ECHO_N "checking for srand48/lrand48/drand48 in ... $ECHO_C" >&6; }
14682 if test "${ac_cv_func_rand48+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685
14686 ac_ext=cpp
14687 ac_cpp='$CXXCPP $CPPFLAGS'
14688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14691
14692 cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h. */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #include
14699 int
14700 main ()
14701 {
14702 srand48(0);lrand48();drand48();
14703 ;
14704 return 0;
14705 }
14706 _ACEOF
14707 rm -f conftest.$ac_objext
14708 if { (ac_try="$ac_compile"
14709 case "(($ac_try" in
14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711 *) ac_try_echo=$ac_try;;
14712 esac
14713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714 (eval "$ac_compile") 2>conftest.er1
14715 ac_status=$?
14716 grep -v '^ *+' conftest.er1 >conftest.err
14717 rm -f conftest.er1
14718 cat conftest.err >&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
14721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14722 { (case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725 esac
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_try") 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; } &&
14731 { ac_try='test -s conftest.$ac_objext'
14732 { (case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14735 esac
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_try") 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_func_rand48=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746 ac_cv_func_rand48=no
14747 fi
14748
14749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750 ac_ext=c
14751 ac_cpp='$CPP $CPPFLAGS'
14752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14755
14756
14757 fi
14758 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
14759 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
14760
14761 if test "$ac_cv_func_rand48" = "yes" ; then
14762
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_RAND48 1
14765 _ACEOF
14766
14767 fi
14768
14769
1477014679 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
1477114680 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
1477214681 if test "${ac_cv_have_decl_arc4random+set}" = set; then
225225 /* Have pthread_rwlock_init */
226226 #undef HAVE_PTHREAD_RWLOCK_INIT
227227
228 /* Define to 1 if srand48/lrand48/drand48 exist in */
229 #undef HAVE_RAND48
230
231228 /* Define to 1 if you have the `realpath' function. */
232229 #undef HAVE_REALPATH
233230