]> git.sesse.net Git - ffmpeg/commitdiff
configure: Fail if CUDA enabled but not found
authorTimo Rothenpieler <timo@rothenpieler.org>
Fri, 25 Mar 2016 23:13:39 +0000 (00:13 +0100)
committerTimo Rothenpieler <timo@rothenpieler.org>
Sun, 27 Mar 2016 23:14:36 +0000 (01:14 +0200)
Without this patch, configure still passes and enables CUDA, no matter
if it was actually found, breaking the build in case it was not.

configure

index 5aa8c1fd8e63db12ce8ecc255d84bc8e111cf218..e550547d6630b78a68cd789a48d7c3d203022b49 100755 (executable)
--- a/configure
+++ b/configure
@@ -5513,7 +5513,8 @@ enabled avfoundation_indev && { check_lib2 CoreGraphics/CoreGraphics.h CGGetActi
 enabled avisynth          && { { check_lib2 "windows.h" LoadLibrary; } ||
                                { check_lib2 "dlfcn.h" dlopen -ldl; } ||
                                die "ERROR: LoadLibrary/dlopen not found for avisynth"; }
-enabled cuda              && check_lib cuda.h cuInit -lcuda
+enabled cuda              && { check_lib cuda.h cuInit -lcuda ||
+                               die "ERROR: CUDA not found"; }
 enabled chromaprint       && require chromaprint chromaprint.h chromaprint_get_version -lchromaprint
 enabled coreimage_filter  && { check_header_objcc QuartzCore/CoreImage.h || disable coreimage_filter; }
 enabled coreimagesrc_filter && { check_header_objcc QuartzCore/CoreImage.h || disable coreimagesrc_filter; }