~ubuntu-branches/debian/sid/qmidinet/sid

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Jaromír Mikeš
  • Date: 2014-08-02 22:40:43 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20140802224043-mc35d2jep8ip4grm
Tags: 0.2.0-1
* Imported Upstream version 0.2.0
* Added patch to fix FTBFS.
* Added Keywords to desktop file.
* Keywords improved in desktop file.
* Added patch to pass CPPFLAGS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Process this file with autoconf to produce a configure script.
2
 
AC_INIT(QmidiNet, 0.1.3, rncbc@rncbc.org, qmidinet)
 
2
AC_INIT(QmidiNet, 0.2.0, rncbc@rncbc.org, qmidinet)
3
3
 
4
4
AC_CONFIG_SRCDIR(src/qmidinet.cpp)
5
5
AC_CONFIG_HEADERS(src/config.h)
59
59
   ac_qt4="no"
60
60
fi
61
61
 
 
62
 
62
63
# Standard installation base dirs.
63
64
ac_with_paths="/usr /usr/local"
64
65
 
65
 
ac_qtdirs="qt"
66
 
 
67
 
if test "x$ac_qt4" = "xyes"; then
68
 
   ac_qtdirs="qt4 $ac_qtdirs"
69
 
fi
70
 
if test "x$ac_qt5" = "xyes"; then
71
 
   ac_qtdirs="qt5 $ac_qtdirs"
72
 
fi
73
 
 
74
 
# Some a-la-debian alternatives...
75
 
for X in /usr/lib /usr/lib64 /usr/share; do
76
 
  for Y in $ac_qtdirs; do
77
 
    if test -d $X/$Y/bin; then
78
 
      ac_with_paths="$ac_with_paths $X/$Y"
79
 
    fi
80
 
  done
81
 
done
82
 
 
83
66
# Set for alternate Qt installation dir.
84
67
AC_ARG_WITH(qt,
85
68
  AC_HELP_STRING([--with-qt=PATH], [use alternate Qt install path]),
96
79
  [ac_with_paths="$ac_with_paths $withval"])
97
80
 
98
81
 
99
 
# Honor user specified CFLAGS.
 
82
# Honor user specified flags.
100
83
ac_cflags=$CFLAGS
 
84
ac_cppflags=$CPPFLAGS
 
85
ac_ldflags=$LDFLAGS
101
86
 
102
87
 
103
88
# Checks for programs.
111
96
AC_LANG_C
112
97
AC_LANG_CPLUSPLUS
113
98
 
 
99
 
 
100
# Check for proper flags.
 
101
ac_arch=`uname -m`
 
102
 
 
103
# Check for some a-la-debian alternatives...
 
104
ac_qtdirs="qt"
 
105
 
 
106
if test "x$ac_qt4" = "xyes"; then
 
107
   ac_qtdirs="qt4 $ac_qtdirs"
 
108
fi
 
109
if test "x$ac_qt5" = "xyes"; then
 
110
   ac_qtdirs="qt5 $ac_qtdirs"
 
111
fi
 
112
 
 
113
ac_topdirs="/usr/share /usr/lib"
 
114
 
 
115
if test "x$ac_arch" = "xx86_64"; then
 
116
   CFLAGS="-fPIC $CFLAGS"
 
117
   CPPFLAGS="-fPIC $CPPFLAGS"
 
118
   ac_topdirs="$ac_topdirs /usr/lib64"
 
119
fi
 
120
 
 
121
for X in $ac_topdirs; do
 
122
  for Y in $ac_qtdirs; do
 
123
    if test -d $X/$Y/bin; then
 
124
      ac_with_paths="$X/$Y $ac_with_paths"
 
125
    fi
 
126
  done
 
127
done
 
128
 
114
129
# Prepend alternate dependencies paths.
115
130
ac_path=$PATH
116
131
for X in $ac_with_paths; do
132
147
    CPPFLAGS="-I$X/include $CPPFLAGS"
133
148
    ac_incpath="$X/include $ac_incpath"
134
149
  fi
135
 
  if test -d $X/lib64; then
 
150
  if test "x$ac_arch" = "xx86_64" -a -d $X/lib64; then
136
151
    LIBS="-L$X/lib64 $LIBS"
137
152
    ac_libs="-L$X/lib64 $ac_libs"
138
153
  fi
143
158
done
144
159
 
145
160
 
146
 
# Check for proper flags.
147
 
ac_arch=`uname -m`
148
 
if test "x$ac_arch" = "xx86_64"; then
149
 
   CFLAGS="-fPIC $CFLAGS"
150
 
   CPPFLAGS="-fPIC $CPPFLAGS"
151
 
fi
152
 
 
153
161
# Check for proper Qt version.
154
162
AC_CACHE_CHECK([for Qt library version >= 4.4],
155
163
   ac_cv_qtversion, [
243
251
fi
244
252
 
245
253
AC_SUBST(ac_incpath)
 
254
AC_SUBST(ac_cflags)
 
255
AC_SUBST(ac_cppflags)
 
256
AC_SUBST(ac_ldflags)
246
257
 
247
258
 
248
259
# Checks for typedefs, structures, and compiler characteristics.