Fri, 07 Sep 2012 19:08:07 +0200
Correct build configuration in Solaris subdir, correct english grammar,
remove irrelevant strip notice, introduce custom CFLAG logic, facilitate
use of Solaris Studio compiler with needed build configuration
adjustments, conditionally build 64 bit position independent code,
and accommodate tun(7) in newer Solaris releases by renaming driver
and module from conflicting 'tun' to 'vtun'. These changes include
some nonstandard 'I give up' logic causing out of tree builds by
manipulating the PATH, for example.
1 Index: configure
2 --- configure.orig 2009-07-12 09:19:15 +0200
3 +++ configure 2010-01-07 18:10:28 +0100
4 @@ -2821,7 +2821,7 @@
5 # Check whether --enable-expert-mode was given.
6 if test "${enable_expert_mode+set}" = set; then
7 enableval=$enable_expert_mode;
8 - ac_enable_expert_mode=yes
9 + ac_enable_expert_mode=$enableval
11 else
13 @@ -4502,13 +4502,7 @@
14 if $ac_preproc_ok; then
15 :
16 else
17 - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19 -{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
20 -See \`config.log' for more details." >&5
21 -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22 -See \`config.log' for more details." >&2;}
23 - { (exit 1); exit 1; }; }; }
24 + :
25 fi
27 ac_ext=c
28 @@ -6170,13 +6164,7 @@
29 if $ac_preproc_ok; then
30 :
31 else
32 - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34 -{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
35 -See \`config.log' for more details." >&5
36 -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
37 -See \`config.log' for more details." >&2;}
38 - { (exit 1); exit 1; }; }; }
39 + :
40 fi
42 ac_ext=c
43 @@ -6901,13 +6889,7 @@
44 if $ac_preproc_ok; then
45 :
46 else
47 - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
48 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49 -{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
50 -See \`config.log' for more details." >&5
51 -$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
52 -See \`config.log' for more details." >&2;}
53 - { (exit 1); exit 1; }; }; }
54 + :
55 fi
57 ac_ext=c
58 Index: gnu.h.in
59 --- gnu.h.in.orig 2009-06-18 21:56:25 +0200
60 +++ gnu.h.in 2010-01-07 18:10:08 +0100
61 @@ -59,15 +59,6 @@
62 @TYPEDEF_UINT32_T@
63 @TYPEDEF_UINT64_T@
65 -#if defined(__GNUC__)
66 -# if !defined(__GNUC_PREREQ__)
67 -# define __GNUC_PREREQ__(maj, min) (__GNUC__ > (maj) || __GNUC__ == (maj) && __GNUC_MINOR__ >= (min))
68 -# endif
69 -#else
70 -# define __GNUC__ 0
71 -# define __GNUC_PREREQ__(maj, min) 0
72 -#endif
73 -
74 /* WARNING: overriding this value is dangerous; some assembler routines
75 * make assumptions about the size set by the configure script
76 */