/[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 2480 by capela, Fri Nov 1 17:44:30 2013 UTC revision 2481 by capela, Thu Nov 7 18:22:48 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.41, rncbc@rncbc.org, qsampler)  AC_INIT(Qsampler, 0.2.2.42, 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 29  else Line 29  else
29  fi  fi
30  AC_SUBST(ac_debug)  AC_SUBST(ac_debug)
31    
32    
33    # Enable Qt4/5 availability.
34    AC_ARG_ENABLE(qt4,
35      AC_HELP_STRING([--enable-qt4], [enable Qt4 build (default=yes)]),
36      [ac_qt4="$enableval"],
37      [ac_qt4="yes"])
38    
39    AC_ARG_ENABLE(qt5,
40      AC_HELP_STRING([--enable-qt5], [enable Qt5 build (default=no)]),
41      [ac_qt5="$enableval"],
42      [ac_qt5="no"])
43    
44    if test "x$ac_qt4" = "xno"; then
45       ac_qt5="yes"
46    fi
47    if test "x$ac_qt5" = "xyes"; then
48       ac_qt4="no"
49    fi
50    
51  # Enable libgig availability.  # Enable libgig availability.
52  AC_ARG_ENABLE(libgig,  AC_ARG_ENABLE(libgig,
53    AC_HELP_STRING([--enable-libgig], [enable libgig interface (default=yes)]),    AC_HELP_STRING([--enable-libgig], [enable libgig interface (default=yes)]),
# Line 45  if test "$cross_compiling" != yes; then Line 64  if test "$cross_compiling" != yes; then
64  # Standard installation base dirs.  # Standard installation base dirs.
65  ac_with_paths="/usr /usr/local"  ac_with_paths="/usr /usr/local"
66    
67    ac_qtdirs="qt"
68    
69    if test "x$ac_qt4" = "xyes"; then
70       ac_qtdirs="qt4 $ac_qtdirs"
71    fi
72    if test "x$ac_qt5" = "xyes"; then
73       ac_qtdirs="qt5 $ac_qtdirs"
74    fi
75    
76  # Some a-la-debian alternatives...  # Some a-la-debian alternatives...
77  for X in /usr/lib /usr/lib64 /usr/share; do  for X in /usr/lib /usr/lib64 /usr/share; do
78    for Y in qt qt4 qt5; do    for Y in $ac_qtdirs; do
79      if test -d $X/$Y/bin; then      if test -d $X/$Y/bin; then
80        ac_with_paths="$ac_with_paths $X/$Y"        ac_with_paths="$ac_with_paths $X/$Y"
81      fi      fi
# Line 91  for X in $ac_with_paths; do Line 119  for X in $ac_with_paths; do
119  #   ac_path="$X:$ac_path"  #   ac_path="$X:$ac_path"
120  # fi  # fi
121    if test -d $X/include; then    if test -d $X/include; then
122      for Y in qt qt4 qt5; do      for Y in $ac_qtdirs; do
123        if test -d $X/include/$Y; then        if test -d $X/include/$Y; then
124          CFLAGS="-I$X/include/$Y $CFLAGS"          CFLAGS="-I$X/include/$Y $CFLAGS"
125          CPPFLAGS="-I$X/include/$Y $CPPFLAGS"          CPPFLAGS="-I$X/include/$Y $CPPFLAGS"
# Line 114  done Line 142  done
142    
143  # Check for proper flags.  # Check for proper flags.
144  ac_arch=`uname -m`  ac_arch=`uname -m`
145  if test "$ac_arch" == "x86_64"; then  if test "x$ac_arch" = "xx86_64"; then
146     CFLAGS="-fPIC $CFLAGS"     CFLAGS="-fPIC $CFLAGS"
147     CPPFLAGS="-fPIC $CPPFLAGS"     CPPFLAGS="-fPIC $CPPFLAGS"
148  fi  fi

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

  ViewVC Help
Powered by ViewVC