From be05afb30b10c13a0d61a3a0850e0530d27f0f05 Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Tue, 26 Jun 2018 17:26:32 +0900 Subject: xrdp: print configure options to --version more pretty --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9fd35942..9385801a 100644 --- a/configure.ac +++ b/configure.ac @@ -397,4 +397,9 @@ echo " exec_prefix $exec_prefix" echo " libdir $libdir" echo " bindir $bindir" echo " sysconfdir $sysconfdir" -echo "#define CONFIGURE_STRING \"$@\"" > configure_params.h + +# configure_params.h will be written to the build directory, not the source directory +echo '#define CONFIGURE_STRING \' > ./configure_params.h +./config.status --config | xargs -n 1 | sed -e 's/^/" /' -e 's/$/\\n" \\/' >> ./configure_params.h +echo '""' >> ./configure_params.h + -- cgit v1.2.3