summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 22e184ded1c6cee912e8fe47acc36fd7d60ad0d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.63])
AC_INIT([popt],[1.17.DEVEL],[popt-devel@rpm5.org])

AC_CONFIG_SRCDIR([lookup3.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_LINKS([testit.sh:testit.sh])
AC_CONFIG_LINKS([test-poptrc:test-poptrc])
AC_CONFIG_LINKS([test3-data/01.answer:test3-data/01.answer])
AC_CONFIG_LINKS([test3-data/01.input:test3-data/01.input])
AC_CONFIG_LINKS([test3-data/02.answer:test3-data/02.answer])
AC_CONFIG_LINKS([test3-data/02.input:test3-data/02.input])
AC_CONFIG_LINKS([test3-data/03.answer:test3-data/03.answer])
AC_CONFIG_LINKS([test3-data/03.input:test3-data/03.input])
AC_CONFIG_MACRO_DIR([m4])

# Must come before AM_INIT_AUTOMAKE.
AC_CONFIG_AUX_DIR([build-aux])
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([1.11 color-tests -Wall -Werror foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# --- libtool-2.4.6 uses "cru" with error msg
#       /usr/bin/ar: `u' modifier ignored since `D' is the default (see `U')
AC_SUBST([AR_FLAGS], [cr])

#
# Checks for programs.
# Set common system defines for POSIX extensions, such as GNU_SOURCE
# Must be called before any macros that run the compiler (like AC-PROG-LIBTOOL)
AC_USE_SYSTEM_EXTENSIONS
AM_GNU_GETTEXT_VERSION([0.18.2])
AM_GNU_GETTEXT([external])
AM_ICONV
AM_MAINTAINER_MODE

# Libtool library interface versions 
# Library code modified:                              REVISION++
# Interfaces changed/added/removed:   CURRENT++       REVISION=0
# Interfaces added:                             AGE++
# Interfaces removed:                           AGE=0
AC_SUBST(LT_CURRENT,  8)
AC_SUBST(LT_REVISION, 0)
AC_SUBST(LT_AGE,      8)
AC_SUBST(DLL_VERSION, 0)

AC_PROG_CC_STDC
AC_PROG_CC
AC_SYS_LARGEFILE
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AM_PROG_AR
AC_PROG_LIBTOOL

# Turn gcc warning

AC_ARG_ENABLE([gcc-warnings],
  [AS_HELP_STRING([--enable-gcc-warnings],
                  [turn on GCC warnings (for developers)@<:@default=no@:>@])],
  [case $enableval in
     yes|no) ;;
     *)      AC_MSG_ERROR([bad value $enableval for gcc-warnings option]) ;;
   esac
   popt_gcc_warnings=$enableval],
  [popt_gcc_warnings=no]
)

AS_IF([test "x$popt_gcc_warnings" = xyes],
  [ # Add/Delete as needed
  MAX_STACK_SIZE=32768
  popt_CFLAGS_ADD([-fasynchronous-unwind-tables],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-fdiagnostics-show-option],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-fipa-pure-const],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-fstack-protector-all],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-fstrict-aliasing],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-fstrict-overflow],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-funit-at-a-time],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-pedantic], [POPT_CFLAGS])
  popt_CFLAGS_ADD([-Waggregate-return],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wall], [POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wattributes],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wbad-function-cast],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wbuiltin-macro-redefined],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wcast-align],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wcoverage-mismatch],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wcpp],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wdeclaration-after-statement],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wdeprecated-declarations],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wdisabled-optimization],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wdiv-by-zero],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wdouble-promotion],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wendif-labels],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wextra], [POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wformat=2],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wformat-contains-nul],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wformat-extra-args],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wformat-security],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wformat-y2k], [POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wformat-zero-length],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wframe-larger-than=$MAX_STACK_SIZE],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Winit-self],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Winline],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Winvalid-pch],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wjump-misses-init],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wlogical-op],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wmissing-declarations],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wmissing-format-attribute],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wmissing-include-dirs],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wmissing-noreturn],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wmissing-prototypes],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wmudflap],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wmultichar],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wnested-externs],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wno-aggregate-return],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wno-format-nonliteral],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wno-missing-field-initializers],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wno-redundant-decls],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wnormalized=nfc],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wno-sign-compare],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wold-style-definition],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Woverflow],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wpacked-bitfield-compat],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wpointer-arith],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wpointer-to-int-cast],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wpragmas],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wredundant-decls],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wshadow],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wstrict-aliasing],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wstrict-overflow],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wstrict-prototypes],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wsuggest-attribute=const],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wsuggest-attribute=noreturn],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wsuggest-attribute=pure],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wsync-nand],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wtrampolines],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wundef],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wunknown-pragmas],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wunused],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wvolatile-register-var],[POPT_CFLAGS])
  popt_CFLAGS_ADD([-Wwrite-strings],[POPT_CFLAGS])
  ])

# build popt with mudflap instrumentation (GCC only)
popt_gcc_mudflap=no
AC_ARG_ENABLE([mudflap],
 [AS_HELP_STRING([--enable-mudflap],
                  [build POPT with mudflap instrumentation (@<:@default=no@:>@) (with GCC only) (EXPERIMENTAL)])],
 [case $enableval in
     yes|no) ;;
     *)      AC_MSG_ERROR([bad value $enableval for mudflap option]) ;;
   esac
   popt_gcc_mudflap=$enableval],
[ popt_gcc_mudflap=no ])

AS_IF([ test x"$popt_gcc_mudflap" = x"yes" ], 
      [
        AS_IF([test "x$GCC" != x],
              [ 
		old_CFLAGS="$CFLAGS"
		CFLAGS="$CFLAGS -fmudflap"
		old_LDFLAGS="$LDFLAGS"
		LDFLAGS="$LDFLAGS -lmudflap"
		AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[popt_gcc_mudflap=yes],[popt_gcc_mudflap=fail])
		CFLAGS="$old_CFLAGS"
		LDFLAGS="$old_LDFLAGS"
		AS_IF([ test "$popt_gcc_mudflap" = fail ],
                      [
 	  	       AC_MSG_WARN([--enable-mudflap requires a compiler which understands this option.])
                      ],
                      [
                        popt_CFLAGS_ADD([-fmudflap], [POPT_CFLAGS])
                	popt_LDFLAGS_ADD([-lmudflap], [POPT_LDFLAGS])
                        # XXX: memory leak ?
                        #MUDFLAP_OPTIONS="-mode-check -abbreviate -viol-abort -check-initialization -print-leaks"
                        MUDFLAP_OPTIONS="-mode-check -abbreviate -check-initialization"
			AC_SUBST([MUDFLAP_OPTIONS])
                      ])
              ],
              [ popt_gcc_mudflap=no
               AC_MSG_WARN([--enable-mudflap requires GCC])
              ]
        )
      ])
     

dnl # build popt instrumented for -fPIC always
dnl #  popt_CFLAGS_ADD([-fPIC -DPIC], [POPT_CFLAGS])
dnl #  popt_CFLAGS_ADD([-KPIC -DPIC], [POPT_CFLAGS])

# build popt instrumented for -fPIE (GCC only)
AC_ARG_ENABLE([build-pie],
  [AS_HELP_STRING([--enable-build-pie],
                  [build POPT as Position Independent Executable (PIE) (@<:@default=yes@:>@ with GCC only)])],
  [case $enableval in
     yes|no) ;;
     *)      AC_MSG_ERROR([bad value $enableval for build-pie option]) ;;
   esac
   popt_gcc_pie=$enableval],
  [popt_gcc_pie=yes]
)
AS_IF([test "x$popt_gcc_pie" = xyes],
      [
        AS_IF([test "x$GCC" != x],
              [ popt_CFLAGS_ADD([-fpie], [POPT_CFLAGS])
                popt_LDFLAGS_ADD([-pie], [POPT_LDFLAGS])
              ],
              [ popt_gcc_pie=no
                AC_MSG_WARN([--enable-build-pie requires GCC])]
        )
      ])
AC_SUBST([POPT_LDFLAGS])

# build popt instrumented for extra optimization/security (GCC only)
# -fno-delete-null-pointer as the kernel does http://patchwork.kernel.org/patch/36060/
# GNU GCC (usually "gcc")
AS_IF([test "x$GCC" != x],
 [ for c in -fno-delete-null-pointer-checks -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector -fexceptions
   do
  	popt_CFLAGS_ADD([$c], [POPT_CFLAGS])
   done
 ])
# Misc CFLAGS 
popt_CFLAGS_ADD([-D_REENTRANT], [POPT_CFLAGS])
# Finally put an AC_SUBST for all the CFLAGS above
AC_SUBST([POPT_CFLAGS])

# 

# Support for running test cases using valgrind:

use_valgrind=no
HAVE_VALGRIND=no
VALGRIND_ENVIRONMENT=""
AC_ARG_ENABLE([valgrind],
[  --enable-valgrind       Use valgrind when running unit tests. ],
[ use_valgrind=yes ])

AS_IF([ test x"$use_valgrind" = x"yes" ], 
      [
        AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
        AS_IF([ test x$HAVE_VALGRIND = no ],
              [
                AC_MSG_ERROR([You have asked for Valgrind support but Valgrind not found in PATH. ])
              ],
              [ 
              AS_IF([ test x$enable_shared = xyes ],
                    [ 
              		VALGRIND_ENVIRONMENT="libtool --mode=execute "
                    ]
              )
              VALGRIND_ENVIRONMENT="$VALGRIND_ENVIRONMENT valgrind -q --error-exitcode=3 --leak-check=yes --leak-check=full --log-file=\$(builddir)/popt-valgrind-result"
              AC_SUBST([VALGRIND_ENVIRONMENT])
              ])
      ])
     
#  Checks for doxygen support. 
AC_PATH_PROG(DOXYGEN, doxygen, NO_DOXYGEN)
AC_ARG_ENABLE([doxygen],
    AS_HELP_STRING([--disable-doxygen],[disable doxygen API docs generation ]),
    [DOXYGEN_ENABLE=$enableval,
    if test x$DOXYGEN_ENABLE != xno 
    then 
        if test "$DOXYGEN" != NO_DOXYGEN 
        then
           DOXYGEN_ENABLE=yes
        else
           DOXYGEN_ENABLE=no
	   AC_MSG_WARN([You have asked doxygen docs generation but doxygen isn't in the PATH])
        fi
    fi],
    [DOXYGEN_ENABLE=yes])
AM_CONDITIONAL([DOXYGEN_ENABLE], [test x$DOXYGEN != xNO_DOXYGEN])


# Check for gcov support.
# Check for lcov  Makefile conditional
AC_PATH_PROG(LCOV,lcov, no)
AC_ARG_ENABLE([build-gcov],
    AS_HELP_STRING([--enable-build-gcov], [build POPT instrumented for gcov @<:@default=no@:>@.]), 
    [enable_build_gcov=${enableval}],
    [enable_build_gcov=no])

AS_IF([test "x$enable_build_gcov" != xno],
       [
        if  test "x$GCC" != x
        then
            popt_CFLAGS_ADD([-fprofile-arcs -ftest-coverage], [POPT_CFLAGS])
            AC_SUBST([POPT_CFLAGS])
        else
            LCOV=no
        fi 
       ])
AM_CONDITIONAL([HAVE_LCOV], [test x$LCOV != xno])

# Check for api-sanity-autotest.pl Makefile conditional support for check-local
AC_PATH_PROG(API_SANITY_AUTOTEST,api-sanity-autotest.pl,NO_API_SANITY_AUTOTEST)
AM_CONDITIONAL([HAVE_API_SANITY_AUTOTEST], [test "x$API_SANITY_AUTOTEST" != xNO_API_SANITY_AUTOTEST])
# Check for splint Makefile conditional support 
AC_PATH_PROG(SPLINT,splint,NO_SPLINT)
AM_CONDITIONAL([HAVE_SPLINT],[test "x$SPLINT" != xNO_SPLINT])
# Check for mccabe makefile conditional support
AC_PATH_PROG(MCCABE,pmccabe,NO_MCCABE)
AM_CONDITIONAL([HAVE_MCCABE],[test "x$MCCABE" != xNO_MCCABE])
# Check for cppcheck makefile conditional support
AC_PATH_PROG(CPPCHECK,cppcheck,NO_CPPCHECK)
AM_CONDITIONAL([HAVE_CPPCHECK],[test "x$CPPCHECK" != xNO_CPPCHECK])
# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([assert.h glob.h fnmatch.h fcntl.h float.h langinfo.h libintl.h limits.h sys/ioctl.h wchar.h alloca.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UID_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
AC_TYPE_INT64_T

# Checks for library functions.
AC_CHECK_FUNC(setreuid, [], [
    AC_CHECK_LIB(ucb, setreuid, [if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi])
])
AC_CHECK_FUNCS([getuid geteuid iconv mtrace __secure_getenv secure_gentenv setregid stpcpy strerror vasprintf srandom])
# drop AC_FUNC_MALLOC, REALLOC and STRTOD
AC_CHECK_FUNCS([malloc realloc strtod memset nl_langinfo stpcpy strchr strerror strrchr])

dnl check for version script support in the linker (GNU ld, or Solaris ld style)
AC_ARG_ENABLE([ld-version-script],
              AS_HELP_STRING([--enable-ld-version-script],[enable/disable use of linker version script.
                              (default is system dependent)]),
              [have_ld_version_script=$enableval],
              [have_ld_version_script=yes] )

AS_IF([test "x$have_ld_version_script" = xyes],
  [ 
    AC_MSG_CHECKING([if ld version-script works - GNU ld, Solaris ld])
    cat > conftest.map <<EOF
RELEASE
{
	global:
		popt_*;
	local:
		*;
};
PRIVATE
{
	global:
		popti_*;
	local:
		*;
};
EOF
    save_LDFLAGS="$LDFLAGS"
    LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
    AC_LINK_IFELSE([AC_LANG_PROGRAM([[
                   void popt_symbol1(void) {}
                   void popti_symbol2(void) {}
                   ]], [])],
                   [have_ld_version_script=yes], [have_ld_version_script=no])
    LDFLAGS="$save_LDFLAGS"
    if test x$have_ld_version_script != xyes
    then
    	save_LDFLAGS="$LDFLAGS"
    	LDFLAGS="$LDFLAGS -Wl,-M,conftest.map"
        AC_LINK_IFELSE([AC_LANG_PROGRAM([[
                   void popt_symbol1(void) {}
                   void popti_symbol2(void) {}
                   ]], [])],
                   [have_ld_version_script=yes], [have_ld_version_script=no])
    	LDFLAGS="$save_LDFLAGS"
    	if test x$have_ld_version_script = xyes
    	then
		LD_VERSION_SCRIPT_FLAG=-M
    	fi
    else
      LD_VERSION_SCRIPT_FLAG=--version-script
    fi
    AC_MSG_RESULT($have_ld_version_script)
    rm -f conftest.map conftest.c
])
AC_SUBST([LD_VERSION_SCRIPT_FLAG])
AM_CONDITIONAL([HAVE_LD_VERSION_SCRIPT],[test "$have_ld_version_script" = "yes"])

# Autofu for pkgconfig 
# Define a (hope) portable Libs pkgconfig directive that 
# - Don't harm if the default library search path include ${libdir}
#   (https://bugzilla.novell.com/show_bug.cgi?id=529921)
# - Don't require a not upstream patch to pkgconfig
#   (https://bugs.freedesktop.org/show_bug.cgi?id=16095)
popt_pkgconfig_libs='-L${libdir} -lpopt'
case "${host}" in
    *-*-linux*)
	case "${libdir}" in
	    /usr/lib|/usr/lib64|/lib|/lib64)
       		   popt_pkgconfig_libs='-lpopt'
		;;
    		*)
		popt_pkgconfig_libs='-L${libdir} -lpopt'
	;;
	esac
      ;;
    *-*-gnu*)
	case "${libdir}" in
	    /usr/lib|/usr/lib64|/lib|/lib64)
       		   popt_pkgconfig_libs='-lpopt'
		;;
    		*)
		popt_pkgconfig_libs='-L${libdir} -lpopt'
	;;
	esac
      ;;
esac
AC_SUBST([POPT_PKGCONFIG_LIBS],"$popt_pkgconfig_libs")

AC_CONFIG_FILES([Makefile Doxyfile popt.pc popt.spec po/Makefile.in
    auto/Makefile auto/desc ])
AC_OUTPUT

# Print a summary of what features we enabled and have 
AC_MSG_NOTICE([Summary of detected features follows])

popt_MSG_STATUS([gcc-warnings],[$popt_gcc_warnings],[$popt_gcc_warnings])
popt_MSG_STATUS([mudflap],[$popt_gcc_mudflap],[$popt_gcc_mudflap])
popt_MSG_STATUS([build-pie],[$popt_gcc_pie],[$popt_gcc_pie])
popt_MSG_STATUS([valgrind],[$HAVE_VALGRIND],[$use_valgrind])
popt_MSG_STATUS([doxygen],[$DOXYGEN_ENABLE],[$DOXYGEN_ENABLE])
popt_MSG_STATUS([build-gcov],[$LCOV], [$enable_build_gcov])
popt_MSG_STATUS([ld-version-script],[LD_VERSION_SCRIPT_FLAG=$LD_VERSION_SCRIPT_FLAG],[$have_ld_version_script])