~ubuntu-branches/ubuntu/vivid/parted/vivid

« back to all changes in this revision

Viewing changes to .pc/kfreebsd-gnu.patch/configure.ac

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-07-21 10:23:16 UTC
  • mfrom: (7.2.32 sid)
  • Revision ID: package-import@ubuntu.com-20140721102316-jsyv3yzmbo8vlde5
Tags: 3.1-3
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl GNU Parted - a library and front end for manipulation hard disk partitions
2
 
dnl Copyright (C) 1998-2002, 2005-2010 Free Software Foundation, Inc.
 
2
dnl Copyright (C) 1998-2002, 2005-2012 Free Software Foundation, Inc.
3
3
dnl
4
4
dnl This file may be modified and/or distributed without restriction.
5
5
 
10
10
# When the most recent signed tag is v1.8.8.1,
11
11
# the above might set e.g., PACKAGE_VERSION='1.8.8.1.1-0bfc'
12
12
 
13
 
AC_CONFIG_SRCDIR([include/parted/parted.h])
 
13
AC_CONFIG_SRCDIR([include/parted/parted.in.h])
14
14
 
15
15
AC_CONFIG_HEADERS([lib/config.h:lib/config.h.in])
16
16
AC_CONFIG_AUX_DIR([build-aux])
52
52
AC_SUBST([LT_REVISION])
53
53
AC_SUBST([LT_AGE])
54
54
 
55
 
AM_INIT_AUTOMAKE([1.11 dist-xz color-tests parallel-tests])
 
55
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz color-tests parallel-tests])
56
56
AM_SILENT_RULES([yes]) # make --enable-silent-rules the default.
57
57
 
58
58
AC_CANONICAL_HOST
117
117
        )
118
118
fi
119
119
 
120
 
AC_ARG_ENABLE([fs],
121
 
        [  --enable-fs             include filesystem support [default=yes]], ,
122
 
        enable_fs=yes
123
 
)
124
 
if test "$enable_fs" = yes; then
125
 
        AC_DEFINE([ENABLE_FS], [1],
126
 
                  [Include file system support.  i.e. libparted/fs_...])
127
 
fi
128
 
 
129
120
AC_ARG_ENABLE([debug],
130
121
        [  --enable-debug          compile in assertions [default=yes]], ,
131
122
        enable_debug=yes
157
148
                   collisions with msdos partition tables])
158
149
fi
159
150
 
160
 
AC_ARG_ENABLE([Werror],
161
 
        [  --enable-Werror         build with gcc -Werror [default=yes]], ,
162
 
        enable_Werror=yes
163
 
)
164
 
 
165
151
AC_ARG_ENABLE([hfs-extract-fs],
166
152
        [  --enable-hfs-extract-fs Extract special HFS files for debugging [default=no]], ,
167
153
        enable_hfs_extract_fs=no
224
210
  nw="$nw -Wpadded"                 # Our structs are not padded
225
211
  nw="$nw -Wredundant-decls"        # openat.h declares e.g., mkdirat
226
212
  nw="$nw -Wlogical-op"             # any use of fwrite provokes this
227
 
  nw="$nw -Wformat-nonliteral"      # who.c and pinky.c strftime uses
228
213
  nw="$nw -Wvla"                    # warnings in gettext.h
229
214
  nw="$nw -Wnested-externs"         # use of XARGMATCH/verify_function__
230
215
  nw="$nw -Wswitch-enum"            # Too many warnings for now
256
241
  gl_WARN_ADD([-Wno-pointer-sign])     # Too many warnings for now
257
242
  gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
258
243
  gl_WARN_ADD([-Wno-unused-macros]) # Too many warnings for now
 
244
  gl_WARN_ADD([-Wno-format-nonliteral])
259
245
 
260
246
  # FIXME: investigate these
261
247
  gl_WARN_ADD([-Wno-jump-misses-init])
293
279
libraries.)
294
280
        AM_DISABLE_SHARED
295
281
fi
296
 
AM_PROG_LIBTOOL
 
282
AC_PROG_LIBTOOL
 
283
LT_INIT
297
284
 
298
285
AM_GNU_GETTEXT_VERSION([0.18])
299
286
AM_GNU_GETTEXT([external])
310
297
 
311
298
dnl Check for libdl, if we are doing dynamic loading
312
299
DL_LIBS=""
 
300
AC_SUBST([DYNAMIC_LOADING])
 
301
DYNAMIC_LOADING=no
313
302
if test "$enable_dynamic_loading" = yes; then
314
303
        AC_CHECK_LIB([dl], [dlopen],
315
304
                DL_LIBS="-ldl"
316
305
                PARTED_LIBS="$PARTED_LIBS -ldl"
 
306
                DYNAMIC_LOADING=yes
317
307
                AC_DEFINE([DYNAMIC_LOADING], [1], [Lazy linking to fs libs]),
318
308
                AC_MSG_ERROR(
319
309
                        [-ldl not found!  Try using --disable-dynamic-loading]
326
316
UUID_LIBS=""
327
317
AC_CHECK_LIB([uuid], [uuid_generate], [UUID_LIBS="-luuid"],
328
318
        [AC_MSG_ERROR(dnl
329
 
[GNU Parted requires libuuid - a part of the e2fsprogs package (but
330
 
sometimes distributed separately in uuid-devel or similar)
 
319
[GNU Parted requires libuuid - a part of the util-linux-ng package (but
 
320
usually distributed separately in libuuid-devel, uuid-dev or similar)
331
321
This can probably be found on your distribution's CD or FTP site or at:
332
 
         http://web.mit.edu/tytso/www/linux/e2fsprogs.html
333
 
Note: if you are using precompiled packages you will also need the development
334
 
package as well (which may be called e2fsprogs-devel or something similar).
335
 
If you compile e2fsprogs yourself then you need to do 'make install' and
336
 
'make install-libs'.])]
337
 
)
 
322
    http://userweb.kernel.org/~kzak/util-linux-ng/
 
323
Note: originally, libuuid was part of the e2fsprogs package.  Later, it
 
324
moved to util-linux-ng-2.16, and that package is now the preferred source.])])
338
325
AC_SUBST([UUID_LIBS])
339
326
 
340
327
dnl Check for libdevmapper
519
506
)
520
507
 
521
508
AC_CHECK_HEADERS([getopt.h])
 
509
AC_CHECK_HEADERS([linux/ext2_fs.h])
522
510
 
523
511
dnl required for libparted/llseek.c  (TODO: make linux-x86 only)
524
512
if test "$OS" = linux; then
559
547
])
560
548
 
561
549
AM_CONDITIONAL([COMPILE_FOR_S390], [test "$host_cpu" = s390 || test "$host_cpu" = s390x])
562
 
AM_CONDITIONAL([BUILD_LINUX], [test "$OS" = linux])
563
550
 
564
551
dnl check for "check", unit testing library/header
565
552
PKG_CHECK_MODULES([CHECK], [check >= 0.9.3], have_check=yes, have_check=no)
592
579
 
593
580
AC_CHECK_FUNCS([canonicalize_file_name])
594
581
 
595
 
# CFLAGS="$CFLAGS -W -Wall -Wno-unused -Wno-switch -Wno-format"
596
 
 
597
 
if test "$enable_Werror" = yes; then
598
 
        CFLAGS="$CFLAGS -Werror"
599
 
fi
600
 
 
601
582
DATE=$(date '+%d %b %Y %H:%M')
602
583
USER=$(whoami)
603
584
HOST=$(hostname)
624
605
libparted/Makefile
625
606
libparted/labels/Makefile
626
607
libparted/fs/Makefile
627
 
libparted/fs/amiga/Makefile
628
 
libparted/fs/ext2/Makefile
629
 
libparted/fs/fat/Makefile
630
 
libparted/fs/hfs/Makefile
631
 
libparted/fs/jfs/Makefile
632
 
libparted/fs/linux_swap/Makefile
633
 
libparted/fs/ntfs/Makefile
634
 
libparted/fs/reiserfs/Makefile
635
 
libparted/fs/ufs/Makefile
636
 
libparted/fs/xfs/Makefile
637
608
libparted/tests/Makefile
638
609
libparted.pc
639
610
parted/Makefile
642
613
doc/C/Makefile
643
614
doc/pt_BR/Makefile
644
615
debug/Makefile
645
 
debug/clearfat/Makefile
646
616
debug/test/Makefile
647
617
tests/Makefile
648
618
po/Makefile.in