blob: 011df1aeac06f2798695073c34a482f79efce435 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001AC_INIT(version.h)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002AC_PREREQ(2.50)
3AC_CONFIG_AUX_DIR(config)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004MCONFIG=./MCONFIG
5AC_SUBST_FILE(MCONFIG)
Theodore Ts'o74becf31997-04-26 14:37:06 +00006BINARY_TYPE=bin
7dnl
8dnl This is to figure out the version number and the date....
9dnl
10E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
11 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
12DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
13 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -050014E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +000015MONTH=`echo $DATE | awk -F- '{print $2}'`
16YEAR=`echo $DATE | awk -F- '{print $3}'`
17
Theodore Ts'o40fa8cc1999-01-09 05:06:02 +000018if expr $YEAR ">" 1900 > /dev/null ; then
19 E2FSPROGS_YEAR=$YEAR
20elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +000021 E2FSPROGS_YEAR=19$YEAR
22else
23 E2FSPROGS_YEAR=20$YEAR
24fi
25
26case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -050027Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
28Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
29Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
30Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
31May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
32Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
33Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
34Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
35Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
36Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
37Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
38Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +000039*) echo "Unknown month $MONTH??" ;;
40esac
41
Andreas Dilger927566a2006-11-12 19:41:25 -050042base_ver=`echo $E2FSPROGS_VERSION | \
43 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
44pre_vers=`echo $base_ver 0.01 - p | dc`
45
46date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
47
48case $E2FSPROGS_VERSION in
49*-WIP|pre-*)
50 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
51 ;;
52*)
53 E2FSPROGS_PKGVER="$base_ver"
54 ;;
55esac
56
57unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +000058echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
59echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
60AC_SUBST(E2FSPROGS_YEAR)
61AC_SUBST(E2FSPROGS_MONTH)
Theodore Ts'obff0cc92003-03-23 01:37:53 -050062AC_SUBST(E2FSPROGS_DAY)
Theodore Ts'o74becf31997-04-26 14:37:06 +000063AC_SUBST(E2FSPROGS_VERSION)
Andreas Dilger927566a2006-11-12 19:41:25 -050064AC_SUBST(E2FSPROGS_PKGVER)
Theodore Ts'oea97be52001-09-19 15:20:12 -040065AC_CANONICAL_HOST
Theodore Ts'o74becf31997-04-26 14:37:06 +000066dnl
Theodore Ts'od21ae6c2003-05-05 09:00:24 -040067dnl Use diet libc
68dnl
69AC_ARG_WITH([diet-libc],
70[ --with-diet-libc Use diet libc],
71CC="diet cc -nostdinc"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -040072AC_MSG_RESULT(CC=$CC))dnl
73dnl
Theodore Ts'o74becf31997-04-26 14:37:06 +000074dnl set $(CC) from --with-cc=value
75dnl
76AC_ARG_WITH([cc],
77[ --with-cc=COMPILER select compiler to use],
78AC_MSG_RESULT(CC=$withval)
79CC=$withval,
80if test -z "$CC" ; then CC=cc; fi
81[AC_MSG_RESULT(CC defaults to $CC)])dnl
82export CC
83AC_SUBST([CC])
Theodore Ts'o73ae2d42000-02-02 16:13:14 +000084AC_PROG_CC
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040085AC_PROG_CPP
Theodore Ts'o74becf31997-04-26 14:37:06 +000086dnl
87dnl set $(LD) from --with-linker=value
88dnl
89AC_ARG_WITH([linker],
90[ --with-linker=LINKER select linker to use],
91AC_MSG_RESULT(LD=$withval)
92LD=$withval,
93if test -z "$LD" ; then LD=$CC; fi
94[AC_MSG_RESULT(LD defaults to $LD)])dnl
95export LD
96AC_SUBST([LD])
97dnl
98dnl set $(CCOPTS) from --with-ccopts=value
99dnl
100AC_ARG_WITH([ccopts],
101[ --with-ccopts=CCOPTS select compiler command line options],
102AC_MSG_RESULT(CCOPTS is $withval)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000103CFLAGS=$withval,
104)dnl
Theodore Ts'o74becf31997-04-26 14:37:06 +0000105dnl
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000106dnl On systems without linux header files, we add an extra include directory
107dnl that holds enough to fake it (hopefully). Note that the $(top_srcdir) here
108dnl is quoted so that it gets expanded by make, not by configure.
109dnl
110AC_CHECK_HEADER(linux/fs.h, [linux_headers=yes], [linux_headers=no])
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000111if test "$linux_headers" != yes; then
112 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000113fi
114AC_SUBST(LINUX_INCLUDE)
115dnl
Matthias Andreeb1c92f92004-02-23 21:30:11 +0100116dnl Alpha computers use fast and imprecise floating point code that may
117dnl miss exceptions by default. Force sane options if we're using GCC.
118AC_MSG_CHECKING(for additional special compiler flags)
119if test "$GCC" = yes
120then
121 case "$host_cpu" in
122 alpha) addcflags="-mieee" ;;
123 esac
124fi
125if test "x$addcflags" != x
126then
127 AC_MSG_RESULT($addcflags)
128 CFLAGS="$addcflags $CFLAGS"
129else
130 AC_MSG_RESULT([[(none)]])
131fi
132dnl
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000133dnl Set default values for library extentions. Will be dealt with after
134dnl parsing configuration opions, which may modify these
135dnl
136LIB_EXT=.a
137STATIC_LIB_EXT=.a
138PROFILE_LIB_EXT=.a
139dnl
Theodore Ts'o74becf31997-04-26 14:37:06 +0000140dnl set $(LDFLAGS) from --with-ldopts=value
141dnl
142AC_ARG_WITH([ldopts],
143[ --with-ldopts=LDOPTS select linker command line options],
144AC_MSG_RESULT(LDFLAGS is $withval)
145LDFLAGS=$withval,
146LDFLAGS=)dnl
147AC_SUBST(LDFLAGS)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000148dnl
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000149dnl Allow separate `root_prefix' to be specified
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000150dnl
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000151AC_ARG_WITH([root-prefix],
152[ --with-root-prefix=PREFIX override prefix variable for files to be placed in the root],
153root_prefix=$withval,
154root_prefix=NONE)dnl
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000155dnl
Theodore Ts'o98919bd2005-02-04 10:43:58 -0500156dnl handle --enable-maintainer-mode
157dnl
158AC_ARG_ENABLE([maintainer-mode],
159[ --enable-maintainer-mode enable makefile rules useful for maintainers],
160if test "$enableval" = "no"
161then
162 MAINTAINER_CMT=#
163 echo "Disabling maintainer mode"
164else
165 MAINTAINER_CMT=
166 echo "Enabling maintainer mode"
167fi
168,
169MAINTAINER_CMT=#
170echo "Disabling maintainer mode by default"
171)
172AC_SUBST(MAINTAINER_CMT)
173dnl
Theodore Ts'o19178752000-02-11 15:55:07 +0000174dnl handle --enable-compression
175dnl
176AC_ARG_ENABLE([compression],
177[ --enable-compression enable EXPERIMENTAL compression support],
178if test "$enableval" = "no"
179then
180 echo "Disabling compression support"
181else
182 AC_DEFINE(ENABLE_COMPRESSION)
183 echo "Enabling compression support"
184 echo "WARNING: Compression support is experimental"
185fi
186,
187echo "Disabling compression support by default"
188)
189dnl
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400190dnl handle --enable-htree
191dnl
192AC_ARG_ENABLE([htree],
193[ --enable-htree enable EXPERIMENTAL htree directory support],
194if test "$enableval" = "no"
195then
196 HTREE_CMT=#
197 echo "Disabling htree directory support"
198else
199 HTREE_CMT=
200 AC_DEFINE(ENABLE_HTREE)
201 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400202fi
203,
Theodore Ts'o559ca6c2002-08-18 03:48:55 -0400204HTREE_CMT=
205AC_DEFINE(ENABLE_HTREE)
206echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -0400207)
208AC_SUBST(HTREE_CMT)
209dnl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000210dnl handle --enable-elf-shlibs
211dnl
212AC_ARG_ENABLE([elf-shlibs],
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000213[ --enable-elf-shlibs select ELF shared libraries],
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000214if test "$enableval" = "no"
215then
216 ELF_CMT=#
217 MAKEFILE_ELF=/dev/null
218 echo "Disabling ELF shared libraries"
219else
220 ELF_CMT=
221 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +0000222 [case "$host_os" in
223 solaris2.*)
224 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
225 ;;
226 esac]
Theodore Ts'o74becf31997-04-26 14:37:06 +0000227 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000228 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000229 echo "Enabling ELF shared libraries"
230fi
231,
232MAKEFILE_ELF=/dev/null
233ELF_CMT=#
234echo "Disabling ELF shared libraries by default"
235)
236AC_SUBST(ELF_CMT)
237AC_SUBST_FILE(MAKEFILE_ELF)
238dnl
239dnl handle --enable-bsd-shlibs
240dnl
241AC_ARG_ENABLE([bsd-shlibs],
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000242[ --enable-bsd-shlibs select BSD shared libraries],
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000243if test "$enableval" = "no"
244then
245 BSDLIB_CMT=#
246 MAKEFILE_BSDLIB=/dev/null
247 echo "Disabling BSD shared libraries"
248else
249 BSDLIB_CMT=
250 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000251 LIB_EXT=.so
Theodore Ts'oe71d8732003-03-14 02:13:48 -0500252 [case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -0500253 darwin*)
Theodore Ts'oe71d8732003-03-14 02:13:48 -0500254 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
255 LIB_EXT=.dylib
256 ;;
257 esac]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000258 echo "Enabling BSD shared libraries"
259fi
260,
261MAKEFILE_BSDLIB=/dev/null
262BSDLIB_CMT=#
263echo "Disabling BSD shared libraries by default"
264)
265AC_SUBST(BSDLIB_CMT)
266AC_SUBST_FILE(MAKEFILE_BSDLIB)
267dnl
268dnl handle --enable-profile
269dnl
270AC_ARG_ENABLE([profile],
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000271[ --enable-profile build profiling libraries],
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000272if test "$enableval" = "no"
273then
274 PROFILE_CMT=#
275 MAKEFILE_PROFILE=/dev/null
276 echo "Disabling profiling libraries"
277else
278 PROFILE_CMT=
279 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000280 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000281 echo "Building profiling libraries"
282fi
283,
284PROFILE_CMT=#
285MAKEFILE_PROFILE=/dev/null
286echo "Disabling profiling libraries by default"
287)
288AC_SUBST(PROFILE_CMT)
289AC_SUBST_FILE(MAKEFILE_PROFILE)
290dnl
291dnl handle --enable-checker
292dnl
293AC_ARG_ENABLE([checker],
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000294[ --enable-checker build checker libraries],
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000295if test "$enableval" = "no"
296then
297 CHECKER_CMT=#
298 MAKEFILE_CHECKER=/dev/null
299 echo "Disabling checker libraries"
300else
301 CHECKER_CMT=
302 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
303 echo "Building checker libraries"
304fi
305,
306CHECKER_CMT=#
307MAKEFILE_CHECKER=/dev/null
308echo "Disabling checker libraries by default"
309)
310AC_SUBST(CHECKER_CMT)
311AC_SUBST_FILE(MAKEFILE_CHECKER)
312dnl
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000313dnl Substitute library extensions
314dnl
315AC_SUBST(LIB_EXT)
316AC_SUBST(STATIC_LIB_EXT)
317AC_SUBST(PROFILED_LIB_EXT)
318dnl
Theodore Ts'o782bebf2002-11-08 18:46:45 -0500319dnl handle --enable-jbd-debug
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000320dnl
Theodore Ts'o782bebf2002-11-08 18:46:45 -0500321AC_ARG_ENABLE([jbd-debug],
322[ --enable-jbd-debug enable journal debugging],
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000323if test "$enableval" = "no"
324then
325 echo "Disabling journal debugging"
326else
Theodore Ts'o8cf93332001-12-16 02:23:36 -0500327 AC_DEFINE(CONFIG_JBD_DEBUG)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000328 echo "Enabling journal debugging"
329fi
330,
331echo "Disabling journal debugging by default"
332)
333dnl
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500334dnl handle --enable-blkid-debug
335dnl
336AC_ARG_ENABLE([blkid-debug],
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400337[ --enable-blkid-debug enable blkid debugging],
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500338if test "$enableval" = "no"
339then
340 echo "Disabling blkid debugging"
341else
342 AC_DEFINE(CONFIG_BLKID_DEBUG)
343 echo "Enabling blkid debugging"
344fi
345,
346echo "Disabling blkid debugging by default"
347)
348dnl
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400349dnl handle --enable-testio-debug
350dnl
351AC_ARG_ENABLE([testio-debug],
352[ --enable-testio-debug enable the use of the test I/O manager for debugging],
353if test "$enableval" = "no"
354then
355 echo "Disabling testio debugging"
356else
357 AC_DEFINE(CONFIG_TESTIO_DEBUG)
358 echo "Enabling testio debugging"
359fi
360,
361echo "Disabling testio debugging by default"
362)
363dnl
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000364dnl handle --enable-swapfs
365dnl
366AC_ARG_ENABLE([swapfs],
367[ --disable-swapfs disable support of legacy byte-swapped filesystems],
368if test "$enableval" = "no"
369then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -0500370 SWAPFS_CMT=#
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000371 echo "Disabling swapfs support"
372else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -0500373 SWAPFS_CMT=
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000374 AC_DEFINE(ENABLE_SWAPFS)
375 echo "Enabling swapfs support"
376fi
377,
Theodore Ts'ofeb44c62002-11-08 14:55:38 -0500378SWAPFS_CMT=
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000379echo "Enabling swapfs support by default"
380AC_DEFINE(ENABLE_SWAPFS)
381)
Theodore Ts'ofeb44c62002-11-08 14:55:38 -0500382AC_SUBST(SWAPFS_CMT)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000383dnl
384dnl handle --enable-debugfs
385dnl
386AC_ARG_ENABLE([debugfs],
387[ --disable-debugfs disable support of debugfs program],
388if test "$enableval" = "no"
389then
390 echo "Disabling debugfs support"
391 DEBUGFS_CMT="#"
392else
393 DEBUGFS_CMT=
394 echo "Enabling debugfs support"
395fi
396,
397echo "Enabling debugfs support by default"
398DEBUGFS_CMT=
399)
400AC_SUBST(DEBUGFS_CMT)
401dnl
402dnl handle --enable-imager
403dnl
404AC_ARG_ENABLE([imager],
405[ --disable-imager disable support of e2image program],
406if test "$enableval" = "no"
407then
408 echo "Disabling e2image support"
409 IMAGER_CMT="#"
410else
411 IMAGER_CMT=
412 echo "Enabling e2image support"
413fi
414,
415echo "Enabling e2image support by default"
416IMAGER_CMT=
417)
418AC_SUBST(IMAGER_CMT)
419dnl
420dnl handle --enable-resizer
421dnl
422AC_ARG_ENABLE([resizer],
423[ --disable-resizer disable support of e2resize program],
424if test "$enableval" = "no"
425then
426 echo "Disabling e2resize support"
427 RESIZER_CMT="#"
428else
429 RESIZER_CMT=
430 echo "Enabling e2resize support"
431fi
432,
433echo "Enabling e2resize support by default"
434RESIZER_CMT=
435)
436AC_SUBST(RESIZER_CMT)
437dnl
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000438dnl handle --enable-dynamic-e2fsck
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000439dnl
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000440AC_ARG_ENABLE([dynamic-e2fsck],
441[ --enable-dynamic-e2fsck build e2fsck dynamically],
442if test "$enableval" = "no"
443then
444 E2FSCK_TYPE=static
445 echo "Building e2fsck statically"
446else
447 E2FSCK_TYPE=shared
448 echo "Building e2fsck dynamically"
449fi
450,
451E2FSCK_TYPE=static
452echo "Building e2fsck statically by default"
453)
454AC_SUBST(E2FSCK_TYPE)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000455dnl
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000456dnl See whether to install the `fsck' wrapper program (that calls e2fsck)
457dnl
458AC_ARG_ENABLE([fsck],
459[ --enable-fsck build fsck wrapper program],
460[if test "$enableval" = "no"
461then
462 FSCK_PROG='' FSCK_MAN=''
463 echo "Not building fsck wrapper"
464else
465 FSCK_PROG=fsck FSCK_MAN=fsck.8
466 echo "Building fsck wrapper"
467fi]
468,
469[case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -0400470 gnu*)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000471 FSCK_PROG='' FSCK_MAN=''
472 echo "Not building fsck wrapper by default"
473 ;;
474 *)
475 FSCK_PROG=fsck FSCK_MAN=fsck.8
476 echo "Building fsck wrapper by default"
477esac]
478)
479AC_SUBST(FSCK_PROG)
480AC_SUBST(FSCK_MAN)
481dnl
Theodore Ts'o5d407732004-09-18 14:53:14 -0400482dnl See whether to install the `e2initrd-helper' program
483dnl
484AC_ARG_ENABLE([e2initrd-helper],
485[ --enable-e2initrd-helper build e2initrd-helper program],
486[if test "$enableval" = "no"
487then
488 E2INITRD_PROG='' E2INITRD_MAN=''
489 echo "Not building e2initrd helper"
490else
491 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
492 echo "Building e2initrd helper"
493fi]
494,
495E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
496echo "Building e2initrd helper by default"
497)
498AC_SUBST(E2INITRD_PROG)
499AC_SUBST(E2INITRD_MAN)
Karel Zak4db2f592006-03-08 14:17:28 -0500500dnl handle --enable-blkid-devmapper
501dnl
502AC_ARG_ENABLE([blkid-devmapper],
503[ --enable-blkid-devmapper build with device-mapper support],
504[if test "$enableval" = "no"
505then
506 echo "Disabling device-mapper support"
507 DEVMAPPER_REQ=''
508 DEVMAPPER_LIBS=''
509 STATIC_DEVMAPPER_LIBS=''
510else
511 AC_DEFINE(HAVE_DEVMAPPER)
512 echo "Enabling device-mapper support"
513
514 DEVMAPPER_REQ='libselinux libsepol'
515 DEVMAPPER_PC_LIBS='-ldevmapper'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400516 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
517 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
Karel Zak4db2f592006-03-08 14:17:28 -0500518
519fi]
520,
521echo "Disabling device-mapper support by default"
522)
523AC_SUBST(DEVMAPPER_REQ)
524AC_SUBST(DEVMAPPER_PC_LIBS)
525AC_SUBST(DEVMAPPER_LIBS)
526AC_SUBST(STATIC_DEVMAPPER_LIBS)
527dnl
Theodore Ts'o5d407732004-09-18 14:53:14 -0400528dnl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000529dnl
530MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
531AC_SUBST_FILE(MAKEFILE_LIBRARY)
532dnl
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000533dnl Add internationalization support, using gettext.
534dnl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500535GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000536PACKAGE=e2fsprogs
537VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500538VERSION=0.14.1
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000539AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
540AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500541AC_SUBST(GETTEXT_PACKAGE)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000542AC_SUBST(PACKAGE)
543AC_SUBST(VERSION)
544
Theodore Ts'ocdf186e2001-06-13 22:16:47 +0000545AM_GNU_GETTEXT
546dnl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000547dnl End of configuration options
548dnl
Theodore Ts'o74becf31997-04-26 14:37:06 +0000549AC_SUBST(BINARY_TYPE)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000550AC_PROG_MAKE_SET
551AC_PATH_PROG(LN, ln, ln)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000552AC_PROG_LN_S
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000553AC_PATH_PROG(MV, mv, mv)
554AC_PATH_PROG(CP, cp, cp)
555AC_PATH_PROG(RM, rm, rm)
556AC_PATH_PROG(CHMOD, chmod, :)
Theodore Ts'o32237012005-01-17 19:13:39 -0500557AC_PROG_AWK
558AC_PROG_EGREP
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000559AC_PATH_PROG(SED, sed, sed)
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000560AC_PATH_PROG(PERL, perl, perl)
Theodore Ts'o250f79f2001-05-19 22:02:22 +0000561AC_PATH_PROG(LDCONFIG, ldconfig, :)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562AC_CHECK_TOOL(AR, ar, ar)
563AC_CHECK_TOOL(RANLIB, ranlib, :)
564AC_CHECK_TOOL(STRIP, strip, :)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000565AC_PROG_INSTALL
Theodore Ts'o6c133521999-07-03 20:37:03 +0000566# See if we need a separate native compiler.
567if test $cross_compiling = no; then
568 BUILD_CC="$CC"
569 AC_SUBST(BUILD_CC)
570else
571 AC_CHECK_PROGS(BUILD_CC, gcc cc)
572fi
Theodore Ts'o106ad962007-04-04 21:26:37 -0400573AC_CHECK_HEADERS(stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h utime.h)
Theodore Ts'oda76d6b2005-01-18 23:29:01 -0500574AC_CHECK_HEADERS(sys/disk.h sys/mount.h,,,
575[[
576#if HAVE_SYS_QUEUE_H
577#include <sys/queue.h>
578#endif
579]])
580AC_CHECK_HEADERS(net/if.h,,,
581[[
582#if HAVE_SYS_TYPES_H
583#include <sys/types.h>
584#endif
585#if HAVE_SYS_SOCKET
586#include <sys/socket.h>
587#endif
588]])
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000589AC_FUNC_VPRINTF
Theodore Ts'offf45482003-04-13 00:44:19 -0400590dnl Check to see if dirent has member d_reclen. On cygwin those d_reclen
591dnl is not decleared.
Theodore Ts'o6c65d252005-01-19 12:59:48 -0500592AC_CHECK_MEMBER(struct dirent.d_reclen,[AC_DEFINE(HAVE_RECLEN_DIRENT)],,
593 [#include <dirent.h>])
Theodore Ts'offf45482003-04-13 00:44:19 -0400594dnl Check to see if ssize_t was decleared
Theodore Ts'o6c65d252005-01-19 12:59:48 -0500595AC_CHECK_TYPE(ssize_t,[AC_DEFINE(HAVE_TYPE_SSIZE_T)],,
596 [#include <sys/types.h>])
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000597dnl
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +0000598dnl Check to see if llseek() is declared in unistd.h. On some libc's
599dnl it is, and on others it isn't..... Thank you glibc developers....
600dnl
Theodore Ts'o6c65d252005-01-19 12:59:48 -0500601AC_CHECK_DECL(llseek,[AC_DEFINE(HAVE_LLSEEK_PROTOTYPE)],,
602 [#include <unistd.h>])
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +0000603dnl
Theodore Ts'o6928adc2000-05-25 23:28:50 +0000604dnl Check to see if lseek64() is declared in unistd.h. Glibc's header files
605dnl are so convoluted that I can't tell whether it will always be defined,
606dnl and if it isn't defined while lseek64 is defined in the library,
607dnl disaster will strike.
608dnl
609dnl Warning! Use of --enable-gcc-wall may throw off this test.
610dnl
611dnl
Theodore Ts'o6c65d252005-01-19 12:59:48 -0500612AC_CHECK_DECL(lseek64,[AC_DEFINE(HAVE_LSEEK64_PROTOTYPE)],,
613 [#define _LARGEFILE_SOURCE
614 #define _LARGEFILE64_SOURCE
615 #include <unistd.h>])
Theodore Ts'o6928adc2000-05-25 23:28:50 +0000616dnl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000617dnl Word sizes...
618dnl
619if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
620 # if cross-compiling, with no cached values, just assume something common.
621 ac_cv_sizeof_short=2
622 ac_cv_sizeof_int=4
623 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +0000624 ac_cv_sizeof_long_long=8
625 AC_MSG_WARN([Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8])
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000626fi
627AC_CHECK_SIZEOF(short)
628AC_CHECK_SIZEOF(int)
629AC_CHECK_SIZEOF(long)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000630AC_CHECK_SIZEOF(long long)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000631SIZEOF_SHORT=$ac_cv_sizeof_short
632SIZEOF_INT=$ac_cv_sizeof_int
633SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000634SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000635AC_SUBST(SIZEOF_SHORT)
636AC_SUBST(SIZEOF_INT)
637AC_SUBST(SIZEOF_LONG)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000638AC_SUBST(SIZEOF_LONG_LONG)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000639AC_C_BIGENDIAN
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400640BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -0400641ASM_TYPES_HEADER=./asm_types.h
642AC_SUBST_FILE(ASM_TYPES_HEADER)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000643dnl
Theodore Ts'o0c193f82003-08-01 14:26:23 -0400644dnl See if we have inttypes.h and if intptr_t is defined
645dnl
646AC_CHECK_HEADERS([inttypes.h])
Theodore Ts'od2ee56d2005-01-09 00:57:45 -0500647AC_CHECK_TYPES(intptr_t)
Theodore Ts'o0c193f82003-08-01 14:26:23 -0400648dnl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000649dnl See if struct stat has a st_flags field, in which case we can get file
650dnl flags somewhat portably. Also check for the analogous setter, chflags().
651dnl
652AC_MSG_CHECKING(whether struct stat has a st_flags field)
653AC_CACHE_VAL(e2fsprogs_cv_struct_st_flags,
654 AC_TRY_COMPILE([#include <sys/stat.h>],
655 [struct stat stat; stat.st_flags = 0;],
656 [e2fsprogs_cv_struct_st_flags=yes],
657 [e2fsprogs_cv_struct_st_flags=no]))
658AC_MSG_RESULT($e2fsprogs_cv_struct_st_flags)
659if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +0000660 AC_MSG_CHECKING(whether st_flags field is useful)
661 AC_CACHE_VAL(e2fsprogs_cv_struct_st_flags_immut,
662 AC_TRY_COMPILE([#include <sys/stat.h>],
663 [struct stat stat; stat.st_flags |= UF_IMMUTABLE;],
664 [e2fsprogs_cv_struct_st_flags_immut=yes],
665 [e2fsprogs_cv_struct_st_flags_immut=no]))
666 AC_MSG_RESULT($e2fsprogs_cv_struct_st_flags_immut)
667 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
668 AC_DEFINE(HAVE_STAT_FLAGS)
669 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000670fi
Theodore Ts'o84ea6e72004-03-19 19:29:17 -0500671dnl
672dnl Check for the presence of SA_LEN
673dnl
Theodore Ts'o6c65d252005-01-19 12:59:48 -0500674AC_CHECK_MEMBER(struct sockaddr.sa_len,
675 AC_DEFINE_UNQUOTED(HAVE_SA_LEN,1,[Define if struct sockaddr contains sa_len]),,
676 [#include <sys/types.h>
677 #include <sys/socket.h>])
Theodore Ts'o84ea6e72004-03-19 19:29:17 -0500678dnl
Theodore Ts'o106ad962007-04-04 21:26:37 -0400679AC_CHECK_FUNCS(chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000680dnl
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000681dnl Check to see if -lsocket is required (solaris) to make something
682dnl that uses socket() to compile; this is needed for the UUID library
683dnl
684SOCKET_LIB=''
685AC_CHECK_LIB(socket, socket, [SOCKET_LIB=-lsocket])
686AC_SUBST(SOCKET_LIB)
687dnl
Theodore Ts'o3ae497e2003-03-16 06:26:25 -0500688dnl Check to see if libdl exists for the sake of dlopen
689dnl
690DLOPEN_LIB=''
691AC_CHECK_LIB(dl, dlopen,
692[DLOPEN_LIB=-ldl
693AC_DEFINE(HAVE_DLOPEN)])
694AC_SUBST(DLOPEN_LIB)
695dnl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000696dnl See if optreset exists
697dnl
698AC_MSG_CHECKING(for optreset)
699AC_CACHE_VAL(ac_cv_have_optreset,
700[AC_EGREP_HEADER(optreset, unistd.h,
701 ac_cv_have_optreset=yes, ac_cv_have_optreset=no)])dnl
702AC_MSG_RESULT($ac_cv_have_optreset)
703if test $ac_cv_have_optreset = yes; then
704 AC_DEFINE(HAVE_OPTRESET)
705fi
706dnl
Theodore Ts'oe54635d2006-08-06 14:33:13 -0400707dnl Check for unified diff
708dnl
709AC_MSG_CHECKING(for unified diff option)
710if diff -u $0 $0 >& /dev/null ; then
711 UNI_DIFF_OPTS=-u
712else
713 UNI_DIFF_OPTS=-c
714fi
715AC_MSG_RESULT($UNI_DIFF_OPTS)
716AC_SUBST(UNI_DIFF_OPTS)
717dnl
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +0000718dnl We use the EXT2 ioctls only under Linux
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000719dnl
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +0000720case "$host_os" in
721linux*)
722 AC_DEFINE(HAVE_EXT2_IOCTLS)
723 ;;
724esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000725dnl
Theodore Ts'offf45482003-04-13 00:44:19 -0400726dnl OS-specific uncomment control
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -0400727dnl
728LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -0400729CYGWIN_CMT="#"
730UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -0400731case "$host_os" in
732linux*)
733 LINUX_CMT=
734 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -0400735cygwin)
736 CYGWIN_CMT=
737 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -0400738 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -0400739esac
740AC_SUBST(LINUX_CMT)
Theodore Ts'offf45482003-04-13 00:44:19 -0400741AC_SUBST(CYGWIN_CMT)
742AC_SUBST(UNIX_CMT)
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -0400743dnl
Theodore Ts'o6c133521999-07-03 20:37:03 +0000744dnl Linux and Hurd places root files in the / by default
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000745dnl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000746case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400747linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000748 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
749 root_prefix="";
750 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000751 fi
752 ;;
753esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000754dnl
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000755dnl On Linux/hurd, force the prefix to be /usr
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000756dnl
757case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400758linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000759 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000760 prefix="/usr";
761 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -0400762 if test "$mandir" = '${prefix}/man' ; then
763 echo "...and mandir defaults to /usr/share/man"
764 mandir=/usr/share/man
765 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000766 fi
767;;
768esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000769if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +0000770 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000771 root_prefix="$ac_default_prefix"
772 else
773 root_prefix="$prefix"
774 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -0400775 root_bindir=$bindir
776 root_sbindir=$sbindir
777 root_libdir=$libdir
778 root_sysconfdir=$sysconfdir
779else
780 root_bindir='${root_prefix}/bin'
781 root_sbindir='${root_prefix}/sbin'
782 root_libdir='${root_prefix}/lib'
783 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000784fi
785AC_SUBST(root_prefix)
Theodore Ts'ob5ffead2002-05-11 19:17:00 -0400786AC_SUBST(root_bindir)
787AC_SUBST(root_sbindir)
788AC_SUBST(root_libdir)
789AC_SUBST(root_sysconfdir)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000790dnl
791dnl See if -static works.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000792dnl
Theodore Ts'oae851481997-04-29 18:13:24 +0000793AC_MSG_CHECKING([whether linker accepts -static])
794AC_CACHE_VAL(ac_cv_e2fsprogs_use_static,
795[SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
796AC_TRY_LINK([#include <stdio.h>],[fflush(stdout);],
797 ac_cv_e2fsprogs_use_static=yes, ac_cv_e2fsprogs_use_static=no)
798LDFLAGS=$SAVE_LDFLAGS])
Theodore Ts'odefde781999-01-04 07:39:19 +0000799dnl
800dnl Regardless of how the test turns out, Solaris doesn't handle -static
801dnl This is caused by the socket library requiring the nsl library, which
802dnl requires the -dl library, which only works for dynamically linked
803dnl programs. It basically means you can't have statically linked programs
804dnl which use the network under Solaris.
805dnl
806case "$host_os" in
807solaris2.*)
808 ac_cv_e2fsprogs_use_static=no
809;;
810esac
Theodore Ts'oae851481997-04-29 18:13:24 +0000811AC_MSG_RESULT($ac_cv_e2fsprogs_use_static)
Theodore Ts'o74becf31997-04-26 14:37:06 +0000812LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +0000813if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000814 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +0000815fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000816AC_SUBST(LDFLAG_STATIC)
817dnl
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400818dnl Work around mysterious Darwin / GNU libintl problem
819dnl (__asm__ redirection doesn't work for some mysterious reason. Looks like
820dnl Apple hacked gcc somehow?)
821dnl
822case "$host_os" in
823darwin*)
824 echo "Using Apple Darwin / GNU libintl workaround"
825 AC_DEFINE(_INTL_REDIRECT_MACROS)
826 ;;
827esac
828dnl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000829dnl Make the ss and et directories work correctly.
830dnl
831SS_DIR=`cd ${srcdir}/lib/ss; pwd`
832ET_DIR=`cd ${srcdir}/lib/et; pwd`
833AC_SUBST(SS_DIR)
834AC_SUBST(ET_DIR)
835dnl
836dnl Only try to run the test suite if we're not cross compiling.
837dnl
838if test "$cross_compiling" = yes ; then
839 DO_TEST_SUITE=
840else
841 DO_TEST_SUITE=check
842fi
843AC_SUBST(DO_TEST_SUITE)
844dnl
Theodore Ts'oc6f35b82003-05-17 16:29:27 -0400845dnl Only include the intl include files if we're building with them
846dnl
847INTL_FLAGS=
848if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
849 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
850fi
851AC_SUBST(INTL_FLAGS)
852dnl
Theodore Ts'odd947da2005-11-09 18:37:07 -0400853dnl Build CFLAGS
854dnl
855if test $cross_compiling = no; then
856 BUILD_CFLAGS="$CFLAGS"
857 BUILD_LDFLAGS="$LDFLAGS"
858else
859 BUILD_CFLAGS=
860 BUILD_LDFLAGS=
861fi
862AC_SUBST(BUILD_CFLAGS)
863AC_SUBST(BUILD_LDFLAGS)
864dnl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000865dnl Make our output files, being sure that we create the some miscellaneous
866dnl directories
867dnl
868test -d lib || mkdir lib
869test -d include || mkdir include
870test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +0000871test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500872for i in MCONFIG Makefile e2fsprogs.spec \
873 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -0400874 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
875 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -0500876 lib/uuid/Makefile lib/uuid/uuid_types.h \
877 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -0500878 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
879 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -0500880 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -0500881 debugfs/Makefile tests/Makefile tests/progs/Makefile \
882 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
883 if test -d `dirname ${srcdir}/$i` ; then
884 outlist="$outlist $i"
885 fi
886done
887AC_OUTPUT($outlist)
Theodore Ts'oee683a12005-02-05 15:53:56 -0500888if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
889