[10/12] configure: Move test_host_cpp()/test_host_cc() into canonical order

Message ID 20180417081638.3639-11-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 | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

Patch

diff --git a/configure b/configure
index 48d2a8497b..45cfea889f 100755
--- a/configure
+++ b/configure
@@ -930,6 +930,20 @@  test_exec(){
     test_ld "$@" && { enabled cross_compile || $TMPE >> $logfile 2>&1; }
 }
 
+test_host_cpp(){
+    log test_host_cpp "$@"
+    cat > $TMPC
+    log_file $TMPC
+    test_cmd $host_cc $host_cppflags $host_cflags "$@" $(hostcc_e $TMPO) $TMPC
+}
+
+test_host_cc(){
+    log test_host_cc "$@"
+    cat > $TMPC
+    log_file $TMPC
+    test_cmd $host_cc $host_cflags "$@" $HOSTCC_C $(hostcc_o $TMPO) $TMPC
+}
+
 test_host_cpp_condition(){
     log test_host_cpp_condition "$@"
     header=$1
@@ -1186,20 +1200,6 @@  check_cc(){
     test_code cc "$@" && enable "$name"
 }
 
-test_host_cc(){
-    log test_host_cc "$@"
-    cat > $TMPC
-    log_file $TMPC
-    test_cmd $host_cc $host_cflags "$@" $HOSTCC_C $(hostcc_o $TMPO) $TMPC
-}
-
-test_host_cpp(){
-    log test_host_cpp "$@"
-    cat > $TMPC
-    log_file $TMPC
-    test_cmd $host_cc $host_cppflags $host_cflags "$@" $(hostcc_e $TMPO) $TMPC
-}
-
 check_host_cppflags(){
     log check_host_cppflags "$@"
     test_host_cpp "$@" <<EOF && append host_cppflags "$@"