/[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 828 by stargo, Sun Mar 6 21:11:18 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 132  AC_ARG_WITH(libvncserver, Line 137  AC_ARG_WITH(libvncserver,
137  #  #
138  sound="yes"  sound="yes"
139  AC_ARG_WITH(sound,  AC_ARG_WITH(sound,
140      [  --with-sound            select sound system ("oss" or "sun") ],      [  --with-sound            select sound system ("oss", "sgi" or "sun") ],
141      [      [
142      sound="$withval"      sound="$withval"
143      ])      ])
144  if test "$sound" = yes; then  if test "$sound" = yes; then
145      AC_CHECK_HEADER(sys/soundcard.h, [sound=oss])      AC_CHECK_HEADER(sys/soundcard.h, [sound=oss])
146        AC_CHECK_HEADER(dmedia/audio.h, [sound=sgi])
147      AC_CHECK_HEADER(sys/audioio.h, [sound=sun])      AC_CHECK_HEADER(sys/audioio.h, [sound=sun])
148  fi  fi
149  if test "$sound" = no; then  if test "$sound" = no; then
# Line 145  if test "$sound" = no; then Line 151  if test "$sound" = no; then
151  elif test "$sound" = oss; then  elif test "$sound" = oss; then
152      SOUNDOBJ="rdpsnd.o rdpsnd_oss.o"      SOUNDOBJ="rdpsnd.o rdpsnd_oss.o"
153      AC_DEFINE(WITH_RDPSND)      AC_DEFINE(WITH_RDPSND)
154    elif test "$sound" = sgi; then
155        SOUNDOBJ="rdpsnd.o rdpsnd_sgi.o"
156        LDFLAGS="$LDFLAGS -laudio"
157        AC_DEFINE(WITH_RDPSND)
158  elif test "$sound" = sun; then  elif test "$sound" = sun; then
159      SOUNDOBJ="rdpsnd.o rdpsnd_sun.o"      SOUNDOBJ="rdpsnd.o rdpsnd_sun.o"
160      AC_DEFINE(WITH_RDPSND)      AC_DEFINE(WITH_RDPSND)
161  else  else
162     AC_MSG_WARN([sound support disabled (no sys/soundcard.h or sys/audioio.h)])     AC_MSG_WARN([sound support disabled (no sys/soundcard.h or sys/audioio.h)])
163     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) and Sun/BSD (sun)])
164  fi  fi
165  AC_SUBST(SOUNDOBJ)  AC_SUBST(SOUNDOBJ)
166    
167    #
168    # dirfd
169    #
170    dnl Find out how to get the file descriptor associated with an open DIR*.
171    dnl From Jim Meyering
172    
173    AC_DEFUN([UTILS_FUNC_DIRFD],
174    [
175    
176      AC_HEADER_DIRENT
177      dirfd_headers='
178    #if HAVE_DIRENT_H
179    # include <dirent.h>
180    #else /* not HAVE_DIRENT_H */
181    # define dirent direct
182    # if HAVE_SYS_NDIR_H
183    #  include <sys/ndir.h>
184    # endif /* HAVE_SYS_NDIR_H */
185    # if HAVE_SYS_DIR_H
186    #  include <sys/dir.h>
187    # endif /* HAVE_SYS_DIR_H */
188    # if HAVE_NDIR_H
189    #  include <ndir.h>
190    # endif /* HAVE_NDIR_H */
191    #endif /* HAVE_DIRENT_H */
192    '
193      AC_CHECK_FUNCS(dirfd)
194      AC_CHECK_DECLS([dirfd], , , $dirfd_headers)
195    
196      AC_CACHE_CHECK([whether dirfd is a macro],
197        jm_cv_func_dirfd_macro,
198        [AC_EGREP_CPP([dirent_header_defines_dirfd], [$dirfd_headers
199    #ifdef dirfd
200     dirent_header_defines_dirfd
201    #endif],
202           jm_cv_func_dirfd_macro=yes,
203           jm_cv_func_dirfd_macro=no)])
204    
205      # Use the replacement only if we have no function, macro,
206      # or declaration with that name.
207      if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
208          = no,no,no; then
209        AC_REPLACE_FUNCS([dirfd])
210        AC_CACHE_CHECK(
211                  [how to get the file descriptor associated with an open DIR*],
212                       gl_cv_sys_dir_fd_member_name,
213          [
214            dirfd_save_CFLAGS=$CFLAGS
215            for ac_expr in d_fd dd_fd; do
216    
217              CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
218              AC_TRY_COMPILE(
219                [$dirfd_headers
220                ],
221                [DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;],
222                dir_fd_found=yes
223              )
224              CFLAGS=$dirfd_save_CFLAGS
225              test "$dir_fd_found" = yes && break
226            done
227            test "$dir_fd_found" = yes || ac_expr=no_such_member
228    
229            gl_cv_sys_dir_fd_member_name=$ac_expr
230          ]
231        )
232        if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
233          AC_DEFINE_UNQUOTED(DIR_FD_MEMBER_NAME,
234            $gl_cv_sys_dir_fd_member_name,
235            [the name of the file descriptor member of DIR])
236        fi
237        AH_VERBATIM(DIR_TO_FD,
238                    [#ifdef DIR_FD_MEMBER_NAME
239    # define DIR_TO_FD(Dir_p) ((Dir_p)->DIR_FD_MEMBER_NAME)
240    #else
241    # define DIR_TO_FD(Dir_p) -1
242    #endif
243    ]
244        )
245      fi
246    ])
247    
248    UTILS_FUNC_DIRFD
249    
250    
251    #
252    # IPv6
253    #
254    AC_ARG_WITH(ipv6,
255        [  --with-ipv6             enable IPv6-support],
256        [ AC_DEFINE(IPv6) ])
257    
258    
259  #  #
260  # debugging  # debugging
# Line 191  case "$host" in Line 292  case "$host" in
292  *-*-hpux*)  *-*-hpux*)
293      CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"      CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
294      ;;      ;;
295    *-*-irix6.5*)
296        LIBS="$LIBS -L$ssldir/lib32 -lcrypto"
297        CFLAGS="$CFLAGS -D__SGI_IRIX__"
298        ;;
299  esac  esac
300    
301    

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

  ViewVC Help
Powered by ViewVC 1.1.26