📄 configure
字号:
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_int8_t=yes
else
rm -rf conftest*
ac_cv_type_int8_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_int8_t" 1>&6
if test $ac_cv_type_int8_t = no; then
cat >> confdefs.h <<\EOF
#define int8_t signed char
EOF
fi
echo $ac_n "checking for int16_t""... $ac_c" 1>&6
echo "configure:1366: checking for int16_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1371 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_int16_t=yes
else
rm -rf conftest*
ac_cv_type_int16_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_int16_t" 1>&6
if test $ac_cv_type_int16_t = no; then
cat >> confdefs.h <<\EOF
#define int16_t short
EOF
fi
echo $ac_n "checking for int32_t""... $ac_c" 1>&6
echo "configure:1399: checking for int32_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1404 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_int32_t=yes
else
rm -rf conftest*
ac_cv_type_int32_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_int32_t" 1>&6
if test $ac_cv_type_int32_t = no; then
cat >> confdefs.h <<\EOF
#define int32_t long
EOF
fi
echo $ac_n "checking for int64_t""... $ac_c" 1>&6
echo "configure:1432: checking for int64_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1437 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_int64_t=yes
else
rm -rf conftest*
ac_cv_type_int64_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_int64_t" 1>&6
if test $ac_cv_type_int64_t = no; then
cat >> confdefs.h <<\EOF
#define int64_t long long
EOF
fi
# Some systems have these in <stdint.h>, just to be difficult...
echo $ac_n "checking for uint8_t in <stdint.h>""... $ac_c" 1>&6
echo "configure:1467: checking for uint8_t in <stdint.h>" >&5
if eval "test \"`echo '$''{'ucl_cv_uint8_t_in_stdint_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1472 "configure"
#include "confdefs.h"
#include <stdint.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "uint8_t" >/dev/null 2>&1; then
rm -rf conftest*
ucl_cv_uint8_t_in_stdint_h=yes
else
rm -rf conftest*
ucl_cv_uint8_t_in_stdint_h=no
fi
rm -f conftest*
fi
echo "$ac_t""$ucl_cv_uint8_t_in_stdint_h" 1>&6
if test $ucl_cv_uint8_t_in_stdint_h = "no"
then
echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
echo "configure:1492: checking for uint8_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1497 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_uint8_t=yes
else
rm -rf conftest*
ac_cv_type_uint8_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
if test $ac_cv_type_uint8_t = no; then
cat >> confdefs.h <<\EOF
#define uint8_t unsigned char
EOF
fi
fi
echo $ac_n "checking for uint16_t in <stdint.h>""... $ac_c" 1>&6
echo "configure:1527: checking for uint16_t in <stdint.h>" >&5
if eval "test \"`echo '$''{'ucl_cv_uint16_t_in_stdint_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1532 "configure"
#include "confdefs.h"
#include <stdint.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "uint16_t" >/dev/null 2>&1; then
rm -rf conftest*
ucl_cv_uint16_t_in_stdint_h=yes
else
rm -rf conftest*
ucl_cv_uint16_t_in_stdint_h=no
fi
rm -f conftest*
fi
echo "$ac_t""$ucl_cv_uint16_t_in_stdint_h" 1>&6
if test $ucl_cv_uint16_t_in_stdint_h = "no"
then
echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
echo "configure:1552: checking for uint16_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1557 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_uint16_t=yes
else
rm -rf conftest*
ac_cv_type_uint16_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
if test $ac_cv_type_uint16_t = no; then
cat >> confdefs.h <<\EOF
#define uint16_t unsigned short
EOF
fi
fi
echo $ac_n "checking for uint32_t in <stdint.h>""... $ac_c" 1>&6
echo "configure:1587: checking for uint32_t in <stdint.h>" >&5
if eval "test \"`echo '$''{'ucl_cv_uint32_t_in_stdint_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1592 "configure"
#include "confdefs.h"
#include <stdint.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "uint32_t" >/dev/null 2>&1; then
rm -rf conftest*
ucl_cv_uint32_t_in_stdint_h=yes
else
rm -rf conftest*
ucl_cv_uint32_t_in_stdint_h=no
fi
rm -f conftest*
fi
echo "$ac_t""$ucl_cv_uint32_t_in_stdint_h" 1>&6
if test $ucl_cv_uint32_t_in_stdint_h = "no"
then
echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
echo "configure:1612: checking for uint32_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1617 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_uint32_t=yes
else
rm -rf conftest*
ac_cv_type_uint32_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
if test $ac_cv_type_uint32_t = no; then
cat >> confdefs.h <<\EOF
#define uint32_t unsigned int
EOF
fi
fi
###############################################################################
# The following two macros cause autoconf to complain.
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:1649: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
#line 1656 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
bogus endian macros
#endif
; return 0; }
EOF
if { (eval echo configure:1667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
# It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
#line 1671 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
; return 0; }
EOF
if { (eval echo configure:1682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_bigendian=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_c_bigendian=no
fi
rm -f conftest*
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
if test $ac_cv_c_bigendian = unknown; then
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1702 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
union
{
long l;
char c[sizeof (long)];
} u;
u.l = 1;
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
if { (eval echo configure:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_c_bigendian=no
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_c_bigendian=yes
fi
rm -fr conftest*
fi
fi
fi
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF
fi
echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
echo "configure:1739: checking whether char is unsigned" >&5
if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$GCC" = yes; then
# GCC predefines this symbol on systems where it applies.
cat > conftest.$ac_ext <<EOF
#line 1746 "configure"
#include "confdefs.h"
#ifdef __CHAR_UNSIGNED__
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_c_char_unsigned=yes
else
rm -rf conftest*
ac_cv_c_char_unsigned=no
fi
rm -f conftest*
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1768 "configure"
#include "confdefs.h"
/* volatile prevents gcc2 from optimizing the test away on sparcs. */
#if !defined(__STDC__) || __STDC__ != 1
#define volatile
#endif
main() {
volatile char c = 255; exit(c < 0);
}
EOF
if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_c_char_unsigned=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_c_char_unsigned=no
fi
rm -fr conftest*
fi
fi
fi
echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -