/[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 2116 by capela, Mon Aug 23 13:08:28 2010 UTC revision 2480 by capela, Fri Nov 1 17:44:30 2013 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.2.2.27, rncbc@rncbc.org, qsampler)  AC_INIT(Qsampler, 0.2.2.41, rncbc@rncbc.org, qsampler)
3    
4  AC_CONFIG_SRCDIR(src/qsampler.cpp)  AC_CONFIG_SRCDIR(src/qsampler.cpp)
5  AC_CONFIG_HEADERS(src/config.h)  AC_CONFIG_HEADERS(src/config.h)
# Line 41  AC_ARG_ENABLE(stacktrace, Line 41  AC_ARG_ENABLE(stacktrace,
41    [ac_stacktrace="$enableval"])    [ac_stacktrace="$enableval"])
42    
43    
44    if test "$cross_compiling" != yes; then
45  # Standard installation base dirs.  # Standard installation base dirs.
46  ac_with_paths="/usr /usr/local"  ac_with_paths="/usr /usr/local"
47    
48  # Some a-la-debian alternatives...  # Some a-la-debian alternatives...
49  for X in /usr/lib /usr/lib64 /usr/share; do  for X in /usr/lib /usr/lib64 /usr/share; do
50    for Y in qt qt4; do    for Y in qt qt4 qt5; do
51      if test -d $X/$Y/bin; then      if test -d $X/$Y/bin; then
52        ac_with_paths="$ac_with_paths $X/$Y"        ac_with_paths="$ac_with_paths $X/$Y"
53      fi      fi
54    done    done
55  done  done
56    fi
57    
58  # Set for alternate Qt installation dir.  # Set for alternate Qt installation dir.
59  AC_ARG_WITH(qt,  AC_ARG_WITH(qt,
# Line 85  for X in $ac_with_paths; do Line 87  for X in $ac_with_paths; do
87    if test -d $X/bin; then    if test -d $X/bin; then
88      ac_path="$X/bin:$ac_path"      ac_path="$X/bin:$ac_path"
89    fi    fi
90    if test -x $X/qmake; then  # if test -x $X/qmake; then
91      ac_path="$X:$ac_path"  #   ac_path="$X:$ac_path"
92    fi  # fi
93    if test -d $X/include; then    if test -d $X/include; then
94      for Y in qt qt4; do      for Y in qt qt4 qt5; do
95        if test -d $X/include/$Y; then        if test -d $X/include/$Y; then
96          CFLAGS="-I$X/include/$Y $CFLAGS"          CFLAGS="-I$X/include/$Y $CFLAGS"
97          CPPFLAGS="-I$X/include/$Y $CPPFLAGS"          CPPFLAGS="-I$X/include/$Y $CPPFLAGS"
# Line 110  for X in $ac_with_paths; do Line 112  for X in $ac_with_paths; do
112    fi    fi
113  done  done
114    
115    # Check for proper flags.
116    ac_arch=`uname -m`
117    if test "$ac_arch" == "x86_64"; then
118       CFLAGS="-fPIC $CFLAGS"
119       CPPFLAGS="-fPIC $CPPFLAGS"
120    fi
121    
122  # Check for proper Qt version.  # Check for proper Qt version.
123  AC_CACHE_CHECK([for Qt library version >= 4.2],  AC_CACHE_CHECK([for Qt library version >= 4.4],
124    ac_cv_qtversion, [    ac_cv_qtversion, [
125    AC_TRY_LINK([#include "Qt/qglobal.h"], [    AC_TRY_LINK([#include "QtCore/qglobal.h"], [
126  #if QT_VERSION < 0x040200  #if QT_VERSION < 0x040400
127  #error Qt library 4.2 or greater required.  #error Qt library 4.4 or greater required.
128  #endif  #endif
129      ], ac_cv_qtversion="yes", [      ], ac_cv_qtversion="yes", [
130        echo "no; Qt 4.2 or greater is required"        echo "no; Qt 4.4 or greater is required"
131        exit        exit
132      ])      ])
133  ])  ])
# Line 178  if test "x$ac_liblscp" = "xno"; then Line 187  if test "x$ac_liblscp" = "xno"; then
187     AC_MSG_ERROR([LSCP library not found.])     AC_MSG_ERROR([LSCP library not found.])
188  fi  fi
189  ac_libs="$ac_libs -llscp"  ac_libs="$ac_libs -llscp"
190    case "{$host}" in
191         *mingw*)
192         ac_libs="$ac_libs -lws2_32"
193         LIBS="$LIBS -lws2_32"
194         ;;
195    esac
196    
197  AC_CACHE_CHECK([for instrument_name in lscp_channel_info_t],  AC_CACHE_CHECK([for instrument_name in lscp_channel_info_t],
198    ac_cv_instrument_name, [    ac_cv_instrument_name, [
# Line 302  if test "x$ac_libgig" = "xyes"; then Line 317  if test "x$ac_libgig" = "xyes"; then
317        AC_LANG_SAVE        AC_LANG_SAVE
318        AC_LANG_CPLUSPLUS        AC_LANG_CPLUSPLUS
319        CXXFLAGS="$ac_libs"        CXXFLAGS="$ac_libs"
320        AC_TRY_RUN([        AC_TRY_COMPILE([
321  #include <stdlib.h>  #include <stdlib.h>
322  #include <gig.h>  #include <gig.h>
323  int main() {        ],[
324      gig::File file;      gig::File file;
325      file.SetAutoLoad(false);      file.SetAutoLoad(false);
     exit(0);  
 }  
326        ],        ],
327        have_libgig_setautoload="yes",        have_libgig_setautoload="yes",
       have_libgig_setautoload="no",  
328        have_libgig_setautoload="no"        have_libgig_setautoload="no"
329        )        )
330        AC_LANG_RESTORE        AC_LANG_RESTORE
# Line 335  if test "x$ac_stacktrace" = "xyes"; then Line 347  if test "x$ac_stacktrace" = "xyes"; then
347  fi  fi
348    
349  # Some recent distros (eg. fedora, debian) require this.  # Some recent distros (eg. fedora, debian) require this.
350  ac_libs="$ac_libs -lX11"  if test "x$ac_cv_lib_X11_main" = "xyes"; then
351       ac_libs="$ac_libs -lX11"
352    fi
353    
354  AC_SUBST(ac_libs)  AC_SUBST(ac_libs)
355  AC_SUBST(ac_incpath)  AC_SUBST(ac_incpath)
# Line 343  AC_SUBST(ac_incpath) Line 357  AC_SUBST(ac_incpath)
357  # Checks for header files.  # Checks for header files.
358  AC_HEADER_STDC  AC_HEADER_STDC
359  AC_HEADER_SYS_WAIT  AC_HEADER_SYS_WAIT
360  AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h signal.h)  AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h signal.h sys/socket.h)
361    
362  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"])
363  if test "x$ac_lscp_h" = "xno"; then  if test "x$ac_lscp_h" = "xno"; then

Legend:
Removed from v.2116  
changed lines
  Added in v.2480

  ViewVC Help
Powered by ViewVC