[Liblas-commits] r975 - in trunk: . apps
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Dec 26 00:16:04 EST 2008
Author: hobu
Date: Fri Dec 26 00:16:04 2008
New Revision: 975
URL: http://liblas.org/changeset/975
Log:
add a liblas-config script #88
Added:
trunk/apps/liblas-config.in
Modified:
trunk/apps/Makefile.am
trunk/configure.ac
Modified: trunk/apps/Makefile.am
==============================================================================
--- trunk/apps/Makefile.am (original)
+++ trunk/apps/Makefile.am Fri Dec 26 00:16:04 2008
@@ -10,8 +10,11 @@
las2txt_SOURCES = las2txt.c lascommon.c
txt2las_SOURCES = txt2las.c
+
bin_PROGRAMS = lasinfo las2las lasmerge las2txt txt2las
+bin_SCRIPTS = liblas-config
+
if GDAL_IS_CONFIG
las2ogr_SOURCES = las2ogr.cpp
bin_PROGRAMS += las2ogr
Added: trunk/apps/liblas-config.in
==============================================================================
--- (empty file)
+++ trunk/apps/liblas-config.in Fri Dec 26 00:16:04 2008
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+
+
+usage()
+{
+ cat <<EOF
+Usage: liblas-config [OPTIONS]
+Options:
+ [--libs]
+ [--cflags]
+ [--cxxflags]
+ [--defines]
+ [--includes]
+ [--version]
+EOF
+ exit $1
+}
+
+if test $# -eq 0; then
+ usage 1 1>&2
+fi
+
+case $1 in
+ --libs)
+ echo @LIBS@
+ ;;
+
+ --defines)
+ echo @DEFS@
+ ;;
+
+ --includes)
+ echo @GEOTIFF_INC@ @GDAL_INC@
+ ;;
+
+ --cflags)
+ echo @CFLAGS@
+ ;;
+
+ --cxxflags)
+ echo @CXXFLAGS@
+ ;;
+
+ --version)
+ echo @RELEASE_VERSION@
+ ;;
+
+ *)
+ usage 1 1>&2
+ ;;
+
+esac
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Dec 26 00:16:04 2008
@@ -13,6 +13,7 @@
AC_CANONICAL_BUILD
RELEASE_VERSION=liblas_version
+AC_SUBST([RELEASE_VERSION])
dnl #########################################################################
dnl Default compilation flags
@@ -200,6 +201,7 @@
include/Makefile
src/Makefile
apps/Makefile
+ apps/liblas-config
test/Makefile
test/unit/Makefile
])
More information about the Liblas-commits
mailing list