📄 configure
字号:
#ifdef HAVE_STRINGS_H# include <strings.h>#endif#ifdef HAVE_SYS_IOCTL_H# include <sys/ioctl.h>#endif#ifdef HAVE_SYS_FILIO_H# include <sys/filio.h>#endif#ifdef HAVE_SYS_SOCKIO_H# include <sys/sockio.h>#endif#ifdef HAVE_PTHREAD_H# include <pthread.h>#endifint main() { ssize_t foo ; return 0; }EOFif { (eval echo configure:1965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_ssize_t=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_type_ssize_t=nofirm -f conftest*fi echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 if test $ac_cv_type_ssize_t = no ; then cat >> confdefs.h <<\EOF#define ssize_t intEOF fiecho $ac_n "checking for gethostname function prototype in unistd.h""... $ac_c" 1>&6echo "configure:1987: checking for gethostname function prototype in unistd.h" >&5if eval "test \"`echo '$''{'ac_cv_have_gethostname_proto'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1992 "configure"#include "confdefs.h"#include <unistd.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "gethostname" >/dev/null 2>&1; then rm -rf conftest* ac_cv_have_gethostname_proto=yeselse rm -rf conftest* ac_cv_have_gethostname_proto=nofirm -f conftest*fiecho "$ac_t""$ac_cv_have_gethostname_proto" 1>&6 if test $ac_cv_have_gethostname_proto = yes ; then ac_tr_func=HAVE_`echo gethostname | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF fiecho $ac_n "checking for getrusage function prototype in sys/resource.h""... $ac_c" 1>&6echo "configure:2018: checking for getrusage function prototype in sys/resource.h" >&5if eval "test \"`echo '$''{'ac_cv_have_getrusage_proto'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2023 "configure"#include "confdefs.h"#include <sys/resource.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "getrusage" >/dev/null 2>&1; then rm -rf conftest* ac_cv_have_getrusage_proto=yeselse rm -rf conftest* ac_cv_have_getrusage_proto=nofirm -f conftest*fiecho "$ac_t""$ac_cv_have_getrusage_proto" 1>&6 if test $ac_cv_have_getrusage_proto = yes ; then ac_tr_func=HAVE_`echo getrusage | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF fiecho $ac_n "checking for isfdtype function prototype in sys/stat.h""... $ac_c" 1>&6echo "configure:2049: checking for isfdtype function prototype in sys/stat.h" >&5if eval "test \"`echo '$''{'ac_cv_have_isfdtype_proto'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2054 "configure"#include "confdefs.h"#include <sys/stat.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "isfdtype" >/dev/null 2>&1; then rm -rf conftest* ac_cv_have_isfdtype_proto=yeselse rm -rf conftest* ac_cv_have_isfdtype_proto=nofirm -f conftest*fiecho "$ac_t""$ac_cv_have_isfdtype_proto" 1>&6 if test $ac_cv_have_isfdtype_proto = yes ; then ac_tr_func=HAVE_`echo isfdtype | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF fiecho $ac_n "checking for pselect function prototype in sys/select.h""... $ac_c" 1>&6echo "configure:2080: checking for pselect function prototype in sys/select.h" >&5if eval "test \"`echo '$''{'ac_cv_have_pselect_proto'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2085 "configure"#include "confdefs.h"#include <sys/select.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "pselect" >/dev/null 2>&1; then rm -rf conftest* ac_cv_have_pselect_proto=yeselse rm -rf conftest* ac_cv_have_pselect_proto=nofirm -f conftest*fiecho "$ac_t""$ac_cv_have_pselect_proto" 1>&6 if test $ac_cv_have_pselect_proto = yes ; then ac_tr_func=HAVE_`echo pselect | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF fiecho $ac_n "checking for shm_open function prototype in sys/mman.h""... $ac_c" 1>&6echo "configure:2111: checking for shm_open function prototype in sys/mman.h" >&5if eval "test \"`echo '$''{'ac_cv_have_shm_open_proto'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2116 "configure"#include "confdefs.h"#include <sys/mman.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "shm_open" >/dev/null 2>&1; then rm -rf conftest* ac_cv_have_shm_open_proto=yeselse rm -rf conftest* ac_cv_have_shm_open_proto=nofirm -f conftest*fiecho "$ac_t""$ac_cv_have_shm_open_proto" 1>&6 if test $ac_cv_have_shm_open_proto = yes ; then ac_tr_func=HAVE_`echo shm_open | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF fiif test $ac_cv_lib_posix4_mq_open = yes ; then echo $ac_n "checking for shm_open in -lposix4""... $ac_c" 1>&6echo "configure:2144: checking for shm_open in -lposix4" >&5ac_lib_var=`echo posix4'_'shm_open | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lposix4 $LIBS"cat > conftest.$ac_ext <<EOF#line 2152 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char shm_open();int main() {shm_open(); return 0; }EOFif { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF LIBS="-lposix4 $LIBS"else echo "$ac_t""no" 1>&6fi if test $ac_cv_lib_posix4_shm_open = yes ; then cat >> confdefs.h <<\EOF#define HAVE_SHM_OPEN_PROTO 1EOF fifiecho $ac_n "checking for snprintf function prototype in stdio.h""... $ac_c" 1>&6echo "configure:2199: checking for snprintf function prototype in stdio.h" >&5if eval "test \"`echo '$''{'ac_cv_have_snprintf_proto'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2204 "configure"#include "confdefs.h"#include <stdio.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "snprintf" >/dev/null 2>&1; then rm -rf conftest* ac_cv_have_snprintf_proto=yeselse rm -rf conftest* ac_cv_have_snprintf_proto=nofirm -f conftest*fiecho "$ac_t""$ac_cv_have_snprintf_proto" 1>&6 if test $ac_cv_have_snprintf_proto = yes ; then ac_tr_func=HAVE_`echo snprintf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF fiecho $ac_n "checking for thr_setconcurrency function prototype in thread.h""... $ac_c" 1>&6echo "configure:2230: checking for thr_setconcurrency function prototype in thread.h" >&5if eval "test \"`echo '$''{'ac_cv_have_thr_setconcurrency_proto'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2235 "configure"#include "confdefs.h"#include <thread.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "thr_setconcurrency" >/dev/null 2>&1; then rm -rf conftest* ac_cv_have_thr_setconcurrency_proto=yeselse rm -rf conftest* ac_cv_have_thr_setconcurrency_proto=nofirm -f conftest*fiecho "$ac_t""$ac_cv_have_thr_setconcurrency_proto" 1>&6 if test $ac_cv_have_thr_setconcurrency_proto = yes ; then ac_tr_func=HAVE_`echo thr_setconcurrency | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF fiecho $ac_n "checking for siginfo_t{}""... $ac_c" 1>&6echo "configure:2262: checking for siginfo_t{}" >&5if eval "test \"`echo '$''{'ac_cv_have_siginfo_t_struct'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2267 "configure"#include "confdefs.h"#include <signal.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "siginfo_t" >/dev/null 2>&1; then rm -rf conftest* ac_cv_have_siginfo_t_struct=yeselse rm -rf conftest* ac_cv_have_siginfo_t_struct=nofirm -f conftest*fiecho "$ac_t""$ac_cv_have_siginfo_t_struct" 1>&6if test $ac_cv_have_siginfo_t_struct = yes ; then cat >> confdefs.h <<\EOF#define HAVE_SIGINFO_T_STRUCT 1EOFfiecho $ac_n "checking for timespec{}""... $ac_c" 1>&6echo "configure:2292: checking for timespec{}" >&5if eval "test \"`echo '$''{'ac_cv_have_timespec_struct'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2297 "configure"#include "confdefs.h"#include <time.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "timespec" >/dev/null 2>&1; then rm -rf conftest* ac_cv_have_timespec_struct=yeselse rm -rf conftest* ac_cv_have_timespec_struct=nofirm -f conftest*fiecho "$ac_t""$ac_cv_have_timespec_struct" 1>&6if test $ac_cv_have_timespec_struct = yes ; then cat >> confdefs.h <<\EOF#define HAVE_TIMESPEC_STRUCT 1EOFfiecho $ac_n "checking for union semun""... $ac_c" 1>&6echo "configure:2323: checking for union semun" >&5if eval "test \"`echo '$''{'ac_cv_have_semun_union'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2328 "configure"#include "confdefs.h"#include <sys/sem.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "semun" >/dev/null 2>&1; then rm -rf conftest* ac_cv_have_semun_union=yeselse rm -rf conftest* ac_cv_have_semun_union=nofirm -f conftest*fiecho "$ac_t""$ac_cv_have_semun_union" 1>&6if test $ac_cv_have_semun_union = yes ; then cat >> confdefs.h <<\EOF#define HAVE_SEMUN_UNION 1EOFfiecho $ac_n "checking for /dev/zero""... $ac_c" 1>&6echo "configure:2352: checking for /dev/zero" >&5if test -r /dev/zero ; then cat >> confdefs.h <<\EOF#define HAVE_DEV_ZERO 1EOF echo "$ac_t""yes" 1>&6else echo "$ac_t""no" 1>&6fiecho $ac_n "checking whether rpcgen supports -C option""... $ac_c" 1>&6echo "configure:2363: checking whether rpcgen supports -C option" >&5echo "const foo = 5;" > /tmp/rpcgen.$$.xif rpcgen -C -c /tmp/rpcgen.$$.x > /dev/null 2> /dev/null ; then cat >> confdefs.h <<\EOF#define RPCGEN_ANSIC 1EOF RPCGEN_OPTS="-C" echo "$ac_t""yes" 1>&6else RPCGEN_OPTS= echo "$ac_t""no" 1>&6firm -f /tmp/rpcgen.$$.xfor ac_func in bzerodoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:2381: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2386 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char $ac_func();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF els
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -