[11/12] configure: Move print_include() to a more suitable place

Message ID 20180417081638.3639-12-diego@biurrun.de
State New
Headers show
Series
  • [01/12] build: Group external library protocols separately
Related show

Commit Message

Diego Biurrun April 17, 2018, 8:16 a.m.
---
 configure | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Patch

diff --git a/configure b/configure
index 45cfea889f..f6042937e1 100755
--- a/configure
+++ b/configure
@@ -880,6 +880,13 @@  EOF
     test_cmd $strip $STRIPFLAGS "$@" $TMPO
 }
 
+print_include(){
+    hdr=$1
+    test "${hdr%.h}" = "${hdr}" &&
+        echo "#include $hdr"    ||
+        echo "#include <$hdr>"
+}
+
 test_code(){
     log test_code "$@"
     check=$1
@@ -1009,13 +1016,6 @@  check_ld(){
     test_ld $@ && enable $name
 }
 
-print_include(){
-    hdr=$1
-    test "${hdr%.h}" = "${hdr}" &&
-        echo "#include $hdr"    ||
-        echo "#include <$hdr>"
-}
-
 check_cppflags(){
     log check_cppflags "$@"
     test_cpp "$@" <<EOF && add_cppflags "$@"