/[rdesktop]/sourceforge.net/trunk/rdesktop/configure.ac
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 740 by astrand, Sat Jul 31 13:07:41 2004 UTC revision 834 by stargo, Tue Mar 8 03:45:39 2005 UTC
# Line 1  Line 1 
1  AC_INIT(rdesktop, 1.3.1)  AC_INIT(rdesktop, 1.4.0)
2    
3  AC_CONFIG_SRCDIR([rdesktop.c])  AC_CONFIG_SRCDIR([rdesktop.c])
4    
# Line 16  AC_PATH_XTRA Line 16  AC_PATH_XTRA
16  AC_SEARCH_LIBS(socket, socket)  AC_SEARCH_LIBS(socket, socket)
17  AC_SEARCH_LIBS(inet_aton, resolv)  AC_SEARCH_LIBS(inet_aton, resolv)
18    
19    AC_CHECK_HEADER(sys/select.h, AC_DEFINE(HAVE_SYS_SELECT_H))
20    AC_CHECK_HEADER(sys/modem.h, AC_DEFINE(HAVE_SYS_MODEM_H))
21    AC_CHECK_HEADER(sys/filio.h, AC_DEFINE(HAVE_SYS_FILIO_H))
22    AC_CHECK_HEADER(sys/strtio.h, AC_DEFINE(HAVE_SYS_STRTIO_H))
23    
24  rpath=""  rpath=""
25    
26  #  #
# Line 130  AC_ARG_WITH(libvncserver, Line 135  AC_ARG_WITH(libvncserver,
135  #  #
136  # sound  # sound
137  #  #
138    AC_ARG_WITH(libao,
139        [  --with-libao=DIR        look for libao at DIR/include, DIR/lib],
140        [
141        CFLAGS="$CFLAGS -I$withval/include"
142        CPPFLAGS="$CPPFLAGS -I$withval/include"
143        LIBS="$LIBS -L$withval/lib"
144        rpath="$rpath:$withval/lib"
145        ]
146    )
147    
148  sound="yes"  sound="yes"
149  AC_ARG_WITH(sound,  AC_ARG_WITH(sound,
150      [  --with-sound            select sound system ("oss" or "sun") ],      [  --with-sound            select sound system ("oss", "sgi", "sun" or "libao") ],
151      [      [
152      sound="$withval"      sound="$withval"
153      ])      ])
154  if test "$sound" = yes; then  if test "$sound" = yes; then
155        AC_CHECK_HEADER(ao/ao.h, [sound=libao])
156      AC_CHECK_HEADER(sys/soundcard.h, [sound=oss])      AC_CHECK_HEADER(sys/soundcard.h, [sound=oss])
157        AC_CHECK_HEADER(dmedia/audio.h, [sound=sgi])
158      AC_CHECK_HEADER(sys/audioio.h, [sound=sun])      AC_CHECK_HEADER(sys/audioio.h, [sound=sun])
159  fi  fi
160  if test "$sound" = no; then  if test "$sound" = no; then
# Line 145  if test "$sound" = no; then Line 162  if test "$sound" = no; then
162  elif test "$sound" = oss; then  elif test "$sound" = oss; then
163      SOUNDOBJ="rdpsnd.o rdpsnd_oss.o"      SOUNDOBJ="rdpsnd.o rdpsnd_oss.o"
164      AC_DEFINE(WITH_RDPSND)      AC_DEFINE(WITH_RDPSND)
165    elif test "$sound" = sgi; then
166        SOUNDOBJ="rdpsnd.o rdpsnd_sgi.o"
167        LDFLAGS="$LDFLAGS -laudio"
168        AC_DEFINE(WITH_RDPSND)
169  elif test "$sound" = sun; then  elif test "$sound" = sun; then
170      SOUNDOBJ="rdpsnd.o rdpsnd_sun.o"      SOUNDOBJ="rdpsnd.o rdpsnd_sun.o"
171      AC_DEFINE(WITH_RDPSND)      AC_DEFINE(WITH_RDPSND)
172    elif test "$sound" = libao; then
173        SOUNDOBJ="rdpsnd.o rdpsnd_libao.o"
174        LDFLAGS="$LDFLAGS -lao"
175        AC_DEFINE(WITH_RDPSND)
176  else  else
177     AC_MSG_WARN([sound support disabled (no sys/soundcard.h or sys/audioio.h)])     AC_MSG_WARN([sound support disabled])
178     AC_MSG_WARN([Currently supported systems are Open Sound System (oss) and Sun/BSD (sun)])     AC_MSG_WARN([Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun) and libao])
179  fi  fi
180  AC_SUBST(SOUNDOBJ)  AC_SUBST(SOUNDOBJ)
181    
182    #
183    # dirfd
184    #
185    dnl Find out how to get the file descriptor associated with an open DIR*.
186    dnl From Jim Meyering
187    
188    AC_DEFUN([UTILS_FUNC_DIRFD],
189    [
190    
191      AC_HEADER_DIRENT
192      dirfd_headers='
193    #if HAVE_DIRENT_H
194    # include <dirent.h>
195    #else /* not HAVE_DIRENT_H */
196    # define dirent direct
197    # if HAVE_SYS_NDIR_H
198    #  include <sys/ndir.h>
199    # endif /* HAVE_SYS_NDIR_H */
200    # if HAVE_SYS_DIR_H
201    #  include <sys/dir.h>
202    # endif /* HAVE_SYS_DIR_H */
203    # if HAVE_NDIR_H
204    #  include <ndir.h>
205    # endif /* HAVE_NDIR_H */
206    #endif /* HAVE_DIRENT_H */
207    '
208      AC_CHECK_FUNCS(dirfd)
209      AC_CHECK_DECLS([dirfd], , , $dirfd_headers)
210    
211      AC_CACHE_CHECK([whether dirfd is a macro],
212        jm_cv_func_dirfd_macro,
213        [AC_EGREP_CPP([dirent_header_defines_dirfd], [$dirfd_headers
214    #ifdef dirfd
215     dirent_header_defines_dirfd
216    #endif],
217           jm_cv_func_dirfd_macro=yes,
218           jm_cv_func_dirfd_macro=no)])
219    
220      # Use the replacement only if we have no function, macro,
221      # or declaration with that name.
222      if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
223          = no,no,no; then
224        AC_REPLACE_FUNCS([dirfd])
225        AC_CACHE_CHECK(
226                  [how to get the file descriptor associated with an open DIR*],
227                       gl_cv_sys_dir_fd_member_name,
228          [
229            dirfd_save_CFLAGS=$CFLAGS
230            for ac_expr in d_fd dd_fd; do
231    
232              CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
233              AC_TRY_COMPILE(
234                [$dirfd_headers
235                ],
236                [DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;],
237                dir_fd_found=yes
238              )
239              CFLAGS=$dirfd_save_CFLAGS
240              test "$dir_fd_found" = yes && break
241            done
242            test "$dir_fd_found" = yes || ac_expr=no_such_member
243    
244            gl_cv_sys_dir_fd_member_name=$ac_expr
245          ]
246        )
247        if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
248          AC_DEFINE_UNQUOTED(DIR_FD_MEMBER_NAME,
249            $gl_cv_sys_dir_fd_member_name,
250            [the name of the file descriptor member of DIR])
251        fi
252        AH_VERBATIM(DIR_TO_FD,
253                    [#ifdef DIR_FD_MEMBER_NAME
254    # define DIR_TO_FD(Dir_p) ((Dir_p)->DIR_FD_MEMBER_NAME)
255    #else
256    # define DIR_TO_FD(Dir_p) -1
257    #endif
258    ]
259        )
260      fi
261    ])
262    
263    UTILS_FUNC_DIRFD
264    
265    
266    #
267    # IPv6
268    #
269    AC_ARG_WITH(ipv6,
270        [  --with-ipv6             enable IPv6-support],
271        [ AC_DEFINE(IPv6) ])
272    
273    
274  #  #
275  # debugging  # debugging
# Line 191  case "$host" in Line 307  case "$host" in
307  *-*-hpux*)  *-*-hpux*)
308      CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"      CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
309      ;;      ;;
310    *-*-irix6.5*)
311        LIBS="$LIBS -L$ssldir/lib32 -lcrypto"
312        CFLAGS="$CFLAGS -D__SGI_IRIX__"
313        ;;
314  esac  esac
315    
316    

Legend:
Removed from v.740  
changed lines
  Added in v.834

  ViewVC Help
Powered by ViewVC 1.1.26