3 # Simple `configure' script for Qi.
5 # Copyright (c) 2016-2018 Matias Fonzo, <selk@dragora.org>.
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
21 "Usage: configure [options]" \
23 "Defaults for the options are specified in brackets." \
26 " --prefix=DIR install files in DIR [${prefix}]" \
27 " --exec-prefix=DIR base DIR for arch-dependent files [${exec_prefix}]" \
28 " --bindir=DIR user executables [${bindir}]" \
29 " --sbindir=DIR system admin executables [${sbindir}]" \
30 " --libexecdir=DIR program executables [${libexecdir}]" \
31 " --sysconfdir=DIR read-only single-machine data [${sysconfdir}]" \
32 " --localstatedir=DIR modifiable single-machine data [${localstatedir}]" \
33 " --datarootdir=DIR read-only arch-independent data root [${datarootdir}]" \
34 " --infodir=DIR info documentation [${infodir}]" \
35 " --mandir=DIR man documentation [${mandir}]" \
36 " --docdir=DIR documentation root [${docdir}]" \
37 " --packagedir=DIR package installation directory [${packagedir}]" \
38 " --targetdir=DIR target directory for linking [${targetdir}]" \
44 exec_prefix
='$(prefix)'
45 bindir
='$(exec_prefix)/bin'
46 sbindir
='$(exec_prefix)/sbin'
47 libexecdir
='$(exec_prefix)/libexec'
48 sysconfdir
='$(prefix)/etc'
49 localstatedir
='$(prefix)/var'
50 datarootdir
='$(prefix)/share'
51 infodir
='$(datarootdir)/info'
52 mandir
='$(datarootdir)/man'
53 docdir
='$(datarootdir)/doc'
54 packagedir
='/usr/local/pkgs'
55 targetdir
='/usr/local'
60 "exec_prefix = $exec_prefix" \
62 "sbindir = $sbindir" \
63 "libexecdir = $libexecdir" \
64 "sysconfdir = $sysconfdir" \
65 "localstatedir = $localstatedir" \
66 "datarootdir = $datarootdir" \
67 "infodir = $infodir" \
70 "packagedir = $packagedir" \
71 "targetdir = $targetdir" \
126 localstatedir
="${1#*=}"
133 datarootdir
="${1#*=}"
179 echo "configure: WARNING: unrecognized option '${1}'" 1>&2
188 echo "Creating config.mak ..."
190 # Show variales and clean up the config.mak file
192 return_variables
; : > config.mak
194 # To populate config.mak
195 return_variables
> config.mak
197 echo "OK, now you can run \`make'"