@@ -12,9 +12,6 @@ dnl start; this is used to generate config/unconfig.h.
12
12
AH_BOTTOM ( [
13
13
/* Begin unconfig.h */] )
14
14
15
- dnl Save initial CFLAGS, to see if -g -O2 came from configure or not
16
- pa_init_cflags="$CFLAGS"
17
-
18
15
dnl This prevents us from running Wine and thinking we are not
19
16
dnl cross-compiling when in fact we are; running Wine here is at
20
17
dnl the best very slow and doesn't buy us a single thing at all.
@@ -27,35 +24,29 @@ AC_CANONICAL_HOST
27
24
dnl Enable any available C extensions
28
25
AC_PROG_CC
29
26
AC_USE_SYSTEM_EXTENSIONS
30
- AC_SYS_LARGEFILE
31
- PA_ADD_CFLAGS([ -std=c17] , [ ] , [ ] ,
32
- [ PA_ADD_CFLAGS([ -std=c11] , [ ] , [ ] ,
33
- [ PA_ADD_CFLAGS([ -std=c99] )] )] )
34
-
35
- dnl If the user did not specify a CFLAGS default, change default
36
- dnl to -O0 for debugging
37
- PA_ARG_DISABLED([ optimization] ,
38
- [ compile without optimization (-O0) to help debugging] ,
39
- [ pa_no_optimize=true] )
27
+ PA_ADD_CPPFLAGS([ -std=c17] , [ ] , [ ] ,
28
+ [ PA_ADD_CPPFLAGS([ -std=c11] , [ ] , [ ] ,
29
+ [ PA_ADD_CPPFLAGS([ -std=c99] )] )] )
40
30
41
- dnl Other programs
42
- pa_no_optimize=false
43
-
44
- dnl Compile and link with dwarf debug
31
+ dnl Compile and link with gdb debug extensions
45
32
PA_ARG_ENABLED([ gdb] ,
46
- [ disable optimization and compile with extra debug information for GDB debugger] ,
47
- [ PA_ADD_CFLAGS([ -ggdb3] )
48
- pa_no_optimize=true] )
33
+ [ compile with extra debug information for GDB debugger] ,
34
+ [ PA_ADD_CFLAGS([ -ggdb3] )] )
49
35
50
- AS_IF ( [ $pa_no_optimize] ,
51
- [ PA_ADD_CFLAGS([ -O0] )
52
- PA_ADD_CFLAGS([ -fno-omit-frame-pointer] )] )
36
+ dnl Disable optimization
37
+ PA_ARG_DISABLED([ optimization] ,
38
+ [ compile without optimization (-O0) to help debugging] ,
39
+ [ PA_ADD_CFLAGS([ -O0] )
40
+ PA_ADD_CFLAGS([ -fno-omit-frame-pointer] )] )
53
41
54
42
dnl Profiling
55
43
PA_ARG_ENABLED([ profiling] ,
56
44
[ compile with profiling (-pg option)] ,
57
45
[ PA_ADD_CFLAGS([ -pg] )] )
58
46
47
+ dnl Large files
48
+ AC_SYS_LARGEFILE
49
+
59
50
dnl Abort on panic
60
51
PA_ARG_ENABLED([ panic-abort] ,
61
52
[ call abort() on panic to trap in the debugger] ,
@@ -104,10 +95,10 @@ AC_PROG_MAKE_SET
104
95
AC_PROG_INSTALL
105
96
AC_PROG_MKDIR_P
106
97
107
- AC_CHECK_PROGS ( NROFF , nroff , false )
108
- AC_CHECK_PROGS ( ASCIIDOC , asciidoc , false )
109
- AC_CHECK_PROGS ( XMLTO , xmlto , false )
110
- AC_CHECK_PROGS ( XZ , xz , false )
98
+ AC_CHECK_PROGS ( [ NROFF] , nroff , false )
99
+ AC_CHECK_PROGS ( [ ASCIIDOC] , asciidoc , false )
100
+ AC_CHECK_PROGS ( [ XMLTO] , xmlto , false )
101
+ AC_CHECK_PROGS ( [ XZ ] , xz , false )
111
102
112
103
dnl Check for progs needed for manpage generation
113
104
MANPAGES=manpages
0 commit comments