ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure.ac
(Generate patch)

Comparing rxvt-unicode/configure.ac (file contents):
Revision 1.40 by ayin, Sat Jun 9 10:28:55 2007 UTC vs.
Revision 1.52 by ayin, Wed Jun 13 16:20:41 2007 UTC

46 CXX="$CC" 46 CXX="$CC"
47 LIBS="$LIBS -lsupc++" 47 LIBS="$LIBS -lsupc++"
48 LINKER="$CC" 48 LINKER="$CC"
49 AC_LINK_IFELSE( 49 AC_LINK_IFELSE(
50 [AC_LANG_PROGRAM([struct test { }; void f() try { throw new test; } catch (...) { throw; }],[])], 50 [AC_LANG_PROGRAM([struct test { }; void f() try { throw new test; } catch (...) { throw; }],[])],
51 [
51 [AC_MSG_RESULT(ok)], 52 AC_MSG_RESULT(ok)
53 CXXLIB="-lsupc++"
54 ],
52 [ 55 [
53 AC_MSG_RESULT([no, making everything bigger and slower]) 56 AC_MSG_RESULT([no, making everything bigger and slower])
54 LIBS="$save_LIBS" 57 LIBS="$save_LIBS"
55 LINKER="$save_CXX" 58 LINKER="$save_CXX"
56 ] 59 ]
57 ) 60 )
58 CXX="$save_CXX" 61 CXX="$save_CXX"
59fi 62fi
60AC_SUBST(LINKER,[$LINKER]) 63AC_SUBST(LINKER,[$LINKER])
64AC_SUBST(CXXLIB)
61 65
62dnl# -------------------------------------------------------------------------- 66dnl# --------------------------------------------------------------------------
63dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' 67dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure'
64dnl# 68dnl#
65if test -z "$orig_CXXFLAGS"; then 69if test -z "$orig_CXXFLAGS"; then
237 [ --enable-afterimage enable integration with libAfterImage for background images], 241 [ --enable-afterimage enable integration with libAfterImage for background images],
238 [if test x$enableval = xyes -o x$enableval = xno; then 242 [if test x$enableval = xyes -o x$enableval = xno; then
239 support_afterimage=$enableval 243 support_afterimage=$enableval
240 fi]) 244 fi])
241 245
242AC_ARG_WITH(afterimage_config, [ --with-afterimage-config=DIR use libAfterImage config script in DIR], afterimage_config="$withval",afterimage_config=NO) 246AC_ARG_WITH(afterimage_config,
247 [ --with-afterimage-config=DIR use libAfterImage config script in DIR],
248 [if test "x$withval" != x; then
249 afterimage_config=$withval/afterimage-config
250 fi])
243 251
244AC_ARG_ENABLE(afterstep, 252AC_ARG_ENABLE(afterstep,
245 [ --enable-afterstep enable integration with AfterStep window manager], 253 [ --enable-afterstep enable integration with AfterStep window manager],
246 [if test x$enableval = xyes -o x$enableval = xno; then 254 [if test x$enableval = xyes -o x$enableval = xno; then
247 support_afterstep=$enableval 255 support_afterstep=$enableval
435 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" 443 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval"
436 fi]) 444 fi])
437 445
438dnl# -------------------------------------------------------------------------- 446dnl# --------------------------------------------------------------------------
439 447
440AC_PATH_PROG(MV, mv, mv)
441AC_PATH_PROG(CP, cp, cp)
442AC_PATH_PROG(LN, ln, ln)
443AC_PATH_PROG(SED, sed, sed)
444AC_PATH_PROG(ECHO, echo, echo)
445AC_PATH_PROG(CMP, cmp, cmp)
446AC_PATH_PROG(TIC, tic) 448AC_PATH_PROG(TIC, tic)
447 449
448dnl# need a neat way to detect SVR4 or its features 450dnl# need a neat way to detect SVR4 or its features
449dnl# in src/command.c we use these functions: 451dnl# in src/command.c we use these functions:
450dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> 452dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h>
465 467
466LIBAFTERIMAGE_CFLAGS= 468LIBAFTERIMAGE_CFLAGS=
467AFTERIMAGE_LIBS= 469AFTERIMAGE_LIBS=
468have_afterimage= 470have_afterimage=
469 471
470if test x$support_afterimage == xyes; then 472if test x$support_afterimage = xyes; then
471 AC_MSG_CHECKING(installed libAfterImage)
472 support_afterimage=no 473 support_afterimage=no
474
473 if test "$afterimage_config" = "NO" ; then 475 if test "x$afterimage_config" = "x" ; then
474 if afterimage-config --version > /dev/null 2>&1 ; then 476 AC_PATH_PROG(afterimage_config, afterimage-config, no)
475 afterimage_config=afterimage-config 477 fi
476 else 478
477 if test -x /usr/local/bin/afterimage-config; then 479 AC_MSG_CHECKING(for libAfterImage)
478 afterimage_config=/usr/local/bin/afterimage-config
479 fi
480 fi
481 else
482 afterimage_config=$afterimage_config/afterimage-config
483 fi
484 if $afterimage_config --version > /dev/null 2>&1 ; then 480 if $afterimage_config --version >/dev/null 2>&1 ; then
485 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 481 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
486 AFTERIMAGE_LIBS=`$afterimage_config --libs` 482 AFTERIMAGE_LIBS=`$afterimage_config --libs`
487 if test "x$AFTERIMAGE_LIBS" != "x"; then 483 if test "x$AFTERIMAGE_LIBS" != "x"; then
488 support_afterimage=yes 484 support_afterimage=yes
489 fi 485 fi
490 fi 486 fi
491 487
492 if test "x$support_afterimage" = "xyes"; then 488 if test "x$support_afterimage" = "xyes"; then
493 AC_MSG_RESULT($AFTERIMAGE_LIBS) 489 AC_MSG_RESULT($AFTERIMAGE_LIBS)
494 else 490 else
495 AC_MSG_RESULT(afterimage-config not found in $afterimage_config - can't use libAfterImage for images.) 491 AC_MSG_RESULT(no)
496 fi 492 fi
497fi 493fi
498 494
499if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then 495if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
500 VT_FIND_LIBXPM 496 VT_FIND_LIBXPM
501 if test x$no_xpm = xyes; then 497 if test x$no_xpm = xyes; then
959 955
960if test x$support_perl = xyes; then 956if test x$support_perl = xyes; then
961 support_frills=yes 957 support_frills=yes
962fi 958fi
963 959
964AC_SUBST(DEBUG)
965AC_SUBST(DINCLUDE)
966AC_SUBST(CFLAGS) 960AC_SUBST(CFLAGS)
967AC_SUBST(CPPFLAGS) 961AC_SUBST(CPPFLAGS)
968AC_SUBST(LDFLAGS) 962AC_SUBST(LDFLAGS)
969AC_SUBST(X_CFLAGS) 963AC_SUBST(X_CFLAGS)
970 964
971dnl# Attack the libs 965dnl# Attack the libs
972if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 966if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
973 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
974 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 967 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
975 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` 968 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
976 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` 969 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
977 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` 970 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
978fi 971fi
979AC_SUBST(DLIB)
980AC_SUBST(LIBS) 972AC_SUBST(LIBS)
981AC_SUBST(X_LIBS) 973AC_SUBST(X_LIBS)
982AC_SUBST(X_EXTRA_LIBS) 974AC_SUBST(X_EXTRA_LIBS)
983 975
984AC_SUBST(LIBAFTERIMAGE_CFLAGS) 976AC_SUBST(LIBAFTERIMAGE_CFLAGS)
1030if test x$support_xpm = xyes; then 1022if test x$support_xpm = xyes; then
1031 echo " Xpm library: $XPM_LIBS" 1023 echo " Xpm library: $XPM_LIBS"
1032fi 1024fi
1033 1025
1034if test x$support_afterimage = xyes; then 1026if test x$support_afterimage = xyes; then
1035 echo " AfterImage library: $AFTERIMAGE_LIBS" 1027 echo " AfterImage support: yes"
1036fi 1028fi
1037 1029
1038if test x$support_afterstep = xyes; then 1030if test x$support_afterstep = xyes; then
1039 echo " With AfterStep integration" 1031 echo " AfterStep integration: yes"
1040fi 1032fi
1041 1033
1042if test x$term != x; then 1034if test x$term != x; then
1043 echo " set TERM to: $term" 1035 echo " set TERM to: $term"
1044fi 1036fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines