aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure42
1 files changed, 42 insertions, 0 deletions
diff --git a/configure b/configure
index 7fec972..57f6fbf 100755
--- a/configure
+++ b/configure
@@ -16,6 +16,13 @@ curlhttpverbose=0
curlftpverbose=0
debugsyms=
+root=''
+prefix='${root}/usr'
+bindir='${prefix}/bin'
+libdir='${prefix}/lib'
+pkgdir='${libdir}/pkgconfig'
+incdir='${prefix}/include'
+
# ---
# Message de version.
# ---
@@ -62,6 +69,16 @@ Build options:
--libcurl-ftp-verbose same as previous for ftp requests using libcurl.
--libcurl-verbose same as previous for all requests using libcurl.
+Installation directories:
+ --root=ROOT root for installation [$root]
+ --prefix=PREFIX main installation prefix [$prefix]
+
+Fine tuning of the installation directories:
+ --bindir=BINDIR target executables [$bindir]
+ --libdir=LIBDIR library files for the linker [$libdir]
+ --pkgdir=PKGDIR pkg-config configurations directory [$pkgdir]
+ --includedir=INCDIR include files for the compiler [$incdir]
+
Report bugs to ${maintainer}.
EOF
exit 0
@@ -99,9 +116,27 @@ for arg ; do case "$arg" in
nologo=1
loglevel=DEBUG
debugsyms=1 ;;
+--root=*)
+ root="${arg#*=}" ;;
+--prefix=*)
+ prefix="${arg#*=}" ;;
+--bindir=*)
+ bindir="${arg#*=}" ;;
+--libdir=*)
+ libdir="${arg#*=}" ;;
+--pkgdir=*)
+ pkgdir="${arg#*=}" ;;
+--includedir=*)
+ incdir="${arg#*=}" ;;
*) echo "'$arg': didn't read" >&2 ;;
esac; done
+# On évalue les variables concernant les chemins.
+
+for var in prefix bindir libdir pkgdir incdir; do
+ eval "${var}"=$(eval echo '$'"${var}")
+done
+
# ---
# Création de la configuration.
# ---
@@ -128,6 +163,13 @@ cat <<EOF
CURL_HTTP_VERBOSE := ${curlhttpverbose}
CURL_FTP_VERBOSE := ${curlftpverbose}
+# Dossiers d'installation.
+
+ IBINDIR := ${bindir}
+ IPKGDIR := ${pkgdir}
+ ILIBDIR := ${libdir}
+ IINCDIR := ${incdir}
+
# End of file.
EOF
exec 1>&3 3>&-