📄 configure
字号:
echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6echo "configure:1362: checking for ${CC-cc} option to accept ANSI C" >&5if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else am_cv_prog_cc_stdc=noac_save_CC="$CC"# Don't try gcc -ansi; that turns off useful extensions and# breaks some systems' header files.# AIX -qlanglvl=ansi# Ultrix and OSF/1 -std1# HP-UX -Aa -D_HPUX_SOURCE# SVR4 -Xc -D__EXTENSIONS__for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"do CC="$ac_save_CC $ac_arg" cat > conftest.$ac_ext <<EOF#line 1378 "configure"#include "confdefs.h"#include <stdarg.h>#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */struct buf { int x; };FILE * (*rcsopen) (struct buf *, struct stat *, int);static char *e (p, i) char **p; int i;{ return p[i];}static char *f (char * (*g) (char **, int), char **p, ...){ char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s;}int test (int i, double x);struct s1 {int (*f) (int a);};struct s2 {int (*f) (double a);};int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);int argc;char **argv;int main() {return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];; return 0; }EOFif { (eval echo configure:1415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* am_cv_prog_cc_stdc="$ac_arg"; breakelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*doneCC="$ac_save_CC"fiif test -z "$am_cv_prog_cc_stdc"; then echo "$ac_t""none needed" 1>&6else echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6ficase "x$am_cv_prog_cc_stdc" in x|xno) ;; *) CC="$CC $am_cv_prog_cc_stdc" ;;esac# Check whether --enable-music or --disable-music was given.if test "${enable_music+set}" = set; then enableval="$enable_music" if test "x$enable_music" != xyes; then feature_music="no" else feature_music="yes" fielse feature_music="no"fi# Check whether --enable-history or --disable-history was given.if test "${enable_history+set}" = set; then enableval="$enable_history" if test "x$enable_history" != xyes; then feature_history="no" else feature_history="yes" fielse feature_history="yes"fi# Check whether --enable-history-search or --disable-history-search was given.if test "${enable_history_search+set}" = set; then enableval="$enable_history_search" if test "x$enable_history_search" != xyes; then feature_history_search="no" else feature_history_search="yes" fielse feature_history_search="yes"fi# Check whether --enable-fkey-macros or --disable-fkey-macros was given.if test "${enable_fkey_macros+set}" = set; then enableval="$enable_fkey_macros" if test "x$enable_fkey_macros" != xyes; then feature_fkey_macros="no" else feature_fkey_macros="yes" fielse feature_fkey_macros="yes"fi# Check whether --enable-rh-fkey-fix or --disable-rh-fkey-fix was given.if test "${enable_rh_fkey_fix+set}" = set; then enableval="$enable_rh_fkey_fix" if test "x$enable_rd_fkey_fix" = "xyes"; then cat >> confdefs.h <<\EOF#define _RH_FIX 1EOF fifi# Check whether --enable-lock-dir or --disable-lock-dir was given.if test "${enable_lock_dir+set}" = set; then enableval="$enable_lock_dir" if test "x$enable_lock_dir" = xyes; then UUCPLOCK="" else if test "x$enable_lock_dir" = xno; then { echo "configure: error: Lock directory required" 1>&2; exit 1; } else UUCPLOCK="$enable_lock_dir" fi fielse UUCPLOCK=""fi# Check whether --enable-dfl-port or --disable-dfl-port was given.if test "${enable_dfl_port+set}" = set; then enableval="$enable_dfl_port" if test "x$enable_dfl_port" = xyes; then DFL_PORT="" else if test "x$enable_dfl_port" = xno; then { echo "configure: error: Default port required" 1>&2; exit 1; } else DFL_PORT="$enable_dfl_port" fi fielse DFL_PORT=""fi# Check whether --enable-dfl-baud or --disable-dfl-baud was given.if test "${enable_dfl_baud+set}" = set; then enableval="$enable_dfl_baud" if test "x$enable_dfl_baud" = xyes; then DEF_BAUD="38400" else if test "x$enable_dfl_baud" = xno; then { echo "configure: error: Default baud rate required" 1>&2; exit 1; } else DEF_BAUD="$enable_dfl_baud" fi fielse DEF_BAUD="38400"fi# Check whether --enable-cfg-dir or --disable-cfg-dir was given.if test "${enable_cfg_dir+set}" = set; then enableval="$enable_cfg_dir" if test "x$enable_cfg_dir" = xyes; then MINICOM_LIBDIR="$sysconfdir" else if test "x$enable_cfg_dir" = xno; then { echo "configure: error: Config directory required" 1>&2; exit 1; } else MINICOM_LIBDIR="$enable_cfg_dir" fi fielse MINICOM_LIBDIR="$sysconfdir"fi# Check whether --enable-kermit or --disable-kermit was given.if test "${enable_kermit+set}" = set; then enableval="$enable_kermit" if test "x$enable_kermit" = xyes; then PATH_KERMIT="" else if test "x$enable_kermit" = xno; then PATH_KERMIT="" else PATH_KERMIT="$enable_kermit" fi fielse PATH_KERMIT=""fi# Check whether --enable-dgux or --disable-dgux was given.if test "${enable_dgux+set}" = set; then enableval="$enable_dgux" if test "x$enable_dgux" = xyes; then cat >> confdefs.h <<\EOF#define _DGUX_SOURCE 1EOF fifi# Check whether --enable-hpux or --disable-hpux was given.if test "${enable_hpux+set}" = set; then enableval="$enable_hpux" if test "x$enable_hpux" = xyes; then cat >> confdefs.h <<\EOF#define _HPUX_SOURCE 1EOF fifiif test "x$feature_history" = xyes; then cat >> confdefs.h <<\EOF#define _HISTORY 1EOF cat >> confdefs.h <<\EOF#define HISTORY 1EOF if test "x$feature_history_search" = xyes; then cat >> confdefs.h <<\EOF#define _SEARCH_HISTORY 1EOF fifiif test "x$feature_fkey_macros" = xyes; then cat >> confdefs.h <<\EOF#define _HAVE_MACROS 1EOFfiif test "x$feature_music" = xyes; then cat >> confdefs.h <<\EOF#define VC_MUSIC 1EOFfiALL_LINGUAS="cs_CZ es fr fi_FI ja ja_JP.SJIS pl pt_BR ru"echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6echo "configure:1648: checking for ANSI C header files" >&5if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1653 "configure"#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_stdc=yeselse echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=nofirm -f conftest*if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 1678 "configure"#include "confdefs.h"#include <string.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then :else rm -rf conftest* ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 1696 "configure"#include "confdefs.h"#include <stdlib.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then :else rm -rf conftest* ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.if test "$cross_compiling" = yes; then :else cat > conftest.$ac_ext <<EOF#line 1717 "configure"#include "confdefs.h"#include <ctype.h>#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))int main () { int i; for (i = 0; i < 256; i++)if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);exit (0); }EOFif { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen :else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=nofirm -fr conftest*fififiecho "$ac_t""$ac_cv_header_stdc" 1>&6if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF#define STDC_HEADERS 1EOFfiecho $ac_n "checking for working const""... $ac_c" 1>&6echo "configure:1752: checking for working const" >&5if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1757 "configure"#include "confdefs.h"int main() {/* Ultrix mips cc rejects this. */typedef int charset[2]; const charset x;/* SunOS 4.1.1 cc rejects this. */char const *const *ccp;char **p;/* NEC SVR4.0.2 mips cc rejects this. */struct point {int x, y;};static struct point const zero = {0,0};/* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */const char *g = "string";ccp = &g + (g ? g-g : 0);/* HPUX 7.0 cc rejects these. */++ccp;p = (char**) ccp;ccp = (char const *const *) p;{ /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0;}{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo;}{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p;}{ /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5;}{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10;}; return 0; }EOFif { (eval echo configure:1806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_c_const=no
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -