File: 180_bmake_path_max.diff

package info (click to toggle)
bmake 20140620-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,784 kB
  • ctags: 3,362
  • sloc: ansic: 17,315; sh: 842; python: 419; exp: 379; makefile: 280; perl: 55
file content (18 lines) | stat: -rw-r--r-- 588 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Svante Signell <svante.signell@gmail.com>
Subject: Handle ‘undefined’ in the getconf output

--- a/configure.in.orig	2014-02-15 23:27:59.000000000 +0100
+++ b/configure.in	2014-09-16 09:18:10.000000000 +0200
@@ -83,7 +83,11 @@
 if test -x /usr/bin/getconf; then
    bmake_path_max=`getconf PATH_MAX / 2> /dev/null`
 fi
-bmake_path_max=${bmake_path_max:-1024}
+if test "${bmake_path_max}" = "undefined" ; then
+   bmake_path_max=1024
+else
+   bmake_path_max=${bmake_path_max:-1024}
+fi
 if test $bmake_path_max -gt 1024; then
    # this is all we expect
    bmake_path_max=1024