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

📄 chinaunix_net - 求关于gnu automake autoconf 的实用例子.htm

📁 Makefile编程及相关资料的介绍与入门。很适合初学者的学习与借鉴
💻 HTM
📖 第 1 页 / 共 3 页
字号:
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&u=31734" 
            target=_blank>CNL</A> 回复于:2004-10-06 20:28:24</SMALL></TD></TR>
        <TR>
          <TD>非常感谢kj501,我也正在摸索autoconf的用法,帮了大忙了&nbsp;:em02:<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=122327" 
            target=_blank>chrisyan</A> 回复于:2004-10-09 09:45:22</SMALL></TD></TR>
        <TR>
          <TD>http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_chapter/autoconf_toc.html<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=182692" 
            target=_blank>wubulen</A> 回复于:2004-10-21 04:27:00</SMALL></TD></TR>
        <TR>
          <TD>关于这个主题我经过实践尝试,终于得到了正确的结果。但是还有一个问题,是在我发布程序时产生的(make&nbsp;dist)。 
            <BR>因为有部分程序不能公开发布,所以我想将它们生成库,(*.la,&nbsp;通过libtool&nbsp;生成),但我解开生成的压缩文件,发现库文件没在压缩文件里面,所以make的时候会有些函数找不到,产生错误。 
            <BR>请问如何能让带库文件的文件夹也一起包括的压缩文件里去呢?<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=29509" 
            target=_blank>kj501</A> 回复于:2004-10-21 11:55:53</SMALL></TD></TR>
        <TR>
          <TD>如果代码中用了库文件,要先编译安装库文件,再编译代码。你可以把编译成库文件的代码独立出来单独打包,这样也便于管理。我前面给的例子中库文件是只编译不安装的。我明天给一个动态库安装的例子出来。<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=39930" 
            target=_blank>superdoctor</A> 回复于:2004-10-21 12:07:13</SMALL></TD></TR>
        <TR>
          <TD>值得收藏,思路非常清晰的教材啊<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=185719" 
            target=_blank>stsaofirst</A> 回复于:2004-10-21 12:55:47</SMALL></TD></TR>
        <TR>
          <TD>太棒了,goodgoodstudy&nbsp;to&nbsp;kj501,&nbsp;daydayup!<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=182078" 
            target=_blank>daniel-hou</A> 回复于:2004-10-21 19:16:42</SMALL></TD></TR>
        <TR>
          <TD>我做的Makefile安装时默认安装在/usr/local/bin底下,<BR>而我想安装在/usr/sbin下,不知道该怎么改?<BR><BR>先谢谢了!!<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=29509" 
            target=_blank>kj501</A> 回复于:2004-10-21 21:49:37</SMALL></TD></TR>
        <TR>
          <TD>这个问题不需要修改configure.in或者Makefile.am文件。用./configure&nbsp;--help可以看到有一个bindir参数可以指定可执行文件的安装目录。你只需要执行./configure&nbsp;--bindir=/usr/sbin就可以了。<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=182078" 
            target=_blank>daniel-hou</A> 回复于:2004-10-21 21:59:15</SMALL></TD></TR>
        <TR>
          <TD>老兄,你可来了,帮帮忙,这个问题搞了一天了,还是没结果!!<BR><BR>http://bbs.chinaunix.net/forum/23/20041021/429469.html<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=182078" 
            target=_blank>daniel-hou</A> 回复于:2004-10-21 22:00:13</SMALL></TD></TR>
        <TR>
          <TD>谢谢,我试试看!<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=182078" 
            target=_blank>daniel-hou</A> 回复于:2004-10-21 22:09:27</SMALL></TD></TR>
        <TR>
          <TD>本人才学疏浅,惭愧惭愧!!<BR><BR>以后多多学习才是!!&nbsp;:em02:&nbsp;&nbsp;:em02:<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=182078" 
            target=_blank>daniel-hou</A> 回复于:2004-10-22 19:23:51</SMALL></TD></TR>
        <TR>
          <TD>上面的问题已经解决,但又有个新的问题:<BR><BR>我的程序是这样的:<BR>mailrelay目录下有两个文件夹,poprelay和sendmailrelay.<BR><BR>在poprelay下的process.c中使用了crypt()函数,它要求gcc编译时加-lcrypt参数,但默认情况下编译时没有加-lcrypt,所以编译就通不过.<BR><BR>请问我该怎样做才能编译自动加上-lcrpty参数??<BR><BR>我自己瞎捉摸了一下,在configure.in文件加了这么一行:<BR>[quote:580b093323]CFLAGS=-lcrypt[/quote:580b093323]<BR>不知对不对???<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=29509" 
            target=_blank>kj501</A> 回复于:2004-10-23 11:01:40</SMALL></TD></TR>
        <TR>
          <TD>当然不对啦。要是对了,你也不没有必要问这个问题了。 <BR>应该是在Makefile.am中写 
            <BR>[code:1:4c199d24c7] <BR>LIBS&nbsp;=&nbsp;-lcrypt 
            <BR>[/code:1:4c199d24c7] 
            <BR>我觉得你对configure.in和Makefile.am的作用不清楚。configure.in是用来生成configure的,主要用于检查系统的编译环境。至于编译的各项参数,是由Makefile.am生成的Makefile决定的。建议你在网上找点资料仔细看看。<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=182078" 
            target=_blank>daniel-hou</A> 回复于:2004-10-24 11:04:15</SMALL></TD></TR>
        <TR>
          <TD>谢谢你,那我就在网上找一些资料学习一下,我也看过一些关于automake,autoconf的文档,就是大部分看不太懂,呵呵! 
            <BR>以后还要不断学习才是啊,现在对这方面的动西,我是太死板了,其实主要原因还是没理解.还望以后多多指教!!&nbsp;:D&nbsp;&nbsp;:D&nbsp;&nbsp;:D<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=182692" 
            target=_blank>wubulen</A> 回复于:2004-12-02 03:04:45</SMALL></TD></TR>
        <TR>
          <TD>隔了很长时间,现在又回到这个主题上。我安装了动态库,在lib目录下,可是通过make&nbsp;dist&nbsp;还是不能将库文件(*.la)&nbsp;打进包里。是否可以将库文件打到包里呢?因为有些源程序不能发布,所以必须有库文件。<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=29509" 
            target=_blank>kj501</A> 回复于:2004-12-02 11:44:56</SMALL></TD></TR>
        <TR>
          <TD>如果要发布编译好的二进制可执行程序,可以采用rpm包的形式。<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=19286" 
            target=_blank>yunin</A> 回复于:2004-12-03 16:28:29</SMALL></TD></TR>
        <TR>
          <TD>值得收藏,多谢kj501,辛苦了。<BR><BR></TD></TR>
        <TR>
          <TD>
            <HR>
            <SMALL>&nbsp;<A 
            href="http://bbs.chinaunix.net/forum/profile.php?mode=viewprofile&amp;u=41178" 
            target=_blank>simtiger</A> 回复于:2004-12-11 20:51:48</SMALL></TD></TR>
        <TR>
          <TD>kj501的回答很耐心哈,很喜欢这种step&nbsp;by&nbsp;step的例子。 <BR>喜欢这种细致讨论的气氛。 
            <BR>收藏!<BR><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="75%" border=0>
  <TBODY>
  <TR>
    <TD width="100%" bgColor=#49ade9 colSpan=5 height=2><IMG height=1 
      src="ChinaUnix_net - 求关于gnu automake autoconf 的实用例子.files/bline.gif" 
      width=1></TD></TR></TBODY></TABLE><BR><SMALL>&nbsp;*&nbsp; 请尊重我们的劳动,转载请注明出自<A 
href="http://www.chinaunix.net/">ChinaUnix.net</A>及作者名 &nbsp;*&nbsp; 
</SMALL></CENTER></DIV>
<SCRIPT 
src="ChinaUnix_net - 求关于gnu automake autoconf 的实用例子.files/tail.js"></SCRIPT>
</BODY></HTML>

⌨️ 快捷键说明

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