ULTRIX, OSF/1, Tru64, Linux 2.0: uint8_t check must come *before* the
arc4random.c source file is added to $LIBS (and related checks)
This commit is contained in:
parent
a49d855ab2
commit
5cc1722967
12
Build.sh
12
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.417 2009/08/01 21:51:24 tg Exp $'
|
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.418 2009/08/01 21:52:02 tg Exp $'
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009
|
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009
|
||||||
# Thorsten Glaser <tg@mirbsd.org>
|
# Thorsten Glaser <tg@mirbsd.org>
|
||||||
@ -1087,11 +1087,6 @@ if test 0 = $HAVE_ARC4RANDOM; then
|
|||||||
cp "$srcdir/arc4random.c" .
|
cp "$srcdir/arc4random.c" .
|
||||||
fi
|
fi
|
||||||
if test -f arc4random.c; then
|
if test -f arc4random.c; then
|
||||||
ac_header sys/sysctl.h
|
|
||||||
addsrcs '!' HAVE_ARC4RANDOM arc4random.c
|
|
||||||
HAVE_ARC4RANDOM=1
|
|
||||||
LIBS="$LIBS arc4random.c"
|
|
||||||
|
|
||||||
ac_testn can_uint8t '' "for uint8_t" <<-'EOF'
|
ac_testn can_uint8t '' "for uint8_t" <<-'EOF'
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#if HAVE_STDINT_H
|
#if HAVE_STDINT_H
|
||||||
@ -1101,6 +1096,11 @@ if test 0 = $HAVE_ARC4RANDOM; then
|
|||||||
EOF
|
EOF
|
||||||
test $HAVE_CAN_UINT8T = 1 || \
|
test $HAVE_CAN_UINT8T = 1 || \
|
||||||
CPPFLAGS="$CPPFLAGS -D\"uint8_t=unsigned char\""
|
CPPFLAGS="$CPPFLAGS -D\"uint8_t=unsigned char\""
|
||||||
|
|
||||||
|
ac_header sys/sysctl.h
|
||||||
|
addsrcs '!' HAVE_ARC4RANDOM arc4random.c
|
||||||
|
HAVE_ARC4RANDOM=1
|
||||||
|
LIBS="$LIBS arc4random.c"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
ac_cppflags ARC4RANDOM
|
ac_cppflags ARC4RANDOM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user