"Fossies" - the Fresh Open Source Software Archive 
Member "bonnie++-1.04/configure.in" (5 Sep 2017, 2005 Bytes) of package /linux/privat/bonnie++_1.04.tgz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(bonnie++.cpp)
3 AC_CONFIG_HEADER(conf.h)
4 AC_SUBST(version)
5 version="1.04"
6
7 AC_SUBST(stripping)
8 AC_ARG_ENABLE(stripping,
9 [ --disable-stripping disables stripping of installed binaries],
10 STRIPPING=$strippingval, STRIPPING=no)
11 if [[ ! "$STRIPPING" = "no" ]]; then
12 stripping=""
13 else
14 stripping="-s"
15 fi
16 echo $DEB_BUILD_OPTIONS | grep -q nostrip
17 if [[ "$?" = "0" ]]; then
18 stripping=""
19 fi
20
21 AC_SUBST(debug)
22 AC_ARG_ENABLE(debug,
23 [ --with-debug enables debug code generation for binaries],
24 debug=-g, debug="")
25 echo $DEB_BUILD_OPTIONS | grep -q debug
26 if [[ "$?" = "0" ]]; then
27 debug=-g
28 fi
29
30 dnl Checks for programs.
31 AC_LANG_CPLUSPLUS
32 AC_PROG_CXX
33 AC_PROG_CXXCPP
34 AC_PROG_INSTALL
35
36 dnl Checks for typedefs, structures, and compiler characteristics.
37 AC_C_CONST
38 AC_TYPE_SIZE_T
39
40 AC_SUBST(semun)
41 AC_TRY_COMPILE(#include <sys/types.h>
42 #include <sys/ipc.h>
43 #include <sys/sem.h>
44 , union semun sem , semun="yes")
45 if [[ -n "$semun" ]]; then
46 semun="#define SEMUN_IN_SEM_H"
47 fi
48 AC_SUBST(sa_sigaction)
49 AC_TRY_COMPILE([#include <signal.h>]
50 , [struct sigaction sa; sa.sa_sigaction = 0]
51 , sa_sigaction=y)
52 if [[ "$sa_sigaction" = "y" ]]; then
53 sa_sigaction="#define USE_SA_SIGACTION"
54 fi
55 AC_SUBST(bool)
56 AC_TRY_COMPILE([], [bool var;] , , bool="typedef bool char;")
57 AC_SUBST(true_false)
58 AC_TRY_COMPILE(, [char c = true; char d = false;
59 ] , true_false="0", true_false="1")
60 AC_SUBST(snprintf)
61 AC_TRY_LINK([#include <stdio.h>], char buf[[10]]; snprintf(buf, sizeof(buf), "abc");,,snprintf="no");
62 if [[ -n "$snprintf" ]]; then
63 snprintf="#define NO_SNPRINTF"
64 fi
65
66 AC_SUBST(exes)
67 AC_SUBST(man8)
68 AC_CHECK_HEADERS(vector.h vector)
69 exes="bonnie++ zcav"
70 man8="bonnie++.8 zcav.8"
71 AC_CHECK_HEADERS(algorithm algo.h algo)
72
73 AC_SUBST(aix_mem_size)
74 if [[ -f /etc/objrepos ]]; then
75 aix_mem_size="#define AIX_MEM_SIZE 1"
76 fi
77
78 AC_OUTPUT(Makefile bonnie.h port.h bonnie++.spec bon_csv2html bon_csv2txt sun/pkginfo)