<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    ivaneeo's blog

    自由的力量,自由的生活。

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks
    代碼清單 bogusapp.c
    #include <stdio.h>
    #include <stdlib.h>
    #ifdef HAVE_RESOLV_H
    #include <resolv.h>
    #endif /* HAVE_RESOLV_H */
    #include "config.h"

    int main(void)
    {
        int reval;
    #ifdef HAVE_MMAP
         fprintf(stdout, "have mmap()\n");
    #else
         fprintf(stderr, "no mmap()\n");
    #endif

    if(HAVE_UTIME_NULL)
      fprintf(stdout, "utime() allows NULL\n");
    else
      fprintf(stderr, "utime doesn't allow NULL\n");

    if(SYS_SIGLIST_DECLARED)
      fprintf(stdout, "sys_siglist() declared\n");
    else
      fprinf(stderr, "sys_siglist() not declared\n");

    #ifdef HAVE_NCURSES_H
      fprintf(stdout, "ncurses.h found\n");
    #else
      fprintf(stderr, "ncurses.h not found\n);

    if(HAVE_FCNTL_H)
      fprintf(stdout, "fcntl.h found\n");
    else
      fprintf(stderr, "fcntl.h not found\n");

    if(HAVE_SYS_FCNTL_H)
      fprintf(stdout, "sys/fcntl.h found\n");
    else
      fprintf(stderr, "sys/fcntl.h not found\n");

    #ifdef NLIST_NAME_UNION
      fprintf(stdout, "nlist.n_un member found\n");
    #else
      fprintf(stdout, "nlist.n_un member not found\n");
    #endif

    if(HAVE_VOID_POINTER)
      fprintf(stdout, "Yep, we have a usable void pointer type\n");
    else
      fprintf(stderr, "Nope, no usable void pointer type\n");
    exit(EXIT_SUCCESS);
    }
    .Makefiel.in--用于創建真正的makefile文件的模板
    .acconfig.h--與特定系統相關的宏的集合,它隨autoconf軟件一起提供
    .bogusapp.c--bogusapp的源代碼,這是個示例程序
    .config.h--包含bogusapp.c中用到的所有宏的頭文件
    .configure.in--創建最終的configure腳本的模板
    .install.sh--安裝腳本,用在不帶兼容BSD的install程序的系統上

    在目錄下運行autoscan產生的configure.scan如下:
    $autoscan
    $cat configure.scan
    dnl Process this file with autoconf to produce a configure script.
    AC_INIT(acconfig.h)
    dnl Checks for programs.
    dnl Checks for libraries.
    dnl Checks for header files.
    AC_HEADER_STDC
    dnl Checks for typedefs, structures, and compiler characteristics.
    dnl Checks for library functions.
    AC_OUTPUT(Makefile)

    ifnames的輸出如下:
    HAVE_MMAP bogusapp.c
    HAVE_NCURSES_H bogusapp.c
    HAVE_RESOLV_H bogusapp.c
    HAVE_NAME_UNION bogusapp.c
    posted on 2005-08-04 21:24 ivaneeo 閱讀(322) 評論(0)  編輯  收藏 所屬分類: GNU牛力
    主站蜘蛛池模板: 亚洲精彩视频在线观看| 久久影视综合亚洲| 足恋玩丝袜脚视频免费网站| 不卡精品国产_亚洲人成在线| 免费人成视频在线观看免费| 国产免费牲交视频| jzzijzzij在线观看亚洲熟妇| 久9久9精品免费观看| 特级淫片国产免费高清视频| 中文字幕亚洲综合久久综合| 手机在线免费视频| 水蜜桃亚洲一二三四在线| 看免费毛片天天看| 亚洲国产专区一区| 亚洲免费福利在线视频| 日韩免费观看一级毛片看看| 羞羞的视频在线免费观看| www.999精品视频观看免费| 亚洲精品乱码久久久久久| 亚洲欧美日韩综合久久久久| 日韩精品极品视频在线观看免费| 波多野结衣一区二区免费视频| 黄网站色成年片大免费高清| 亚洲综合av永久无码精品一区二区| 精品免费视在线观看| 久久亚洲AV无码西西人体| 国产午夜精品免费一区二区三区| 亚洲国产一区在线| a级在线观看免费| 久久精品国产亚洲AV大全| 午夜网站免费版在线观看| 亚洲午夜国产精品| 5g影院5g天天爽永久免费影院| 亚洲乱码在线视频| 亚洲国产aⅴ综合网| 日本免费大黄在线观看| 中国亚洲呦女专区| 特级毛片免费播放| 亚洲国产成人精品无码区在线观看| 免费无码一区二区| 亚洲国语精品自产拍在线观看|