From: jbj Date: Sat, 17 Jun 2000 04:36:15 +0000 (+0000) Subject: - fix: broken glob test with empty build directory (Geoff Keating). X-Git-Tag: tznext/4.11.0.1.tizen20130304~8304 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=549e0f67d1732e98ffa91c16fdf78282b489ff58;p=tools%2Flibrpm-tizen.git - fix: broken glob test with empty build directory (Geoff Keating). CVS patchset: 3860 CVS date: 2000/06/17 04:36:15 --- diff --git a/CHANGES b/CHANGES index 9c3ff6e..8bfbdd7 100644 --- a/CHANGES +++ b/CHANGES @@ -63,8 +63,10 @@ - fix: permit '\0' as special case key (e.g. "/" in Basenames). 3.0.4 -> 3.0.5 + - handle version 4 packaging as input. - builds against bzip2 1.0 - fix: resurrect symlink unique'ifying property of finger prints. + - fix: broken glob test with empty build directory (Geoff Keating). 3.0.3 -> 3.0.4 - use compressed filenames on install side. diff --git a/configure.in b/configure.in index 709113c..8530f2f 100644 --- a/configure.in +++ b/configure.in @@ -693,6 +693,9 @@ AC_ARG_WITH(glob, [ --with-glob use the internal GNU glob ], if test $rpm_cv_glob = no ; then AC_MSG_CHECKING(for GNU extensions to glob) + mkdir t + mkdir t/p + touch t/p/foo.8 AC_TRY_RUN([ #include #include @@ -700,9 +703,10 @@ if test $rpm_cv_glob = no ; then main() { glob_t gl ; gl.gl_stat = stat; - exit(glob("doc/*/*.8", GLOB_PERIOD, NULL, &gl) || gl.gl_pathc < 1); + exit(glob("t/*/*.8", GLOB_PERIOD, NULL, &gl) || gl.gl_pathc < 1); } ], rpm_cv_glob_ext=yes, rpm_cv_glob_ext=no, rpm_cv_glob_ext=no) + rm -r t AC_MSG_RESULT([$rpm_cv_glob_ext]) if test $rpm_cv_glob_ext = no ; then echo " --> using the included GNU glob instead." >&AC_FD_MSG