/[svn]/qsampler/trunk/configure.ac
ViewVC logotype

Diff of /qsampler/trunk/configure.ac

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

revision 824 by capela, Fri Dec 23 01:40:56 2005 UTC revision 825 by capela, Tue Jan 3 13:51:35 2006 UTC
# Line 1  Line 1 
1  # Process this file with autoconf to produce a configure script.  # Process this file with autoconf to produce a configure script.
2  AC_INIT(Qsampler, 0.1.2.15, rncbc@rncbc.org, qsampler)  AC_INIT(Qsampler, 0.1.2.16, rncbc@rncbc.org, qsampler)
3  AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui.h)  AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui.h)
4  AC_CONFIG_HEADERS(config.h)  AC_CONFIG_HEADERS(config.h)
5  AC_CONFIG_FILES(Makefile qsampler.pro qsampler.spec)  AC_CONFIG_FILES(Makefile qsampler.pro qsampler.spec)
# Line 30  AC_ARG_ENABLE(libgig, Line 30  AC_ARG_ENABLE(libgig,
30    [ac_libgig="no"],    [ac_libgig="no"],
31    [ac_libgig="yes"])    [ac_libgig="yes"])
32    
33    # Set for alternate liblscp installation dir.
34    AC_ARG_WITH(liblscp,
35      AC_HELP_STRING([--with-liblscp=PATH], [use alternate liblscp install path]),
36      [ac_with_paths="$ac_with_paths $withval"])
37    
38    # Set for alternate libgig installation dir.
39    AC_ARG_WITH(libgig,
40      AC_HELP_STRING([--with-libgig=PATH], [use alternate libgig install path]),
41      [ac_with_paths="$ac_with_paths $withval"])
42    
43  # Checks for programs.  # Checks for programs.
44  AC_PROG_CC  AC_PROG_CC
45  AC_PROG_CPP  AC_PROG_CPP
# Line 41  AC_PROG_GCC_TRADITIONAL Line 51  AC_PROG_GCC_TRADITIONAL
51  AC_LANG_C  AC_LANG_C
52  AC_LANG_CPLUSPLUS  AC_LANG_CPLUSPLUS
53    
54    # Prepend alternate dependencies paths.
55    for X in $ac_with_paths; do
56      if test -d $X/include; then
57        CFLAGS="$CFLAGS -I$X/include"
58        CPPFLAGS="$CPPFLAGS -I$X/include"
59        ac_incpath="$X/include $ac_incpath"
60      fi
61      if test -d $X/lib; then
62        LIBS="$LIBS -L$X/lib"
63        ac_libs="-L$X/lib $ac_libs"
64      fi
65    done
66    
67  # Check for QTDIR environment variable.  # Check for QTDIR environment variable.
68  AC_MSG_CHECKING([whether QTDIR environment variable is set])  AC_MSG_CHECKING([whether QTDIR environment variable is set])
69  if test "x$QTDIR" = "x"; then  if test "x$QTDIR" = "x"; then
# Line 52  fi Line 75  fi
75    
76  CFLAGS="$CFLAGS -I$QTDIR/include"  CFLAGS="$CFLAGS -I$QTDIR/include"
77  CPPFLAGS="$CPPFLAGS -I$QTDIR/include"  CPPFLAGS="$CPPFLAGS -I$QTDIR/include"
78  LIBS="-L$QTDIR/lib"  LIBS="$LIBS -L$QTDIR/lib"
79  for X in qt qt3; do  for X in qt qt3; do
80    if test -d $QTDIR/include/$X; then    if test -d $QTDIR/include/$X; then
81      CFLAGS="$CFLAGS -I$QTDIR/include/$X"      CFLAGS="$CFLAGS -I$QTDIR/include/$X"
# Line 131  AC_CHECK_LIB(lscp, main, [ac_liblscp="ye Line 154  AC_CHECK_LIB(lscp, main, [ac_liblscp="ye
154  if test "x$ac_liblscp" = "xno"; then  if test "x$ac_liblscp" = "xno"; then
155     AC_MSG_ERROR([LSCP library not found.])     AC_MSG_ERROR([LSCP library not found.])
156  fi  fi
157  ac_libs="-llscp"  ac_libs="$ac_libs -llscp"
158    
159  AC_CACHE_CHECK([for instrument_name in lscp_channel_info_t],  AC_CACHE_CHECK([for instrument_name in lscp_channel_info_t],
160    ac_instrument_name, [    ac_instrument_name, [
# Line 167  if test "x$ac_libgig" = "xyes"; then Line 190  if test "x$ac_libgig" = "xyes"; then
190     AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"])     AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"])
191     if test "x$ac_libgig" = "xyes"; then     if test "x$ac_libgig" = "xyes"; then
192        AC_DEFINE(CONFIG_LIBGIG, 1, [Define if libgig is available.])        AC_DEFINE(CONFIG_LIBGIG, 1, [Define if libgig is available.])
193        ac_libs="-lgig $ac_libs"        ac_libs="$ac_libs -lgig"
194     fi     fi
195  fi  fi
196    
197  AC_SUBST(ac_libs)  AC_SUBST(ac_libs)
198    AC_SUBST(ac_incpath)
199    
200  # Checks for header files.  # Checks for header files.
201  AC_HEADER_STDC  AC_HEADER_STDC
202  AC_HEADER_SYS_WAIT  AC_HEADER_SYS_WAIT
203  AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h signal.h)  AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h signal.h)
204    
205  # AC_CHECK_HEADER(lscp/client.h, [ac_lscp_h="yes"], [ac_lscp_h="no"])  AC_CHECK_HEADER(lscp/client.h, [ac_lscp_h="yes"], [ac_lscp_h="no"])
206  # if test "x$ac_lscp_h" = "xno"; then  if test "x$ac_lscp_h" = "xno"; then
207  #    AC_MSG_ERROR([LSCP headers not found.])     AC_MSG_ERROR([LSCP headers not found.])
208  # fi  fi
209    
210  # Checks for typedefs, structures, and compiler characteristics.  # Checks for typedefs, structures, and compiler characteristics.
211  # AC_C_CONST  # AC_C_CONST

Legend:
Removed from v.824  
changed lines
  Added in v.825

  ViewVC Help
Powered by ViewVC