?? configure
字號:
cf_ncuhdr_root=ncursestest -n "$cf_cv_curses_dir" && \test "$cf_cv_curses_dir" != "no" && \CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"echo $ac_n "checking for $cf_ncuhdr_root header in include-path""... $ac_c" 1>&6echo "configure:1811: checking for $cf_ncuhdr_root header in include-path" >&5if eval "test \"`echo '$''{'cf_cv_ncurses_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h" ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h" for cf_header in $cf_header_list do cat > conftest.$ac_ext <<EOF#line 1822 "configure"#include "confdefs.h"#include <$cf_header>int main() {#ifdef NCURSES_VERSIONprintf("%s\n", NCURSES_VERSION);#else#ifdef __NCURSES_Hprintf("old\n");#else make an error#endif#endif ; return 0; }EOFif { (eval echo configure:1843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ncurses_h=$cf_header else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cf_cv_ncurses_h=nofirm -f conftest* test "$cf_cv_ncurses_h" != no && break donefiecho "$ac_t""$cf_cv_ncurses_h" 1>&6if test "$cf_cv_ncurses_h" != no ; then cf_cv_ncurses_header=$cf_cv_ncurses_helseecho $ac_n "checking for $cf_ncuhdr_root include-path""... $ac_c" 1>&6echo "configure:1866: checking for $cf_ncuhdr_root include-path" >&5if eval "test \"`echo '$''{'cf_cv_ncurses_h2'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else test -n "$verbose" && echo cf_search=""test -d $HOME && { test -n "$verbose" && echo " ... testing include-directories under $HOME" test -d $HOME/include && cf_search="$cf_search $HOME/include" test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root" test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"}# For other stuff under the home directory, it should be sufficient to put# a symbolic link for $HOME/$cf_ncuhdr_root to the actual package location:test -d $HOME/$cf_ncuhdr_root && { test -n "$verbose" && echo " ... testing include-directories under $HOME/$cf_ncuhdr_root" test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include" test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"}test "$prefix" != /usr/local && \test -d /usr/local && { test -n "$verbose" && echo " ... testing include-directories under /usr/local" test -d /usr/local/include && cf_search="$cf_search /usr/local/include" test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root" test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include" test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include" test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"}test "$prefix" != NONE && \test -d $prefix && { test -n "$verbose" && echo " ... testing include-directories under $prefix" test -d $prefix/include && cf_search="$cf_search $prefix/include" test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root" test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include" test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include" test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"}test "$prefix" != /opt && \test -d /opt && { test -n "$verbose" && echo " ... testing include-directories under /opt" test -d /opt/include && cf_search="$cf_search /opt/include" test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root" test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include" test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include" test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"}test "$prefix" != /usr && \test -d /usr && { test -n "$verbose" && echo " ... testing include-directories under /usr" test -d /usr/include && cf_search="$cf_search /usr/include" test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root" test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include" test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"}test "$includedir" != NONE && \test "$includedir" != "/usr/include" && \test -d "$includedir" && { test -d $includedir && cf_search="$cf_search $includedir" test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"}test "$oldincludedir" != NONE && \test "$oldincludedir" != "/usr/include" && \test -d "$oldincludedir" && { test -d $oldincludedir && cf_search="$cf_search $oldincludedir" test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"} test -n "$verbose" && echo search path $cf_search cf_save2_CPPFLAGS="$CPPFLAGS" for cf_incdir in $cf_search do for cf_add_incdir in $cf_incdirdo while true do case $cf_add_incdir in /usr/include) # (vi ;; /usr/local/include) # (vi if test "$GCC" = yes then cf_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" cat > conftest.$ac_ext <<EOF#line 1961 "configure"#include "confdefs.h"#include <stdio.h>int main() {printf("Hello"); return 0; }EOFif { (eval echo configure:1968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then :else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPPFLAGS="$cf_save_CPPFLAGS"firm -f conftest* fi ;; *) # (vi CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" ;; esac cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` test "$cf_top_incdir" = "$cf_add_incdir" && break cf_add_incdir="$cf_top_incdir" donedone for cf_header in \ ncurses.h \ curses.h do cat > conftest.$ac_ext <<EOF#line 1995 "configure"#include "confdefs.h"#include <$cf_header>int main() {#ifdef NCURSES_VERSIONprintf("%s\n", NCURSES_VERSION);#else#ifdef __NCURSES_Hprintf("old\n");#else make an error#endif#endif ; return 0; }EOFif { (eval echo configure:2016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ncurses_h2=$cf_header else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cf_cv_ncurses_h2=nofirm -f conftest* if test "$cf_cv_ncurses_h2" != no ; then cf_cv_ncurses_h2=$cf_incdir/$cf_header test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6 break fi test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6 done CPPFLAGS="$cf_save2_CPPFLAGS" test "$cf_cv_ncurses_h2" != no && break done test "$cf_cv_ncurses_h2" = no && { echo "configure: error: not found" 1>&2; exit 1; } fiecho "$ac_t""$cf_cv_ncurses_h2" 1>&6 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'` cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2` if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header fi for cf_add_incdir in $cf_1st_incdirdo while true do case $cf_add_incdir in /usr/include) # (vi ;; /usr/local/include) # (vi if test "$GCC" = yes then cf_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" cat > conftest.$ac_ext <<EOF#line 2063 "configure"#include "confdefs.h"#include <stdio.h>int main() {printf("Hello"); return 0; }EOFif { (eval echo configure:2070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then :else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPPFLAGS="$cf_save_CPPFLAGS"firm -f conftest* fi ;; *) # (vi CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" ;; esac cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'` test "$cf_top_incdir" = "$cf_add_incdir" && break cf_add_incdir="$cf_top_incdir" donedoneficat >> confdefs.h <<\EOF#define NCURSES 1EOFcase $cf_cv_ncurses_header in # (vi*ncurses.h) cat >> confdefs.h <<\EOF#define HAVE_NCURSES_H 1EOF ;;esaccase $cf_cv_ncurses_header in # (vincurses/curses.h|ncurses/ncurses.h) cat >> confdefs.h <<\EOF#define HAVE_NCURSES_NCURSES_H 1EOF ;;ncursesw/curses.h|ncursesw/ncurses.h) cat >> confdefs.h <<\EOF#define HAVE_NCURSESW_NCURSES_H 1EOF ;;esacecho $ac_n "checking for ncurses version""... $ac_c" 1>&6echo "configure:2125: checking for ncurses version" >&5if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cf_cv_ncurses_version=no cf_tempfile=out$$ rm -f $cf_tempfile if test "$cross_compiling" = yes; then # This will not work if the preprocessor splits the line after the # Autoconf token. The 'unproto' program does that. cat > conftest.$ac_ext <<EOF#include <${cf_cv_ncurses_header-curses.h}>#undef Autoconf#ifdef NCURSES_VERSIONAutoconf NCURSES_VERSION#else#ifdef __NCURSES_HAutoconf "old"#endif;#endifEOF cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" { (eval echo configure:2151: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; } if test -f conftest.out ; then cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'` test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" rm -f conftest.out fielse cat > conftest.$ac_ext <<EOF#line 2160 "configure"#include "confdefs.h"#include <${cf_cv_ncurses_header-curses.h}>#include <stdio.h>int main(){ FILE *fp = fopen("$cf_tempfile", "w");#ifdef NCURSES_VERSION# ifdef NCURSES_VERSION_PATCH fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);# else fprintf(fp, "%s\n", NCURSES_VERSION);# endif#else# ifdef __NCURSES_H fprintf(fp, "old\n");# else make an error# endif#endif exit(0);}EOFif { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen cf_cv_ncurses_version=`cat $cf_tempfile`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -fr conftest*fi rm -f $cf_tempfilefiecho "$ac_t""$cf_cv_ncurses_version" 1>&6test "$cf_cv_ncurses_version" = no || cat >> confdefs.h <<\EOF#define NCURSES 1EOF cf_nculib_root=ncurses # This works, except for the special case where we find gpm, but # ncurses is in a nonstandard location via $LIBS, and we really want # to link gpm.cf_ncurses_LIBS=""cf_ncurses_SAVE="$LIBS"echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6echo "configure:2215: checking for Gpm_Open in -lgpm" >&5ac_lib_var=`echo gpm'_'Gpm_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="-lgpm $LIBS"cat > conftest.$ac_ext <<EOF#line 2223 "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 Gpm_Open();int main() {Gpm_Open(); return 0; }EOFif { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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 echo $ac_n "checking for initscr in -lgpm""... $ac_c" 1>&6echo "configure:2250: checking for initscr in -lgpm" >&5ac_lib_var=`echo g
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -