diff --git a/configure b/configure
index dcda88e859fa260ffd7b47ea9ec388d39c285ebb..c546ff2d0c9aed3e7f2c4f1fd521ed01d99f52f8 100755
--- a/configure
+++ b/configure
@@ -1011,6 +1011,41 @@ COMPONENT_LIST="
     protocols
 "
 
+EXTERNAL_LIBRARY_LIST="
+    avisynth
+    bzlib
+    frei0r
+    gnutls
+    libcdio
+    libdc1394
+    libfaac
+    libfdk_aac
+    libfreetype
+    libgsm
+    libilbc
+    libmp3lame
+    libopencore_amrnb
+    libopencore_amrwb
+    libopencv
+    libopenjpeg
+    libopus
+    libpulse
+    librtmp
+    libschroedinger
+    libspeex
+    libtheora
+    libvo_aacenc
+    libvo_amrwbenc
+    libvorbis
+    libvpx
+    libx264
+    libxavs
+    libxvid
+    openssl
+    x11grab
+    zlib
+"
+
 HWACCEL_LIST="
     dxva2
     vaapi
@@ -1036,51 +1071,22 @@ PROGRAM_LIST="
 
 CONFIG_LIST="
     $COMPONENT_LIST
+    $EXTERNAL_LIBRARY_LIST
     $HWACCEL_LIST
     $LIBRARY_LIST
     $PROGRAM_LIST
-    avisynth
-    bzlib
     dct
     doc
     fft
-    frei0r
-    gnutls
     gpl
     gray
     hardcoded_tables
-    libcdio
-    libdc1394
-    libfaac
-    libfdk_aac
-    libfreetype
-    libgsm
-    libilbc
-    libmp3lame
-    libopencore_amrnb
-    libopencore_amrwb
-    libopencv
-    libopenjpeg
-    libopus
-    libpulse
-    librtmp
-    libschroedinger
-    libspeex
-    libtheora
-    libvo_aacenc
-    libvo_amrwbenc
-    libvorbis
-    libvpx
-    libx264
-    libxavs
-    libxvid
     lsp
     lzo
     mdct
     memalign_hack
     network
     nonfree
-    openssl
     pic
     rdft
     runtime_cpudetect
@@ -1093,8 +1099,6 @@ CONFIG_LIST="
     thumb
     version3
     xmm_clobber_test
-    x11grab
-    zlib
 "
 
 THREADS_LIST='