Improve libgnugetopt handling: use OSVERSION variable to handle

-CURRENT which has getopt_long in libc
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2003-04-19 12:37:13 +00:00
parent a818e9a307
commit 286b4069ad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79276

View file

@ -65,11 +65,8 @@ PLIST_SUB+= DIVX=''
WITH_LIBDV= yes
.endif
# LIBGNUGETOPT
# If this is found in the system, the port tries to use it
# Furthermore, we will only do this if gnugetopt is installed so
# that we don't break -CURRENT since libgnugetopt is a problem for
# -CURRENT right now
.if exists(${LOCALBASE}/lib/libgnugetopt.so)
# -CURRENT after 500041 has getopt_long
.if ${OSVERSION} < 500041
WITH_LIBGNUGETOPT= yes
.endif
# LIBMOVTAR