Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11954
Modified Files:
configure.ac
Log Message:
Better __progname check.
Index: configure.ac
===================================================================
RCS file: /cvsroot/tmux/tmux/configure.ac,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- configure.ac 10 Jan 2011 22:00:47 -0000 1.11
+++ configure.ac 10 Jan 2011 22:12:31 -0000 1.12
@@ -282,10 +282,16 @@
# Look for __progname.
AC_MSG_CHECKING(for __progname)
-AC_COMPILE_IFELSE(
+AC_LINK_IFELSE(
[
+ #include <stdio.h>
+ #include <stdlib.h>
extern char *__progname;
- int main(void) { const char *cp = __progname; }
+ int main(void) {
+ const char *cp = __progname;
+ printf("%s\n", cp);
+ exit(0);
+ }
],
[AC_DEFINE(HAVE___PROGNAME) AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no)
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs