/[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 857 by stargo, Sun Mar 13 13:36:04 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    AC_CHECK_HEADER(locale.h, AC_DEFINE(HAVE_LOCALE_H))
24    AC_CHECK_HEADER(langinfo.h, AC_DEFINE(HAVE_LANGINFO_H))
25    AC_CHECK_HEADER(iconv.h, AC_DEFINE(HAVE_ICONV_H))
26    
27  rpath=""  rpath=""
28    
29  #  #
# Line 130  AC_ARG_WITH(libvncserver, Line 138  AC_ARG_WITH(libvncserver,
138  #  #
139  # sound  # sound
140  #  #
141    AC_ARG_WITH(libao,
142        [  --with-libao=DIR        look for libao at DIR/include, DIR/lib],
143        [
144        CFLAGS="$CFLAGS -I$withval/include"
145        CPPFLAGS="$CPPFLAGS -I$withval/include"
146        LIBS="$LIBS -L$withval/lib"
147        rpath="$rpath:$withval/lib"
148        ]
149    )
150    
151  sound="yes"  sound="yes"
152  AC_ARG_WITH(sound,  AC_ARG_WITH(sound,
153      [  --with-sound            select sound system ("oss" or "sun") ],      [  --with-sound            select sound system ("oss", "sgi", "sun" or "libao") ],
154      [      [
155      sound="$withval"      sound="$withval"
156      ])      ])
157  if test "$sound" = yes; then  if test "$sound" = yes; then
158        AC_CHECK_HEADER(ao/ao.h, [sound=libao])
159      AC_CHECK_HEADER(sys/soundcard.h, [sound=oss])      AC_CHECK_HEADER(sys/soundcard.h, [sound=oss])
160        AC_CHECK_HEADER(dmedia/audio.h, [sound=sgi])
161      AC_CHECK_HEADER(sys/audioio.h, [sound=sun])      AC_CHECK_HEADER(sys/audioio.h, [sound=sun])
162  fi  fi
163  if test "$sound" = no; then  if test "$sound" = no; then
# Line 145  if test "$sound" = no; then Line 165  if test "$sound" = no; then
165  elif test "$sound" = oss; then  elif test "$sound" = oss; then
166      SOUNDOBJ="rdpsnd.o rdpsnd_oss.o"      SOUNDOBJ="rdpsnd.o rdpsnd_oss.o"
167      AC_DEFINE(WITH_RDPSND)      AC_DEFINE(WITH_RDPSND)
168    elif test "$sound" = sgi; then
169        SOUNDOBJ="rdpsnd.o rdpsnd_sgi.o"
170        LDFLAGS="$LDFLAGS -laudio"
171        AC_DEFINE(WITH_RDPSND)
172  elif test "$sound" = sun; then  elif test "$sound" = sun; then
173      SOUNDOBJ="rdpsnd.o rdpsnd_sun.o"      SOUNDOBJ="rdpsnd.o rdpsnd_sun.o"
174      AC_DEFINE(WITH_RDPSND)      AC_DEFINE(WITH_RDPSND)
175    elif test "$sound" = libao; then
176        SOUNDOBJ="rdpsnd.o rdpsnd_libao.o"
177        LDFLAGS="$LDFLAGS -lao"
178        AC_DEFINE(WITH_RDPSND)
179  else  else
180     AC_MSG_WARN([sound support disabled (no sys/soundcard.h or sys/audioio.h)])     AC_MSG_WARN([sound support disabled])
181     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])
182  fi  fi
183  AC_SUBST(SOUNDOBJ)  AC_SUBST(SOUNDOBJ)
184    
185    #
186    # dirfd
187    #
188    dnl Find out how to get the file descriptor associated with an open DIR*.
189    dnl From Jim Meyering
190    
191    AC_DEFUN([UTILS_FUNC_DIRFD],
192    [
193    
194      AC_HEADER_DIRENT
195      dirfd_headers='
196    #if HAVE_DIRENT_H
197    # include <dirent.h>
198    #else /* not HAVE_DIRENT_H */
199    # define dirent direct
200    # if HAVE_SYS_NDIR_H
201    #  include <sys/ndir.h>
202    # endif /* HAVE_SYS_NDIR_H */
203    # if HAVE_SYS_DIR_H
204    #  include <sys/dir.h>
205    # endif /* HAVE_SYS_DIR_H */
206    # if HAVE_NDIR_H
207    #  include <ndir.h>
208    # endif /* HAVE_NDIR_H */
209    #endif /* HAVE_DIRENT_H */
210    '
211      AC_CHECK_FUNCS(dirfd)
212      AC_CHECK_DECLS([dirfd], , , $dirfd_headers)
213    
214      AC_CACHE_CHECK([whether dirfd is a macro],
215        jm_cv_func_dirfd_macro,
216        [AC_EGREP_CPP([dirent_header_defines_dirfd], [$dirfd_headers
217    #ifdef dirfd
218     dirent_header_defines_dirfd
219    #endif],
220           jm_cv_func_dirfd_macro=yes,
221           jm_cv_func_dirfd_macro=no)])
222    
223      # Use the replacement only if we have no function, macro,
224      # or declaration with that name.
225      if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
226          = no,no,no; then
227        AC_REPLACE_FUNCS([dirfd])
228        AC_CACHE_CHECK(
229                  [how to get the file descriptor associated with an open DIR*],
230                       gl_cv_sys_dir_fd_member_name,
231          [
232            dirfd_save_CFLAGS=$CFLAGS
233            for ac_expr in d_fd dd_fd; do
234    
235              CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
236              AC_TRY_COMPILE(
237                [$dirfd_headers
238                ],
239                [DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;],
240                dir_fd_found=yes
241              )
242              CFLAGS=$dirfd_save_CFLAGS
243              test "$dir_fd_found" = yes && break
244            done
245            test "$dir_fd_found" = yes || ac_expr=no_such_member
246    
247            gl_cv_sys_dir_fd_member_name=$ac_expr
248          ]
249        )
250        if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
251          AC_DEFINE_UNQUOTED(DIR_FD_MEMBER_NAME,
252            $gl_cv_sys_dir_fd_member_name,
253            [the name of the file descriptor member of DIR])
254        fi
255        AH_VERBATIM(DIR_TO_FD,
256                    [#ifdef DIR_FD_MEMBER_NAME
257    # define DIR_TO_FD(Dir_p) ((Dir_p)->DIR_FD_MEMBER_NAME)
258    #else
259    # define DIR_TO_FD(Dir_p) -1
260    #endif
261    ]
262        )
263      fi
264    ])
265    
266    UTILS_FUNC_DIRFD
267    
268    
269    #
270    # IPv6
271    #
272    AC_ARG_WITH(ipv6,
273        [  --with-ipv6             enable IPv6-support],
274        [ AC_DEFINE(IPv6) ])
275    
276    
277  #  #
278  # debugging  # debugging
# Line 191  case "$host" in Line 310  case "$host" in
310  *-*-hpux*)  *-*-hpux*)
311      CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"      CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
312      ;;      ;;
313    *-*-irix6.5*)
314        LIBS="$LIBS -L$ssldir/lib32 -lcrypto"
315        CFLAGS="$CFLAGS -D__SGI_IRIX__"
316        ;;
317  esac  esac
318    
319    

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

  ViewVC Help
Powered by ViewVC 1.1.26