⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure

📁 一个开放源代码的 AT&T 的 Korn Shell 的复制品, 支持大多数 ksh89 的特性。
💻
📖 第 1 页 / 共 5 页
字号:
doac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6echo "configure:1376: checking for $ac_hdr that defines DIR" >&5if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1381 "configure"#include "confdefs.h"#include <sys/types.h>#include <$ac_hdr>int main() {DIR *dirp = 0;; return 0; }EOFif { (eval echo configure:1389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_header_dirent_$ac_safe=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_dirent_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF ac_header_dirent=$ac_hdr; breakelse  echo "$ac_t""no" 1>&6fidone# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.if test $ac_header_dirent = dirent.h; thenecho $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6echo "configure:1414: checking for opendir in -ldir" >&5ac_lib_var=`echo dir'_'opendir | 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="-ldir  $LIBS"cat > conftest.$ac_ext <<EOF#line 1422 "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 opendir();int main() {opendir(); return 0; }EOFif { (eval echo configure:1433: \"$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  LIBS="$LIBS -ldir"else  echo "$ac_t""no" 1>&6echo $ac_n "checking for opendir in -lndir""... $ac_c" 1>&6echo "configure:1452: checking for opendir in -lndir" >&5ac_lib_var=`echo ndir'_'opendir | 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="-lndir  $LIBS"cat > conftest.$ac_ext <<EOF#line 1460 "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 opendir();int main() {opendir(); return 0; }EOFif { (eval echo configure:1471: \"$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  LIBS="$LIBS -lndir"else  echo "$ac_t""no" 1>&6fifielseecho $ac_n "checking for opendir in -lx""... $ac_c" 1>&6echo "configure:1495: checking for opendir in -lx" >&5ac_lib_var=`echo x'_'opendir | 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="-lx  $LIBS"cat > conftest.$ac_ext <<EOF#line 1503 "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 opendir();int main() {opendir(); return 0; }EOFif { (eval echo configure:1514: \"$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  LIBS="$LIBS -lx"else  echo "$ac_t""no" 1>&6fifiecho $ac_n "checking for sane unistd.h""... $ac_c" 1>&6echo "configure:1537: checking for sane unistd.h" >&5if eval "test \"`echo '$''{'ksh_cv_header_unistd'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1542 "configure"#include "confdefs.h"#include <unistd.h>#if defined(_POSIX_VERSION)# include <sys/types.h># include <dirent.h> /* _POSIX_VERSION => HAVE_DIRENT_H test not needed */#endif      int main() {; return 0; }EOFif { (eval echo configure:1555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ksh_cv_header_unistd=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ksh_cv_header_unistd=nofirm -f conftest*fiecho "$ac_t""$ksh_cv_header_unistd" 1>&6  if test $ksh_cv_header_unistd = yes; then    cat >> confdefs.h <<\EOF#define HAVE_UNISTD_H 1EOF  fi echo $ac_n "checking terminal interface""... $ac_c" 1>&6echo "configure:1576: checking terminal interface" >&5if eval "test \"`echo '$''{'ksh_cv_term_check'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1581 "configure"#include "confdefs.h"#include <termios.h>int main() {        struct termios t;#if defined(ultrix) || defined(__ultrix__)         Termios in ultrix 4.2 botches type-ahead when going from cooked to         cbreak mode.  The BSD tty interface works fine though, so use it         (would be good to know if alter versions of ultrix work).#endif /* ultrix */         tcgetattr(0, &t); tcsetattr(0, TCSADRAIN, &t);      ; return 0; }EOFif { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then  rm -rf conftest*  ksh_cv_term_check=termioselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  cat > conftest.$ac_ext <<EOF#line 1604 "configure"#include "confdefs.h"#include <sys/ioctl.h>int main() {	    struct sgttyb sb; ioctl(0, TIOCGETP, &sb);#ifdef TIOCGATC	    { struct ttychars lc; ioctl(0, TIOCGATC, &lc); }#else /* TIOCGATC */	    { struct tchars tc; ioctl(0, TIOCGETC, &tc); }# ifdef TIOCGLTC	    { struct ltchars ltc; ioctl(0, TIOCGLTC, &ltc); }# endif /* TIOCGLTC */#endif /* TIOCGATC */	  ; return 0; }EOFif { (eval echo configure:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then  rm -rf conftest*  ksh_cv_term_check=bsdelse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for termio.h""... $ac_c" 1>&6echo "configure:1630: checking for termio.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1635 "configure"#include "confdefs.h"#include <termio.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  rm -rf conftest*  eval "ac_cv_header_$ac_safe=yes"else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6  ksh_cv_term_check=termioelse  echo "$ac_t""no" 1>&6ksh_cv_term_check=sgttyfifirm -f conftest*firm -f conftest*fiecho "$ac_t""$ksh_cv_term_check" 1>&6  if test $ksh_cv_term_check = termios; then    cat >> confdefs.h <<\EOF#define HAVE_TERMIOS_H 1EOF  elif test $ksh_cv_term_check = termio; then    cat >> confdefs.h <<\EOF#define HAVE_TERMIO_H 1EOF  fi for ac_hdr in stddef.h stdlib.h string.h memory.h fcntl.h limits.h paths.h \	sys/param.h sys/resource.h values.h ulimit.h sys/time.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1686: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1691 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  rm -rf conftest*  eval "ac_cv_header_$ac_safe=yes"else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else  echo "$ac_t""no" 1>&6fidoneecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6echo "configure:1723: checking whether time.h and sys/time.h may both be included" >&5if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1728 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/time.h>#include <time.h>int main() {struct tm *tp;; return 0; }EOFif { (eval echo configure:1737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ac_cv_header_time=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_header_time=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_time" 1>&6if test $ac_cv_header_time = yes; then  cat >> confdefs.h <<\EOF#define TIME_WITH_SYS_TIME 1EOFfiecho $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6echo "configure:1758: checking for sys/wait.h that is POSIX.1 compatible" >&5if eval "test \"`echo '$''{'ksh_cv_header_sys_wait_h'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1763 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/wait.h>#ifndef WEXITSTATUS#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)#endif#ifndef WIFEXITED#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)#endifint main() {int s;wait (&s);s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;; return 0; }EOFif { (eval echo configure:1779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ksh_cv_header_sys_wait_h=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ksh_cv_header_sys_wait_h=nofirm -f conftest*fiecho "$ac_t""$ksh_cv_header_sys_wait_h" 1>&6if test $ksh_cv_header_sys_wait_h = yes; then  cat >> confdefs.h <<\EOF#define POSIX_SYS_WAIT 1EOF  cat >> confdefs.h <<\EOF#define HAVE_SYS_WAIT_H 1EOFelse  for ac_hdr in sys/wait.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1804: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1809 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  rm -rf conftest*  eval "ac_cv_header_$ac_safe=yes"else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -