summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorJames E Keenan <jkeenan@cpan.org>2021-02-17 13:31:45 +0000
committerJames E Keenan <jkeenan@cpan.org>2021-02-18 07:45:33 -0500
commitb52f3fcbb1c0ef575b52e41a2baec4a2542b96da (patch)
tree249a81d5c68554ae45d5b81f48082f80a6346697 /INSTALL
parent8c165c7a4d2c8cb843ef68eb96315d9ea3393cca (diff)
downloadperl-b52f3fcbb1c0ef575b52e41a2baec4a2542b96da.tar.gz
Show how to quote spaces in Configure invocations
For: https://github.com/Perl/perl5/issues/18573
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL26
1 files changed, 25 insertions, 1 deletions
diff --git a/INSTALL b/INSTALL
index 6c75ea0e78..df62c5052a 100644
--- a/INSTALL
+++ b/INSTALL
@@ -132,7 +132,31 @@ Configure supports a number of useful options. Run
Configure -h
-to get a listing. See the F<Porting/Glossary> file for a complete list of
+to get a listing.
+
+Many Configure switches are expressed as C<key=value> pairs, for example:
+
+ -Dcc=clang
+
+Sometimes the value to be supplied for a switch is a string which contains
+spaces. In that case, the value needs to be quoted so as to delimit that
+"shell word" from any following switch. Example:
+
+ sh ./Configure -des \
+ -Doptimize="-O2 -pipe -fstack-protector -fno-strict-aliasing" \
+ -Dusedevel
+
+Once Configure has run, you will be able to access configuration data via
+entries in the file F<config.sh>.
+
+ config_arg0='./Configure'
+ config_args='-des -Doptimize=-O2 -pipe -fstack-protector -fno-strict-aliasing -Dusedevel'
+ config_argc=3
+ config_arg1='-des'
+ config_arg2='-Doptimize=-O2 -pipe -fstack-protector -fno-strict-aliasing'
+ config_arg3='-Dusedevel'
+
+See the F<Porting/Glossary> file for a complete list of
Configure variables you can set and their definitions.
=over 4