跳至內容
主選單
主選單
移至側邊欄
隱藏
導覽
首頁
近期變更
隨機頁面
MediaWiki說明
Taiwan Tongues 台語維基
搜尋
搜尋
外觀
建立帳號
登入
個人工具
建立帳號
登入
檢視 Autoconf 的原始碼
頁面
討論
臺灣正體
閱讀
檢視原始碼
檢視歷史
工具
工具
移至側邊欄
隱藏
操作
閱讀
檢視原始碼
檢視歷史
一般
連結至此的頁面
相關變更
特殊頁面
頁面資訊
外觀
移至側邊欄
隱藏
←
Autoconf
由於以下原因,您無權編輯此頁面:
您請求的操作只有這些群組的使用者能使用:
使用者
、taigi-reviewer、apibot
您可以檢視並複製此頁面的原始碼。
'''GNU Autoconf'''是一个佇咧 Bourne shell 做供編譯下、安裝佮打包軟體的組態指令碼的工具。Autoconf 並無受程式的語言限制,定用佇咧 C、C + +、Erlang 和 Objective-C。組態指令碼控制一个軟體套件佇咧特定系統頂懸的安裝。佇咧進行一系列測試了後,組態指令碼對模板中生成 makefile 佮標頭檔進一步調整軟體套件,之適應某一種系統。Autoconf 佮 Automake、Libtool 等軟體組成矣 GNU 構建系統。Autoconf 掛維持 ・ 麥肯思佇一九九一年熱人編寫用於支持伊佇自由軟體基金會的編程工作。此後,Autoconf 包含真濟人編寫的改進代碼並成為著使用上廣泛的自由編譯組態軟體。 ==用概欲== 軟體開發者通過使用 GNU m 四語言佇咧 _ configure . ac _ 中寫出限定組態指令碼行為的列表。Autoconf 將 _ configure . ac _ 中的命令轉化做對應特平台的組態指令碼。Autoconf 本身並無具備的編譯能力,伊干焦用佇咧產生通常附帶佇咧軟體套件的組態指令碼。 ===configure . ac 格式=== The GNU Autoconf 手冊乎建議 configure . ac file 使用如下格式: '''Autoconf requirements''' : The AC \ _ PREREQ(_ version _)macro can be used to ensure that a recent enough version of the autoconf program is available to process the configure . ac file '''AC \ _ INIT(_ package _ , _ version _ , _ bug-report-address _)''' : This macro is required in every configure . ac file . It specifies the name and version of the software package for which to generate a configure script and the email address of the developer . '''information on the package''' '''checks for programs''' '''checks for libraries''' '''checks for header files''' '''checks for types''' '''checks for structures''' '''checks for compiler characteristics''' '''checks for library functions''' '''checks for system services''' '''AC \ _ CONFIG \ _ FILES([file . . .])''' '''AC \ _ OUTPUT''' ==工課原理== autoconf 類似 perl 使用的 metaconfig 包。早前 X window 系統所使用的 imake 系統佮 autoconf 是密切相關,但是有無仝款的理念。 autoconf 通過檢查特性毋是軟體版本來確保可移植性。比如講 Sun OS 四个原生 C 編譯器不支援 ISO C,但是使用者抑是管理員會當家己安裝支援 ISO C 的編譯器。因為軟體特性的檢查方法會當發現干焦檢查軟體版本的方法檢測無的支援 ISO C 的編譯器。所以組態指令碼會當佇未知影的或者是較新的系統內底得著合理的結果,仝款允准管理員按照𪜶的系統來組態指令碼。 ==批評== autoconf 是一个古早佮成熟的產品,你若予伊用了做,會當使用一个非常簡單的介面進行複雜的交叉編譯。但是有一寡批評指出 autoconf 使用過去的技術,因為種足濟限制。autoconf 無法度為 Xcode 佮 Visual Studio 製作專案檔案,伊是講號碼通常大閣複雜,自按呢增加 Debug 的難度。Autoconf 所使用的 M 四對一寡開發者來講伊是生份的,因此𪜶需要專門學習。一寡開發者並無遵循組態指令碼的一寡習慣約定。 所以一寡自由軟體開發者開始使用其他的軟體代替 autoconf,KDE 佇咧 KDE 四起開始使用 CMake,Scribus 仝款開始使用 CMake。 ==參見== * CMake * 組態指令碼 * GNU 構建系統 * pkg-config ==註跤== ==外部連結== * GNU Autoconf home page * GNU Autoconf macro archive * _ The Goat Book _ homepage ( aka the Autobook ) * Murray Cumming(of gtkmm fame)produced these succinct Autotool info pages : \ * one \ * two . * Autotoolset home page * https : / / web . archive . org / web / 二十五空一千四百空八學一千六百空六鼻空三百二十六 / http : / / www . freesoftwaremagazine . com / books / autotools \ _ a \ _ guide \ _ to \ _ autoconf \ _ automake \ _ libtool ===教程=== * https : / / web . archive . org / web / 二十五空一千空六五二千七百一十四抹兩千空四十七 / http : / / mi . eng . cam . ac . uk / ~ er 兩百五十八 / code / autoconf / * Learning Autoconf and Automake " by Eleftherios Gkioulekas * _ Learning the GNU development tools _ @ sourceforge * Autotools Tutorial by Alexandre Duret-Lutz introduces Autoconf , Automake , Libtool , 和 Gettext * Using GNU auto { conf , make , header } by Felipe Bergo [[分類: 待校正]]
返回到「
Autoconf
」。