Changeset 1007
- Timestamp:
- Feb 20, 2017, 12:29:26 AM (8 years ago)
- Location:
- rpm/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
rpm/trunk/configure.ac
r594 r1007 50 50 CFLAGS=$old_cflags 51 51 done 52 CFLAGS="$CFLAGS -fPIC -DPIC -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes $RPMCFLAGS" 52 case "$host" in 53 *os2*) ;; 54 *) 55 CFLAGS="$CFLAGS -fPIC -DPIC" ;; 56 esac 57 CFLAGS="$CFLAGS -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes $RPMCFLAGS" 53 58 fi 54 59 export CFLAGS … … 67 72 if test "$a" = "-rwxr-xr-x"; then 68 73 AC_MSG_RESULT(yes) 69 FIXPERMS=a+rX,u+w,g-w,o-w 74 FIXPERMS=a+rX,u+w,g-w,o-w 70 75 else 71 76 AC_MSG_RESULT(no (tell your OS vendor about GNU fileutils)) 72 FIXPERMS=a+r,u+w,g-w,o-w 77 FIXPERMS=a+r,u+w,g-w,o-w 73 78 fi 74 79 AC_SUBST(FIXPERMS) … … 128 133 AC_PATH_PROG(__PERL, perl, /usr/bin/perl, $MYPATH) 129 134 AC_PATH_PROG(__PGP, pgp, /usr/bin/pgp, $MYPATH) 130 AC_PATH_PROG(__PYTHON, python, /usr/bin/python, $MYPATH) 135 AC_PATH_PROG(__PYTHON, python, /usr/bin/python, $MYPATH) 131 136 AC_PATH_PROG(__RM, rm, /bin/rm, $MYPATH) 132 137 AC_PATH_PROG(__RSH, rsh, /usr/bin/rsh, $MYPATH) … … 152 157 dnl see if we have a mkdir that supports `-p' for rpmbuild's purposes 153 158 AC_PROG_MKDIR_P 154 if ! echo $MKDIR_P | grep -q mkdir; then 159 if ! echo $MKDIR_P | grep -q mkdir; then 155 160 __MKDIR_P="`echo ${prefix}/lib/rpm/mkinstalldirs`" 156 161 else … … 163 168 164 169 #================= 165 # Check for zlib library. 170 # Check for zlib library. 166 171 167 172 WITH_ZLIB_INCLUDE= … … 171 176 AS_IF([test -z "${WITH_ZLIB_LIB}"],[ 172 177 for zlib in z gz ; do 173 AC_CHECK_LIB(${zlib}, gzread, 178 AC_CHECK_LIB(${zlib}, gzread, 174 179 [WITH_ZLIB_LIB="-l${zlib}"; break]) 175 180 done … … 264 269 WITH_BEECRYPT_LIB="-lbeecrypt" 265 270 ],[ 266 AC_MSG_ERROR([missing required library 'beecrypt']) 271 AC_MSG_ERROR([missing required library 'beecrypt']) 267 272 ]) 268 273 AC_CHECK_HEADER([beecrypt/api.h], [AC_DEFINE(HAVE_BEECRYPT_API_H, 1, [Define to 1 if you have the <beecrypt/api.h> header file.]) … … 275 280 #================= 276 281 # Check for NSS library. 277 # We need nss.h from NSS which needs nspr.h. Unfortunately both glibc and NSS 278 # have a header named nss.h... so make extra check for NSS's sechash.h 282 # We need nss.h from NSS which needs nspr.h. Unfortunately both glibc and NSS 283 # have a header named nss.h... so make extra check for NSS's sechash.h 279 284 # which we use too and hopefully is slightly more unique to NSS. 280 285 WITH_NSS_INCLUDE= … … 307 312 WITH_MAGIC_LIB="-lmagic" 308 313 ],[ 309 AC_MSG_ERROR([missing required library 'libmagic']) 314 AC_MSG_ERROR([missing required library 'libmagic']) 310 315 ]) 311 316 ],[ 312 AC_MSG_ERROR([missing required header magic.h]) 317 AC_MSG_ERROR([missing required header magic.h]) 313 318 ]) 314 319 … … 379 384 #endif 380 385 ]) 381 ],[ WITH_DB_LIB=-ldb ], 386 ],[ WITH_DB_LIB=-ldb ], 382 387 [ AC_MSG_ERROR([Berkeley DB version >= 4.5 required]) 383 388 ]) … … 727 732 728 733 AS_IF([test "$with_acl" = yes],[ 729 dnl verification uses non-portable acl_equiv_mode() 734 dnl verification uses non-portable acl_equiv_mode() 730 735 AC_CHECK_HEADER([acl/libacl.h],[ 731 736 AC_CHECK_LIB(acl,[acl_equiv_mode],[with_acl=yes],[ … … 804 809 dnl permit overriding build_vendor for "canonical rpm vendor" 805 810 RPMCANONVENDOR="$build_vendor" 806 AC_ARG_WITH([vendor], 811 AC_ARG_WITH([vendor], 807 812 AS_HELP_STRING([--with-vendor=VENDOR], [specify rpm vendor name]), 808 813 [RPMCANONVENDOR=$withval]) 809 814 AC_DEFINE_UNQUOTED([RPMCANONVENDOR],["${RPMCANONVENDOR}"],[canonical vendor]) 810 815 811 816 RPMCANONOS="$host_os_noversion" 812 817 RPMCANONGNU="$host_os_gnu" … … 816 821 817 822 RUNDIR="/run" 818 AC_ARG_WITH([rundir], 823 AC_ARG_WITH([rundir], 819 824 AS_HELP_STRING([--with-rundir=RUNDIR], [specify run-time variable directory]), 820 825 [RUNDIR=$withval]) … … 848 853 rpmio/Makefile lib/Makefile build/Makefile sign/Makefile 849 854 po/Makefile.in scripts/Makefile fileattrs/Makefile 850 misc/Makefile 855 misc/Makefile 851 856 doc/Makefile 852 857 python/Makefile -
rpm/trunk/rpmio/rpmutil.h
r375 r1007 97 97 #endif /* __GNUC__ */ 98 98 99 #if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)99 #if (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && !defined(__OS2__) 100 100 # define RPM_GNUC_INTERNAL __attribute__((visibility("hidden"))) 101 101 #else
Note:
See TracChangeset
for help on using the changeset viewer.