]> git.draconx.ca Git - dxcommon.git/blobdiff - m4/gob2.m4
at-compat.at: Add patch to fix option parsing bug.
[dxcommon.git] / m4 / gob2.m4
index b508fae030b272c4d081ad326b5c39fa8cce8301..98af0a7ef1893a46468935d59d1099afaf5cbb37 100644 (file)
@@ -1,4 +1,5 @@
-dnl Copyright © 2020 Nick Bowler
+dnl Copyright © 2020-2021 Nick Bowler
+dnl
 dnl License WTFPL2: Do What the Fuck You Want To Public License, version 2.
 dnl This is free software: you are free to do what the fuck you want to.
 dnl There is NO WARRANTY, to the extent permitted by law.
@@ -25,8 +26,8 @@ AC_CACHE_CHECK([for GObject Builder], [ac_cv_path_GOB2],
 AC_PATH_PROGS_FEATURE_CHECK([GOB2], [gob2],
 [rm -f conftest.c
 $ac_path_GOB2 conftest.gob >&AS_MESSAGE_LOG_FD 2>&1 && test -f conftest.c && {
-  gob_relcmd=${ac_path_GOB2##*/}
-  gob_bypath=`command -v "$gob_relcmd"` # ''
+  DX_BASENAME([gob_relcmd], ["$ac_path_GOB2"])
+  gob_bypath=`{ command -v "$gob_relcmd"; } 2>/dev/null` # ''
   ac_cv_path_GOB2=$ac_path_GOB2
   test x"$gob_bypath" = x"$ac_path_GOB2" && ac_cv_path_GOB2=$gob_relcmd
   ac_path_GOB2_found=:
@@ -48,5 +49,5 @@ AS_IF([test x"$dx_cv_gob_works" = x"yes"],
 
 The latest version may be found at <https://draconx.ca/projects/gob-dx/>.
 ])])])
-rm -f conftest*
+rm -f conftest.c conftest.gob
 ])