/[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 742 by stargo, Fri Aug 6 09:50:34 2004 UTC revision 833 by stargo, Tue Mar 8 03:33:36 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    AC_MSG_CHECKING([checking for sound support])
183    
184  #  #
185  # dirfd  # dirfd
186  #  #
187    dnl Find out how to get the file descriptor associated with an open DIR*.
188    dnl From Jim Meyering
189    
190    AC_DEFUN([UTILS_FUNC_DIRFD],
191    [
192    
193      AC_HEADER_DIRENT
194      dirfd_headers='
195    #if HAVE_DIRENT_H
196    # include <dirent.h>
197    #else /* not HAVE_DIRENT_H */
198    # define dirent direct
199    # if HAVE_SYS_NDIR_H
200    #  include <sys/ndir.h>
201    # endif /* HAVE_SYS_NDIR_H */
202    # if HAVE_SYS_DIR_H
203    #  include <sys/dir.h>
204    # endif /* HAVE_SYS_DIR_H */
205    # if HAVE_NDIR_H
206    #  include <ndir.h>
207    # endif /* HAVE_NDIR_H */
208    #endif /* HAVE_DIRENT_H */
209    '
210      AC_CHECK_FUNCS(dirfd)
211      AC_CHECK_DECLS([dirfd], , , $dirfd_headers)
212    
213      AC_CACHE_CHECK([whether dirfd is a macro],
214        jm_cv_func_dirfd_macro,
215        [AC_EGREP_CPP([dirent_header_defines_dirfd], [$dirfd_headers
216    #ifdef dirfd
217     dirent_header_defines_dirfd
218    #endif],
219           jm_cv_func_dirfd_macro=yes,
220           jm_cv_func_dirfd_macro=no)])
221    
222      # Use the replacement only if we have no function, macro,
223      # or declaration with that name.
224      if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
225          = no,no,no; then
226        AC_REPLACE_FUNCS([dirfd])
227        AC_CACHE_CHECK(
228                  [how to get the file descriptor associated with an open DIR*],
229                       gl_cv_sys_dir_fd_member_name,
230          [
231            dirfd_save_CFLAGS=$CFLAGS
232            for ac_expr in d_fd dd_fd; do
233    
234              CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
235              AC_TRY_COMPILE(
236                [$dirfd_headers
237                ],
238                [DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;],
239                dir_fd_found=yes
240              )
241              CFLAGS=$dirfd_save_CFLAGS
242              test "$dir_fd_found" = yes && break
243            done
244            test "$dir_fd_found" = yes || ac_expr=no_such_member
245    
246            gl_cv_sys_dir_fd_member_name=$ac_expr
247          ]
248        )
249        if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
250          AC_DEFINE_UNQUOTED(DIR_FD_MEMBER_NAME,
251            $gl_cv_sys_dir_fd_member_name,
252            [the name of the file descriptor member of DIR])
253        fi
254        AH_VERBATIM(DIR_TO_FD,
255                    [#ifdef DIR_FD_MEMBER_NAME
256    # define DIR_TO_FD(Dir_p) ((Dir_p)->DIR_FD_MEMBER_NAME)
257    #else
258    # define DIR_TO_FD(Dir_p) -1
259    #endif
260    ]
261        )
262      fi
263    ])
264    
265  UTILS_FUNC_DIRFD  UTILS_FUNC_DIRFD
266    
267    
268    #
269    # IPv6
270    #
271    AC_ARG_WITH(ipv6,
272        [  --with-ipv6             enable IPv6-support],
273        [ AC_DEFINE(IPv6) ])
274    
275    
276  #  #
277  # debugging  # debugging
278  #  #
# Line 195  case "$host" in Line 309  case "$host" in
309  *-*-hpux*)  *-*-hpux*)
310      CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"      CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
311      ;;      ;;
312    *-*-irix6.5*)
313        LIBS="$LIBS -L$ssldir/lib32 -lcrypto"
314        CFLAGS="$CFLAGS -D__SGI_IRIX__"
315        ;;
316  esac  esac
317    
318    

Legend:
Removed from v.742  
changed lines
  Added in v.833

  ViewVC Help
Powered by ViewVC 1.1.26