Show
Ignore:
Timestamp:
12/12/07 09:44:46 (12 months ago)
Author:
asterix
Message:

merge diff from trunk

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/pep/configure.ac

    r8478 r9123  
    11AC_INIT([Gajim - A Jabber Instant Messager], 
    2                 [0.11.1.5],[http://trac.gajim.org/],[gajim]) 
     2                [0.11.4.0-svn],[http://trac.gajim.org/],[gajim]) 
    33AC_PREREQ([2.59]) 
    44AM_INIT_AUTOMAKE([1.8]) 
     
    66AC_CONFIG_MACRO_DIR([m4]) 
    77AM_MAINTAINER_MODE 
     8 
     9dnl Make Objective-C work with automake 
     10AM_CONDITIONAL([am__fastdepOBJC], false) 
    811 
    912IT_PROG_INTLTOOL([0.35.0]) 
     
    3437dnl pygtk and gtk+ 
    3538dnl **** 
    36 PKG_CHECK_MODULES([PYGTK], [gtk+-2.0 >= 2.6.0 pygtk-2.0 >= 2.6.0]) 
     39PKG_CHECK_MODULES([PYGTK], [gtk+-2.0 >= 2.8.0 pygtk-2.0 >= 2.8.0]) 
    3740AC_SUBST(PYGTK_CFLAGS) 
    3841AC_SUBST(PYGTK_LIBS) 
     
    129132AM_CONDITIONAL(BUILD_TRAYICON, $have_trayicon) 
    130133 
     134dnl **** 
     135dnl Cocoa 
     136dnl **** 
     137AC_ARG_ENABLE([cocoa], 
     138  [  --disable-cocoa         build cocoa integration [default auto]], 
     139  enable_cocoa=$enableval, enable_cocoa=yes) 
     140 
     141if test "x$enable_cocoa" = "xyes";then  
     142  dnl There is no pkgconfig for cocoa; lets do a header check 
     143  temp_save_cflags="$CFLAGS" 
     144  CFLAGS="$CFLAGS -ObjC" 
     145  AC_CHECK_HEADER(Cocoa/Cocoa.h, [have_cocoa=true], [have_cocoa=false]) 
     146  AC_CHECK_HEADER(AppKit/AppKit.h, [have_appkit=true], [have_appkit=false]) 
     147  CFLAGS="$temp_save_cflags" 
     148 
     149  if test "x$have_cocoa" = "xtrue";then 
     150     COCOA_LIBS="$COCOA_LIBS -Xlinker -framework -Xlinker Cocoa" 
     151  fi 
     152  if test "x$have_appkit" = "xtrue";then 
     153     COCOA_LIBS="$COCOA_LIBS -Xlinker -framework -Xlinker AppKit" 
     154  fi 
     155  if test "x$COCOA_LIBS" != "x";then 
     156         AC_SUBST(COCOA_LIBS) 
     157     true 
     158  fi 
     159fi 
     160AM_CONDITIONAL(BUILD_COCOA, $have_cocoa) 
     161 
     162dnl **** 
     163dnl Carbon 
     164dnl **** 
     165AC_ARG_ENABLE([carbon], 
     166  [  --disable-carbon        build with carbon [default auto]], 
     167  enable_carbon=$enableval, enable_carbon=yes) 
     168 
     169if test "x$enable_carbon" = "xyes";then  
     170  dnl There is no pkgconfig for carbon; lets do a header check 
     171  AC_CHECK_HEADER(Carbon/Carbon.h, [have_carbon=true], [have_carbon=false]) 
     172  AC_CHECK_HEADER(IOKit/IOKitLib.h, [have_iokit=true], [have_iokit=false]) 
     173 
     174  if test "x$have_carbon" = "xtrue";then 
     175     CARBON_LIBS="$CARBON_LIBS -Xlinker -framework -Xlinker Carbon" 
     176  fi 
     177  if test "x$have_iokit" = "xtrue";then 
     178     CARBON_LIBS="$CARBON_LIBS -Xlinker -framework -Xlinker IOKit" 
     179  fi 
     180  if test "x$CARBON_LIBS" != "x";then 
     181         AC_SUBST(CARBON_LIBS) 
     182     have_idle_osx=true 
     183     dnl Disable X11 idle 
     184     have_idle=false 
     185     AM_CONDITIONAL(BUILD_IDLE, false) 
     186     dnl Disable custom trayicon 
     187     have_trayicon=gtk+ 
     188     AM_CONDITIONAL(BUILD_TRAYICON, false) 
     189     dnl Hack to work around failure in gettext package detection on OS/X 
     190     if test "x$GMSGFMT" = "x";then 
     191        AC_SUBST(GMSGFMT, msgfmt) 
     192        AC_SUBST(MSGFMT, msgfmt) 
     193        AC_SUBST(XGETTEXT, xgettext) 
     194     fi 
     195  else 
     196         have_carbon=false 
     197     have_idle_osx=false 
     198  fi 
     199fi 
     200AM_CONDITIONAL(BUILD_IDLE_OSX, $have_carbon) 
     201AM_CONDITIONAL(BUILD_CARBON, $have_carbon) 
     202 
    131203ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}" 
    132204AC_SUBST(ACLOCAL_AMFLAGS) 
     
    160232        src/Makefile 
    161233        src/common/Makefile 
     234    src/osx/Makefile 
     235    src/osx/growl/Makefile 
     236    src/osx/syncmenu/Makefile 
    162237        scripts/gajim 
    163238        scripts/gajim-remote 
     
    172247    remote control ... ${have_remote} 
    173248    trayicon ......... ${have_trayicon} 
     249    idle module OSX .. ${have_idle_osx} 
     250    cocoa ............ ${have_cocoa} 
    174251*****************************"