mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
updated to include plugins
git-svn-id: http://svn.osgeo.org/qgis/trunk@518 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
de9b73000f
commit
b778ba56a3
207
configure.in
207
configure.in
@ -1,76 +1,74 @@
|
|||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_INIT(configure.in)
|
AC_INIT
|
||||||
AM_INIT_AUTOMAKE(qgis, 0.0.13)
|
|
||||||
AC_PROG_LIBTOOL()
|
#AC_CONFIG_SRCDIR([libtool])
|
||||||
#AC_CANONICAL_HOST
|
|
||||||
#AC_CONFIG_HEADERS()
|
AM_INIT_AUTOMAKE(qgis, 0.0.14)
|
||||||
AM_MAINTAINER_MODE()
|
|
||||||
#AC_CONFIG_COMMANDS([src/Makefile], [$QTDIR/bin/qmake -o src/Makefile src/src.pro])
|
AC_PREFIX_PROGRAM(gcc)
|
||||||
|
|
||||||
|
AC_PROG_CXX
|
||||||
|
|
||||||
|
AC_LANG([C++])
|
||||||
|
|
||||||
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
|
|
||||||
gw_CHECK_QT
|
gw_CHECK_QT
|
||||||
|
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl GDAL/OGR
|
dnl GDAL/OGR
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
AC_ARG_WITH(gdal,
|
AC_ARG_WITH(gdal,
|
||||||
[ --with-gdal=path/gdal-config Full path to 'gdal-config' script,
|
AC_HELP_STRING([--with-gdal=path],
|
||||||
e.g. '--with-gdal=/usr/local/bin/gdal-config'
|
[Full path to 'gdal-config' script, e.g. '--with-gdal=/usr/local/bin/gdal-config' ]),
|
||||||
],
|
[if test -x "$with_gdal/gdal-config" ; then
|
||||||
[ if test -f "$with_gdal" ; then
|
GDAL_CONFIG="$with_gdal/gdal-config"
|
||||||
GDAL_CONFIG="$with_gdal"
|
else
|
||||||
else
|
AC_MSG_ERROR("Cannot find $with_gdal")
|
||||||
AC_MSG_ERROR("Cannot find $with_gdal")
|
fi],
|
||||||
fi
|
[GDAL_CONFIG=`which gdal-config`
|
||||||
],
|
if test ! -x "$GDAL_CONFIG" ; then
|
||||||
[
|
AC_MSG_ERROR(["Cannot find gdal-config, try to use --with-gdal option"])
|
||||||
GDAL_CONFIG=`which gdal-config`
|
fi])
|
||||||
if test ! -f "$GDAL_CONFIG" ; then
|
|
||||||
AC_MSG_ERROR(["Cannot find gdal-config, try to use --with-gdal option"])
|
|
||||||
fi
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([for GDAL/OGR])
|
AC_MSG_CHECKING([for GDAL/OGR])
|
||||||
if test ! -x "$GDAL_CONFIG" ; then
|
if test x`$GDAL_CONFIG --ogr-enabled` = "xno" ; then
|
||||||
AC_MSG_ERROR([Cannot execute gdal-config, check permissions])
|
AC_MSG_ERROR([GDAL must be compiled with OGR support and currently is not.])
|
||||||
fi
|
|
||||||
|
|
||||||
if test `$GDAL_CONFIG --ogr-enabled` = "no" ; then
|
|
||||||
AC_MSG_ERROR([GDAL is compiled without OGR support.])
|
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
AC_MSG_CHECKING([for GDAL libs])
|
|
||||||
GDAL_LIB="`$GDAL_CONFIG --libs`"
|
|
||||||
AC_MSG_RESULT([$GDAL_LIB])
|
|
||||||
GDAL_CFLAGS="`$GDAL_CONFIG --prefix`/include"
|
|
||||||
|
|
||||||
|
GDAL_LIB="`$GDAL_CONFIG --libs`"
|
||||||
|
GDAL_CFLAGS="`$GDAL_CONFIG --cflags`"
|
||||||
|
|
||||||
AC_SUBST(GDAL_LIB)
|
AC_SUBST(GDAL_LIB)
|
||||||
AC_SUBST(GDAL_CFLAGS)
|
AC_SUBST(GDAL_CFLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl PostgreSQL
|
dnl PostgreSQL
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
PG_CONFIG=no
|
AC_ARG_WITH(pg,
|
||||||
|
AC_HELP_STRING([--with-pg=path],
|
||||||
AC_ARG_WITH(pg,[ --with-pg=path/pg_config PostgreSQL (PostGIS) Support
|
[PostgreSQL (PostGIS) Support (full path to pg_config)]))
|
||||||
(full path to pg_config)],,)
|
|
||||||
|
|
||||||
if test "$with_pg" = "yes" -o "$with_pg" = "" ; then
|
|
||||||
AC_PATH_PROG(PG_CONFIG, pg_config, no)
|
|
||||||
else
|
|
||||||
PG_CONFIG=$with_pg
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([for PostgreSQL])
|
AC_MSG_CHECKING([for PostgreSQL])
|
||||||
|
if test x"$with_pg" = "xyes" -o x"$with_pg" = "x" ; then
|
||||||
|
AC_PATH_PROG([PG_CONFIG], [pg_config], [no])
|
||||||
|
elif test x"$with_pg" = "xno" ; then
|
||||||
|
PG_CONFIG=no
|
||||||
|
else
|
||||||
|
PG_CONFIG="$with_pg/pg_config"
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$PG_CONFIG" = "no" ; then
|
if test x"$PG_CONFIG" = "xno" ; then
|
||||||
PG_LIB=
|
|
||||||
PG_INC=
|
|
||||||
|
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
else
|
else
|
||||||
HAVE_PG=1
|
HAVE_PG=1
|
||||||
PG_LIB="-L`$PG_CONFIG --libdir` -lpq++"
|
PG_LIB="-L`$PG_CONFIG --libdir` -lpq"
|
||||||
PG_INC="`$PG_CONFIG --includedir`"
|
PG_INC="`$PG_CONFIG --includedir`"
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
AC_MSG_CHECKING([for postgreSQL libs])
|
AC_MSG_CHECKING([for postgreSQL libs])
|
||||||
@ -81,55 +79,84 @@ AC_SUBST(HAVE_PG)
|
|||||||
AC_SUBST(PG_INC)
|
AC_SUBST(PG_INC)
|
||||||
AC_SUBST(PG_LIB)
|
AC_SUBST(PG_LIB)
|
||||||
|
|
||||||
|
AM_CONDITIONAL(POSTGRESDB, test x$HAVE_PG = x1)
|
||||||
|
|
||||||
|
dnl ---------------------------------------------------------------------------
|
||||||
|
dnl SPIT plugin
|
||||||
|
dnl ---------------------------------------------------------------------------
|
||||||
|
AC_ARG_WITH(spit,
|
||||||
|
AC_HELP_STRING([--with-spit],
|
||||||
|
[Shapefile to PostgreSQL (PostGIS) import plugin (built by default with PostgreSQL support)]))
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([SPIT option])
|
||||||
|
if test x"$with_spit" = "xno" ; then
|
||||||
|
WANT_SPIT=0
|
||||||
|
else
|
||||||
|
WANT_SPIT=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x"$WANT_SPIT" = "x1" ; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
fi
|
||||||
|
AC_SUBST(WANT_SPIT)
|
||||||
|
|
||||||
|
AM_CONDITIONAL(SPIT, test x$WANT_SPIT = x1)
|
||||||
|
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl GRASS and GRASS++ package
|
dnl GRASS and GRASS++ package
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
AC_ARG_WITH(grass,[ --with-grass=DIR GRASS Support
|
# AC_ARG_WITH(grass,
|
||||||
(full path to GRASS binary package, e.g.
|
# AC_HELP_STRING([--with-grass=DIR],[GRASS Support (full path to GRASS binary package, e.g. --with-grass=/usr1/grass51/dist.i686-pc-linux-gnu)]))
|
||||||
--with-grass=/usr1/grass51/dist.i686-pc-linux-gnu])
|
|
||||||
|
|
||||||
AC_ARG_WITH(grasspp,[ --with-grasspp=DIR Full path to GRASS++ binary package])
|
# AC_ARG_WITH(grasspp,
|
||||||
|
# AC_HELP_STRING([--with-grasspp=DIR],[Full path to GRASS++ binary package]))
|
||||||
|
|
||||||
AC_MSG_CHECKING([for GRASS])
|
# AC_MSG_CHECKING([for GRASS])
|
||||||
if test -n "$with_grass"; then
|
|
||||||
# I don't know how to add library path to AC_CHECK_LIB()
|
# if test x"$with_grass" != "xno" -a "$with_grass" != "x" ; then
|
||||||
GISLIB=`ls $with_grass/lib/libgrass_gis.*`
|
# # I don't know how to add library path to AC_CHECK_LIB()
|
||||||
if test ! -f "$GISLIB"; then
|
# GISLIB=`ls $with_grass/lib/libgrass_gis.*`
|
||||||
AC_MSG_ERROR( [GRASS library not found] )
|
# if test ! -f "$GISLIB"; then
|
||||||
fi
|
# AC_MSG_ERROR( [GRASS library not found] )
|
||||||
GRASSPPLIB=`ls $with_grasspp/libgrass++.*`
|
# fi
|
||||||
if test ! -f "$GRASSPPLIB"; then
|
# GRASSPPLIB=`ls $with_grasspp/libgrass++.*`
|
||||||
AC_MSG_ERROR( [GRASS++ library not found] )
|
# if test ! -f "$GRASSPPLIB"; then
|
||||||
fi
|
# AC_MSG_ERROR( [GRASS++ library not found] )
|
||||||
GRASS_LIB="-L$with_grass/lib/ -L$with_grasspp -lgrass_vect -lgrass_dig2 -lgrass_dbmiclient -lgrass_dbmibase -lgrass_shape -lgrass_dgl -lgrass_rtree -lgrass_gis -lgrass_datetime -lgrass_linkm -lgrass_form -lgrass++"
|
# fi
|
||||||
|
# GRASS_LIB="-L$with_grass/lib/ -L$with_grasspp -lgrass_vect -lgrass_dig2 -lgrass_dbmiclient -lgrass_dbmibase -lgrass_shape -lgrass_dgl -lgrass_rtree -lgrass_gis -lgrass_datetime -lgrass_linkm -lgrass_form -lgrass++"
|
||||||
|
|
||||||
GISINC=`ls $with_grass/include/gis.h`
|
# GISINC=`ls $with_grass/include/gis.h`
|
||||||
if test ! -f "$GISINC"; then
|
# if test ! -f "$GISINC"; then
|
||||||
AC_MSG_ERROR( [GRASS headers not found] )
|
# AC_MSG_ERROR( [GRASS headers not found] )
|
||||||
fi
|
# fi
|
||||||
GRASSPPINC=`ls $with_grasspp/GRASS.h`
|
# GRASSPPINC=`ls $with_grasspp/GRASS.h`
|
||||||
if test ! -f "$GRASSPPINC"; then
|
# if test ! -f "$GRASSPPINC"; then
|
||||||
AC_MSG_ERROR( [GRASS++ headers not found] )
|
# AC_MSG_ERROR( [GRASS++ headers not found] )
|
||||||
fi
|
# fi
|
||||||
GRASS_INC="$with_grass/include/ $with_grasspp/"
|
# GRASS_INC="$with_grass/include/ $with_grasspp/"
|
||||||
HAVE_GRASS=1
|
# HAVE_GRASS=1
|
||||||
AC_MSG_RESULT([yes])
|
# AC_MSG_RESULT([yes])
|
||||||
else
|
# else
|
||||||
AC_MSG_RESULT([no])
|
# AC_MSG_RESULT([no])
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
|
# AC_SUBST(HAVE_GRASS)
|
||||||
|
# AC_SUBST(GRASS_LIB)
|
||||||
|
# AC_SUBST(GRASS_INC)
|
||||||
|
|
||||||
|
|
||||||
AC_SUBST(HAVE_GRASS)
|
|
||||||
AC_SUBST(GRASS_LIB)
|
|
||||||
AC_SUBST(GRASS_INC)
|
|
||||||
#AC_MSG_RESULT([$HAVE_PG])
|
|
||||||
AM_CONDITIONAL(POSTGRESDB, test x$HAVE_PG = x1)
|
|
||||||
dnl *** Autoconf output *****************************
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
|
providers/Makefile
|
||||||
|
providers/ogr/Makefile
|
||||||
|
providers/postgres/Makefile
|
||||||
|
plugins/Makefile
|
||||||
|
plugins/spit/Makefile
|
||||||
|
plugins/example/Makefile
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
|
||||||
#AC_OUTPUT([
|
|
||||||
#src/platform.pro
|
|
||||||
#])
|
|
||||||
|
|
||||||
|
AC_OUTPUT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user