Skip to content

Commit 988b8a9

Browse files
committed
Add an --man-dir to php-config too
1 parent e9bc365 commit 988b8a9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

scripts/man1/php-config.1.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ LD Flags which PHP was compiled with
2727
Extra libraries which PHP was compiled with
2828
.TP
2929
.PD 0
30+
.B \-\-man-dir
31+
The directory prefix where the manpages is installed
32+
.TP
33+
.PD 0
3034
.B \-\-extension-dir
3135
Directory where extensions are searched by default
3236
.TP

scripts/php-config.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/
1010
ldflags="@PHP_LDFLAGS@"
1111
libs="@EXTRA_LIBS@"
1212
extension_dir='@EXTENSION_DIR@'
13+
man_dir=`eval echo @mandir@`
1314
program_prefix="@program_prefix@"
1415
program_suffix="@program_suffix@"
1516
exe_extension="@EXEEXT@"
@@ -59,6 +60,8 @@ case "$1" in
5960
echo $php_sapis;;
6061
--configure-options)
6162
echo $configure_options;;
63+
--man-dir)
64+
echo $man_dir;;
6265
--version)
6366
echo $version;;
6467
--vernum)
@@ -73,6 +76,7 @@ Options:
7376
--libs [$libs]
7477
--extension-dir [$extension_dir]
7578
--include-dir [$include_dir]
79+
--man-dir [$man_dir]
7680
--php-binary [$php_binary]
7781
--php-sapis [$php_sapis]
7882
--configure-options [$configure_options]

0 commit comments

Comments
 (0)