/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/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/branches/seamlessrdp-branch/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 744 by stargo, Mon Aug 9 11:39:49 2004 UTC
# Line 132  AC_ARG_WITH(libvncserver, Line 132  AC_ARG_WITH(libvncserver,
132  #  #
133  sound="yes"  sound="yes"
134  AC_ARG_WITH(sound,  AC_ARG_WITH(sound,
135      [  --with-sound            select sound system ("oss" or "sun") ],      [  --with-sound            select sound system ("oss", "sgi" or "sun") ],
136      [      [
137      sound="$withval"      sound="$withval"
138      ])      ])
139  if test "$sound" = yes; then  if test "$sound" = yes; then
140      AC_CHECK_HEADER(sys/soundcard.h, [sound=oss])      AC_CHECK_HEADER(sys/soundcard.h, [sound=oss])
141        AC_CHECK_HEADER(dmedia/audio.h, [sound=sgi])
142      AC_CHECK_HEADER(sys/audioio.h, [sound=sun])      AC_CHECK_HEADER(sys/audioio.h, [sound=sun])
143  fi  fi
144  if test "$sound" = no; then  if test "$sound" = no; then
# Line 145  if test "$sound" = no; then Line 146  if test "$sound" = no; then
146  elif test "$sound" = oss; then  elif test "$sound" = oss; then
147      SOUNDOBJ="rdpsnd.o rdpsnd_oss.o"      SOUNDOBJ="rdpsnd.o rdpsnd_oss.o"
148      AC_DEFINE(WITH_RDPSND)      AC_DEFINE(WITH_RDPSND)
149    elif test "$sound" = sgi; then
150        SOUNDOBJ="rdpsnd.o rdpsnd_sgi.o"
151        LDFLAGS="$LDFLAGS -laudio"
152        AC_DEFINE(WITH_RDPSND)
153  elif test "$sound" = sun; then  elif test "$sound" = sun; then
154      SOUNDOBJ="rdpsnd.o rdpsnd_sun.o"      SOUNDOBJ="rdpsnd.o rdpsnd_sun.o"
155      AC_DEFINE(WITH_RDPSND)      AC_DEFINE(WITH_RDPSND)
156  else  else
157     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)])
158     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)])
159  fi  fi
160  AC_SUBST(SOUNDOBJ)  AC_SUBST(SOUNDOBJ)
161    
162  #  #
163  # dirfd  # dirfd
164  #  #
165    dnl Find out how to get the file descriptor associated with an open DIR*.
166    dnl From Jim Meyering
167    
168    AC_DEFUN([UTILS_FUNC_DIRFD],
169    [
170    
171      AC_HEADER_DIRENT
172      dirfd_headers='
173    #if HAVE_DIRENT_H
174    # include <dirent.h>
175    #else /* not HAVE_DIRENT_H */
176    # define dirent direct
177    # if HAVE_SYS_NDIR_H
178    #  include <sys/ndir.h>
179    # endif /* HAVE_SYS_NDIR_H */
180    # if HAVE_SYS_DIR_H
181    #  include <sys/dir.h>
182    # endif /* HAVE_SYS_DIR_H */
183    # if HAVE_NDIR_H
184    #  include <ndir.h>
185    # endif /* HAVE_NDIR_H */
186    #endif /* HAVE_DIRENT_H */
187    '
188      AC_CHECK_FUNCS(dirfd)
189      AC_CHECK_DECLS([dirfd], , , $dirfd_headers)
190    
191      AC_CACHE_CHECK([whether dirfd is a macro],
192        jm_cv_func_dirfd_macro,
193        [AC_EGREP_CPP([dirent_header_defines_dirfd], [$dirfd_headers
194    #ifdef dirfd
195     dirent_header_defines_dirfd
196    #endif],
197           jm_cv_func_dirfd_macro=yes,
198           jm_cv_func_dirfd_macro=no)])
199    
200      # Use the replacement only if we have no function, macro,
201      # or declaration with that name.
202      if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
203          = no,no,no; then
204        AC_REPLACE_FUNCS([dirfd])
205        AC_CACHE_CHECK(
206                  [how to get the file descriptor associated with an open DIR*],
207                       gl_cv_sys_dir_fd_member_name,
208          [
209            dirfd_save_CFLAGS=$CFLAGS
210            for ac_expr in d_fd dd_fd; do
211    
212              CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
213              AC_TRY_COMPILE(
214                [$dirfd_headers
215                ],
216                [DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;],
217                dir_fd_found=yes
218              )
219              CFLAGS=$dirfd_save_CFLAGS
220              test "$dir_fd_found" = yes && break
221            done
222            test "$dir_fd_found" = yes || ac_expr=no_such_member
223    
224            gl_cv_sys_dir_fd_member_name=$ac_expr
225          ]
226        )
227        if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
228          AC_DEFINE_UNQUOTED(DIR_FD_MEMBER_NAME,
229            $gl_cv_sys_dir_fd_member_name,
230            [the name of the file descriptor member of DIR])
231        fi
232        AH_VERBATIM(DIR_TO_FD,
233                    [#ifdef DIR_FD_MEMBER_NAME
234    # define DIR_TO_FD(Dir_p) ((Dir_p)->DIR_FD_MEMBER_NAME)
235    #else
236    # define DIR_TO_FD(Dir_p) -1
237    #endif
238    ]
239        )
240      fi
241    ])
242    
243  UTILS_FUNC_DIRFD  UTILS_FUNC_DIRFD
244    
245  #  #
# Line 195  case "$host" in Line 278  case "$host" in
278  *-*-hpux*)  *-*-hpux*)
279      CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"      CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
280      ;;      ;;
281    *-*-irix6.5*)
282        LIBS="$LIBS -L$ssldir/lib32 -lcrypto"
283        CFLAGS="$CFLAGS -D__SGI_IRIX__"
284        ;;
285  esac  esac
286    
287    

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

  ViewVC Help
Powered by ViewVC 1.1.26