aconfigure: fix bashism. (#3220)

${var//string/replacement} is considered a bashism and should be avoided in configure scripts.
remotes/origin/ip-change-early
Jaco Kroon 2 years ago committed by GitHub
parent 1cda935380
commit bae7e5f4ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7986,7 +7986,7 @@ printf "%s\n" "not found" >&6; }
ac_sdl_cflags=`$SDL_CONFIG --cflags`
ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
ac_sdl_ldflags=`$SDL_CONFIG --libs`
ac_sdl_ldflags=${ac_sdl_ldflags//-mwindows/}
ac_sdl_ldflags=`echo "${ac_sdl_ldflags}" | sed -e 's/-mwindows//g'`
LIBS="$LIBS $ac_sdl_ldflags"
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5

@ -1295,7 +1295,7 @@ AC_ARG_ENABLE(sdl,
ac_sdl_cflags=`$SDL_CONFIG --cflags`
ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
ac_sdl_ldflags=`$SDL_CONFIG --libs`
ac_sdl_ldflags=${ac_sdl_ldflags//-mwindows/}
ac_sdl_ldflags=`echo "${ac_sdl_ldflags}" | sed -e 's/-mwindows//g'`
LIBS="$LIBS $ac_sdl_ldflags"
else
AC_MSG_RESULT([Unsupported SDL version])

Loading…
Cancel
Save